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 ( 0d0620...586f0e )
by
unknown
11:00
created

ModifyAppGroup   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 6
dl 0
loc 19
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A withAppGroupIdentity() 0 6 1
1
<?php
2
3
namespace AlibabaCloud\OpenSearch\V20171225;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method CompileSortScript compileSortScript(array $options = [])
9
 * @method CreateApp createApp(array $options = [])
10
 * @method CreateAppGroup createAppGroup(array $options = [])
11
 * @method CreateSortScript createSortScript(array $options = [])
12
 * @method DeleteSortScript deleteSortScript(array $options = [])
13
 * @method DescribeApp describeApp(array $options = [])
14
 * @method DescribeAppGroup describeAppGroup(array $options = [])
15
 * @method DescribeApps describeApps(array $options = [])
16
 * @method DescribeRegions describeRegions(array $options = [])
17
 * @method GetSortScript getSortScript(array $options = [])
18
 * @method GetSortScriptFile getSortScriptFile(array $options = [])
19
 * @method ListAppGroups listAppGroups(array $options = [])
20
 * @method ListApps listApps(array $options = [])
21
 * @method ListSortScripts listSortScripts(array $options = [])
22
 * @method ModifyAppGroup modifyAppGroup(array $options = [])
23
 * @method ModifyAppGroupQuota modifyAppGroupQuota(array $options = [])
24
 * @method ReleaseSortScript releaseSortScript(array $options = [])
25
 * @method RemoveApp removeApp(array $options = [])
26
 * @method RemoveAppGroup removeAppGroup(array $options = [])
27
 * @method SaveSortScriptFile saveSortScriptFile(array $options = [])
28
 */
29
class OpenSearchApiResolver extends ApiResolver
30
{
31
}
32
33
class Roa extends \AlibabaCloud\Client\Resolver\Roa
34
{
35
    /** @var string */
36
    public $product = 'OpenSearch';
37
38
    /** @var string */
39
    public $version = '2017-12-25';
40
41
    /** @var string */
42
    public $serviceCode = 'opensearch';
43
}
44
45
/**
46
 * @method string getAppVersionId()
47
 * @method string getScriptName()
48
 * @method string getAppGroupIdentity()
49
 */
50
class CompileSortScript extends Roa
51
{
52
    /** @var string */
53
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]/actions/compiling';
54
55
    /** @var string */
56
    public $method = 'POST';
57
58
    /**
59
     * @param string $value
60
     *
61
     * @return $this
62
     */
63
    public function withAppVersionId($value)
64
    {
65
        $this->data['AppVersionId'] = $value;
66
        $this->pathParameters['appVersionId'] = $value;
67
68
        return $this;
69
    }
70
71
    /**
72
     * @param string $value
73
     *
74
     * @return $this
75
     */
76
    public function withScriptName($value)
77
    {
78
        $this->data['ScriptName'] = $value;
79
        $this->pathParameters['scriptName'] = $value;
80
81
        return $this;
82
    }
83
84
    /**
85
     * @param string $value
86
     *
87
     * @return $this
88
     */
89
    public function withAppGroupIdentity($value)
90
    {
91
        $this->data['AppGroupIdentity'] = $value;
92
        $this->pathParameters['appGroupIdentity'] = $value;
93
94
        return $this;
95
    }
96
}
97
98
/**
99
 * @method string getDryRun()
100
 * @method string getAppGroupIdentity()
101
 */
102
class CreateApp extends Roa
103
{
104
    /** @var string */
105
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/apps';
106
107
    /** @var string */
108
    public $method = 'POST';
109
110
    /**
111
     * @param string $value
112
     *
113
     * @return $this
114
     */
115
    public function withDryRun($value)
116
    {
117
        $this->data['DryRun'] = $value;
118
        $this->options['query']['dryRun'] = $value;
119
120
        return $this;
121
    }
122
123
    /**
124
     * @param string $value
125
     *
126
     * @return $this
127
     */
128
    public function withAppGroupIdentity($value)
129
    {
130
        $this->data['AppGroupIdentity'] = $value;
131
        $this->pathParameters['appGroupIdentity'] = $value;
132
133
        return $this;
134
    }
135
}
136
137
class CreateAppGroup extends Roa
138
{
139
    /** @var string */
140
    public $pathPattern = '/v4/openapi/app-groups';
141
142
    /** @var string */
143
    public $method = 'POST';
144
}
145
146
/**
147
 * @method string getAppVersionId()
148
 * @method string getAppGroupIdentity()
149
 */
150
class CreateSortScript extends Roa
151
{
152
    /** @var string */
153
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts';
154
155
    /** @var string */
156
    public $method = 'POST';
157
158
    /**
159
     * @param string $value
160
     *
161
     * @return $this
162
     */
163
    public function withAppVersionId($value)
164
    {
165
        $this->data['AppVersionId'] = $value;
166
        $this->pathParameters['appVersionId'] = $value;
167
168
        return $this;
169
    }
170
171
    /**
172
     * @param string $value
173
     *
174
     * @return $this
175
     */
176
    public function withAppGroupIdentity($value)
177
    {
178
        $this->data['AppGroupIdentity'] = $value;
179
        $this->pathParameters['appGroupIdentity'] = $value;
180
181
        return $this;
182
    }
183
}
184
185
/**
186
 * @method string getAppVersionId()
187
 * @method string getScriptName()
188
 * @method string getAppGroupIdentity()
189
 */
190
class DeleteSortScript extends Roa
191
{
192
    /** @var string */
193
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]';
194
195
    /** @var string */
196
    public $method = 'DELETE';
197
198
    /**
199
     * @param string $value
200
     *
201
     * @return $this
202
     */
203
    public function withAppVersionId($value)
204
    {
205
        $this->data['AppVersionId'] = $value;
206
        $this->pathParameters['appVersionId'] = $value;
207
208
        return $this;
209
    }
210
211
    /**
212
     * @param string $value
213
     *
214
     * @return $this
215
     */
216
    public function withScriptName($value)
217
    {
218
        $this->data['ScriptName'] = $value;
219
        $this->pathParameters['scriptName'] = $value;
220
221
        return $this;
222
    }
223
224
    /**
225
     * @param string $value
226
     *
227
     * @return $this
228
     */
229
    public function withAppGroupIdentity($value)
230
    {
231
        $this->data['AppGroupIdentity'] = $value;
232
        $this->pathParameters['appGroupIdentity'] = $value;
233
234
        return $this;
235
    }
236
}
237
238
/**
239
 * @method string getAppId()
240
 * @method string getAppGroupIdentity()
241
 */
242
class DescribeApp extends Roa
243
{
244
    /** @var string */
245
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]';
246
247
    /**
248
     * @param string $value
249
     *
250
     * @return $this
251
     */
252
    public function withAppId($value)
253
    {
254
        $this->data['AppId'] = $value;
255
        $this->pathParameters['appId'] = $value;
256
257
        return $this;
258
    }
259
260
    /**
261
     * @param string $value
262
     *
263
     * @return $this
264
     */
265
    public function withAppGroupIdentity($value)
266
    {
267
        $this->data['AppGroupIdentity'] = $value;
268
        $this->pathParameters['appGroupIdentity'] = $value;
269
270
        return $this;
271
    }
272
}
273
274
/**
275
 * @method string getAppGroupIdentity()
276
 */
277
class DescribeAppGroup extends Roa
278
{
279
    /** @var string */
280
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]';
281
282
    /**
283
     * @param string $value
284
     *
285
     * @return $this
286
     */
287
    public function withAppGroupIdentity($value)
288
    {
289
        $this->data['AppGroupIdentity'] = $value;
290
        $this->pathParameters['appGroupIdentity'] = $value;
291
292
        return $this;
293
    }
294
}
295
296
/**
297
 * @method string getAppGroupIdentity()
298
 */
299
class DescribeApps extends Roa
300
{
301
    /** @var string */
302
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/apps';
303
304
    /**
305
     * @param string $value
306
     *
307
     * @return $this
308
     */
309
    public function withAppGroupIdentity($value)
310
    {
311
        $this->data['AppGroupIdentity'] = $value;
312
        $this->pathParameters['appGroupIdentity'] = $value;
313
314
        return $this;
315
    }
316
}
317
318
/**
319
 * @method string getAcceptLanguage()
320
 */
321
class DescribeRegions extends Roa
322
{
323
    /** @var string */
324
    public $pathPattern = '/v4/openapi/regions';
325
326
    /**
327
     * @param string $value
328
     *
329
     * @return $this
330
     */
331
    public function withAcceptLanguage($value)
332
    {
333
        $this->data['AcceptLanguage'] = $value;
334
        $this->options['query']['accept_language'] = $value;
335
336
        return $this;
337
    }
338
}
339
340
/**
341
 * @method string getAppVersionId()
342
 * @method string getScriptName()
343
 * @method string getAppGroupIdentity()
344
 */
345
class GetSortScript extends Roa
346
{
347
    /** @var string */
348
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]';
349
350
    /**
351
     * @param string $value
352
     *
353
     * @return $this
354
     */
355
    public function withAppVersionId($value)
356
    {
357
        $this->data['AppVersionId'] = $value;
358
        $this->pathParameters['appVersionId'] = $value;
359
360
        return $this;
361
    }
362
363
    /**
364
     * @param string $value
365
     *
366
     * @return $this
367
     */
368
    public function withScriptName($value)
369
    {
370
        $this->data['ScriptName'] = $value;
371
        $this->pathParameters['scriptName'] = $value;
372
373
        return $this;
374
    }
375
376
    /**
377
     * @param string $value
378
     *
379
     * @return $this
380
     */
381
    public function withAppGroupIdentity($value)
382
    {
383
        $this->data['AppGroupIdentity'] = $value;
384
        $this->pathParameters['appGroupIdentity'] = $value;
385
386
        return $this;
387
    }
388
}
389
390
/**
391
 * @method string getAppVersionId()
392
 * @method string getScriptName()
393
 * @method string getAppGroupIdentity()
394
 */
395
class GetSortScriptFile extends Roa
396
{
397
    /** @var string */
398
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]/files/src/UserScorer.cava';
399
400
    /**
401
     * @param string $value
402
     *
403
     * @return $this
404
     */
405
    public function withAppVersionId($value)
406
    {
407
        $this->data['AppVersionId'] = $value;
408
        $this->pathParameters['appVersionId'] = $value;
409
410
        return $this;
411
    }
412
413
    /**
414
     * @param string $value
415
     *
416
     * @return $this
417
     */
418
    public function withScriptName($value)
419
    {
420
        $this->data['ScriptName'] = $value;
421
        $this->pathParameters['scriptName'] = $value;
422
423
        return $this;
424
    }
425
426
    /**
427
     * @param string $value
428
     *
429
     * @return $this
430
     */
431
    public function withAppGroupIdentity($value)
432
    {
433
        $this->data['AppGroupIdentity'] = $value;
434
        $this->pathParameters['appGroupIdentity'] = $value;
435
436
        return $this;
437
    }
438
}
439
440
/**
441
 * @method string getInstanceId()
442
 * @method string getPageSize()
443
 * @method string getName()
444
 * @method string getSortBy()
445
 * @method string getType()
446
 * @method string getPageNumber()
447
 */
448
class ListAppGroups extends Roa
449
{
450
    /** @var string */
451
    public $pathPattern = '/v4/openapi/app-groups';
452
453
    /**
454
     * @param string $value
455
     *
456
     * @return $this
457
     */
458
    public function withInstanceId($value)
459
    {
460
        $this->data['InstanceId'] = $value;
461
        $this->options['query']['instanceId'] = $value;
462
463
        return $this;
464
    }
465
466
    /**
467
     * @param string $value
468
     *
469
     * @return $this
470
     */
471
    public function withPageSize($value)
472
    {
473
        $this->data['PageSize'] = $value;
474
        $this->options['query']['pageSize'] = $value;
475
476
        return $this;
477
    }
478
479
    /**
480
     * @param string $value
481
     *
482
     * @return $this
483
     */
484
    public function withName($value)
485
    {
486
        $this->data['Name'] = $value;
487
        $this->options['query']['name'] = $value;
488
489
        return $this;
490
    }
491
492
    /**
493
     * @param string $value
494
     *
495
     * @return $this
496
     */
497
    public function withSortBy($value)
498
    {
499
        $this->data['SortBy'] = $value;
500
        $this->options['query']['sortBy'] = $value;
501
502
        return $this;
503
    }
504
505
    /**
506
     * @param string $value
507
     *
508
     * @return $this
509
     */
510
    public function withType($value)
511
    {
512
        $this->data['Type'] = $value;
513
        $this->options['query']['type'] = $value;
514
515
        return $this;
516
    }
517
518
    /**
519
     * @param string $value
520
     *
521
     * @return $this
522
     */
523
    public function withPageNumber($value)
524
    {
525
        $this->data['PageNumber'] = $value;
526
        $this->options['query']['pageNumber'] = $value;
527
528
        return $this;
529
    }
530
}
531
532
/**
533
 * @method string getSize()
534
 * @method string getPage()
535
 * @method string getGroup()
536
 */
537
class ListApps extends Roa
538
{
539
    /** @var string */
540
    public $pathPattern = '/v4/openapi/apps';
541
542
    /**
543
     * @param string $value
544
     *
545
     * @return $this
546
     */
547
    public function withSize($value)
548
    {
549
        $this->data['Size'] = $value;
550
        $this->options['query']['size'] = $value;
551
552
        return $this;
553
    }
554
555
    /**
556
     * @param string $value
557
     *
558
     * @return $this
559
     */
560
    public function withPage($value)
561
    {
562
        $this->data['Page'] = $value;
563
        $this->options['query']['page'] = $value;
564
565
        return $this;
566
    }
567
568
    /**
569
     * @param string $value
570
     *
571
     * @return $this
572
     */
573
    public function withGroup($value)
574
    {
575
        $this->data['Group'] = $value;
576
        $this->options['query']['group'] = $value;
577
578
        return $this;
579
    }
580
}
581
582
/**
583
 * @method string getAppVersionId()
584
 * @method string getAppGroupIdentity()
585
 */
586
class ListSortScripts extends Roa
587
{
588
    /** @var string */
589
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts';
590
591
    /**
592
     * @param string $value
593
     *
594
     * @return $this
595
     */
596
    public function withAppVersionId($value)
597
    {
598
        $this->data['AppVersionId'] = $value;
599
        $this->pathParameters['appVersionId'] = $value;
600
601
        return $this;
602
    }
603
604
    /**
605
     * @param string $value
606
     *
607
     * @return $this
608
     */
609
    public function withAppGroupIdentity($value)
610
    {
611
        $this->data['AppGroupIdentity'] = $value;
612
        $this->pathParameters['appGroupIdentity'] = $value;
613
614
        return $this;
615
    }
616
}
617
618
/**
619
 * @method string getAppGroupIdentity()
620
 */
621
class ModifyAppGroup extends Roa
622
{
623
    /** @var string */
624
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]';
625
626
    /** @var string */
627
    public $method = 'PUT';
628
629
    /**
630
     * @param string $value
631
     *
632
     * @return $this
633
     */
634
    public function withAppGroupIdentity($value)
635
    {
636
        $this->data['AppGroupIdentity'] = $value;
637
        $this->pathParameters['appGroupIdentity'] = $value;
638
639
        return $this;
640
    }
641
}
642
643
/**
644
 * @method string getAppGroupIdentity()
645
 */
646
class ModifyAppGroupQuota extends Roa
647
{
648
    /** @var string */
649
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/quota';
650
651
    /** @var string */
652
    public $method = 'PUT';
653
654
    /**
655
     * @param string $value
656
     *
657
     * @return $this
658
     */
659
    public function withAppGroupIdentity($value)
660
    {
661
        $this->data['AppGroupIdentity'] = $value;
662
        $this->pathParameters['appGroupIdentity'] = $value;
663
664
        return $this;
665
    }
666
}
667
668
/**
669
 * @method string getAppVersionId()
670
 * @method string getScriptName()
671
 * @method string getAppGroupIdentity()
672
 */
673
class ReleaseSortScript extends Roa
674
{
675
    /** @var string */
676
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]/actions/release';
677
678
    /** @var string */
679
    public $method = 'POST';
680
681
    /**
682
     * @param string $value
683
     *
684
     * @return $this
685
     */
686
    public function withAppVersionId($value)
687
    {
688
        $this->data['AppVersionId'] = $value;
689
        $this->pathParameters['appVersionId'] = $value;
690
691
        return $this;
692
    }
693
694
    /**
695
     * @param string $value
696
     *
697
     * @return $this
698
     */
699
    public function withScriptName($value)
700
    {
701
        $this->data['ScriptName'] = $value;
702
        $this->pathParameters['scriptName'] = $value;
703
704
        return $this;
705
    }
706
707
    /**
708
     * @param string $value
709
     *
710
     * @return $this
711
     */
712
    public function withAppGroupIdentity($value)
713
    {
714
        $this->data['AppGroupIdentity'] = $value;
715
        $this->pathParameters['appGroupIdentity'] = $value;
716
717
        return $this;
718
    }
719
}
720
721
/**
722
 * @method string getAppId()
723
 * @method string getAppGroupIdentity()
724
 */
725
class RemoveApp extends Roa
726
{
727
    /** @var string */
728
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/apps/[appId]';
729
730
    /** @var string */
731
    public $method = 'DELETE';
732
733
    /**
734
     * @param string $value
735
     *
736
     * @return $this
737
     */
738
    public function withAppId($value)
739
    {
740
        $this->data['AppId'] = $value;
741
        $this->pathParameters['appId'] = $value;
742
743
        return $this;
744
    }
745
746
    /**
747
     * @param string $value
748
     *
749
     * @return $this
750
     */
751
    public function withAppGroupIdentity($value)
752
    {
753
        $this->data['AppGroupIdentity'] = $value;
754
        $this->pathParameters['appGroupIdentity'] = $value;
755
756
        return $this;
757
    }
758
}
759
760
/**
761
 * @method string getAppGroupIdentity()
762
 */
763
class RemoveAppGroup extends Roa
764
{
765
    /** @var string */
766
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]';
767
768
    /** @var string */
769
    public $method = 'DELETE';
770
771
    /**
772
     * @param string $value
773
     *
774
     * @return $this
775
     */
776
    public function withAppGroupIdentity($value)
777
    {
778
        $this->data['AppGroupIdentity'] = $value;
779
        $this->pathParameters['appGroupIdentity'] = $value;
780
781
        return $this;
782
    }
783
}
784
785
/**
786
 * @method string getAppVersionId()
787
 * @method string getScriptName()
788
 * @method string getAppGroupIdentity()
789
 */
790
class SaveSortScriptFile extends Roa
791
{
792
    /** @var string */
793
    public $pathPattern = '/v4/openapi/app-groups/[appGroupIdentity]/apps/[appVersionId]/sort-scripts/[scriptName]/files/src/UserScorer.cava';
794
795
    /** @var string */
796
    public $method = 'PUT';
797
798
    /**
799
     * @param string $value
800
     *
801
     * @return $this
802
     */
803
    public function withAppVersionId($value)
804
    {
805
        $this->data['AppVersionId'] = $value;
806
        $this->pathParameters['appVersionId'] = $value;
807
808
        return $this;
809
    }
810
811
    /**
812
     * @param string $value
813
     *
814
     * @return $this
815
     */
816
    public function withScriptName($value)
817
    {
818
        $this->data['ScriptName'] = $value;
819
        $this->pathParameters['scriptName'] = $value;
820
821
        return $this;
822
    }
823
824
    /**
825
     * @param string $value
826
     *
827
     * @return $this
828
     */
829
    public function withAppGroupIdentity($value)
830
    {
831
        $this->data['AppGroupIdentity'] = $value;
832
        $this->pathParameters['appGroupIdentity'] = $value;
833
834
        return $this;
835
    }
836
}
837