Skip to content

Commit 88d0ffa

Browse files
authored
[GitHubEnterpriseCloud] Update to 1.1.4-45dce2ed399472083195502444f0a800 from 1.1.4-a68c6acff2337ae2908ee4f5290d6811
Detected Schema changes: ERROR: error: Error thrown when comparing: local lookups are not permitted, please set AllowFileLookup to true in the configuration ERROR: local lookups are not permitted, please set AllowFileLookup to true in the configuration ERROR: component 'server-statistics-actions.yaml' does not exist in the specification ERROR: local lookups are not permitted, please set AllowFileLookup to true in the configuration ERROR: component 'server-statistics-packages.yaml' does not exist in the specification ERROR: cannot resolve reference `server-statistics-actions.yaml`, it's missing: [216118:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: [216120:11] ERROR: local lookups are not permitted, please set AllowFileLookup to true in the configuration ERROR: component 'server-statistics-actions.yaml' does not exist in the specification ERROR: local lookups are not permitted, please set AllowFileLookup to true in the configuration ERROR: component 'server-statistics-packages.yaml' does not exist in the specification ERROR: cannot resolve reference `server-statistics-actions.yaml`, it's missing: [215095:11] ERROR: cannot resolve reference `server-statistics-packages.yaml`, it's missing: [215097:11]
1 parent ee1035b commit 88d0ffa

File tree

306 files changed

+6460
-3172
lines changed

Some content is hidden

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

306 files changed

+6460
-3172
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,6 +1211,7 @@ List self-hosted runners for an enterprise
12111211
Using the `call` method:
12121212
```php
12131213
$client->call('GET /enterprises/{enterprise}/actions/runners', [
1214+
'name' => 'generated',
12141215
'enterprise' => 'generated',
12151216
'per_page' => 8,
12161217
'page' => 1,
@@ -1219,7 +1220,8 @@ $client->call('GET /enterprises/{enterprise}/actions/runners', [
12191220

12201221
Operations method:
12211222
```php
1222-
$client->operations()->enterpriseAdmin()->listSelfHostedRunnersForEnterprise( enterprise: 'generated',
1223+
$client->operations()->enterpriseAdmin()->listSelfHostedRunnersForEnterprise( name: 'generated',
1224+
enterprise: 'generated',
12231225
per_page: 8,
12241226
page: 1,
12251227
);
@@ -4027,6 +4029,7 @@ List self-hosted runners for an organization
40274029
Using the `call` method:
40284030
```php
40294031
$client->call('GET /orgs/{org}/actions/runners', [
4032+
'name' => 'generated',
40304033
'org' => 'generated',
40314034
'per_page' => 8,
40324035
'page' => 1,
@@ -4035,7 +4038,8 @@ $client->call('GET /orgs/{org}/actions/runners', [
40354038

40364039
Operations method:
40374040
```php
4038-
$client->operations()->actions()->listSelfHostedRunnersForOrg( org: 'generated',
4041+
$client->operations()->actions()->listSelfHostedRunnersForOrg( name: 'generated',
4042+
org: 'generated',
40394043
per_page: 8,
40404044
page: 1,
40414045
);
@@ -11068,6 +11072,7 @@ List self-hosted runners for a repository
1106811072
Using the `call` method:
1106911073
```php
1107011074
$client->call('GET /repos/{owner}/{repo}/actions/runners', [
11075+
'name' => 'generated',
1107111076
'owner' => 'generated',
1107211077
'repo' => 'generated',
1107311078
'per_page' => 8,
@@ -11077,7 +11082,8 @@ $client->call('GET /repos/{owner}/{repo}/actions/runners', [
1107711082

1107811083
Operations method:
1107911084
```php
11080-
$client->operations()->actions()->listSelfHostedRunnersForRepo( owner: 'generated',
11085+
$client->operations()->actions()->listSelfHostedRunnersForRepo( name: 'generated',
11086+
owner: 'generated',
1108111087
repo: 'generated',
1108211088
per_page: 8,
1108311089
page: 1,

etc/openapi-client-generator.state

Lines changed: 336 additions & 304 deletions
Large diffs are not rendered by default.

src/Client.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/ClientInterface.php

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/Internal/Operation/Actions/ListSelfHostedRunnersForOrg.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,26 @@ final class ListSelfHostedRunnersForOrg
2323
public const OPERATION_MATCH = 'GET /orgs/{org}/actions/runners';
2424
private const METHOD = 'GET';
2525
private const PATH = '/orgs/{org}/actions/runners';
26+
/**The name of a self-hosted runner. **/
27+
private string $name;
2628
/**The organization name. The name is not case sensitive. **/
2729
private string $org;
2830
/**The number of results per page (max 100). **/
2931
private int $perPage;
3032
/**Page number of the results to fetch. **/
3133
private int $page;
3234

33-
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Actions\Runners $hydrator, string $org, int $perPage = 30, int $page = 1)
35+
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\Actions\Runners $hydrator, string $name, string $org, int $perPage = 30, int $page = 1)
3436
{
37+
$this->name = $name;
3538
$this->org = $org;
3639
$this->perPage = $perPage;
3740
$this->page = $page;
3841
}
3942

4043
public function createRequest(): RequestInterface
4144
{
42-
return new Request(self::METHOD, str_replace(['{org}', '{per_page}', '{page}'], [$this->org, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}'));
45+
return new Request(self::METHOD, str_replace(['{name}', '{org}', '{per_page}', '{page}'], [$this->name, $this->org, $this->perPage, $this->page], self::PATH . '?name={name}&per_page={per_page}&page={page}'));
4346
}
4447

4548
public function createResponse(ResponseInterface $response): Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok

src/Internal/Operation/Actions/ListSelfHostedRunnersForRepo.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ final class ListSelfHostedRunnersForRepo
2323
public const OPERATION_MATCH = 'GET /repos/{owner}/{repo}/actions/runners';
2424
private const METHOD = 'GET';
2525
private const PATH = '/repos/{owner}/{repo}/actions/runners';
26+
/**The name of a self-hosted runner. **/
27+
private string $name;
2628
/**The account owner of the repository. The name is not case sensitive. **/
2729
private string $owner;
2830
/**The name of the repository without the `.git` extension. The name is not case sensitive. **/
@@ -32,8 +34,9 @@ final class ListSelfHostedRunnersForRepo
3234
/**Page number of the results to fetch. **/
3335
private int $page;
3436

35-
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Actions\Runners $hydrator, string $owner, string $repo, int $perPage = 30, int $page = 1)
37+
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Actions\Runners $hydrator, string $name, string $owner, string $repo, int $perPage = 30, int $page = 1)
3638
{
39+
$this->name = $name;
3740
$this->owner = $owner;
3841
$this->repo = $repo;
3942
$this->perPage = $perPage;
@@ -42,7 +45,7 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali
4245

4346
public function createRequest(): RequestInterface
4447
{
45-
return new Request(self::METHOD, str_replace(['{owner}', '{repo}', '{per_page}', '{page}'], [$this->owner, $this->repo, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}'));
48+
return new Request(self::METHOD, str_replace(['{name}', '{owner}', '{repo}', '{per_page}', '{page}'], [$this->name, $this->owner, $this->repo, $this->perPage, $this->page], self::PATH . '?name={name}&per_page={per_page}&page={page}'));
4649
}
4750

4851
public function createResponse(ResponseInterface $response): Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json

src/Internal/Operation/EnterpriseAdmin/ListSelfHostedRunnersForEnterprise.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,26 @@ final class ListSelfHostedRunnersForEnterprise
2323
public const OPERATION_MATCH = 'GET /enterprises/{enterprise}/actions/runners';
2424
private const METHOD = 'GET';
2525
private const PATH = '/enterprises/{enterprise}/actions/runners';
26+
/**The name of a self-hosted runner. **/
27+
private string $name;
2628
/**The slug version of the enterprise name. You can also substitute this value with the enterprise id. **/
2729
private string $enterprise;
2830
/**The number of results per page (max 100). **/
2931
private int $perPage;
3032
/**Page number of the results to fetch. **/
3133
private int $page;
3234

33-
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\Runners $hydrator, string $enterprise, int $perPage = 30, int $page = 1)
35+
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Enterprises\Enterprise\Actions\Runners $hydrator, string $name, string $enterprise, int $perPage = 30, int $page = 1)
3436
{
37+
$this->name = $name;
3538
$this->enterprise = $enterprise;
3639
$this->perPage = $perPage;
3740
$this->page = $page;
3841
}
3942

4043
public function createRequest(): RequestInterface
4144
{
42-
return new Request(self::METHOD, str_replace(['{enterprise}', '{per_page}', '{page}'], [$this->enterprise, $this->perPage, $this->page], self::PATH . '?per_page={per_page}&page={page}'));
45+
return new Request(self::METHOD, str_replace(['{name}', '{enterprise}', '{per_page}', '{page}'], [$this->name, $this->enterprise, $this->perPage, $this->page], self::PATH . '?name={name}&per_page={per_page}&page={page}'));
4346
}
4447

4548
public function createResponse(ResponseInterface $response): Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok

src/Internal/Operator/Actions/ListSelfHostedRunnersForOrg.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Operator\Actions;
66

77
use ApiClients\Client\GitHubEnterpriseCloud\Internal;
8+
use ApiClients\Client\GitHubEnterpriseCloud\Schema;
89
use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok;
910
use ApiClients\Contracts\HTTP\Headers\AuthenticationInterface;
1011
use League\OpenAPIValidation\Schema\SchemaValidator;
@@ -24,10 +25,10 @@ public function __construct(private Browser $browser, private AuthenticationInte
2425
{
2526
}
2627

27-
/** @return */
28-
public function call(string $org, int $perPage = 30, int $page = 1): Ok|array
28+
/** @return Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok */
29+
public function call(string $name, string $org, int $perPage = 30, int $page = 1): Ok|array
2930
{
30-
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Actions\ListSelfHostedRunnersForOrg($this->responseSchemaValidator, $this->hydrator, $org, $perPage, $page);
31+
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Actions\ListSelfHostedRunnersForOrg($this->responseSchemaValidator, $this->hydrator, $name, $org, $perPage, $page);
3132
$request = $operation->createRequest();
3233
$result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Ok|array {
3334
return $operation->createResponse($response);

src/Internal/Operator/Actions/ListSelfHostedRunnersForRepo.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Operator\Actions;
66

77
use ApiClients\Client\GitHubEnterpriseCloud\Internal;
8+
use ApiClients\Client\GitHubEnterpriseCloud\Schema;
89
use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json;
910
use ApiClients\Contracts\HTTP\Headers\AuthenticationInterface;
1011
use League\OpenAPIValidation\Schema\SchemaValidator;
@@ -24,10 +25,10 @@ public function __construct(private Browser $browser, private AuthenticationInte
2425
{
2526
}
2627

27-
/** @return */
28-
public function call(string $owner, string $repo, int $perPage = 30, int $page = 1): Json|array
28+
/** @return Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json */
29+
public function call(string $name, string $owner, string $repo, int $perPage = 30, int $page = 1): Json|array
2930
{
30-
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Actions\ListSelfHostedRunnersForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $perPage, $page);
31+
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Actions\ListSelfHostedRunnersForRepo($this->responseSchemaValidator, $this->hydrator, $name, $owner, $repo, $perPage, $page);
3132
$request = $operation->createRequest();
3233
$result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Json|array {
3334
return $operation->createResponse($response);

src/Internal/Operator/EnterpriseAdmin/ListSelfHostedRunnersForEnterprise.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace ApiClients\Client\GitHubEnterpriseCloud\Internal\Operator\EnterpriseAdmin;
66

77
use ApiClients\Client\GitHubEnterpriseCloud\Internal;
8+
use ApiClients\Client\GitHubEnterpriseCloud\Schema;
89
use ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok;
910
use ApiClients\Contracts\HTTP\Headers\AuthenticationInterface;
1011
use League\OpenAPIValidation\Schema\SchemaValidator;
@@ -24,10 +25,10 @@ public function __construct(private Browser $browser, private AuthenticationInte
2425
{
2526
}
2627

27-
/** @return */
28-
public function call(string $enterprise, int $perPage = 30, int $page = 1): Ok|array
28+
/** @return Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok */
29+
public function call(string $name, string $enterprise, int $perPage = 30, int $page = 1): Ok|array
2930
{
30-
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise($this->responseSchemaValidator, $this->hydrator, $enterprise, $perPage, $page);
31+
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise($this->responseSchemaValidator, $this->hydrator, $name, $enterprise, $perPage, $page);
3132
$request = $operation->createRequest();
3233
$result = await($this->browser->request($request->getMethod(), (string) $request->getUri(), $request->withHeader('Authorization', $this->authentication->authHeader())->getHeaders(), (string) $request->getBody())->then(static function (ResponseInterface $response) use ($operation): Ok|array {
3334
return $operation->createResponse($response);

0 commit comments

Comments
 (0)