Skip to content

Commit 547548a

Browse files
authored
Merge pull request #1481 from php-api-clients/GitHubEnterprise-3.14/from-1.1.4-560f263b37d18da211a6122a0343d80c-from-1.1.4-560f263b37d18da211a6122a0343d80c
2 parents 7d57a6b + 4ad5fe2 commit 547548a

23 files changed

+64
-1001
lines changed

clients/GitHubEnterprise-3.14/README.md

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -15992,14 +15992,8 @@ $client->call('GET /repos/{owner}/{repo}/dependabot/alerts', [
1599215992
'package' => 'generated',
1599315993
'manifest' => 'generated',
1599415994
'scope' => 'generated',
15995-
'before' => 'generated',
15996-
'after' => 'generated',
15997-
'last' => 4,
1599815995
'sort' => 'generated',
1599915996
'direction' => 'generated',
16000-
'page' => 1,
16001-
'per_page' => 8,
16002-
'first' => 5,
1600315997
]);
1600415998
```
1600515999

@@ -16013,64 +16007,8 @@ $client->operations()->dependabot()->listAlertsForRepo( owner: 'generated
1601316007
package: 'generated',
1601416008
manifest: 'generated',
1601516009
scope: 'generated',
16016-
before: 'generated',
16017-
after: 'generated',
16018-
last: 4,
16019-
sort: 'generated',
16020-
direction: 'generated',
16021-
page: 1,
16022-
per_page: 8,
16023-
first: 5,
16024-
);
16025-
```
16026-
16027-
You can find more about this operation over at the [API method documentation](https://docs.github.com/[email protected]/rest/dependabot/alerts#list-dependabot-alerts-for-a-repository).
16028-
16029-
16030-
### dependabot/list-alerts-for-repo
16031-
16032-
List Dependabot alerts for a repository
16033-
16034-
Using the `call` method:
16035-
```php
16036-
$client->call('LIST /repos/{owner}/{repo}/dependabot/alerts', [
16037-
'owner' => 'generated',
16038-
'repo' => 'generated',
16039-
'state' => 'generated',
16040-
'severity' => 'generated',
16041-
'ecosystem' => 'generated',
16042-
'package' => 'generated',
16043-
'manifest' => 'generated',
16044-
'scope' => 'generated',
16045-
'before' => 'generated',
16046-
'after' => 'generated',
16047-
'last' => 4,
16048-
'sort' => 'generated',
16049-
'direction' => 'generated',
16050-
'page' => 1,
16051-
'per_page' => 8,
16052-
'first' => 5,
16053-
]);
16054-
```
16055-
16056-
Operations method:
16057-
```php
16058-
$client->operations()->dependabot()->listAlertsForRepoListing( owner: 'generated',
16059-
repo: 'generated',
16060-
state: 'generated',
16061-
severity: 'generated',
16062-
ecosystem: 'generated',
16063-
package: 'generated',
16064-
manifest: 'generated',
16065-
scope: 'generated',
16066-
before: 'generated',
16067-
after: 'generated',
16068-
last: 4,
1606916010
sort: 'generated',
1607016011
direction: 'generated',
16071-
page: 1,
16072-
per_page: 8,
16073-
first: 5,
1607416012
);
1607516013
```
1607616014

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

Lines changed: 17 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "401e653a83ab83c1b17a4df959fec270",
2+
"specHash": "560f263b37d18da211a6122a0343d80c",
33
"generatedFiles": {
44
"files": [
55
{
@@ -1592,11 +1592,11 @@
15921592
},
15931593
{
15941594
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operation\/Dependabot\/ListAlertsForEnterprise.php",
1595-
"hash": "a768a289485825395c09008cac606c28"
1595+
"hash": "3b3270adefe5ec75942a4ccd79e610af"
15961596
},
15971597
{
15981598
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForEnterprise.php",
1599-
"hash": "1f68b2e0be822f1fe631c2ecbf33af29"
1599+
"hash": "f4d6f6268171e5bdac4c36bd524d933e"
16001600
},
16011601
{
16021602
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForEnterpriseTest.php",
@@ -3260,11 +3260,11 @@
32603260
},
32613261
{
32623262
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operation\/Dependabot\/ListAlertsForOrg.php",
3263-
"hash": "0d3bffea1ed7fb85cfabf1b975525a9c"
3263+
"hash": "d39273a24ccf4b20e295969b3a9f33fc"
32643264
},
32653265
{
32663266
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForOrg.php",
3267-
"hash": "eea752ff872e32ab676814f4711443ce"
3267+
"hash": "e19123d6c0aeecf27c8c9359cfa37d73"
32683268
},
32693269
{
32703270
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForOrgTest.php",
@@ -7668,27 +7668,15 @@
76687668
},
76697669
{
76707670
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepo.php",
7671-
"hash": "b4dd50c08bd2051e9552c30ad118029d"
7671+
"hash": "e2a31798660ee93f5f79a31018642707"
76727672
},
76737673
{
76747674
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForRepo.php",
7675-
"hash": "8e6d6c30b30952cbf0c0a1812a9a20af"
7675+
"hash": "e422d820f3a178650a8a21a39af7414f"
76767676
},
76777677
{
76787678
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoTest.php",
7679-
"hash": "28a8f67065b11264db95c4e0a47f27dd"
7680-
},
7681-
{
7682-
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoListing.php",
7683-
"hash": "1e78ee02ccfeb20692dbae587c1d4c2e"
7684-
},
7685-
{
7686-
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForRepoListing.php",
7687-
"hash": "ef770952171600f29eb947006685fe61"
7688-
},
7689-
{
7690-
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoListingTest.php",
7691-
"hash": "03792a745ea0ae57a30c9e3f47679d23"
7679+
"hash": "32489b65c195edd0db74efe7a45fcce6"
76927680
},
76937681
{
76947682
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operation\/Dependabot\/GetAlert.php",
@@ -26812,7 +26800,7 @@
2681226800
},
2681326801
{
2681426802
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Dependabot.php",
26815-
"hash": "ca26062c508849ffeaf3e6115bd56cfd"
26803+
"hash": "111042e8c75e48fe50f41cf5f1bf5f32"
2681626804
},
2681726805
{
2681826806
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Checks.php",
@@ -26918,10 +26906,6 @@
2691826906
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/List\/Pulls.php",
2691926907
"hash": "9dcbc6375bebce019b66df58dadb40e6"
2692026908
},
26921-
{
26922-
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/List\/Dependabot.php",
26923-
"hash": "a37ef0f86dd26e1735a1af6e096218d8"
26924-
},
2692526909
{
2692626910
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/List\/Reactions.php",
2692726911
"hash": "ac214dcaa2451d757ace609e4b7a793a"
@@ -27260,15 +27244,15 @@
2726027244
},
2726127245
{
2726227246
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
27263-
"hash": "e2d6b10c43a46b1771acf2174be392b6"
27247+
"hash": "d1a40c69474af4bf4be5a44e87865a51"
2726427248
},
2726527249
{
2726627250
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Two.php",
2726727251
"hash": "d1905900da5b62fabb0b324a38bb7279"
2726827252
},
2726927253
{
2727027254
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
27271-
"hash": "b07c3129c02039907ccb3a8d3d76e9cc"
27255+
"hash": "7b395922549e62b93ca3308420eac933"
2727227256
},
2727327257
{
2727427258
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
@@ -27304,7 +27288,7 @@
2730427288
},
2730527289
{
2730627290
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php",
27307-
"hash": "ff138dca37b30debc9205e3aaf48f5bd"
27291+
"hash": "48ef5001857b680a305472fbbc03d23e"
2730827292
},
2730927293
{
2731027294
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php",
@@ -27468,15 +27452,15 @@
2746827452
},
2746927453
{
2747027454
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Routers.php",
27471-
"hash": "fc876efb882b7740aed6d6a4452fd80d"
27455+
"hash": "e00ad38cc31869ef80a854e48dc8e9ee"
2747227456
},
2747327457
{
2747427458
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27475-
"hash": "11720efddd41579fcb646649ce2f9122"
27459+
"hash": "0ed3fe4b1429901a1b264d5f18be04b8"
2747627460
},
2747727461
{
2747827462
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27479-
"hash": "e1928270ac731557c8b43a0849a3bdff"
27463+
"hash": "48d85f190e7bae295c4e0a21673bc5db"
2748027464
},
2748127465
{
2748227466
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -27528,7 +27512,7 @@
2752827512
},
2752927513
{
2753027514
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Dependabot.php",
27531-
"hash": "d15ffa2ad0b303fb3a966cc261bb7493"
27515+
"hash": "08bd8e160023bd2237dee15bd8567253"
2753227516
},
2753327517
{
2753427518
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operation\/Billing.php",
@@ -27624,7 +27608,7 @@
2762427608
},
2762527609
{
2762627610
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Internal\/Operators.php",
27627-
"hash": "5cc4436a9892df971c94eb7a91f4d26f"
27611+
"hash": "4e96a277d70da8e39fcdeb94e5248d0d"
2762827612
},
2762927613
{
2763027614
"name": ".\/clients\/GitHubEnterprise-3.14\/etc\/..\/\/src\/\/Operations.php",

clients/GitHubEnterprise-3.14/src/Internal/Operation/Dependabot/ListAlertsForEnterprise.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ final class ListAlertsForEnterprise
5454
private int $last;
5555
/**The property by which to sort the results.
5656
`created` means when the alert was created.
57-
`updated` means when the alert's state last changed.
58-
`epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. **/
57+
`updated` means when the alert's state last changed. **/
5958
private string $sort;
6059
/**The direction to sort the results by. **/
6160
private string $direction;

clients/GitHubEnterprise-3.14/src/Internal/Operation/Dependabot/ListAlertsForOrg.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ final class ListAlertsForOrg
5454
private int $last;
5555
/**The property by which to sort the results.
5656
`created` means when the alert was created.
57-
`updated` means when the alert's state last changed.
58-
`epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. **/
57+
`updated` means when the alert's state last changed. **/
5958
private string $sort;
6059
/**The direction to sort the results by. **/
6160
private string $direction;

clients/GitHubEnterprise-3.14/src/Internal/Operation/Dependabot/ListAlertsForRepo.php

Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -48,31 +48,14 @@ final class ListAlertsForRepo
4848
private string $manifest;
4949
/**The scope of the vulnerable dependency. If specified, only alerts with this scope will be returned. **/
5050
private string $scope;
51-
/**A cursor, as given in the [Link header](https://docs.github.com/[email protected]/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results before this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/[email protected]/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
52-
private string $before;
53-
/**A cursor, as given in the [Link header](https://docs.github.com/[email protected]/rest/guides/using-pagination-in-the-rest-api#using-link-headers). If specified, the query only searches for results after this cursor. For more information, see "[Using pagination in the REST API](https://docs.github.com/[email protected]/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
54-
private string $after;
55-
/****Deprecated**. The number of results per page (max 100), starting from the last matching result.
56-
This parameter must not be used in combination with `first`.
57-
Instead, use `per_page` in combination with `before` to fetch the last page of results. **/
58-
private int $last;
5951
/**The property by which to sort the results.
6052
`created` means when the alert was created.
61-
`updated` means when the alert's state last changed.
62-
`epss_percentage` sorts alerts by the Exploit Prediction Scoring System (EPSS) percentage. **/
53+
`updated` means when the alert's state last changed. **/
6354
private string $sort;
6455
/**The direction to sort the results by. **/
6556
private string $direction;
66-
/****Closing down notice**. Page number of the results to fetch. Use cursor-based pagination with `before` or `after` instead. **/
67-
private int $page;
68-
/**The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/[email protected]/rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
69-
private int $perPage;
70-
/****Deprecated**. The number of results per page (max 100), starting from the first matching result.
71-
This parameter must not be used in combination with `last`.
72-
Instead, use `per_page` in combination with `after` to fetch the first page of results. **/
73-
private int $first;
74-
75-
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Dependabot\Alerts $hydrator, string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, string $scope, string $before, string $after, int $last, string $sort = 'created', string $direction = 'desc', int $page = 1, int $perPage = 30, int $first = 30)
57+
58+
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Repos\Owner\Repo\Dependabot\Alerts $hydrator, string $owner, string $repo, string $state, string $severity, string $ecosystem, string $package, string $manifest, string $scope, string $sort = 'created', string $direction = 'desc')
7659
{
7760
$this->owner = $owner;
7861
$this->repo = $repo;
@@ -82,19 +65,13 @@ public function __construct(private readonly SchemaValidator $responseSchemaVali
8265
$this->package = $package;
8366
$this->manifest = $manifest;
8467
$this->scope = $scope;
85-
$this->before = $before;
86-
$this->after = $after;
87-
$this->last = $last;
8868
$this->sort = $sort;
8969
$this->direction = $direction;
90-
$this->page = $page;
91-
$this->perPage = $perPage;
92-
$this->first = $first;
9370
}
9471

9572
public function createRequest(): RequestInterface
9673
{
97-
return new Request('GET', str_replace(['{owner}', '{repo}', '{state}', '{severity}', '{ecosystem}', '{package}', '{manifest}', '{scope}', '{before}', '{after}', '{last}', '{sort}', '{direction}', '{page}', '{per_page}', '{first}'], [$this->owner, $this->repo, $this->state, $this->severity, $this->ecosystem, $this->package, $this->manifest, $this->scope, $this->before, $this->after, $this->last, $this->sort, $this->direction, $this->page, $this->perPage, $this->first], '/repos/{owner}/{repo}/dependabot/alerts' . '?state={state}&severity={severity}&ecosystem={ecosystem}&package={package}&manifest={manifest}&scope={scope}&before={before}&after={after}&last={last}&sort={sort}&direction={direction}&page={page}&per_page={per_page}&first={first}'));
74+
return new Request('GET', str_replace(['{owner}', '{repo}', '{state}', '{severity}', '{ecosystem}', '{package}', '{manifest}', '{scope}', '{sort}', '{direction}'], [$this->owner, $this->repo, $this->state, $this->severity, $this->ecosystem, $this->package, $this->manifest, $this->scope, $this->sort, $this->direction], '/repos/{owner}/{repo}/dependabot/alerts' . '?state={state}&severity={severity}&ecosystem={ecosystem}&package={package}&manifest={manifest}&scope={scope}&sort={sort}&direction={direction}'));
9875
}
9976

10077
/** @return Observable<Schema\DependabotAlert>|WithoutBody */

0 commit comments

Comments
 (0)