Skip to content

Commit f08b406

Browse files
authored
Merge pull request #1482 from php-api-clients/GitHubEnterprise-3.15/from-1.1.4-64f3614e3a2420f2e1d792c6db1487f6-from-1.1.4-64f3614e3a2420f2e1d792c6db1487f6
2 parents 547548a + a0c9065 commit f08b406

23 files changed

+64
-1001
lines changed

clients/GitHubEnterprise-3.15/README.md

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -16242,14 +16242,8 @@ $client->call('GET /repos/{owner}/{repo}/dependabot/alerts', [
1624216242
'package' => 'generated',
1624316243
'manifest' => 'generated',
1624416244
'scope' => 'generated',
16245-
'before' => 'generated',
16246-
'after' => 'generated',
16247-
'last' => 4,
1624816245
'sort' => 'generated',
1624916246
'direction' => 'generated',
16250-
'page' => 1,
16251-
'per_page' => 8,
16252-
'first' => 5,
1625316247
]);
1625416248
```
1625516249

@@ -16263,64 +16257,8 @@ $client->operations()->dependabot()->listAlertsForRepo( owner: 'generated
1626316257
package: 'generated',
1626416258
manifest: 'generated',
1626516259
scope: 'generated',
16266-
before: 'generated',
16267-
after: 'generated',
16268-
last: 4,
16269-
sort: 'generated',
16270-
direction: 'generated',
16271-
page: 1,
16272-
per_page: 8,
16273-
first: 5,
16274-
);
16275-
```
16276-
16277-
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).
16278-
16279-
16280-
### dependabot/list-alerts-for-repo
16281-
16282-
List Dependabot alerts for a repository
16283-
16284-
Using the `call` method:
16285-
```php
16286-
$client->call('LIST /repos/{owner}/{repo}/dependabot/alerts', [
16287-
'owner' => 'generated',
16288-
'repo' => 'generated',
16289-
'state' => 'generated',
16290-
'severity' => 'generated',
16291-
'ecosystem' => 'generated',
16292-
'package' => 'generated',
16293-
'manifest' => 'generated',
16294-
'scope' => 'generated',
16295-
'before' => 'generated',
16296-
'after' => 'generated',
16297-
'last' => 4,
16298-
'sort' => 'generated',
16299-
'direction' => 'generated',
16300-
'page' => 1,
16301-
'per_page' => 8,
16302-
'first' => 5,
16303-
]);
16304-
```
16305-
16306-
Operations method:
16307-
```php
16308-
$client->operations()->dependabot()->listAlertsForRepoListing( owner: 'generated',
16309-
repo: 'generated',
16310-
state: 'generated',
16311-
severity: 'generated',
16312-
ecosystem: 'generated',
16313-
package: 'generated',
16314-
manifest: 'generated',
16315-
scope: 'generated',
16316-
before: 'generated',
16317-
after: 'generated',
16318-
last: 4,
1631916260
sort: 'generated',
1632016261
direction: 'generated',
16321-
page: 1,
16322-
per_page: 8,
16323-
first: 5,
1632416262
);
1632516263
```
1632616264

clients/GitHubEnterprise-3.15/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": "304084ef72c17bb8078ef873b8a1f8e0",
2+
"specHash": "64f3614e3a2420f2e1d792c6db1487f6",
33
"generatedFiles": {
44
"files": [
55
{
@@ -1592,11 +1592,11 @@
15921592
},
15931593
{
15941594
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Dependabot\/ListAlertsForEnterprise.php",
1595-
"hash": "84b145683712982d41eb7a66817c53a0"
1595+
"hash": "1c49b8ec2fa130b9ba8a26640227ccc2"
15961596
},
15971597
{
15981598
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForEnterprise.php",
1599-
"hash": "1f68b2e0be822f1fe631c2ecbf33af29"
1599+
"hash": "f4d6f6268171e5bdac4c36bd524d933e"
16001600
},
16011601
{
16021602
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForEnterpriseTest.php",
@@ -3380,11 +3380,11 @@
33803380
},
33813381
{
33823382
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Dependabot\/ListAlertsForOrg.php",
3383-
"hash": "1050390075a18d0296db1b1e721817e1"
3383+
"hash": "11afd2fdb8f2f1ec34930ffc2d5d3098"
33843384
},
33853385
{
33863386
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForOrg.php",
3387-
"hash": "eea752ff872e32ab676814f4711443ce"
3387+
"hash": "e19123d6c0aeecf27c8c9359cfa37d73"
33883388
},
33893389
{
33903390
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForOrgTest.php",
@@ -7800,27 +7800,15 @@
78007800
},
78017801
{
78027802
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepo.php",
7803-
"hash": "975e7811e98b70232a189dec19f66aef"
7803+
"hash": "e2a31798660ee93f5f79a31018642707"
78047804
},
78057805
{
78067806
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForRepo.php",
7807-
"hash": "8e6d6c30b30952cbf0c0a1812a9a20af"
7807+
"hash": "e422d820f3a178650a8a21a39af7414f"
78087808
},
78097809
{
78107810
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoTest.php",
7811-
"hash": "28a8f67065b11264db95c4e0a47f27dd"
7812-
},
7813-
{
7814-
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoListing.php",
7815-
"hash": "4a00616c51f0de87bd4b4941a3b0a849"
7816-
},
7817-
{
7818-
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operator\/Dependabot\/ListAlertsForRepoListing.php",
7819-
"hash": "ef770952171600f29eb947006685fe61"
7820-
},
7821-
{
7822-
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Internal\/Operation\/Dependabot\/ListAlertsForRepoListingTest.php",
7823-
"hash": "03792a745ea0ae57a30c9e3f47679d23"
7811+
"hash": "32489b65c195edd0db74efe7a45fcce6"
78247812
},
78257813
{
78267814
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operation\/Dependabot\/GetAlert.php",
@@ -26776,7 +26764,7 @@
2677626764
},
2677726765
{
2677826766
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Dependabot.php",
26779-
"hash": "ca26062c508849ffeaf3e6115bd56cfd"
26767+
"hash": "111042e8c75e48fe50f41cf5f1bf5f32"
2678026768
},
2678126769
{
2678226770
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Checks.php",
@@ -26882,10 +26870,6 @@
2688226870
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Pulls.php",
2688326871
"hash": "9dcbc6375bebce019b66df58dadb40e6"
2688426872
},
26885-
{
26886-
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Dependabot.php",
26887-
"hash": "a37ef0f86dd26e1735a1af6e096218d8"
26888-
},
2688926873
{
2689026874
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Reactions.php",
2689126875
"hash": "ac214dcaa2451d757ace609e4b7a793a"
@@ -27240,15 +27224,15 @@
2724027224
},
2724127225
{
2724227226
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
27243-
"hash": "03a78049cc14a10e8b8ad6bf8778c4ab"
27227+
"hash": "45d90c7d0fa3045cfc0d85d4a0a768ca"
2724427228
},
2724527229
{
2724627230
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Two.php",
2724727231
"hash": "d1905900da5b62fabb0b324a38bb7279"
2724827232
},
2724927233
{
2725027234
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
27251-
"hash": "f44dd133d5a777f374149df2b549e928"
27235+
"hash": "29558896ef32876e1de67d9be253c61e"
2725227236
},
2725327237
{
2725427238
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php",
@@ -27284,7 +27268,7 @@
2728427268
},
2728527269
{
2728627270
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php",
27287-
"hash": "ff138dca37b30debc9205e3aaf48f5bd"
27271+
"hash": "48ef5001857b680a305472fbbc03d23e"
2728827272
},
2728927273
{
2729027274
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php",
@@ -27448,15 +27432,15 @@
2744827432
},
2744927433
{
2745027434
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Routers.php",
27451-
"hash": "8bcc416413c3e5a5d943f43490e1f1d0"
27435+
"hash": "9f74e72888081a35c95edce1793d58e7"
2745227436
},
2745327437
{
2745427438
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
27455-
"hash": "52e89bedfdc1c654b53716ca26b88653"
27439+
"hash": "31b617af68d8c4f4f3e44fa808b51d74"
2745627440
},
2745727441
{
2745827442
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
27459-
"hash": "f9d91dfb2478d5bd293c906fc2e6be34"
27443+
"hash": "c7324df2298799ac3a1c1f929239efe1"
2746027444
},
2746127445
{
2746227446
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -27508,7 +27492,7 @@
2750827492
},
2750927493
{
2751027494
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Dependabot.php",
27511-
"hash": "d15ffa2ad0b303fb3a966cc261bb7493"
27495+
"hash": "08bd8e160023bd2237dee15bd8567253"
2751227496
},
2751327497
{
2751427498
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operation\/Billing.php",
@@ -27608,7 +27592,7 @@
2760827592
},
2760927593
{
2761027594
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Internal\/Operators.php",
27611-
"hash": "80ab12e7649c11dbd5f6682454101539"
27595+
"hash": "fdb67a048c1f7b84e0236ed394e43717"
2761227596
},
2761327597
{
2761427598
"name": ".\/clients\/GitHubEnterprise-3.15\/etc\/..\/\/src\/\/Operations.php",

clients/GitHubEnterprise-3.15/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.15/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.15/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)