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 ( 5f8edb...dc2b47 )
by
unknown
06:01
created

ValidateVirtualClusterName::withVcName()   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\OpenanalyticsOpen\V20180619;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method AddAccount addAccount(array $options = [])
9
 * @method AddEndPoint addEndPoint(array $options = [])
10
 * @method CancelQueryByExecuteId cancelQueryByExecuteId(array $options = [])
11
 * @method CancelQueryById cancelQueryById(array $options = [])
12
 * @method CreateInstance createInstance(array $options = [])
13
 * @method DeleteAccount deleteAccount(array $options = [])
14
 * @method DescribeTags describeTags(array $options = [])
15
 * @method GetAllowIP getAllowIP(array $options = [])
16
 * @method GetEndPoint getEndPoint(array $options = [])
17
 * @method GetEndPointByDomain getEndPointByDomain(array $options = [])
18
 * @method GetJobDetail getJobDetail(array $options = [])
19
 * @method GetJobLog getJobLog(array $options = [])
20
 * @method GetJobStatus getJobStatus(array $options = [])
21
 * @method KillSparkJob killSparkJob(array $options = [])
22
 * @method ListSparkJob listSparkJob(array $options = [])
23
 * @method ListTagResources listTagResources(array $options = [])
24
 * @method QueryAccountList queryAccountList(array $options = [])
25
 * @method QueryEndPointList queryEndPointList(array $options = [])
26
 * @method ReleaseInstance releaseInstance(array $options = [])
27
 * @method RemoveEndPoint removeEndPoint(array $options = [])
28
 * @method ResetMainPassword resetMainPassword(array $options = [])
29
 * @method SetAllowIP setAllowIP(array $options = [])
30
 * @method SubmitSparkJob submitSparkJob(array $options = [])
31
 * @method TagResources tagResources(array $options = [])
32
 * @method UnSubscribeRegion unSubscribeRegion(array $options = [])
33
 * @method UntagResources untagResources(array $options = [])
34
 * @method UpdateAccountPassword updateAccountPassword(array $options = [])
35
 * @method UpgradeInstance upgradeInstance(array $options = [])
36
 * @method ValidateVirtualClusterName validateVirtualClusterName(array $options = [])
37
 */
38
class OpenanalyticsOpenApiResolver extends ApiResolver
39
{
40
}
41
42
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
43
{
44
    /** @var string */
45
    public $product = 'openanalytics-open';
46
47
    /** @var string */
48
    public $version = '2018-06-19';
49
50
    /** @var string */
51
    public $method = 'POST';
52
53
    /** @var string */
54
    public $serviceCode = 'openanalytics';
55
}
56
57
/**
58
 * @method string getRamUid()
59
 * @method string getIsShort()
60
 * @method string getRemark()
61
 * @method string getPassword()
62
 * @method string getAccountName()
63
 * @method string getEnableKMS()
64
 * @method string getUseRandomPassword()
65
 */
66
class AddAccount extends Rpc
67
{
68
69
    /**
70
     * @param string $value
71
     *
72
     * @return $this
73
     */
74
    public function withRamUid($value)
75
    {
76
        $this->data['RamUid'] = $value;
77
        $this->options['form_params']['RamUid'] = $value;
78
79
        return $this;
80
    }
81
82
    /**
83
     * @param string $value
84
     *
85
     * @return $this
86
     */
87
    public function withIsShort($value)
88
    {
89
        $this->data['IsShort'] = $value;
90
        $this->options['form_params']['IsShort'] = $value;
91
92
        return $this;
93
    }
94
95
    /**
96
     * @param string $value
97
     *
98
     * @return $this
99
     */
100
    public function withRemark($value)
101
    {
102
        $this->data['Remark'] = $value;
103
        $this->options['form_params']['Remark'] = $value;
104
105
        return $this;
106
    }
107
108
    /**
109
     * @param string $value
110
     *
111
     * @return $this
112
     */
113
    public function withPassword($value)
114
    {
115
        $this->data['Password'] = $value;
116
        $this->options['form_params']['Password'] = $value;
117
118
        return $this;
119
    }
120
121
    /**
122
     * @param string $value
123
     *
124
     * @return $this
125
     */
126
    public function withAccountName($value)
127
    {
128
        $this->data['AccountName'] = $value;
129
        $this->options['form_params']['AccountName'] = $value;
130
131
        return $this;
132
    }
133
134
    /**
135
     * @param string $value
136
     *
137
     * @return $this
138
     */
139
    public function withEnableKMS($value)
140
    {
141
        $this->data['EnableKMS'] = $value;
142
        $this->options['form_params']['EnableKMS'] = $value;
143
144
        return $this;
145
    }
146
147
    /**
148
     * @param string $value
149
     *
150
     * @return $this
151
     */
152
    public function withUseRandomPassword($value)
153
    {
154
        $this->data['UseRandomPassword'] = $value;
155
        $this->options['form_params']['UseRandomPassword'] = $value;
156
157
        return $this;
158
    }
159
}
160
161
/**
162
 * @method string getProduct()
163
 * @method string getNetworkType()
164
 * @method string getVswitch()
165
 * @method string getZone()
166
 * @method string getVpcID()
167
 */
168
class AddEndPoint extends Rpc
169
{
170
171
    /**
172
     * @param string $value
173
     *
174
     * @return $this
175
     */
176
    public function withProduct($value)
177
    {
178
        $this->data['Product'] = $value;
179
        $this->options['form_params']['Product'] = $value;
180
181
        return $this;
182
    }
183
184
    /**
185
     * @param string $value
186
     *
187
     * @return $this
188
     */
189
    public function withNetworkType($value)
190
    {
191
        $this->data['NetworkType'] = $value;
192
        $this->options['form_params']['NetworkType'] = $value;
193
194
        return $this;
195
    }
196
197
    /**
198
     * @param string $value
199
     *
200
     * @return $this
201
     */
202
    public function withVswitch($value)
203
    {
204
        $this->data['Vswitch'] = $value;
205
        $this->options['form_params']['Vswitch'] = $value;
206
207
        return $this;
208
    }
209
210
    /**
211
     * @param string $value
212
     *
213
     * @return $this
214
     */
215
    public function withZone($value)
216
    {
217
        $this->data['Zone'] = $value;
218
        $this->options['form_params']['Zone'] = $value;
219
220
        return $this;
221
    }
222
223
    /**
224
     * @param string $value
225
     *
226
     * @return $this
227
     */
228
    public function withVpcID($value)
229
    {
230
        $this->data['VpcID'] = $value;
231
        $this->options['form_params']['VpcID'] = $value;
232
233
        return $this;
234
    }
235
}
236
237
/**
238
 * @method string getExecuteId()
239
 */
240
class CancelQueryByExecuteId extends Rpc
241
{
242
243
    /**
244
     * @param string $value
245
     *
246
     * @return $this
247
     */
248
    public function withExecuteId($value)
249
    {
250
        $this->data['ExecuteId'] = $value;
251
        $this->options['form_params']['ExecuteId'] = $value;
252
253
        return $this;
254
    }
255
}
256
257
/**
258
 * @method string getQueryId()
259
 */
260
class CancelQueryById extends Rpc
261
{
262
263
    /**
264
     * @param string $value
265
     *
266
     * @return $this
267
     */
268
    public function withQueryId($value)
269
    {
270
        $this->data['QueryId'] = $value;
271
        $this->options['form_params']['QueryId'] = $value;
272
273
        return $this;
274
    }
275
}
276
277
/**
278
 * @method string getChargeType()
279
 * @method string getInstanceType()
280
 * @method string getComponent()
281
 */
282
class CreateInstance extends Rpc
283
{
284
285
    /**
286
     * @param string $value
287
     *
288
     * @return $this
289
     */
290
    public function withChargeType($value)
291
    {
292
        $this->data['ChargeType'] = $value;
293
        $this->options['form_params']['ChargeType'] = $value;
294
295
        return $this;
296
    }
297
298
    /**
299
     * @param string $value
300
     *
301
     * @return $this
302
     */
303
    public function withInstanceType($value)
304
    {
305
        $this->data['InstanceType'] = $value;
306
        $this->options['form_params']['InstanceType'] = $value;
307
308
        return $this;
309
    }
310
311
    /**
312
     * @param string $value
313
     *
314
     * @return $this
315
     */
316
    public function withComponent($value)
317
    {
318
        $this->data['Component'] = $value;
319
        $this->options['form_params']['Component'] = $value;
320
321
        return $this;
322
    }
323
}
324
325
/**
326
 * @method string getAccountName()
327
 * @method string getIsShort()
328
 * @method string getIsServiceUser()
329
 */
330
class DeleteAccount extends Rpc
331
{
332
333
    /**
334
     * @param string $value
335
     *
336
     * @return $this
337
     */
338
    public function withAccountName($value)
339
    {
340
        $this->data['AccountName'] = $value;
341
        $this->options['form_params']['AccountName'] = $value;
342
343
        return $this;
344
    }
345
346
    /**
347
     * @param string $value
348
     *
349
     * @return $this
350
     */
351
    public function withIsShort($value)
352
    {
353
        $this->data['IsShort'] = $value;
354
        $this->options['form_params']['IsShort'] = $value;
355
356
        return $this;
357
    }
358
359
    /**
360
     * @param string $value
361
     *
362
     * @return $this
363
     */
364
    public function withIsServiceUser($value)
365
    {
366
        $this->data['IsServiceUser'] = $value;
367
        $this->options['form_params']['IsServiceUser'] = $value;
368
369
        return $this;
370
    }
371
}
372
373
/**
374
 * @method string getResourceType()
375
 * @method $this withResourceType($value)
376
 */
377
class DescribeTags extends Rpc
378
{
379
}
380
381
/**
382
 * @method string getNetworkType()
383
 * @method string getProduct()
384
 */
385
class GetAllowIP extends Rpc
386
{
387
388
    /**
389
     * @param string $value
390
     *
391
     * @return $this
392
     */
393
    public function withNetworkType($value)
394
    {
395
        $this->data['NetworkType'] = $value;
396
        $this->options['form_params']['NetworkType'] = $value;
397
398
        return $this;
399
    }
400
401
    /**
402
     * @param string $value
403
     *
404
     * @return $this
405
     */
406
    public function withProduct($value)
407
    {
408
        $this->data['Product'] = $value;
409
        $this->options['form_params']['Product'] = $value;
410
411
        return $this;
412
    }
413
}
414
415
/**
416
 * @method string getEndPointID()
417
 */
418
class GetEndPoint extends Rpc
419
{
420
421
    /**
422
     * @param string $value
423
     *
424
     * @return $this
425
     */
426
    public function withEndPointID($value)
427
    {
428
        $this->data['EndPointID'] = $value;
429
        $this->options['form_params']['EndPointID'] = $value;
430
431
        return $this;
432
    }
433
}
434
435
/**
436
 * @method string getDomainURL()
437
 */
438
class GetEndPointByDomain extends Rpc
439
{
440
441
    /**
442
     * @param string $value
443
     *
444
     * @return $this
445
     */
446
    public function withDomainURL($value)
447
    {
448
        $this->data['DomainURL'] = $value;
449
        $this->options['form_params']['DomainURL'] = $value;
450
451
        return $this;
452
    }
453
}
454
455
/**
456
 * @method string getJobId()
457
 * @method string getVcName()
458
 */
459
class GetJobDetail extends Rpc
460
{
461
462
    /**
463
     * @param string $value
464
     *
465
     * @return $this
466
     */
467
    public function withJobId($value)
468
    {
469
        $this->data['JobId'] = $value;
470
        $this->options['form_params']['JobId'] = $value;
471
472
        return $this;
473
    }
474
475
    /**
476
     * @param string $value
477
     *
478
     * @return $this
479
     */
480
    public function withVcName($value)
481
    {
482
        $this->data['VcName'] = $value;
483
        $this->options['form_params']['VcName'] = $value;
484
485
        return $this;
486
    }
487
}
488
489
/**
490
 * @method string getJobId()
491
 * @method string getVcName()
492
 */
493
class GetJobLog extends Rpc
494
{
495
496
    /**
497
     * @param string $value
498
     *
499
     * @return $this
500
     */
501
    public function withJobId($value)
502
    {
503
        $this->data['JobId'] = $value;
504
        $this->options['form_params']['JobId'] = $value;
505
506
        return $this;
507
    }
508
509
    /**
510
     * @param string $value
511
     *
512
     * @return $this
513
     */
514
    public function withVcName($value)
515
    {
516
        $this->data['VcName'] = $value;
517
        $this->options['form_params']['VcName'] = $value;
518
519
        return $this;
520
    }
521
}
522
523
/**
524
 * @method string getJobId()
525
 * @method string getVcName()
526
 */
527
class GetJobStatus extends Rpc
528
{
529
530
    /**
531
     * @param string $value
532
     *
533
     * @return $this
534
     */
535
    public function withJobId($value)
536
    {
537
        $this->data['JobId'] = $value;
538
        $this->options['form_params']['JobId'] = $value;
539
540
        return $this;
541
    }
542
543
    /**
544
     * @param string $value
545
     *
546
     * @return $this
547
     */
548
    public function withVcName($value)
549
    {
550
        $this->data['VcName'] = $value;
551
        $this->options['form_params']['VcName'] = $value;
552
553
        return $this;
554
    }
555
}
556
557
/**
558
 * @method string getJobId()
559
 * @method string getVcName()
560
 */
561
class KillSparkJob extends Rpc
562
{
563
564
    /**
565
     * @param string $value
566
     *
567
     * @return $this
568
     */
569
    public function withJobId($value)
570
    {
571
        $this->data['JobId'] = $value;
572
        $this->options['form_params']['JobId'] = $value;
573
574
        return $this;
575
    }
576
577
    /**
578
     * @param string $value
579
     *
580
     * @return $this
581
     */
582
    public function withVcName($value)
583
    {
584
        $this->data['VcName'] = $value;
585
        $this->options['form_params']['VcName'] = $value;
586
587
        return $this;
588
    }
589
}
590
591
/**
592
 * @method string getPageNumber()
593
 * @method $this withPageNumber($value)
594
 * @method string getCondition()
595
 * @method $this withCondition($value)
596
 * @method string getPageSize()
597
 * @method $this withPageSize($value)
598
 * @method string getVcName()
599
 * @method $this withVcName($value)
600
 */
601
class ListSparkJob extends Rpc
602
{
603
}
604
605
/**
606
 * @method array getResourceId()
607
 * @method string getResourceType()
608
 * @method $this withResourceType($value)
609
 * @method string getNextToken()
610
 * @method $this withNextToken($value)
611
 * @method array getTag()
612
 * @method string getCategory()
613
 * @method $this withCategory($value)
614
 */
615
class ListTagResources extends Rpc
616
{
617
618
    /**
619
     * @param array $resourceId
620
     *
621
     * @return $this
622
     */
623
	public function withResourceId(array $resourceId)
624
	{
625
	    $this->data['ResourceId'] = $resourceId;
626
		foreach ($resourceId as $i => $iValue) {
627
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
628
		}
629
630
		return $this;
631
    }
632
633
    /**
634
     * @param array $tag
635
     *
636
     * @return $this
637
     */
638
	public function withTag(array $tag)
639
	{
640
	    $this->data['Tag'] = $tag;
641
		foreach ($tag as $depth1 => $depth1Value) {
642
			if(isset($depth1Value['Key'])){
643
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
644
			}
645
			if(isset($depth1Value['Value'])){
646
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
647
			}
648
		}
649
650
		return $this;
651
    }
652
}
653
654
/**
655
 * @method string getPageSize()
656
 * @method string getPageNumber()
657
 */
658
class QueryAccountList extends Rpc
659
{
660
661
    /**
662
     * @param string $value
663
     *
664
     * @return $this
665
     */
666
    public function withPageSize($value)
667
    {
668
        $this->data['PageSize'] = $value;
669
        $this->options['form_params']['PageSize'] = $value;
670
671
        return $this;
672
    }
673
674
    /**
675
     * @param string $value
676
     *
677
     * @return $this
678
     */
679
    public function withPageNumber($value)
680
    {
681
        $this->data['PageNumber'] = $value;
682
        $this->options['form_params']['PageNumber'] = $value;
683
684
        return $this;
685
    }
686
}
687
688
class QueryEndPointList extends Rpc
689
{
690
}
691
692
/**
693
 * @method string getInstanceId()
694
 */
695
class ReleaseInstance extends Rpc
696
{
697
698
    /**
699
     * @param string $value
700
     *
701
     * @return $this
702
     */
703
    public function withInstanceId($value)
704
    {
705
        $this->data['InstanceId'] = $value;
706
        $this->options['form_params']['InstanceId'] = $value;
707
708
        return $this;
709
    }
710
}
711
712
/**
713
 * @method string getEndPointID()
714
 */
715
class RemoveEndPoint extends Rpc
716
{
717
718
    /**
719
     * @param string $value
720
     *
721
     * @return $this
722
     */
723
    public function withEndPointID($value)
724
    {
725
        $this->data['EndPointID'] = $value;
726
        $this->options['form_params']['EndPointID'] = $value;
727
728
        return $this;
729
    }
730
}
731
732
/**
733
 * @method string getExternalUid()
734
 * @method string getInitPassword()
735
 * @method string getExternalAliyunUid()
736
 * @method string getUseRandomPassword()
737
 * @method string getEnableKMS()
738
 * @method string getExternalBizAliyunUid()
739
 */
740
class ResetMainPassword extends Rpc
741
{
742
743
    /**
744
     * @param string $value
745
     *
746
     * @return $this
747
     */
748
    public function withExternalUid($value)
749
    {
750
        $this->data['ExternalUid'] = $value;
751
        $this->options['form_params']['ExternalUid'] = $value;
752
753
        return $this;
754
    }
755
756
    /**
757
     * @param string $value
758
     *
759
     * @return $this
760
     */
761
    public function withInitPassword($value)
762
    {
763
        $this->data['InitPassword'] = $value;
764
        $this->options['form_params']['InitPassword'] = $value;
765
766
        return $this;
767
    }
768
769
    /**
770
     * @param string $value
771
     *
772
     * @return $this
773
     */
774
    public function withExternalAliyunUid($value)
775
    {
776
        $this->data['ExternalAliyunUid'] = $value;
777
        $this->options['form_params']['ExternalAliyunUid'] = $value;
778
779
        return $this;
780
    }
781
782
    /**
783
     * @param string $value
784
     *
785
     * @return $this
786
     */
787
    public function withUseRandomPassword($value)
788
    {
789
        $this->data['UseRandomPassword'] = $value;
790
        $this->options['form_params']['UseRandomPassword'] = $value;
791
792
        return $this;
793
    }
794
795
    /**
796
     * @param string $value
797
     *
798
     * @return $this
799
     */
800
    public function withEnableKMS($value)
801
    {
802
        $this->data['EnableKMS'] = $value;
803
        $this->options['form_params']['EnableKMS'] = $value;
804
805
        return $this;
806
    }
807
808
    /**
809
     * @param string $value
810
     *
811
     * @return $this
812
     */
813
    public function withExternalBizAliyunUid($value)
814
    {
815
        $this->data['ExternalBizAliyunUid'] = $value;
816
        $this->options['form_params']['ExternalBizAliyunUid'] = $value;
817
818
        return $this;
819
    }
820
}
821
822
/**
823
 * @method string getNetworkType()
824
 * @method string getProduct()
825
 * @method string getAllowIP()
826
 * @method string getAppend()
827
 */
828
class SetAllowIP extends Rpc
829
{
830
831
    /**
832
     * @param string $value
833
     *
834
     * @return $this
835
     */
836
    public function withNetworkType($value)
837
    {
838
        $this->data['NetworkType'] = $value;
839
        $this->options['form_params']['NetworkType'] = $value;
840
841
        return $this;
842
    }
843
844
    /**
845
     * @param string $value
846
     *
847
     * @return $this
848
     */
849
    public function withProduct($value)
850
    {
851
        $this->data['Product'] = $value;
852
        $this->options['form_params']['Product'] = $value;
853
854
        return $this;
855
    }
856
857
    /**
858
     * @param string $value
859
     *
860
     * @return $this
861
     */
862
    public function withAllowIP($value)
863
    {
864
        $this->data['AllowIP'] = $value;
865
        $this->options['form_params']['AllowIP'] = $value;
866
867
        return $this;
868
    }
869
870
    /**
871
     * @param string $value
872
     *
873
     * @return $this
874
     */
875
    public function withAppend($value)
876
    {
877
        $this->data['Append'] = $value;
878
        $this->options['form_params']['Append'] = $value;
879
880
        return $this;
881
    }
882
}
883
884
/**
885
 * @method string getConfigJson()
886
 * @method string getVcName()
887
 */
888
class SubmitSparkJob extends Rpc
889
{
890
891
    /**
892
     * @param string $value
893
     *
894
     * @return $this
895
     */
896
    public function withConfigJson($value)
897
    {
898
        $this->data['ConfigJson'] = $value;
899
        $this->options['form_params']['ConfigJson'] = $value;
900
901
        return $this;
902
    }
903
904
    /**
905
     * @param string $value
906
     *
907
     * @return $this
908
     */
909
    public function withVcName($value)
910
    {
911
        $this->data['VcName'] = $value;
912
        $this->options['form_params']['VcName'] = $value;
913
914
        return $this;
915
    }
916
}
917
918
/**
919
 * @method array getResourceId()
920
 * @method string getResourceType()
921
 * @method $this withResourceType($value)
922
 * @method array getTag()
923
 */
924
class TagResources extends Rpc
925
{
926
927
    /**
928
     * @param array $resourceId
929
     *
930
     * @return $this
931
     */
932
	public function withResourceId(array $resourceId)
933
	{
934
	    $this->data['ResourceId'] = $resourceId;
935
		foreach ($resourceId as $i => $iValue) {
936
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
937
		}
938
939
		return $this;
940
    }
941
942
    /**
943
     * @param array $tag
944
     *
945
     * @return $this
946
     */
947
	public function withTag(array $tag)
948
	{
949
	    $this->data['Tag'] = $tag;
950
		foreach ($tag as $depth1 => $depth1Value) {
951
			if(isset($depth1Value['Key'])){
952
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
953
			}
954
			if(isset($depth1Value['Value'])){
955
				$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
956
			}
957
		}
958
959
		return $this;
960
    }
961
}
962
963
class UnSubscribeRegion extends Rpc
964
{
965
}
966
967
/**
968
 * @method string getAll()
969
 * @method $this withAll($value)
970
 * @method array getResourceId()
971
 * @method string getResourceType()
972
 * @method $this withResourceType($value)
973
 * @method array getTagKey()
974
 */
975
class UntagResources extends Rpc
976
{
977
978
    /**
979
     * @param array $resourceId
980
     *
981
     * @return $this
982
     */
983
	public function withResourceId(array $resourceId)
984
	{
985
	    $this->data['ResourceId'] = $resourceId;
986
		foreach ($resourceId as $i => $iValue) {
987
			$this->options['query']['ResourceId.' . ($i + 1)] = $iValue;
988
		}
989
990
		return $this;
991
    }
992
993
    /**
994
     * @param array $tagKey
995
     *
996
     * @return $this
997
     */
998
	public function withTagKey(array $tagKey)
999
	{
1000
	    $this->data['TagKey'] = $tagKey;
1001
		foreach ($tagKey as $i => $iValue) {
1002
			$this->options['query']['TagKey.' . ($i + 1)] = $iValue;
1003
		}
1004
1005
		return $this;
1006
    }
1007
}
1008
1009
/**
1010
 * @method string getIsShort()
1011
 * @method string getPassword()
1012
 * @method string getAccountName()
1013
 * @method string getEnableKMS()
1014
 * @method string getUseRandomPassword()
1015
 */
1016
class UpdateAccountPassword extends Rpc
1017
{
1018
1019
    /**
1020
     * @param string $value
1021
     *
1022
     * @return $this
1023
     */
1024
    public function withIsShort($value)
1025
    {
1026
        $this->data['IsShort'] = $value;
1027
        $this->options['form_params']['IsShort'] = $value;
1028
1029
        return $this;
1030
    }
1031
1032
    /**
1033
     * @param string $value
1034
     *
1035
     * @return $this
1036
     */
1037
    public function withPassword($value)
1038
    {
1039
        $this->data['Password'] = $value;
1040
        $this->options['form_params']['Password'] = $value;
1041
1042
        return $this;
1043
    }
1044
1045
    /**
1046
     * @param string $value
1047
     *
1048
     * @return $this
1049
     */
1050
    public function withAccountName($value)
1051
    {
1052
        $this->data['AccountName'] = $value;
1053
        $this->options['form_params']['AccountName'] = $value;
1054
1055
        return $this;
1056
    }
1057
1058
    /**
1059
     * @param string $value
1060
     *
1061
     * @return $this
1062
     */
1063
    public function withEnableKMS($value)
1064
    {
1065
        $this->data['EnableKMS'] = $value;
1066
        $this->options['form_params']['EnableKMS'] = $value;
1067
1068
        return $this;
1069
    }
1070
1071
    /**
1072
     * @param string $value
1073
     *
1074
     * @return $this
1075
     */
1076
    public function withUseRandomPassword($value)
1077
    {
1078
        $this->data['UseRandomPassword'] = $value;
1079
        $this->options['form_params']['UseRandomPassword'] = $value;
1080
1081
        return $this;
1082
    }
1083
}
1084
1085
/**
1086
 * @method string getInstanceId()
1087
 * @method string getChargeType()
1088
 * @method string getInstanceType()
1089
 * @method string getComponent()
1090
 */
1091
class UpgradeInstance extends Rpc
1092
{
1093
1094
    /**
1095
     * @param string $value
1096
     *
1097
     * @return $this
1098
     */
1099
    public function withInstanceId($value)
1100
    {
1101
        $this->data['InstanceId'] = $value;
1102
        $this->options['form_params']['InstanceId'] = $value;
1103
1104
        return $this;
1105
    }
1106
1107
    /**
1108
     * @param string $value
1109
     *
1110
     * @return $this
1111
     */
1112
    public function withChargeType($value)
1113
    {
1114
        $this->data['ChargeType'] = $value;
1115
        $this->options['form_params']['ChargeType'] = $value;
1116
1117
        return $this;
1118
    }
1119
1120
    /**
1121
     * @param string $value
1122
     *
1123
     * @return $this
1124
     */
1125
    public function withInstanceType($value)
1126
    {
1127
        $this->data['InstanceType'] = $value;
1128
        $this->options['form_params']['InstanceType'] = $value;
1129
1130
        return $this;
1131
    }
1132
1133
    /**
1134
     * @param string $value
1135
     *
1136
     * @return $this
1137
     */
1138
    public function withComponent($value)
1139
    {
1140
        $this->data['Component'] = $value;
1141
        $this->options['form_params']['Component'] = $value;
1142
1143
        return $this;
1144
    }
1145
}
1146
1147
/**
1148
 * @method string getVcName()
1149
 */
1150
class ValidateVirtualClusterName extends Rpc
1151
{
1152
1153
    /**
1154
     * @param string $value
1155
     *
1156
     * @return $this
1157
     */
1158
    public function withVcName($value)
1159
    {
1160
        $this->data['VcName'] = $value;
1161
        $this->options['form_params']['VcName'] = $value;
1162
1163
        return $this;
1164
    }
1165
}
1166