@@ -49,7 +49,7 @@ public function createRequest(): RequestInterface
4949 return new Request ('GET ' , str_replace (['{owner} ' , '{repo} ' , '{branch} ' , '{per_page} ' , '{page} ' ], [$ this ->owner , $ this ->repo , $ this ->branch , $ this ->perPage , $ this ->page ], '/repos/{owner}/{repo}/rules/branches/{branch} ' . '?per_page={per_page}&page={page} ' ));
5050 }
5151
52- /** @return Observable<Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleMergeQueue|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning> */
52+ /** @return Observable<Schema\RepositoryRuleCreation|Schema\RepositoryRuleUpdate|Schema\RepositoryRuleDeletion|Schema\RepositoryRuleRequiredLinearHistory|Schema\RepositoryRuleMergeQueue|Schema\RepositoryRuleRequiredDeployments|Schema\RepositoryRuleRequiredSignatures|Schema\RepositoryRulePullRequest|Schema\RepositoryRuleRequiredStatusChecks|Schema\RepositoryRuleNonFastForward|Schema\RepositoryRuleCommitMessagePattern|Schema\RepositoryRuleCommitAuthorEmailPattern|Schema\RepositoryRuleCommitterEmailPattern|Schema\RepositoryRuleBranchNamePattern|Schema\RepositoryRuleTagNamePattern|Schema\RepositoryRuleFilePathRestriction|Schema\RepositoryRuleMaxFilePathLength|Schema\RepositoryRuleFileExtensionRestriction|Schema\RepositoryRuleMaxFileSize|Schema\ RepositoryRuleWorkflows|Schema\RepositoryRuleCodeScanning> */
5353 public function createResponse (ResponseInterface $ response ): Observable
5454 {
5555 $ code = $ response ->getStatusCode ();
@@ -62,7 +62,7 @@ public function createResponse(ResponseInterface $response): Observable
6262 * Response
6363 **/
6464 case 200 :
65- return Observable::fromArray ($ body , new ImmediateScheduler ())->map (function (array $ body ): Schema \RepositoryRuleCreation |Schema \RepositoryRuleUpdate |Schema \RepositoryRuleDeletion |Schema \RepositoryRuleRequiredLinearHistory |Schema \RepositoryRuleMergeQueue |Schema \RepositoryRuleRequiredDeployments |Schema \RepositoryRuleRequiredSignatures |Schema \RepositoryRulePullRequest |Schema \RepositoryRuleRequiredStatusChecks |Schema \RepositoryRuleNonFastForward |Schema \RepositoryRuleCommitMessagePattern |Schema \RepositoryRuleCommitAuthorEmailPattern |Schema \RepositoryRuleCommitterEmailPattern |Schema \RepositoryRuleBranchNamePattern |Schema \RepositoryRuleTagNamePattern |Schema \RepositoryRuleWorkflows |Schema \RepositoryRuleCodeScanning {
65+ return Observable::fromArray ($ body , new ImmediateScheduler ())->map (function (array $ body ): Schema \RepositoryRuleCreation |Schema \RepositoryRuleUpdate |Schema \RepositoryRuleDeletion |Schema \RepositoryRuleRequiredLinearHistory |Schema \RepositoryRuleMergeQueue |Schema \RepositoryRuleRequiredDeployments |Schema \RepositoryRuleRequiredSignatures |Schema \RepositoryRulePullRequest |Schema \RepositoryRuleRequiredStatusChecks |Schema \RepositoryRuleNonFastForward |Schema \RepositoryRuleCommitMessagePattern |Schema \RepositoryRuleCommitAuthorEmailPattern |Schema \RepositoryRuleCommitterEmailPattern |Schema \RepositoryRuleBranchNamePattern |Schema \RepositoryRuleTagNamePattern |Schema \RepositoryRuleFilePathRestriction | Schema \ RepositoryRuleMaxFilePathLength | Schema \ RepositoryRuleFileExtensionRestriction | Schema \ RepositoryRuleMaxFileSize | Schema \ RepositoryRuleWorkflows |Schema \RepositoryRuleCodeScanning {
6666 $ error = new RuntimeException ();
6767 try {
6868 $ this ->responseSchemaValidator ->validate ($ body , Reader::readFromJson (Schema \RepositoryRuleCreation::SCHEMA_JSON , '\\cebe \\openapi \\spec \\Schema ' ));
@@ -200,23 +200,59 @@ public function createResponse(ResponseInterface $response): Observable
200200
201201 items_application_json_two_hundred_aaaao:
202202 try {
203- $ this ->responseSchemaValidator ->validate ($ body , Reader::readFromJson (Schema \RepositoryRuleWorkflows ::SCHEMA_JSON , '\\cebe \\openapi \\spec \\Schema ' ));
203+ $ this ->responseSchemaValidator ->validate ($ body , Reader::readFromJson (Schema \RepositoryRuleFilePathRestriction ::SCHEMA_JSON , '\\cebe \\openapi \\spec \\Schema ' ));
204204
205- return $ this ->hydrator ->hydrateObject (Schema \RepositoryRuleWorkflows ::class, $ body );
205+ return $ this ->hydrator ->hydrateObject (Schema \RepositoryRuleFilePathRestriction ::class, $ body );
206206 } catch (Throwable $ error ) {
207207 goto items_application_json_two_hundred_aaaap;
208208 }
209209
210210 items_application_json_two_hundred_aaaap:
211211 try {
212- $ this ->responseSchemaValidator ->validate ($ body , Reader::readFromJson (Schema \RepositoryRuleCodeScanning ::SCHEMA_JSON , '\\cebe \\openapi \\spec \\Schema ' ));
212+ $ this ->responseSchemaValidator ->validate ($ body , Reader::readFromJson (Schema \RepositoryRuleMaxFilePathLength ::SCHEMA_JSON , '\\cebe \\openapi \\spec \\Schema ' ));
213213
214- return $ this ->hydrator ->hydrateObject (Schema \RepositoryRuleCodeScanning ::class, $ body );
214+ return $ this ->hydrator ->hydrateObject (Schema \RepositoryRuleMaxFilePathLength ::class, $ body );
215215 } catch (Throwable $ error ) {
216216 goto items_application_json_two_hundred_aaaaq;
217217 }
218218
219219 items_application_json_two_hundred_aaaaq:
220+ try {
221+ $ this ->responseSchemaValidator ->validate ($ body , Reader::readFromJson (Schema \RepositoryRuleFileExtensionRestriction::SCHEMA_JSON , '\\cebe \\openapi \\spec \\Schema ' ));
222+
223+ return $ this ->hydrator ->hydrateObject (Schema \RepositoryRuleFileExtensionRestriction::class, $ body );
224+ } catch (Throwable $ error ) {
225+ goto items_application_json_two_hundred_aaaar;
226+ }
227+
228+ items_application_json_two_hundred_aaaar:
229+ try {
230+ $ this ->responseSchemaValidator ->validate ($ body , Reader::readFromJson (Schema \RepositoryRuleMaxFileSize::SCHEMA_JSON , '\\cebe \\openapi \\spec \\Schema ' ));
231+
232+ return $ this ->hydrator ->hydrateObject (Schema \RepositoryRuleMaxFileSize::class, $ body );
233+ } catch (Throwable $ error ) {
234+ goto items_application_json_two_hundred_aaaas;
235+ }
236+
237+ items_application_json_two_hundred_aaaas:
238+ try {
239+ $ this ->responseSchemaValidator ->validate ($ body , Reader::readFromJson (Schema \RepositoryRuleWorkflows::SCHEMA_JSON , '\\cebe \\openapi \\spec \\Schema ' ));
240+
241+ return $ this ->hydrator ->hydrateObject (Schema \RepositoryRuleWorkflows::class, $ body );
242+ } catch (Throwable $ error ) {
243+ goto items_application_json_two_hundred_aaaat;
244+ }
245+
246+ items_application_json_two_hundred_aaaat:
247+ try {
248+ $ this ->responseSchemaValidator ->validate ($ body , Reader::readFromJson (Schema \RepositoryRuleCodeScanning::SCHEMA_JSON , '\\cebe \\openapi \\spec \\Schema ' ));
249+
250+ return $ this ->hydrator ->hydrateObject (Schema \RepositoryRuleCodeScanning::class, $ body );
251+ } catch (Throwable $ error ) {
252+ goto items_application_json_two_hundred_aaaau;
253+ }
254+
255+ items_application_json_two_hundred_aaaau:
220256 throw $ error ;
221257 });
222258 }
0 commit comments