Skip to content

Commit 6f016bd

Browse files
authored
Merge pull request #539 from php-api-clients/GitHubEnterprise-3.9/from-1.1.4-hash-80ee51694cd0eb69aa49b0238dcfb795-from-1.1.4-hash-80ee51694cd0eb69aa49b0238dcfb795
2 parents 3660f3f + 9760e5b commit 6f016bd

File tree

289 files changed

+24234
-15137
lines changed

Some content is hidden

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

289 files changed

+24234
-15137
lines changed

clients/GitHubEnterprise-3.9/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3345,7 +3345,7 @@ You can find more about this operation over at the [API method documentation](ht
33453345

33463346
### enterprise-admin/get-config-nodes
33473347

3348-
Get all GHES node metadata for all nodes
3348+
Get GHES node metadata for all nodes
33493349

33503350
Using the `call` method:
33513351
```php

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

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

clients/GitHubEnterprise-3.9/src/Client.php

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

clients/GitHubEnterprise-3.9/src/ClientInterface.php

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

clients/GitHubEnterprise-3.9/src/Hydrator/Operation/App/Installations/InstallationId.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
6464

6565
$value = $accountCaster1->cast($value, $this);
6666

67+
if ($value === null) {
68+
$missingFields[] = 'account';
69+
goto after_account;
70+
}
71+
6772
$properties['account'] = $value;
6873

6974
after_account:

clients/GitHubEnterprise-3.9/src/Hydrator/Operation/Orgs/Org/Installation.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
6363

6464
$value = $accountCaster1->cast($value, $this);
6565

66+
if ($value === null) {
67+
$missingFields[] = 'account';
68+
goto after_account;
69+
}
70+
6671
$properties['account'] = $value;
6772

6873
after_account:

clients/GitHubEnterprise-3.9/src/Hydrator/Operation/Repos/Owner/Repo/Deployments.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
121121

122122
$value = $payloadCaster1->cast($value, $this);
123123

124+
if ($value === null) {
125+
$missingFields[] = 'payload';
126+
goto after_payload;
127+
}
128+
124129
$properties['payload'] = $value;
125130

126131
after_payload:

clients/GitHubEnterprise-3.9/src/Hydrator/Operation/Repos/Owner/Repo/Deployments/DeploymentId.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
121121

122122
$value = $payloadCaster1->cast($value, $this);
123123

124+
if ($value === null) {
125+
$missingFields[] = 'payload';
126+
goto after_payload;
127+
}
128+
124129
$properties['payload'] = $value;
125130

126131
after_payload:

clients/GitHubEnterprise-3.9/src/Hydrator/Operation/Repos/Owner/Repo/Installation.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
6464

6565
$value = $accountCaster1->cast($value, $this);
6666

67+
if ($value === null) {
68+
$missingFields[] = 'account';
69+
goto after_account;
70+
}
71+
6772
$properties['account'] = $value;
6873

6974
after_account:

clients/GitHubEnterprise-3.9/src/Hydrator/Operation/Users/Username/Installation.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterprise⚡️Schema
6363

6464
$value = $accountCaster1->cast($value, $this);
6565

66+
if ($value === null) {
67+
$missingFields[] = 'account';
68+
goto after_account;
69+
}
70+
6671
$properties['account'] = $value;
6772

6873
after_account:

clients/GitHubEnterprise-3.9/src/Operation/EnterpriseAdmin/GetConfigNodes.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ public function createResponse(ResponseInterface $response): Schema\GhesConfigNo
6666
**/
6767
case 401:
6868
return ['code' => 401];
69+
/**
70+
* Internal error
71+
**/
72+
73+
case 500:
74+
return ['code' => 500];
6975
}
7076

7177
throw new RuntimeException('Unable to find matching response code and content type');

clients/GitHubEnterprise-3.9/src/Operation/EnterpriseAdmin/GetReplicationStatus.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ public function createResponse(ResponseInterface $response): Schema\GhesReplicat
6666
**/
6767
case 401:
6868
return ['code' => 401];
69+
/**
70+
* Internal error
71+
**/
72+
73+
case 500:
74+
return ['code' => 500];
6975
}
7076

7177
throw new RuntimeException('Unable to find matching response code and content type');

clients/GitHubEnterprise-3.9/src/Operation/EnterpriseAdmin/GetVersion.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ public function createResponse(ResponseInterface $response): array
4343
**/
4444
case 401:
4545
return ['code' => 401];
46+
/**
47+
* Internal error
48+
**/
49+
50+
case 500:
51+
return ['code' => 500];
4652
}
4753

4854
throw new RuntimeException('Unable to find matching response code and content type');

clients/GitHubEnterprise-3.9/src/Operation/Git/GetTree.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,16 @@ final class GetTree
2828
private string $owner;
2929
/**The name of the repository without the `.git` extension. The name is not case sensitive. **/
3030
private string $repo;
31+
/**The SHA1 value or ref (branch or tag) name of the tree. **/
32+
private string $treeSha;
3133
/**Setting this parameter to any value returns the objects or subtrees referenced by the tree specified in `:tree_sha`. For example, setting `recursive` to any of the following will enable returning objects or subtrees: `0`, `1`, `"true"`, and `"false"`. Omit this parameter to prevent recursively returning objects or subtrees. **/
3234
private string $recursive;
3335

34-
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Hydrator\Operation\Repos\Owner\Repo\Git\Trees\TreeSha $hydrator, string $owner, string $repo, private string $treeSha, string $recursive)
36+
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Hydrator\Operation\Repos\Owner\Repo\Git\Trees\TreeSha $hydrator, string $owner, string $repo, string $treeSha, string $recursive)
3537
{
3638
$this->owner = $owner;
3739
$this->repo = $repo;
40+
$this->treeSha = $treeSha;
3841
$this->recursive = $recursive;
3942
}
4043

clients/GitHubEnterprise-3.9/src/Operation/Meta/GetZen.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
use RuntimeException;
1313

1414
use function explode;
15+
use function json_decode;
1516
use function str_replace;
1617

1718
final class GetZen
@@ -35,8 +36,8 @@ public function createResponse(ResponseInterface $response): string
3536
$code = $response->getStatusCode();
3637
[$contentType] = explode(';', $response->getHeaderLine('Content-Type'));
3738
switch ($contentType) {
38-
case 'text/plain':
39-
$body = $response->getBody()->getContents();
39+
case 'application/json':
40+
$body = json_decode($response->getBody()->getContents(), true);
4041
switch ($code) {
4142
case 200:
4243
return $body;

clients/GitHubEnterprise-3.9/src/Operation/Reactions/ListForCommitComment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class ListForCommitComment
3030
private string $repo;
3131
/**The unique identifier of the comment. **/
3232
private int $commentId;
33-
/**Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a commit comment. **/
33+
/**Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a commit comment. **/
3434
private string $content;
3535
/**The number of results per page (max 100). **/
3636
private int $perPage;

clients/GitHubEnterprise-3.9/src/Operation/Reactions/ListForIssue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class ListForIssue
3030
private string $repo;
3131
/**The number that identifies the issue. **/
3232
private int $issueNumber;
33-
/**Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to an issue. **/
33+
/**Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to an issue. **/
3434
private string $content;
3535
/**The number of results per page (max 100). **/
3636
private int $perPage;

clients/GitHubEnterprise-3.9/src/Operation/Reactions/ListForIssueComment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class ListForIssueComment
3030
private string $repo;
3131
/**The unique identifier of the comment. **/
3232
private int $commentId;
33-
/**Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to an issue comment. **/
33+
/**Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to an issue comment. **/
3434
private string $content;
3535
/**The number of results per page (max 100). **/
3636
private int $perPage;

clients/GitHubEnterprise-3.9/src/Operation/Reactions/ListForPullRequestReviewComment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class ListForPullRequestReviewComment
3030
private string $repo;
3131
/**The unique identifier of the comment. **/
3232
private int $commentId;
33-
/**Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a pull request review comment. **/
33+
/**Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a pull request review comment. **/
3434
private string $content;
3535
/**The number of results per page (max 100). **/
3636
private int $perPage;

clients/GitHubEnterprise-3.9/src/Operation/Reactions/ListForRelease.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class ListForRelease
3030
private string $repo;
3131
/**The unique identifier of the release. **/
3232
private int $releaseId;
33-
/**Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a release. **/
33+
/**Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a release. **/
3434
private string $content;
3535
/**The number of results per page (max 100). **/
3636
private int $perPage;

clients/GitHubEnterprise-3.9/src/Operation/Reactions/ListForTeamDiscussionCommentInOrg.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ final class ListForTeamDiscussionCommentInOrg
2424
private int $discussionNumber;
2525
/**The number that identifies the comment. **/
2626
private int $commentNumber;
27-
/**Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a team discussion comment. **/
27+
/**Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion comment. **/
2828
private string $content;
2929
/**The number of results per page (max 100). **/
3030
private int $perPage;

clients/GitHubEnterprise-3.9/src/Operation/Reactions/ListForTeamDiscussionCommentLegacy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class ListForTeamDiscussionCommentLegacy
2222
private int $discussionNumber;
2323
/**The number that identifies the comment. **/
2424
private int $commentNumber;
25-
/**Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a team discussion comment. **/
25+
/**Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion comment. **/
2626
private string $content;
2727
/**The number of results per page (max 100). **/
2828
private int $perPage;

clients/GitHubEnterprise-3.9/src/Operation/Reactions/ListForTeamDiscussionInOrg.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class ListForTeamDiscussionInOrg
2222
private string $teamSlug;
2323
/**The number that identifies the discussion. **/
2424
private int $discussionNumber;
25-
/**Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a team discussion. **/
25+
/**Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion. **/
2626
private string $content;
2727
/**The number of results per page (max 100). **/
2828
private int $perPage;

clients/GitHubEnterprise-3.9/src/Operation/Reactions/ListForTeamDiscussionLegacy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ final class ListForTeamDiscussionLegacy
2020
private int $teamId;
2121
/**The number that identifies the discussion. **/
2222
private int $discussionNumber;
23-
/**Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reference/reactions#reaction-types). Omit this parameter to list all reactions to a team discussion. **/
23+
/**Returns a single [reaction type](https://docs.github.com/[email protected]/rest/reactions/reactions#about-reactions). Omit this parameter to list all reactions to a team discussion. **/
2424
private string $content;
2525
/**The number of results per page (max 100). **/
2626
private int $perPage;

clients/GitHubEnterprise-3.9/src/Schema/AliasAbstract/Tiet4E185393/TietBDA2E772/Tiet8E84BE53/Tiet71E72B6A.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/**
1717
* repo: A git repository
1818
*/
19-
public function __construct(public string $label, public string $ref, public Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Base\Repo $repo, public string $sha, public Schema\WebhookPullRequestReviewThreadResolved\PullRequest\Base\User|null $user)
19+
public function __construct(public string $label, public string $ref, public Schema\WebhookMergeQueueEntryCreated\PullRequest\Base\Repo $repo, public string $sha, public Schema\WebhookMergeQueueEntryCreated\PullRequest\Base\User|null $user)
2020
{
2121
}
2222
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22

33
declare(strict_types=1);
44

5-
namespace ApiClients\Client\GitHubEnterprise\Schema\AliasAbstract\Tiet0A770212\Tiet7426AC5D\TietD4616A04;
5+
namespace ApiClients\Client\GitHubEnterprise\Schema\AliasAbstract\Tiet6954979B\Tiet71E32B23\TietF40D46E5;
66

7-
abstract readonly class Tiet87E1C1A4
7+
abstract readonly class TietF1D0C4BD
88
{
9-
public const SCHEMA_JSON = '{"required":["content"],"type":"object","properties":{"content":{"enum":["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],"type":"string","description":"The [reaction type](https:\\/\\/docs.github.com\\/[email protected]\\/rest\\/reference\\/reactions#reaction-types) to add to the team discussion comment."}}}';
9+
public const SCHEMA_JSON = '{"required":["content"],"type":"object","properties":{"content":{"enum":["+1","-1","laugh","confused","heart","hooray","rocket","eyes"],"type":"string","description":"The [reaction type](https:\\/\\/docs.github.com\\/[email protected]\\/rest\\/reactions\\/reactions#about-reactions) to add to the team discussion comment."}}}';
1010
public const SCHEMA_TITLE = '';
1111
public const SCHEMA_DESCRIPTION = '';
1212
public const SCHEMA_EXAMPLE_DATA = '{"content":"+1"}';
1313

1414
/**
15-
* content: The [reaction type](https://docs.github.com/[email protected]/rest/reference/reactions#reaction-types) to add to the team discussion comment.
15+
* content: The [reaction type](https://docs.github.com/[email protected]/rest/reactions/reactions#about-reactions) to add to the team discussion comment.
1616
*/
1717
public function __construct(public string $content)
1818
{

clients/GitHubEnterprise-3.9/src/Schema/AliasAbstract/Tiet6B1B7663/TietE4F5DE6D/Tiet0BE24B99/TietCC56D255.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
public const SCHEMA_DESCRIPTION = '';
1515
public const SCHEMA_EXAMPLE_DATA = '{"comments":{"href":"generated"},"commits":{"href":"generated"},"html":{"href":"generated"},"issue":{"href":"generated"},"review_comment":{"href":"generated"},"review_comments":{"href":"generated"},"self":{"href":"generated"},"statuses":{"href":"generated"}}';
1616

17-
public function __construct(public Schema\WebhookPullRequestAssigned\PullRequest\Links\Comments $comments, public Schema\WebhookPullRequestAssigned\PullRequest\Links\Commits $commits, public Schema\WebhookPullRequestAssigned\PullRequest\Links\Html $html, public Schema\WebhookPullRequestAssigned\PullRequest\Links\Issue $issue, #[MapFrom('review_comment')]
18-
public Schema\WebhookPullRequestAssigned\PullRequest\Links\ReviewComment $reviewComment, #[MapFrom('review_comments')]
19-
public Schema\WebhookPullRequestAssigned\PullRequest\Links\ReviewComments $reviewComments, public Schema\WebhookPullRequestAssigned\PullRequest\Links\Self_ $self, public Schema\WebhookPullRequestAssigned\PullRequest\Links\Statuses $statuses,)
17+
public function __construct(public Schema\WebhookMergeQueueEntryCreated\PullRequest\Links\Comments $comments, public Schema\WebhookMergeQueueEntryCreated\PullRequest\Links\Commits $commits, public Schema\WebhookMergeQueueEntryCreated\PullRequest\Links\Html $html, public Schema\WebhookMergeQueueEntryCreated\PullRequest\Links\Issue $issue, #[MapFrom('review_comment')]
18+
public Schema\WebhookMergeQueueEntryCreated\PullRequest\Links\ReviewComment $reviewComment, #[MapFrom('review_comments')]
19+
public Schema\WebhookMergeQueueEntryCreated\PullRequest\Links\ReviewComments $reviewComments, public Schema\WebhookMergeQueueEntryCreated\PullRequest\Links\Self_ $self, public Schema\WebhookMergeQueueEntryCreated\PullRequest\Links\Statuses $statuses,)
2020
{
2121
}
2222
}

0 commit comments

Comments
 (0)