Skip to content

Commit c8dd527

Browse files
authored
Merge pull request #1238 from php-api-clients/GitHubEnterpriseCloud/from-1.1.4-aa24377344d6471ce1e177feecf11db1-from-1.1.4-aa24377344d6471ce1e177feecf11db1
2 parents cbbf2b3 + 04b6ba6 commit c8dd527

File tree

9 files changed

+43
-39
lines changed

9 files changed

+43
-39
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"specHash": "0336551e2d2d85984cfed5879256ad77",
2+
"specHash": "aa24377344d6471ce1e177feecf11db1",
33
"generatedFiles": {
44
"files": [
55
{
@@ -5980,7 +5980,7 @@
59805980
},
59815981
{
59825982
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php",
5983-
"hash": "96b31d4c40906b02470147e884b42c1d"
5983+
"hash": "2c9fe4d18721a8d690513913bccff5f6"
59845984
},
59855985
{
59865986
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php",
@@ -26656,7 +26656,7 @@
2665626656
},
2665726657
{
2665826658
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php",
26659-
"hash": "99927f0e128d4c6b795535f65647e2b1"
26659+
"hash": "e4ece915c3acb049dcaeb3656b2fcd3c"
2666026660
},
2666126661
{
2666226662
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php",
@@ -29872,11 +29872,11 @@
2987229872
},
2987329873
{
2987429874
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php",
29875-
"hash": "aaea273be42848e493de9ebe038a1125"
29875+
"hash": "49546035c0a7670ec430f965eafae199"
2987629876
},
2987729877
{
2987829878
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php",
29879-
"hash": "e0aec114ac554ca1977de1d0664c7d30"
29879+
"hash": "040c8ce72f7c03b1243c63c2b5fa4b6f"
2988029880
},
2988129881
{
2988229882
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon",
@@ -32004,7 +32004,7 @@
3200432004
},
3200532005
{
3200632006
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/CodeSecurity\/GetConfigurationsForOrg.php",
32007-
"hash": "a97708e1cdf7f307b45dce0f264503ac"
32007+
"hash": "e93ce4ac0870638894dee921b22c0cb3"
3200832008
},
3200932009
{
3201032010
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeSecurity\/GetConfigurationsForOrgTest.php",
@@ -32116,7 +32116,7 @@
3211632116
},
3211732117
{
3211832118
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSecurityConfigurationRepositories.php",
32119-
"hash": "e3e3b7f123884a547783634baa2efaa6"
32119+
"hash": "f22f1d882dc584c3cbd6d5a83fa0dcb3"
3212032120
},
3212132121
{
3212232122
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/CodeSecurity\/AttachConfiguration\/Response\/ApplicationJson\/Accepted.php",
@@ -32148,7 +32148,7 @@
3214832148
},
3214932149
{
3215032150
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/CodeSecurity.php",
32151-
"hash": "bfdfd1fd7882be2f4032dea8964cd9be"
32151+
"hash": "8cdb43384293a93b36ca25b86d0ea079"
3215232152
},
3215332153
{
3215432154
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Post\/CodeSecurity.php",
@@ -32168,7 +32168,7 @@
3216832168
},
3216932169
{
3217032170
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/CodeSecurity.php",
32171-
"hash": "42230af5a24a2c3e6585330c0c65d504"
32171+
"hash": "ae5e71a9ec99c1095424a14d080d4fd4"
3217232172
},
3217332173
{
3217432174
"name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/CodeSecurity\/Configurations.php",

clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeSecurity/GetConfigurationsForOrg.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 iterable<int,Schema\CodeSecurityConfiguration> */
27+
/** @return Observable<Schema\CodeSecurityConfiguration> */
2828
public function call(string $org, string $before, string $after, string $targetType = 'all', int $perPage = 30): iterable
2929
{
3030
$operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\CodeSecurity\GetConfigurationsForOrg($this->responseSchemaValidator, $this->hydrator, $org, $before, $after, $targetType, $perPage);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function __construct(private SchemaValidator $requestSchemaValidator, pri
2121
{
2222
}
2323

24-
/** @return iterable<int,Schema\CodeSecurityConfiguration> */
24+
/** @return Observable<Schema\CodeSecurityConfiguration> */
2525
public function getConfigurationsForOrg(array $params): iterable
2626
{
2727
$arguments = [];

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

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

57-
/** @return |Observable<Schema\CodeScanningOrganizationAlertItems>|Observable<Schema\CopilotUsageMetrics>|Observable<Schema\DependabotAlertWithRepository>|WithoutBody|Observable<Schema\OrganizationSecretScanningAlert>|Observable<Schema\MarketplacePurchase>|Observable<Schema\Event>|Schema\BasicError|iterable<int,Schema\CodeSecurityConfiguration>|Observable<Schema\Package>|Observable<Schema\OrgCustomProperty>|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> */
57+
/** @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\OrgCustomProperty>|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> */
5858
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|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
5959
{
6060
if ($pathChunks[0] === '') {

clients/GitHubEnterpriseCloud/src/Operation/CodeSecurity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function __construct(private Internal\Operators $operators)
1717
{
1818
}
1919

20-
/** @return iterable<int,Schema\CodeSecurityConfiguration> */
20+
/** @return Observable<Schema\CodeSecurityConfiguration> */
2121
public function getConfigurationsForOrg(string $org, string $before, string $after, string $targetType, int $perPage): iterable
2222
{
2323
return $this->operators->codeSecurity👷GetConfigurationsForOrg()->call($org, $before, $after, $targetType, $perPage);

clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,7 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method
988988
}
989989

990990
if ($call === 'GET /orgs/{org}/code-security/configurations') {
991-
return $this->typeResolver->resolve('iterable<int,Schema\\CodeSecurityConfiguration>');
991+
return $this->typeResolver->resolve('Observable<Schema\\CodeSecurityConfiguration>');
992992
}
993993

994994
if ($call === 'POST /orgs/{org}/code-security/configurations') {

clients/GitHubEnterpriseCloud/src/Schema/CodeSecurityConfigurationRepositories.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
"attached",
1717
"attaching",
1818
"detached",
19+
"removed",
1920
"enforced",
2021
"failed",
21-
"updating"
22+
"updating",
23+
"removed_by_enterprise"
2224
],
2325
"type": "string",
2426
"description": "The attachment status of the code security configuration on the repository."
@@ -574,7 +576,7 @@
574576
public const SCHEMA_TITLE = '';
575577
public const SCHEMA_DESCRIPTION = 'Repositories associated with a code security configuration and attachment status';
576578
public const SCHEMA_EXAMPLE_DATA = '{
577-
"status": "updating",
579+
"status": "removed_by_enterprise",
578580
"repository": {
579581
"id": 1296269,
580582
"node_id": "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",

clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ function authHeader(): string
253253
assertType('', $client->call('DELETE /orgs/{org}/blocks/{username}'));
254254
assertType('Observable<Schema\\CodeScanningOrganizationAlertItems>', $client->call('GET /orgs/{org}/code-scanning/alerts'));
255255
assertType('Observable<Schema\\CodeScanningOrganizationAlertItems>', $client->call('LIST /orgs/{org}/code-scanning/alerts'));
256-
assertType('iterable<int,Schema\\CodeSecurityConfiguration>', $client->call('GET /orgs/{org}/code-security/configurations'));
256+
assertType('Observable<Schema\\CodeSecurityConfiguration>', $client->call('GET /orgs/{org}/code-security/configurations'));
257257
assertType('', $client->call('POST /orgs/{org}/code-security/configurations'));
258258
assertType('Observable<Schema\\CodeSecurityDefaultConfigurations>|WithoutBody', $client->call('GET /orgs/{org}/code-security/configurations/defaults'));
259259
assertType('', $client->call('DELETE /orgs/{org}/code-security/configurations/detach'));

0 commit comments

Comments
 (0)