GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Failed
Push — master ( 156cce...61b563 )
by
unknown
04:24
created

GetCollection::withPage()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 3
c 2
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace AlibabaCloud\Cr\V20160607;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method CancelRepoBuild cancelRepoBuild(array $options = [])
9
 * @method CreateNamespace createNamespace(array $options = [])
10
 * @method CreateRepo createRepo(array $options = [])
11
 * @method CreateRepoBuildRule createRepoBuildRule(array $options = [])
12
 * @method CreateRepoWebhook createRepoWebhook(array $options = [])
13
 * @method CreateUserInfo createUserInfo(array $options = [])
14
 * @method DeleteImage deleteImage(array $options = [])
15
 * @method DeleteNamespace deleteNamespace(array $options = [])
16
 * @method DeleteRepo deleteRepo(array $options = [])
17
 * @method DeleteRepoBuildRule deleteRepoBuildRule(array $options = [])
18
 * @method DeleteRepoWebhook deleteRepoWebhook(array $options = [])
19
 * @method GetAuthorizationToken getAuthorizationToken(array $options = [])
20
 * @method GetImageLayer getImageLayer(array $options = [])
21
 * @method GetImageManifest getImageManifest(array $options = [])
22
 * @method GetNamespace getNamespace(array $options = [])
23
 * @method GetNamespaceList getNamespaceList(array $options = [])
24
 * @method GetRegion getRegion(array $options = [])
25
 * @method GetRegionList getRegionList(array $options = [])
26
 * @method GetRepo getRepo(array $options = [])
27
 * @method GetRepoBuildList getRepoBuildList(array $options = [])
28
 * @method GetRepoBuildRuleList getRepoBuildRuleList(array $options = [])
29
 * @method GetRepoBuildStatus getRepoBuildStatus(array $options = [])
30
 * @method GetRepoList getRepoList(array $options = [])
31
 * @method GetRepoListByNamespace getRepoListByNamespace(array $options = [])
32
 * @method GetRepoTag getRepoTag(array $options = [])
33
 * @method GetRepoTags getRepoTags(array $options = [])
34
 * @method GetRepoTagScanList getRepoTagScanList(array $options = [])
35
 * @method GetRepoTagScanStatus getRepoTagScanStatus(array $options = [])
36
 * @method GetRepoTagScanSummary getRepoTagScanSummary(array $options = [])
37
 * @method GetRepoWebhook getRepoWebhook(array $options = [])
38
 * @method StartImageScan startImageScan(array $options = [])
39
 * @method StartRepoBuildByRule startRepoBuildByRule(array $options = [])
40
 * @method UpdateNamespace updateNamespace(array $options = [])
41
 * @method UpdateRepo updateRepo(array $options = [])
42
 * @method UpdateRepoBuildRule updateRepoBuildRule(array $options = [])
43
 * @method UpdateRepoWebhook updateRepoWebhook(array $options = [])
44
 * @method UpdateUserInfo updateUserInfo(array $options = [])
45
 */
46
class CrApiResolver extends ApiResolver
47
{
48
}
49
50
class Roa extends \AlibabaCloud\Client\Resolver\Roa
51
{
52
    /** @var string */
53
    public $product = 'cr';
54
55
    /** @var string */
56
    public $version = '2016-06-07';
57
58
    /** @var string */
59
    public $serviceCode = 'acr';
60
}
61
62
/**
63
 * @method string getBuildId()
64
 * @method $this withBuildId($value)
65
 * @method string getRepoNamespace()
66
 * @method $this withRepoNamespace($value)
67
 * @method string getRepoName()
68
 * @method $this withRepoName($value)
69
 */
70
class CancelRepoBuild extends Roa
71
{
72
    /** @var string */
73
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/build/[BuildId]/cancel';
74
75
    /** @var string */
76
    public $method = 'POST';
77
}
78
79
class CreateNamespace extends Roa
80
{
81
    /** @var string */
82
    public $pathPattern = '/namespace';
83
84
    /** @var string */
85
    public $method = 'PUT';
86
}
87
88
class CreateRepo extends Roa
89
{
90
    /** @var string */
91
    public $pathPattern = '/repos';
92
93
    /** @var string */
94
    public $method = 'PUT';
95
}
96
97
/**
98
 * @method string getRepoNamespace()
99
 * @method $this withRepoNamespace($value)
100
 * @method string getRepoName()
101
 * @method $this withRepoName($value)
102
 */
103
class CreateRepoBuildRule extends Roa
104
{
105
    /** @var string */
106
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/rules';
107
108
    /** @var string */
109
    public $method = 'PUT';
110
}
111
112
/**
113
 * @method string getRepoNamespace()
114
 * @method $this withRepoNamespace($value)
115
 * @method string getRepoName()
116
 * @method $this withRepoName($value)
117
 */
118
class CreateRepoWebhook extends Roa
119
{
120
    /** @var string */
121
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/webhooks';
122
123
    /** @var string */
124
    public $method = 'PUT';
125
}
126
127
class CreateUserInfo extends Roa
128
{
129
    /** @var string */
130
    public $pathPattern = '/users';
131
132
    /** @var string */
133
    public $method = 'PUT';
134
}
135
136
/**
137
 * @method string getRepoNamespace()
138
 * @method $this withRepoNamespace($value)
139
 * @method string getRepoName()
140
 * @method $this withRepoName($value)
141
 * @method string getTag()
142
 * @method $this withTag($value)
143
 */
144
class DeleteImage extends Roa
145
{
146
    /** @var string */
147
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/tags/[Tag]';
148
149
    /** @var string */
150
    public $method = 'DELETE';
151
}
152
153
/**
154
 * @method string getNamespace()
155
 * @method $this withNamespace($value)
156
 */
157
class DeleteNamespace extends Roa
158
{
159
    /** @var string */
160
    public $pathPattern = '/namespace/[Namespace]';
161
162
    /** @var string */
163
    public $method = 'DELETE';
164
}
165
166
/**
167
 * @method string getRepoNamespace()
168
 * @method $this withRepoNamespace($value)
169
 * @method string getRepoName()
170
 * @method $this withRepoName($value)
171
 */
172
class DeleteRepo extends Roa
173
{
174
    /** @var string */
175
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]';
176
177
    /** @var string */
178
    public $method = 'DELETE';
179
}
180
181
/**
182
 * @method string getBuildRuleId()
183
 * @method $this withBuildRuleId($value)
184
 * @method string getRepoNamespace()
185
 * @method $this withRepoNamespace($value)
186
 * @method string getRepoName()
187
 * @method $this withRepoName($value)
188
 */
189
class DeleteRepoBuildRule extends Roa
190
{
191
    /** @var string */
192
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]';
193
194
    /** @var string */
195
    public $method = 'DELETE';
196
}
197
198
/**
199
 * @method string getWebhookId()
200
 * @method $this withWebhookId($value)
201
 * @method string getRepoNamespace()
202
 * @method $this withRepoNamespace($value)
203
 * @method string getRepoName()
204
 * @method $this withRepoName($value)
205
 */
206
class DeleteRepoWebhook extends Roa
207
{
208
    /** @var string */
209
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/webhooks/[WebhookId]';
210
211
    /** @var string */
212
    public $method = 'DELETE';
213
}
214
215
class GetAuthorizationToken extends Roa
216
{
217
    /** @var string */
218
    public $pathPattern = '/tokens';
219
}
220
221
/**
222
 * @method string getRepoNamespace()
223
 * @method $this withRepoNamespace($value)
224
 * @method string getRepoName()
225
 * @method $this withRepoName($value)
226
 * @method string getTag()
227
 * @method $this withTag($value)
228
 */
229
class GetImageLayer extends Roa
230
{
231
    /** @var string */
232
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/layers';
233
}
234
235
/**
236
 * @method string getSchemaVersion()
237
 * @method string getRepoNamespace()
238
 * @method $this withRepoNamespace($value)
239
 * @method string getRepoName()
240
 * @method $this withRepoName($value)
241
 * @method string getTag()
242
 * @method $this withTag($value)
243
 */
244
class GetImageManifest extends Roa
245
{
246
    /** @var string */
247
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/manifest';
248
249
    /**
250
     * @param string $value
251
     *
252
     * @return $this
253
     */
254
    public function withSchemaVersion($value)
255
    {
256
        $this->data['SchemaVersion'] = $value;
257
        $this->options['query']['SchemaVersion'] = $value;
258
259
        return $this;
260
    }
261
}
262
263
/**
264
 * @method string getNamespace()
265
 * @method $this withNamespace($value)
266
 */
267
class GetNamespace extends Roa
268
{
269
    /** @var string */
270
    public $pathPattern = '/namespace/[Namespace]';
271
}
272
273
/**
274
 * @method string getAuthorize()
275
 * @method string getStatus()
276
 */
277
class GetNamespaceList extends Roa
278
{
279
    /** @var string */
280
    public $pathPattern = '/namespace';
281
282
    /**
283
     * @param string $value
284
     *
285
     * @return $this
286
     */
287
    public function withAuthorize($value)
288
    {
289
        $this->data['Authorize'] = $value;
290
        $this->options['query']['Authorize'] = $value;
291
292
        return $this;
293
    }
294
295
    /**
296
     * @param string $value
297
     *
298
     * @return $this
299
     */
300
    public function withStatus($value)
301
    {
302
        $this->data['Status'] = $value;
303
        $this->options['query']['Status'] = $value;
304
305
        return $this;
306
    }
307
}
308
309
/**
310
 * @method string getDomain()
311
 */
312
class GetRegion extends Roa
313
{
314
    /** @var string */
315
    public $pathPattern = '/regions';
316
317
    /**
318
     * @param string $value
319
     *
320
     * @return $this
321
     */
322
    public function withDomain($value)
323
    {
324
        $this->data['Domain'] = $value;
325
        $this->options['query']['Domain'] = $value;
326
327
        return $this;
328
    }
329
}
330
331
class GetRegionList extends Roa
332
{
333
    /** @var string */
334
    public $pathPattern = '/regions';
335
}
336
337
/**
338
 * @method string getRepoNamespace()
339
 * @method $this withRepoNamespace($value)
340
 * @method string getRepoName()
341
 * @method $this withRepoName($value)
342
 */
343
class GetRepo extends Roa
344
{
345
    /** @var string */
346
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]';
347
}
348
349
/**
350
 * @method string getRepoNamespace()
351
 * @method $this withRepoNamespace($value)
352
 * @method string getRepoName()
353
 * @method $this withRepoName($value)
354
 * @method string getPageSize()
355
 * @method string getPage()
356
 */
357
class GetRepoBuildList extends Roa
358
{
359
    /** @var string */
360
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/build';
361
362
    /**
363
     * @param string $value
364
     *
365
     * @return $this
366
     */
367
    public function withPageSize($value)
368
    {
369
        $this->data['PageSize'] = $value;
370
        $this->options['query']['PageSize'] = $value;
371
372
        return $this;
373
    }
374
375
    /**
376
     * @param string $value
377
     *
378
     * @return $this
379
     */
380
    public function withPage($value)
381
    {
382
        $this->data['Page'] = $value;
383
        $this->options['query']['Page'] = $value;
384
385
        return $this;
386
    }
387
}
388
389
/**
390
 * @method string getRepoNamespace()
391
 * @method $this withRepoNamespace($value)
392
 * @method string getRepoName()
393
 * @method $this withRepoName($value)
394
 */
395
class GetRepoBuildRuleList extends Roa
396
{
397
    /** @var string */
398
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/rules';
399
}
400
401
/**
402
 * @method string getBuildId()
403
 * @method $this withBuildId($value)
404
 * @method string getRepoNamespace()
405
 * @method $this withRepoNamespace($value)
406
 * @method string getRepoName()
407
 * @method $this withRepoName($value)
408
 */
409
class GetRepoBuildStatus extends Roa
410
{
411
    /** @var string */
412
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/build/[BuildId]/status';
413
}
414
415
/**
416
 * @method string getPageSize()
417
 * @method string getPage()
418
 * @method string getStatus()
419
 */
420
class GetRepoList extends Roa
421
{
422
    /** @var string */
423
    public $pathPattern = '/repos';
424
425
    /**
426
     * @param string $value
427
     *
428
     * @return $this
429
     */
430
    public function withPageSize($value)
431
    {
432
        $this->data['PageSize'] = $value;
433
        $this->options['query']['PageSize'] = $value;
434
435
        return $this;
436
    }
437
438
    /**
439
     * @param string $value
440
     *
441
     * @return $this
442
     */
443
    public function withPage($value)
444
    {
445
        $this->data['Page'] = $value;
446
        $this->options['query']['Page'] = $value;
447
448
        return $this;
449
    }
450
451
    /**
452
     * @param string $value
453
     *
454
     * @return $this
455
     */
456
    public function withStatus($value)
457
    {
458
        $this->data['Status'] = $value;
459
        $this->options['query']['Status'] = $value;
460
461
        return $this;
462
    }
463
}
464
465
/**
466
 * @method string getRepoNamespace()
467
 * @method $this withRepoNamespace($value)
468
 * @method string getPageSize()
469
 * @method string getPage()
470
 * @method string getStatus()
471
 */
472
class GetRepoListByNamespace extends Roa
473
{
474
    /** @var string */
475
    public $pathPattern = '/repos/[RepoNamespace]';
476
477
    /**
478
     * @param string $value
479
     *
480
     * @return $this
481
     */
482
    public function withPageSize($value)
483
    {
484
        $this->data['PageSize'] = $value;
485
        $this->options['query']['PageSize'] = $value;
486
487
        return $this;
488
    }
489
490
    /**
491
     * @param string $value
492
     *
493
     * @return $this
494
     */
495
    public function withPage($value)
496
    {
497
        $this->data['Page'] = $value;
498
        $this->options['query']['Page'] = $value;
499
500
        return $this;
501
    }
502
503
    /**
504
     * @param string $value
505
     *
506
     * @return $this
507
     */
508
    public function withStatus($value)
509
    {
510
        $this->data['Status'] = $value;
511
        $this->options['query']['Status'] = $value;
512
513
        return $this;
514
    }
515
}
516
517
/**
518
 * @method string getRepoNamespace()
519
 * @method $this withRepoNamespace($value)
520
 * @method string getRepoName()
521
 * @method $this withRepoName($value)
522
 * @method string getTag()
523
 * @method $this withTag($value)
524
 */
525
class GetRepoTag extends Roa
526
{
527
    /** @var string */
528
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/tags/[Tag]';
529
}
530
531
/**
532
 * @method string getRepoNamespace()
533
 * @method $this withRepoNamespace($value)
534
 * @method string getRepoName()
535
 * @method $this withRepoName($value)
536
 * @method string getPageSize()
537
 * @method string getPage()
538
 */
539
class GetRepoTags extends Roa
540
{
541
    /** @var string */
542
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/tags';
543
544
    /**
545
     * @param string $value
546
     *
547
     * @return $this
548
     */
549
    public function withPageSize($value)
550
    {
551
        $this->data['PageSize'] = $value;
552
        $this->options['query']['PageSize'] = $value;
553
554
        return $this;
555
    }
556
557
    /**
558
     * @param string $value
559
     *
560
     * @return $this
561
     */
562
    public function withPage($value)
563
    {
564
        $this->data['Page'] = $value;
565
        $this->options['query']['Page'] = $value;
566
567
        return $this;
568
    }
569
}
570
571
/**
572
 * @method string getSeverity()
573
 * @method string getRepoNamespace()
574
 * @method $this withRepoNamespace($value)
575
 * @method string getRepoName()
576
 * @method $this withRepoName($value)
577
 * @method string getPageSize()
578
 * @method string getTag()
579
 * @method $this withTag($value)
580
 * @method string getPage()
581
 */
582
class GetRepoTagScanList extends Roa
583
{
584
    /** @var string */
585
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/scanResult';
586
587
    /**
588
     * @param string $value
589
     *
590
     * @return $this
591
     */
592
    public function withSeverity($value)
593
    {
594
        $this->data['Severity'] = $value;
595
        $this->options['query']['Severity'] = $value;
596
597
        return $this;
598
    }
599
600
    /**
601
     * @param string $value
602
     *
603
     * @return $this
604
     */
605
    public function withPageSize($value)
606
    {
607
        $this->data['PageSize'] = $value;
608
        $this->options['query']['PageSize'] = $value;
609
610
        return $this;
611
    }
612
613
    /**
614
     * @param string $value
615
     *
616
     * @return $this
617
     */
618
    public function withPage($value)
619
    {
620
        $this->data['Page'] = $value;
621
        $this->options['query']['Page'] = $value;
622
623
        return $this;
624
    }
625
}
626
627
/**
628
 * @method string getRepoNamespace()
629
 * @method $this withRepoNamespace($value)
630
 * @method string getRepoName()
631
 * @method $this withRepoName($value)
632
 * @method string getTag()
633
 * @method $this withTag($value)
634
 */
635
class GetRepoTagScanStatus extends Roa
636
{
637
    /** @var string */
638
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/scanStatus';
639
}
640
641
/**
642
 * @method string getRepoNamespace()
643
 * @method $this withRepoNamespace($value)
644
 * @method string getRepoName()
645
 * @method $this withRepoName($value)
646
 * @method string getTag()
647
 * @method $this withTag($value)
648
 */
649
class GetRepoTagScanSummary extends Roa
650
{
651
    /** @var string */
652
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/scanCount';
653
}
654
655
/**
656
 * @method string getRepoNamespace()
657
 * @method $this withRepoNamespace($value)
658
 * @method string getRepoName()
659
 * @method $this withRepoName($value)
660
 */
661
class GetRepoWebhook extends Roa
662
{
663
    /** @var string */
664
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/webhooks';
665
}
666
667
/**
668
 * @method string getRepoNamespace()
669
 * @method $this withRepoNamespace($value)
670
 * @method string getRepoName()
671
 * @method $this withRepoName($value)
672
 * @method string getTag()
673
 * @method $this withTag($value)
674
 */
675
class StartImageScan extends Roa
676
{
677
    /** @var string */
678
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/tags/[Tag]/scan';
679
680
    /** @var string */
681
    public $method = 'PUT';
682
}
683
684
/**
685
 * @method string getBuildRuleId()
686
 * @method $this withBuildRuleId($value)
687
 * @method string getRepoNamespace()
688
 * @method $this withRepoNamespace($value)
689
 * @method string getRepoName()
690
 * @method $this withRepoName($value)
691
 */
692
class StartRepoBuildByRule extends Roa
693
{
694
    /** @var string */
695
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]/build';
696
697
    /** @var string */
698
    public $method = 'PUT';
699
}
700
701
/**
702
 * @method string getNamespace()
703
 * @method $this withNamespace($value)
704
 */
705
class UpdateNamespace extends Roa
706
{
707
    /** @var string */
708
    public $pathPattern = '/namespace/[Namespace]';
709
710
    /** @var string */
711
    public $method = 'POST';
712
}
713
714
/**
715
 * @method string getRepoNamespace()
716
 * @method $this withRepoNamespace($value)
717
 * @method string getRepoName()
718
 * @method $this withRepoName($value)
719
 */
720
class UpdateRepo extends Roa
721
{
722
    /** @var string */
723
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]';
724
725
    /** @var string */
726
    public $method = 'POST';
727
}
728
729
/**
730
 * @method string getBuildRuleId()
731
 * @method $this withBuildRuleId($value)
732
 * @method string getRepoNamespace()
733
 * @method $this withRepoNamespace($value)
734
 * @method string getRepoName()
735
 * @method $this withRepoName($value)
736
 */
737
class UpdateRepoBuildRule extends Roa
738
{
739
    /** @var string */
740
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/rules/[BuildRuleId]';
741
742
    /** @var string */
743
    public $method = 'POST';
744
}
745
746
/**
747
 * @method string getWebhookId()
748
 * @method $this withWebhookId($value)
749
 * @method string getRepoNamespace()
750
 * @method $this withRepoNamespace($value)
751
 * @method string getRepoName()
752
 * @method $this withRepoName($value)
753
 */
754
class UpdateRepoWebhook extends Roa
755
{
756
    /** @var string */
757
    public $pathPattern = '/repos/[RepoNamespace]/[RepoName]/webhooks/[WebhookId]';
758
759
    /** @var string */
760
    public $method = 'POST';
761
}
762
763
class UpdateUserInfo extends Roa
764
{
765
    /** @var string */
766
    public $pathPattern = '/users';
767
768
    /** @var string */
769
    public $method = 'POST';
770
}
771