diff --git a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state index 15a099e0f0e..12f28db8e72 100644 --- a/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state +++ b/clients/GitHubEnterpriseCloud/etc/openapi-client-generator.state @@ -1,5 +1,5 @@ { - "specHash": "a1c9c39b2a222079693be062d009b766", + "specHash": "1d5396b083551b250099a9fc47ba0344", "generatedFiles": { "files": [ { @@ -460,15 +460,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecurityAndAnalysis.php", - "hash": "6e0cd76d8b5b323a4d553c48475fff13" + "hash": "73c73e4fb71865f820af506a81c7ffe9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/MinimalRepository.php", - "hash": "bb02ade6907d3e11d9fd19b1ce527c18" + "hash": "9f0c10c263b856df81edec74d77d5bae" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Thread.php", - "hash": "8cc9ff951c8465da9b26882b4bdc557f" + "hash": "63840a43404bc256c6f89378e4026aea" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ThreadSubscription.php", @@ -536,7 +536,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Codespace.php", - "hash": "4d309b0ec9fdf115ce1ec9b69e4e405a" + "hash": "a9fbc867ea1a27d6330b231979ca2c5e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodespacesOrgSecret.php", @@ -568,7 +568,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Package.php", - "hash": "a3681f45c984513aaba2dfd307fe6ad5" + "hash": "072889eaac7a14b3c52f3b7143783312" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/ExternalGroup.php", @@ -784,7 +784,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/FullRepository.php", - "hash": "25ca6bc057f8ec7095036a0e2d5551e8" + "hash": "5470059dbb625ea1b84abed8d8d4f864" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Artifact.php", @@ -836,7 +836,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WorkflowRun.php", - "hash": "6bce54adfa0bfb7c56ff66fe8a2e6ec0" + "hash": "39aab7ac799c3825e00cbce7868f78fe" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/EnvironmentApprovals.php", @@ -940,11 +940,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CheckSuite.php", - "hash": "45380a9a8c63e41c44cb73fad3a8e688" + "hash": "75cc89e3a5334f815df7b5143220d5f2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CheckSuitePreference.php", - "hash": "2b026a654dccb1829720d680c30426e8" + "hash": "49e48a35c441864eecd61268bd363be2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeScanningAlertRuleSummary.php", @@ -1032,7 +1032,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryInvitation.php", - "hash": "55e8958c63fa3746cdcb4e5dca0df000" + "hash": "2945571007366c3e53aa9c519295404b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/RepositoryCollaboratorPermission.php", @@ -1064,7 +1064,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CombinedCommitStatus.php", - "hash": "b758d567d49f8cf21f949a9930a33641" + "hash": "2dd298dbe620b2fa406aa9780cf7f6e6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Status.php", @@ -1560,11 +1560,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodeSearchResultItem.php", - "hash": "a3fb5e24c176a572cecca517dc1f1efc" + "hash": "516b427927c183f48b31d719b01f2ccf" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CommitSearchResultItem.php", - "hash": "9f5c5817dd25b732220cd63aeadeb831" + "hash": "1c49736771d0cfa0f21f29a65cc51df1" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/IssueSearchResultItem.php", @@ -1604,7 +1604,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CodespaceWithFullRepository.php", - "hash": "ed1cb079bdac30f6a617a6dfbdc7d5ad" + "hash": "2404bbc86088ad646d00adb6106ab2a5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Email.php", @@ -1652,11 +1652,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SimpleCheckSuite.php", - "hash": "4779abd0fa1d1cded59df83666e4040d" + "hash": "596c91d26d516df3a3f32cada000a49c" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/CheckRunWithSimpleCheckSuite.php", - "hash": "979bfc9e3f3d6d2a2b32afc46e843f86" + "hash": "965994211468f78159d24625482fb83a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Discussion.php", @@ -1696,7 +1696,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCompleted.php", - "hash": "5da7ee2f9d538a9d6bb135b62c5a2a66" + "hash": "6aeb155506a965c44a10ddb5e290027b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCompletedFormEncoded.php", @@ -1704,7 +1704,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCreated.php", - "hash": "a9ad677d90584c0446983def54878ffd" + "hash": "49b161caef2d202af96b29a4d86a6fb5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunCreatedFormEncoded.php", @@ -1712,7 +1712,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRequestedAction.php", - "hash": "f660031213212db8a0a7a1509351d88f" + "hash": "f9a3dfd27911d01946753104efaa178a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRequestedActionFormEncoded.php", @@ -1720,7 +1720,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRerequested.php", - "hash": "19b99cb1f76e79a79b53d2fc1bee51ee" + "hash": "79d20ecebaafbbe7b7436f5d7bf2c9fd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookCheckRunRerequestedFormEncoded.php", @@ -2532,7 +2532,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecurityAndAnalysis.php", - "hash": "badab5d491045454a19c8d35cd83e2ad" + "hash": "2f36a68d998be888200915c8cbe2a523" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSponsorshipCancelled.php", @@ -4468,11 +4468,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecurityAndAnalysis\/Changes.php", - "hash": "62e33d35d6879381b64477d2d3b1051e" + "hash": "eaa16177d388ef2955c7c32d226deedc" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSecurityAndAnalysis\/Changes\/From.php", - "hash": "6ac161446db1473fdba318931f6349f9" + "hash": "ff23a60e6e5786273e96b2bd187373ab" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/WebhookSponsorshipEdited\/Changes.php", @@ -4800,7 +4800,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListRepoAccessToSelfHostedRunnerGroupInOrg\/Response\/ApplicationJson\/Ok.php", - "hash": "8d12548bc0e87099b4f8c94367698a92" + "hash": "935c0ec457378f01f66d58930307f2b7" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Actions\/SetRepoAccessToSelfHostedRunnerGroupInOrg\/Request\/ApplicationJson.php", @@ -4820,7 +4820,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListSelectedReposForOrgSecret\/Response\/ApplicationJson\/Ok.php", - "hash": "8038746fa84d535168f2965582cc2760" + "hash": "dc8d901407aecf73ca179b179682d93d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Actions\/SetSelectedReposForOrgSecret\/Request\/ApplicationJson.php", @@ -4844,7 +4844,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/ListInOrganization\/Response\/ApplicationJson\/Ok.php", - "hash": "65c18b8a3e35f81d503c606c1df88e9a" + "hash": "e8b47521ed2cd6e88ed50a60548be64f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/ListOrgSecrets\/Response\/ApplicationJson\/Ok.php", @@ -5048,11 +5048,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/Update\/Request\/ApplicationJson.php", - "hash": "4ba46e2c8631f8b78b49ec855e27fa3e" + "hash": "16fff72f2c175b1bea0dd3e8a08883f0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/Update\/Request\/ApplicationJson\/SecurityAndAnalysis.php", - "hash": "ea2cd213887e62bb2b97dc721f3b61bc" + "hash": "ac4e3956e5f56292f2528369775779e5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/Update\/Request\/ApplicationJson\/SecurityAndAnalysis\/AdvancedSecurity.php", @@ -5288,7 +5288,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Checks\/ListSuitesForRef\/Response\/ApplicationJson\/Ok.php", - "hash": "4281c2e59d3a164cace5d1cf73a2a2bf" + "hash": "5d422213c210ba377cb2c3c252a24650" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Repos\/GetContent\/Response\/ApplicationJson\/Ok.php", @@ -5728,11 +5728,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/Code\/Response\/ApplicationJson\/Ok.php", - "hash": "613a306ea09235bfc9d9202112cddff7" + "hash": "1d454ae1a1250060b5b157ce64f72407" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/Commits\/Response\/ApplicationJson\/Ok.php", - "hash": "328128b5df90026d590d65f0a1bb1561" + "hash": "d7c0353dcc3eeaf40db4c891c41891ff" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Search\/IssuesAndPullRequests\/Response\/ApplicationJson\/Ok.php", @@ -5908,7 +5908,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/CodeScanning.php", - "hash": "5bd7f50139239b2fb729c1cda44b09f9" + "hash": "83401b8c5cf3afb5087e5e2d41522ae9" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/SecretScanning.php", @@ -5980,7 +5980,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Repos.php", - "hash": "0ed92bd9217d9ede7070631e143e0027" + "hash": "7f6bec05dbb4b9d6cc15c0db93a49925" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Operation\/Reactions.php", @@ -11600,59 +11600,59 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListSelectedReposForOrgVariable\/Response\/ApplicationJson\/Ok.php", - "hash": "ccd370c474a15283a9213ba0e7c8c555" + "hash": "8e98f24073d0e6a11e3d2d67b4635fc4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListSelectedReposForOrgVariable\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "b2baef7df1907e65cf5cd424da6ac8f0" + "hash": "0f1e16125e2043dd0eef00fbfbfb0d07" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/ListSelectedReposForOrgSecret\/Response\/ApplicationJson\/Ok.php", - "hash": "7e796555faeecb38bbea024a1935da7f" + "hash": "d4cbfc06fc76e60691900b43e50d17b5" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/ListSelectedReposForOrgSecret\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "1ef809a9f5d8e1e3d30105af5c756c4c" + "hash": "a2f40cba9ef39fcc5023a9deaeee0d1a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Dependabot\/ListSelectedReposForOrgSecret\/Response\/ApplicationJson\/Ok.php", - "hash": "55c38cb032cc0145532bb6d4416d58c2" + "hash": "8c93238cbb735001812adacc60fda200" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Dependabot\/ListSelectedReposForOrgSecret\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "0fd56cec093456d7d034dfcf67d337be" + "hash": "2d17ecf423355d56c5c8fa0679a4f772" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/ListRepositoriesForSecretForAuthenticatedUser\/Response\/ApplicationJson\/Ok.php", - "hash": "eb6e79cbcf7cb1ce2012b086ae6ee8e5" + "hash": "97b4c886b9567438f7bd8064d7847689" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/ListRepositoriesForSecretForAuthenticatedUser\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "a6be3582bd53d26cbdbb3c5cb36a078a" + "hash": "4236e8d08cc1c6926886cfc8c7a7e8f0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/GetCodespacesForUserInOrg\/Response\/ApplicationJson\/Ok.php", - "hash": "7f0411f334774bbacedff414b6e6efaf" + "hash": "1e80c6865bd685da39b4837e23768353" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/GetCodespacesForUserInOrg\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "1b04a288d66b0dbfe2fecab36202c9c9" + "hash": "02cadbb814c8e7178adf4253131c69ff" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/ListInRepositoryForAuthenticatedUser\/Response\/ApplicationJson\/Ok.php", - "hash": "a86f5eaddd0016eb54b3b65d0d803378" + "hash": "47b481ace91da28ed5c99441808cea69" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/ListInRepositoryForAuthenticatedUser\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "13fa7c12013b635a25f99b1b8f0abb92" + "hash": "0e66c00cbcc0e8cde5a07705d86ab5b2" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/ListForAuthenticatedUser\/Response\/ApplicationJson\/Ok.php", - "hash": "396d86d1a6b1b086ae9198e3b2dba719" + "hash": "8102a8dc6c5e45a5224715b29c480606" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Codespaces\/ListForAuthenticatedUser\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "dfbbd0ca90802636740ff62c2ea9c309" + "hash": "fbd7fcbedabcd4e02c8098673eff7d3b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Apps\/ListInstallationsForAuthenticatedUser\/Response\/ApplicationJson\/Ok.php", @@ -11888,15 +11888,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListWorkflowRunsForRepo\/Response\/ApplicationJson\/Ok.php", - "hash": "f4058bc3f7541ce4e3ffeea408de8ffd" + "hash": "4b2e6496eb3561275cdbb872a0c5e673" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListWorkflowRuns\/Response\/ApplicationJson\/Ok.php", - "hash": "51abbef2b43193d2dc239ac86db54d6f" + "hash": "3a4d1367de193138e87cb5bce460f50a" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListWorkflowRuns\/Response\/ApplicationJson\/Ok\/Application\/Json.php", - "hash": "924946cfa21ef03fbf062dbe6ea9c9e9" + "hash": "275970637b3b3566c65b3b64b66cf3d6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Operations\/Actions\/ListJobsForWorkflowRun\/Response\/ApplicationJson\/Ok.php", @@ -19120,7 +19120,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/ListAlertsForRepo.php", - "hash": "6bc7097eeb524a80573bf1c1f1582a32" + "hash": "96fd7f6aa2a9d5124e05a2a4109037c6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/ListAlertsForRepoTest.php", @@ -19132,7 +19132,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operator\/CodeScanning\/ListAlertsForRepoListing.php", - "hash": "f5b4fe2eb7554ce0487cba41fe37c7ac" + "hash": "5f0008113225a2b4b00dae30d2797710" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Internal\/Operation\/CodeScanning\/ListAlertsForRepoListingTest.php", @@ -26140,7 +26140,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/CodeScanning.php", - "hash": "70869d48b619e128fd45a730ce0dfd33" + "hash": "34f3eedbcb467616a42b779c0f3ffa69" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Dependabot.php", @@ -26420,7 +26420,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/CodeScanning.php", - "hash": "16e335c2ccb7dccbae9e6fda27a7e3e0" + "hash": "42d548361173678d9d0d5217c51f38c0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/SecretScanning.php", @@ -26644,7 +26644,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Six.php", - "hash": "455074bbf433d0f28b1e73fca433014d" + "hash": "77cf4e9f2070d524bd40e99d7a32ad14" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/Get\/Seven.php", @@ -26748,7 +26748,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Six.php", - "hash": "ea2d03f977fbb5d3d72bfc2cca64f5f0" + "hash": "2cc43ed3de040350a0aad4f187e57e9e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Router\/List\/Seven.php", @@ -27132,7 +27132,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Notifications\/Threads\/ThreadId.php", - "hash": "534426912157702b49193d442e4f5561" + "hash": "efbb2439cbe3c21e96f69dd30924123d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Notifications\/Threads\/ThreadId\/Subscription.php", @@ -27436,7 +27436,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Members\/Username\/Codespaces\/CodespaceName\/Stop.php", - "hash": "f722daf99d406c68994a6596ce8a0a7e" + "hash": "cc42cbc58b733b286dbd046861db1ed0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Members\/Username\/Copilot.php", @@ -27476,7 +27476,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Packages\/PackageType\/PackageName.php", - "hash": "e3da1f75a6deb1dca87d36fce0176b24" + "hash": "08fd60975c45219512a02425eb28ca4d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Packages\/PackageType\/PackageName\/Restore.php", @@ -27528,7 +27528,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Repos.php", - "hash": "97c355a74c29570cca6e67423101ffc9" + "hash": "6f1bd143d75f92ae642f1048e891e654" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Orgs\/Org\/Rulesets.php", @@ -27664,7 +27664,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo.php", - "hash": "76952042e910b1778fb778a02f6b9107" + "hash": "f1c8bdfe46f9a4fecebeca2e632d33fb" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Artifacts.php", @@ -27756,7 +27756,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Runs\/RunId.php", - "hash": "3ed3498c7dfb92650cdbd18b23dfe093" + "hash": "54fdb4f446549b72f803ba76c1fb52cc" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Runs\/RunId\/Approve.php", @@ -27768,7 +27768,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Runs\/RunId\/Attempts\/AttemptNumber.php", - "hash": "661894a78a191372dffc62d96cb0abb4" + "hash": "a92dff66668fec941c4182c9f2eef6de" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Actions\/Runs\/RunId\/Attempts\/AttemptNumber\/Jobs.php", @@ -27924,15 +27924,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckSuites.php", - "hash": "eda3d54567c83bafdea54d025249a4ac" + "hash": "28bdd56fa1e73598a9cad8aeb34c3753" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckSuites\/Preferences.php", - "hash": "8074a5d3bfb90958392b6bb94f1c3f02" + "hash": "2093329fac6c499701d5dff5ec2b7fb6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckSuites\/CheckSuiteId.php", - "hash": "418af1d0f6c6fa0f8f407ce7897ded94" + "hash": "632588fb1d54e02ca10a8e78195e5ae1" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/CheckSuites\/CheckSuiteId\/CheckRuns.php", @@ -27988,7 +27988,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Codespaces.php", - "hash": "f1bf26c53c826c2a09d33a51e84ffb9a" + "hash": "411b37e78629b3e2dca91b84b2fc719b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Codespaces\/Devcontainers.php", @@ -28020,7 +28020,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Collaborators\/Username.php", - "hash": "deab85fc9a95f7c65dcd225b091c296d" + "hash": "780240e70c426350964cfa4d7346dcd0" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Collaborators\/Username\/Permission.php", @@ -28060,7 +28060,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Commits\/Ref\/Status.php", - "hash": "27036f4c1f71cd9cbec2887204b8995b" + "hash": "1ec291d819d22e50b01c60bbd478da0f" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Commits\/Ref\/Statuses.php", @@ -28164,7 +28164,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Forks.php", - "hash": "45cdec16057d1a0b3ea41b8884f77fdc" + "hash": "1b53bd3b229e26022459874ea7c1b3dc" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Git\/Blobs.php", @@ -28272,7 +28272,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Invitations\/InvitationId.php", - "hash": "61aa7e9acea930005afbf3decbf9ddf0" + "hash": "ebe5f06d088bb9010619ef311be62330" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Issues.php", @@ -28432,7 +28432,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Pulls\/PullNumber\/Codespaces.php", - "hash": "db8b273942430e89c23ec418034723cd" + "hash": "dac9d5d683d873867ae78b55175e9479" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Pulls\/PullNumber\/Comments.php", @@ -28616,11 +28616,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/Transfer.php", - "hash": "2a28ce607ebe92924c007069ec86f5b5" + "hash": "62bbb49142b319e551f8689b0913497b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/TemplateOwner\/TemplateRepo\/Generate.php", - "hash": "cf8971802db2d00576344efa2ca930b8" + "hash": "cf8e1645f3a1deece60d5a610c237225" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repositories.php", @@ -28740,7 +28740,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Codespaces.php", - "hash": "c164918c6b64797086ec6b2a9eea97ca" + "hash": "ea486dbaa973c751ad76b8dc0c59431e" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Codespaces\/Secrets.php", @@ -28764,7 +28764,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Codespaces\/CodespaceName.php", - "hash": "d92f48b1610c945b4f7f3d3040afbec1" + "hash": "3c660cfadef6f1a7ded05cbe8d206946" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Codespaces\/CodespaceName\/Exports.php", @@ -28780,15 +28780,15 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Codespaces\/CodespaceName\/Publish.php", - "hash": "a7881bfb5e52fda10c86a770764d1d1a" + "hash": "5916668cf64003e32c2f5b000ac62fca" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Codespaces\/CodespaceName\/Start.php", - "hash": "6184c32d94b4ab6ccabd016506fb0bc4" + "hash": "9648585bc5f26abbb1b7a56836fe8b10" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Codespaces\/CodespaceName\/Stop.php", - "hash": "3fe93d2762068d72b635391d7fc46f7d" + "hash": "e5b2920f245b14ca0b879bfcc8c938cd" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Email\/Visibility.php", @@ -28888,7 +28888,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Packages\/PackageType\/PackageName.php", - "hash": "a0365f988578af056d01726f1e38bde2" + "hash": "a354519b55f21473edc28f0d5b9d36d4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Packages\/PackageType\/PackageName\/Restore.php", @@ -28916,7 +28916,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/Repos.php", - "hash": "c9f9b8e4a7e8528359056a3e1f16c7f2" + "hash": "90e48e9c9468737c36eb78805d329ca6" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/User\/RepositoryInvitations.php", @@ -28980,7 +28980,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Users\/Username\/Packages\/PackageType\/PackageName.php", - "hash": "34beeec01f95290fe76380c749fc9eff" + "hash": "db2bcfe7b4ff4a396eb9d7e7ced4a198" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Users\/Username\/Packages\/PackageType\/PackageName\/Restore.php", @@ -29020,7 +29020,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrators.php", - "hash": "23a608229053fd3cf30a5c637587a858" + "hash": "2064840634595b1e3373d8cb897f49e4" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/EnterpriseAdmin\/ListProvisionedGroupsEnterprise.php", @@ -29820,11 +29820,11 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/PHPStan\/ClientCallReturnTypes.php", - "hash": "507cc7f9abaeddb5a7cc1def47a2a144" + "hash": "d4327cff15ed6791470ae0084e08653d" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/tests\/\/Types\/ClientCallReturnTypes.php", - "hash": "0e5913aa4710ee8f84b4a059a76f6d92" + "hash": "8b24c3d0b4051f8068328f06fbbc0f44" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/..\/etc\/phpstan-extension.neon", @@ -30124,7 +30124,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CheckRun.php", - "hash": "4bc00d9abd88621a05158052befd5656" + "hash": "f250feab28249140af708b93f93bf128" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/CheckSuite.php", @@ -30360,7 +30360,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/SecurityAndAnalysis.php", - "hash": "c3377cd833273331d4704456351a75a7" + "hash": "58cfc7abcd5ea316dc327679dde884cc" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/WebHook\/Sponsorship.php", @@ -30612,7 +30612,7 @@ }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Hydrator\/Operation\/Repos\/Owner\/Repo\/SecurityAdvisories\/GhsaId\/Forks.php", - "hash": "a2f5b11d3d073aa548430f6b9cd90751" + "hash": "46e4a9093b98bfa932f3b8b8f363e98b" }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecretScanningLocationDiscussionTitle.php", @@ -32506,22 +32506,10 @@ "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecurityAndAnalysis\/SecretScanningNonProviderPatterns.php", "hash": "9839a74859d6207731b3e81d09c406f4" }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/TietD2703E82\/TietE0AE8597\/TietBBC837FB\/Tiet5F1383AC.php", - "hash": "988ecba57b7edbec69ea525d2f4f4710" - }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet7A837FDB\/TietF2BB5E1A\/Tiet2E9260AD\/TietA6008A25.php", - "hash": "0801e8f14fef3eb76f416e000aed5e24" - }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/Update\/Request\/ApplicationJson\/SecurityAndAnalysis\/SecretScanningNonProviderPatterns.php", "hash": "c0d01cb75a58497753aaa3add5ebd111" }, - { - "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet84990AD5\/Tiet4DC2FD40\/TietC1C8F365\/Tiet342E1A6B.php", - "hash": "a72a637a71a20cd7c526a9389260bff3" - }, { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Internal\/Operation\/CodeSecurity\/DetachConfiguration.php", "hash": "f8ef811d75ccdaea8a8f99cd4ae01c8a" @@ -32805,6 +32793,26 @@ { "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet6B82E311\/TietAB37E426\/Tiet938DAB86\/TietABDC4BA5.php", "hash": "b36674c07eec4f1c51a675c2b089422c" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/SecurityAndAnalysis\/SecretScanningAiDetection.php", + "hash": "ecfa7e661ccb4c3c5841bd90396ab42c" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet3616AE3A\/Tiet9DCBC44E\/TietBDF148C6\/TietC7A1312F.php", + "hash": "bfdfacc7e0ac70176e79a7989b988ed0" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet08EF8947\/Tiet136B9CCF\/Tiet8D61F6BF\/Tiet7B7DC09C.php", + "hash": "7034be9b363e3b05bcc5d21cc98135a8" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/Repos\/Update\/Request\/ApplicationJson\/SecurityAndAnalysis\/SecretScanningAiDetection.php", + "hash": "a8c4323c45c284e8ba2b0cfff3226f7e" + }, + { + "name": ".\/clients\/GitHubEnterpriseCloud\/etc\/..\/\/src\/\/Schema\/AliasAbstract\/Tiet1D194FB1\/Tiet1FB5695E\/Tiet0456C85C\/Tiet7BDB2A1B.php", + "hash": "304e44141a9fc7e35826f473d0e34150" } ] }, diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Notifications/Threads/ThreadId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Notifications/Threads/ThreadId.php index a75107c45fe..663b314af4b 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Notifications/Threads/ThreadId.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Notifications/Threads/ThreadId.php @@ -13,6 +13,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -66,6 +67,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Thread\Subject' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Thread⚡️Subject($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), @@ -1807,6 +1809,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -1991,6 +2013,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -2190,6 +2242,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Thread\Subject' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Thread⚡️Subject($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), @@ -3058,6 +3111,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -3150,6 +3212,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Members/Username/Codespaces/CodespaceName/Stop.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Members/Username/Codespaces/CodespaceName/Stop.php index f0ec747e46e..d15325c1421 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Members/Username/Codespaces/CodespaceName/Stop.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Members/Username/Codespaces/CodespaceName/Stop.php @@ -17,6 +17,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -68,6 +69,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceMachine' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodespaceMachine($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace\GitStatus' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Codespace⚡️GitStatus($payload), @@ -2100,6 +2102,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -2284,6 +2306,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -2620,6 +2672,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceMachine' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodespaceMachine($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace\GitStatus' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Codespace⚡️GitStatus($object), @@ -3640,6 +3693,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -3732,6 +3794,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Packages/PackageType/PackageName.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Packages/PackageType/PackageName.php index 1e59698c9a3..32f57a88867 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Packages/PackageType/PackageName.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Packages/PackageType/PackageName.php @@ -14,6 +14,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -65,6 +66,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -1827,6 +1829,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -2011,6 +2033,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -2147,6 +2199,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), default => throw new LogicException("No serialization defined for $className"), @@ -3025,6 +3078,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -3117,6 +3179,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Repos.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Repos.php index d2e73335556..989da7ba649 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Repos.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Orgs/Org/Repos.php @@ -15,6 +15,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -68,6 +69,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError($payload), @@ -3060,6 +3062,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -3244,6 +3266,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -3453,6 +3505,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError($object), @@ -4743,6 +4796,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -4835,6 +4897,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo.php index 9b8ea068d7c..f283c8239e8 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo.php @@ -16,6 +16,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -69,6 +70,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\Delete\Response\ApplicationJson\Forbidden\Application\Json' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Repos⚡️Delete⚡️Response⚡️ApplicationJson⚡️Forbidden⚡️Application⚡️Json($payload), @@ -3062,6 +3064,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -3246,6 +3268,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -3496,6 +3548,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\Delete\Response\ApplicationJson\Forbidden\Application\Json' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Repos⚡️Delete⚡️Response⚡️ApplicationJson⚡️Forbidden⚡️Application⚡️Json($object), @@ -4787,6 +4840,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -4879,6 +4941,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Runs/RunId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Runs/RunId.php index 2611a567279..581cfa92017 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Runs/RunId.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Runs/RunId.php @@ -12,6 +12,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -70,6 +71,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -2318,6 +2320,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -2502,6 +2524,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -2578,6 +2630,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -3678,6 +3731,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -3770,6 +3832,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Runs/RunId/Attempts/AttemptNumber.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Runs/RunId/Attempts/AttemptNumber.php index 07b3252b8fd..59d195a741a 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Runs/RunId/Attempts/AttemptNumber.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Actions/Runs/RunId/Attempts/AttemptNumber.php @@ -12,6 +12,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -70,6 +71,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -2318,6 +2320,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -2502,6 +2524,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -2578,6 +2630,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -3678,6 +3731,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -3770,6 +3832,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites.php index 8f8d9150fda..03bb170a8cb 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites.php @@ -14,6 +14,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -70,6 +71,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleCommit' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleCommit($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleCommit\Author' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleCommit⚡️Author($payload), @@ -2229,6 +2231,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -2413,6 +2435,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -2673,6 +2725,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleCommit' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleCommit($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleCommit\Author' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleCommit⚡️Author($object), @@ -3791,6 +3844,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -3883,6 +3945,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/CheckSuiteId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/CheckSuiteId.php index 19055bfe8c1..d230eed7006 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/CheckSuiteId.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/CheckSuiteId.php @@ -14,6 +14,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -70,6 +71,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleCommit' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleCommit($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleCommit\Author' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleCommit⚡️Author($payload), @@ -2229,6 +2231,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -2413,6 +2435,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -2673,6 +2725,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleCommit' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleCommit($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleCommit\Author' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleCommit⚡️Author($object), @@ -3791,6 +3844,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -3883,6 +3945,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/Preferences.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/Preferences.php index 98ec6b40001..3a63da71283 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/Preferences.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/CheckSuites/Preferences.php @@ -13,6 +13,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -65,6 +66,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -1757,6 +1759,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -1941,6 +1963,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -2015,6 +2067,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -2878,6 +2931,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -2970,6 +3032,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Codespaces.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Codespaces.php index 022a4778330..21cf2988349 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Codespaces.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Codespaces.php @@ -20,6 +20,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -73,6 +74,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceMachine' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodespaceMachine($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace\GitStatus' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Codespace⚡️GitStatus($payload), @@ -2210,6 +2212,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -2394,6 +2416,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -2806,6 +2858,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceMachine' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodespaceMachine($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace\GitStatus' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Codespace⚡️GitStatus($object), @@ -3888,6 +3941,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -3980,6 +4042,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Collaborators/Username.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Collaborators/Username.php index a50b00b2d13..3d2578107f0 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Collaborators/Username.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Collaborators/Username.php @@ -14,6 +14,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -66,6 +67,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), @@ -1827,6 +1829,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -2011,6 +2033,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -2199,6 +2251,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), @@ -3081,6 +3134,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -3173,6 +3235,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Commits/Ref/Status.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Commits/Ref/Status.php index 212d7ccbcb9..8c04435f380 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Commits/Ref/Status.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Commits/Ref/Status.php @@ -14,6 +14,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -65,6 +66,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -1774,6 +1776,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -1958,6 +1980,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -2094,6 +2146,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), default => throw new LogicException("No serialization defined for $className"), @@ -2956,6 +3009,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -3048,6 +3110,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Forks.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Forks.php index 6a27591df5b..b076d435857 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Forks.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Forks.php @@ -16,6 +16,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -71,6 +72,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️FullRepository⚡️CustomProperties($payload), @@ -3210,6 +3212,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -3394,6 +3416,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -3542,6 +3594,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ValidationError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ValidationError($object), default => throw new LogicException("No serialization defined for $className"), @@ -4934,6 +4987,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -5026,6 +5088,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Invitations/InvitationId.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Invitations/InvitationId.php index 80978079d0f..26e17bec9ae 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Invitations/InvitationId.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Invitations/InvitationId.php @@ -13,6 +13,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -64,6 +65,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -1823,6 +1825,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -2007,6 +2029,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -2080,6 +2132,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -2960,6 +3013,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -3052,6 +3114,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Pulls/PullNumber/Codespaces.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Pulls/PullNumber/Codespaces.php index 83a39fa9bec..3502aaf7492 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Pulls/PullNumber/Codespaces.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Pulls/PullNumber/Codespaces.php @@ -18,6 +18,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -69,6 +70,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceMachine' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodespaceMachine($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace\GitStatus' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Codespace⚡️GitStatus($payload), @@ -2102,6 +2104,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -2286,6 +2308,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -2674,6 +2726,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceMachine' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodespaceMachine($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace\GitStatus' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Codespace⚡️GitStatus($object), @@ -3695,6 +3748,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -3787,6 +3849,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecurityAdvisories/GhsaId/Forks.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecurityAdvisories/GhsaId/Forks.php index 0c532e1e146..1089d94212e 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecurityAdvisories/GhsaId/Forks.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/SecurityAdvisories/GhsaId/Forks.php @@ -16,6 +16,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -69,6 +70,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ScimError($payload), @@ -3062,6 +3064,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -3246,6 +3268,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -3540,6 +3592,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ScimError($object), @@ -4831,6 +4884,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -4923,6 +4985,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Transfer.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Transfer.php index cf341b5831d..e2bebee2ad0 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Transfer.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/Owner/Repo/Transfer.php @@ -12,6 +12,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -62,6 +63,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), }; @@ -1665,6 +1667,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -1849,6 +1871,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -1921,6 +1973,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -2745,6 +2798,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -2837,6 +2899,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/TemplateOwner/TemplateRepo/Generate.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/TemplateOwner/TemplateRepo/Generate.php index 0a3b261e308..131b2c432f6 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/TemplateOwner/TemplateRepo/Generate.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Repos/TemplateOwner/TemplateRepo/Generate.php @@ -14,6 +14,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -66,6 +67,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️FullRepository⚡️CustomProperties($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -3056,6 +3058,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -3240,6 +3262,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -3334,6 +3386,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), default => throw new LogicException("No serialization defined for $className"), }; @@ -4622,6 +4675,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -4714,6 +4776,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Codespaces.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Codespaces.php index a4f08e1ba22..e0096c9f12a 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Codespaces.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Codespaces.php @@ -19,6 +19,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -72,6 +73,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceMachine' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodespaceMachine($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace\GitStatus' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Codespace⚡️GitStatus($payload), @@ -2208,6 +2210,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -2392,6 +2414,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -2719,6 +2771,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceMachine' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodespaceMachine($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace\GitStatus' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Codespace⚡️GitStatus($object), @@ -3800,6 +3853,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -3892,6 +3954,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName.php index 8e6b5d1373b..f6a25e55f6a 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName.php @@ -17,6 +17,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -68,6 +69,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceMachine' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodespaceMachine($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace\GitStatus' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Codespace⚡️GitStatus($payload), @@ -2100,6 +2102,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -2284,6 +2306,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -2620,6 +2672,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceMachine' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodespaceMachine($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace\GitStatus' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Codespace⚡️GitStatus($object), @@ -3640,6 +3693,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -3732,6 +3794,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Publish.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Publish.php index f50bdd3a1d9..21f28237590 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Publish.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Publish.php @@ -19,6 +19,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -73,6 +74,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceMachine' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodespaceMachine($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceWithFullRepository\GitStatus' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodespaceWithFullRepository⚡️GitStatus($payload), @@ -3482,6 +3484,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -3666,6 +3688,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -4076,6 +4128,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceMachine' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodespaceMachine($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceWithFullRepository\GitStatus' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodespaceWithFullRepository⚡️GitStatus($object), @@ -5553,6 +5606,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -5645,6 +5707,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Start.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Start.php index caf197fa0b8..c2f06cea223 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Start.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Start.php @@ -18,6 +18,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -69,6 +70,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceMachine' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodespaceMachine($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace\GitStatus' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Codespace⚡️GitStatus($payload), @@ -2102,6 +2104,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -2286,6 +2308,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -2707,6 +2759,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceMachine' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodespaceMachine($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace\GitStatus' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Codespace⚡️GitStatus($object), @@ -3728,6 +3781,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -3820,6 +3882,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Stop.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Stop.php index 02ad37ffe2a..35c2b6820cf 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Stop.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Codespaces/CodespaceName/Stop.php @@ -17,6 +17,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -68,6 +69,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceMachine' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodespaceMachine($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace\GitStatus' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Codespace⚡️GitStatus($payload), @@ -2100,6 +2102,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -2284,6 +2306,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -2620,6 +2672,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CodespaceMachine' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CodespaceMachine($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Codespace\GitStatus' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Codespace⚡️GitStatus($object), @@ -3640,6 +3693,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -3732,6 +3794,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Packages/PackageType/PackageName.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Packages/PackageType/PackageName.php index bd452f0cd90..2c31cd1c9fe 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Packages/PackageType/PackageName.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Packages/PackageType/PackageName.php @@ -14,6 +14,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -65,6 +66,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -1827,6 +1829,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -2011,6 +2033,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -2147,6 +2199,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), default => throw new LogicException("No serialization defined for $className"), @@ -3025,6 +3078,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -3117,6 +3179,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Repos.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Repos.php index db7e460e08c..ee9784901c0 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Repos.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/User/Repos.php @@ -16,6 +16,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -71,6 +72,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ScimError($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\FullRepository\CustomProperties' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️FullRepository⚡️CustomProperties($payload), @@ -3177,6 +3179,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -3361,6 +3383,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -3542,6 +3594,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\ScimError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️ScimError($object), default => throw new LogicException("No serialization defined for $className"), @@ -4900,6 +4953,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -4992,6 +5054,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Users/Username/Packages/PackageType/PackageName.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Users/Username/Packages/PackageType/PackageName.php index b733765b458..6cdeee3c6c3 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Users/Username/Packages/PackageType/PackageName.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/Operation/Users/Username/Packages/PackageType/PackageName.php @@ -14,6 +14,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -65,6 +66,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($payload), default => throw UnableToHydrateObject::noHydrationDefined($className, $this->hydrationStack), @@ -1827,6 +1829,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -2011,6 +2033,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -2147,6 +2199,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError($object), default => throw new LogicException("No serialization defined for $className"), @@ -3025,6 +3078,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -3117,6 +3179,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CheckRun.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CheckRun.php index 10f761e4079..ee225b55cad 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CheckRun.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/CheckRun.php @@ -22,6 +22,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -88,6 +89,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentSimple' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️DeploymentSimple($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRunWithSimpleCheckSuite\Output' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CheckRunWithSimpleCheckSuite⚡️Output($payload), @@ -2571,6 +2573,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -2755,6 +2777,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -6477,6 +6529,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\DeploymentSimple' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️DeploymentSimple($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\CheckRunWithSimpleCheckSuite\Output' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️CheckRunWithSimpleCheckSuite⚡️Output($object), @@ -7740,6 +7793,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -7832,6 +7894,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecurityAndAnalysis.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecurityAndAnalysis.php index 727da992645..977d472aa15 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecurityAndAnalysis.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrator/WebHook/SecurityAndAnalysis.php @@ -15,6 +15,7 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\AdvancedSecurity; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\DependabotSecurityUpdates; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning; +use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection; use ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks; @@ -67,6 +68,7 @@ public function hydrateObject(string $className, array $payload): object 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($payload), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\EnterpriseWebhooks' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️EnterpriseWebhooks($payload), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation' => $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation($payload), @@ -405,6 +407,26 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S after_secretScanningNonProviderPatterns: + $value = $payload['secret_scanning_ai_detection'] ?? null; + + if ($value === null) { + $properties['secretScanningAiDetection'] = null; + goto after_secretScanningAiDetection; + } + + if (is_array($value)) { + try { + $this->hydrationStack[] = 'secretScanningAiDetection'; + $value = $this->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($value); + } finally { + array_pop($this->hydrationStack); + } + } + + $properties['secretScanningAiDetection'] = $value; + + after_secretScanningAiDetection: + $value = $payload['secret_scanning_validity_checks'] ?? null; if ($value === null) { @@ -589,6 +611,36 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S } } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(array $payload): SecretScanningAiDetection + { + $properties = []; + $missingFields = []; + try { + $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\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + + if (count($missingFields) > 0) { + throw UnableToHydrateObject::dueToMissingFields(SecretScanningAiDetection::class, $missingFields, stack: $this->hydrationStack); + } + + try { + return new SecretScanningAiDetection(...$properties); + } catch (Throwable $exception) { + throw UnableToHydrateObject::dueToError('ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection', $exception, stack: $this->hydrationStack); + } + } + private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(array $payload): SecretScanningValidityChecks { $properties = []; @@ -3879,6 +3931,7 @@ public function serializeObjectOfType(object $object, string $className): mixed 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanning' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanning($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningPushProtection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningPushProtection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningNonProviderPatterns' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($object), + 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningAiDetection' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SecurityAndAnalysis\SecretScanningValidityChecks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\EnterpriseWebhooks' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️EnterpriseWebhooks($object), 'ApiClients\Client\GitHubEnterpriseCloud\Schema\SimpleInstallation' => $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SimpleInstallation($object), @@ -4088,6 +4141,15 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou $secretScanningNonProviderPatterns = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningNonProviderPatterns($secretScanningNonProviderPatterns); after_secretScanningNonProviderPatterns: $result['secret_scanning_non_provider_patterns'] = $secretScanningNonProviderPatterns; + $secretScanningAiDetection = $object->secretScanningAiDetection; + + if ($secretScanningAiDetection === null) { + goto after_secretScanningAiDetection; + } + + $secretScanningAiDetection = $this->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection($secretScanningAiDetection); + after_secretScanningAiDetection: $result['secret_scanning_ai_detection'] = $secretScanningAiDetection; + $secretScanningValidityChecks = $object->secretScanningValidityChecks; if ($secretScanningValidityChecks === null) { @@ -4180,6 +4242,22 @@ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseClou return $result; } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningAiDetection(mixed $object): mixed + { + assert($object instanceof SecretScanningAiDetection); + $result = []; + + $status = $object->status; + + if ($status === null) { + goto after_status; + } + + after_status: $result['status'] = $status; + + return $result; + } + private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️SecurityAndAnalysis⚡️SecretScanningValidityChecks(mixed $object): mixed { assert($object instanceof SecretScanningValidityChecks); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php b/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php index fdac2b81f9d..8efa625dbbf 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Hydrators.php @@ -839,7 +839,7 @@ public function hydrateObject(string $className, array $payload): object '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\MarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\MarketplacePurchase\\MarketplacePendingChange', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\MarketplaceListingPlan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\MarketplacePurchase\\MarketplacePurchase' => $this->getObjectMapperOperation🌀MarketplaceListing🌀Accounts🌀AccountId()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ApiOverview', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ApiOverview\\SshKeyFingerprints', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ApiOverview\\Domains', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ApiOverview\\Domains\\ArtifactAttestations' => $this->getObjectMapperOperation🌀Meta()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Activity\\MarkNotificationsAsRead\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀Notifications()->hydrateObject($className, $payload), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Thread', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\MinimalRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\MinimalRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\MinimalRepository\\License', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\AdvancedSecurity', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\DependabotSecurityUpdates', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\SecretScanning', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\SecretScanningPushProtection', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\SecretScanningNonProviderPatterns', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\SecretScanningValidityChecks', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Thread\\Subject' => $this->getObjectMapperOperation🌀Notifications🌀Threads🌀ThreadId()->hydrateObject($className, $payload), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Thread', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\MinimalRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\MinimalRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\MinimalRepository\\License', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\AdvancedSecurity', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\DependabotSecurityUpdates', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\SecretScanning', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\SecretScanningPushProtection', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\SecretScanningNonProviderPatterns', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\SecretScanningAiDetection', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\SecretScanningValidityChecks', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Thread\\Subject' => $this->getObjectMapperOperation🌀Notifications🌀Threads🌀ThreadId()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ThreadSubscription' => $this->getObjectMapperOperation🌀Notifications🌀Threads🌀ThreadId🌀Subscription()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Orgs\\ListCustomRoles\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Organizations🌀OrganizationId🌀CustomRoles()->hydrateObject($className, $payload), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\OrganizationFull', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\OrganizationFull\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Orgs\\Delete\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org()->hydrateObject($className, $payload), @@ -1219,7 +1219,7 @@ public function serializeObjectOfType(object $object, string $className): mixed '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\MarketplacePurchase', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\MarketplacePurchase\\MarketplacePendingChange', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\MarketplaceListingPlan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\MarketplacePurchase\\MarketplacePurchase' => $this->getObjectMapperOperation🌀MarketplaceListing🌀Accounts🌀AccountId()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ApiOverview', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ApiOverview\\SshKeyFingerprints', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ApiOverview\\Domains', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ApiOverview\\Domains\\ArtifactAttestations' => $this->getObjectMapperOperation🌀Meta()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Activity\\MarkNotificationsAsRead\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀Notifications()->serializeObject($object), - '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Thread', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\MinimalRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\MinimalRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\MinimalRepository\\License', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\AdvancedSecurity', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\DependabotSecurityUpdates', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\SecretScanning', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\SecretScanningPushProtection', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\SecretScanningNonProviderPatterns', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\SecretScanningValidityChecks', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Thread\\Subject' => $this->getObjectMapperOperation🌀Notifications🌀Threads🌀ThreadId()->serializeObject($object), + '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Thread', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\MinimalRepository', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\MinimalRepository\\Permissions', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\MinimalRepository\\License', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\AdvancedSecurity', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\DependabotSecurityUpdates', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\SecretScanning', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\SecretScanningPushProtection', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\SecretScanningNonProviderPatterns', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\SecretScanningAiDetection', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\SecurityAndAnalysis\\SecretScanningValidityChecks', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Thread\\Subject' => $this->getObjectMapperOperation🌀Notifications🌀Threads🌀ThreadId()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\ThreadSubscription' => $this->getObjectMapperOperation🌀Notifications🌀Threads🌀ThreadId🌀Subscription()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Orgs\\ListCustomRoles\\Response\\ApplicationJson\\Ok' => $this->getObjectMapperOperation🌀Organizations🌀OrganizationId🌀CustomRoles()->serializeObject($object), '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\OrganizationFull', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\OrganizationFull\\Plan', '\\ApiClients\\Client\\GitHubEnterpriseCloud\\Schema\\Operations\\Orgs\\Delete\\Response\\ApplicationJson\\Accepted\\Application\\Json' => $this->getObjectMapperOperation🌀Orgs🌀Org()->serializeObject($object), diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertsForRepo.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertsForRepo.php index 87f6014022e..e4361d570b1 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertsForRepo.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertsForRepo.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $before, string $after, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\CodeScanning\ListAlertsForRepo($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $pr, $before, $after, $state, $severity, $page, $perPage, $direction, $sort); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertsForRepoListing.php b/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertsForRepoListing.php index c57414bde5d..fb9d00dd6fd 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertsForRepoListing.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Operator/CodeScanning/ListAlertsForRepoListing.php @@ -25,7 +25,7 @@ public function __construct(private Browser $browser, private AuthenticationInte { } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function call(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $before, string $after, string $state, string $severity, int $page = 1, int $perPage = 30, string $direction = 'desc', string $sort = 'created'): iterable|WithoutBody { $operation = new \ApiClients\Client\GitHubEnterpriseCloud\Internal\Operation\CodeScanning\ListAlertsForRepoListing($this->responseSchemaValidator, $this->hydrator, $owner, $repo, $toolName, $toolGuid, $ref, $pr, $before, $after, $state, $severity, $page, $perPage, $direction, $sort); diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/CodeScanning.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/CodeScanning.php index 97bc3d40a5f..d23ed28ab93 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/CodeScanning.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/CodeScanning.php @@ -171,7 +171,7 @@ public function listAlertsForOrg(array $params): iterable return $operator->call($arguments['org'], $arguments['tool_name'], $arguments['tool_guid'], $arguments['before'], $arguments['after'], $arguments['state'], $arguments['severity'], $arguments['page'], $arguments['per_page'], $arguments['direction'], $arguments['sort']); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepo(array $params): iterable|WithoutBody { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php index 0933a0e28cf..cdf09c07168 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/Get/Six.php @@ -83,7 +83,7 @@ public function __construct(private Routers $routers) { } - /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|iterable|\ApiClients\Tools\OpenApiClient\Utils\Response\WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ + /** @return |Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|Observable|Observable|Observable|Observable|Observable */ public function call(string $call, array $params, array $pathChunks): ActionsCacheUsageOrgEnterprise|Ok|SelectedActions|ActionsGetDefaultWorkflowPermissions|RunnerGroupsEnterprise|iterable|Runner|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeatsForEnterprise\Response\ApplicationJson\Ok|ActionsBillingUsage|AdvancedSecurityActiveCommitters|GetAllCostCenters|PackagesBillingUsage|CombinedBillingUsage|BillingUsageReport|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\GetActionsCacheUsageByRepoForOrg\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelectedRepositoriesEnabledGithubActionsOrganization\Response\ApplicationJson\Ok|RunnerGroupsOrg|ActionsPublicKey|OrganizationActionsSecret|OrganizationActionsVariable|WithoutBody|CodeSecurityConfiguration|CodespacesPublicKey|CodespacesOrgSecret|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok|DependabotPublicKey|OrganizationDependabotSecret|WebhookConfig|Json|CopilotSeatDetails|Package|CustomProperty|RuleSuite|ExternalGroups|ProjectCollaboratorPermission|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListArtifactsForRepo\Response\ApplicationJson\Ok|ActionsCacheList|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationSecrets\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoOrganizationVariables\Response\ApplicationJson\Ok|ActionsRepositoryPermissions|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListSelfHostedRunnersForRepo\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListWorkflowRunsForRepo\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoSecrets\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoVariables\Response\ApplicationJson\Ok\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Actions\ListRepoWorkflows\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\ListAttestations\Response\ApplicationJson\Ok\Application\Json|Autolink|BranchWithProtection|BasicError|CheckRun|CheckSuite|CodeScanningDefaultSetup|CodeownersErrors|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListDevcontainersInRepositoryForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\RepoMachinesForAuthenticatedUser\Response\ApplicationJson\Ok|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\PreFlightWithRepoForAuthenticatedUser\Response\ApplicationJson\Ok|CodespacesPermissionsCheckForDevcontainer|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepoSecrets\Response\ApplicationJson\Ok|CommitComment|Commit|CommunityProfile|CommitComparison|ContentDirectory|ContentFile|ContentSymlink|ContentSubmodule|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Dependabot\ListRepoSecrets\Response\ApplicationJson\Ok|DependencyGraphSpdxSbom|Deployment|Environment|Hook|Issue|DeployKey|Label|Milestone|PagesHealthCheck|EmptyObject|PullRequest|Release|RepositoryRuleset|RepositoryAdvisory|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCodeFrequencyStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetCommitActivityStats\Response\ApplicationJson\Accepted\Application\Json|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Repos\GetContributorsStats\Response\ApplicationJson\Accepted\Application\Json|ParticipationStats|CloneTraffic|ViewTraffic|ScimEnterpriseGroupList|ScimEnterpriseUserList|ScimUserList|TeamRepository|\ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Codespaces\ListRepositoriesForSecretForAuthenticatedUser\Response\ApplicationJson\Ok\Application\Json|CodespaceExportDetails { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/CodeScanning.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/CodeScanning.php index 3a3f5edcf22..3480db11e2a 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/CodeScanning.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/CodeScanning.php @@ -177,7 +177,7 @@ public function listAlertsForOrgListing(array $params): iterable } while (count($items) > 0); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepoListing(array $params): iterable|WithoutBody { $arguments = []; diff --git a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php index e057c618b5d..c6e21800e2d 100644 --- a/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php +++ b/clients/GitHubEnterpriseCloud/src/Internal/Router/List/Six.php @@ -15,7 +15,7 @@ public function __construct(private Routers $routers) { } - /** @return Observable|Observable|Observable|Observable|WithoutBody|Observable|Observable|Observable|Observable|Observable|iterable|WithoutBody|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable|Observable */ + /** @return Observable|Observable|Observable|Observable|WithoutBody|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|WithoutBody { if ($pathChunks[0] === '') { diff --git a/clients/GitHubEnterpriseCloud/src/Operation/CodeScanning.php b/clients/GitHubEnterpriseCloud/src/Operation/CodeScanning.php index e9663501ebe..5bc06297420 100644 --- a/clients/GitHubEnterpriseCloud/src/Operation/CodeScanning.php +++ b/clients/GitHubEnterpriseCloud/src/Operation/CodeScanning.php @@ -49,13 +49,13 @@ public function listAlertsForOrgListing(string $org, string $toolName, string|nu return $this->operators->codeScanning👷ListAlertsForOrgListing()->call($org, $toolName, $toolGuid, $before, $after, $state, $severity, $page, $perPage, $direction, $sort); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepo(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $before, string $after, string $state, string $severity, int $page, int $perPage, string $direction, string $sort): iterable|WithoutBody { return $this->operators->codeScanning👷ListAlertsForRepo()->call($owner, $repo, $toolName, $toolGuid, $ref, $pr, $before, $after, $state, $severity, $page, $perPage, $direction, $sort); } - /** @return iterable|WithoutBody */ + /** @return Observable|WithoutBody */ public function listAlertsForRepoListing(string $owner, string $repo, string $toolName, string|null $toolGuid, string $ref, int $pr, string $before, string $after, string $state, string $severity, int $page, int $perPage, string $direction, string $sort): iterable|WithoutBody { return $this->operators->codeScanning👷ListAlertsForRepoListing()->call($owner, $repo, $toolName, $toolGuid, $ref, $pr, $before, $after, $state, $severity, $page, $perPage, $direction, $sort); diff --git a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php index aaed11b65ac..8c7506efb4e 100644 --- a/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php +++ b/clients/GitHubEnterpriseCloud/src/PHPStan/ClientCallReturnTypes.php @@ -2616,11 +2616,11 @@ public function getTypeFromMethodCall(MethodReflection $methodReflection, Method } if ($call === 'GET /repos/{owner}/{repo}/code-scanning/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'LIST /repos/{owner}/{repo}/code-scanning/alerts') { - return $this->typeResolver->resolve('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody'); + return $this->typeResolver->resolve('Observable|WithoutBody'); } if ($call === 'GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}') { diff --git a/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet7A837FDB/TietF2BB5E1A/Tiet2E9260AD/TietA6008A25.php b/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet08EF8947/Tiet136B9CCF/Tiet8D61F6BF/Tiet7B7DC09C.php similarity index 99% rename from clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet7A837FDB/TietF2BB5E1A/Tiet2E9260AD/TietA6008A25.php rename to clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet08EF8947/Tiet136B9CCF/Tiet8D61F6BF/Tiet7B7DC09C.php index 2e410c3c651..51b684d83eb 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet7A837FDB/TietF2BB5E1A/Tiet2E9260AD/TietA6008A25.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet08EF8947/Tiet136B9CCF/Tiet8D61F6BF/Tiet7B7DC09C.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\AliasAbstract\Tiet7A837FDB\TietF2BB5E1A\Tiet2E9260AD; +namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\AliasAbstract\Tiet08EF8947\Tiet136B9CCF\Tiet8D61F6BF; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class TietA6008A25 +abstract readonly class Tiet7B7DC09C { public const SCHEMA_JSON = '{ "required": [ @@ -1219,6 +1219,18 @@ } } }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "enum": [ + "enabled", + "disabled" + ], + "type": "string" + } + } + }, "secret_scanning_validity_checks": { "type": "object", "properties": { @@ -1765,6 +1777,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } @@ -2012,6 +2027,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet84990AD5/Tiet4DC2FD40/TietC1C8F365/Tiet342E1A6B.php b/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet1D194FB1/Tiet1FB5695E/Tiet0456C85C/Tiet7BDB2A1B.php similarity index 99% rename from clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet84990AD5/Tiet4DC2FD40/TietC1C8F365/Tiet342E1A6B.php rename to clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet1D194FB1/Tiet1FB5695E/Tiet0456C85C/Tiet7BDB2A1B.php index ec47db94bb6..18a5bcb9fe5 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet84990AD5/Tiet4DC2FD40/TietC1C8F365/Tiet342E1A6B.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet1D194FB1/Tiet1FB5695E/Tiet0456C85C/Tiet7BDB2A1B.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\AliasAbstract\Tiet84990AD5\Tiet4DC2FD40\TietC1C8F365; +namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\AliasAbstract\Tiet1D194FB1\Tiet1FB5695E\Tiet0456C85C; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class Tiet342E1A6B +abstract readonly class Tiet7BDB2A1B { public const SCHEMA_JSON = '{ "required": [ @@ -1611,6 +1611,18 @@ } } }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "enum": [ + "enabled", + "disabled" + ], + "type": "string" + } + } + }, "secret_scanning_validity_checks": { "type": "object", "properties": { @@ -2441,6 +2453,18 @@ } } }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "enum": [ + "enabled", + "disabled" + ], + "type": "string" + } + } + }, "secret_scanning_validity_checks": { "type": "object", "properties": { @@ -2718,6 +2742,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } @@ -2869,6 +2896,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } @@ -3113,6 +3143,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } @@ -3264,6 +3297,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/TietD2703E82/TietE0AE8597/TietBBC837FB/Tiet5F1383AC.php b/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet3616AE3A/Tiet9DCBC44E/TietBDF148C6/TietC7A1312F.php similarity index 98% rename from clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/TietD2703E82/TietE0AE8597/TietBBC837FB/Tiet5F1383AC.php rename to clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet3616AE3A/Tiet9DCBC44E/TietBDF148C6/TietC7A1312F.php index 2d7f01a6911..81064bec839 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/TietD2703E82/TietE0AE8597/TietBBC837FB/Tiet5F1383AC.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/AliasAbstract/Tiet3616AE3A/Tiet9DCBC44E/TietBDF148C6/TietC7A1312F.php @@ -2,11 +2,11 @@ declare(strict_types=1); -namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\AliasAbstract\TietD2703E82\TietE0AE8597\TietBBC837FB; +namespace ApiClients\Client\GitHubEnterpriseCloud\Schema\AliasAbstract\Tiet3616AE3A\Tiet9DCBC44E\TietBDF148C6; use EventSauce\ObjectHydrator\MapFrom; -abstract readonly class Tiet5F1383AC +abstract readonly class TietC7A1312F { public const SCHEMA_JSON = '{ "required": [ @@ -833,6 +833,18 @@ } } }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "enum": [ + "enabled", + "disabled" + ], + "type": "string" + } + } + }, "secret_scanning_validity_checks": { "type": "object", "properties": { @@ -1004,6 +1016,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } @@ -1155,6 +1170,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/CheckRunWithSimpleCheckSuite.php b/clients/GitHubEnterpriseCloud/src/Schema/CheckRunWithSimpleCheckSuite.php index 98fb157023b..3b56303323c 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/CheckRunWithSimpleCheckSuite.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/CheckRunWithSimpleCheckSuite.php @@ -1681,6 +1681,18 @@ } } }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "enum": [ + "enabled", + "disabled" + ], + "type": "string" + } + } + }, "secret_scanning_validity_checks": { "type": "object", "properties": { @@ -2718,6 +2730,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/CheckSuite.php b/clients/GitHubEnterpriseCloud/src/Schema/CheckSuite.php index 5613b6bd0b6..66f73eb91cc 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/CheckSuite.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/CheckSuite.php @@ -1377,6 +1377,18 @@ } } }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "enum": [ + "enabled", + "disabled" + ], + "type": "string" + } + } + }, "secret_scanning_validity_checks": { "type": "object", "properties": { @@ -1729,6 +1741,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/CheckSuitePreference.php b/clients/GitHubEnterpriseCloud/src/Schema/CheckSuitePreference.php index 58963af24ee..bb23d67da68 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/CheckSuitePreference.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/CheckSuitePreference.php @@ -852,6 +852,18 @@ } } }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "enum": [ + "enabled", + "disabled" + ], + "type": "string" + } + } + }, "secret_scanning_validity_checks": { "type": "object", "properties": { @@ -1033,6 +1045,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/CodeSearchResultItem.php b/clients/GitHubEnterpriseCloud/src/Schema/CodeSearchResultItem.php index 31a20a804c7..af4861bad33 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/CodeSearchResultItem.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/CodeSearchResultItem.php @@ -857,6 +857,18 @@ } } }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "enum": [ + "enabled", + "disabled" + ], + "type": "string" + } + } + }, "secret_scanning_validity_checks": { "type": "object", "properties": { @@ -1099,6 +1111,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Codespace.php b/clients/GitHubEnterpriseCloud/src/Schema/Codespace.php index 9c777cb5f5b..a621691d874 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Codespace.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Codespace.php @@ -1208,6 +1208,18 @@ } } }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "enum": [ + "enabled", + "disabled" + ], + "type": "string" + } + } + }, "secret_scanning_validity_checks": { "type": "object", "properties": { @@ -1748,6 +1760,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/CodespaceWithFullRepository.php b/clients/GitHubEnterpriseCloud/src/Schema/CodespaceWithFullRepository.php index 1bda849c897..80e6e029233 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/CodespaceWithFullRepository.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/CodespaceWithFullRepository.php @@ -4396,6 +4396,18 @@ } } }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "enum": [ + "enabled", + "disabled" + ], + "type": "string" + } + } + }, "secret_scanning_validity_checks": { "type": "object", "properties": { @@ -5370,6 +5382,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/CombinedCommitStatus.php b/clients/GitHubEnterpriseCloud/src/Schema/CombinedCommitStatus.php index 0b6585019ef..9c1abee9bd9 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/CombinedCommitStatus.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/CombinedCommitStatus.php @@ -915,6 +915,18 @@ } } }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "enum": [ + "enabled", + "disabled" + ], + "type": "string" + } + } + }, "secret_scanning_validity_checks": { "type": "object", "properties": { @@ -1123,6 +1135,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/CommitSearchResultItem.php b/clients/GitHubEnterpriseCloud/src/Schema/CommitSearchResultItem.php index 309422a4451..5ea5bdcbe01 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/CommitSearchResultItem.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/CommitSearchResultItem.php @@ -1193,6 +1193,18 @@ } } }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "enum": [ + "enabled", + "disabled" + ], + "type": "string" + } + } + }, "secret_scanning_validity_checks": { "type": "object", "properties": { @@ -1478,6 +1490,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/FullRepository.php b/clients/GitHubEnterpriseCloud/src/Schema/FullRepository.php index 4c44457d94e..7af930ab635 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/FullRepository.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/FullRepository.php @@ -4010,6 +4010,18 @@ } } }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "enum": [ + "enabled", + "disabled" + ], + "type": "string" + } + } + }, "secret_scanning_validity_checks": { "type": "object", "properties": { @@ -4619,6 +4631,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/MinimalRepository.php b/clients/GitHubEnterpriseCloud/src/Schema/MinimalRepository.php index fc830cc0da7..c8b35a14a41 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/MinimalRepository.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/MinimalRepository.php @@ -822,6 +822,18 @@ } } }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "enum": [ + "enabled", + "disabled" + ], + "type": "string" + } + } + }, "secret_scanning_validity_checks": { "type": "object", "properties": { @@ -987,6 +999,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrg/Response/ApplicationJson/Ok.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrg/Response/ApplicationJson/Ok.php index 22832feb072..1382695685e 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrg/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListRepoAccessToSelfHostedRunnerGroupInOrg/Response/ApplicationJson/Ok.php @@ -833,6 +833,18 @@ } } }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "enum": [ + "enabled", + "disabled" + ], + "type": "string" + } + } + }, "secret_scanning_validity_checks": { "type": "object", "properties": { @@ -1004,6 +1016,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } @@ -1155,6 +1170,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListSelectedReposForOrgSecret/Response/ApplicationJson/Ok.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListSelectedReposForOrgSecret/Response/ApplicationJson/Ok.php index 060d8856756..7a89e0aa325 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListSelectedReposForOrgSecret/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListSelectedReposForOrgSecret/Response/ApplicationJson/Ok.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Ok extends Schema\AliasAbstract\TietD2703E82\TietE0AE8597\TietBBC837FB\Tiet5F1383AC +final readonly class Ok extends Schema\AliasAbstract\Tiet3616AE3A\Tiet9DCBC44E\TietBDF148C6\TietC7A1312F { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListSelectedReposForOrgVariable/Response/ApplicationJson/Ok.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListSelectedReposForOrgVariable/Response/ApplicationJson/Ok.php index 14ecf9951cf..868231c9669 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListSelectedReposForOrgVariable/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListSelectedReposForOrgVariable/Response/ApplicationJson/Ok.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Ok extends Schema\AliasAbstract\TietD2703E82\TietE0AE8597\TietBBC837FB\Tiet5F1383AC +final readonly class Ok extends Schema\AliasAbstract\Tiet3616AE3A\Tiet9DCBC44E\TietBDF148C6\TietC7A1312F { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListSelectedReposForOrgVariable/Response/ApplicationJson/Ok/Application/Json.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListSelectedReposForOrgVariable/Response/ApplicationJson/Ok/Application/Json.php index 9de0f8fc12d..7037e974217 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListSelectedReposForOrgVariable/Response/ApplicationJson/Ok/Application/Json.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListSelectedReposForOrgVariable/Response/ApplicationJson/Ok/Application/Json.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Json extends Schema\AliasAbstract\TietD2703E82\TietE0AE8597\TietBBC837FB\Tiet5F1383AC +final readonly class Json extends Schema\AliasAbstract\Tiet3616AE3A\Tiet9DCBC44E\TietBDF148C6\TietC7A1312F { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRuns/Response/ApplicationJson/Ok.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRuns/Response/ApplicationJson/Ok.php index 20f7963132e..7df69e73136 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRuns/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRuns/Response/ApplicationJson/Ok.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Ok extends Schema\AliasAbstract\Tiet84990AD5\Tiet4DC2FD40\TietC1C8F365\Tiet342E1A6B +final readonly class Ok extends Schema\AliasAbstract\Tiet1D194FB1\Tiet1FB5695E\Tiet0456C85C\Tiet7BDB2A1B { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRuns/Response/ApplicationJson/Ok/Application/Json.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRuns/Response/ApplicationJson/Ok/Application/Json.php index 190750d3590..3fb8cd4f3bd 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRuns/Response/ApplicationJson/Ok/Application/Json.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRuns/Response/ApplicationJson/Ok/Application/Json.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Json extends Schema\AliasAbstract\Tiet84990AD5\Tiet4DC2FD40\TietC1C8F365\Tiet342E1A6B +final readonly class Json extends Schema\AliasAbstract\Tiet1D194FB1\Tiet1FB5695E\Tiet0456C85C\Tiet7BDB2A1B { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRunsForRepo/Response/ApplicationJson/Ok.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRunsForRepo/Response/ApplicationJson/Ok.php index 82d2f22be18..b3edd5e9667 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRunsForRepo/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Actions/ListWorkflowRunsForRepo/Response/ApplicationJson/Ok.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Ok extends Schema\AliasAbstract\Tiet84990AD5\Tiet4DC2FD40\TietC1C8F365\Tiet342E1A6B +final readonly class Ok extends Schema\AliasAbstract\Tiet1D194FB1\Tiet1FB5695E\Tiet0456C85C\Tiet7BDB2A1B { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Checks/ListSuitesForRef/Response/ApplicationJson/Ok.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Checks/ListSuitesForRef/Response/ApplicationJson/Ok.php index 17a3ad0204d..0f21711fd34 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Checks/ListSuitesForRef/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Checks/ListSuitesForRef/Response/ApplicationJson/Ok.php @@ -1388,6 +1388,18 @@ } } }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "enum": [ + "enabled", + "disabled" + ], + "type": "string" + } + } + }, "secret_scanning_validity_checks": { "type": "object", "properties": { @@ -1746,6 +1758,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } @@ -1979,6 +1994,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/GetCodespacesForUserInOrg/Response/ApplicationJson/Ok.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/GetCodespacesForUserInOrg/Response/ApplicationJson/Ok.php index 06030051563..2dc18111b3d 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/GetCodespacesForUserInOrg/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/GetCodespacesForUserInOrg/Response/ApplicationJson/Ok.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Ok extends Schema\AliasAbstract\Tiet7A837FDB\TietF2BB5E1A\Tiet2E9260AD\TietA6008A25 +final readonly class Ok extends Schema\AliasAbstract\Tiet08EF8947\Tiet136B9CCF\Tiet8D61F6BF\Tiet7B7DC09C { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/GetCodespacesForUserInOrg/Response/ApplicationJson/Ok/Application/Json.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/GetCodespacesForUserInOrg/Response/ApplicationJson/Ok/Application/Json.php index 43ee273dee8..0e2e80894d3 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/GetCodespacesForUserInOrg/Response/ApplicationJson/Ok/Application/Json.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/GetCodespacesForUserInOrg/Response/ApplicationJson/Ok/Application/Json.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Json extends Schema\AliasAbstract\Tiet7A837FDB\TietF2BB5E1A\Tiet2E9260AD\TietA6008A25 +final readonly class Json extends Schema\AliasAbstract\Tiet08EF8947\Tiet136B9CCF\Tiet8D61F6BF\Tiet7B7DC09C { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListForAuthenticatedUser/Response/ApplicationJson/Ok.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListForAuthenticatedUser/Response/ApplicationJson/Ok.php index 0bd1cfacda9..095696e9f6c 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListForAuthenticatedUser/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListForAuthenticatedUser/Response/ApplicationJson/Ok.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Ok extends Schema\AliasAbstract\Tiet7A837FDB\TietF2BB5E1A\Tiet2E9260AD\TietA6008A25 +final readonly class Ok extends Schema\AliasAbstract\Tiet08EF8947\Tiet136B9CCF\Tiet8D61F6BF\Tiet7B7DC09C { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListForAuthenticatedUser/Response/ApplicationJson/Ok/Application/Json.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListForAuthenticatedUser/Response/ApplicationJson/Ok/Application/Json.php index 809edc04207..08c3b7ca59d 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListForAuthenticatedUser/Response/ApplicationJson/Ok/Application/Json.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListForAuthenticatedUser/Response/ApplicationJson/Ok/Application/Json.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Json extends Schema\AliasAbstract\Tiet7A837FDB\TietF2BB5E1A\Tiet2E9260AD\TietA6008A25 +final readonly class Json extends Schema\AliasAbstract\Tiet08EF8947\Tiet136B9CCF\Tiet8D61F6BF\Tiet7B7DC09C { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListInOrganization/Response/ApplicationJson/Ok.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListInOrganization/Response/ApplicationJson/Ok.php index 90ae7870562..9641643b673 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListInOrganization/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListInOrganization/Response/ApplicationJson/Ok.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Ok extends Schema\AliasAbstract\Tiet7A837FDB\TietF2BB5E1A\Tiet2E9260AD\TietA6008A25 +final readonly class Ok extends Schema\AliasAbstract\Tiet08EF8947\Tiet136B9CCF\Tiet8D61F6BF\Tiet7B7DC09C { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListInRepositoryForAuthenticatedUser/Response/ApplicationJson/Ok.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListInRepositoryForAuthenticatedUser/Response/ApplicationJson/Ok.php index 11520211e8f..7564e1d7128 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListInRepositoryForAuthenticatedUser/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListInRepositoryForAuthenticatedUser/Response/ApplicationJson/Ok.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Ok extends Schema\AliasAbstract\Tiet7A837FDB\TietF2BB5E1A\Tiet2E9260AD\TietA6008A25 +final readonly class Ok extends Schema\AliasAbstract\Tiet08EF8947\Tiet136B9CCF\Tiet8D61F6BF\Tiet7B7DC09C { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListInRepositoryForAuthenticatedUser/Response/ApplicationJson/Ok/Application/Json.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListInRepositoryForAuthenticatedUser/Response/ApplicationJson/Ok/Application/Json.php index a099d1024e6..078ba2df0c5 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListInRepositoryForAuthenticatedUser/Response/ApplicationJson/Ok/Application/Json.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListInRepositoryForAuthenticatedUser/Response/ApplicationJson/Ok/Application/Json.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Json extends Schema\AliasAbstract\Tiet7A837FDB\TietF2BB5E1A\Tiet2E9260AD\TietA6008A25 +final readonly class Json extends Schema\AliasAbstract\Tiet08EF8947\Tiet136B9CCF\Tiet8D61F6BF\Tiet7B7DC09C { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListRepositoriesForSecretForAuthenticatedUser/Response/ApplicationJson/Ok.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListRepositoriesForSecretForAuthenticatedUser/Response/ApplicationJson/Ok.php index 180230a7cf1..d9b65aae742 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListRepositoriesForSecretForAuthenticatedUser/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListRepositoriesForSecretForAuthenticatedUser/Response/ApplicationJson/Ok.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Ok extends Schema\AliasAbstract\TietD2703E82\TietE0AE8597\TietBBC837FB\Tiet5F1383AC +final readonly class Ok extends Schema\AliasAbstract\Tiet3616AE3A\Tiet9DCBC44E\TietBDF148C6\TietC7A1312F { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListRepositoriesForSecretForAuthenticatedUser/Response/ApplicationJson/Ok/Application/Json.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListRepositoriesForSecretForAuthenticatedUser/Response/ApplicationJson/Ok/Application/Json.php index d432c9becab..d5beec1f6d4 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListRepositoriesForSecretForAuthenticatedUser/Response/ApplicationJson/Ok/Application/Json.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListRepositoriesForSecretForAuthenticatedUser/Response/ApplicationJson/Ok/Application/Json.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Json extends Schema\AliasAbstract\TietD2703E82\TietE0AE8597\TietBBC837FB\Tiet5F1383AC +final readonly class Json extends Schema\AliasAbstract\Tiet3616AE3A\Tiet9DCBC44E\TietBDF148C6\TietC7A1312F { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListSelectedReposForOrgSecret/Response/ApplicationJson/Ok.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListSelectedReposForOrgSecret/Response/ApplicationJson/Ok.php index f7e7602dd82..09d90590e6e 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListSelectedReposForOrgSecret/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListSelectedReposForOrgSecret/Response/ApplicationJson/Ok.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Ok extends Schema\AliasAbstract\TietD2703E82\TietE0AE8597\TietBBC837FB\Tiet5F1383AC +final readonly class Ok extends Schema\AliasAbstract\Tiet3616AE3A\Tiet9DCBC44E\TietBDF148C6\TietC7A1312F { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListSelectedReposForOrgSecret/Response/ApplicationJson/Ok/Application/Json.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListSelectedReposForOrgSecret/Response/ApplicationJson/Ok/Application/Json.php index 2763c4604c5..68983b88c3a 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListSelectedReposForOrgSecret/Response/ApplicationJson/Ok/Application/Json.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Codespaces/ListSelectedReposForOrgSecret/Response/ApplicationJson/Ok/Application/Json.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Json extends Schema\AliasAbstract\TietD2703E82\TietE0AE8597\TietBBC837FB\Tiet5F1383AC +final readonly class Json extends Schema\AliasAbstract\Tiet3616AE3A\Tiet9DCBC44E\TietBDF148C6\TietC7A1312F { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Dependabot/ListSelectedReposForOrgSecret/Response/ApplicationJson/Ok.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Dependabot/ListSelectedReposForOrgSecret/Response/ApplicationJson/Ok.php index 8bc3bd8db4a..d194ec433c6 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Dependabot/ListSelectedReposForOrgSecret/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Dependabot/ListSelectedReposForOrgSecret/Response/ApplicationJson/Ok.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Ok extends Schema\AliasAbstract\TietD2703E82\TietE0AE8597\TietBBC837FB\Tiet5F1383AC +final readonly class Ok extends Schema\AliasAbstract\Tiet3616AE3A\Tiet9DCBC44E\TietBDF148C6\TietC7A1312F { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Dependabot/ListSelectedReposForOrgSecret/Response/ApplicationJson/Ok/Application/Json.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Dependabot/ListSelectedReposForOrgSecret/Response/ApplicationJson/Ok/Application/Json.php index 9e231c0c31e..454ab9bf14b 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Dependabot/ListSelectedReposForOrgSecret/Response/ApplicationJson/Ok/Application/Json.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Dependabot/ListSelectedReposForOrgSecret/Response/ApplicationJson/Ok/Application/Json.php @@ -6,6 +6,6 @@ use ApiClients\Client\GitHubEnterpriseCloud\Schema; -final readonly class Json extends Schema\AliasAbstract\TietD2703E82\TietE0AE8597\TietBBC837FB\Tiet5F1383AC +final readonly class Json extends Schema\AliasAbstract\Tiet3616AE3A\Tiet9DCBC44E\TietBDF148C6\TietC7A1312F { } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Search/Code/Response/ApplicationJson/Ok.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Search/Code/Response/ApplicationJson/Ok.php index 7548105699e..86109d47f62 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Search/Code/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Search/Code/Response/ApplicationJson/Ok.php @@ -872,6 +872,18 @@ } } }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "enum": [ + "enabled", + "disabled" + ], + "type": "string" + } + } + }, "secret_scanning_validity_checks": { "type": "object", "properties": { @@ -1121,6 +1133,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } @@ -1334,6 +1349,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Search/Commits/Response/ApplicationJson/Ok.php b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Search/Commits/Response/ApplicationJson/Ok.php index 12d87814c74..309f4344c9a 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Operations/Search/Commits/Response/ApplicationJson/Ok.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Operations/Search/Commits/Response/ApplicationJson/Ok.php @@ -1208,6 +1208,18 @@ } } }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "enum": [ + "enabled", + "disabled" + ], + "type": "string" + } + } + }, "secret_scanning_validity_checks": { "type": "object", "properties": { @@ -1500,6 +1512,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } @@ -1770,6 +1785,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Package.php b/clients/GitHubEnterpriseCloud/src/Schema/Package.php index 4a5cc8a5940..fe870b30fe3 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Package.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Package.php @@ -1068,6 +1068,18 @@ } } }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "enum": [ + "enabled", + "disabled" + ], + "type": "string" + } + } + }, "secret_scanning_validity_checks": { "type": "object", "properties": { @@ -1277,6 +1289,9 @@ "secret_scanning_non_provider_patterns": { "status": "disabled" }, + "secret_scanning_ai_detection": { + "status": "disabled" + }, "secret_scanning_validity_checks": { "status": "disabled" } diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Repos/Update/Request/ApplicationJson.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/Update/Request/ApplicationJson.php index e09f8712d5d..ebcc0da1c3b 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/Update/Request/ApplicationJson.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/Update/Request/ApplicationJson.php @@ -74,6 +74,16 @@ }, "description": "Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see \\"[Protecting pushes with secret scanning](\\/code-security\\/secret-scanning\\/protecting-pushes-with-secret-scanning).\\"" }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "Can be `enabled` or `disabled`." + } + }, + "description": "Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see \\"[Responsible detection of generic secrets with AI](https:\\/\\/docs.github.com\\/enterprise-cloud@latest\\/\\/code-security\\/secret-scanning\\/using-advanced-secret-scanning-and-push-protection-features\\/generic-secret-detection\\/responsible-ai-generic-secrets).\\"" + }, "secret_scanning_non_provider_patterns": { "type": "object", "properties": { @@ -226,6 +236,9 @@ "secret_scanning_push_protection": { "status": "generated" }, + "secret_scanning_ai_detection": { + "status": "generated" + }, "secret_scanning_non_provider_patterns": { "status": "generated" }, diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Repos/Update/Request/ApplicationJson/SecurityAndAnalysis.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/Update/Request/ApplicationJson/SecurityAndAnalysis.php index 6cc0dd6f5b6..537b18bd85c 100644 --- a/clients/GitHubEnterpriseCloud/src/Schema/Repos/Update/Request/ApplicationJson/SecurityAndAnalysis.php +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/Update/Request/ApplicationJson/SecurityAndAnalysis.php @@ -45,6 +45,16 @@ }, "description": "Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see \\"[Protecting pushes with secret scanning](\\/code-security\\/secret-scanning\\/protecting-pushes-with-secret-scanning).\\"" }, + "secret_scanning_ai_detection": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "Can be `enabled` or `disabled`." + } + }, + "description": "Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see \\"[Responsible detection of generic secrets with AI](https:\\/\\/docs.github.com\\/enterprise-cloud@latest\\/\\/code-security\\/secret-scanning\\/using-advanced-secret-scanning-and-push-protection-features\\/generic-secret-detection\\/responsible-ai-generic-secrets).\\"" + }, "secret_scanning_non_provider_patterns": { "type": "object", "properties": { @@ -87,6 +97,9 @@ "secret_scanning_push_protection": { "status": "generated" }, + "secret_scanning_ai_detection": { + "status": "generated" + }, "secret_scanning_non_provider_patterns": { "status": "generated" }, @@ -99,13 +112,15 @@ * advancedSecurity: Use the `status` property to enable or disable GitHub Advanced Security for this repository. For more information, see "[About GitHub Advanced Security](/github/getting-started-with-github/learning-about-github/about-github-advanced-security)." * secretScanning: Use the `status` property to enable or disable secret scanning for this repository. For more information, see "[About secret scanning](/code-security/secret-security/about-secret-scanning)." * secretScanningPushProtection: Use the `status` property to enable or disable secret scanning push protection for this repository. For more information, see "[Protecting pushes with secret scanning](/code-security/secret-scanning/protecting-pushes-with-secret-scanning)." + * secretScanningAiDetection: Use the `status` property to enable or disable secret scanning AI detection for this repository. For more information, see "[Responsible detection of generic secrets with AI](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)." * secretScanningNonProviderPatterns: Use the `status` property to enable or disable secret scanning non-provider patterns for this repository. For more information, see "[Supported secret scanning patterns](/code-security/secret-scanning/introduction/supported-secret-scanning-patterns#supported-secrets)." * secretScanningValidityChecks: Use the `status` property to enable or disable secret scanning automatic validity checks on supported partner tokens for this repository. */ public function __construct(#[MapFrom('advanced_security')] public Schema\Repos\Update\Request\ApplicationJson\SecurityAndAnalysis\AdvancedSecurity|null $advancedSecurity, #[MapFrom('secret_scanning')] public Schema\Repos\Update\Request\ApplicationJson\SecurityAndAnalysis\SecretScanning|null $secretScanning, #[MapFrom('secret_scanning_push_protection')] - public Schema\Repos\Update\Request\ApplicationJson\SecurityAndAnalysis\SecretScanningPushProtection|null $secretScanningPushProtection, #[MapFrom('secret_scanning_non_provider_patterns')] + public Schema\Repos\Update\Request\ApplicationJson\SecurityAndAnalysis\SecretScanningPushProtection|null $secretScanningPushProtection, #[MapFrom('secret_scanning_ai_detection')] + public Schema\Repos\Update\Request\ApplicationJson\SecurityAndAnalysis\SecretScanningAiDetection|null $secretScanningAiDetection, #[MapFrom('secret_scanning_non_provider_patterns')] public Schema\Repos\Update\Request\ApplicationJson\SecurityAndAnalysis\SecretScanningNonProviderPatterns|null $secretScanningNonProviderPatterns, #[MapFrom('secret_scanning_validity_checks')] public Schema\Repos\Update\Request\ApplicationJson\SecurityAndAnalysis\SecretScanningValidityChecks|null $secretScanningValidityChecks,) { diff --git a/clients/GitHubEnterpriseCloud/src/Schema/Repos/Update/Request/ApplicationJson/SecurityAndAnalysis/SecretScanningAiDetection.php b/clients/GitHubEnterpriseCloud/src/Schema/Repos/Update/Request/ApplicationJson/SecurityAndAnalysis/SecretScanningAiDetection.php new file mode 100644 index 00000000000..11364879993 --- /dev/null +++ b/clients/GitHubEnterpriseCloud/src/Schema/Repos/Update/Request/ApplicationJson/SecurityAndAnalysis/SecretScanningAiDetection.php @@ -0,0 +1,31 @@ +call('GET /repos/{owner}/{repo}/check-suites/{check_suite_id}')); assertType('', $client->call('GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs')); assertType('', $client->call('POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts')); -assertType('iterable|\\ApiClients\\Tools\\OpenApiClient\\Utils\\Response\\WithoutBody', $client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts')); +assertType('Observable|WithoutBody', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts')); +assertType('Observable|WithoutBody', $client->call('LIST /repos/{owner}/{repo}/code-scanning/alerts')); assertType('', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}')); assertType('', $client->call('PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}')); assertType('Observable', $client->call('GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances')); diff --git a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml index 085b4dffb95..7dfac6454d2 100644 --- a/etc/specs/GitHubEnterpriseCloud/current.spec.yaml +++ b/etc/specs/GitHubEnterpriseCloud/current.spec.yaml @@ -6979,7 +6979,7 @@ paths: "$ref": "#/components/examples/runner-groups-org" x-github: enabledForGitHubApps: true - githubCloudOnly: true + githubCloudOnly: false category: actions subcategory: self-hosted-runner-groups post: @@ -7072,7 +7072,7 @@ paths: "$ref": "#/components/examples/runner-group" x-github: enabledForGitHubApps: true - githubCloudOnly: true + githubCloudOnly: false category: actions subcategory: self-hosted-runner-groups "/orgs/{org}/actions/runner-groups/{runner_group_id}": @@ -7103,7 +7103,7 @@ paths: "$ref": "#/components/examples/runner-group-item" x-github: enabledForGitHubApps: true - githubCloudOnly: true + githubCloudOnly: false category: actions subcategory: self-hosted-runner-groups patch: @@ -7178,7 +7178,7 @@ paths: "$ref": "#/components/examples/runner-group" x-github: enabledForGitHubApps: true - githubCloudOnly: true + githubCloudOnly: false category: actions subcategory: self-hosted-runner-groups delete: @@ -7201,7 +7201,7 @@ paths: description: Response x-github: enabledForGitHubApps: true - githubCloudOnly: true + githubCloudOnly: false category: actions subcategory: self-hosted-runner-groups "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories": @@ -7244,7 +7244,7 @@ paths: "$ref": "#/components/examples/minimal-repository-paginated" x-github: enabledForGitHubApps: true - githubCloudOnly: true + githubCloudOnly: false category: actions subcategory: self-hosted-runner-groups put: @@ -7288,7 +7288,7 @@ paths: description: Response x-github: enabledForGitHubApps: true - githubCloudOnly: true + githubCloudOnly: false category: actions subcategory: self-hosted-runner-groups "/orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}": @@ -7313,7 +7313,7 @@ paths: description: Response x-github: enabledForGitHubApps: true - githubCloudOnly: true + githubCloudOnly: false category: actions subcategory: self-hosted-runner-groups delete: @@ -7337,7 +7337,7 @@ paths: description: Response x-github: enabledForGitHubApps: true - githubCloudOnly: true + githubCloudOnly: false category: actions subcategory: self-hosted-runner-groups "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners": @@ -7383,7 +7383,7 @@ paths: "$ref": "#/components/headers/link" x-github: enabledForGitHubApps: true - githubCloudOnly: true + githubCloudOnly: false category: actions subcategory: self-hosted-runner-groups put: @@ -7427,7 +7427,7 @@ paths: description: Response x-github: enabledForGitHubApps: true - githubCloudOnly: true + githubCloudOnly: false category: actions subcategory: self-hosted-runner-groups "/orgs/{org}/actions/runner-groups/{runner_group_id}/runners/{runner_id}": @@ -7452,7 +7452,7 @@ paths: description: Response x-github: enabledForGitHubApps: true - githubCloudOnly: true + githubCloudOnly: false category: actions subcategory: self-hosted-runner-groups delete: @@ -7476,7 +7476,7 @@ paths: description: Response x-github: enabledForGitHubApps: true - githubCloudOnly: true + githubCloudOnly: false category: actions subcategory: self-hosted-runner-groups "/orgs/{org}/actions/runners": @@ -20280,6 +20280,16 @@ paths: status: type: string description: Can be `enabled` or `disabled`. + secret_scanning_ai_detection: + type: object + description: Use the `status` property to enable or disable + secret scanning AI detection for this repository. For more + information, see "[Responsible detection of generic secrets + with AI](https://docs.github.com/enterprise-cloud@latest//code-security/secret-scanning/using-advanced-secret-scanning-and-push-protection-features/generic-secret-detection/responsible-ai-generic-secrets)." + properties: + status: + type: string + description: Can be `enabled` or `disabled`. secret_scanning_non_provider_patterns: type: object description: Use the `status` property to enable or disable @@ -77650,6 +77660,14 @@ components: enum: - enabled - disabled + secret_scanning_ai_detection: + type: object + properties: + status: + type: string + enum: + - enabled + - disabled secret_scanning_validity_checks: type: object properties: