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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
672 changes: 352 additions & 320 deletions clients/GitHubEnterprise-3.10/etc/openapi-client-generator.state

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,62 @@ public function cast(mixed $value, ObjectMapper $hydrator): mixed
} catch (Throwable) {
}
}

if ($signature === 'discussion_title_url') {
try {
return $hydrator->hydrateObject(Schema\SecretScanningLocationDiscussionTitle::class, $value);
} catch (Throwable) {
}
}

if ($signature === 'discussion_body_url') {
try {
return $hydrator->hydrateObject(Schema\SecretScanningLocationDiscussionBody::class, $value);
} catch (Throwable) {
}
}

if ($signature === 'discussion_comment_url') {
try {
return $hydrator->hydrateObject(Schema\SecretScanningLocationDiscussionComment::class, $value);
} catch (Throwable) {
}
}

if ($signature === 'pull_request_title_url') {
try {
return $hydrator->hydrateObject(Schema\SecretScanningLocationPullRequestTitle::class, $value);
} catch (Throwable) {
}
}

if ($signature === 'pull_request_body_url') {
try {
return $hydrator->hydrateObject(Schema\SecretScanningLocationPullRequestBody::class, $value);
} catch (Throwable) {
}
}

if ($signature === 'pull_request_comment_url') {
try {
return $hydrator->hydrateObject(Schema\SecretScanningLocationPullRequestComment::class, $value);
} catch (Throwable) {
}
}

if ($signature === 'pull_request_review_url') {
try {
return $hydrator->hydrateObject(Schema\SecretScanningLocationPullRequestReview::class, $value);
} catch (Throwable) {
}
}

if ($signature === 'pull_request_review_comment_url') {
try {
return $hydrator->hydrateObject(Schema\SecretScanningLocationPullRequestReviewComment::class, $value);
} catch (Throwable) {
}
}
}

return $value;
Expand Down
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 @@ -4518,6 +4518,14 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationIssueTitle' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationIssueTitle($details),
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationIssueBody' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationIssueBody($details),
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationIssueComment' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationIssueComment($details),
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationDiscussionTitle' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationDiscussionTitle($details),
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationDiscussionBody' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationDiscussionBody($details),
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationDiscussionComment' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationDiscussionComment($details),
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationPullRequestTitle' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationPullRequestTitle($details),
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationPullRequestBody' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationPullRequestBody($details),
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationPullRequestComment' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationPullRequestComment($details),
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationPullRequestReview' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationPullRequestReview($details),
'ApiClients\Client\GitHubEnterprise\Schema\SecretScanningLocationPullRequestReviewComment' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema⚡️SecretScanningLocationPullRequestReviewComment($details),
};
after_details: $result['details'] = $details;

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, array $params): EmptyObject
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Actions\CreateEnvironmentVariable($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $repositoryId, $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(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 @@ -22,6 +22,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(int $repositoryId, string $name, string $environmentName): WithoutBody
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Actions\DeleteEnvironmentVariable($repositoryId, $name, $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): 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, string $name): ActionsVariable
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Actions\GetEnvironmentVariable($this->responseSchemaValidator, $this->hydrator, $repositoryId, $environmentName, $name);
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 @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

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

/** @return */
public function call(int $repositoryId, string $name, string $environmentName, array $params): WithoutBody
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Actions\UpdateEnvironmentVariable($this->requestSchemaValidator, $repositoryId, $name, $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(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 @@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $environmentName, string $repo, string $owner, array $params): DeploymentProtectionRule
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\CreateDeploymentProtectionRule($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $environmentName, $repo, $owner);
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 @@ -22,6 +22,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
{
}

/** @return */
public function call(string $environmentName, string $repo, string $owner, int $protectionRuleId): WithoutBody
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\DisableDeploymentProtectionRule($environmentName, $repo, $owner, $protectionRuleId);
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 $environmentName, string $repo, string $owner): Ok
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\GetAllDeploymentProtectionRules($this->responseSchemaValidator, $this->hydrator, $environmentName, $repo, $owner);
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 $protectionRuleId): DeploymentProtectionRule
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\GetCustomDeploymentProtectionRule($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $environmentName, $protectionRuleId);
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 $environmentName, string $repo, string $owner, int $page = 1, int $perPage = 30): Ok
{
$operation = new \ApiClients\Client\GitHubEnterprise\Internal\Operation\Repos\ListCustomDeploymentRuleIntegrations($this->responseSchemaValidator, $this->hydrator, $environmentName, $repo, $owner, $page, $perPage);
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 @@ -226,6 +226,7 @@ public function deleteRepoVariable(array $params): WithoutBody
return $operator->call($arguments['owner'], $arguments['repo'], $arguments['name']);
}

/** @return */
public function deleteEnvironmentSecret(array $params): WithoutBody
{
$arguments = [];
Expand All @@ -252,6 +253,7 @@ public function deleteEnvironmentSecret(array $params): WithoutBody
return $operator->call($arguments['repository_id'], $arguments['environment_name'], $arguments['secret_name']);
}

/** @return */
public function deleteEnvironmentVariable(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 @@ -337,6 +337,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 @@ -606,6 +607,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 Expand Up @@ -638,6 +640,7 @@ public function deleteDeploymentBranchPolicy(array $params): WithoutBody
return $operator->call($arguments['owner'], $arguments['repo'], $arguments['environment_name'], $arguments['branch_policy_id']);
}

/** @return */
public function disableDeploymentProtectionRule(array $params): WithoutBody
{
$arguments = [];
Expand Down
Loading