Skip to content

Commit 6c956bd

Browse files
authored
Merge pull request #1280 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-f14afa6095b928550e397c99507c5224-from-1.1.4-f14afa6095b928550e397c99507c5224
2 parents a9b0332 + f8fd191 commit 6c956bd

Some content is hidden

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

48 files changed

+191
-169
lines changed

clients/GitHubEnterpriseCloud/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6761,13 +6761,17 @@ Using the `call` method:
67616761
$client->call('GET /orgs/{org}/external-group/{group_id}', [
67626762
'org' => 'generated',
67636763
'group_id' => 8,
6764+
'per_page' => 8,
6765+
'page' => 1,
67646766
]);
67656767
```
67666768

67676769
Operations method:
67686770
```php
67696771
$client->operations()->teams()->externalIdpGroupInfoForOrg( org: 'generated',
67706772
group_id: 8,
6773+
per_page: 8,
6774+
page: 1,
67716775
);
67726776
```
67736777

clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state

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

clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetOrgRuleSuites.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ final class GetOrgRuleSuites
2727
public const OPERATION_MATCH = 'GET /orgs/{org}/rulesets/rule-suites';
2828
/**The organization name. The name is not case sensitive. **/
2929
private string $org;
30-
/**The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned.
31-
**/
30+
/**The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. **/
3231
private string $ref;
3332
/**The name of the repository to filter on. When specified, only rule evaluations from this repository will be returned. **/
3433
private int $repositoryName;

clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetOrgRuleSuitesListing.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ final class GetOrgRuleSuitesListing
2727
public const OPERATION_MATCH = 'LIST /orgs/{org}/rulesets/rule-suites';
2828
/**The organization name. The name is not case sensitive. **/
2929
private string $org;
30-
/**The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned.
31-
**/
30+
/**The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. **/
3231
private string $ref;
3332
/**The name of the repository to filter on. When specified, only rule evaluations from this repository will be returned. **/
3433
private int $repositoryName;

clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetRepoRuleSuites.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ final class GetRepoRuleSuites
2929
private string $owner;
3030
/**The name of the repository without the `.git` extension. The name is not case sensitive. **/
3131
private string $repo;
32-
/**The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned.
33-
**/
32+
/**The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. **/
3433
private string $ref;
3534
/**The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. **/
3635
private string $actorName;

clients/GitHubEnterpriseCloud/src/Internal/Operation/Repos/GetRepoRuleSuitesListing.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ final class GetRepoRuleSuitesListing
2929
private string $owner;
3030
/**The name of the repository without the `.git` extension. The name is not case sensitive. **/
3131
private string $repo;
32-
/**The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned.
33-
**/
32+
/**The name of the ref. Cannot contain wildcard characters. Optionally prefix with `refs/heads/` to limit to branches or `refs/tags/` to limit to tags. Omit the prefix to search across all refs. When specified, only rule evaluations triggered for this ref will be returned. **/
3433
private string $ref;
3534
/**The handle for the GitHub user account to filter on. When specified, only rule evaluations triggered by this actor will be returned. **/
3635
private string $actorName;

clients/GitHubEnterpriseCloud/src/Internal/Operation/Teams/ExternalIdpGroupInfoForOrg.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,22 @@ final class ExternalIdpGroupInfoForOrg
2525
private string $org;
2626
/**The unique identifier of the group. **/
2727
private int $groupId;
28+
/**The number of results per page for the "members" array (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
29+
private int $perPage;
30+
/**The page number of the "members" array results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/enterprise-cloud@latest//rest/using-the-rest-api/using-pagination-in-the-rest-api)." **/
31+
private int $page;
2832

29-
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\ExternalGroup\GroupId $hydrator, string $org, int $groupId)
33+
public function __construct(private readonly SchemaValidator $responseSchemaValidator, private readonly Internal\Hydrator\Operation\Orgs\Org\ExternalGroup\GroupId $hydrator, string $org, int $groupId, int $perPage = 30, int $page = 1)
3034
{
3135
$this->org = $org;
3236
$this->groupId = $groupId;
37+
$this->perPage = $perPage;
38+
$this->page = $page;
3339
}
3440

3541
public function createRequest(): RequestInterface
3642
{
37-
return new Request('GET', str_replace(['{org}', '{group_id}'], [$this->org, $this->groupId], '/orgs/{org}/external-group/{group_id}'));
43+
return new Request('GET', str_replace(['{org}', '{group_id}', '{per_page}', '{page}'], [$this->org, $this->groupId, $this->perPage, $this->page], '/orgs/{org}/external-group/{group_id}' . '?per_page={per_page}&page={page}'));
3844
}
3945

4046
public function createResponse(ResponseInterface $response): Schema\ExternalGroup

clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/CreateCustomOrganizationRole.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27+
/** @return */
2728
public function call(string $org, array $params): OrganizationRole
2829
{
2930
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Orgs\CreateCustomOrganizationRole($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org);

clients/GitHubEnterpriseCloud/src/Internal/Operator/Orgs/PatchCustomOrganizationRole.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27+
/** @return */
2728
public function call(string $org, int $roleId, array $params): OrganizationRole
2829
{
2930
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Orgs\PatchCustomOrganizationRole($this->requestSchemaValidator, $this->responseSchemaValidator, $this->hydrator, $org, $roleId);

clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetOrgRuleSuites.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27-
/** @return Observable<Schema\RuleSuites> */
27+
/** @return iterable<int,Schema\RuleSuites> */
2828
public function call(string $org, string $ref, int $repositoryName, string $actorName, string $timePeriod = 'day', string $ruleSuiteResult = 'all', int $perPage = 30, int $page = 1): iterable
2929
{
3030
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Repos\GetOrgRuleSuites($this->responseSchemaValidator, $this->hydrator, $org, $ref, $repositoryName, $actorName, $timePeriod, $ruleSuiteResult, $perPage, $page);

clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetOrgRuleSuitesListing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27-
/** @return Observable<Schema\RuleSuites> */
27+
/** @return iterable<int,Schema\RuleSuites> */
2828
public function call(string $org, string $ref, int $repositoryName, string $actorName, string $timePeriod = 'day', string $ruleSuiteResult = 'all', int $perPage = 30, int $page = 1): iterable
2929
{
3030
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Repos\GetOrgRuleSuitesListing($this->responseSchemaValidator, $this->hydrator, $org, $ref, $repositoryName, $actorName, $timePeriod, $ruleSuiteResult, $perPage, $page);

clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetRepoRuleSuites.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27-
/** @return Observable<Schema\RuleSuites> */
27+
/** @return iterable<int,Schema\RuleSuites> */
2828
public function call(string $owner, string $repo, string $ref, string $actorName, string $timePeriod = 'day', string $ruleSuiteResult = 'all', int $perPage = 30, int $page = 1): iterable
2929
{
3030
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Repos\GetRepoRuleSuites($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $ref, $actorName, $timePeriod, $ruleSuiteResult, $perPage, $page);

clients/GitHubEnterpriseCloud/src/Internal/Operator/Repos/GetRepoRuleSuitesListing.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27-
/** @return Observable<Schema\RuleSuites> */
27+
/** @return iterable<int,Schema\RuleSuites> */
2828
public function call(string $owner, string $repo, string $ref, string $actorName, string $timePeriod = 'day', string $ruleSuiteResult = 'all', int $perPage = 30, int $page = 1): iterable
2929
{
3030
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Repos\GetRepoRuleSuitesListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $ref, $actorName, $timePeriod, $ruleSuiteResult, $perPage, $page);

clients/GitHubEnterpriseCloud/src/Internal/Operator/Teams/ExternalIdpGroupInfoForOrg.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ public function __construct(private Browser $browser, private AuthenticationInte
2424
{
2525
}
2626

27-
/** @return */
28-
public function call(string $org, int $groupId): ExternalGroup
27+
public function call(string $org, int $groupId, int $perPage = 30, int $page = 1): ExternalGroup
2928
{
30-
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Teams\ExternalIdpGroupInfoForOrg($this->responseSchemaValidator, $this->hydrator, $org, $groupId);
29+
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Teams\ExternalIdpGroupInfoForOrg($this->responseSchemaValidator, $this->hydrator, $org, $groupId, $perPage, $page);
3130
$request = $operation->createRequest();
3231
$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): ExternalGroup {
3332
return $operation->createResponse($response);

clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function __construct(private Routers $routers)
5555
{
5656
}
5757

58-
/** @return |Observable<Schema\CodeScanningOrganizationAlertItems>|Observable<Schema\CopilotUsageMetrics>|Observable<Schema\DependabotAlertWithRepository>|WithoutBody|Observable<Schema\OrganizationSecretScanningAlert>|Observable<Schema\MarketplacePurchase>|Observable<Schema\Event>|Schema\BasicError|Observable<Schema\CodeSecurityConfiguration>|Observable<Schema\Package>|Observable<Schema\CustomProperty>|Observable<Schema\OrgRepoCustomPropertyValues>|Observable<Schema\RuleSuites>|Observable<Schema\ProjectCard>|Observable<Schema\Activity>|Observable<Schema\SimpleUser>|Observable<Schema\Autolink>|Observable<Schema\ShortBranch>|Observable<Schema\Collaborator>|Observable<Schema\CommitComment>|Observable<Schema\Commit>|Observable<Schema\Contributor>|Observable<Schema\Deployment>|Observable<Schema\MinimalRepository>|Observable<Schema\Hook>|Observable<Schema\RepositoryInvitation>|Observable<Schema\Issue>|Observable<Schema\DeployKey>|Observable<Schema\Label>|Observable<Schema\Milestone>|Observable<Schema\Thread>|Observable<Schema\Project>|Observable<Schema\PullRequestSimple>|Observable<Schema\Release>|Observable<Schema\RepositoryRuleset>|Observable<Schema\RepositoryAdvisory>|Observable<Schema\Tag>|Observable<Schema\Team> */
58+
/** @return |Observable<Schema\CodeScanningOrganizationAlertItems>|Observable<Schema\CopilotUsageMetrics>|Observable<Schema\DependabotAlertWithRepository>|WithoutBody|Observable<Schema\OrganizationSecretScanningAlert>|Observable<Schema\MarketplacePurchase>|Observable<Schema\Event>|Schema\BasicError|Observable<Schema\CodeSecurityConfiguration>|Observable<Schema\Package>|Schema\ExternalGroup|Observable<Schema\CustomProperty>|Observable<Schema\OrgRepoCustomPropertyValues>|iterable<int,Schema\RuleSuites>|Observable<Schema\ProjectCard>|Observable<Schema\Activity>|Observable<Schema\SimpleUser>|Observable<Schema\Autolink>|Observable<Schema\ShortBranch>|Observable<Schema\Collaborator>|Observable<Schema\CommitComment>|Observable<Schema\Commit>|Observable<Schema\Contributor>|Observable<Schema\Deployment>|Observable<Schema\MinimalRepository>|Observable<Schema\Hook>|Observable<Schema\RepositoryInvitation>|Observable<Schema\Issue>|Observable<Schema\DeployKey>|Observable<Schema\Label>|Observable<Schema\Milestone>|Observable<Schema\Thread>|Observable<Schema\Project>|Observable<Schema\PullRequestSimple>|Observable<Schema\Release>|Observable<Schema\RepositoryRuleset>|Observable<Schema\RepositoryAdvisory>|Observable<Schema\Tag>|Observable<Schema\Team> */
5959
public function call(string $call, array $params, array $pathChunks): HookDelivery|ActionsEnterprisePermissions|Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|iterable|WithoutBody|GistComment|MarketplacePurchase|BasicError|ThreadSubscription|ActionsOrganizationPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnerGroupsForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListOrgVariables\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Orgs\ListAttestations\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListOrgSecrets\Response\ApplicationJson\Ok|CopilotOrganizationDetails|OrganizationCustomRepositoryRole|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListOrgSecrets\Response\ApplicationJson\Ok|ExternalGroup|OrgHook|OrgMembership|Migration|OrganizationRole|RepositoryRuleset|GroupMapping|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|CodeSecurityConfigurationForRepository|Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllEnvironments\Response\ApplicationJson\Ok|Import|Installation|InteractionLimitResponse|One|Language|LicenseContent|Page|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\CheckPrivateVulnerabilityReporting\Response\ApplicationJson\Ok|ContentFile|SimpleUser|Stargazer|RepositorySubscription|Topic|TeamDiscussion|TeamMembership|TeamProject|CodespacesUserPublicKey|CodespacesSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\CodespaceMachinesForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Apps\ListInstallationReposForAuthenticatedUser\Response\ApplicationJson\Ok|Package|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Users\ListAttestations\Response\ApplicationJson\Ok|EmptyObject
6060
{
6161
if ($pathChunks[0] === '') {

clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Repos.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public function listForUser(array $params): iterable
303303
return $operator->call($arguments['username'], $arguments['direction'], $arguments['type'], $arguments['sort'], $arguments['per_page'], $arguments['page']);
304304
}
305305

306-
/** @return Observable<Schema\RuleSuites> */
306+
/** @return iterable<int,Schema\RuleSuites> */
307307
public function getOrgRuleSuites(array $params): iterable
308308
{
309309
$arguments = [];
@@ -1824,7 +1824,7 @@ public function getRelease(array $params): Release|WithoutBody
18241824
return $operator->call($arguments['owner'], $arguments['repo'], $arguments['release_id']);
18251825
}
18261826

1827-
/** @return Observable<Schema\RuleSuites> */
1827+
/** @return iterable<int,Schema\RuleSuites> */
18281828
public function getRepoRuleSuites(array $params): iterable
18291829
{
18301830
$arguments = [];

0 commit comments

Comments
 (0)