@@ -49,7 +49,7 @@ public function createRequest(): RequestInterface
49
49
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} ' ));
50
50
}
51
51
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> */
53
53
public function createResponse (ResponseInterface $ response ): Observable
54
54
{
55
55
$ code = $ response ->getStatusCode ();
@@ -62,7 +62,7 @@ public function createResponse(ResponseInterface $response): Observable
62
62
* Response
63
63
**/
64
64
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 {
66
66
$ error = new RuntimeException ();
67
67
try {
68
68
$ this ->responseSchemaValidator ->validate ($ body , Reader::readFromJson (Schema \RepositoryRuleCreation::SCHEMA_JSON , '\\cebe \\openapi \\spec \\Schema ' ));
@@ -200,23 +200,59 @@ public function createResponse(ResponseInterface $response): Observable
200
200
201
201
items_application_json_two_hundred_aaaao:
202
202
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 ' ));
204
204
205
- return $ this ->hydrator ->hydrateObject (Schema \RepositoryRuleWorkflows ::class, $ body );
205
+ return $ this ->hydrator ->hydrateObject (Schema \RepositoryRuleFilePathRestriction ::class, $ body );
206
206
} catch (Throwable $ error ) {
207
207
goto items_application_json_two_hundred_aaaap;
208
208
}
209
209
210
210
items_application_json_two_hundred_aaaap:
211
211
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 ' ));
213
213
214
- return $ this ->hydrator ->hydrateObject (Schema \RepositoryRuleCodeScanning ::class, $ body );
214
+ return $ this ->hydrator ->hydrateObject (Schema \RepositoryRuleMaxFilePathLength ::class, $ body );
215
215
} catch (Throwable $ error ) {
216
216
goto items_application_json_two_hundred_aaaaq;
217
217
}
218
218
219
219
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:
220
256
throw $ error ;
221
257
});
222
258
}
0 commit comments