Skip to content

Commit 39edc7f

Browse files
authored
Merge pull request #892 from php-api-clients/GitHubEnterprise-3.9/from-1.1.4-c9dcce17059a71c975472e31acae9880-from-1.1.4-c9dcce17059a71c975472e31acae9880
2 parents 5f81079 + 3ed0600 commit 39edc7f

File tree

316 files changed

+1650
-672
lines changed

Some content is hidden

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

316 files changed

+1650
-672
lines changed

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

+346-314
Large diffs are not rendered by default.

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

+56
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.9/src/Internal/Hydrator/Operation/Meta.php

+26
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.9/src/Internal/Hydrator/WebHook/SecretScanningAlertLocation.php

+8
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.9/src/Internal/Operator/Actions/CreateEnvironmentVariable.php

+1
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.9/src/Internal/Operator/Actions/CreateOrUpdateEnvironmentSecret.php

+1
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.9/src/Internal/Operator/Actions/DeleteEnvironmentSecret.php

+1
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.9/src/Internal/Operator/Actions/DeleteEnvironmentVariable.php

+1
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.9/src/Internal/Operator/Actions/GetEnvironmentPublicKey.php

+1
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.9/src/Internal/Operator/Actions/GetEnvironmentSecret.php

+1
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);

clients/GitHubEnterprise-3.9/src/Internal/Operator/Actions/GetEnvironmentVariable.php

+1
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 $name): ActionsVariable
2829
{
2930
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Actions\GetEnvironmentVariable($this->responseSchemaValidator, $this->hydrator, $repositoryId, $environmentName, $name);

clients/GitHubEnterprise-3.9/src/Internal/Operator/Actions/ListEnvironmentSecrets.php

+1
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, int $perPage = 30, int $page = 1): Json
2829
{
2930
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Actions\ListEnvironmentSecrets($this->responseSchemaValidator, $this->hydrator, $repositoryId, $environmentName, $perPage, $page);

clients/GitHubEnterprise-3.9/src/Internal/Operator/Actions/ListEnvironmentVariables.php

+1
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, int $perPage = 10, int $page = 1): Json
2829
{
2930
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Actions\ListEnvironmentVariables($this->responseSchemaValidator, $this->hydrator, $repositoryId, $environmentName, $perPage, $page);

clients/GitHubEnterprise-3.9/src/Internal/Operator/Actions/UpdateEnvironmentVariable.php

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2323
{
2424
}
2525

26+
/** @return */
2627
public function call(int $repositoryId, string $name, string $environmentName, array $params): WithoutBody
2728
{
2829
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Actions\UpdateEnvironmentVariable($this->requestSchemaValidator, $repositoryId, $name, $environmentName);

clients/GitHubEnterprise-3.9/src/Internal/Operator/Repos/CreateDeploymentBranchPolicy.php

+1
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(string $owner, string $repo, string $environmentName, array $params): DeploymentBranchPolicy|WithoutBody
2930
{
3031
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\CreateDeploymentBranchPolicy($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $environmentName);

clients/GitHubEnterprise-3.9/src/Internal/Operator/Repos/CreateForAuthenticatedUser.php

+1
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(array $params): FullRepository|WithoutBody
2930
{
3031
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\CreateForAuthenticatedUser($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator);

clients/GitHubEnterprise-3.9/src/Internal/Operator/Repos/CreateInOrg.php

+1
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(string $org, array $params): FullRepository
2829
{
2930
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\CreateInOrg($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org);

clients/GitHubEnterprise-3.9/src/Internal/Operator/Repos/CreateOrUpdateEnvironment.php

+1
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(string $owner, string $repo, string $environmentName, array $params): Environment
2829
{
2930
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\CreateOrUpdateEnvironment($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $environmentName);

clients/GitHubEnterprise-3.9/src/Internal/Operator/Repos/CreateUsingTemplate.php

+1
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(string $templateOwner, string $templateRepo, array $params): FullRepository
2829
{
2930
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\CreateUsingTemplate($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $templateOwner, $templateRepo);

clients/GitHubEnterprise-3.9/src/Internal/Operator/Repos/DeleteAnEnvironment.php

+1
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(string $owner, string $repo, string $environmentName): WithoutBody
2627
{
2728
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\DeleteAnEnvironment($owner, $repo, $environmentName);

clients/GitHubEnterprise-3.9/src/Internal/Operator/Repos/DeleteDeploymentBranchPolicy.php

+1
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(string $owner, string $repo, string $environmentName, int $branchPolicyId): WithoutBody
2627
{
2728
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\DeleteDeploymentBranchPolicy($owner, $repo, $environmentName, $branchPolicyId);

clients/GitHubEnterprise-3.9/src/Internal/Operator/Repos/GetDeploymentBranchPolicy.php

+1
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(string $owner, string $repo, string $environmentName, int $branchPolicyId): DeploymentBranchPolicy
2829
{
2930
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\GetDeploymentBranchPolicy($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $environmentName, $branchPolicyId);

clients/GitHubEnterprise-3.9/src/Internal/Operator/Repos/GetEnvironment.php

+1
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(string $owner, string $repo, string $environmentName): Environment
2829
{
2930
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\GetEnvironment($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $environmentName);

clients/GitHubEnterprise-3.9/src/Internal/Operator/Repos/ListDeploymentBranchPolicies.php

+1
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(string $owner, string $repo, string $environmentName, int $perPage = 30, int $page = 1): Ok
2829
{
2930
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\ListDeploymentBranchPolicies($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $environmentName, $perPage, $page);

clients/GitHubEnterprise-3.9/src/Internal/Operator/Repos/UpdateDeploymentBranchPolicy.php

+1
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(string $owner, string $repo, string $environmentName, int $branchPolicyId, array $params): DeploymentBranchPolicy
2829
{
2930
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\UpdateDeploymentBranchPolicy($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $environmentName, $branchPolicyId);

clients/GitHubEnterprise-3.9/src/Internal/Router/Delete/Actions.php

+2
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ public function deleteRepoVariable(array $params): WithoutBody
226226
return $operator->call($arguments['owner'], $arguments['repo'], $arguments['name']);
227227
}
228228

229+
/** @return */
229230
public function deleteEnvironmentSecret(array $params): WithoutBody
230231
{
231232
$arguments = [];
@@ -252,6 +253,7 @@ public function deleteEnvironmentSecret(array $params): WithoutBody
252253
return $operator->call($arguments['repository_id'], $arguments['environment_name'], $arguments['secret_name']);
253254
}
254255

256+
/** @return */
255257
public function deleteEnvironmentVariable(array $params): WithoutBody
256258
{
257259
$arguments = [];

clients/GitHubEnterprise-3.9/src/Internal/Router/Delete/Eight.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function __construct(private Routers $routers)
1818
{
1919
}
2020

21-
/** @return |\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Observable<Schema\Label>|Schema\BasicError */
21+
/** @return |Observable<Schema\Label>|Schema\BasicError */
2222
public function call(string $call, array $params, array $pathChunks): WithoutBody|Ok|Json|iterable|BasicError|PullRequestReview
2323
{
2424
if ($pathChunks[0] === '') {

clients/GitHubEnterprise-3.9/src/Internal/Router/Delete/Repos.php

+2
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ public function deleteDeployment(array $params): WithoutBody
337337
return $operator->call($arguments['owner'], $arguments['repo'], $arguments['deployment_id']);
338338
}
339339

340+
/** @return */
340341
public function deleteAnEnvironment(array $params): WithoutBody
341342
{
342343
$arguments = [];
@@ -606,6 +607,7 @@ public function deleteAccessRestrictions(array $params): WithoutBody
606607
return $operator->call($arguments['owner'], $arguments['repo'], $arguments['branch']);
607608
}
608609

610+
/** @return */
609611
public function deleteDeploymentBranchPolicy(array $params): WithoutBody
610612
{
611613
$arguments = [];

clients/GitHubEnterprise-3.9/src/Internal/Router/Delete/Seven.php

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ public function __construct(private Routers $routers)
1919
{
2020
}
2121

22-
/** @return |\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody */
2322
public function call(string $call, array $params, array $pathChunks): WithoutBody|Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\RemoveAllCustomLabelsFromSelfHostedRunnerForOrg\Response\ApplicationJson\Ok\Application\Json|CodeScanningAnalysisDeletion|Issue|BasicError|PullRequestSimple
2423
{
2524
if ($pathChunks[0] === '') {

clients/GitHubEnterprise-3.9/src/Internal/Router/Delete/Six.php

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public function __construct(private Routers $routers)
1717
{
1818
}
1919

20-
/** @return |\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody */
2120
public function call(string $call, array $params, array $pathChunks): WithoutBody|ActionsCacheList|FileCommit|RepositoryPreReceiveHook
2221
{
2322
if ($pathChunks[0] === '') {

0 commit comments

Comments
 (0)