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 ( 39222c...47d7ba )
by
unknown
10:30
created

CreateCluster::withIgnoreFailedNodeTasks()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace AlibabaCloud\EfloController\V20221215;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method ChangeResourceGroup changeResourceGroup(array $options = [])
9
 * @method CreateCluster createCluster(array $options = [])
10
 * @method DeleteCluster deleteCluster(array $options = [])
11
 * @method DescribeCluster describeCluster(array $options = [])
12
 * @method DescribeNode describeNode(array $options = [])
13
 * @method DescribeRegions describeRegions(array $options = [])
14
 * @method DescribeTask describeTask(array $options = [])
15
 * @method DescribeZones describeZones(array $options = [])
16
 * @method ExtendCluster extendCluster(array $options = [])
17
 * @method ListClusterNodes listClusterNodes(array $options = [])
18
 * @method ListClusters listClusters(array $options = [])
19
 * @method ListFreeNodes listFreeNodes(array $options = [])
20
 * @method ListTagResources listTagResources(array $options = [])
21
 * @method RebootNodes rebootNodes(array $options = [])
22
 * @method ReimageNodes reimageNodes(array $options = [])
23
 * @method ShrinkCluster shrinkCluster(array $options = [])
24
 * @method TagResources tagResources(array $options = [])
25
 * @method UntagResources untagResources(array $options = [])
26
 */
27
class EfloControllerApiResolver extends ApiResolver
28
{
29
}
30
31
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
32
{
33
    /** @var string */
34
    public $product = 'eflo-controller';
35
36
    /** @var string */
37
    public $version = '2022-12-15';
38
39
    /** @var string */
40
    public $method = 'POST';
41
}
42
43
/**
44
 * @method string getResourceGroupId()
45
 * @method $this withResourceGroupId($value)
46
 * @method string getResourceRegionId()
47
 * @method $this withResourceRegionId($value)
48
 * @method string getResourceId()
49
 * @method $this withResourceId($value)
50
 * @method string getResourceType()
51
 * @method $this withResourceType($value)
52
 * @method string getService()
53
 * @method $this withService($value)
54
 */
55
class ChangeResourceGroup extends Rpc
56
{
57
}
58
59
/**
60
 * @method string getComponents()
61
 * @method string getClusterName()
62
 * @method string getNetworks()
63
 * @method string getResourceGroupId()
64
 * @method string getClusterDescription()
65
 * @method string getNodeGroups()
66
 * @method array getTag()
67
 * @method string getIgnoreFailedNodeTasks()
68
 * @method string getClusterType()
69
 */
70
class CreateCluster extends Rpc
71
{
72
73
    /**
74
     * @param string $value
75
     *
76
     * @return $this
77
     */
78
    public function withComponents($value)
79
    {
80
        $this->data['Components'] = $value;
81
        $this->options['form_params']['Components'] = $value;
82
83
        return $this;
84
    }
85
86
    /**
87
     * @param string $value
88
     *
89
     * @return $this
90
     */
91
    public function withClusterName($value)
92
    {
93
        $this->data['ClusterName'] = $value;
94
        $this->options['form_params']['ClusterName'] = $value;
95
96
        return $this;
97
    }
98
99
    /**
100
     * @param string $value
101
     *
102
     * @return $this
103
     */
104
    public function withNetworks($value)
105
    {
106
        $this->data['Networks'] = $value;
107
        $this->options['form_params']['Networks'] = $value;
108
109
        return $this;
110
    }
111
112
    /**
113
     * @param string $value
114
     *
115
     * @return $this
116
     */
117
    public function withResourceGroupId($value)
118
    {
119
        $this->data['ResourceGroupId'] = $value;
120
        $this->options['form_params']['ResourceGroupId'] = $value;
121
122
        return $this;
123
    }
124
125
    /**
126
     * @param string $value
127
     *
128
     * @return $this
129
     */
130
    public function withClusterDescription($value)
131
    {
132
        $this->data['ClusterDescription'] = $value;
133
        $this->options['form_params']['ClusterDescription'] = $value;
134
135
        return $this;
136
    }
137
138
    /**
139
     * @param string $value
140
     *
141
     * @return $this
142
     */
143
    public function withNodeGroups($value)
144
    {
145
        $this->data['NodeGroups'] = $value;
146
        $this->options['form_params']['NodeGroups'] = $value;
147
148
        return $this;
149
    }
150
151
    /**
152
     * @param array $tag
153
     *
154
     * @return $this
155
     */
156
	public function withTag(array $tag)
157
	{
158
	    $this->data['Tag'] = $tag;
159
		foreach ($tag as $depth1 => $depth1Value) {
160
			if(isset($depth1Value['Value'])){
161
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
162
			}
163
			if(isset($depth1Value['Key'])){
164
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
165
			}
166
		}
167
168
		return $this;
169
    }
170
171
    /**
172
     * @param string $value
173
     *
174
     * @return $this
175
     */
176
    public function withIgnoreFailedNodeTasks($value)
177
    {
178
        $this->data['IgnoreFailedNodeTasks'] = $value;
179
        $this->options['form_params']['IgnoreFailedNodeTasks'] = $value;
180
181
        return $this;
182
    }
183
184
    /**
185
     * @param string $value
186
     *
187
     * @return $this
188
     */
189
    public function withClusterType($value)
190
    {
191
        $this->data['ClusterType'] = $value;
192
        $this->options['form_params']['ClusterType'] = $value;
193
194
        return $this;
195
    }
196
}
197
198
/**
199
 * @method string getClusterId()
200
 */
201
class DeleteCluster extends Rpc
202
{
203
204
    /**
205
     * @param string $value
206
     *
207
     * @return $this
208
     */
209
    public function withClusterId($value)
210
    {
211
        $this->data['ClusterId'] = $value;
212
        $this->options['form_params']['ClusterId'] = $value;
213
214
        return $this;
215
    }
216
}
217
218
/**
219
 * @method string getClusterId()
220
 */
221
class DescribeCluster extends Rpc
222
{
223
224
    /**
225
     * @param string $value
226
     *
227
     * @return $this
228
     */
229
    public function withClusterId($value)
230
    {
231
        $this->data['ClusterId'] = $value;
232
        $this->options['form_params']['ClusterId'] = $value;
233
234
        return $this;
235
    }
236
}
237
238
/**
239
 * @method string getNodeId()
240
 */
241
class DescribeNode extends Rpc
242
{
243
244
    /**
245
     * @param string $value
246
     *
247
     * @return $this
248
     */
249
    public function withNodeId($value)
250
    {
251
        $this->data['NodeId'] = $value;
252
        $this->options['form_params']['NodeId'] = $value;
253
254
        return $this;
255
    }
256
}
257
258
/**
259
 * @method string getAcceptLanguage()
260
 */
261
class DescribeRegions extends Rpc
262
{
263
264
    /**
265
     * @param string $value
266
     *
267
     * @return $this
268
     */
269
    public function withAcceptLanguage($value)
270
    {
271
        $this->data['AcceptLanguage'] = $value;
272
        $this->options['form_params']['AcceptLanguage'] = $value;
273
274
        return $this;
275
    }
276
}
277
278
/**
279
 * @method string getTaskId()
280
 */
281
class DescribeTask extends Rpc
282
{
283
284
    /**
285
     * @param string $value
286
     *
287
     * @return $this
288
     */
289
    public function withTaskId($value)
290
    {
291
        $this->data['TaskId'] = $value;
292
        $this->options['form_params']['TaskId'] = $value;
293
294
        return $this;
295
    }
296
}
297
298
/**
299
 * @method string getAcceptLanguage()
300
 */
301
class DescribeZones extends Rpc
302
{
303
304
    /**
305
     * @param string $value
306
     *
307
     * @return $this
308
     */
309
    public function withAcceptLanguage($value)
310
    {
311
        $this->data['AcceptLanguage'] = $value;
312
        $this->options['form_params']['AcceptLanguage'] = $value;
313
314
        return $this;
315
    }
316
}
317
318
/**
319
 * @method string getIgnoreFailedNodeTasks()
320
 * @method string getClusterId()
321
 * @method string getNodeGroups()
322
 */
323
class ExtendCluster extends Rpc
324
{
325
326
    /**
327
     * @param string $value
328
     *
329
     * @return $this
330
     */
331
    public function withIgnoreFailedNodeTasks($value)
332
    {
333
        $this->data['IgnoreFailedNodeTasks'] = $value;
334
        $this->options['form_params']['IgnoreFailedNodeTasks'] = $value;
335
336
        return $this;
337
    }
338
339
    /**
340
     * @param string $value
341
     *
342
     * @return $this
343
     */
344
    public function withClusterId($value)
345
    {
346
        $this->data['ClusterId'] = $value;
347
        $this->options['form_params']['ClusterId'] = $value;
348
349
        return $this;
350
    }
351
352
    /**
353
     * @param string $value
354
     *
355
     * @return $this
356
     */
357
    public function withNodeGroups($value)
358
    {
359
        $this->data['NodeGroups'] = $value;
360
        $this->options['form_params']['NodeGroups'] = $value;
361
362
        return $this;
363
    }
364
}
365
366
/**
367
 * @method string getClusterId()
368
 * @method string getNodeGroupId()
369
 * @method string getNextToken()
370
 * @method string getMaxResults()
371
 */
372
class ListClusterNodes extends Rpc
373
{
374
375
    /**
376
     * @param string $value
377
     *
378
     * @return $this
379
     */
380
    public function withClusterId($value)
381
    {
382
        $this->data['ClusterId'] = $value;
383
        $this->options['form_params']['ClusterId'] = $value;
384
385
        return $this;
386
    }
387
388
    /**
389
     * @param string $value
390
     *
391
     * @return $this
392
     */
393
    public function withNodeGroupId($value)
394
    {
395
        $this->data['NodeGroupId'] = $value;
396
        $this->options['form_params']['NodeGroupId'] = $value;
397
398
        return $this;
399
    }
400
401
    /**
402
     * @param string $value
403
     *
404
     * @return $this
405
     */
406
    public function withNextToken($value)
407
    {
408
        $this->data['NextToken'] = $value;
409
        $this->options['form_params']['NextToken'] = $value;
410
411
        return $this;
412
    }
413
414
    /**
415
     * @param string $value
416
     *
417
     * @return $this
418
     */
419
    public function withMaxResults($value)
420
    {
421
        $this->data['MaxResults'] = $value;
422
        $this->options['form_params']['MaxResults'] = $value;
423
424
        return $this;
425
    }
426
}
427
428
/**
429
 * @method string getResourceGroupId()
430
 * @method string getNextToken()
431
 * @method string getMaxResults()
432
 */
433
class ListClusters extends Rpc
434
{
435
436
    /**
437
     * @param string $value
438
     *
439
     * @return $this
440
     */
441
    public function withResourceGroupId($value)
442
    {
443
        $this->data['ResourceGroupId'] = $value;
444
        $this->options['form_params']['ResourceGroupId'] = $value;
445
446
        return $this;
447
    }
448
449
    /**
450
     * @param string $value
451
     *
452
     * @return $this
453
     */
454
    public function withNextToken($value)
455
    {
456
        $this->data['NextToken'] = $value;
457
        $this->options['form_params']['NextToken'] = $value;
458
459
        return $this;
460
    }
461
462
    /**
463
     * @param string $value
464
     *
465
     * @return $this
466
     */
467
    public function withMaxResults($value)
468
    {
469
        $this->data['MaxResults'] = $value;
470
        $this->options['form_params']['MaxResults'] = $value;
471
472
        return $this;
473
    }
474
}
475
476
/**
477
 * @method string getMachineType()
478
 * @method string getNextToken()
479
 * @method string getMaxResults()
480
 */
481
class ListFreeNodes extends Rpc
482
{
483
484
    /**
485
     * @param string $value
486
     *
487
     * @return $this
488
     */
489
    public function withMachineType($value)
490
    {
491
        $this->data['MachineType'] = $value;
492
        $this->options['form_params']['MachineType'] = $value;
493
494
        return $this;
495
    }
496
497
    /**
498
     * @param string $value
499
     *
500
     * @return $this
501
     */
502
    public function withNextToken($value)
503
    {
504
        $this->data['NextToken'] = $value;
505
        $this->options['form_params']['NextToken'] = $value;
506
507
        return $this;
508
    }
509
510
    /**
511
     * @param string $value
512
     *
513
     * @return $this
514
     */
515
    public function withMaxResults($value)
516
    {
517
        $this->data['MaxResults'] = $value;
518
        $this->options['form_params']['MaxResults'] = $value;
519
520
        return $this;
521
    }
522
}
523
524
/**
525
 * @method string getNextToken()
526
 * @method $this withNextToken($value)
527
 * @method array getTag()
528
 * @method array getResourceId()
529
 * @method string getResourceType()
530
 * @method $this withResourceType($value)
531
 * @method string getService()
532
 * @method $this withService($value)
533
 */
534
class ListTagResources extends Rpc
535
{
536
537
    /**
538
     * @param array $tag
539
     *
540
     * @return $this
541
     */
542
	public function withTag(array $tag)
543
	{
544
	    $this->data['Tag'] = $tag;
545
		foreach ($tag as $depth1 => $depth1Value) {
546
			if(isset($depth1Value['Value'])){
547
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
548
			}
549
			if(isset($depth1Value['Key'])){
550
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
551
			}
552
		}
553
554
		return $this;
555
    }
556
557
    /**
558
     * @param array $resourceId
559
     *
560
     * @return $this
561
     */
562
	public function withResourceId(array $resourceId)
563
	{
564
	    $this->data['ResourceId'] = $resourceId;
565
		foreach ($resourceId as $i => $iValue) {
566
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
567
		}
568
569
		return $this;
570
    }
571
}
572
573
/**
574
 * @method string getIgnoreFailedNodeTasks()
575
 * @method string getClusterId()
576
 * @method string getNodes()
577
 */
578
class RebootNodes extends Rpc
579
{
580
581
    /**
582
     * @param string $value
583
     *
584
     * @return $this
585
     */
586
    public function withIgnoreFailedNodeTasks($value)
587
    {
588
        $this->data['IgnoreFailedNodeTasks'] = $value;
589
        $this->options['form_params']['IgnoreFailedNodeTasks'] = $value;
590
591
        return $this;
592
    }
593
594
    /**
595
     * @param string $value
596
     *
597
     * @return $this
598
     */
599
    public function withClusterId($value)
600
    {
601
        $this->data['ClusterId'] = $value;
602
        $this->options['form_params']['ClusterId'] = $value;
603
604
        return $this;
605
    }
606
607
    /**
608
     * @param string $value
609
     *
610
     * @return $this
611
     */
612
    public function withNodes($value)
613
    {
614
        $this->data['Nodes'] = $value;
615
        $this->options['form_params']['Nodes'] = $value;
616
617
        return $this;
618
    }
619
}
620
621
/**
622
 * @method string getIgnoreFailedNodeTasks()
623
 * @method string getClusterId()
624
 * @method string getNodes()
625
 */
626
class ReimageNodes extends Rpc
627
{
628
629
    /**
630
     * @param string $value
631
     *
632
     * @return $this
633
     */
634
    public function withIgnoreFailedNodeTasks($value)
635
    {
636
        $this->data['IgnoreFailedNodeTasks'] = $value;
637
        $this->options['form_params']['IgnoreFailedNodeTasks'] = $value;
638
639
        return $this;
640
    }
641
642
    /**
643
     * @param string $value
644
     *
645
     * @return $this
646
     */
647
    public function withClusterId($value)
648
    {
649
        $this->data['ClusterId'] = $value;
650
        $this->options['form_params']['ClusterId'] = $value;
651
652
        return $this;
653
    }
654
655
    /**
656
     * @param string $value
657
     *
658
     * @return $this
659
     */
660
    public function withNodes($value)
661
    {
662
        $this->data['Nodes'] = $value;
663
        $this->options['form_params']['Nodes'] = $value;
664
665
        return $this;
666
    }
667
}
668
669
/**
670
 * @method string getIgnoreFailedNodeTasks()
671
 * @method string getClusterId()
672
 * @method string getNodeGroups()
673
 */
674
class ShrinkCluster extends Rpc
675
{
676
677
    /**
678
     * @param string $value
679
     *
680
     * @return $this
681
     */
682
    public function withIgnoreFailedNodeTasks($value)
683
    {
684
        $this->data['IgnoreFailedNodeTasks'] = $value;
685
        $this->options['form_params']['IgnoreFailedNodeTasks'] = $value;
686
687
        return $this;
688
    }
689
690
    /**
691
     * @param string $value
692
     *
693
     * @return $this
694
     */
695
    public function withClusterId($value)
696
    {
697
        $this->data['ClusterId'] = $value;
698
        $this->options['form_params']['ClusterId'] = $value;
699
700
        return $this;
701
    }
702
703
    /**
704
     * @param string $value
705
     *
706
     * @return $this
707
     */
708
    public function withNodeGroups($value)
709
    {
710
        $this->data['NodeGroups'] = $value;
711
        $this->options['form_params']['NodeGroups'] = $value;
712
713
        return $this;
714
    }
715
}
716
717
/**
718
 * @method array getTag()
719
 * @method array getResourceId()
720
 * @method string getResourceType()
721
 * @method $this withResourceType($value)
722
 * @method string getService()
723
 * @method $this withService($value)
724
 */
725
class TagResources extends Rpc
726
{
727
728
    /**
729
     * @param array $tag
730
     *
731
     * @return $this
732
     */
733
	public function withTag(array $tag)
734
	{
735
	    $this->data['Tag'] = $tag;
736
		foreach ($tag as $depth1 => $depth1Value) {
737
			if(isset($depth1Value['Value'])){
738
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
739
			}
740
			if(isset($depth1Value['Key'])){
741
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
742
			}
743
		}
744
745
		return $this;
746
    }
747
748
    /**
749
     * @param array $resourceId
750
     *
751
     * @return $this
752
     */
753
	public function withResourceId(array $resourceId)
754
	{
755
	    $this->data['ResourceId'] = $resourceId;
756
		foreach ($resourceId as $i => $iValue) {
757
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
758
		}
759
760
		return $this;
761
    }
762
}
763
764
/**
765
 * @method string getAll()
766
 * @method $this withAll($value)
767
 * @method array getResourceId()
768
 * @method string getResourceType()
769
 * @method $this withResourceType($value)
770
 * @method string getService()
771
 * @method $this withService($value)
772
 * @method array getTagKey()
773
 */
774
class UntagResources extends Rpc
775
{
776
777
    /**
778
     * @param array $resourceId
779
     *
780
     * @return $this
781
     */
782
	public function withResourceId(array $resourceId)
783
	{
784
	    $this->data['ResourceId'] = $resourceId;
785
		foreach ($resourceId as $i => $iValue) {
786
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
787
		}
788
789
		return $this;
790
    }
791
792
    /**
793
     * @param array $tagKey
794
     *
795
     * @return $this
796
     */
797
	public function withTagKey(array $tagKey)
798
	{
799
	    $this->data['TagKey'] = $tagKey;
800
		foreach ($tagKey as $i => $iValue) {
801
			$this->options['query']['TagKey.' . ($i + 1)] = $iValue;
802
		}
803
804
		return $this;
805
    }
806
}
807