diff --git a/clients/GitHubEnterpriseCloud/README.md b/clients/GitHubEnterpriseCloud/README.md index 7ea9bff080f..0881dffeecd 100644 --- a/clients/GitHubEnterpriseCloud/README.md +++ b/clients/GitHubEnterpriseCloud/README.md @@ -2626,62 +2626,6 @@ $client->operations()->copilot()->copilotMetricsForEnterpriseListing( ent You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-metrics#get-copilot-metrics-for-an-enterprise). -### copilot/usage-metrics-for-enterprise - -Get a summary of Copilot usage for enterprise members - -Using the `call` method: -```php -$client->call('GET /enterprises/{enterprise}/copilot/usage', [ - 'enterprise' => 'generated', - 'since' => 'generated', - 'until' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->usageMetricsForEnterprise( enterprise: 'generated', - since: 'generated', - until: 'generated', - page: 1, - per_page: 8, -); -``` - -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-enterprise-members). - - -### copilot/usage-metrics-for-enterprise - -Get a summary of Copilot usage for enterprise members - -Using the `call` method: -```php -$client->call('LIST /enterprises/{enterprise}/copilot/usage', [ - 'enterprise' => 'generated', - 'since' => 'generated', - 'until' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->usageMetricsForEnterpriseListing( enterprise: 'generated', - since: 'generated', - until: 'generated', - page: 1, - per_page: 8, -); -``` - -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-enterprise-members). - - ### dependabot/list-alerts-for-enterprise List Dependabot alerts for an enterprise @@ -3452,66 +3396,6 @@ $client->operations()->copilot()->copilotMetricsForEnterpriseTeamListing( You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-metrics#get-copilot-metrics-for-an-enterprise-team). -### copilot/usage-metrics-for-enterprise-team - -Get a summary of Copilot usage for an enterprise team - -Using the `call` method: -```php -$client->call('GET /enterprises/{enterprise}/team/{team_slug}/copilot/usage', [ - 'enterprise' => 'generated', - 'team_slug' => 'generated', - 'since' => 'generated', - 'until' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->usageMetricsForEnterpriseTeam( enterprise: 'generated', - team_slug: 'generated', - since: 'generated', - until: 'generated', - page: 1, - per_page: 8, -); -``` - -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-an-enterprise-team). - - -### copilot/usage-metrics-for-enterprise-team - -Get a summary of Copilot usage for an enterprise team - -Using the `call` method: -```php -$client->call('LIST /enterprises/{enterprise}/team/{team_slug}/copilot/usage', [ - 'enterprise' => 'generated', - 'team_slug' => 'generated', - 'since' => 'generated', - 'until' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->usageMetricsForEnterpriseTeamListing( enterprise: 'generated', - team_slug: 'generated', - since: 'generated', - until: 'generated', - page: 1, - per_page: 8, -); -``` - -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-an-enterprise-team). - - ### secret-scanning/post-security-product-enablement-for-enterprise Enable or disable a security feature @@ -7724,62 +7608,6 @@ $client->operations()->copilot()->copilotMetricsForOrganizationListing( o You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-metrics#get-copilot-metrics-for-an-organization). -### copilot/usage-metrics-for-org - -Get a summary of Copilot usage for organization members - -Using the `call` method: -```php -$client->call('GET /orgs/{org}/copilot/usage', [ - 'org' => 'generated', - 'since' => 'generated', - 'until' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->usageMetricsForOrg( org: 'generated', - since: 'generated', - until: 'generated', - page: 1, - per_page: 8, -); -``` - -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-organization-members). - - -### copilot/usage-metrics-for-org - -Get a summary of Copilot usage for organization members - -Using the `call` method: -```php -$client->call('LIST /orgs/{org}/copilot/usage', [ - 'org' => 'generated', - 'since' => 'generated', - 'until' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->usageMetricsForOrgListing( org: 'generated', - since: 'generated', - until: 'generated', - page: 1, - per_page: 8, -); -``` - -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-organization-members). - - ### orgs/list-saml-sso-authorizations List SAML SSO authorizations for an organization @@ -12518,66 +12346,6 @@ $client->operations()->copilot()->copilotMetricsForTeamListing( org: 'gen You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-metrics#get-copilot-metrics-for-a-team). -### copilot/usage-metrics-for-team - -Get a summary of Copilot usage for a team - -Using the `call` method: -```php -$client->call('GET /orgs/{org}/team/{team_slug}/copilot/usage', [ - 'org' => 'generated', - 'team_slug' => 'generated', - 'since' => 'generated', - 'until' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->usageMetricsForTeam( org: 'generated', - team_slug: 'generated', - since: 'generated', - until: 'generated', - page: 1, - per_page: 8, -); -``` - -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-a-team). - - -### copilot/usage-metrics-for-team - -Get a summary of Copilot usage for a team - -Using the `call` method: -```php -$client->call('LIST /orgs/{org}/team/{team_slug}/copilot/usage', [ - 'org' => 'generated', - 'team_slug' => 'generated', - 'since' => 'generated', - 'until' => 'generated', - 'page' => 1, - 'per_page' => 8, -]); -``` - -Operations method: -```php -$client->operations()->copilot()->usageMetricsForTeamListing( org: 'generated', - team_slug: 'generated', - since: 'generated', - until: 'generated', - page: 1, - per_page: 8, -); -``` - -You can find more about this operation over at the [API method documentation](https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-a-team). - - ### teams/list List teams diff --git a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state index 6fc85a02ff9..08882b7e13d 100644 --- a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state +++ b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "a62795d7aa9301578af5c944c028e062", + "specHash": "4cb6d3199626db79592936e2eb4a1700", "generatedFiles": { "files": [ { @@ -6012,7 +6012,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/WebHooks.php", - "hash": "3ee43cc14643367db4227dd2faea3904" + "hash": "4abca4dbe750674f5833d6a8ec632305" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietEB301A03\/Tiet504AADCF\/Tiet2FEB0C19\/TietF58BE94A.php", @@ -12064,7 +12064,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Copilot.php", - "hash": "2716c4d5aacb311dd68c363af1075741" + "hash": "51f1e88b6d6e5ebf5430bba3e8c02a46" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CheckAutomatedSecurityFixes.php", @@ -26028,7 +26028,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Copilot.php", - "hash": "63a3be14fb1725c07a25cc70e4f31ae0" + "hash": "d29b7fffe497d5e9fb9cf418da025763" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Pulls.php", @@ -26516,7 +26516,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Five.php", - "hash": "f328c04c40d6e52bb27564ad7e5fe4dd" + "hash": "fb4b20e74faa8a3a4c5a80c8b1198f46" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", @@ -26524,7 +26524,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", - "hash": "a02390660a4c5a1ed6e669f4ba56746d" + "hash": "d0030855fb7882740d41b9797183153c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Eight.php", @@ -26616,7 +26616,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Five.php", - "hash": "cffa6649a4dfdaae443d62e1167029b3" + "hash": "88c3ab5404f83e9521590b1642f61456" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Two.php", @@ -26628,7 +26628,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", - "hash": "09acf8f01a13b115bec1766503d166e6" + "hash": "85148bb0a740801a081f7801097da46f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Eight.php", @@ -26724,7 +26724,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operators.php", - "hash": "9892ddf856001c3a6609c80bd9122996" + "hash": "1f927fb4f128b1e8cdde67d0468916e4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Root.php", @@ -28896,7 +28896,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "ae915aae3c85947c8885028958b3747d" + "hash": "9e1056b1855c2f58baf95743d7982f1d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php", @@ -29692,11 +29692,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "d651b71ea880f4db2c205e2a7b7afc9b" + "hash": "c728289d729231a8bc32d2e1f80256fe" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "152ab309e9c32a44dfbcc4248bf88b47" + "hash": "511be43fa0ed274c8635d3948e9c184f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -29804,7 +29804,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/WebHook\/Issues.php", - "hash": "aeed5d8f8d9a618c523540c7197a8451" + "hash": "8939263e049d611f45bd19fced5060de" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/WebHook\/Label.php", @@ -30088,7 +30088,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Issues.php", - "hash": "c177cd5fc49b8e94e3ee4614707bdbbf" + "hash": "bd9b4fe7c98b03f3f13e5ff767cd6c51" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Label.php", @@ -30718,62 +30718,10 @@ "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanningLocationWikiCommit.php", "hash": "fbf046613d33288e93513b7fca257c5e" }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/UsageMetricsForEnterprise.php", - "hash": "162fa5fc7256a84ce19908e30d5de89c" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/UsageMetricsForEnterprise.php", - "hash": "968abe0703b622324354c9233156af38" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/UsageMetricsForEnterpriseTest.php", - "hash": "61cf924005f6e4d5f4d7084f229f13eb" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/UsageMetricsForEnterpriseListing.php", - "hash": "936abfcd2a7fe9d247076bdadf552042" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/UsageMetricsForEnterpriseListing.php", - "hash": "0151a1137e15be48d0805683a42b7f04" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/UsageMetricsForEnterpriseListingTest.php", - "hash": "49e1be02b71aa1bdc83863660dc6e6c9" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/UsageMetricsForOrg.php", - "hash": "9bf2d90cb5fa77c3ea9fbc7df6840c32" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/UsageMetricsForOrg.php", - "hash": "452234a66594f578c2ce65078785c532" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/UsageMetricsForOrgTest.php", - "hash": "a43bad5fe1d03978b1ab0e1df06c8a69" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/UsageMetricsForOrgListing.php", - "hash": "08cd75f9912ea939018bc1b7aff9a0bf" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/UsageMetricsForOrgListing.php", - "hash": "8d9641015fe6f06fc921d725bccd8cdd" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/UsageMetricsForOrgListingTest.php", - "hash": "c6dc237409736915f495d2007bdd81e4" - }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Vulnerability.php", "hash": "918ecb90ce6166e00298030535c3682b" }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CopilotUsageMetrics.php", - "hash": "2049c422912e2d5c570a7e9ace767f73" - }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleParamsCodeScanningTool.php", "hash": "c79d6050ec7cfc048606809f26cb076f" @@ -30790,10 +30738,6 @@ "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Vulnerability\/Package.php", "hash": "df517049fd070ef7f5124c1fdb4a83e4" }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CopilotUsageMetrics\/Breakdown.php", - "hash": "638cf2604218a078cce72fc1fa10b042" - }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietD0156E29\/Tiet718D0614\/Tiet1A091EF2\/TietD0F00D93.php", "hash": "942c49be986036c25b8782644d130121" @@ -30808,15 +30752,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Copilot.php", - "hash": "a3d79de7364e415086ca20e98eaf2a8c" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/Copilot\/Usage.php", - "hash": "e2fda3a65c4b322fcb254d3ca5368d40" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Copilot\/Usage.php", - "hash": "76b4dd583117e7422fddf71b85382e78" + "hash": "4d43c3452f3528deb8826c2c049c92bb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhooksCodeScanningCommitOid.php", @@ -32242,58 +32178,6 @@ "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryRuleMergeQueue\/Parameters.php", "hash": "45e5f30f979683e6bf25a1544adcc9a1" }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/UsageMetricsForEnterpriseTeam.php", - "hash": "1515c9ea5d91b4b9f6cc19452828bc92" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/UsageMetricsForEnterpriseTeam.php", - "hash": "5fb221cff27cf027b0b5af65584f1c27" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/UsageMetricsForEnterpriseTeamTest.php", - "hash": "cdc71330fa2f8193a2daffa4b6ab09f0" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/UsageMetricsForEnterpriseTeamListing.php", - "hash": "ad822bd54eda13bf07082751327601d0" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/UsageMetricsForEnterpriseTeamListing.php", - "hash": "3032c760a4039725ac9d46d83a533d86" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/UsageMetricsForEnterpriseTeamListingTest.php", - "hash": "b414ae3e974cd9a7a26dd56465507689" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Enterprises\/Enterprise\/Team\/TeamSlug\/Copilot\/Usage.php", - "hash": "e656ff5a05255b727b375b99e58df54b" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/UsageMetricsForTeam.php", - "hash": "b4eea3a107c9f0fab27ceb5ebd161068" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/UsageMetricsForTeam.php", - "hash": "0e041b2b09038784c9c8e245951e7b5e" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/UsageMetricsForTeamTest.php", - "hash": "6d8c5e9d108d76280dc7210ada7cf6c1" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/Copilot\/UsageMetricsForTeamListing.php", - "hash": "98a984f5d237decaac767b835499fe15" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/Copilot\/UsageMetricsForTeamListing.php", - "hash": "7354ce7a3ea0f052d8d4bb963a9f7845" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/Copilot\/UsageMetricsForTeamListingTest.php", - "hash": "0560b08237392054237c3dda25178f0c" - }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/SecretScanning\/CreatePushProtectionBypass.php", "hash": "0a4f91cc60ff50ee752ed23be75e5056" @@ -32342,10 +32226,6 @@ "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanning\/CreatePushProtectionBypass\/Request\/ApplicationJson.php", "hash": "a4db51af9b9cb3ffa5256f5a42c54620" }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Team\/TeamSlug\/Copilot\/Usage.php", - "hash": "3c27fd623e3f2c73dffec81135771ae7" - }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/SecretScanning\/PushProtectionBypasses.php", "hash": "b8acda0604781f6feb8a0e73fdde1863" @@ -35309,6 +35189,14 @@ { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCustomPropertyPromotedToEnterprise.php", "hash": "1f083790966ee5ef68e395bce0955597" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesTyped.php", + "hash": "1d61fa505f3d5c3e4dc30781d9335ddb" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookIssuesUntyped.php", + "hash": "8466298ff448fb4cd3ba516055db09cf" } ] }, diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Copilot/Usage.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Copilot/Usage.php deleted file mode 100644 index 668313f1885..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Copilot/Usage.php +++ /dev/null @@ -1,286 +0,0 @@ - $className - * - * @return T - * - * @template T of object - */ - public function hydrateObject(string $className, array $payload): object - { - return match ($className) { - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), - default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), - }; - } - - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(array $payload): BasicError - { - $properties = []; - $missingFields = []; - try { - $value = $payload['message'] ?? null; - - if ($value === null) { - $properties['message'] = null; - goto after_message; - } - - $properties['message'] = $value; - - after_message: - - $value = $payload['documentation_url'] ?? null; - - if ($value === null) { - $properties['documentationUrl'] = null; - goto after_documentationUrl; - } - - $properties['documentationUrl'] = $value; - - after_documentationUrl: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $properties['url'] = null; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['status'] ?? null; - - if ($value === null) { - $properties['status'] = null; - goto after_status; - } - - $properties['status'] = $value; - - after_status: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(BasicError::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new BasicError(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); - } - } - - private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array - { - foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { - if (is_a($object, $valueType)) { - return [$accessor => $payloadType] + $this->{$method}($object); - } - } - - throw new LogicException('No type mapped for object of class: ' . $object::class); - } - - public function serializeObject(object $object): mixed - { - return $this->serializeObjectOfType($object, $object::class); - } - - /** - * @param T $object - * @param class-string $className - * - * @template T - */ - public function serializeObjectOfType(object $object, string $className): mixed - { - try { - return match ($className) { - 'array' => $this->serializeValuearray($object), - 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), - 'DateTime' => $this->serializeValueDateTime($object), - 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), - 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), - default => throw new LogicException("No serialization defined for $className"), - }; - } catch (Throwable $exception) { - throw UnableToSerializeObject::dueToError($className, $exception); - } - } - - private function serializeValuearray(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeArrayItems(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeUuidToString(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueDateTime(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeDateTime(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueDateTimeImmutable(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeDateTime(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueDateTimeInterface(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeDateTime(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(mixed $object): mixed - { - assert($object instanceof BasicError); - $result = []; - - $message = $object->message; - - if ($message === null) { - goto after_message; - } - - after_message: $result['message'] = $message; - - $documentationUrl = $object->documentationUrl; - - if ($documentationUrl === null) { - goto after_documentationUrl; - } - - after_documentationUrl: $result['documentation_url'] = $documentationUrl; - - $url = $object->url; - - if ($url === null) { - goto after_url; - } - - after_url: $result['url'] = $url; - - $status = $object->status; - - if ($status === null) { - goto after_status; - } - - after_status: $result['status'] = $status; - - return $result; - } - - /** - * @param class-string $className - * @param iterable $payloads; - * - * @return IterableList - * - * @throws UnableToHydrateObject - * - * @template T - */ - public function hydrateObjects(string $className, iterable $payloads): IterableList - { - return new IterableList($this->doHydrateObjects($className, $payloads)); - } - - private function doHydrateObjects(string $className, iterable $payloads): Generator - { - foreach ($payloads as $index => $payload) { - yield $index => $this->hydrateObject($className, $payload); - } - } - - /** - * @param class-string $className - * @param iterable $payloads; - * - * @return IterableList - * - * @throws UnableToSerializeObject - * - * @template T - */ - public function serializeObjects(iterable $payloads): IterableList - { - return new IterableList($this->doSerializeObjects($payloads)); - } - - private function doSerializeObjects(iterable $objects): Generator - { - foreach ($objects as $index => $object) { - yield $index => $this->serializeObject($object); - } - } -} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Team/TeamSlug/Copilot/Usage.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Team/TeamSlug/Copilot/Usage.php deleted file mode 100644 index 532d9f37b2d..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Enterprises/Enterprise/Team/TeamSlug/Copilot/Usage.php +++ /dev/null @@ -1,286 +0,0 @@ - $className - * - * @return T - * - * @template T of object - */ - public function hydrateObject(string $className, array $payload): object - { - return match ($className) { - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), - default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), - }; - } - - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(array $payload): BasicError - { - $properties = []; - $missingFields = []; - try { - $value = $payload['message'] ?? null; - - if ($value === null) { - $properties['message'] = null; - goto after_message; - } - - $properties['message'] = $value; - - after_message: - - $value = $payload['documentation_url'] ?? null; - - if ($value === null) { - $properties['documentationUrl'] = null; - goto after_documentationUrl; - } - - $properties['documentationUrl'] = $value; - - after_documentationUrl: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $properties['url'] = null; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['status'] ?? null; - - if ($value === null) { - $properties['status'] = null; - goto after_status; - } - - $properties['status'] = $value; - - after_status: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(BasicError::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new BasicError(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); - } - } - - private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array - { - foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { - if (is_a($object, $valueType)) { - return [$accessor => $payloadType] + $this->{$method}($object); - } - } - - throw new LogicException('No type mapped for object of class: ' . $object::class); - } - - public function serializeObject(object $object): mixed - { - return $this->serializeObjectOfType($object, $object::class); - } - - /** - * @param T $object - * @param class-string $className - * - * @template T - */ - public function serializeObjectOfType(object $object, string $className): mixed - { - try { - return match ($className) { - 'array' => $this->serializeValuearray($object), - 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), - 'DateTime' => $this->serializeValueDateTime($object), - 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), - 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), - default => throw new LogicException("No serialization defined for $className"), - }; - } catch (Throwable $exception) { - throw UnableToSerializeObject::dueToError($className, $exception); - } - } - - private function serializeValuearray(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeArrayItems(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeUuidToString(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueDateTime(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeDateTime(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueDateTimeImmutable(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeDateTime(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueDateTimeInterface(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeDateTime(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(mixed $object): mixed - { - assert($object instanceof BasicError); - $result = []; - - $message = $object->message; - - if ($message === null) { - goto after_message; - } - - after_message: $result['message'] = $message; - - $documentationUrl = $object->documentationUrl; - - if ($documentationUrl === null) { - goto after_documentationUrl; - } - - after_documentationUrl: $result['documentation_url'] = $documentationUrl; - - $url = $object->url; - - if ($url === null) { - goto after_url; - } - - after_url: $result['url'] = $url; - - $status = $object->status; - - if ($status === null) { - goto after_status; - } - - after_status: $result['status'] = $status; - - return $result; - } - - /** - * @param class-string $className - * @param iterable $payloads; - * - * @return IterableList - * - * @throws UnableToHydrateObject - * - * @template T - */ - public function hydrateObjects(string $className, iterable $payloads): IterableList - { - return new IterableList($this->doHydrateObjects($className, $payloads)); - } - - private function doHydrateObjects(string $className, iterable $payloads): Generator - { - foreach ($payloads as $index => $payload) { - yield $index => $this->hydrateObject($className, $payload); - } - } - - /** - * @param class-string $className - * @param iterable $payloads; - * - * @return IterableList - * - * @throws UnableToSerializeObject - * - * @template T - */ - public function serializeObjects(iterable $payloads): IterableList - { - return new IterableList($this->doSerializeObjects($payloads)); - } - - private function doSerializeObjects(iterable $objects): Generator - { - foreach ($objects as $index => $object) { - yield $index => $this->serializeObject($object); - } - } -} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Copilot/Usage.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Copilot/Usage.php deleted file mode 100644 index e0d6077d950..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Copilot/Usage.php +++ /dev/null @@ -1,286 +0,0 @@ - $className - * - * @return T - * - * @template T of object - */ - public function hydrateObject(string $className, array $payload): object - { - return match ($className) { - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), - default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), - }; - } - - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(array $payload): BasicError - { - $properties = []; - $missingFields = []; - try { - $value = $payload['message'] ?? null; - - if ($value === null) { - $properties['message'] = null; - goto after_message; - } - - $properties['message'] = $value; - - after_message: - - $value = $payload['documentation_url'] ?? null; - - if ($value === null) { - $properties['documentationUrl'] = null; - goto after_documentationUrl; - } - - $properties['documentationUrl'] = $value; - - after_documentationUrl: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $properties['url'] = null; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['status'] ?? null; - - if ($value === null) { - $properties['status'] = null; - goto after_status; - } - - $properties['status'] = $value; - - after_status: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(BasicError::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new BasicError(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); - } - } - - private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array - { - foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { - if (is_a($object, $valueType)) { - return [$accessor => $payloadType] + $this->{$method}($object); - } - } - - throw new LogicException('No type mapped for object of class: ' . $object::class); - } - - public function serializeObject(object $object): mixed - { - return $this->serializeObjectOfType($object, $object::class); - } - - /** - * @param T $object - * @param class-string $className - * - * @template T - */ - public function serializeObjectOfType(object $object, string $className): mixed - { - try { - return match ($className) { - 'array' => $this->serializeValuearray($object), - 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), - 'DateTime' => $this->serializeValueDateTime($object), - 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), - 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), - default => throw new LogicException("No serialization defined for $className"), - }; - } catch (Throwable $exception) { - throw UnableToSerializeObject::dueToError($className, $exception); - } - } - - private function serializeValuearray(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeArrayItems(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeUuidToString(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueDateTime(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeDateTime(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueDateTimeImmutable(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeDateTime(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueDateTimeInterface(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeDateTime(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(mixed $object): mixed - { - assert($object instanceof BasicError); - $result = []; - - $message = $object->message; - - if ($message === null) { - goto after_message; - } - - after_message: $result['message'] = $message; - - $documentationUrl = $object->documentationUrl; - - if ($documentationUrl === null) { - goto after_documentationUrl; - } - - after_documentationUrl: $result['documentation_url'] = $documentationUrl; - - $url = $object->url; - - if ($url === null) { - goto after_url; - } - - after_url: $result['url'] = $url; - - $status = $object->status; - - if ($status === null) { - goto after_status; - } - - after_status: $result['status'] = $status; - - return $result; - } - - /** - * @param class-string $className - * @param iterable $payloads; - * - * @return IterableList - * - * @throws UnableToHydrateObject - * - * @template T - */ - public function hydrateObjects(string $className, iterable $payloads): IterableList - { - return new IterableList($this->doHydrateObjects($className, $payloads)); - } - - private function doHydrateObjects(string $className, iterable $payloads): Generator - { - foreach ($payloads as $index => $payload) { - yield $index => $this->hydrateObject($className, $payload); - } - } - - /** - * @param class-string $className - * @param iterable $payloads; - * - * @return IterableList - * - * @throws UnableToSerializeObject - * - * @template T - */ - public function serializeObjects(iterable $payloads): IterableList - { - return new IterableList($this->doSerializeObjects($payloads)); - } - - private function doSerializeObjects(iterable $objects): Generator - { - foreach ($objects as $index => $object) { - yield $index => $this->serializeObject($object); - } - } -} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Team/TeamSlug/Copilot/Usage.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Team/TeamSlug/Copilot/Usage.php deleted file mode 100644 index 3f9665dc271..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Team/TeamSlug/Copilot/Usage.php +++ /dev/null @@ -1,286 +0,0 @@ - $className - * - * @return T - * - * @template T of object - */ - public function hydrateObject(string $className, array $payload): object - { - return match ($className) { - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), - default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), - }; - } - - private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(array $payload): BasicError - { - $properties = []; - $missingFields = []; - try { - $value = $payload['message'] ?? null; - - if ($value === null) { - $properties['message'] = null; - goto after_message; - } - - $properties['message'] = $value; - - after_message: - - $value = $payload['documentation_url'] ?? null; - - if ($value === null) { - $properties['documentationUrl'] = null; - goto after_documentationUrl; - } - - $properties['documentationUrl'] = $value; - - after_documentationUrl: - - $value = $payload['url'] ?? null; - - if ($value === null) { - $properties['url'] = null; - goto after_url; - } - - $properties['url'] = $value; - - after_url: - - $value = $payload['status'] ?? null; - - if ($value === null) { - $properties['status'] = null; - goto after_status; - } - - $properties['status'] = $value; - - after_status: - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); - } - - if (count($missingFields) > 0) { - throw UnableToHydrateObject::dueToMissingFields(BasicError::class, $missingFields, stack: $this->hydrationStack); - } - - try { - return new BasicError(...$properties); - } catch (Throwable $exception) { - throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError', $exception, stack: $this->hydrationStack); - } - } - - private function serializeViaTypeMap(string $accessor, object $object, array $payloadToTypeMap): array - { - foreach ($payloadToTypeMap as $payloadType => [$valueType, $method]) { - if (is_a($object, $valueType)) { - return [$accessor => $payloadType] + $this->{$method}($object); - } - } - - throw new LogicException('No type mapped for object of class: ' . $object::class); - } - - public function serializeObject(object $object): mixed - { - return $this->serializeObjectOfType($object, $object::class); - } - - /** - * @param T $object - * @param class-string $className - * - * @template T - */ - public function serializeObjectOfType(object $object, string $className): mixed - { - try { - return match ($className) { - 'array' => $this->serializeValuearray($object), - 'Ramsey\Uuid\UuidInterface' => $this->serializeValueRamsey⚡️Uuid⚡️UuidInterface($object), - 'DateTime' => $this->serializeValueDateTime($object), - 'DateTimeImmutable' => $this->serializeValueDateTimeImmutable($object), - 'DateTimeInterface' => $this->serializeValueDateTimeInterface($object), - 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), - default => throw new LogicException("No serialization defined for $className"), - }; - } catch (Throwable $exception) { - throw UnableToSerializeObject::dueToError($className, $exception); - } - } - - private function serializeValuearray(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeArrayItems(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueRamsey⚡️Uuid⚡️UuidInterface(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeUuidToString(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueDateTime(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeDateTime(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueDateTimeImmutable(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeDateTime(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeValueDateTimeInterface(mixed $value): mixed - { - static $serializer; - - if ($serializer === null) { - $serializer = new SerializeDateTime(...[]); - } - - return $serializer->serialize($value, $this); - } - - private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError(mixed $object): mixed - { - assert($object instanceof BasicError); - $result = []; - - $message = $object->message; - - if ($message === null) { - goto after_message; - } - - after_message: $result['message'] = $message; - - $documentationUrl = $object->documentationUrl; - - if ($documentationUrl === null) { - goto after_documentationUrl; - } - - after_documentationUrl: $result['documentation_url'] = $documentationUrl; - - $url = $object->url; - - if ($url === null) { - goto after_url; - } - - after_url: $result['url'] = $url; - - $status = $object->status; - - if ($status === null) { - goto after_status; - } - - after_status: $result['status'] = $status; - - return $result; - } - - /** - * @param class-string $className - * @param iterable $payloads; - * - * @return IterableList - * - * @throws UnableToHydrateObject - * - * @template T - */ - public function hydrateObjects(string $className, iterable $payloads): IterableList - { - return new IterableList($this->doHydrateObjects($className, $payloads)); - } - - private function doHydrateObjects(string $className, iterable $payloads): Generator - { - foreach ($payloads as $index => $payload) { - yield $index => $this->hydrateObject($className, $payload); - } - } - - /** - * @param class-string $className - * @param iterable $payloads; - * - * @return IterableList - * - * @throws UnableToSerializeObject - * - * @template T - */ - public function serializeObjects(iterable $payloads): IterableList - { - return new IterableList($this->doSerializeObjects($payloads)); - } - - private function doSerializeObjects(iterable $objects): Generator - { - foreach ($objects as $index => $object) { - yield $index => $this->serializeObject($object); - } - } -} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Issues.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Issues.php index 072766cacc8..cac97be8796 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Issues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/Issues.php @@ -34,10 +34,12 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewIssue; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewRepository; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTyped; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnassigned; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlabeled; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnpinned; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUntyped; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\Assignee; use ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksIssue\Milestone; @@ -272,6 +274,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewRepository\License' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️License($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewRepository\Owner' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️Owner($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewRepository\Permissions' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️Permissions($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTyped' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTyped($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnassigned' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnassigned($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksUserMannequin' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksUserMannequin($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlabeled' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlabeled($payload), @@ -288,6 +291,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\SubIssuesSummary' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️SubIssuesSummary($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\User' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️User($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnpinned' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnpinned($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUntyped' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUntyped($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\RepositoryWebhooks\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesOpened\Changes\OldRepository\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesOpened⚡️Changes⚡️OldRepository⚡️CustomProperties($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewRepository\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️CustomProperties($payload), @@ -42266,6 +42270,176 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTyped(array $payload): WebhookIssuesTyped + { + $properties = []; + $missingFields = []; + try { + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $properties['enterprise'] = null; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️EnterpriseWebhooks($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $properties['installation'] = null; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['issue'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue'; + goto after_issue; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'issue'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['issue'] = $value; + + after_issue: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $properties['organization'] = null; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTyped', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(WebhookIssuesTyped::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new WebhookIssuesTyped(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTyped', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnassigned(array $payload): WebhookIssuesUnassigned { $properties = []; @@ -45686,6 +45860,176 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUntyped(array $payload): WebhookIssuesUntyped + { + $properties = []; + $missingFields = []; + try { + $value = $payload['action'] ?? null; + + if ($value === null) { + $missingFields[] = 'action'; + goto after_action; + } + + $properties['action'] = $value; + + after_action: + + $value = $payload['enterprise'] ?? null; + + if ($value === null) { + $properties['enterprise'] = null; + goto after_enterprise; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'enterprise'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️EnterpriseWebhooks($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['enterprise'] = $value; + + after_enterprise: + + $value = $payload['installation'] ?? null; + + if ($value === null) { + $properties['installation'] = null; + goto after_installation; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'installation'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['installation'] = $value; + + after_installation: + + $value = $payload['issue'] ?? null; + + if ($value === null) { + $missingFields[] = 'issue'; + goto after_issue; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'issue'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['issue'] = $value; + + after_issue: + + $value = $payload['type'] ?? null; + + if ($value === null) { + $properties['type'] = null; + goto after_type; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'type'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️IssueType($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['type'] = $value; + + after_type: + + $value = $payload['organization'] ?? null; + + if ($value === null) { + $properties['organization'] = null; + goto after_organization; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'organization'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['organization'] = $value; + + after_organization: + + $value = $payload['repository'] ?? null; + + if ($value === null) { + $missingFields[] = 'repository'; + goto after_repository; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'repository'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['repository'] = $value; + + after_repository: + + $value = $payload['sender'] ?? null; + + if ($value === null) { + $missingFields[] = 'sender'; + goto after_sender; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'sender'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['sender'] = $value; + + after_sender: + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUntyped', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(WebhookIssuesUntyped::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new WebhookIssuesUntyped(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUntyped', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks⚡️CustomProperties(array $payload): CustomProperties { $properties = []; @@ -45960,6 +46304,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewRepository\License' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️License($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewRepository\Owner' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️Owner($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTransferred\Changes\NewRepository\Permissions' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTransferred⚡️Changes⚡️NewRepository⚡️Permissions($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesTyped' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTyped($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnassigned' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnassigned($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhooksUserMannequin' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksUserMannequin($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlabeled' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlabeled($object), @@ -45976,6 +46321,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\SubIssuesSummary' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️SubIssuesSummary($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnlocked\Issue\User' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnlocked⚡️Issue⚡️User($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUnpinned' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnpinned($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\WebhookIssuesUntyped' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUntyped($object), default => throw new LogicException("No serialization defined for $className"), }; } catch (Throwable $exception) { @@ -69335,6 +69681,65 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesTyped(mixed $object): mixed + { + assert($object instanceof WebhookIssuesTyped); + $result = []; + + $action = $object->action; + after_action: $result['action'] = $action; + + $enterprise = $object->enterprise; + + if ($enterprise === null) { + goto after_enterprise; + } + + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️EnterpriseWebhooks($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + $installation = $object->installation; + + if ($installation === null) { + goto after_installation; + } + + $installation = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + $issue = $object->issue; + $issue = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue($issue); + after_issue: $result['issue'] = $issue; + + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + + $organization = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($organization); + after_organization: $result['organization'] = $organization; + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks($repository); + after_repository: $result['repository'] = $repository; + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUnassigned(mixed $object): mixed { assert($object instanceof WebhookIssuesUnassigned); @@ -71190,6 +71595,65 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhookIssuesUntyped(mixed $object): mixed + { + assert($object instanceof WebhookIssuesUntyped); + $result = []; + + $action = $object->action; + after_action: $result['action'] = $action; + + $enterprise = $object->enterprise; + + if ($enterprise === null) { + goto after_enterprise; + } + + $enterprise = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️EnterpriseWebhooks($enterprise); + after_enterprise: $result['enterprise'] = $enterprise; + + $installation = $object->installation; + + if ($installation === null) { + goto after_installation; + } + + $installation = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation($installation); + after_installation: $result['installation'] = $installation; + + $issue = $object->issue; + $issue = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️WebhooksIssue($issue); + after_issue: $result['issue'] = $issue; + + $type = $object->type; + + if ($type === null) { + goto after_type; + } + + $type = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️IssueType($type); + after_type: $result['type'] = $type; + + $organization = $object->organization; + + if ($organization === null) { + goto after_organization; + } + + $organization = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️OrganizationSimpleWebhooks($organization); + after_organization: $result['organization'] = $organization; + + $repository = $object->repository; + $repository = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️RepositoryWebhooks($repository); + after_repository: $result['repository'] = $repository; + + $sender = $object->sender; + $sender = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleUser($sender); + after_sender: $result['sender'] = $sender; + + return $result; + } + /** * @param class-string $className * @param iterable $payloads; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php index e32648c74af..e49ae234ba3 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php @@ -84,7 +84,6 @@ final class Hydrators implements ObjectMapper private Internal\Hydrator\Operation\Enterprises\Enterprise\ConsumedLicenses|null $operation🌀Enterprises🌀Enterprise🌀ConsumedLicenses = null; private Internal\Hydrator\Operation\Enterprises\Enterprise\Copilot\Billing\Seats|null $operation🌀Enterprises🌀Enterprise🌀Copilot🌀Billing🌀Seats = null; private Internal\Hydrator\Operation\Enterprises\Enterprise\Copilot\Metrics|null $operation🌀Enterprises🌀Enterprise🌀Copilot🌀Metrics = null; - private Internal\Hydrator\Operation\Enterprises\Enterprise\Copilot\Usage|null $operation🌀Enterprises🌀Enterprise🌀Copilot🌀Usage = null; private Internal\Hydrator\Operation\Enterprises\Enterprise\Dependabot\Alerts|null $operation🌀Enterprises🌀Enterprise🌀Dependabot🌀Alerts = null; private Internal\Hydrator\Operation\Enterprises\Enterprise\LicenseSyncStatus|null $operation🌀Enterprises🌀Enterprise🌀LicenseSyncStatus = null; private Internal\Hydrator\Operation\Enterprises\Enterprise\NetworkConfigurations|null $operation🌀Enterprises🌀Enterprise🌀NetworkConfigurations = null; @@ -106,7 +105,6 @@ final class Hydrators implements ObjectMapper private Internal\Hydrator\Operation\Enterprises\Enterprise\Settings\Billing\SharedStorage|null $operation🌀Enterprises🌀Enterprise🌀Settings🌀Billing🌀SharedStorage = null; private Internal\Hydrator\Operation\Enterprises\Enterprise\Settings\Billing\Usage|null $operation🌀Enterprises🌀Enterprise🌀Settings🌀Billing🌀Usage = null; private Internal\Hydrator\Operation\Enterprises\Enterprise\Team\TeamSlug\Copilot\Metrics|null $operation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Metrics = null; - private Internal\Hydrator\Operation\Enterprises\Enterprise\Team\TeamSlug\Copilot\Usage|null $operation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Usage = null; private Internal\Hydrator\Operation\Enterprises\Enterprise\SecurityProduct\Enablement|null $operation🌀Enterprises🌀Enterprise🌀SecurityProduct🌀Enablement = null; private Internal\Hydrator\Operation\Events|null $operation🌀Events = null; private Internal\Hydrator\Operation\Feeds|null $operation🌀Feeds = null; @@ -212,7 +210,6 @@ final class Hydrators implements ObjectMapper private Internal\Hydrator\Operation\Orgs\Org\Copilot\Billing\SelectedTeams|null $operation🌀Orgs🌀Org🌀Copilot🌀Billing🌀SelectedTeams = null; private Internal\Hydrator\Operation\Orgs\Org\Copilot\Billing\SelectedUsers|null $operation🌀Orgs🌀Org🌀Copilot🌀Billing🌀SelectedUsers = null; private Internal\Hydrator\Operation\Orgs\Org\Copilot\Metrics|null $operation🌀Orgs🌀Org🌀Copilot🌀Metrics = null; - private Internal\Hydrator\Operation\Orgs\Org\Copilot\Usage|null $operation🌀Orgs🌀Org🌀Copilot🌀Usage = null; private Internal\Hydrator\Operation\Orgs\Org\CredentialAuthorizations|null $operation🌀Orgs🌀Org🌀CredentialAuthorizations = null; private Internal\Hydrator\Operation\Orgs\Org\CredentialAuthorizations\CredentialId|null $operation🌀Orgs🌀Org🌀CredentialAuthorizations🌀CredentialId = null; private Internal\Hydrator\Operation\Orgs\Org\CustomRepositoryRoles|null $operation🌀Orgs🌀Org🌀CustomRepositoryRoles = null; @@ -321,7 +318,6 @@ final class Hydrators implements ObjectMapper private Internal\Hydrator\Operation\Orgs\Org\Settings\NetworkSettings\NetworkSettingsId|null $operation🌀Orgs🌀Org🌀Settings🌀NetworkSettings🌀NetworkSettingsId = null; private Internal\Hydrator\Operation\Orgs\Org\TeamSync\Groups|null $operation🌀Orgs🌀Org🌀TeamSync🌀Groups = null; private Internal\Hydrator\Operation\Orgs\Org\Team\TeamSlug\Copilot\Metrics|null $operation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Metrics = null; - private Internal\Hydrator\Operation\Orgs\Org\Team\TeamSlug\Copilot\Usage|null $operation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Usage = null; private Internal\Hydrator\Operation\Orgs\Org\Teams|null $operation🌀Orgs🌀Org🌀Teams = null; private Internal\Hydrator\Operation\Orgs\Org\Teams\TeamSlug|null $operation🌀Orgs🌀Org🌀Teams🌀TeamSlug = null; private Internal\Hydrator\Operation\Orgs\Org\Teams\TeamSlug\Discussions|null $operation🌀Orgs🌀Org🌀Teams🌀TeamSlug🌀Discussions = null; @@ -1207,7 +1203,7 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationRepositoriesAdded', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationRepositoriesRemoved' => $this->getObjectMapperWebHook🪝InstallationRepositories()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationTargetRenamed', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationTargetRenamed\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationTargetRenamed\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationTargetRenamed\\Changes\\Login', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationTargetRenamed\\Changes\\Slug' => $this->getObjectMapperWebHook🪝InstallationTarget()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Comment', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Comment\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Comment\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssueComment', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssueComment\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssueComment\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksChanges', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksChanges\\Body', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\User' => $this->getObjectMapperWebHook🪝IssueComment()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesAssigned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMilestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMilestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes\\Body', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes\\Title', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\CustomProperties', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\License', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesPinned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\CustomProperties', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\License', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnassigned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksUserMannequin', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlabeled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnpinned' => $this->getObjectMapperWebHook🪝Issues()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesAssigned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMilestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMilestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes\\Body', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes\\Title', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\CustomProperties', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\License', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesPinned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\CustomProperties', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\License', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTyped', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnassigned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksUserMannequin', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlabeled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnpinned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUntyped' => $this->getObjectMapperWebHook🪝Issues()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelEdited\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelEdited\\Changes\\Color', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelEdited\\Changes\\Description', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelEdited\\Changes\\Name' => $this->getObjectMapperWebHook🪝Label()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchaseCancelled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksPreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksPreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksPreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchaseChanged', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChange', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePurchased' => $this->getObjectMapperWebHook🪝MarketplacePurchase()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberAdded', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberAdded\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberAdded\\Changes\\Permission', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberAdded\\Changes\\RoleName', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberEdited\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberEdited\\Changes\\OldPermission', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberEdited\\Changes\\Permission', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberRemoved' => $this->getObjectMapperWebHook🪝Member()->hydrateObject($className, $payload), @@ -1619,7 +1615,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationRepositoriesAdded', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationRepositoriesRemoved' => $this->getObjectMapperWebHook🪝InstallationRepositories()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationTargetRenamed', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationTargetRenamed\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationTargetRenamed\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationTargetRenamed\\Changes\\Login', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookInstallationTargetRenamed\\Changes\\Slug' => $this->getObjectMapperWebHook🪝InstallationTarget()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Comment', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Comment\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Comment\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentCreated\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssueComment', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssueComment\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssueComment\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksChanges', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksChanges\\Body', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssueCommentEdited\\Issue\\User' => $this->getObjectMapperWebHook🪝IssueComment()->serializeObject($object), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesAssigned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMilestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMilestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes\\Body', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes\\Title', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\CustomProperties', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\License', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesPinned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\CustomProperties', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\License', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnassigned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksUserMannequin', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlabeled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnpinned' => $this->getObjectMapperWebHook🪝Issues()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesAssigned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesClosed\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDeleted\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesDemilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMilestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMilestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes\\Body', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Changes\\Title', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesEdited\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLabeled\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesLocked\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesMilestoned\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\CustomProperties', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\License', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Changes\\OldRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesOpened\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesPinned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksIssue2\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesReopened\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewIssue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\CustomProperties', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\License', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTransferred\\Changes\\NewRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesTyped', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnassigned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksUserMannequin', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlabeled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Assignee', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Milestone\\Creator', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Owner', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PerformedViaGithubApp\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\PullRequest', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\Reactions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\SubIssuesSummary', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnlocked\\Issue\\User', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUnpinned', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookIssuesUntyped' => $this->getObjectMapperWebHook🪝Issues()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelCreated', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelDeleted', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelEdited\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelEdited\\Changes\\Color', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelEdited\\Changes\\Description', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookLabelEdited\\Changes\\Name' => $this->getObjectMapperWebHook🪝Label()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchaseCancelled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksPreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksPreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhooksPreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchaseChanged', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchaseChanged\\PreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChange', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChange\\PreviousMarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase\\Account', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePendingChangeCancelled\\MarketplacePurchase\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMarketplacePurchasePurchased' => $this->getObjectMapperWebHook🪝MarketplacePurchase()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberAdded', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberAdded\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberAdded\\Changes\\Permission', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberAdded\\Changes\\RoleName', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberEdited', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberEdited\\Changes', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberEdited\\Changes\\OldPermission', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberEdited\\Changes\\Permission', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\WebhookMemberRemoved' => $this->getObjectMapperWebHook🪝Member()->serializeObject($object), @@ -2340,15 +2336,6 @@ public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot return $this->operation🌀Enterprises🌀Enterprise🌀Copilot🌀Metrics; } - public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Usage(): Internal\Hydrator\Operation\Enterprises\Enterprise\Copilot\Usage - { - if ($this->operation🌀Enterprises🌀Enterprise🌀Copilot🌀Usage instanceof Internal\Hydrator\Operation\Enterprises\Enterprise\Copilot\Usage === false) { - $this->operation🌀Enterprises🌀Enterprise🌀Copilot🌀Usage = new Internal\Hydrator\Operation\Enterprises\Enterprise\Copilot\Usage(); - } - - return $this->operation🌀Enterprises🌀Enterprise🌀Copilot🌀Usage; - } - public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Dependabot🌀Alerts(): Internal\Hydrator\Operation\Enterprises\Enterprise\Dependabot\Alerts { if ($this->operation🌀Enterprises🌀Enterprise🌀Dependabot🌀Alerts instanceof Internal\Hydrator\Operation\Enterprises\Enterprise\Dependabot\Alerts === false) { @@ -2538,15 +2525,6 @@ public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Team return $this->operation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Metrics; } - public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Usage(): Internal\Hydrator\Operation\Enterprises\Enterprise\Team\TeamSlug\Copilot\Usage - { - if ($this->operation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Usage instanceof Internal\Hydrator\Operation\Enterprises\Enterprise\Team\TeamSlug\Copilot\Usage === false) { - $this->operation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Usage = new Internal\Hydrator\Operation\Enterprises\Enterprise\Team\TeamSlug\Copilot\Usage(); - } - - return $this->operation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Usage; - } - public function getObjectMapperOperation🌀Enterprises🌀Enterprise🌀SecurityProduct🌀Enablement(): Internal\Hydrator\Operation\Enterprises\Enterprise\SecurityProduct\Enablement { if ($this->operation🌀Enterprises🌀Enterprise🌀SecurityProduct🌀Enablement instanceof Internal\Hydrator\Operation\Enterprises\Enterprise\SecurityProduct\Enablement === false) { @@ -3492,15 +3470,6 @@ public function getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Metrics(): return $this->operation🌀Orgs🌀Org🌀Copilot🌀Metrics; } - public function getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Usage(): Internal\Hydrator\Operation\Orgs\Org\Copilot\Usage - { - if ($this->operation🌀Orgs🌀Org🌀Copilot🌀Usage instanceof Internal\Hydrator\Operation\Orgs\Org\Copilot\Usage === false) { - $this->operation🌀Orgs🌀Org🌀Copilot🌀Usage = new Internal\Hydrator\Operation\Orgs\Org\Copilot\Usage(); - } - - return $this->operation🌀Orgs🌀Org🌀Copilot🌀Usage; - } - public function getObjectMapperOperation🌀Orgs🌀Org🌀CredentialAuthorizations(): Internal\Hydrator\Operation\Orgs\Org\CredentialAuthorizations { if ($this->operation🌀Orgs🌀Org🌀CredentialAuthorizations instanceof Internal\Hydrator\Operation\Orgs\Org\CredentialAuthorizations === false) { @@ -4473,15 +4442,6 @@ public function getObjectMapperOperation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀C return $this->operation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Metrics; } - public function getObjectMapperOperation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Usage(): Internal\Hydrator\Operation\Orgs\Org\Team\TeamSlug\Copilot\Usage - { - if ($this->operation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Usage instanceof Internal\Hydrator\Operation\Orgs\Org\Team\TeamSlug\Copilot\Usage === false) { - $this->operation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Usage = new Internal\Hydrator\Operation\Orgs\Org\Team\TeamSlug\Copilot\Usage(); - } - - return $this->operation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Usage; - } - public function getObjectMapperOperation🌀Orgs🌀Org🌀Teams(): Internal\Hydrator\Operation\Orgs\Org\Teams { if ($this->operation🌀Orgs🌀Org🌀Teams instanceof Internal\Hydrator\Operation\Orgs\Org\Teams === false) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForEnterprise.php deleted file mode 100644 index 5ca69ca66f1..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForEnterprise.php +++ /dev/null @@ -1,118 +0,0 @@ -enterprise = $enterprise; - $this->since = $since; - $this->until = $until; - $this->page = $page; - $this->perPage = $perPage; - } - - public function createRequest(): RequestInterface - { - return new Request('GET', str_replace(['{enterprise}', '{since}', '{until}', '{page}', '{per_page}'], [$this->enterprise, $this->since, $this->until, $this->page, $this->perPage], '/enterprises/{enterprise}/copilot/usage' . '?since={since}&until={until}&page={page}&per_page={per_page}')); - } - - /** @return Observable */ - public function createResponse(ResponseInterface $response): Observable - { - $code = $response->getStatusCode(); - [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); - switch ($contentType) { - case 'application/json': - $body = json_decode($response->getBody()->getContents(), true); - switch ($code) { - /** - * Response - **/ - case 200: - return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\CopilotUsageMetrics { - $error = new RuntimeException(); - try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CopilotUsageMetrics::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - - return $this->hydrator->hydrateObject(Schema\CopilotUsageMetrics::class, $body); - } catch (Throwable $error) { - goto items_application_json_two_hundred_aaaaa; - } - - items_application_json_two_hundred_aaaaa: - throw $error; - }); - /** - * Internal Error - **/ - - case 500: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Requires authentication - **/ - - case 401: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Forbidden - **/ - - case 403: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Resource not found - **/ - - case 404: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - } - - break; - } - - throw new RuntimeException('Unable to find matching response code and content type'); - } -} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForEnterpriseListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForEnterpriseListing.php deleted file mode 100644 index 4f9f5bde13b..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForEnterpriseListing.php +++ /dev/null @@ -1,118 +0,0 @@ -enterprise = $enterprise; - $this->since = $since; - $this->until = $until; - $this->page = $page; - $this->perPage = $perPage; - } - - public function createRequest(): RequestInterface - { - return new Request('GET', str_replace(['{enterprise}', '{since}', '{until}', '{page}', '{per_page}'], [$this->enterprise, $this->since, $this->until, $this->page, $this->perPage], '/enterprises/{enterprise}/copilot/usage' . '?since={since}&until={until}&page={page}&per_page={per_page}')); - } - - /** @return Observable */ - public function createResponse(ResponseInterface $response): Observable - { - $code = $response->getStatusCode(); - [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); - switch ($contentType) { - case 'application/json': - $body = json_decode($response->getBody()->getContents(), true); - switch ($code) { - /** - * Response - **/ - case 200: - return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\CopilotUsageMetrics { - $error = new RuntimeException(); - try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CopilotUsageMetrics::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - - return $this->hydrator->hydrateObject(Schema\CopilotUsageMetrics::class, $body); - } catch (Throwable $error) { - goto items_application_json_two_hundred_aaaaa; - } - - items_application_json_two_hundred_aaaaa: - throw $error; - }); - /** - * Internal Error - **/ - - case 500: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Requires authentication - **/ - - case 401: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Forbidden - **/ - - case 403: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Resource not found - **/ - - case 404: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - } - - break; - } - - throw new RuntimeException('Unable to find matching response code and content type'); - } -} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeam.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeam.php deleted file mode 100644 index 372e4d6432c..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeam.php +++ /dev/null @@ -1,121 +0,0 @@ -enterprise = $enterprise; - $this->teamSlug = $teamSlug; - $this->since = $since; - $this->until = $until; - $this->page = $page; - $this->perPage = $perPage; - } - - public function createRequest(): RequestInterface - { - return new Request('GET', str_replace(['{enterprise}', '{team_slug}', '{since}', '{until}', '{page}', '{per_page}'], [$this->enterprise, $this->teamSlug, $this->since, $this->until, $this->page, $this->perPage], '/enterprises/{enterprise}/team/{team_slug}/copilot/usage' . '?since={since}&until={until}&page={page}&per_page={per_page}')); - } - - /** @return Observable */ - public function createResponse(ResponseInterface $response): Observable - { - $code = $response->getStatusCode(); - [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); - switch ($contentType) { - case 'application/json': - $body = json_decode($response->getBody()->getContents(), true); - switch ($code) { - /** - * Response - **/ - case 200: - return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\CopilotUsageMetrics { - $error = new RuntimeException(); - try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CopilotUsageMetrics::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - - return $this->hydrator->hydrateObject(Schema\CopilotUsageMetrics::class, $body); - } catch (Throwable $error) { - goto items_application_json_two_hundred_aaaaa; - } - - items_application_json_two_hundred_aaaaa: - throw $error; - }); - /** - * Internal Error - **/ - - case 500: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Requires authentication - **/ - - case 401: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Forbidden - **/ - - case 403: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Resource not found - **/ - - case 404: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - } - - break; - } - - throw new RuntimeException('Unable to find matching response code and content type'); - } -} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeamListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeamListing.php deleted file mode 100644 index c2c818b581d..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeamListing.php +++ /dev/null @@ -1,121 +0,0 @@ -enterprise = $enterprise; - $this->teamSlug = $teamSlug; - $this->since = $since; - $this->until = $until; - $this->page = $page; - $this->perPage = $perPage; - } - - public function createRequest(): RequestInterface - { - return new Request('GET', str_replace(['{enterprise}', '{team_slug}', '{since}', '{until}', '{page}', '{per_page}'], [$this->enterprise, $this->teamSlug, $this->since, $this->until, $this->page, $this->perPage], '/enterprises/{enterprise}/team/{team_slug}/copilot/usage' . '?since={since}&until={until}&page={page}&per_page={per_page}')); - } - - /** @return Observable */ - public function createResponse(ResponseInterface $response): Observable - { - $code = $response->getStatusCode(); - [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); - switch ($contentType) { - case 'application/json': - $body = json_decode($response->getBody()->getContents(), true); - switch ($code) { - /** - * Response - **/ - case 200: - return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\CopilotUsageMetrics { - $error = new RuntimeException(); - try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CopilotUsageMetrics::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - - return $this->hydrator->hydrateObject(Schema\CopilotUsageMetrics::class, $body); - } catch (Throwable $error) { - goto items_application_json_two_hundred_aaaaa; - } - - items_application_json_two_hundred_aaaaa: - throw $error; - }); - /** - * Internal Error - **/ - - case 500: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Requires authentication - **/ - - case 401: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Forbidden - **/ - - case 403: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Resource not found - **/ - - case 404: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - } - - break; - } - - throw new RuntimeException('Unable to find matching response code and content type'); - } -} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForOrg.php deleted file mode 100644 index 93dfb904d83..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForOrg.php +++ /dev/null @@ -1,118 +0,0 @@ -org = $org; - $this->since = $since; - $this->until = $until; - $this->page = $page; - $this->perPage = $perPage; - } - - public function createRequest(): RequestInterface - { - return new Request('GET', str_replace(['{org}', '{since}', '{until}', '{page}', '{per_page}'], [$this->org, $this->since, $this->until, $this->page, $this->perPage], '/orgs/{org}/copilot/usage' . '?since={since}&until={until}&page={page}&per_page={per_page}')); - } - - /** @return Observable */ - public function createResponse(ResponseInterface $response): Observable - { - $code = $response->getStatusCode(); - [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); - switch ($contentType) { - case 'application/json': - $body = json_decode($response->getBody()->getContents(), true); - switch ($code) { - /** - * Response - **/ - case 200: - return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\CopilotUsageMetrics { - $error = new RuntimeException(); - try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CopilotUsageMetrics::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - - return $this->hydrator->hydrateObject(Schema\CopilotUsageMetrics::class, $body); - } catch (Throwable $error) { - goto items_application_json_two_hundred_aaaaa; - } - - items_application_json_two_hundred_aaaaa: - throw $error; - }); - /** - * Internal Error - **/ - - case 500: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Requires authentication - **/ - - case 401: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Forbidden - **/ - - case 403: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Resource not found - **/ - - case 404: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - } - - break; - } - - throw new RuntimeException('Unable to find matching response code and content type'); - } -} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForOrgListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForOrgListing.php deleted file mode 100644 index 1042b4ca31d..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForOrgListing.php +++ /dev/null @@ -1,118 +0,0 @@ -org = $org; - $this->since = $since; - $this->until = $until; - $this->page = $page; - $this->perPage = $perPage; - } - - public function createRequest(): RequestInterface - { - return new Request('GET', str_replace(['{org}', '{since}', '{until}', '{page}', '{per_page}'], [$this->org, $this->since, $this->until, $this->page, $this->perPage], '/orgs/{org}/copilot/usage' . '?since={since}&until={until}&page={page}&per_page={per_page}')); - } - - /** @return Observable */ - public function createResponse(ResponseInterface $response): Observable - { - $code = $response->getStatusCode(); - [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); - switch ($contentType) { - case 'application/json': - $body = json_decode($response->getBody()->getContents(), true); - switch ($code) { - /** - * Response - **/ - case 200: - return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\CopilotUsageMetrics { - $error = new RuntimeException(); - try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CopilotUsageMetrics::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - - return $this->hydrator->hydrateObject(Schema\CopilotUsageMetrics::class, $body); - } catch (Throwable $error) { - goto items_application_json_two_hundred_aaaaa; - } - - items_application_json_two_hundred_aaaaa: - throw $error; - }); - /** - * Internal Error - **/ - - case 500: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Requires authentication - **/ - - case 401: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Forbidden - **/ - - case 403: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Resource not found - **/ - - case 404: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - } - - break; - } - - throw new RuntimeException('Unable to find matching response code and content type'); - } -} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForTeam.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForTeam.php deleted file mode 100644 index 263a1db9d4c..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForTeam.php +++ /dev/null @@ -1,121 +0,0 @@ -org = $org; - $this->teamSlug = $teamSlug; - $this->since = $since; - $this->until = $until; - $this->page = $page; - $this->perPage = $perPage; - } - - public function createRequest(): RequestInterface - { - return new Request('GET', str_replace(['{org}', '{team_slug}', '{since}', '{until}', '{page}', '{per_page}'], [$this->org, $this->teamSlug, $this->since, $this->until, $this->page, $this->perPage], '/orgs/{org}/team/{team_slug}/copilot/usage' . '?since={since}&until={until}&page={page}&per_page={per_page}')); - } - - /** @return Observable */ - public function createResponse(ResponseInterface $response): Observable - { - $code = $response->getStatusCode(); - [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); - switch ($contentType) { - case 'application/json': - $body = json_decode($response->getBody()->getContents(), true); - switch ($code) { - /** - * Response - **/ - case 200: - return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\CopilotUsageMetrics { - $error = new RuntimeException(); - try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CopilotUsageMetrics::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - - return $this->hydrator->hydrateObject(Schema\CopilotUsageMetrics::class, $body); - } catch (Throwable $error) { - goto items_application_json_two_hundred_aaaaa; - } - - items_application_json_two_hundred_aaaaa: - throw $error; - }); - /** - * Internal Error - **/ - - case 500: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Requires authentication - **/ - - case 401: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Forbidden - **/ - - case 403: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Resource not found - **/ - - case 404: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - } - - break; - } - - throw new RuntimeException('Unable to find matching response code and content type'); - } -} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForTeamListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForTeamListing.php deleted file mode 100644 index a2a3fc5a597..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operation/Copilot/UsageMetricsForTeamListing.php +++ /dev/null @@ -1,121 +0,0 @@ -org = $org; - $this->teamSlug = $teamSlug; - $this->since = $since; - $this->until = $until; - $this->page = $page; - $this->perPage = $perPage; - } - - public function createRequest(): RequestInterface - { - return new Request('GET', str_replace(['{org}', '{team_slug}', '{since}', '{until}', '{page}', '{per_page}'], [$this->org, $this->teamSlug, $this->since, $this->until, $this->page, $this->perPage], '/orgs/{org}/team/{team_slug}/copilot/usage' . '?since={since}&until={until}&page={page}&per_page={per_page}')); - } - - /** @return Observable */ - public function createResponse(ResponseInterface $response): Observable - { - $code = $response->getStatusCode(); - [$contentType] = explode(';', $response->getHeaderLine('Content-Type')); - switch ($contentType) { - case 'application/json': - $body = json_decode($response->getBody()->getContents(), true); - switch ($code) { - /** - * Response - **/ - case 200: - return Observable::fromArray($body, new ImmediateScheduler())->map(function (array $body): Schema\CopilotUsageMetrics { - $error = new RuntimeException(); - try { - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\CopilotUsageMetrics::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - - return $this->hydrator->hydrateObject(Schema\CopilotUsageMetrics::class, $body); - } catch (Throwable $error) { - goto items_application_json_two_hundred_aaaaa; - } - - items_application_json_two_hundred_aaaaa: - throw $error; - }); - /** - * Internal Error - **/ - - case 500: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(500, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Requires authentication - **/ - - case 401: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(401, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Forbidden - **/ - - case 403: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(403, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - /** - * Resource not found - **/ - - case 404: - $this->responseSchemaValidator->validate($body, Reader::readFromJson(Schema\BasicError::SCHEMA_JSON, \cebe\openapi\spec\Schema::class)); - - throw new ErrorSchemas\BasicError(404, $this->hydrator->hydrateObject(Schema\BasicError::class, $body)); - } - - break; - } - - throw new RuntimeException('Unable to find matching response code and content type'); - } -} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForEnterprise.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForEnterprise.php deleted file mode 100644 index a026792e8d9..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForEnterprise.php +++ /dev/null @@ -1,41 +0,0 @@ - */ - public function call(string $enterprise, string $since, string $until, int $page = 1, int $perPage = 28): iterable - { - $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Copilot\UsageMetricsForEnterprise($this->responseSchemaValidator, $this->hydrator, $enterprise, $since, $until, $page, $perPage); - $request = $operation->createRequest(); - $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): Observable { - return $operation->createResponse($response); - })); - if ($result instanceof Observable) { - $result = awaitObservable($result); - } - - return $result; - } -} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseListing.php deleted file mode 100644 index 79300f2a85c..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseListing.php +++ /dev/null @@ -1,41 +0,0 @@ - */ - public function call(string $enterprise, string $since, string $until, int $page = 1, int $perPage = 28): iterable - { - $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Copilot\UsageMetricsForEnterpriseListing($this->responseSchemaValidator, $this->hydrator, $enterprise, $since, $until, $page, $perPage); - $request = $operation->createRequest(); - $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): Observable { - return $operation->createResponse($response); - })); - if ($result instanceof Observable) { - $result = awaitObservable($result); - } - - return $result; - } -} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseTeam.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseTeam.php deleted file mode 100644 index 9e2697c158c..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseTeam.php +++ /dev/null @@ -1,41 +0,0 @@ - */ - public function call(string $enterprise, string $teamSlug, string $since, string $until, int $page = 1, int $perPage = 28): iterable - { - $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Copilot\UsageMetricsForEnterpriseTeam($this->responseSchemaValidator, $this->hydrator, $enterprise, $teamSlug, $since, $until, $page, $perPage); - $request = $operation->createRequest(); - $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): Observable { - return $operation->createResponse($response); - })); - if ($result instanceof Observable) { - $result = awaitObservable($result); - } - - return $result; - } -} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseTeamListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseTeamListing.php deleted file mode 100644 index 99a6228dc78..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForEnterpriseTeamListing.php +++ /dev/null @@ -1,41 +0,0 @@ - */ - public function call(string $enterprise, string $teamSlug, string $since, string $until, int $page = 1, int $perPage = 28): iterable - { - $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Copilot\UsageMetricsForEnterpriseTeamListing($this->responseSchemaValidator, $this->hydrator, $enterprise, $teamSlug, $since, $until, $page, $perPage); - $request = $operation->createRequest(); - $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): Observable { - return $operation->createResponse($response); - })); - if ($result instanceof Observable) { - $result = awaitObservable($result); - } - - return $result; - } -} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForOrg.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForOrg.php deleted file mode 100644 index 910a410246f..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForOrg.php +++ /dev/null @@ -1,41 +0,0 @@ - */ - public function call(string $org, string $since, string $until, int $page = 1, int $perPage = 28): iterable - { - $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Copilot\UsageMetricsForOrg($this->responseSchemaValidator, $this->hydrator, $org, $since, $until, $page, $perPage); - $request = $operation->createRequest(); - $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): Observable { - return $operation->createResponse($response); - })); - if ($result instanceof Observable) { - $result = awaitObservable($result); - } - - return $result; - } -} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForOrgListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForOrgListing.php deleted file mode 100644 index 045075683c6..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForOrgListing.php +++ /dev/null @@ -1,41 +0,0 @@ - */ - public function call(string $org, string $since, string $until, int $page = 1, int $perPage = 28): iterable - { - $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Copilot\UsageMetricsForOrgListing($this->responseSchemaValidator, $this->hydrator, $org, $since, $until, $page, $perPage); - $request = $operation->createRequest(); - $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): Observable { - return $operation->createResponse($response); - })); - if ($result instanceof Observable) { - $result = awaitObservable($result); - } - - return $result; - } -} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForTeam.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForTeam.php deleted file mode 100644 index 3c78234fb39..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForTeam.php +++ /dev/null @@ -1,41 +0,0 @@ - */ - public function call(string $org, string $teamSlug, string $since, string $until, int $page = 1, int $perPage = 28): iterable - { - $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Copilot\UsageMetricsForTeam($this->responseSchemaValidator, $this->hydrator, $org, $teamSlug, $since, $until, $page, $perPage); - $request = $operation->createRequest(); - $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): Observable { - return $operation->createResponse($response); - })); - if ($result instanceof Observable) { - $result = awaitObservable($result); - } - - return $result; - } -} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForTeamListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForTeamListing.php deleted file mode 100644 index cc8ee426c82..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/Copilot/UsageMetricsForTeamListing.php +++ /dev/null @@ -1,41 +0,0 @@ - */ - public function call(string $org, string $teamSlug, string $since, string $until, int $page = 1, int $perPage = 28): iterable - { - $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\Copilot\UsageMetricsForTeamListing($this->responseSchemaValidator, $this->hydrator, $org, $teamSlug, $since, $until, $page, $perPage); - $request = $operation->createRequest(); - $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): Observable { - return $operation->createResponse($response); - })); - if ($result instanceof Observable) { - $result = awaitObservable($result); - } - - return $result; - } -} diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operators.php b/clients/GitHubEnterpriseCloud/src/Internal/Operators.php index 3ca72fe4091..da236b0e9e5 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operators.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operators.php @@ -126,8 +126,6 @@ final class Operators private Internal\Operator\Copilot\ListCopilotSeatsForEnterprise|null $copilot👷ListCopilotSeatsForEnterprise = null; private Internal\Operator\Copilot\CopilotMetricsForEnterprise|null $copilot👷CopilotMetricsForEnterprise = null; private Internal\Operator\Copilot\CopilotMetricsForEnterpriseListing|null $copilot👷CopilotMetricsForEnterpriseListing = null; - private Internal\Operator\Copilot\UsageMetricsForEnterprise|null $copilot👷UsageMetricsForEnterprise = null; - private Internal\Operator\Copilot\UsageMetricsForEnterpriseListing|null $copilot👷UsageMetricsForEnterpriseListing = null; private Internal\Operator\Dependabot\ListAlertsForEnterprise|null $dependabot👷ListAlertsForEnterprise = null; private Internal\Operator\EnterpriseAdmin\GetLicenseSyncStatus|null $enterpriseAdmin👷GetLicenseSyncStatus = null; private Internal\Operator\HostedCompute\ListNetworkConfigurationsForEnterprise|null $hostedCompute👷ListNetworkConfigurationsForEnterprise = null; @@ -160,8 +158,6 @@ final class Operators private Internal\Operator\Billing\GetGithubBillingUsageReportGhe|null $billing👷GetGithubBillingUsageReportGhe = null; private Internal\Operator\Copilot\CopilotMetricsForEnterpriseTeam|null $copilot👷CopilotMetricsForEnterpriseTeam = null; private Internal\Operator\Copilot\CopilotMetricsForEnterpriseTeamListing|null $copilot👷CopilotMetricsForEnterpriseTeamListing = null; - private Internal\Operator\Copilot\UsageMetricsForEnterpriseTeam|null $copilot👷UsageMetricsForEnterpriseTeam = null; - private Internal\Operator\Copilot\UsageMetricsForEnterpriseTeamListing|null $copilot👷UsageMetricsForEnterpriseTeamListing = null; private Internal\Operator\SecretScanning\PostSecurityProductEnablementForEnterprise|null $secretScanning👷PostSecurityProductEnablementForEnterprise = null; private Internal\Operator\Activity\ListPublicEvents|null $activity👷ListPublicEvents = null; private Internal\Operator\Activity\ListPublicEventsListing|null $activity👷ListPublicEventsListing = null; @@ -346,8 +342,6 @@ final class Operators private Internal\Operator\Copilot\CancelCopilotSeatAssignmentForUsers|null $copilot👷CancelCopilotSeatAssignmentForUsers = null; private Internal\Operator\Copilot\CopilotMetricsForOrganization|null $copilot👷CopilotMetricsForOrganization = null; private Internal\Operator\Copilot\CopilotMetricsForOrganizationListing|null $copilot👷CopilotMetricsForOrganizationListing = null; - private Internal\Operator\Copilot\UsageMetricsForOrg|null $copilot👷UsageMetricsForOrg = null; - private Internal\Operator\Copilot\UsageMetricsForOrgListing|null $copilot👷UsageMetricsForOrgListing = null; private Internal\Operator\Orgs\ListSamlSsoAuthorizations|null $orgs👷ListSamlSsoAuthorizations = null; private Internal\Operator\Orgs\ListSamlSsoAuthorizationsListing|null $orgs👷ListSamlSsoAuthorizationsListing = null; private Internal\Operator\Orgs\RemoveSamlSsoAuthorization|null $orgs👷RemoveSamlSsoAuthorization = null; @@ -539,8 +533,6 @@ final class Operators private Internal\Operator\Teams\ListIdpGroupsForOrg|null $teams👷ListIdpGroupsForOrg = null; private Internal\Operator\Copilot\CopilotMetricsForTeam|null $copilot👷CopilotMetricsForTeam = null; private Internal\Operator\Copilot\CopilotMetricsForTeamListing|null $copilot👷CopilotMetricsForTeamListing = null; - private Internal\Operator\Copilot\UsageMetricsForTeam|null $copilot👷UsageMetricsForTeam = null; - private Internal\Operator\Copilot\UsageMetricsForTeamListing|null $copilot👷UsageMetricsForTeamListing = null; private Internal\Operator\Teams\List_|null $teams👷List_ = null; private Internal\Operator\Teams\ListListing|null $teams👷ListListing = null; private Internal\Operator\Teams\Create|null $teams👷Create = null; @@ -2426,24 +2418,6 @@ public function copilot👷CopilotMetricsForEnterpriseListing(): Internal\Operat return $this->copilot👷CopilotMetricsForEnterpriseListing; } - public function copilot👷UsageMetricsForEnterprise(): Internal\Operator\Copilot\UsageMetricsForEnterprise - { - if ($this->copilot👷UsageMetricsForEnterprise instanceof Internal\Operator\Copilot\UsageMetricsForEnterprise === false) { - $this->copilot👷UsageMetricsForEnterprise = new Internal\Operator\Copilot\UsageMetricsForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Usage()); - } - - return $this->copilot👷UsageMetricsForEnterprise; - } - - public function copilot👷UsageMetricsForEnterpriseListing(): Internal\Operator\Copilot\UsageMetricsForEnterpriseListing - { - if ($this->copilot👷UsageMetricsForEnterpriseListing instanceof Internal\Operator\Copilot\UsageMetricsForEnterpriseListing === false) { - $this->copilot👷UsageMetricsForEnterpriseListing = new Internal\Operator\Copilot\UsageMetricsForEnterpriseListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Usage()); - } - - return $this->copilot👷UsageMetricsForEnterpriseListing; - } - public function dependabot👷ListAlertsForEnterprise(): Internal\Operator\Dependabot\ListAlertsForEnterprise { if ($this->dependabot👷ListAlertsForEnterprise instanceof Internal\Operator\Dependabot\ListAlertsForEnterprise === false) { @@ -2732,24 +2706,6 @@ public function copilot👷CopilotMetricsForEnterpriseTeamListing(): Internal\Op return $this->copilot👷CopilotMetricsForEnterpriseTeamListing; } - public function copilot👷UsageMetricsForEnterpriseTeam(): Internal\Operator\Copilot\UsageMetricsForEnterpriseTeam - { - if ($this->copilot👷UsageMetricsForEnterpriseTeam instanceof Internal\Operator\Copilot\UsageMetricsForEnterpriseTeam === false) { - $this->copilot👷UsageMetricsForEnterpriseTeam = new Internal\Operator\Copilot\UsageMetricsForEnterpriseTeam($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Usage()); - } - - return $this->copilot👷UsageMetricsForEnterpriseTeam; - } - - public function copilot👷UsageMetricsForEnterpriseTeamListing(): Internal\Operator\Copilot\UsageMetricsForEnterpriseTeamListing - { - if ($this->copilot👷UsageMetricsForEnterpriseTeamListing instanceof Internal\Operator\Copilot\UsageMetricsForEnterpriseTeamListing === false) { - $this->copilot👷UsageMetricsForEnterpriseTeamListing = new Internal\Operator\Copilot\UsageMetricsForEnterpriseTeamListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Usage()); - } - - return $this->copilot👷UsageMetricsForEnterpriseTeamListing; - } - public function secretScanning👷PostSecurityProductEnablementForEnterprise(): Internal\Operator\SecretScanning\PostSecurityProductEnablementForEnterprise { if ($this->secretScanning👷PostSecurityProductEnablementForEnterprise instanceof Internal\Operator\SecretScanning\PostSecurityProductEnablementForEnterprise === false) { @@ -4406,24 +4362,6 @@ public function copilot👷CopilotMetricsForOrganizationListing(): Internal\Oper return $this->copilot👷CopilotMetricsForOrganizationListing; } - public function copilot👷UsageMetricsForOrg(): Internal\Operator\Copilot\UsageMetricsForOrg - { - if ($this->copilot👷UsageMetricsForOrg instanceof Internal\Operator\Copilot\UsageMetricsForOrg === false) { - $this->copilot👷UsageMetricsForOrg = new Internal\Operator\Copilot\UsageMetricsForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Usage()); - } - - return $this->copilot👷UsageMetricsForOrg; - } - - public function copilot👷UsageMetricsForOrgListing(): Internal\Operator\Copilot\UsageMetricsForOrgListing - { - if ($this->copilot👷UsageMetricsForOrgListing instanceof Internal\Operator\Copilot\UsageMetricsForOrgListing === false) { - $this->copilot👷UsageMetricsForOrgListing = new Internal\Operator\Copilot\UsageMetricsForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Usage()); - } - - return $this->copilot👷UsageMetricsForOrgListing; - } - public function orgs👷ListSamlSsoAuthorizations(): Internal\Operator\Orgs\ListSamlSsoAuthorizations { if ($this->orgs👷ListSamlSsoAuthorizations instanceof Internal\Operator\Orgs\ListSamlSsoAuthorizations === false) { @@ -6143,24 +6081,6 @@ public function copilot👷CopilotMetricsForTeamListing(): Internal\Operator\Cop return $this->copilot👷CopilotMetricsForTeamListing; } - public function copilot👷UsageMetricsForTeam(): Internal\Operator\Copilot\UsageMetricsForTeam - { - if ($this->copilot👷UsageMetricsForTeam instanceof Internal\Operator\Copilot\UsageMetricsForTeam === false) { - $this->copilot👷UsageMetricsForTeam = new Internal\Operator\Copilot\UsageMetricsForTeam($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Usage()); - } - - return $this->copilot👷UsageMetricsForTeam; - } - - public function copilot👷UsageMetricsForTeamListing(): Internal\Operator\Copilot\UsageMetricsForTeamListing - { - if ($this->copilot👷UsageMetricsForTeamListing instanceof Internal\Operator\Copilot\UsageMetricsForTeamListing === false) { - $this->copilot👷UsageMetricsForTeamListing = new Internal\Operator\Copilot\UsageMetricsForTeamListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Usage()); - } - - return $this->copilot👷UsageMetricsForTeamListing; - } - public function teams👷List_(): Internal\Operator\Teams\List_ { if ($this->teams👷List_ instanceof Internal\Operator\Teams\List_ === false) { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Copilot.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Copilot.php index 55dd1121ea8..a598e841d16 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Copilot.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Copilot.php @@ -62,45 +62,6 @@ public function copilotMetricsForEnterprise(array $params): iterable return $operator->call($arguments['enterprise'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page']); } - /** @return Observable */ - public function usageMetricsForEnterprise(array $params): iterable - { - $arguments = []; - if (array_key_exists('enterprise', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: enterprise'); - } - - $arguments['enterprise'] = $params['enterprise']; - unset($params['enterprise']); - if (array_key_exists('since', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: since'); - } - - $arguments['since'] = $params['since']; - unset($params['since']); - if (array_key_exists('until', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: until'); - } - - $arguments['until'] = $params['until']; - unset($params['until']); - if (array_key_exists('page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: page'); - } - - $arguments['page'] = $params['page']; - unset($params['page']); - if (array_key_exists('per_page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: per_page'); - } - - $arguments['per_page'] = $params['per_page']; - unset($params['per_page']); - $operator = new Internal\Operator\Copilot\UsageMetricsForEnterprise($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Usage()); - - return $operator->call($arguments['enterprise'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page']); - } - /** @return */ public function getCopilotOrganizationDetails(array $params): CopilotOrganizationDetails|WithoutBody { @@ -155,45 +116,6 @@ public function copilotMetricsForOrganization(array $params): iterable return $operator->call($arguments['org'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page']); } - /** @return Observable */ - public function usageMetricsForOrg(array $params): iterable - { - $arguments = []; - if (array_key_exists('org', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: org'); - } - - $arguments['org'] = $params['org']; - unset($params['org']); - if (array_key_exists('since', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: since'); - } - - $arguments['since'] = $params['since']; - unset($params['since']); - if (array_key_exists('until', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: until'); - } - - $arguments['until'] = $params['until']; - unset($params['until']); - if (array_key_exists('page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: page'); - } - - $arguments['page'] = $params['page']; - unset($params['page']); - if (array_key_exists('per_page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: per_page'); - } - - $arguments['per_page'] = $params['per_page']; - unset($params['per_page']); - $operator = new Internal\Operator\Copilot\UsageMetricsForOrg($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Usage()); - - return $operator->call($arguments['org'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page']); - } - /** @return */ public function listCopilotSeatsForEnterprise(array $params): Ok { @@ -314,51 +236,6 @@ public function copilotMetricsForEnterpriseTeam(array $params): iterable return $operator->call($arguments['enterprise'], $arguments['team_slug'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page']); } - /** @return Observable */ - public function usageMetricsForEnterpriseTeam(array $params): iterable - { - $arguments = []; - if (array_key_exists('enterprise', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: enterprise'); - } - - $arguments['enterprise'] = $params['enterprise']; - unset($params['enterprise']); - if (array_key_exists('team_slug', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: team_slug'); - } - - $arguments['team_slug'] = $params['team_slug']; - unset($params['team_slug']); - if (array_key_exists('since', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: since'); - } - - $arguments['since'] = $params['since']; - unset($params['since']); - if (array_key_exists('until', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: until'); - } - - $arguments['until'] = $params['until']; - unset($params['until']); - if (array_key_exists('page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: page'); - } - - $arguments['page'] = $params['page']; - unset($params['page']); - if (array_key_exists('per_page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: per_page'); - } - - $arguments['per_page'] = $params['per_page']; - unset($params['per_page']); - $operator = new Internal\Operator\Copilot\UsageMetricsForEnterpriseTeam($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Usage()); - - return $operator->call($arguments['enterprise'], $arguments['team_slug'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page']); - } - /** @return Observable */ public function copilotMetricsForTeam(array $params): iterable { @@ -403,49 +280,4 @@ public function copilotMetricsForTeam(array $params): iterable return $operator->call($arguments['org'], $arguments['team_slug'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page']); } - - /** @return Observable */ - public function usageMetricsForTeam(array $params): iterable - { - $arguments = []; - if (array_key_exists('org', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: org'); - } - - $arguments['org'] = $params['org']; - unset($params['org']); - if (array_key_exists('team_slug', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: team_slug'); - } - - $arguments['team_slug'] = $params['team_slug']; - unset($params['team_slug']); - if (array_key_exists('since', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: since'); - } - - $arguments['since'] = $params['since']; - unset($params['since']); - if (array_key_exists('until', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: until'); - } - - $arguments['until'] = $params['until']; - unset($params['until']); - if (array_key_exists('page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: page'); - } - - $arguments['page'] = $params['page']; - unset($params['page']); - if (array_key_exists('per_page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: per_page'); - } - - $arguments['per_page'] = $params['per_page']; - unset($params['per_page']); - $operator = new Internal\Operator\Copilot\UsageMetricsForTeam($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Usage()); - - return $operator->call($arguments['org'], $arguments['team_slug'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page']); - } } diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php index 7b9584ff7b0..72d29c67162 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Five.php @@ -59,7 +59,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): HookDelivery|Ok|ActionsEnterprisePermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnerGroupsForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersForEnterprise\Response\ApplicationJson\Ok|AuditLogStreamKey|iterable|WithoutBody|NetworkConfiguration|NetworkSettings|RepositoryRuleset|GistComment|MarketplacePurchase|BasicError|ThreadSubscription|Json|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|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\PrivateRegistries\GetOrgPublicKey\Response\ApplicationJson\Ok|OrgPrivateRegistryConfiguration|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\HostedCompute\ListNetworkConfigurationsForOrg\Response\ApplicationJson\Ok\Application\Json|GroupMapping|TeamFull|ProjectCard|CheckAutomatedSecurityFixes|CodeSecurityConfigurationForRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok\Application\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\Application\Json|EmptyObject { if ($pathChunks[0] === '') { @@ -126,10 +126,6 @@ public function call(string $call, array $params, array $pathChunks): HookDelive if ($call === 'GET /enterprises/{enterprise}/copilot/metrics') { return $this->routers->internal🔀Router🔀Get🔀Copilot()->copilotMetricsForEnterprise($params); } - } elseif ($pathChunks[4] === 'usage') { - if ($call === 'GET /enterprises/{enterprise}/copilot/usage') { - return $this->routers->internal🔀Router🔀Get🔀Copilot()->usageMetricsForEnterprise($params); - } } } elseif ($pathChunks[3] === 'dependabot') { if ($pathChunks[4] === 'alerts') { @@ -294,10 +290,6 @@ public function call(string $call, array $params, array $pathChunks): HookDelive if ($call === 'GET /orgs/{org}/copilot/metrics') { return $this->routers->internal🔀Router🔀Get🔀Copilot()->copilotMetricsForOrganization($params); } - } elseif ($pathChunks[4] === 'usage') { - if ($call === 'GET /orgs/{org}/copilot/usage') { - return $this->routers->internal🔀Router🔀Get🔀Copilot()->usageMetricsForOrg($params); - } } } elseif ($pathChunks[3] === 'custom-repository-roles') { if ($pathChunks[4] === '{role_id}') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php index 0f39cda8a24..7ac1af2757c 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Seven.php @@ -70,7 +70,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): Ok|Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListOrgAccessToSelfHostedRunnerGroupInEnterprise\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListSelfHostedRunnersInGroupForEnterprise\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\EnterpriseAdmin\ListLabelsForSelfHostedRunnerForEnterprise\Response\ApplicationJson\Ok|iterable|RulesetVersion|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersGithubOwnedImagesForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetHostedRunnersPartnerImagesForOrg\Response\ApplicationJson\Ok\Application\Json|OidcCustomSub|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListGithubHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoAccessToSelfHostedRunnerGroupInOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersInGroupForOrg\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedReposForOrgVariable\Response\ApplicationJson\Ok\Application\Json|WithoutBody|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListSelectedReposForOrgSecret\Response\ApplicationJson\Ok\Application\Json|HookDelivery|TeamDiscussion|TeamMembership|TeamProject|GroupMapping|Artifact|ActionsCacheUsageByRepository|Job|ActionsWorkflowAccessToRepository|SelectedActions|ActionsGetDefaultWorkflowPermissions|Runner|WorkflowRun|ActionsPublicKey|ActionsSecret|ActionsVariable|Workflow|BranchProtection|PushRuleBypassRequest|SecretScanningBypassRequest|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForSuite\Response\ApplicationJson\Ok|CodeScanningAlert|CodeScanningAnalysis|CodeScanningSarifsStatus|CodespacesPublicKey|RepoCodespacesSecret|RepositoryCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListForRef\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Checks\ListSuitesForRef\Response\ApplicationJson\Ok|CombinedCommitStatus|BasicError|DependabotAlert|DependabotPublicKey|DependabotSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListDeploymentBranchPolicies\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetAllDeploymentProtectionRules\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListEnvironmentVariables\Response\ApplicationJson\Ok\Application\Json|Blob|GitCommit|GitRef|GitTag|GitTree|WebhookConfig|IssueComment|IssueEvent|PageBuild|PagesDeploymentStatus|PullRequestReviewComment|PullRequestReviewRequest|ReleaseAsset|Release|RuleSuite|SecretScanningAlert|GroupResponse|UserResponse|ScimUser|TeamDiscussionComment|PackageVersion { if ($pathChunks[0] === '') { @@ -137,10 +137,6 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|\A if ($call === 'GET /enterprises/{enterprise}/team/{team_slug}/copilot/metrics') { return $this->routers->internal🔀Router🔀Get🔀Copilot()->copilotMetricsForEnterpriseTeam($params); } - } elseif ($pathChunks[6] === 'usage') { - if ($call === 'GET /enterprises/{enterprise}/team/{team_slug}/copilot/usage') { - return $this->routers->internal🔀Router🔀Get🔀Copilot()->usageMetricsForEnterpriseTeam($params); - } } } } @@ -287,10 +283,6 @@ public function call(string $call, array $params, array $pathChunks): Ok|Json|\A if ($call === 'GET /orgs/{org}/team/{team_slug}/copilot/metrics') { return $this->routers->internal🔀Router🔀Get🔀Copilot()->copilotMetricsForTeam($params); } - } elseif ($pathChunks[6] === 'usage') { - if ($call === 'GET /orgs/{org}/team/{team_slug}/copilot/usage') { - return $this->routers->internal🔀Router🔀Get🔀Copilot()->usageMetricsForTeam($params); - } } } } diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Copilot.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Copilot.php index 1870106dcc8..2ce96a30954 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Copilot.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Copilot.php @@ -65,51 +65,6 @@ public function copilotMetricsForEnterpriseListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function usageMetricsForEnterpriseListing(array $params): iterable - { - $arguments = []; - if (array_key_exists('enterprise', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: enterprise'); - } - - $arguments['enterprise'] = $params['enterprise']; - unset($params['enterprise']); - if (array_key_exists('since', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: since'); - } - - $arguments['since'] = $params['since']; - unset($params['since']); - if (array_key_exists('until', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: until'); - } - - $arguments['until'] = $params['until']; - unset($params['until']); - if (array_key_exists('page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: page'); - } - - $arguments['page'] = $params['page']; - unset($params['page']); - if (array_key_exists('per_page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: per_page'); - } - - $arguments['per_page'] = $params['per_page']; - unset($params['per_page']); - $arguments['page'] = 1; - do { - $operator = new Internal\Operator\Copilot\UsageMetricsForEnterpriseListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Copilot🌀Usage()); - $items = [...$operator->call($arguments['enterprise'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page'])]; - - yield from $items; - - $arguments['page']++; - } while (count($items) > 0); - } - /** @return Observable */ public function copilotMetricsForOrganizationListing(array $params): iterable { @@ -155,51 +110,6 @@ public function copilotMetricsForOrganizationListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function usageMetricsForOrgListing(array $params): iterable - { - $arguments = []; - if (array_key_exists('org', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: org'); - } - - $arguments['org'] = $params['org']; - unset($params['org']); - if (array_key_exists('since', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: since'); - } - - $arguments['since'] = $params['since']; - unset($params['since']); - if (array_key_exists('until', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: until'); - } - - $arguments['until'] = $params['until']; - unset($params['until']); - if (array_key_exists('page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: page'); - } - - $arguments['page'] = $params['page']; - unset($params['page']); - if (array_key_exists('per_page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: per_page'); - } - - $arguments['per_page'] = $params['per_page']; - unset($params['per_page']); - $arguments['page'] = 1; - do { - $operator = new Internal\Operator\Copilot\UsageMetricsForOrgListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Copilot🌀Usage()); - $items = [...$operator->call($arguments['org'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page'])]; - - yield from $items; - - $arguments['page']++; - } while (count($items) > 0); - } - /** @return Observable */ public function copilotMetricsForEnterpriseTeamListing(array $params): iterable { @@ -251,57 +161,6 @@ public function copilotMetricsForEnterpriseTeamListing(array $params): iterable } while (count($items) > 0); } - /** @return Observable */ - public function usageMetricsForEnterpriseTeamListing(array $params): iterable - { - $arguments = []; - if (array_key_exists('enterprise', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: enterprise'); - } - - $arguments['enterprise'] = $params['enterprise']; - unset($params['enterprise']); - if (array_key_exists('team_slug', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: team_slug'); - } - - $arguments['team_slug'] = $params['team_slug']; - unset($params['team_slug']); - if (array_key_exists('since', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: since'); - } - - $arguments['since'] = $params['since']; - unset($params['since']); - if (array_key_exists('until', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: until'); - } - - $arguments['until'] = $params['until']; - unset($params['until']); - if (array_key_exists('page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: page'); - } - - $arguments['page'] = $params['page']; - unset($params['page']); - if (array_key_exists('per_page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: per_page'); - } - - $arguments['per_page'] = $params['per_page']; - unset($params['per_page']); - $arguments['page'] = 1; - do { - $operator = new Internal\Operator\Copilot\UsageMetricsForEnterpriseTeamListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Enterprises🌀Enterprise🌀Team🌀TeamSlug🌀Copilot🌀Usage()); - $items = [...$operator->call($arguments['enterprise'], $arguments['team_slug'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page'])]; - - yield from $items; - - $arguments['page']++; - } while (count($items) > 0); - } - /** @return Observable */ public function copilotMetricsForTeamListing(array $params): iterable { @@ -352,55 +211,4 @@ public function copilotMetricsForTeamListing(array $params): iterable $arguments['page']++; } while (count($items) > 0); } - - /** @return Observable */ - public function usageMetricsForTeamListing(array $params): iterable - { - $arguments = []; - if (array_key_exists('org', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: org'); - } - - $arguments['org'] = $params['org']; - unset($params['org']); - if (array_key_exists('team_slug', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: team_slug'); - } - - $arguments['team_slug'] = $params['team_slug']; - unset($params['team_slug']); - if (array_key_exists('since', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: since'); - } - - $arguments['since'] = $params['since']; - unset($params['since']); - if (array_key_exists('until', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: until'); - } - - $arguments['until'] = $params['until']; - unset($params['until']); - if (array_key_exists('page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: page'); - } - - $arguments['page'] = $params['page']; - unset($params['page']); - if (array_key_exists('per_page', $params) === false) { - throw new InvalidArgumentException('Missing mandatory field: per_page'); - } - - $arguments['per_page'] = $params['per_page']; - unset($params['per_page']); - $arguments['page'] = 1; - do { - $operator = new Internal\Operator\Copilot\UsageMetricsForTeamListing($this->browser, $this->authentication, $this->responseSchemaValidator, $this->hydrators->getObjectMapperOperation🌀Orgs🌀Org🌀Team🌀TeamSlug🌀Copilot🌀Usage()); - $items = [...$operator->call($arguments['org'], $arguments['team_slug'], $arguments['since'], $arguments['until'], $arguments['page'], $arguments['per_page'])]; - - yield from $items; - - $arguments['page']++; - } while (count($items) > 0); - } } diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Five.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Five.php index 153516eac9c..b201ca4fbd7 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Five.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Five.php @@ -16,7 +16,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|Observable|Observable|Schema\BasicError|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError|WithoutBody { if ($pathChunks[0] === '') { @@ -39,10 +39,6 @@ public function call(string $call, array $params, array $pathChunks): iterable|B if ($call === 'LIST /enterprises/{enterprise}/copilot/metrics') { return $this->routers->internal🔀Router🔀List🔀Copilot()->copilotMetricsForEnterpriseListing($params); } - } elseif ($pathChunks[4] === 'usage') { - if ($call === 'LIST /enterprises/{enterprise}/copilot/usage') { - return $this->routers->internal🔀Router🔀List🔀Copilot()->usageMetricsForEnterpriseListing($params); - } } } } @@ -89,10 +85,6 @@ public function call(string $call, array $params, array $pathChunks): iterable|B if ($call === 'LIST /orgs/{org}/copilot/metrics') { return $this->routers->internal🔀Router🔀List🔀Copilot()->copilotMetricsForOrganizationListing($params); } - } elseif ($pathChunks[4] === 'usage') { - if ($call === 'LIST /orgs/{org}/copilot/usage') { - return $this->routers->internal🔀Router🔀List🔀Copilot()->usageMetricsForOrgListing($params); - } } } elseif ($pathChunks[3] === 'properties') { if ($pathChunks[4] === 'values') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Seven.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Seven.php index 96cd089665c..8b079de73b6 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Seven.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Seven.php @@ -14,7 +14,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\BasicError|Observable|Observable|Observable|Observable|Observable|Schema\ConvertedNoteToIssueIssueEvent|Schema\TimelineCommentEvent|Schema\TimelineCrossReferencedEvent|Schema\TimelineCommittedEvent|Schema\TimelineReviewedEvent|Schema\TimelineLineCommentedEvent|Schema\TimelineCommitCommentedEvent|Schema\TimelineAssignedIssueEvent|Schema\TimelineUnassignedIssueEvent|Schema\StateChangeIssueEvent>|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): iterable|BasicError { if ($pathChunks[0] === '') { @@ -27,10 +27,6 @@ public function call(string $call, array $params, array $pathChunks): iterable|B if ($call === 'LIST /enterprises/{enterprise}/team/{team_slug}/copilot/metrics') { return $this->routers->internal🔀Router🔀List🔀Copilot()->copilotMetricsForEnterpriseTeamListing($params); } - } elseif ($pathChunks[6] === 'usage') { - if ($call === 'LIST /enterprises/{enterprise}/team/{team_slug}/copilot/usage') { - return $this->routers->internal🔀Router🔀List🔀Copilot()->usageMetricsForEnterpriseTeamListing($params); - } } } } @@ -65,10 +61,6 @@ public function call(string $call, array $params, array $pathChunks): iterable|B if ($call === 'LIST /orgs/{org}/team/{team_slug}/copilot/metrics') { return $this->routers->internal🔀Router🔀List🔀Copilot()->copilotMetricsForTeamListing($params); } - } elseif ($pathChunks[6] === 'usage') { - if ($call === 'LIST /orgs/{org}/team/{team_slug}/copilot/usage') { - return $this->routers->internal🔀Router🔀List🔀Copilot()->usageMetricsForTeamListing($params); - } } } } diff --git a/clients/GitHubEnterpriseCloud/src/Internal/WebHook/Issues.php b/clients/GitHubEnterpriseCloud/src/Internal/WebHook/Issues.php index 6bc9d4a4c46..79b5868c5f7 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/WebHook/Issues.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/WebHook/Issues.php @@ -19,7 +19,7 @@ public function __construct(private readonly SchemaValidator $requestSchemaValid { } - public function resolve(array $headers, array $data): Schema\WebhookIssuesAssigned|Schema\WebhookIssuesClosed|Schema\WebhookIssuesDeleted|Schema\WebhookIssuesDemilestoned|Schema\WebhookIssuesEdited|Schema\WebhookIssuesLabeled|Schema\WebhookIssuesLocked|Schema\WebhookIssuesMilestoned|Schema\WebhookIssuesOpened|Schema\WebhookIssuesPinned|Schema\WebhookIssuesReopened|Schema\WebhookIssuesTransferred|Schema\WebhookIssuesUnassigned|Schema\WebhookIssuesUnlabeled|Schema\WebhookIssuesUnlocked|Schema\WebhookIssuesUnpinned + public function resolve(array $headers, array $data): Schema\WebhookIssuesAssigned|Schema\WebhookIssuesClosed|Schema\WebhookIssuesDeleted|Schema\WebhookIssuesDemilestoned|Schema\WebhookIssuesEdited|Schema\WebhookIssuesLabeled|Schema\WebhookIssuesLocked|Schema\WebhookIssuesMilestoned|Schema\WebhookIssuesOpened|Schema\WebhookIssuesPinned|Schema\WebhookIssuesReopened|Schema\WebhookIssuesTransferred|Schema\WebhookIssuesTyped|Schema\WebhookIssuesUnassigned|Schema\WebhookIssuesUnlabeled|Schema\WebhookIssuesUnlocked|Schema\WebhookIssuesUnpinned|Schema\WebhookIssuesUntyped { $error = new RuntimeException('No action matching given headers and data'); if ($headers['content-type'] === 'application/json') { @@ -247,9 +247,9 @@ public function resolve(array $headers, array $data): Schema\WebhookIssuesAssign $this->requestSchemaValidator->validate($headers['x-github-hook-installation-target-type'], Reader::readFromJson(Schema\WebHookHeader\XGithubHookInstallationTargetType::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); $this->requestSchemaValidator->validate($headers['x-github-delivery'], Reader::readFromJson(Schema\WebHookHeader\XGitHubDelivery::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); $this->requestSchemaValidator->validate($headers['x-hub-signature-256'], Reader::readFromJson(Schema\WebHookHeader\XHubSignature::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\WebhookIssuesUnassigned::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\WebhookIssuesTyped::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\WebhookIssuesUnassigned::class, $data); + return $this->hydrator->hydrateObject(Schema\WebhookIssuesTyped::class, $data); } catch (Throwable) { goto actions_aaaam; } @@ -265,9 +265,9 @@ public function resolve(array $headers, array $data): Schema\WebhookIssuesAssign $this->requestSchemaValidator->validate($headers['x-github-hook-installation-target-type'], Reader::readFromJson(Schema\WebHookHeader\XGithubHookInstallationTargetType::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); $this->requestSchemaValidator->validate($headers['x-github-delivery'], Reader::readFromJson(Schema\WebHookHeader\XGitHubDelivery::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); $this->requestSchemaValidator->validate($headers['x-hub-signature-256'], Reader::readFromJson(Schema\WebHookHeader\XHubSignature::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\WebhookIssuesUnlabeled::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\WebhookIssuesUnassigned::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\WebhookIssuesUnlabeled::class, $data); + return $this->hydrator->hydrateObject(Schema\WebhookIssuesUnassigned::class, $data); } catch (Throwable) { goto actions_aaaan; } @@ -283,9 +283,9 @@ public function resolve(array $headers, array $data): Schema\WebhookIssuesAssign $this->requestSchemaValidator->validate($headers['x-github-hook-installation-target-type'], Reader::readFromJson(Schema\WebHookHeader\XGithubHookInstallationTargetType::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); $this->requestSchemaValidator->validate($headers['x-github-delivery'], Reader::readFromJson(Schema\WebHookHeader\XGitHubDelivery::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); $this->requestSchemaValidator->validate($headers['x-hub-signature-256'], Reader::readFromJson(Schema\WebHookHeader\XHubSignature::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\WebhookIssuesUnlocked::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\WebhookIssuesUnlabeled::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\WebhookIssuesUnlocked::class, $data); + return $this->hydrator->hydrateObject(Schema\WebhookIssuesUnlabeled::class, $data); } catch (Throwable) { goto actions_aaaao; } @@ -301,15 +301,51 @@ public function resolve(array $headers, array $data): Schema\WebhookIssuesAssign $this->requestSchemaValidator->validate($headers['x-github-hook-installation-target-type'], Reader::readFromJson(Schema\WebHookHeader\XGithubHookInstallationTargetType::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); $this->requestSchemaValidator->validate($headers['x-github-delivery'], Reader::readFromJson(Schema\WebHookHeader\XGitHubDelivery::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); $this->requestSchemaValidator->validate($headers['x-hub-signature-256'], Reader::readFromJson(Schema\WebHookHeader\XHubSignature::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\WebhookIssuesUnpinned::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\WebhookIssuesUnlocked::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); - return $this->hydrator->hydrateObject(Schema\WebhookIssuesUnpinned::class, $data); + return $this->hydrator->hydrateObject(Schema\WebhookIssuesUnlocked::class, $data); } catch (Throwable) { goto actions_aaaap; } } actions_aaaap: + if ($headers['content-type'] === 'application/json') { + try { + $this->requestSchemaValidator->validate($headers['user-agent'], Reader::readFromJson(Schema\WebHookHeader\UserAgent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-github-hook-id'], Reader::readFromJson(Schema\WebHookHeader\XGithubHookId::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-github-event'], Reader::readFromJson(Schema\WebHookHeader\XGithubEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-github-hook-installation-target-id'], Reader::readFromJson(Schema\WebHookHeader\XGithubHookInstallationTargetId::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-github-hook-installation-target-type'], Reader::readFromJson(Schema\WebHookHeader\XGithubHookInstallationTargetType::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-github-delivery'], Reader::readFromJson(Schema\WebHookHeader\XGitHubDelivery::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-hub-signature-256'], Reader::readFromJson(Schema\WebHookHeader\XHubSignature::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\WebhookIssuesUnpinned::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\WebhookIssuesUnpinned::class, $data); + } catch (Throwable) { + goto actions_aaaaq; + } + } + + actions_aaaaq: + if ($headers['content-type'] === 'application/json') { + try { + $this->requestSchemaValidator->validate($headers['user-agent'], Reader::readFromJson(Schema\WebHookHeader\UserAgent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-github-hook-id'], Reader::readFromJson(Schema\WebHookHeader\XGithubHookId::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-github-event'], Reader::readFromJson(Schema\WebHookHeader\XGithubEvent::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-github-hook-installation-target-id'], Reader::readFromJson(Schema\WebHookHeader\XGithubHookInstallationTargetId::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-github-hook-installation-target-type'], Reader::readFromJson(Schema\WebHookHeader\XGithubHookInstallationTargetType::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-github-delivery'], Reader::readFromJson(Schema\WebHookHeader\XGitHubDelivery::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($headers['x-hub-signature-256'], Reader::readFromJson(Schema\WebHookHeader\XHubSignature::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + $this->requestSchemaValidator->validate($data, Reader::readFromJson(Schema\WebhookIssuesUntyped::SCHEMA_JSON, '\\cebe\\openapi\\spec\\Schema')); + + return $this->hydrator->hydrateObject(Schema\WebhookIssuesUntyped::class, $data); + } catch (Throwable) { + goto actions_aaaar; + } + } + + actions_aaaar: throw $error; } } diff --git a/clients/GitHubEnterpriseCloud/src/Operation/Copilot.php b/clients/GitHubEnterpriseCloud/src/Operation/Copilot.php index 2fcb4fce4cf..0770621044e 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/Copilot.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/Copilot.php @@ -36,18 +36,6 @@ public function copilotMetricsForEnterpriseListing(string $enterprise, string $s return $this->operators->copilot👷CopilotMetricsForEnterpriseListing()->call($enterprise, $since, $until, $page, $perPage); } - /** @return Observable */ - public function usageMetricsForEnterprise(string $enterprise, string $since, string $until, int $page, int $perPage): iterable - { - return $this->operators->copilot👷UsageMetricsForEnterprise()->call($enterprise, $since, $until, $page, $perPage); - } - - /** @return Observable */ - public function usageMetricsForEnterpriseListing(string $enterprise, string $since, string $until, int $page, int $perPage): iterable - { - return $this->operators->copilot👷UsageMetricsForEnterpriseListing()->call($enterprise, $since, $until, $page, $perPage); - } - /** @return Observable */ public function copilotMetricsForEnterpriseTeam(string $enterprise, string $teamSlug, string $since, string $until, int $page, int $perPage): iterable { @@ -60,18 +48,6 @@ public function copilotMetricsForEnterpriseTeamListing(string $enterprise, strin return $this->operators->copilot👷CopilotMetricsForEnterpriseTeamListing()->call($enterprise, $teamSlug, $since, $until, $page, $perPage); } - /** @return Observable */ - public function usageMetricsForEnterpriseTeam(string $enterprise, string $teamSlug, string $since, string $until, int $page, int $perPage): iterable - { - return $this->operators->copilot👷UsageMetricsForEnterpriseTeam()->call($enterprise, $teamSlug, $since, $until, $page, $perPage); - } - - /** @return Observable */ - public function usageMetricsForEnterpriseTeamListing(string $enterprise, string $teamSlug, string $since, string $until, int $page, int $perPage): iterable - { - return $this->operators->copilot👷UsageMetricsForEnterpriseTeamListing()->call($enterprise, $teamSlug, $since, $until, $page, $perPage); - } - /** @return */ public function getCopilotOrganizationDetails(string $org): CopilotOrganizationDetails|WithoutBody { @@ -120,18 +96,6 @@ public function copilotMetricsForOrganizationListing(string $org, string $since, return $this->operators->copilot👷CopilotMetricsForOrganizationListing()->call($org, $since, $until, $page, $perPage); } - /** @return Observable */ - public function usageMetricsForOrg(string $org, string $since, string $until, int $page, int $perPage): iterable - { - return $this->operators->copilot👷UsageMetricsForOrg()->call($org, $since, $until, $page, $perPage); - } - - /** @return Observable */ - public function usageMetricsForOrgListing(string $org, string $since, string $until, int $page, int $perPage): iterable - { - return $this->operators->copilot👷UsageMetricsForOrgListing()->call($org, $since, $until, $page, $perPage); - } - /** @return */ public function getCopilotSeatDetailsForUser(string $org, string $username): CopilotSeatDetails|WithoutBody { @@ -149,16 +113,4 @@ public function copilotMetricsForTeamListing(string $org, string $teamSlug, stri { return $this->operators->copilot👷CopilotMetricsForTeamListing()->call($org, $teamSlug, $since, $until, $page, $perPage); } - - /** @return Observable */ - public function usageMetricsForTeam(string $org, string $teamSlug, string $since, string $until, int $page, int $perPage): iterable - { - return $this->operators->copilot👷UsageMetricsForTeam()->call($org, $teamSlug, $since, $until, $page, $perPage); - } - - /** @return Observable */ - public function usageMetricsForTeamListing(string $org, string $teamSlug, string $since, string $until, int $page, int $perPage): iterable - { - return $this->operators->copilot👷UsageMetricsForTeamListing()->call($org, $teamSlug, $since, $until, $page, $perPage); - } } diff --git a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php index caf7997e980..54c91e75d0f 100644 --- a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php @@ -503,14 +503,6 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method return $this->typeResolver->resolve('Observable'); } - if ($call === 'GET /enterprises/{enterprise}/copilot/usage') { - return $this->typeResolver->resolve('Observable'); - } - - if ($call === 'LIST /enterprises/{enterprise}/copilot/usage') { - return $this->typeResolver->resolve('Observable'); - } - if ($call === 'GET /enterprises/{enterprise}/dependabot/alerts') { return $this->typeResolver->resolve('Observable|WithoutBody'); } @@ -639,14 +631,6 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method return $this->typeResolver->resolve('Observable'); } - if ($call === 'GET /enterprises/{enterprise}/team/{team_slug}/copilot/usage') { - return $this->typeResolver->resolve('Observable'); - } - - if ($call === 'LIST /enterprises/{enterprise}/team/{team_slug}/copilot/usage') { - return $this->typeResolver->resolve('Observable'); - } - if ($call === 'POST /enterprises/{enterprise}/{security_product}/{enablement}') { return $this->typeResolver->resolve(''); } @@ -1383,14 +1367,6 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method return $this->typeResolver->resolve('Observable'); } - if ($call === 'GET /orgs/{org}/copilot/usage') { - return $this->typeResolver->resolve('Observable'); - } - - if ($call === 'LIST /orgs/{org}/copilot/usage') { - return $this->typeResolver->resolve('Observable'); - } - if ($call === 'GET /orgs/{org}/credential-authorizations') { return $this->typeResolver->resolve('Observable'); } @@ -2155,14 +2131,6 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method return $this->typeResolver->resolve('Observable'); } - if ($call === 'GET /orgs/{org}/team/{team_slug}/copilot/usage') { - return $this->typeResolver->resolve('Observable'); - } - - if ($call === 'LIST /orgs/{org}/team/{team_slug}/copilot/usage') { - return $this->typeResolver->resolve('Observable'); - } - if ($call === 'GET /orgs/{org}/teams') { return $this->typeResolver->resolve('Observable'); } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/CopilotUsageMetrics.php b/clients/GitHubEnterpriseCloud/src/Schema/CopilotUsageMetrics.php deleted file mode 100644 index c03a02d624a..00000000000 --- a/clients/GitHubEnterpriseCloud/src/Schema/CopilotUsageMetrics.php +++ /dev/null @@ -1,140 +0,0 @@ - $object::class, 'data' => $this->hydrator->serializeObject($object)]; } - /** @return Schema\WebhookBranchProtectionConfigurationDisabled|Schema\WebhookBranchProtectionConfigurationEnabled|Schema\WebhookBranchProtectionRuleCreated|Schema\WebhookBranchProtectionRuleDeleted|Schema\WebhookBranchProtectionRuleEdited|Schema\WebhookExemptionRequestCancelled|Schema\WebhookExemptionRequestCompleted|Schema\WebhookExemptionRequestCreated|Schema\WebhookExemptionRequestResponseDismissed|Schema\WebhookExemptionRequestResponseSubmitted|Schema\WebhookCheckRunCompleted|Schema\WebhookCheckRunCompletedFormEncoded|Schema\WebhookCheckRunCreated|Schema\WebhookCheckRunCreatedFormEncoded|Schema\WebhookCheckRunRequestedAction|Schema\WebhookCheckRunRequestedActionFormEncoded|Schema\WebhookCheckRunRerequested|Schema\WebhookCheckRunRerequestedFormEncoded|Schema\WebhookCheckSuiteCompleted|Schema\WebhookCheckSuiteRequested|Schema\WebhookCheckSuiteRerequested|Schema\WebhookCodeScanningAlertAppearedInBranch|Schema\WebhookCodeScanningAlertClosedByUser|Schema\WebhookCodeScanningAlertCreated|Schema\WebhookCodeScanningAlertFixed|Schema\WebhookCodeScanningAlertReopened|Schema\WebhookCodeScanningAlertReopenedByUser|Schema\WebhookCommitCommentCreated|Schema\WebhookCreate|Schema\WebhookCustomPropertyCreated|Schema\WebhookCustomPropertyDeleted|Schema\WebhookCustomPropertyPromotedToEnterprise|Schema\WebhookCustomPropertyUpdated|Schema\WebhookCustomPropertyValuesUpdated|Schema\WebhookDelete|Schema\WebhookDependabotAlertAutoDismissed|Schema\WebhookDependabotAlertAutoReopened|Schema\WebhookDependabotAlertCreated|Schema\WebhookDependabotAlertDismissed|Schema\WebhookDependabotAlertFixed|Schema\WebhookDependabotAlertReintroduced|Schema\WebhookDependabotAlertReopened|Schema\WebhookDeployKeyCreated|Schema\WebhookDeployKeyDeleted|Schema\WebhookDeploymentCreated|Schema\WebhookDeploymentProtectionRuleRequested|Schema\WebhookDeploymentReviewApproved|Schema\WebhookDeploymentReviewRejected|Schema\WebhookDeploymentReviewRequested|Schema\WebhookDeploymentStatusCreated|Schema\WebhookDiscussionAnswered|Schema\WebhookDiscussionCategoryChanged|Schema\WebhookDiscussionClosed|Schema\WebhookDiscussionCreated|Schema\WebhookDiscussionDeleted|Schema\WebhookDiscussionEdited|Schema\WebhookDiscussionLabeled|Schema\WebhookDiscussionLocked|Schema\WebhookDiscussionPinned|Schema\WebhookDiscussionReopened|Schema\WebhookDiscussionTransferred|Schema\WebhookDiscussionUnanswered|Schema\WebhookDiscussionUnlabeled|Schema\WebhookDiscussionUnlocked|Schema\WebhookDiscussionUnpinned|Schema\WebhookDiscussionCommentCreated|Schema\WebhookDiscussionCommentDeleted|Schema\WebhookDiscussionCommentEdited|Schema\WebhookFork|Schema\WebhookGithubAppAuthorizationRevoked|Schema\WebhookGollum|Schema\WebhookInstallationCreated|Schema\WebhookInstallationDeleted|Schema\WebhookInstallationNewPermissionsAccepted|Schema\WebhookInstallationSuspend|Schema\WebhookInstallationUnsuspend|Schema\WebhookInstallationRepositoriesAdded|Schema\WebhookInstallationRepositoriesRemoved|Schema\WebhookInstallationTargetRenamed|Schema\WebhookIssueCommentCreated|Schema\WebhookIssueCommentDeleted|Schema\WebhookIssueCommentEdited|Schema\WebhookIssuesAssigned|Schema\WebhookIssuesClosed|Schema\WebhookIssuesDeleted|Schema\WebhookIssuesDemilestoned|Schema\WebhookIssuesEdited|Schema\WebhookIssuesLabeled|Schema\WebhookIssuesLocked|Schema\WebhookIssuesMilestoned|Schema\WebhookIssuesOpened|Schema\WebhookIssuesPinned|Schema\WebhookIssuesReopened|Schema\WebhookIssuesTransferred|Schema\WebhookIssuesUnassigned|Schema\WebhookIssuesUnlabeled|Schema\WebhookIssuesUnlocked|Schema\WebhookIssuesUnpinned|Schema\WebhookLabelCreated|Schema\WebhookLabelDeleted|Schema\WebhookLabelEdited|Schema\WebhookMarketplacePurchaseCancelled|Schema\WebhookMarketplacePurchaseChanged|Schema\WebhookMarketplacePurchasePendingChange|Schema\WebhookMarketplacePurchasePendingChangeCancelled|Schema\WebhookMarketplacePurchasePurchased|Schema\WebhookMemberAdded|Schema\WebhookMemberEdited|Schema\WebhookMemberRemoved|Schema\WebhookMembershipAdded|Schema\WebhookMembershipRemoved|Schema\WebhookMergeGroupChecksRequested|Schema\WebhookMergeGroupDestroyed|Schema\WebhookMetaDeleted|Schema\WebhookMilestoneClosed|Schema\WebhookMilestoneCreated|Schema\WebhookMilestoneDeleted|Schema\WebhookMilestoneEdited|Schema\WebhookMilestoneOpened|Schema\WebhookOrgBlockBlocked|Schema\WebhookOrgBlockUnblocked|Schema\WebhookOrganizationDeleted|Schema\WebhookOrganizationMemberAdded|Schema\WebhookOrganizationMemberInvited|Schema\WebhookOrganizationMemberRemoved|Schema\WebhookOrganizationRenamed|Schema\WebhookPackagePublished|Schema\WebhookPackageUpdated|Schema\WebhookPageBuild|Schema\WebhookPersonalAccessTokenRequestApproved|Schema\WebhookPersonalAccessTokenRequestCancelled|Schema\WebhookPersonalAccessTokenRequestCreated|Schema\WebhookPersonalAccessTokenRequestDenied|Schema\WebhookPing|Schema\WebhookPingFormEncoded|Schema\WebhookProjectCardConverted|Schema\WebhookProjectCardCreated|Schema\WebhookProjectCardDeleted|Schema\WebhookProjectCardEdited|Schema\WebhookProjectCardMoved|Schema\WebhookProjectClosed|Schema\WebhookProjectCreated|Schema\WebhookProjectDeleted|Schema\WebhookProjectEdited|Schema\WebhookProjectReopened|Schema\WebhookProjectColumnCreated|Schema\WebhookProjectColumnDeleted|Schema\WebhookProjectColumnEdited|Schema\WebhookProjectColumnMoved|Schema\WebhookProjectsV2ProjectClosed|Schema\WebhookProjectsV2ProjectCreated|Schema\WebhookProjectsV2ProjectDeleted|Schema\WebhookProjectsV2ProjectEdited|Schema\WebhookProjectsV2ProjectReopened|Schema\WebhookProjectsV2ItemArchived|Schema\WebhookProjectsV2ItemConverted|Schema\WebhookProjectsV2ItemCreated|Schema\WebhookProjectsV2ItemDeleted|Schema\WebhookProjectsV2ItemEdited|Schema\WebhookProjectsV2ItemReordered|Schema\WebhookProjectsV2ItemRestored|Schema\WebhookProjectsV2StatusUpdateCreated|Schema\WebhookProjectsV2StatusUpdateDeleted|Schema\WebhookProjectsV2StatusUpdateEdited|Schema\WebhookPublic|Schema\WebhookPullRequestAssigned|Schema\WebhookPullRequestAutoMergeDisabled|Schema\WebhookPullRequestAutoMergeEnabled|Schema\WebhookPullRequestClosed|Schema\WebhookPullRequestConvertedToDraft|Schema\WebhookPullRequestDemilestoned|Schema\WebhookPullRequestDequeued|Schema\WebhookPullRequestEdited|Schema\WebhookPullRequestEnqueued|Schema\WebhookPullRequestLabeled|Schema\WebhookPullRequestLocked|Schema\WebhookPullRequestMilestoned|Schema\WebhookPullRequestOpened|Schema\WebhookPullRequestReadyForReview|Schema\WebhookPullRequestReopened|Schema\WebhookPullRequestReviewRequestRemoved|Schema\WebhookPullRequestReviewRequested|Schema\WebhookPullRequestSynchronize|Schema\WebhookPullRequestUnassigned|Schema\WebhookPullRequestUnlabeled|Schema\WebhookPullRequestUnlocked|Schema\WebhookPullRequestReviewCommentCreated|Schema\WebhookPullRequestReviewCommentDeleted|Schema\WebhookPullRequestReviewCommentEdited|Schema\WebhookPullRequestReviewDismissed|Schema\WebhookPullRequestReviewEdited|Schema\WebhookPullRequestReviewSubmitted|Schema\WebhookPullRequestReviewThreadResolved|Schema\WebhookPullRequestReviewThreadUnresolved|Schema\WebhookPush|Schema\WebhookRegistryPackagePublished|Schema\WebhookRegistryPackageUpdated|Schema\WebhookReleaseCreated|Schema\WebhookReleaseDeleted|Schema\WebhookReleaseEdited|Schema\WebhookReleasePrereleased|Schema\WebhookReleasePublished|Schema\WebhookReleaseReleased|Schema\WebhookReleaseUnpublished|Schema\WebhookRepositoryAdvisoryPublished|Schema\WebhookRepositoryAdvisoryReported|Schema\WebhookRepositoryArchived|Schema\WebhookRepositoryCreated|Schema\WebhookRepositoryDeleted|Schema\WebhookRepositoryEdited|Schema\WebhookRepositoryPrivatized|Schema\WebhookRepositoryPublicized|Schema\WebhookRepositoryRenamed|Schema\WebhookRepositoryTransferred|Schema\WebhookRepositoryUnarchived|Schema\WebhookRepositoryDispatchSample|Schema\WebhookRepositoryImport|Schema\WebhookRepositoryRulesetCreated|Schema\WebhookRepositoryRulesetDeleted|Schema\WebhookRepositoryRulesetEdited|Schema\WebhookRepositoryVulnerabilityAlertCreate|Schema\WebhookRepositoryVulnerabilityAlertDismiss|Schema\WebhookRepositoryVulnerabilityAlertReopen|Schema\WebhookRepositoryVulnerabilityAlertResolve|Schema\WebhookSecretScanningAlertCreated|Schema\WebhookSecretScanningAlertPubliclyLeaked|Schema\WebhookSecretScanningAlertReopened|Schema\WebhookSecretScanningAlertResolved|Schema\WebhookSecretScanningAlertValidated|Schema\WebhookSecretScanningAlertLocationCreated|Schema\WebhookSecretScanningAlertLocationCreatedFormEncoded|Schema\WebhookSecretScanningScanCompleted|Schema\WebhookSecurityAdvisoryPublished|Schema\WebhookSecurityAdvisoryUpdated|Schema\WebhookSecurityAdvisoryWithdrawn|Schema\WebhookSecurityAndAnalysis|Schema\WebhookSponsorshipCancelled|Schema\WebhookSponsorshipCreated|Schema\WebhookSponsorshipEdited|Schema\WebhookSponsorshipPendingCancellation|Schema\WebhookSponsorshipPendingTierChange|Schema\WebhookSponsorshipTierChanged|Schema\WebhookStarCreated|Schema\WebhookStarDeleted|Schema\WebhookStatus|Schema\WebhookSubIssuesParentIssueAdded|Schema\WebhookSubIssuesParentIssueRemoved|Schema\WebhookSubIssuesSubIssueAdded|Schema\WebhookSubIssuesSubIssueRemoved|Schema\WebhookTeamAdd|Schema\WebhookTeamAddedToRepository|Schema\WebhookTeamCreated|Schema\WebhookTeamDeleted|Schema\WebhookTeamEdited|Schema\WebhookTeamRemovedFromRepository|Schema\WebhookWatchStarted|Schema\WebhookWorkflowDispatch|Schema\WebhookWorkflowJobCompleted|Schema\WebhookWorkflowJobInProgress|Schema\WebhookWorkflowJobQueued|Schema\WebhookWorkflowJobWaiting|Schema\WebhookWorkflowRunCompleted|Schema\WebhookWorkflowRunInProgress|Schema\WebhookWorkflowRunRequested */ + /** @return Schema\WebhookBranchProtectionConfigurationDisabled|Schema\WebhookBranchProtectionConfigurationEnabled|Schema\WebhookBranchProtectionRuleCreated|Schema\WebhookBranchProtectionRuleDeleted|Schema\WebhookBranchProtectionRuleEdited|Schema\WebhookExemptionRequestCancelled|Schema\WebhookExemptionRequestCompleted|Schema\WebhookExemptionRequestCreated|Schema\WebhookExemptionRequestResponseDismissed|Schema\WebhookExemptionRequestResponseSubmitted|Schema\WebhookCheckRunCompleted|Schema\WebhookCheckRunCompletedFormEncoded|Schema\WebhookCheckRunCreated|Schema\WebhookCheckRunCreatedFormEncoded|Schema\WebhookCheckRunRequestedAction|Schema\WebhookCheckRunRequestedActionFormEncoded|Schema\WebhookCheckRunRerequested|Schema\WebhookCheckRunRerequestedFormEncoded|Schema\WebhookCheckSuiteCompleted|Schema\WebhookCheckSuiteRequested|Schema\WebhookCheckSuiteRerequested|Schema\WebhookCodeScanningAlertAppearedInBranch|Schema\WebhookCodeScanningAlertClosedByUser|Schema\WebhookCodeScanningAlertCreated|Schema\WebhookCodeScanningAlertFixed|Schema\WebhookCodeScanningAlertReopened|Schema\WebhookCodeScanningAlertReopenedByUser|Schema\WebhookCommitCommentCreated|Schema\WebhookCreate|Schema\WebhookCustomPropertyCreated|Schema\WebhookCustomPropertyDeleted|Schema\WebhookCustomPropertyPromotedToEnterprise|Schema\WebhookCustomPropertyUpdated|Schema\WebhookCustomPropertyValuesUpdated|Schema\WebhookDelete|Schema\WebhookDependabotAlertAutoDismissed|Schema\WebhookDependabotAlertAutoReopened|Schema\WebhookDependabotAlertCreated|Schema\WebhookDependabotAlertDismissed|Schema\WebhookDependabotAlertFixed|Schema\WebhookDependabotAlertReintroduced|Schema\WebhookDependabotAlertReopened|Schema\WebhookDeployKeyCreated|Schema\WebhookDeployKeyDeleted|Schema\WebhookDeploymentCreated|Schema\WebhookDeploymentProtectionRuleRequested|Schema\WebhookDeploymentReviewApproved|Schema\WebhookDeploymentReviewRejected|Schema\WebhookDeploymentReviewRequested|Schema\WebhookDeploymentStatusCreated|Schema\WebhookDiscussionAnswered|Schema\WebhookDiscussionCategoryChanged|Schema\WebhookDiscussionClosed|Schema\WebhookDiscussionCreated|Schema\WebhookDiscussionDeleted|Schema\WebhookDiscussionEdited|Schema\WebhookDiscussionLabeled|Schema\WebhookDiscussionLocked|Schema\WebhookDiscussionPinned|Schema\WebhookDiscussionReopened|Schema\WebhookDiscussionTransferred|Schema\WebhookDiscussionUnanswered|Schema\WebhookDiscussionUnlabeled|Schema\WebhookDiscussionUnlocked|Schema\WebhookDiscussionUnpinned|Schema\WebhookDiscussionCommentCreated|Schema\WebhookDiscussionCommentDeleted|Schema\WebhookDiscussionCommentEdited|Schema\WebhookFork|Schema\WebhookGithubAppAuthorizationRevoked|Schema\WebhookGollum|Schema\WebhookInstallationCreated|Schema\WebhookInstallationDeleted|Schema\WebhookInstallationNewPermissionsAccepted|Schema\WebhookInstallationSuspend|Schema\WebhookInstallationUnsuspend|Schema\WebhookInstallationRepositoriesAdded|Schema\WebhookInstallationRepositoriesRemoved|Schema\WebhookInstallationTargetRenamed|Schema\WebhookIssueCommentCreated|Schema\WebhookIssueCommentDeleted|Schema\WebhookIssueCommentEdited|Schema\WebhookIssuesAssigned|Schema\WebhookIssuesClosed|Schema\WebhookIssuesDeleted|Schema\WebhookIssuesDemilestoned|Schema\WebhookIssuesEdited|Schema\WebhookIssuesLabeled|Schema\WebhookIssuesLocked|Schema\WebhookIssuesMilestoned|Schema\WebhookIssuesOpened|Schema\WebhookIssuesPinned|Schema\WebhookIssuesReopened|Schema\WebhookIssuesTransferred|Schema\WebhookIssuesTyped|Schema\WebhookIssuesUnassigned|Schema\WebhookIssuesUnlabeled|Schema\WebhookIssuesUnlocked|Schema\WebhookIssuesUnpinned|Schema\WebhookIssuesUntyped|Schema\WebhookLabelCreated|Schema\WebhookLabelDeleted|Schema\WebhookLabelEdited|Schema\WebhookMarketplacePurchaseCancelled|Schema\WebhookMarketplacePurchaseChanged|Schema\WebhookMarketplacePurchasePendingChange|Schema\WebhookMarketplacePurchasePendingChangeCancelled|Schema\WebhookMarketplacePurchasePurchased|Schema\WebhookMemberAdded|Schema\WebhookMemberEdited|Schema\WebhookMemberRemoved|Schema\WebhookMembershipAdded|Schema\WebhookMembershipRemoved|Schema\WebhookMergeGroupChecksRequested|Schema\WebhookMergeGroupDestroyed|Schema\WebhookMetaDeleted|Schema\WebhookMilestoneClosed|Schema\WebhookMilestoneCreated|Schema\WebhookMilestoneDeleted|Schema\WebhookMilestoneEdited|Schema\WebhookMilestoneOpened|Schema\WebhookOrgBlockBlocked|Schema\WebhookOrgBlockUnblocked|Schema\WebhookOrganizationDeleted|Schema\WebhookOrganizationMemberAdded|Schema\WebhookOrganizationMemberInvited|Schema\WebhookOrganizationMemberRemoved|Schema\WebhookOrganizationRenamed|Schema\WebhookPackagePublished|Schema\WebhookPackageUpdated|Schema\WebhookPageBuild|Schema\WebhookPersonalAccessTokenRequestApproved|Schema\WebhookPersonalAccessTokenRequestCancelled|Schema\WebhookPersonalAccessTokenRequestCreated|Schema\WebhookPersonalAccessTokenRequestDenied|Schema\WebhookPing|Schema\WebhookPingFormEncoded|Schema\WebhookProjectCardConverted|Schema\WebhookProjectCardCreated|Schema\WebhookProjectCardDeleted|Schema\WebhookProjectCardEdited|Schema\WebhookProjectCardMoved|Schema\WebhookProjectClosed|Schema\WebhookProjectCreated|Schema\WebhookProjectDeleted|Schema\WebhookProjectEdited|Schema\WebhookProjectReopened|Schema\WebhookProjectColumnCreated|Schema\WebhookProjectColumnDeleted|Schema\WebhookProjectColumnEdited|Schema\WebhookProjectColumnMoved|Schema\WebhookProjectsV2ProjectClosed|Schema\WebhookProjectsV2ProjectCreated|Schema\WebhookProjectsV2ProjectDeleted|Schema\WebhookProjectsV2ProjectEdited|Schema\WebhookProjectsV2ProjectReopened|Schema\WebhookProjectsV2ItemArchived|Schema\WebhookProjectsV2ItemConverted|Schema\WebhookProjectsV2ItemCreated|Schema\WebhookProjectsV2ItemDeleted|Schema\WebhookProjectsV2ItemEdited|Schema\WebhookProjectsV2ItemReordered|Schema\WebhookProjectsV2ItemRestored|Schema\WebhookProjectsV2StatusUpdateCreated|Schema\WebhookProjectsV2StatusUpdateDeleted|Schema\WebhookProjectsV2StatusUpdateEdited|Schema\WebhookPublic|Schema\WebhookPullRequestAssigned|Schema\WebhookPullRequestAutoMergeDisabled|Schema\WebhookPullRequestAutoMergeEnabled|Schema\WebhookPullRequestClosed|Schema\WebhookPullRequestConvertedToDraft|Schema\WebhookPullRequestDemilestoned|Schema\WebhookPullRequestDequeued|Schema\WebhookPullRequestEdited|Schema\WebhookPullRequestEnqueued|Schema\WebhookPullRequestLabeled|Schema\WebhookPullRequestLocked|Schema\WebhookPullRequestMilestoned|Schema\WebhookPullRequestOpened|Schema\WebhookPullRequestReadyForReview|Schema\WebhookPullRequestReopened|Schema\WebhookPullRequestReviewRequestRemoved|Schema\WebhookPullRequestReviewRequested|Schema\WebhookPullRequestSynchronize|Schema\WebhookPullRequestUnassigned|Schema\WebhookPullRequestUnlabeled|Schema\WebhookPullRequestUnlocked|Schema\WebhookPullRequestReviewCommentCreated|Schema\WebhookPullRequestReviewCommentDeleted|Schema\WebhookPullRequestReviewCommentEdited|Schema\WebhookPullRequestReviewDismissed|Schema\WebhookPullRequestReviewEdited|Schema\WebhookPullRequestReviewSubmitted|Schema\WebhookPullRequestReviewThreadResolved|Schema\WebhookPullRequestReviewThreadUnresolved|Schema\WebhookPush|Schema\WebhookRegistryPackagePublished|Schema\WebhookRegistryPackageUpdated|Schema\WebhookReleaseCreated|Schema\WebhookReleaseDeleted|Schema\WebhookReleaseEdited|Schema\WebhookReleasePrereleased|Schema\WebhookReleasePublished|Schema\WebhookReleaseReleased|Schema\WebhookReleaseUnpublished|Schema\WebhookRepositoryAdvisoryPublished|Schema\WebhookRepositoryAdvisoryReported|Schema\WebhookRepositoryArchived|Schema\WebhookRepositoryCreated|Schema\WebhookRepositoryDeleted|Schema\WebhookRepositoryEdited|Schema\WebhookRepositoryPrivatized|Schema\WebhookRepositoryPublicized|Schema\WebhookRepositoryRenamed|Schema\WebhookRepositoryTransferred|Schema\WebhookRepositoryUnarchived|Schema\WebhookRepositoryDispatchSample|Schema\WebhookRepositoryImport|Schema\WebhookRepositoryRulesetCreated|Schema\WebhookRepositoryRulesetDeleted|Schema\WebhookRepositoryRulesetEdited|Schema\WebhookRepositoryVulnerabilityAlertCreate|Schema\WebhookRepositoryVulnerabilityAlertDismiss|Schema\WebhookRepositoryVulnerabilityAlertReopen|Schema\WebhookRepositoryVulnerabilityAlertResolve|Schema\WebhookSecretScanningAlertCreated|Schema\WebhookSecretScanningAlertPubliclyLeaked|Schema\WebhookSecretScanningAlertReopened|Schema\WebhookSecretScanningAlertResolved|Schema\WebhookSecretScanningAlertValidated|Schema\WebhookSecretScanningAlertLocationCreated|Schema\WebhookSecretScanningAlertLocationCreatedFormEncoded|Schema\WebhookSecretScanningScanCompleted|Schema\WebhookSecurityAdvisoryPublished|Schema\WebhookSecurityAdvisoryUpdated|Schema\WebhookSecurityAdvisoryWithdrawn|Schema\WebhookSecurityAndAnalysis|Schema\WebhookSponsorshipCancelled|Schema\WebhookSponsorshipCreated|Schema\WebhookSponsorshipEdited|Schema\WebhookSponsorshipPendingCancellation|Schema\WebhookSponsorshipPendingTierChange|Schema\WebhookSponsorshipTierChanged|Schema\WebhookStarCreated|Schema\WebhookStarDeleted|Schema\WebhookStatus|Schema\WebhookSubIssuesParentIssueAdded|Schema\WebhookSubIssuesParentIssueRemoved|Schema\WebhookSubIssuesSubIssueAdded|Schema\WebhookSubIssuesSubIssueRemoved|Schema\WebhookTeamAdd|Schema\WebhookTeamAddedToRepository|Schema\WebhookTeamCreated|Schema\WebhookTeamDeleted|Schema\WebhookTeamEdited|Schema\WebhookTeamRemovedFromRepository|Schema\WebhookWatchStarted|Schema\WebhookWorkflowDispatch|Schema\WebhookWorkflowJobCompleted|Schema\WebhookWorkflowJobInProgress|Schema\WebhookWorkflowJobQueued|Schema\WebhookWorkflowJobWaiting|Schema\WebhookWorkflowRunCompleted|Schema\WebhookWorkflowRunInProgress|Schema\WebhookWorkflowRunRequested */ public function resolve(array $headers, array $data): object { $headers = (static function ($headers): array { diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseListingTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseListingTest.php deleted file mode 100644 index 6ae910f7eaf..00000000000 --- a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseListingTest.php +++ /dev/null @@ -1,191 +0,0 @@ - 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForEnterpriseListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_500_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForEnterpriseListing('generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } - - /** @test */ - public function call_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForEnterpriseListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForEnterpriseListing('generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } - - /** @test */ - public function call_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForEnterpriseListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForEnterpriseListing('generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } - - /** @test */ - public function call_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForEnterpriseListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForEnterpriseListing('generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } -} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeamListingTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeamListingTest.php deleted file mode 100644 index 88c60850638..00000000000 --- a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeamListingTest.php +++ /dev/null @@ -1,195 +0,0 @@ - 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForEnterpriseTeamListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_500_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForEnterpriseTeamListing('generated', 'generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } - - /** @test */ - public function call_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForEnterpriseTeamListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForEnterpriseTeamListing('generated', 'generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } - - /** @test */ - public function call_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForEnterpriseTeamListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForEnterpriseTeamListing('generated', 'generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } - - /** @test */ - public function call_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForEnterpriseTeamListing::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForEnterpriseTeamListing('generated', 'generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } -} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeamTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeamTest.php deleted file mode 100644 index 0b3f65b523b..00000000000 --- a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTeamTest.php +++ /dev/null @@ -1,179 +0,0 @@ - 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForEnterpriseTeam::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_500_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForEnterpriseTeam('generated', 'generated', 'generated', 'generated', 1, 8); - } - - /** @test */ - public function call_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForEnterpriseTeam::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForEnterpriseTeam('generated', 'generated', 'generated', 'generated', 1, 8); - } - - /** @test */ - public function call_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForEnterpriseTeam::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForEnterpriseTeam('generated', 'generated', 'generated', 'generated', 1, 8); - } - - /** @test */ - public function call_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForEnterpriseTeam::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForEnterpriseTeam('generated', 'generated', 'generated', 'generated', 1, 8); - } -} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTest.php deleted file mode 100644 index 041eedc2be0..00000000000 --- a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForEnterpriseTest.php +++ /dev/null @@ -1,175 +0,0 @@ - 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForEnterprise::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_500_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForEnterprise('generated', 'generated', 'generated', 1, 8); - } - - /** @test */ - public function call_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForEnterprise::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForEnterprise('generated', 'generated', 'generated', 1, 8); - } - - /** @test */ - public function call_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForEnterprise::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForEnterprise('generated', 'generated', 'generated', 1, 8); - } - - /** @test */ - public function call_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForEnterprise::OPERATION_MATCH, (static function (array $data): array { - $data['enterprise'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/enterprises/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForEnterprise('generated', 'generated', 'generated', 1, 8); - } -} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForOrgListingTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForOrgListingTest.php deleted file mode 100644 index ba4dd874051..00000000000 --- a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForOrgListingTest.php +++ /dev/null @@ -1,191 +0,0 @@ - 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForOrgListing::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_500_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForOrgListing('generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } - - /** @test */ - public function call_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForOrgListing::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForOrgListing('generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } - - /** @test */ - public function call_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForOrgListing::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForOrgListing('generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } - - /** @test */ - public function call_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForOrgListing::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForOrgListing('generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } -} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForOrgTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForOrgTest.php deleted file mode 100644 index 2e150c5a96a..00000000000 --- a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForOrgTest.php +++ /dev/null @@ -1,175 +0,0 @@ - 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForOrg::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_500_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForOrg('generated', 'generated', 'generated', 1, 8); - } - - /** @test */ - public function call_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForOrg::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForOrg('generated', 'generated', 'generated', 1, 8); - } - - /** @test */ - public function call_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForOrg::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForOrg('generated', 'generated', 'generated', 1, 8); - } - - /** @test */ - public function call_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForOrg::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForOrg('generated', 'generated', 'generated', 1, 8); - } -} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForTeamListingTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForTeamListingTest.php deleted file mode 100644 index d772558d45c..00000000000 --- a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForTeamListingTest.php +++ /dev/null @@ -1,195 +0,0 @@ - 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForTeamListing::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_500_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForTeamListing('generated', 'generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } - - /** @test */ - public function call_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForTeamListing::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForTeamListing('generated', 'generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } - - /** @test */ - public function call_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForTeamListing::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForTeamListing('generated', 'generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } - - /** @test */ - public function call_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForTeamListing::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - foreach ($result as $item) { - } - } - - /** @test */ - public function operations_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForTeamListing('generated', 'generated', 'generated', 'generated', 1, 8); - foreach ($result as $item) { - } - } -} diff --git a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForTeamTest.php b/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForTeamTest.php deleted file mode 100644 index d0b15a8fbb5..00000000000 --- a/clients/GitHubEnterpriseCloud/tests/Internal/Operation/Copilot/UsageMetricsForTeamTest.php +++ /dev/null @@ -1,179 +0,0 @@ - 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForTeam::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_500_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(500, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForTeam('generated', 'generated', 'generated', 'generated', 1, 8); - } - - /** @test */ - public function call_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForTeam::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_401_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(401, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForTeam('generated', 'generated', 'generated', 'generated', 1, 8); - } - - /** @test */ - public function call_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForTeam::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_403_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(403, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForTeam('generated', 'generated', 'generated', 'generated', 1, 8); - } - - /** @test */ - public function call_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->call(Internal\Operation\Copilot\UsageMetricsForTeam::OPERATION_MATCH, (static function (array $data): array { - $data['org'] = 'generated'; - $data['team_slug'] = 'generated'; - $data['since'] = 'generated'; - $data['until'] = 'generated'; - $data['page'] = 1; - $data['per_page'] = 8; - - return $data; - })([])); - } - - /** @test */ - public function operations_httpCode_404_responseContentType_application_json_zero(): void - { - self::expectException(ErrorSchemas\BasicError::class); - $response = new Response(404, ['Content-Type' => 'application/json'], json_encode(json_decode(Schema\BasicError::SCHEMA_EXAMPLE_DATA, true))); - $auth = $this->prophesize(AuthenticationInterface::class); - $auth->authHeader(Argument::any())->willReturn('Bearer beer')->shouldBeCalled(); - $browser = $this->prophesize(Browser::class); - $browser->withBase(Argument::any())->willReturn($browser->reveal()); - $browser->withFollowRedirects(Argument::any())->willReturn($browser->reveal()); - $browser->request('GET', '/orgs/generated/team/generated/copilot/usage?since=generated&until=generated&page=1&per_page=8', Argument::type('array'), Argument::any())->willReturn(resolve($response))->shouldBeCalled(); - $client = new Client($auth->reveal(), $browser->reveal()); - $result = $client->operations()->copilot()->usageMetricsForTeam('generated', 'generated', 'generated', 'generated', 1, 8); - } -} diff --git a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php index d6e5e26a446..0ed5c35651d 100644 --- a/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/tests/Types/ClientCallReturnTypes.php @@ -132,8 +132,6 @@ function authHeader(): string assertType('', $client->call('GET /enterprises/{enterprise}/copilot/billing/seats')); assertType('Observable', $client->call('GET /enterprises/{enterprise}/copilot/metrics')); assertType('Observable', $client->call('LIST /enterprises/{enterprise}/copilot/metrics')); -assertType('Observable', $client->call('GET /enterprises/{enterprise}/copilot/usage')); -assertType('Observable', $client->call('LIST /enterprises/{enterprise}/copilot/usage')); assertType('Observable|WithoutBody', $client->call('GET /enterprises/{enterprise}/dependabot/alerts')); assertType('', $client->call('GET /enterprises/{enterprise}/license-sync-status')); assertType('', $client->call('GET /enterprises/{enterprise}/network-configurations')); @@ -166,8 +164,6 @@ function authHeader(): string assertType('', $client->call('GET /enterprises/{enterprise}/settings/billing/usage')); assertType('Observable', $client->call('GET /enterprises/{enterprise}/team/{team_slug}/copilot/metrics')); assertType('Observable', $client->call('LIST /enterprises/{enterprise}/team/{team_slug}/copilot/metrics')); -assertType('Observable', $client->call('GET /enterprises/{enterprise}/team/{team_slug}/copilot/usage')); -assertType('Observable', $client->call('LIST /enterprises/{enterprise}/team/{team_slug}/copilot/usage')); assertType('', $client->call('POST /enterprises/{enterprise}/{security_product}/{enablement}')); assertType('Observable|WithoutBody', $client->call('GET /events')); assertType('Observable|WithoutBody', $client->call('LIST /events')); @@ -352,8 +348,6 @@ function authHeader(): string assertType('', $client->call('DELETE /orgs/{org}/copilot/billing/selected_users')); assertType('Observable', $client->call('GET /orgs/{org}/copilot/metrics')); assertType('Observable', $client->call('LIST /orgs/{org}/copilot/metrics')); -assertType('Observable', $client->call('GET /orgs/{org}/copilot/usage')); -assertType('Observable', $client->call('LIST /orgs/{org}/copilot/usage')); assertType('Observable', $client->call('GET /orgs/{org}/credential-authorizations')); assertType('Observable', $client->call('LIST /orgs/{org}/credential-authorizations')); assertType('', $client->call('DELETE /orgs/{org}/credential-authorizations/{credential_id}')); @@ -545,8 +539,6 @@ function authHeader(): string assertType('', $client->call('GET /orgs/{org}/team-sync/groups')); assertType('Observable', $client->call('GET /orgs/{org}/team/{team_slug}/copilot/metrics')); assertType('Observable', $client->call('LIST /orgs/{org}/team/{team_slug}/copilot/metrics')); -assertType('Observable', $client->call('GET /orgs/{org}/team/{team_slug}/copilot/usage')); -assertType('Observable', $client->call('LIST /orgs/{org}/team/{team_slug}/copilot/usage')); assertType('Observable', $client->call('GET /orgs/{org}/teams')); assertType('Observable', $client->call('LIST /orgs/{org}/teams')); assertType('', $client->call('POST /orgs/{org}/teams')); diff --git a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml index 4e655d7e603..16dda5bd04b 100644 --- a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml +++ b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml @@ -4875,83 +4875,6 @@ paths: enabledForGitHubApps: true category: copilot subcategory: copilot-metrics - "/enterprises/{enterprise}/copilot/usage": - get: - summary: Get a summary of Copilot usage for enterprise members - description: |- - > [!NOTE] - > This endpoint is closing down. It will be accessible throughout February 2025, but will not return any new data after February 1st. - - You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE - for all users across organizations with access to Copilot within your enterprise, with a further breakdown of suggestions, acceptances, - and number of active users by editor and language for each day. See the response schema tab for detailed metrics definitions. - - The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day, - and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics, - they must have telemetry enabled in their IDE. - - The time zone in the response is in UTC time, that means that the cutoff time for the "day" is UTC time. - - Only owners and billing managers can view Copilot usage metrics for the enterprise. - - OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. - tags: - - copilot - operationId: copilot/usage-metrics-for-enterprise - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-enterprise-members - parameters: - - "$ref": "#/components/parameters/enterprise" - - name: since - description: Show usage metrics since this date. This is a timestamp in [ISO - 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). - Maximum value is 28 days ago. - in: query - required: false - schema: - type: string - - name: until - description: Show usage metrics until this date. This is a timestamp in [ISO - 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`) - and should not preceed the `since` date if it is passed. - in: query - required: false - schema: - type: string - - "$ref": "#/components/parameters/page" - - name: per_page - description: The number of days of metrics to display per page (max 28). 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)." - in: query - schema: - type: integer - default: 28 - responses: - '200': - description: Response - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/copilot-usage-metrics" - examples: - default: - "$ref": "#/components/examples/copilot-usage-metrics-enterprise" - '500': - "$ref": "#/components/responses/internal_error" - '401': - "$ref": "#/components/responses/requires_authentication" - '403': - "$ref": "#/components/responses/forbidden" - '404': - "$ref": "#/components/responses/not_found" - x-github: - githubCloudOnly: true - enabledForGitHubApps: true - category: copilot - subcategory: copilot-usage "/enterprises/{enterprise}/dependabot/alerts": get: summary: List Dependabot alerts for an enterprise @@ -6310,85 +6233,6 @@ paths: enabledForGitHubApps: true category: copilot subcategory: copilot-metrics - "/enterprises/{enterprise}/team/{team_slug}/copilot/usage": - get: - summary: Get a summary of Copilot usage for an enterprise team - description: |- - > [!NOTE] - > This endpoint is closing down. It will be accessible throughout February 2025, but will not return any new data after February 1st. - - You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE - for users within an enterprise team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. - See the response schema tab for detailed metrics definitions. - - The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day, - and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics, - they must have telemetry enabled in their IDE. - - > [!NOTE] - > This endpoint will only return results for a given day if the enterprise team had five or more members with active Copilot licenses, as evaluated at the end of that day. - - Owners and billing managers for the enterprise that contains the enterprise team can view Copilot usage metrics for the enterprise team. - - OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot` or `read:enterprise` scopes to use this endpoint. - tags: - - copilot - operationId: copilot/usage-metrics-for-enterprise-team - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-an-enterprise-team - parameters: - - "$ref": "#/components/parameters/enterprise" - - "$ref": "#/components/parameters/team-slug" - - name: since - description: Show usage metrics since this date. This is a timestamp in [ISO - 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). - Maximum value is 28 days ago. - in: query - required: false - schema: - type: string - - name: until - description: Show usage metrics until this date. This is a timestamp in [ISO - 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`) - and should not preceed the `since` date if it is passed. - in: query - required: false - schema: - type: string - - "$ref": "#/components/parameters/page" - - name: per_page - description: The number of days of metrics to display per page (max 28). 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)." - in: query - schema: - type: integer - default: 28 - responses: - '200': - description: Response - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/copilot-usage-metrics" - examples: - default: - "$ref": "#/components/examples/copilot-usage-metrics-org" - '500': - "$ref": "#/components/responses/internal_error" - '401': - "$ref": "#/components/responses/requires_authentication" - '403': - "$ref": "#/components/responses/forbidden" - '404': - "$ref": "#/components/responses/not_found" - x-github: - githubCloudOnly: true - enabledForGitHubApps: true - category: copilot - subcategory: copilot-usage "/enterprises/{enterprise}/{security_product}/{enablement}": post: summary: Enable or disable a security feature @@ -14248,81 +14092,6 @@ paths: enabledForGitHubApps: true category: copilot subcategory: copilot-metrics - "/orgs/{org}/copilot/usage": - get: - summary: Get a summary of Copilot usage for organization members - description: |- - > [!NOTE] - > This endpoint is closing down. It will be accessible throughout February 2025, but will not return any new data after February 1st. - - You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE - across an organization, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. - See the response schema tab for detailed metrics definitions. - - The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day, - and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics, - they must have telemetry enabled in their IDE. - - Organization owners, and owners and billing managers of the parent enterprise, can view Copilot usage metrics. - - OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. - tags: - - copilot - operationId: copilot/usage-metrics-for-org - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-organization-members - parameters: - - "$ref": "#/components/parameters/org" - - name: since - description: Show usage metrics since this date. This is a timestamp in [ISO - 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). - Maximum value is 28 days ago. - in: query - required: false - schema: - type: string - - name: until - description: Show usage metrics until this date. This is a timestamp in [ISO - 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`) - and should not preceed the `since` date if it is passed. - in: query - required: false - schema: - type: string - - "$ref": "#/components/parameters/page" - - name: per_page - description: The number of days of metrics to display per page (max 28). 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)." - in: query - schema: - type: integer - default: 28 - responses: - '200': - description: Response - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/copilot-usage-metrics" - examples: - default: - "$ref": "#/components/examples/copilot-usage-metrics-org" - '500': - "$ref": "#/components/responses/internal_error" - '401': - "$ref": "#/components/responses/requires_authentication" - '403': - "$ref": "#/components/responses/forbidden" - '404': - "$ref": "#/components/responses/not_found" - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: copilot - subcategory: copilot-usage "/orgs/{org}/credential-authorizations": get: summary: List SAML SSO authorizations for an organization @@ -21605,85 +21374,6 @@ paths: enabledForGitHubApps: true category: copilot subcategory: copilot-metrics - "/orgs/{org}/team/{team_slug}/copilot/usage": - get: - summary: Get a summary of Copilot usage for a team - description: |- - > [!NOTE] - > This endpoint is closing down. It will be accessible throughout February 2025, but will not return any new data after February 1st. - - You can use this endpoint to see a daily breakdown of aggregated usage metrics for Copilot completions and Copilot Chat in the IDE - for users within a team, with a further breakdown of suggestions, acceptances, and number of active users by editor and language for each day. - See the response schema tab for detailed metrics definitions. - - The response contains metrics for up to 28 days prior. Usage metrics are processed once per day for the previous day, - and the response will only include data up until yesterday. In order for an end user to be counted towards these metrics, - they must have telemetry enabled in their IDE. - - > [!NOTE] - > This endpoint will only return results for a given day if the team had five or more members with active Copilot licenses, as evaluated at the end of that day. - - Organization owners for the organization that contains this team, and owners and billing managers of the parent enterprise can view Copilot usage metrics for a team. - - OAuth app tokens and personal access tokens (classic) need either the `manage_billing:copilot`, `read:org`, or `read:enterprise` scopes to use this endpoint. - tags: - - copilot - operationId: copilot/usage-metrics-for-team - externalDocs: - description: API method documentation - url: https://docs.github.com/enterprise-cloud@latest//rest/copilot/copilot-usage#get-a-summary-of-copilot-usage-for-a-team - parameters: - - "$ref": "#/components/parameters/org" - - "$ref": "#/components/parameters/team-slug" - - name: since - description: Show usage metrics since this date. This is a timestamp in [ISO - 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`). - Maximum value is 28 days ago. - in: query - required: false - schema: - type: string - - name: until - description: Show usage metrics until this date. This is a timestamp in [ISO - 8601](https://en.wikipedia.org/wiki/ISO_8601) format (`YYYY-MM-DDTHH:MM:SSZ`) - and should not preceed the `since` date if it is passed. - in: query - required: false - schema: - type: string - - "$ref": "#/components/parameters/page" - - name: per_page - description: The number of days of metrics to display per page (max 28). 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)." - in: query - schema: - type: integer - default: 28 - responses: - '200': - description: Response - content: - application/json: - schema: - type: array - items: - "$ref": "#/components/schemas/copilot-usage-metrics" - examples: - default: - "$ref": "#/components/examples/copilot-usage-metrics-org" - '500': - "$ref": "#/components/responses/internal_error" - '401': - "$ref": "#/components/responses/requires_authentication" - '403': - "$ref": "#/components/responses/forbidden" - '404': - "$ref": "#/components/responses/not_found" - x-github: - githubCloudOnly: false - enabledForGitHubApps: true - category: copilot - subcategory: copilot-usage "/orgs/{org}/teams": get: summary: List teams @@ -34651,7 +34341,7 @@ paths: get: summary: List pull requests associated with a commit description: |- - Lists the merged pull request that introduced the commit to the repository. If the commit is not present in the default branch, will only return open pull requests associated with the commit. + Lists the merged pull request that introduced the commit to the repository. If the commit is not present in the default branch, it will return merged and open pull requests associated with the commit. To list the open or merged pull requests associated with a branch, you can set the `commit_sha` parameter to the branch name. tags: @@ -50123,11 +49813,16 @@ paths: examples: default: value: - userName: octocat - name: Monalisa Octocat + userName: mona.octocat@okta.example.com + externalId: a7d0f98382 + name: + givenName: Monalisa + familyName: Octocat + formatted: Monalisa Octocat emails: - - value: mona.octocat@github.com + - value: mona.octocat@okta.example.com primary: true + - value: monalisa@octocat.github.com x-github: githubCloudOnly: true enabledForGitHubApps: true @@ -50273,10 +49968,14 @@ paths: examples: default: value: - userName: octocat - name: Monalisa Octocat + userName: mona.octocat@okta.example.com + externalId: a7d0f98382 + name: + givenName: Monalisa + familyName: Octocat + formatted: Monalisa Octocat emails: - - value: mona.octocat@github.com + - value: mona.octocat@okta.example.com primary: true x-github: githubCloudOnly: true @@ -65565,6 +65264,72 @@ webhooks: - repository - organization - app + issues-typed: + post: + summary: |- + This event occurs when there is activity relating to an issue. For more information about issues, see "[About issues](https://docs.github.com/enterprise-cloud@latest//issues/tracking-your-work-with-issues/about-issues)." For information about the APIs to manage issues, see [the GraphQL documentation](https://docs.github.com/enterprise-cloud@latest//graphql/reference/objects#issue) or "[Issues](https://docs.github.com/enterprise-cloud@latest//rest/issues)" in the REST API documentation. + + For activity relating to a comment on an issue, use the `issue_comment` event. + + To subscribe to this event, a GitHub App must have at least read-level access for the "Issues" repository permission. + description: An issue type was added to an issue. + operationId: issues/typed + externalDocs: + url: https://docs.github.com/enterprise-cloud@latest//webhooks/webhook-events-and-payloads#issues + parameters: + - name: User-Agent + in: header + example: GitHub-Hookshot/123abc + schema: + type: string + - name: X-Github-Hook-Id + in: header + example: 12312312 + schema: + type: string + - name: X-Github-Event + in: header + example: issues + schema: + type: string + - name: X-Github-Hook-Installation-Target-Id + in: header + example: 123123 + schema: + type: string + - name: X-Github-Hook-Installation-Target-Type + in: header + example: repository + schema: + type: string + - name: X-GitHub-Delivery + in: header + example: 0b989ba4-242f-11e5-81e1-c7b6966d2516 + schema: + type: string + - name: X-Hub-Signature-256 + in: header + example: sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e + schema: + type: string + requestBody: + required: true + content: + application/json: + schema: + "$ref": "#/components/schemas/webhook-issues-typed" + responses: + '200': + description: Return a 200 status to indicate that the data was received + successfully + x-github: + githubCloudOnly: false + category: webhooks + subcategory: issues + supported-webhook-types: + - repository + - organization + - app issues-unassigned: post: summary: |- @@ -65831,6 +65596,72 @@ webhooks: - repository - organization - app + issues-untyped: + post: + summary: |- + This event occurs when there is activity relating to an issue. For more information about issues, see "[About issues](https://docs.github.com/enterprise-cloud@latest//issues/tracking-your-work-with-issues/about-issues)." For information about the APIs to manage issues, see [the GraphQL documentation](https://docs.github.com/enterprise-cloud@latest//graphql/reference/objects#issue) or "[Issues](https://docs.github.com/enterprise-cloud@latest//rest/issues)" in the REST API documentation. + + For activity relating to a comment on an issue, use the `issue_comment` event. + + To subscribe to this event, a GitHub App must have at least read-level access for the "Issues" repository permission. + description: An issue type was removed from an issue. + operationId: issues/untyped + externalDocs: + url: https://docs.github.com/enterprise-cloud@latest//webhooks/webhook-events-and-payloads#issues + parameters: + - name: User-Agent + in: header + example: GitHub-Hookshot/123abc + schema: + type: string + - name: X-Github-Hook-Id + in: header + example: 12312312 + schema: + type: string + - name: X-Github-Event + in: header + example: issues + schema: + type: string + - name: X-Github-Hook-Installation-Target-Id + in: header + example: 123123 + schema: + type: string + - name: X-Github-Hook-Installation-Target-Type + in: header + example: repository + schema: + type: string + - name: X-GitHub-Delivery + in: header + example: 0b989ba4-242f-11e5-81e1-c7b6966d2516 + schema: + type: string + - name: X-Hub-Signature-256 + in: header + example: sha256=6dcb09b5b57875f334f61aebed695e2e4193db5e + schema: + type: string + requestBody: + required: true + content: + application/json: + schema: + "$ref": "#/components/schemas/webhook-issues-untyped" + responses: + '200': + description: Return a 200 status to indicate that the data was received + successfully + x-github: + githubCloudOnly: false + category: webhooks + subcategory: issues + supported-webhook-types: + - repository + - organization + - app label-created: post: summary: |- @@ -82657,90 +82488,6 @@ components: required: - date additionalProperties: true - copilot-usage-metrics: - title: Copilot Usage Metrics - description: Summary of Copilot usage. - type: object - properties: - day: - type: string - format: date - description: The date for which the usage metrics are reported, in `YYYY-MM-DD` - format. - total_suggestions_count: - type: integer - description: The total number of Copilot code completion suggestions shown - to users. - total_acceptances_count: - type: integer - description: The total number of Copilot code completion suggestions accepted - by users. - total_lines_suggested: - type: integer - description: The total number of lines of code completions suggested by - Copilot. - total_lines_accepted: - type: integer - description: The total number of lines of code completions accepted by users. - total_active_users: - type: integer - description: The total number of users who were shown Copilot code completion - suggestions during the day specified. - total_chat_acceptances: - type: integer - description: The total instances of users who accepted code suggested by - Copilot Chat in the IDE (panel and inline). - total_chat_turns: - type: integer - description: The total number of chat turns (prompt and response pairs) - sent between users and Copilot Chat in the IDE. - total_active_chat_users: - type: integer - description: The total number of users who interacted with Copilot Chat - in the IDE during the day specified. - breakdown: - type: - - array - - 'null' - description: Breakdown of Copilot code completions usage by language and - editor - items: - type: object - description: Breakdown of Copilot usage by editor for this language - additionalProperties: true - properties: - language: - type: string - description: The language in which Copilot suggestions were shown - to users in the specified editor. - editor: - type: string - description: The editor in which Copilot suggestions were shown to - users for the specified language. - suggestions_count: - type: integer - description: The number of Copilot suggestions shown to users in the - editor specified during the day specified. - acceptances_count: - type: integer - description: The number of Copilot suggestions accepted by users in - the editor specified during the day specified. - lines_suggested: - type: integer - description: The number of lines of code suggested by Copilot in the - editor specified during the day specified. - lines_accepted: - type: integer - description: The number of lines of code accepted by users in the - editor specified during the day specified. - active_users: - type: integer - description: The number of users who were shown Copilot completion - suggestions in the editor specified during the day specified. - required: - - day - - breakdown - additionalProperties: false dependabot-alert-package: type: object description: Details for the vulnerable package. @@ -143627,6 +143374,34 @@ components: - issue - repository - sender + webhook-issues-typed: + title: issues typed event + type: object + properties: + action: + type: string + enum: + - typed + enterprise: + "$ref": "#/components/schemas/enterprise-webhooks" + installation: + "$ref": "#/components/schemas/simple-installation" + issue: + "$ref": "#/components/schemas/webhooks_issue" + type: + "$ref": "#/components/schemas/issue-type" + organization: + "$ref": "#/components/schemas/organization-simple-webhooks" + repository: + "$ref": "#/components/schemas/repository-webhooks" + sender: + "$ref": "#/components/schemas/simple-user" + required: + - action + - issue + - type + - repository + - sender webhook-issues-unassigned: title: issues unassigned event type: object @@ -144673,6 +144448,34 @@ components: - issue - repository - sender + webhook-issues-untyped: + title: issues untyped event + type: object + properties: + action: + type: string + enum: + - untyped + enterprise: + "$ref": "#/components/schemas/enterprise-webhooks" + installation: + "$ref": "#/components/schemas/simple-installation" + issue: + "$ref": "#/components/schemas/webhooks_issue" + type: + "$ref": "#/components/schemas/issue-type" + organization: + "$ref": "#/components/schemas/organization-simple-webhooks" + repository: + "$ref": "#/components/schemas/repository-webhooks" + sender: + "$ref": "#/components/schemas/simple-user" + required: + - action + - issue + - type + - repository + - sender webhook-label-created: title: label created event type: object @@ -218219,70 +218022,6 @@ components: custom_model_training_date: '2024-02-01' total_pr_summaries_created: 10 total_engaged_users: 4 - copilot-usage-metrics-enterprise: - value: - - day: '2023-10-15' - total_suggestions_count: 5000 - total_acceptances_count: 3000 - total_lines_suggested: 7000 - total_lines_accepted: 3500 - total_active_users: 15 - total_chat_acceptances: 45 - total_chat_turns: 350 - total_active_chat_users: 8 - breakdown: - - language: python - editor: vscode - suggestions_count: 3000 - acceptances_count: 2000 - lines_suggested: 3000 - lines_accepted: 1500 - active_users: 5 - - language: python - editor: jetbrains - suggestions_count: 1000 - acceptances_count: 500 - lines_suggested: 2000 - lines_accepted: 1000 - active_users: 5 - - language: javascript - editor: vscode - suggestions_count: 1000 - acceptances_count: 500 - lines_suggested: 2000 - lines_accepted: 1000 - active_users: 5 - - day: '2023-10-16' - total_suggestions_count: 5200 - total_acceptances_count: 5100 - total_lines_suggested: 5300 - total_lines_accepted: 5000 - total_active_users: 15 - total_chat_acceptances: 57 - total_chat_turns: 455 - total_active_chat_users: 12 - breakdown: - - language: python - editor: vscode - suggestions_count: 3100 - acceptances_count: 3000 - lines_suggested: 3200 - lines_accepted: 3100 - active_users: 5 - - language: python - editor: jetbrains - suggestions_count: 1100 - acceptances_count: 1000 - lines_suggested: 1200 - lines_accepted: 1100 - active_users: 5 - - language: javascript - editor: vscode - suggestions_count: 1000 - acceptances_count: 900 - lines_suggested: 1100 - lines_accepted: 1000 - active_users: 5 dependabot-alerts-for-organization: value: - number: 2 @@ -219040,70 +218779,6 @@ components: netAmount: 0.8 organizationName: GitHub repositoryName: github/example - copilot-usage-metrics-org: - value: - - day: '2023-10-15' - total_suggestions_count: 1000 - total_acceptances_count: 800 - total_lines_suggested: 1800 - total_lines_accepted: 1200 - total_active_users: 10 - total_chat_acceptances: 32 - total_chat_turns: 200 - total_active_chat_users: 4 - breakdown: - - language: python - editor: vscode - suggestions_count: 300 - acceptances_count: 250 - lines_suggested: 900 - lines_accepted: 700 - active_users: 5 - - language: python - editor: jetbrains - suggestions_count: 300 - acceptances_count: 200 - lines_suggested: 400 - lines_accepted: 300 - active_users: 2 - - language: ruby - editor: vscode - suggestions_count: 400 - acceptances_count: 350 - lines_suggested: 500 - lines_accepted: 200 - active_users: 3 - - day: '2023-10-16' - total_suggestions_count: 800 - total_acceptances_count: 600 - total_lines_suggested: 1100 - total_lines_accepted: 700 - total_active_users: 12 - total_chat_acceptances: 57 - total_chat_turns: 426 - total_active_chat_users: 8 - breakdown: - - language: python - editor: vscode - suggestions_count: 300 - acceptances_count: 200 - lines_suggested: 600 - lines_accepted: 300 - active_users: 2 - - language: python - editor: jetbrains - suggestions_count: 300 - acceptances_count: 150 - lines_suggested: 300 - lines_accepted: 250 - active_users: 6 - - language: ruby - editor: vscode - suggestions_count: 200 - acceptances_count: 150 - lines_suggested: 200 - lines_accepted: 150 - active_users: 3 public-events-items: value: - id: '22249084947' @@ -243171,13 +242846,6 @@ components: required: true schema: type: string - team-slug: - name: team_slug - description: The slug of the team name. - in: path - required: true - schema: - type: string enterprise-security-product: name: security_product in: path @@ -243551,6 +243219,13 @@ components: required: true schema: type: string + team-slug: + name: team_slug + description: The slug of the team name. + in: path + required: true + schema: + type: string package-visibility: name: visibility description: |-