Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
594 changes: 297 additions & 297 deletions clients/GitHubEnterprise-3.7/etc/openapi-client-generator.state

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
$properties['packages'] = $value;

after_packages:

$value = $payload['actions'] ?? null;

if ($value === null) {
$properties['actions'] = null;
goto after_actions;
}

$properties['actions'] = $value;

after_actions:
} catch (Throwable $exception) {
throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterprise\Schema\ApiOverview\Domains', $exception, stack: $this->hydrationStack);
}
Expand Down Expand Up @@ -411,6 +422,21 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
$packages = $packagesSerializer0->serialize($packages, $this);
after_packages: $result['packages'] = $packages;

$actions = $object->actions;

if ($actions === null) {
goto after_actions;
}

static $actionsSerializer0;

if ($actionsSerializer0 === null) {
$actionsSerializer0 = new SerializeArrayItems(...[]);
}

$actions = $actionsSerializer0->serialize($actions, $this);
after_actions: $result['actions'] = $actions;

return $result;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(int $repositoryId, string $environmentName, string $secretName, array $params): EmptyObject|WithoutBody
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Actions\CreateOrUpdateEnvironmentSecret($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $repositoryId, $environmentName, $secretName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(int $repositoryId, string $environmentName, string $secretName): WithoutBody
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Actions\DeleteEnvironmentSecret($repositoryId, $environmentName, $secretName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(int $repositoryId, string $environmentName): ActionsPublicKey
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Actions\GetEnvironmentPublicKey($this->responseSchemaValidator, $this->hydrator, $repositoryId, $environmentName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(int $repositoryId, string $environmentName, string $secretName): ActionsSecret
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Actions\GetEnvironmentSecret($this->responseSchemaValidator, $this->hydrator, $repositoryId, $environmentName, $secretName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(int $repositoryId, string $environmentName, int $perPage = 30, int $page = 1): Json
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Actions\ListEnvironmentSecrets($this->responseSchemaValidator, $this->hydrator, $repositoryId, $environmentName, $perPage, $page);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $owner, string $repo, string $environmentName, array $params): DeploymentBranchPolicy|WithoutBody
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\CreateDeploymentBranchPolicy($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $environmentName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(array $params): FullRepository|WithoutBody
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\CreateForAuthenticatedUser($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $org, array $params): FullRepository
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\CreateInOrg($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $owner, string $repo, string $environmentName, array $params): Environment
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\CreateOrUpdateEnvironment($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $environmentName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $templateOwner, string $templateRepo, array $params): FullRepository
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\CreateUsingTemplate($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $templateOwner, $templateRepo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $owner, string $repo, string $environmentName): WithoutBody
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\DeleteAnEnvironment($owner, $repo, $environmentName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $owner, string $repo, string $environmentName, int $branchPolicyId): WithoutBody
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\DeleteDeploymentBranchPolicy($owner, $repo, $environmentName, $branchPolicyId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $owner, string $repo, string $environmentName, int $branchPolicyId): DeploymentBranchPolicy
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\GetDeploymentBranchPolicy($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $environmentName, $branchPolicyId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $owner, string $repo, string $environmentName): Environment
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\GetEnvironment($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $environmentName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $owner, string $repo, string $environmentName, int $perPage = 30, int $page = 1): Ok
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\ListDeploymentBranchPolicies($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $environmentName, $perPage, $page);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $owner, string $repo, string $environmentName, int $branchPolicyId, array $params): DeploymentBranchPolicy
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\UpdateDeploymentBranchPolicy($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $owner, $repo, $environmentName, $branchPolicyId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ public function deleteRepoSecret(array $params): WithoutBody
return $operator->call($arguments['owner'], $arguments['repo'], $arguments['secret_name']);
}

/** @return */
public function deleteEnvironmentSecret(array $params): WithoutBody
{
$arguments = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(private Routers $routers)
{
}

/** @return |\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Observable<Schema\Label>|Schema\BasicError */
/** @return |Observable<Schema\Label>|Schema\BasicError */
public function call(string $call, array $params, array $pathChunks): WithoutBody|Ok|Json|iterable|BasicError|PullRequestReview
{
if ($pathChunks[0] === '') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ public function deleteDeployment(array $params): WithoutBody
return $operator->call($arguments['owner'], $arguments['repo'], $arguments['deployment_id']);
}

/** @return */
public function deleteAnEnvironment(array $params): WithoutBody
{
$arguments = [];
Expand Down Expand Up @@ -585,6 +586,7 @@ public function deleteAccessRestrictions(array $params): WithoutBody
return $operator->call($arguments['owner'], $arguments['repo'], $arguments['branch']);
}

/** @return */
public function deleteDeploymentBranchPolicy(array $params): WithoutBody
{
$arguments = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ public function __construct(private Routers $routers)
{
}

/** @return |\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody */
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
{
if ($pathChunks[0] === '') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public function __construct(private Routers $routers)
{
}

/** @return |\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody */
public function call(string $call, array $params, array $pathChunks): WithoutBody|ActionsCacheList|FileCommit|RepositoryPreReceiveHook
{
if ($pathChunks[0] === '') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ public function listRepoWorkflows(array $params): \ApiClients\Client\GitHubEnter
return $operator->call($arguments['owner'], $arguments['repo'], $arguments['per_page'], $arguments['page']);
}

/** @return */
public function listEnvironmentSecrets(array $params): \ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json
{
$arguments = [];
Expand Down Expand Up @@ -1139,6 +1140,7 @@ public function getWorkflow(array $params): Workflow
return $operator->call($arguments['owner'], $arguments['repo'], $arguments['workflow_id']);
}

/** @return */
public function getEnvironmentPublicKey(array $params): ActionsPublicKey
{
$arguments = [];
Expand All @@ -1159,6 +1161,7 @@ public function getEnvironmentPublicKey(array $params): ActionsPublicKey
return $operator->call($arguments['repository_id'], $arguments['environment_name']);
}

/** @return */
public function getEnvironmentSecret(array $params): ActionsSecret
{
$arguments = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(private Routers $routers)
{
}

/** @return Observable<Schema\TeamDiscussionComment>|Observable<Schema\Reaction>||Observable<Schema\EnvironmentApprovals>|Observable<Schema\PendingDeployment>|Observable<Schema\CodeScanningAlertInstance>|Schema\DeploymentBranchPolicy|Observable<Schema\SecretScanningLocation>|WithoutBody */
/** @return Observable<Schema\TeamDiscussionComment>|Observable<Schema\Reaction>||Observable<Schema\EnvironmentApprovals>|Observable<Schema\PendingDeployment>|Observable<Schema\CodeScanningAlertInstance>|Observable<Schema\SecretScanningLocation>|WithoutBody */
public function call(string $call, array $params, array $pathChunks): iterable|TeamRepository|WithoutBody|OidcCustomSubRepo|Ok|Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListJobsForWorkflowRun\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListWorkflowRuns\Response\ApplicationJson\Ok\Application\Json|ProtectedBranchAdminEnforced|ProtectedBranchPullRequestReview|StatusCheckPolicy|BranchRestrictionPolicy|DeploymentStatus|DeploymentBranchPolicy|HookDelivery|PullRequestReview
{
if ($pathChunks[0] === '') {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ public function getDeployment(array $params): Deployment
return $operator->call($arguments['owner'], $arguments['repo'], $arguments['deployment_id']);
}

/** @return */
public function getEnvironment(array $params): Environment
{
$arguments = [];
Expand Down Expand Up @@ -1903,6 +1904,7 @@ public function listDeploymentStatuses(array $params): iterable
return $operator->call($arguments['owner'], $arguments['repo'], $arguments['deployment_id'], $arguments['per_page'], $arguments['page']);
}

/** @return */
public function listDeploymentBranchPolicies(array $params): \ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok
{
$arguments = [];
Expand Down Expand Up @@ -2322,6 +2324,7 @@ public function getDeploymentStatus(array $params): DeploymentStatus
return $operator->call($arguments['owner'], $arguments['repo'], $arguments['deployment_id'], $arguments['status_id']);
}

/** @return */
public function getDeploymentBranchPolicy(array $params): DeploymentBranchPolicy
{
$arguments = [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function __construct(private Routers $routers)
{
}

/** @return |Observable<Schema\RunnerApplication>|Observable<Schema\CheckAnnotation>|Observable<Schema\Reaction>|Observable<Schema\BranchShort>|Observable<Schema\CommitComment>|Observable<Schema\PullRequestSimple>|Observable<Schema\Status>|Schema\BasicError|Observable<Schema\DependencyGraphDiff>|Observable<Schema\DeploymentStatus>|Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|Observable<Schema\GitRef>|Observable<Schema\HookDeliveryItem>|Observable<Schema\IssueComment>|Observable<Schema\LabeledIssueEvent|Schema\UnlabeledIssueEvent|Schema\AssignedIssueEvent|Schema\UnassignedIssueEvent|Schema\MilestonedIssueEvent|Schema\DemilestonedIssueEvent|Schema\RenamedIssueEvent|Schema\ReviewRequestedIssueEvent|Schema\ReviewRequestRemovedIssueEvent|Schema\ReviewDismissedIssueEvent|Schema\LockedIssueEvent|Schema\AddedToProjectIssueEvent|Schema\MovedColumnInProjectIssueEvent|Schema\RemovedFromProjectIssueEvent|Schema\ConvertedNoteToIssueIssueEvent>|Observable<Schema\Label>|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable<Schema\PullRequestReviewComment>|Observable<Schema\Commit>|Observable<Schema\DiffEntry>|Observable<Schema\PullRequestReview>|Observable<Schema\ReleaseAsset>|Schema\ActionsPublicKey|Schema\ActionsSecret */
/** @return |Observable<Schema\RunnerApplication>|Observable<Schema\CheckAnnotation>|Observable<Schema\Reaction>|Observable<Schema\BranchShort>|Observable<Schema\CommitComment>|Observable<Schema\PullRequestSimple>|Observable<Schema\Status>|Schema\BasicError|Observable<Schema\DependencyGraphDiff>|Observable<Schema\DeploymentStatus>|Observable<Schema\GitRef>|Observable<Schema\HookDeliveryItem>|Observable<Schema\IssueComment>|Observable<Schema\LabeledIssueEvent|Schema\UnlabeledIssueEvent|Schema\AssignedIssueEvent|Schema\UnassignedIssueEvent|Schema\MilestonedIssueEvent|Schema\DemilestonedIssueEvent|Schema\RenamedIssueEvent|Schema\ReviewRequestedIssueEvent|Schema\ReviewRequestRemovedIssueEvent|Schema\ReviewDismissedIssueEvent|Schema\LockedIssueEvent|Schema\AddedToProjectIssueEvent|Schema\MovedColumnInProjectIssueEvent|Schema\RemovedFromProjectIssueEvent|Schema\ConvertedNoteToIssueIssueEvent>|Observable<Schema\Label>|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable<Schema\PullRequestReviewComment>|Observable<Schema\Commit>|Observable<Schema\DiffEntry>|Observable<Schema\PullRequestReview>|Observable<Schema\ReleaseAsset> */
public function call(string $call, array $params, array $pathChunks): Json|Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok|OidcCustomSub|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|HookDelivery|TeamDiscussion|TeamMembership|WithoutBody|TeamProject|Artifact|ActionsCacheUsageByRepository|ActionsCacheUsagePolicyForRepository|Job|ActionsWorkflowAccessToRepository|SelectedActions|ActionsGetDefaultWorkflowPermissions|iterable|Runner|WorkflowRun|ActionsPublicKey|ActionsSecret|Workflow|BranchProtection|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|CodeScanningAlert|CodeScanningAnalysis|CodeScanningSarifsStatus|RepositoryCollaboratorPermission|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|CombinedCommitStatus|BasicError|DependabotPublicKey|DependabotSecret|\ApiClients\Client\GitHubEnterprise\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|Blob|GitCommit|GitRef|GitTag|GitTree|WebhookConfig|IssueComment|IssueEvent|PageBuild|PullRequestReviewComment|PullRequestReviewRequest|ReleaseAsset|Release|SecretScanningAlert|TeamDiscussionComment
{
if ($pathChunks[0] === '') {
Expand Down
Loading