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 ( 3611a1...c26bb5 )
by
unknown
06:22
created

GetModelProgress::withAppGroupIdentity()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

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