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 ( 32cd9f...cc12f9 )
by
unknown
06:36
created

DescribeEdgeClusterAttachScripts::withNamePrefix()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
c 0
b 0
f 0
ccs 0
cts 0
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace AlibabaCloud\CS\V20151215;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method AttachInstances attachInstances(array $options = [])
9
 * @method CancelClusterUpgrade cancelClusterUpgrade(array $options = [])
10
 * @method CancelComponentUpgrade cancelComponentUpgrade(array $options = [])
11
 * @method CancelWorkflow cancelWorkflow(array $options = [])
12
 * @method CreateCluster createCluster(array $options = [])
13
 * @method CreateTemplate createTemplate(array $options = [])
14
 * @method CreateTriggerHook createTriggerHook(array $options = [])
15
 * @method DeleteCluster deleteCluster(array $options = [])
16
 * @method DeleteClusterNodes deleteClusterNodes(array $options = [])
17
 * @method DeleteTemplate deleteTemplate(array $options = [])
18
 * @method DeleteTriggerHook deleteTriggerHook(array $options = [])
19
 * @method DescirbeWorkflow descirbeWorkflow(array $options = [])
20
 * @method DescribeAddons describeAddons(array $options = [])
21
 * @method DescribeApiVersion describeApiVersion(array $options = [])
22
 * @method DescribeClusterAddonsVersion describeClusterAddonsVersion(array $options = [])
23
 * @method DescribeClusterAddonUpgradeStatus describeClusterAddonUpgradeStatus(array $options = [])
24
 * @method DescribeClusterAttachScripts describeClusterAttachScripts(array $options = [])
25
 * @method DescribeClusterDetail describeClusterDetail(array $options = [])
26
 * @method DescribeClusterLogs describeClusterLogs(array $options = [])
27
 * @method DescribeClusterNodes describeClusterNodes(array $options = [])
28
 * @method DescribeClusterResources describeClusterResources(array $options = [])
29
 * @method DescribeClusters describeClusters(array $options = [])
30
 * @method DescribeClusterUserKubeconfig describeClusterUserKubeconfig(array $options = [])
31
 * @method DescribeClusterV2UserKubeconfig describeClusterV2UserKubeconfig(array $options = [])
32
 * @method DescribeExternalAgent describeExternalAgent(array $options = [])
33
 * @method DescribeTemplates describeTemplates(array $options = [])
34
 * @method DescribeUserQuota describeUserQuota(array $options = [])
35
 * @method DescribeWorkflows describeWorkflows(array $options = [])
36
 * @method GetUpgradeStatus getUpgradeStatus(array $options = [])
37
 * @method InstallClusterAddons installClusterAddons(array $options = [])
38
 * @method ListTagResources listTagResources(array $options = [])
39
 * @method ModifyCluster modifyCluster(array $options = [])
40
 * @method ModifyClusterTags modifyClusterTags(array $options = [])
41
 * @method PauseClusterUpgrade pauseClusterUpgrade(array $options = [])
42
 * @method PauseComponentUpgrade pauseComponentUpgrade(array $options = [])
43
 * @method RemoveClusterNodes removeClusterNodes(array $options = [])
44
 * @method RemoveWorkflow removeWorkflow(array $options = [])
45
 * @method ResumeComponentUpgrade resumeComponentUpgrade(array $options = [])
46
 * @method ResumeUpgradeCluster resumeUpgradeCluster(array $options = [])
47
 * @method ScaleCluster scaleCluster(array $options = [])
48
 * @method ScaleOutCluster scaleOutCluster(array $options = [])
49
 * @method StartWorkflow startWorkflow(array $options = [])
50
 * @method UnInstallClusterAddons unInstallClusterAddons(array $options = [])
51
 * @method UpdateK8sClusterUserConfigExpire updateK8sClusterUserConfigExpire(array $options = [])
52
 * @method UpgradeCluster upgradeCluster(array $options = [])
53
 * @method UpgradeClusterAddons upgradeClusterAddons(array $options = [])
54
 */
55
class CSApiResolver extends ApiResolver
56
{
57
}
58
59
class Roa extends \AlibabaCloud\Client\Resolver\Roa
60
{
61
    /** @var string */
62
    public $product = 'CS';
63
64
    /** @var string */
65
    public $version = '2015-12-15';
66
67
    /** @var string */
68
    public $method = 'POST';
69
}
70
71
/**
72
 * @method string getPassword()
73
 * @method string getKeepInstanceName()
74
 * @method string getKeyPair()
75
 * @method string getCpuPolicy()
76
 * @method string getClusterId()
77
 * @method $this withClusterId($value)
78
 * @method string getFormatDisk()
79
 */
80
class AttachInstances extends Roa
81
{
82
    /** @var string */
83
    public $pathPattern = '/clusters/[ClusterId]/attach';
84
85
    /**
86
     * @param string $value
87
     *
88
     * @return $this
89
     */
90
    public function withPassword($value)
91
    {
92
        $this->data['Password'] = $value;
93
        $this->options['form_params']['password'] = $value;
94
95
        return $this;
96
    }
97
98
    /**
99
     * @param string $value
100
     *
101
     * @return $this
102
     */
103
    public function withKeepInstanceName($value)
104
    {
105
        $this->data['KeepInstanceName'] = $value;
106
        $this->options['form_params']['keep_instance_name'] = $value;
107
108
        return $this;
109
    }
110
111
    /**
112
     * @param string $value
113
     *
114
     * @return $this
115
     */
116
    public function withKeyPair($value)
117
    {
118
        $this->data['KeyPair'] = $value;
119
        $this->options['form_params']['key_pair'] = $value;
120
121
        return $this;
122
    }
123
124
    /**
125
     * @param string $value
126
     *
127
     * @return $this
128
     */
129
    public function withCpuPolicy($value)
130
    {
131
        $this->data['CpuPolicy'] = $value;
132
        $this->options['form_params']['cpu_policy'] = $value;
133
134
        return $this;
135
    }
136
137
    /**
138
     * @param string $value
139
     *
140
     * @return $this
141
     */
142
    public function withFormatDisk($value)
143
    {
144
        $this->data['FormatDisk'] = $value;
145
        $this->options['form_params']['format_disk'] = $value;
146
147
        return $this;
148
    }
149
}
150
151
/**
152
 * @method string getClusterId()
153
 * @method $this withClusterId($value)
154
 */
155
class CancelClusterUpgrade extends Roa
156
{
157
    /** @var string */
158
    public $pathPattern = '/api/v2/clusters/[ClusterId]/upgrade/cancel';
159
}
160
161
/**
162
 * @method string getComponentid()
163
 * @method string getClusterid()
164
 */
165
class CancelComponentUpgrade extends Roa
166
{
167
    /** @var string */
168
    public $pathPattern = '/clusters/[clusterid]/components/[componentid]/cancel';
169
170
    /**
171
     * @param string $value
172
     *
173
     * @return $this
174
     */
175
    public function withComponentid($value)
176
    {
177
        $this->data['Componentid'] = $value;
178
        $this->pathParameters['componentid'] = $value;
179
180
        return $this;
181
    }
182
183
    /**
184
     * @param string $value
185
     *
186
     * @return $this
187
     */
188
    public function withClusterid($value)
189
    {
190
        $this->data['Clusterid'] = $value;
191
        $this->pathParameters['clusterid'] = $value;
192
193
        return $this;
194
    }
195
}
196
197
/**
198
 * @method string getWorkflowName()
199
 */
200
class CancelWorkflow extends Roa
201
{
202
    /** @var string */
203
    public $pathPattern = '/gs/workflow/[workflowName]';
204
205
    /** @var string */
206
    public $method = 'PUT';
207
208
    /**
209
     * @param string $value
210
     *
211
     * @return $this
212
     */
213
    public function withWorkflowName($value)
214
    {
215
        $this->data['WorkflowName'] = $value;
216
        $this->pathParameters['workflowName'] = $value;
217
218
        return $this;
219
    }
220
}
221
222
/**
223
 * @method string getProxyMode()
224
 * @method string getMasterSystemDiskCategory()
225
 * @method string getCloudMonitorFlags()
226
 * @method string getMasterPeriod()
227
 * @method string getSshFlags()
228
 * @method string getSecurityGroupId()
229
 * @method string getContainerCidr()
230
 * @method string getClusterType()
231
 * @method string getEndpointPublicAccess()
232
 * @method string getWorkerAutoRenew()
233
 * @method string getPlatform()
234
 * @method string getNodePortRange()
235
 * @method string getServiceCidr()
236
 * @method string getLoginPassword()
237
 * @method string getKubernetesVersion()
238
 * @method string getMasterPeriodUnit()
239
 * @method string getMasterSystemDiskSize()
240
 * @method string getMasterCount()
241
 * @method string getNumOfNodes()
242
 * @method string getDeletionProtection()
243
 * @method string getKeyPair()
244
 * @method string getWorkerDataDisk()
245
 * @method string getMasterAutoRenew()
246
 * @method string getRegionId()
247
 * @method string getSnatEntry()
248
 * @method string getWorkerSystemDiskCategory()
249
 * @method string getRuntime()
250
 * @method string getWorkerPeriodUnit()
251
 * @method string getMasterInstanceChargeType()
252
 * @method string getNodeCidrMask()
253
 * @method string getWorkerAutoRenewPeriod()
254
 * @method string getMasterAutoRenewPeriod()
255
 * @method string getWorkerPeriod()
256
 * @method string getTimeoutMins()
257
 * @method string getWorkerSystemDiskSize()
258
 * @method string getOsType()
259
 * @method string getCpuPolicy()
260
 * @method string getVpcid()
261
 * @method string getName()
262
 * @method string getDisableRollback()
263
 * @method string getWorkerInstanceChargeType()
264
 */
265
class CreateCluster extends Roa
266
{
267
    /** @var string */
268
    public $pathPattern = '/clusters';
269
270
    /**
271
     * @param string $value
272
     *
273
     * @return $this
274
     */
275
    public function withProxyMode($value)
276
    {
277
        $this->data['ProxyMode'] = $value;
278
        $this->options['form_params']['proxy_mode'] = $value;
279
280
        return $this;
281
    }
282
283
    /**
284
     * @param string $value
285
     *
286
     * @return $this
287
     */
288
    public function withMasterSystemDiskCategory($value)
289
    {
290
        $this->data['MasterSystemDiskCategory'] = $value;
291
        $this->options['form_params']['master_system_disk_category'] = $value;
292
293
        return $this;
294
    }
295
296
    /**
297
     * @param string $value
298
     *
299
     * @return $this
300
     */
301
    public function withCloudMonitorFlags($value)
302
    {
303
        $this->data['CloudMonitorFlags'] = $value;
304
        $this->options['form_params']['cloud_monitor_flags'] = $value;
305
306
        return $this;
307
    }
308
309
    /**
310
     * @param string $value
311
     *
312
     * @return $this
313
     */
314
    public function withMasterPeriod($value)
315
    {
316
        $this->data['MasterPeriod'] = $value;
317
        $this->options['form_params']['master_period'] = $value;
318
319
        return $this;
320
    }
321
322
    /**
323
     * @param string $value
324
     *
325
     * @return $this
326
     */
327
    public function withSshFlags($value)
328
    {
329
        $this->data['SshFlags'] = $value;
330
        $this->options['form_params']['ssh_flags'] = $value;
331
332
        return $this;
333
    }
334
335
    /**
336
     * @param string $value
337
     *
338
     * @return $this
339
     */
340
    public function withSecurityGroupId($value)
341
    {
342
        $this->data['SecurityGroupId'] = $value;
343
        $this->options['form_params']['security_group_id'] = $value;
344
345
        return $this;
346
    }
347
348
    /**
349
     * @param string $value
350
     *
351
     * @return $this
352
     */
353
    public function withContainerCidr($value)
354
    {
355
        $this->data['ContainerCidr'] = $value;
356
        $this->options['form_params']['container_cidr'] = $value;
357
358
        return $this;
359
    }
360
361
    /**
362
     * @param string $value
363
     *
364
     * @return $this
365
     */
366
    public function withClusterType($value)
367
    {
368
        $this->data['ClusterType'] = $value;
369
        $this->options['form_params']['cluster_type'] = $value;
370
371
        return $this;
372
    }
373
374
    /**
375
     * @param string $value
376
     *
377
     * @return $this
378
     */
379
    public function withEndpointPublicAccess($value)
380
    {
381
        $this->data['EndpointPublicAccess'] = $value;
382
        $this->options['form_params']['endpoint_public_access'] = $value;
383
384
        return $this;
385
    }
386
387
    /**
388
     * @param string $value
389
     *
390
     * @return $this
391
     */
392
    public function withWorkerAutoRenew($value)
393
    {
394
        $this->data['WorkerAutoRenew'] = $value;
395
        $this->options['form_params']['worker_auto_renew'] = $value;
396
397
        return $this;
398
    }
399
400
    /**
401
     * @param string $value
402
     *
403
     * @return $this
404
     */
405
    public function withPlatform($value)
406
    {
407
        $this->data['Platform'] = $value;
408
        $this->options['form_params']['platform'] = $value;
409
410
        return $this;
411
    }
412
413
    /**
414
     * @param string $value
415
     *
416
     * @return $this
417
     */
418
    public function withNodePortRange($value)
419
    {
420
        $this->data['NodePortRange'] = $value;
421
        $this->options['form_params']['node_port_range'] = $value;
422
423
        return $this;
424
    }
425
426
    /**
427
     * @param string $value
428
     *
429
     * @return $this
430
     */
431
    public function withServiceCidr($value)
432
    {
433
        $this->data['ServiceCidr'] = $value;
434
        $this->options['form_params']['service_cidr'] = $value;
435
436
        return $this;
437
    }
438
439
    /**
440
     * @param string $value
441
     *
442
     * @return $this
443
     */
444
    public function withLoginPassword($value)
445
    {
446
        $this->data['LoginPassword'] = $value;
447
        $this->options['form_params']['login_password'] = $value;
448
449
        return $this;
450
    }
451
452
    /**
453
     * @param string $value
454
     *
455
     * @return $this
456
     */
457
    public function withKubernetesVersion($value)
458
    {
459
        $this->data['KubernetesVersion'] = $value;
460
        $this->options['form_params']['kubernetes_version'] = $value;
461
462
        return $this;
463
    }
464
465
    /**
466
     * @param string $value
467
     *
468
     * @return $this
469
     */
470
    public function withMasterPeriodUnit($value)
471
    {
472
        $this->data['MasterPeriodUnit'] = $value;
473
        $this->options['form_params']['master_period_unit'] = $value;
474
475
        return $this;
476
    }
477
478
    /**
479
     * @param string $value
480
     *
481
     * @return $this
482
     */
483
    public function withMasterSystemDiskSize($value)
484
    {
485
        $this->data['MasterSystemDiskSize'] = $value;
486
        $this->options['form_params']['master_system_disk_size'] = $value;
487
488
        return $this;
489
    }
490
491
    /**
492
     * @param string $value
493
     *
494
     * @return $this
495
     */
496
    public function withMasterCount($value)
497
    {
498
        $this->data['MasterCount'] = $value;
499
        $this->options['form_params']['master_count'] = $value;
500
501
        return $this;
502
    }
503
504
    /**
505
     * @param string $value
506
     *
507
     * @return $this
508
     */
509
    public function withNumOfNodes($value)
510
    {
511
        $this->data['NumOfNodes'] = $value;
512
        $this->options['form_params']['num_of_nodes'] = $value;
513
514
        return $this;
515
    }
516
517
    /**
518
     * @param string $value
519
     *
520
     * @return $this
521
     */
522
    public function withDeletionProtection($value)
523
    {
524
        $this->data['DeletionProtection'] = $value;
525
        $this->options['form_params']['deletion_protection'] = $value;
526
527
        return $this;
528
    }
529
530
    /**
531
     * @param string $value
532
     *
533
     * @return $this
534
     */
535
    public function withKeyPair($value)
536
    {
537
        $this->data['KeyPair'] = $value;
538
        $this->options['form_params']['key_pair'] = $value;
539
540
        return $this;
541
    }
542
543
    /**
544
     * @param string $value
545
     *
546
     * @return $this
547
     */
548
    public function withWorkerDataDisk($value)
549
    {
550
        $this->data['WorkerDataDisk'] = $value;
551
        $this->options['form_params']['worker_data_disk'] = $value;
552
553
        return $this;
554
    }
555
556
    /**
557
     * @param string $value
558
     *
559
     * @return $this
560
     */
561
    public function withMasterAutoRenew($value)
562
    {
563
        $this->data['MasterAutoRenew'] = $value;
564
        $this->options['form_params']['master_auto_renew'] = $value;
565
566
        return $this;
567
    }
568
569
    /**
570
     * @param string $value
571
     *
572
     * @return $this
573
     */
574
    public function withRegionId($value)
575
    {
576
        $this->data['RegionId'] = $value;
577
        $this->options['form_params']['region_id'] = $value;
578
579
        return $this;
580
    }
581
582
    /**
583
     * @param string $value
584
     *
585
     * @return $this
586
     */
587
    public function withSnatEntry($value)
588
    {
589
        $this->data['SnatEntry'] = $value;
590
        $this->options['form_params']['snat_entry'] = $value;
591
592
        return $this;
593
    }
594
595
    /**
596
     * @param string $value
597
     *
598
     * @return $this
599
     */
600
    public function withWorkerSystemDiskCategory($value)
601
    {
602
        $this->data['WorkerSystemDiskCategory'] = $value;
603
        $this->options['form_params']['worker_system_disk_category'] = $value;
604
605
        return $this;
606
    }
607
608
    /**
609
     * @param string $value
610
     *
611
     * @return $this
612
     */
613
    public function withRuntime($value)
614
    {
615
        $this->data['Runtime'] = $value;
616
        $this->options['form_params']['runtime'] = $value;
617
618
        return $this;
619
    }
620
621
    /**
622
     * @param string $value
623
     *
624
     * @return $this
625
     */
626
    public function withWorkerPeriodUnit($value)
627
    {
628
        $this->data['WorkerPeriodUnit'] = $value;
629
        $this->options['form_params']['worker_period_unit'] = $value;
630
631
        return $this;
632
    }
633
634
    /**
635
     * @param string $value
636
     *
637
     * @return $this
638
     */
639
    public function withMasterInstanceChargeType($value)
640
    {
641
        $this->data['MasterInstanceChargeType'] = $value;
642
        $this->options['form_params']['master_instance_charge_type'] = $value;
643
644
        return $this;
645
    }
646
647
    /**
648
     * @param string $value
649
     *
650
     * @return $this
651
     */
652
    public function withNodeCidrMask($value)
653
    {
654
        $this->data['NodeCidrMask'] = $value;
655
        $this->options['form_params']['node_cidr_mask'] = $value;
656
657
        return $this;
658
    }
659
660
    /**
661
     * @param string $value
662
     *
663
     * @return $this
664
     */
665
    public function withWorkerAutoRenewPeriod($value)
666
    {
667
        $this->data['WorkerAutoRenewPeriod'] = $value;
668
        $this->options['form_params']['worker_auto_renew_period'] = $value;
669
670
        return $this;
671
    }
672
673
    /**
674
     * @param string $value
675
     *
676
     * @return $this
677
     */
678
    public function withMasterAutoRenewPeriod($value)
679
    {
680
        $this->data['MasterAutoRenewPeriod'] = $value;
681
        $this->options['form_params']['master_auto_renew_period'] = $value;
682
683
        return $this;
684
    }
685
686
    /**
687
     * @param string $value
688
     *
689
     * @return $this
690
     */
691
    public function withWorkerPeriod($value)
692
    {
693
        $this->data['WorkerPeriod'] = $value;
694
        $this->options['form_params']['worker_period'] = $value;
695
696
        return $this;
697
    }
698
699
    /**
700
     * @param string $value
701
     *
702
     * @return $this
703
     */
704
    public function withTimeoutMins($value)
705
    {
706
        $this->data['TimeoutMins'] = $value;
707
        $this->options['form_params']['timeout_mins'] = $value;
708
709
        return $this;
710
    }
711
712
    /**
713
     * @param string $value
714
     *
715
     * @return $this
716
     */
717
    public function withWorkerSystemDiskSize($value)
718
    {
719
        $this->data['WorkerSystemDiskSize'] = $value;
720
        $this->options['form_params']['worker_system_disk_size'] = $value;
721
722
        return $this;
723
    }
724
725
    /**
726
     * @param string $value
727
     *
728
     * @return $this
729
     */
730
    public function withOsType($value)
731
    {
732
        $this->data['OsType'] = $value;
733
        $this->options['form_params']['os_type'] = $value;
734
735
        return $this;
736
    }
737
738
    /**
739
     * @param string $value
740
     *
741
     * @return $this
742
     */
743
    public function withCpuPolicy($value)
744
    {
745
        $this->data['CpuPolicy'] = $value;
746
        $this->options['form_params']['cpu_policy'] = $value;
747
748
        return $this;
749
    }
750
751
    /**
752
     * @param string $value
753
     *
754
     * @return $this
755
     */
756
    public function withVpcid($value)
757
    {
758
        $this->data['Vpcid'] = $value;
759
        $this->options['form_params']['vpcid'] = $value;
760
761
        return $this;
762
    }
763
764
    /**
765
     * @param string $value
766
     *
767
     * @return $this
768
     */
769
    public function withName($value)
770
    {
771
        $this->data['Name'] = $value;
772
        $this->options['form_params']['name'] = $value;
773
774
        return $this;
775
    }
776
777
    /**
778
     * @param string $value
779
     *
780
     * @return $this
781
     */
782
    public function withDisableRollback($value)
783
    {
784
        $this->data['DisableRollback'] = $value;
785
        $this->options['form_params']['disable_rollback'] = $value;
786
787
        return $this;
788
    }
789
790
    /**
791
     * @param string $value
792
     *
793
     * @return $this
794
     */
795
    public function withWorkerInstanceChargeType($value)
796
    {
797
        $this->data['WorkerInstanceChargeType'] = $value;
798
        $this->options['form_params']['worker_instance_charge_type'] = $value;
799
800
        return $this;
801
    }
802
}
803
804
/**
805
 * @method string getTemplate()
806
 * @method string getName()
807
 * @method string getTemplateType()
808
 * @method string getTags()
809
 */
810
class CreateTemplate extends Roa
811
{
812
    /** @var string */
813
    public $pathPattern = '/templates';
814
815
    /**
816
     * @param string $value
817
     *
818
     * @return $this
819
     */
820
    public function withTemplate($value)
821
    {
822
        $this->data['Template'] = $value;
823
        $this->options['form_params']['template'] = $value;
824
825
        return $this;
826
    }
827
828
    /**
829
     * @param string $value
830
     *
831
     * @return $this
832
     */
833
    public function withName($value)
834
    {
835
        $this->data['Name'] = $value;
836
        $this->options['form_params']['name'] = $value;
837
838
        return $this;
839
    }
840
841
    /**
842
     * @param string $value
843
     *
844
     * @return $this
845
     */
846
    public function withTemplateType($value)
847
    {
848
        $this->data['TemplateType'] = $value;
849
        $this->options['form_params']['template_type'] = $value;
850
851
        return $this;
852
    }
853
854
    /**
855
     * @param string $value
856
     *
857
     * @return $this
858
     */
859
    public function withTags($value)
860
    {
861
        $this->data['Tags'] = $value;
862
        $this->options['form_params']['tags'] = $value;
863
864
        return $this;
865
    }
866
}
867
868
/**
869
 * @method string getClusterId()
870
 * @method string getProjectId()
871
 * @method string getTriggerUrl()
872
 * @method string getRegionId()
873
 */
874
class CreateTriggerHook extends Roa
875
{
876
    /** @var string */
877
    public $pathPattern = '/hook/trigger';
878
879
    /** @var string */
880
    public $method = 'PUT';
881
882
    /**
883
     * @param string $value
884
     *
885
     * @return $this
886
     */
887
    public function withClusterId($value)
888
    {
889
        $this->data['ClusterId'] = $value;
890
        $this->options['form_params']['cluster_id'] = $value;
891
892
        return $this;
893
    }
894
895
    /**
896
     * @param string $value
897
     *
898
     * @return $this
899
     */
900
    public function withProjectId($value)
901
    {
902
        $this->data['ProjectId'] = $value;
903
        $this->options['form_params']['project_id'] = $value;
904
905
        return $this;
906
    }
907
908
    /**
909
     * @param string $value
910
     *
911
     * @return $this
912
     */
913
    public function withTriggerUrl($value)
914
    {
915
        $this->data['TriggerUrl'] = $value;
916
        $this->options['form_params']['trigger_url'] = $value;
917
918
        return $this;
919
    }
920
921
    /**
922
     * @param string $value
923
     *
924
     * @return $this
925
     */
926
    public function withRegionId($value)
927
    {
928
        $this->data['RegionId'] = $value;
929
        $this->options['form_params']['region_id'] = $value;
930
931
        return $this;
932
    }
933
}
934
935
/**
936
 * @method string getClusterId()
937
 * @method $this withClusterId($value)
938
 */
939
class DeleteCluster extends Roa
940
{
941
    /** @var string */
942
    public $pathPattern = '/clusters/[ClusterId]';
943
944
    /** @var string */
945
    public $method = 'DELETE';
946
}
947
948
/**
949
 * @method string getReleaseNode()
950
 * @method string getClusterId()
951
 * @method $this withClusterId($value)
952
 */
953
class DeleteClusterNodes extends Roa
954
{
955
    /** @var string */
956
    public $pathPattern = '/clusters/[ClusterId]/nodes';
957
958
    /**
959
     * @param string $value
960
     *
961
     * @return $this
962
     */
963
    public function withReleaseNode($value)
964
    {
965
        $this->data['ReleaseNode'] = $value;
966
        $this->options['form_params']['release_node'] = $value;
967
968
        return $this;
969
    }
970
}
971
972
/**
973
 * @method string getTemplateId()
974
 * @method $this withTemplateId($value)
975
 */
976
class DeleteTemplate extends Roa
977
{
978
    /** @var string */
979
    public $pathPattern = '/templates/[TemplateId]';
980
981
    /** @var string */
982
    public $method = 'DELETE';
983
}
984
985
class DeleteTriggerHook extends Roa
986
{
987
    /** @var string */
988
    public $pathPattern = '/api/v2/hook/trigger';
989
}
990
991
/**
992
 * @method string getWorkflowName()
993
 */
994
class DescirbeWorkflow extends Roa
995
{
996
    /** @var string */
997
    public $pathPattern = '/gs/workflow/[workflowName]';
998
999
    /** @var string */
1000
    public $method = 'GET';
1001
1002
    /**
1003
     * @param string $value
1004
     *
1005
     * @return $this
1006
     */
1007
    public function withWorkflowName($value)
1008
    {
1009
        $this->data['WorkflowName'] = $value;
1010
        $this->pathParameters['workflowName'] = $value;
1011
1012
        return $this;
1013
    }
1014
}
1015
1016
/**
1017
 * @method string getClusterType()
1018
 * @method string getRegion()
1019
 */
1020
class DescribeAddons extends Roa
1021
{
1022
    /** @var string */
1023
    public $pathPattern = '/clusters/components/metadata';
1024
1025
    /** @var string */
1026
    public $method = 'GET';
1027
1028
    /**
1029
     * @param string $value
1030
     *
1031
     * @return $this
1032
     */
1033
    public function withClusterType($value)
1034
    {
1035
        $this->data['ClusterType'] = $value;
1036
        $this->options['query']['cluster_type'] = $value;
1037
1038
        return $this;
1039
    }
1040
1041
    /**
1042
     * @param string $value
1043
     *
1044
     * @return $this
1045
     */
1046
    public function withRegion($value)
1047
    {
1048
        $this->data['Region'] = $value;
1049
        $this->options['query']['region'] = $value;
1050
1051
        return $this;
1052
    }
1053
}
1054
1055
class DescribeApiVersion extends Roa
1056
{
1057
    /** @var string */
1058
    public $pathPattern = '/version';
1059
1060
    /** @var string */
1061
    public $method = 'GET';
1062
}
1063
1064
/**
1065
 * @method string getClusterId()
1066
 * @method $this withClusterId($value)
1067
 */
1068
class DescribeClusterAddonsVersion extends Roa
1069
{
1070
    /** @var string */
1071
    public $pathPattern = '/clusters/[ClusterId]/components/version';
1072
1073
    /** @var string */
1074
    public $method = 'GET';
1075
}
1076
1077
/**
1078
 * @method string getComponentId()
1079
 * @method $this withComponentId($value)
1080
 * @method string getClusterId()
1081
 * @method $this withClusterId($value)
1082
 */
1083
class DescribeClusterAddonUpgradeStatus extends Roa
1084
{
1085
    /** @var string */
1086
    public $pathPattern = '/clusters/[ClusterId]/components/[ComponentId]/upgradestatus';
1087
1088
    /** @var string */
1089
    public $method = 'GET';
1090
}
1091
1092
/**
1093
 * @method string getClusterId()
1094
 * @method $this withClusterId($value)
1095
 */
1096
class DescribeClusterAttachScripts extends Roa
1097
{
1098
    /** @var string */
1099
    public $pathPattern = '/clusters/[ClusterId]/attachscript';
1100
}
1101
1102
/**
1103
 * @method string getClusterId()
1104
 * @method $this withClusterId($value)
1105
 */
1106
class DescribeClusterDetail extends Roa
1107
{
1108
    /** @var string */
1109
    public $pathPattern = '/clusters/[ClusterId]';
1110
1111
    /** @var string */
1112
    public $method = 'GET';
1113
}
1114
1115
/**
1116
 * @method string getClusterId()
1117
 * @method $this withClusterId($value)
1118
 */
1119
class DescribeClusterLogs extends Roa
1120
{
1121
    /** @var string */
1122
    public $pathPattern = '/clusters/[ClusterId]/logs';
1123
1124
    /** @var string */
1125
    public $method = 'GET';
1126
}
1127
1128
/**
1129
 * @method string getPageSize()
1130
 * @method string getClusterId()
1131
 * @method $this withClusterId($value)
1132
 * @method string getState()
1133
 * @method string getNodepoolId()
1134
 * @method string getPageNumber()
1135
 */
1136
class DescribeClusterNodes extends Roa
1137
{
1138
    /** @var string */
1139
    public $pathPattern = '/clusters/[ClusterId]/nodes';
1140
1141
    /** @var string */
1142
    public $method = 'GET';
1143
1144
    /**
1145
     * @param string $value
1146
     *
1147
     * @return $this
1148
     */
1149
    public function withPageSize($value)
1150
    {
1151
        $this->data['PageSize'] = $value;
1152
        $this->options['query']['pageSize'] = $value;
1153
1154
        return $this;
1155
    }
1156
1157
    /**
1158
     * @param string $value
1159
     *
1160
     * @return $this
1161
     */
1162
    public function withState($value)
1163
    {
1164
        $this->data['State'] = $value;
1165
        $this->options['query']['state'] = $value;
1166
1167
        return $this;
1168
    }
1169
1170
    /**
1171
     * @param string $value
1172
     *
1173
     * @return $this
1174
     */
1175
    public function withNodepoolId($value)
1176
    {
1177
        $this->data['NodepoolId'] = $value;
1178
        $this->options['query']['nodepool_id'] = $value;
1179
1180
        return $this;
1181
    }
1182
1183
    /**
1184
     * @param string $value
1185
     *
1186
     * @return $this
1187
     */
1188
    public function withPageNumber($value)
1189
    {
1190
        $this->data['PageNumber'] = $value;
1191
        $this->options['query']['pageNumber'] = $value;
1192
1193
        return $this;
1194
    }
1195
}
1196
1197
/**
1198
 * @method string getClusterId()
1199
 * @method $this withClusterId($value)
1200
 */
1201
class DescribeClusterResources extends Roa
1202
{
1203
    /** @var string */
1204
    public $pathPattern = '/clusters/[ClusterId]/resources';
1205
1206
    /** @var string */
1207
    public $method = 'GET';
1208
}
1209
1210
/**
1211
 * @method string getClusterType()
1212
 * @method string getName()
1213
 */
1214
class DescribeClusters extends Roa
1215
{
1216
    /** @var string */
1217
    public $pathPattern = '/clusters';
1218
1219
    /** @var string */
1220
    public $method = 'GET';
1221
1222
    /**
1223
     * @param string $value
1224
     *
1225
     * @return $this
1226
     */
1227
    public function withClusterType($value)
1228
    {
1229
        $this->data['ClusterType'] = $value;
1230
        $this->options['query']['clusterType'] = $value;
1231
1232
        return $this;
1233
    }
1234
1235
    /**
1236
     * @param string $value
1237
     *
1238
     * @return $this
1239
     */
1240
    public function withName($value)
1241
    {
1242
        $this->data['Name'] = $value;
1243
        $this->options['query']['name'] = $value;
1244
1245
        return $this;
1246
    }
1247
}
1248
1249
/**
1250
 * @method string getPrivateIpAddress()
1251
 * @method string getClusterId()
1252
 * @method $this withClusterId($value)
1253
 */
1254
class DescribeClusterUserKubeconfig extends Roa
1255
{
1256
    /** @var string */
1257
    public $pathPattern = '/k8s/[ClusterId]/user_config';
1258
1259
    /** @var string */
1260
    public $method = 'GET';
1261
1262
    /**
1263
     * @param string $value
1264
     *
1265
     * @return $this
1266
     */
1267
    public function withPrivateIpAddress($value)
1268
    {
1269
        $this->data['PrivateIpAddress'] = $value;
1270
        $this->options['query']['PrivateIpAddress'] = $value;
1271
1272
        return $this;
1273
    }
1274
}
1275
1276
/**
1277
 * @method string getPrivateIpAddress()
1278
 * @method string getClusterId()
1279
 * @method $this withClusterId($value)
1280
 */
1281
class DescribeClusterV2UserKubeconfig extends Roa
1282
{
1283
    /** @var string */
1284
    public $pathPattern = '/api/v2/k8s/[ClusterId]/user_config';
1285
1286
    /** @var string */
1287
    public $method = 'GET';
1288
1289
    /**
1290
     * @param string $value
1291
     *
1292
     * @return $this
1293
     */
1294
    public function withPrivateIpAddress($value)
1295
    {
1296
        $this->data['PrivateIpAddress'] = $value;
1297
        $this->options['query']['PrivateIpAddress'] = $value;
1298
1299
        return $this;
1300
    }
1301
}
1302
1303
/**
1304
 * @method string getClusterId()
1305
 * @method $this withClusterId($value)
1306
 */
1307
class DescribeExternalAgent extends Roa
1308
{
1309
    /** @var string */
1310
    public $pathPattern = '/k8s/[ClusterId]/external/agent/deployment';
1311
1312
    /** @var string */
1313
    public $method = 'GET';
1314
}
1315
1316
/**
1317
 * @method string getTemplateType()
1318
 */
1319
class DescribeTemplates extends Roa
1320
{
1321
    /** @var string */
1322
    public $pathPattern = '/templates';
1323
1324
    /** @var string */
1325
    public $method = 'GET';
1326
1327
    /**
1328
     * @param string $value
1329
     *
1330
     * @return $this
1331
     */
1332
    public function withTemplateType($value)
1333
    {
1334
        $this->data['TemplateType'] = $value;
1335
        $this->options['query']['template_type'] = $value;
1336
1337
        return $this;
1338
    }
1339
}
1340
1341
class DescribeUserQuota extends Roa
1342
{
1343
    /** @var string */
1344
    public $pathPattern = '/quota';
1345
1346
    /** @var string */
1347
    public $method = 'GET';
1348
}
1349
1350
class DescribeWorkflows extends Roa
1351
{
1352
    /** @var string */
1353
    public $pathPattern = '/gs/workflows';
1354
1355
    /** @var string */
1356
    public $method = 'GET';
1357
}
1358
1359
/**
1360
 * @method string getClusterId()
1361
 * @method $this withClusterId($value)
1362
 */
1363
class GetUpgradeStatus extends Roa
1364
{
1365
    /** @var string */
1366
    public $pathPattern = '/api/v2/clusters/[ClusterId]/upgrade/status';
1367
1368
    /** @var string */
1369
    public $method = 'GET';
1370
}
1371
1372
/**
1373
 * @method string getName()
1374
 * @method string getDisabled()
1375
 * @method string getClusterId()
1376
 * @method $this withClusterId($value)
1377
 * @method string getVersion()
1378
 * @method string getConfig()
1379
 * @method string getRequired()
1380
 */
1381
class InstallClusterAddons extends Roa
1382
{
1383
    /** @var string */
1384
    public $pathPattern = '/clusters/[ClusterId]/components/install';
1385
1386
    /**
1387
     * @param string $value
1388
     *
1389
     * @return $this
1390
     */
1391
    public function withName($value)
1392
    {
1393
        $this->data['Name'] = $value;
1394
        $this->options['form_params']['name'] = $value;
1395
1396
        return $this;
1397
    }
1398
1399
    /**
1400
     * @param string $value
1401
     *
1402
     * @return $this
1403
     */
1404
    public function withDisabled($value)
1405
    {
1406
        $this->data['Disabled'] = $value;
1407
        $this->options['form_params']['disabled'] = $value;
1408
1409
        return $this;
1410
    }
1411
1412
    /**
1413
     * @param string $value
1414
     *
1415
     * @return $this
1416
     */
1417
    public function withVersion($value)
1418
    {
1419
        $this->data['Version'] = $value;
1420
        $this->options['form_params']['version'] = $value;
1421
1422
        return $this;
1423
    }
1424
1425
    /**
1426
     * @param string $value
1427
     *
1428
     * @return $this
1429
     */
1430
    public function withConfig($value)
1431
    {
1432
        $this->data['Config'] = $value;
1433
        $this->options['form_params']['config'] = $value;
1434
1435
        return $this;
1436
    }
1437
1438
    /**
1439
     * @param string $value
1440
     *
1441
     * @return $this
1442
     */
1443
    public function withRequired($value)
1444
    {
1445
        $this->data['Required'] = $value;
1446
        $this->options['form_params']['required'] = $value;
1447
1448
        return $this;
1449
    }
1450
}
1451
1452
/**
1453
 * @method string getResourceType()
1454
 * @method string getNextToken()
1455
 * @method string getResourceIds()
1456
 * @method string getTags()
1457
 */
1458
class ListTagResources extends Roa
1459
{
1460
    /** @var string */
1461
    public $pathPattern = '/tags';
1462
1463
    /** @var string */
1464
    public $method = 'GET';
1465
1466
    /**
1467
     * @param string $value
1468
     *
1469
     * @return $this
1470
     */
1471
    public function withResourceType($value)
1472
    {
1473
        $this->data['ResourceType'] = $value;
1474
        $this->options['query']['resource_type'] = $value;
1475
1476
        return $this;
1477
    }
1478
1479
    /**
1480
     * @param string $value
1481
     *
1482
     * @return $this
1483
     */
1484
    public function withNextToken($value)
1485
    {
1486
        $this->data['NextToken'] = $value;
1487
        $this->options['query']['next_token'] = $value;
1488
1489
        return $this;
1490
    }
1491
1492
    /**
1493
     * @param string $value
1494
     *
1495
     * @return $this
1496
     */
1497
    public function withResourceIds($value)
1498
    {
1499
        $this->data['ResourceIds'] = $value;
1500
        $this->options['query']['resource_ids'] = $value;
1501
1502
        return $this;
1503
    }
1504
1505
    /**
1506
     * @param string $value
1507
     *
1508
     * @return $this
1509
     */
1510
    public function withTags($value)
1511
    {
1512
        $this->data['Tags'] = $value;
1513
        $this->options['query']['tags'] = $value;
1514
1515
        return $this;
1516
    }
1517
}
1518
1519
/**
1520
 * @method string getApiServerEip()
1521
 * @method string getResourceGroupId()
1522
 * @method string getIngressDomainRebinding()
1523
 * @method string getDeletionProtection()
1524
 * @method string getIngressLoadbalancerId()
1525
 * @method string getClusterId()
1526
 * @method $this withClusterId($value)
1527
 * @method string getApiServerEipId()
1528
 */
1529
class ModifyCluster extends Roa
1530
{
1531
    /** @var string */
1532
    public $pathPattern = '/api/v2/clusters/[ClusterId]';
1533
1534
    /** @var string */
1535
    public $method = 'PUT';
1536
1537
    /**
1538
     * @param string $value
1539
     *
1540
     * @return $this
1541
     */
1542
    public function withApiServerEip($value)
1543
    {
1544
        $this->data['ApiServerEip'] = $value;
1545
        $this->options['form_params']['api_server_eip'] = $value;
1546
1547
        return $this;
1548
    }
1549
1550
    /**
1551
     * @param string $value
1552
     *
1553
     * @return $this
1554
     */
1555
    public function withResourceGroupId($value)
1556
    {
1557
        $this->data['ResourceGroupId'] = $value;
1558
        $this->options['form_params']['resource_group_id'] = $value;
1559
1560
        return $this;
1561
    }
1562
1563
    /**
1564
     * @param string $value
1565
     *
1566
     * @return $this
1567
     */
1568
    public function withIngressDomainRebinding($value)
1569
    {
1570
        $this->data['IngressDomainRebinding'] = $value;
1571
        $this->options['form_params']['ingress_domain_rebinding'] = $value;
1572
1573
        return $this;
1574
    }
1575
1576
    /**
1577
     * @param string $value
1578
     *
1579
     * @return $this
1580
     */
1581
    public function withDeletionProtection($value)
1582
    {
1583
        $this->data['DeletionProtection'] = $value;
1584
        $this->options['form_params']['deletion_protection'] = $value;
1585
1586
        return $this;
1587
    }
1588
1589
    /**
1590
     * @param string $value
1591
     *
1592
     * @return $this
1593
     */
1594
    public function withIngressLoadbalancerId($value)
1595
    {
1596
        $this->data['IngressLoadbalancerId'] = $value;
1597
        $this->options['form_params']['ingress_loadbalancer_id'] = $value;
1598
1599
        return $this;
1600
    }
1601
1602
    /**
1603
     * @param string $value
1604
     *
1605
     * @return $this
1606
     */
1607
    public function withApiServerEipId($value)
1608
    {
1609
        $this->data['ApiServerEipId'] = $value;
1610
        $this->options['form_params']['api_server_eip_id'] = $value;
1611
1612
        return $this;
1613
    }
1614
}
1615
1616
/**
1617
 * @method string getClusterId()
1618
 * @method $this withClusterId($value)
1619
 * @method string getValue()
1620
 * @method string getKey()
1621
 */
1622
class ModifyClusterTags extends Roa
1623
{
1624
    /** @var string */
1625
    public $pathPattern = '/clusters/[ClusterId]/tags';
1626
1627
    /**
1628
     * @param string $value
1629
     *
1630
     * @return $this
1631
     */
1632
    public function withValue($value)
1633
    {
1634
        $this->data['Value'] = $value;
1635
        $this->options['form_params']['value'] = $value;
1636
1637
        return $this;
1638
    }
1639
1640
    /**
1641
     * @param string $value
1642
     *
1643
     * @return $this
1644
     */
1645
    public function withKey($value)
1646
    {
1647
        $this->data['Key'] = $value;
1648
        $this->options['form_params']['key'] = $value;
1649
1650
        return $this;
1651
    }
1652
}
1653
1654
/**
1655
 * @method string getClusterId()
1656
 * @method $this withClusterId($value)
1657
 */
1658
class PauseClusterUpgrade extends Roa
1659
{
1660
    /** @var string */
1661
    public $pathPattern = '/api/v2/clusters/[ClusterId]/upgrade/pause';
1662
}
1663
1664
/**
1665
 * @method string getComponentid()
1666
 * @method string getClusterid()
1667
 */
1668
class PauseComponentUpgrade extends Roa
1669
{
1670
    /** @var string */
1671
    public $pathPattern = '/clusters/[clusterid]/components/[componentid]/pause';
1672
1673
    /**
1674
     * @param string $value
1675
     *
1676
     * @return $this
1677
     */
1678
    public function withComponentid($value)
1679
    {
1680
        $this->data['Componentid'] = $value;
1681
        $this->pathParameters['componentid'] = $value;
1682
1683
        return $this;
1684
    }
1685
1686
    /**
1687
     * @param string $value
1688
     *
1689
     * @return $this
1690
     */
1691
    public function withClusterid($value)
1692
    {
1693
        $this->data['Clusterid'] = $value;
1694
        $this->pathParameters['clusterid'] = $value;
1695
1696
        return $this;
1697
    }
1698
}
1699
1700
/**
1701
 * @method string getReleaseNode()
1702
 * @method string getDrainNode()
1703
 * @method string getClusterId()
1704
 * @method $this withClusterId($value)
1705
 */
1706
class RemoveClusterNodes extends Roa
1707
{
1708
    /** @var string */
1709
    public $pathPattern = '/api/v2/clusters/[ClusterId]/nodes/remove';
1710
1711
    /**
1712
     * @param string $value
1713
     *
1714
     * @return $this
1715
     */
1716
    public function withReleaseNode($value)
1717
    {
1718
        $this->data['ReleaseNode'] = $value;
1719
        $this->options['form_params']['release_node'] = $value;
1720
1721
        return $this;
1722
    }
1723
1724
    /**
1725
     * @param string $value
1726
     *
1727
     * @return $this
1728
     */
1729
    public function withDrainNode($value)
1730
    {
1731
        $this->data['DrainNode'] = $value;
1732
        $this->options['form_params']['drain_node'] = $value;
1733
1734
        return $this;
1735
    }
1736
}
1737
1738
/**
1739
 * @method string getWorkflowName()
1740
 */
1741
class RemoveWorkflow extends Roa
1742
{
1743
    /** @var string */
1744
    public $pathPattern = '/gs/workflow/[workflowName]';
1745
1746
    /** @var string */
1747
    public $method = 'DELETE';
1748
1749
    /**
1750
     * @param string $value
1751
     *
1752
     * @return $this
1753
     */
1754
    public function withWorkflowName($value)
1755
    {
1756
        $this->data['WorkflowName'] = $value;
1757
        $this->pathParameters['workflowName'] = $value;
1758
1759
        return $this;
1760
    }
1761
}
1762
1763
/**
1764
 * @method string getComponentid()
1765
 * @method string getClusterid()
1766
 */
1767
class ResumeComponentUpgrade extends Roa
1768
{
1769
    /** @var string */
1770
    public $pathPattern = '/clusters/[clusterid]/components/[componentid]/resume';
1771
1772
    /**
1773
     * @param string $value
1774
     *
1775
     * @return $this
1776
     */
1777
    public function withComponentid($value)
1778
    {
1779
        $this->data['Componentid'] = $value;
1780
        $this->pathParameters['componentid'] = $value;
1781
1782
        return $this;
1783
    }
1784
1785
    /**
1786
     * @param string $value
1787
     *
1788
     * @return $this
1789
     */
1790
    public function withClusterid($value)
1791
    {
1792
        $this->data['Clusterid'] = $value;
1793
        $this->pathParameters['clusterid'] = $value;
1794
1795
        return $this;
1796
    }
1797
}
1798
1799
/**
1800
 * @method string getClusterId()
1801
 * @method $this withClusterId($value)
1802
 */
1803
class ResumeUpgradeCluster extends Roa
1804
{
1805
    /** @var string */
1806
    public $pathPattern = '/api/v2/clusters/[ClusterId]/upgrade/resume';
1807
}
1808
1809
/**
1810
 * @method string getClusterId()
1811
 * @method $this withClusterId($value)
1812
 */
1813
class ScaleCluster extends Roa
1814
{
1815
    /** @var string */
1816
    public $pathPattern = '/clusters/[ClusterId]';
1817
1818
    /** @var string */
1819
    public $method = 'PUT';
1820
}
1821
1822
/**
1823
 * @method string getWorkerDataDisk()
1824
 * @method string getKeyPair()
1825
 * @method string getCount()
1826
 * @method string getWorkerSystemDiskCategory()
1827
 * @method string getCloudMonitorFlags()
1828
 * @method string getClusterId()
1829
 * @method $this withClusterId($value)
1830
 * @method string getWorkerPeriodUnit()
1831
 * @method string getWorkerAutoRenew()
1832
 * @method string getWorkerAutoRenewPeriod()
1833
 * @method string getWorkerPeriod()
1834
 * @method string getLoginPassword()
1835
 * @method string getWorkerSystemDiskSize()
1836
 * @method string getCpuPolicy()
1837
 * @method string getDisableRollback()
1838
 * @method string getWorkerInstanceChargeType()
1839
 */
1840
class ScaleOutCluster extends Roa
1841
{
1842
    /** @var string */
1843
    public $pathPattern = '/api/v2/clusters/[ClusterId]';
1844
1845
    /**
1846
     * @param string $value
1847
     *
1848
     * @return $this
1849
     */
1850
    public function withWorkerDataDisk($value)
1851
    {
1852
        $this->data['WorkerDataDisk'] = $value;
1853
        $this->options['form_params']['worker_data_disk'] = $value;
1854
1855
        return $this;
1856
    }
1857
1858
    /**
1859
     * @param string $value
1860
     *
1861
     * @return $this
1862
     */
1863
    public function withKeyPair($value)
1864
    {
1865
        $this->data['KeyPair'] = $value;
1866
        $this->options['form_params']['key_pair'] = $value;
1867
1868
        return $this;
1869
    }
1870
1871
    /**
1872
     * @param string $value
1873
     *
1874
     * @return $this
1875
     */
1876
    public function withCount($value)
1877
    {
1878
        $this->data['Count'] = $value;
1879
        $this->options['form_params']['count'] = $value;
1880
1881
        return $this;
1882
    }
1883
1884
    /**
1885
     * @param string $value
1886
     *
1887
     * @return $this
1888
     */
1889
    public function withWorkerSystemDiskCategory($value)
1890
    {
1891
        $this->data['WorkerSystemDiskCategory'] = $value;
1892
        $this->options['form_params']['worker_system_disk_category'] = $value;
1893
1894
        return $this;
1895
    }
1896
1897
    /**
1898
     * @param string $value
1899
     *
1900
     * @return $this
1901
     */
1902
    public function withCloudMonitorFlags($value)
1903
    {
1904
        $this->data['CloudMonitorFlags'] = $value;
1905
        $this->options['form_params']['cloud_monitor_flags'] = $value;
1906
1907
        return $this;
1908
    }
1909
1910
    /**
1911
     * @param string $value
1912
     *
1913
     * @return $this
1914
     */
1915
    public function withWorkerPeriodUnit($value)
1916
    {
1917
        $this->data['WorkerPeriodUnit'] = $value;
1918
        $this->options['form_params']['worker_period_unit'] = $value;
1919
1920
        return $this;
1921
    }
1922
1923
    /**
1924
     * @param string $value
1925
     *
1926
     * @return $this
1927
     */
1928
    public function withWorkerAutoRenew($value)
1929
    {
1930
        $this->data['WorkerAutoRenew'] = $value;
1931
        $this->options['form_params']['worker_auto_renew'] = $value;
1932
1933
        return $this;
1934
    }
1935
1936
    /**
1937
     * @param string $value
1938
     *
1939
     * @return $this
1940
     */
1941
    public function withWorkerAutoRenewPeriod($value)
1942
    {
1943
        $this->data['WorkerAutoRenewPeriod'] = $value;
1944
        $this->options['form_params']['worker_auto_renew_period'] = $value;
1945
1946
        return $this;
1947
    }
1948
1949
    /**
1950
     * @param string $value
1951
     *
1952
     * @return $this
1953
     */
1954
    public function withWorkerPeriod($value)
1955
    {
1956
        $this->data['WorkerPeriod'] = $value;
1957
        $this->options['form_params']['worker_period'] = $value;
1958
1959
        return $this;
1960
    }
1961
1962
    /**
1963
     * @param string $value
1964
     *
1965
     * @return $this
1966
     */
1967
    public function withLoginPassword($value)
1968
    {
1969
        $this->data['LoginPassword'] = $value;
1970
        $this->options['form_params']['login_password'] = $value;
1971
1972
        return $this;
1973
    }
1974
1975
    /**
1976
     * @param string $value
1977
     *
1978
     * @return $this
1979
     */
1980
    public function withWorkerSystemDiskSize($value)
1981
    {
1982
        $this->data['WorkerSystemDiskSize'] = $value;
1983
        $this->options['form_params']['worker_system_disk_size'] = $value;
1984
1985
        return $this;
1986
    }
1987
1988
    /**
1989
     * @param string $value
1990
     *
1991
     * @return $this
1992
     */
1993
    public function withCpuPolicy($value)
1994
    {
1995
        $this->data['CpuPolicy'] = $value;
1996
        $this->options['form_params']['cpu_policy'] = $value;
1997
1998
        return $this;
1999
    }
2000
2001
    /**
2002
     * @param string $value
2003
     *
2004
     * @return $this
2005
     */
2006
    public function withDisableRollback($value)
2007
    {
2008
        $this->data['DisableRollback'] = $value;
2009
        $this->options['form_params']['disable_rollback'] = $value;
2010
2011
        return $this;
2012
    }
2013
2014
    /**
2015
     * @param string $value
2016
     *
2017
     * @return $this
2018
     */
2019
    public function withWorkerInstanceChargeType($value)
2020
    {
2021
        $this->data['WorkerInstanceChargeType'] = $value;
2022
        $this->options['form_params']['worker_instance_charge_type'] = $value;
2023
2024
        return $this;
2025
    }
2026
}
2027
2028
class StartWorkflow extends Roa
2029
{
2030
    /** @var string */
2031
    public $pathPattern = '/gs/workflow';
2032
}
2033
2034
/**
2035
 * @method string getName()
2036
 * @method string getClusterId()
2037
 * @method $this withClusterId($value)
2038
 */
2039
class UnInstallClusterAddons extends Roa
2040
{
2041
    /** @var string */
2042
    public $pathPattern = '/clusters/[ClusterId]/components/uninstall';
2043
2044
    /**
2045
     * @param string $value
2046
     *
2047
     * @return $this
2048
     */
2049
    public function withName($value)
2050
    {
2051
        $this->data['Name'] = $value;
2052
        $this->options['form_params']['name'] = $value;
2053
2054
        return $this;
2055
    }
2056
}
2057
2058
/**
2059
 * @method string getClusterId()
2060
 * @method $this withClusterId($value)
2061
 */
2062
class UpdateK8sClusterUserConfigExpire extends Roa
2063
{
2064
    /** @var string */
2065
    public $pathPattern = '/k8s/[ClusterId]/user_config/expire';
2066
}
2067
2068
/**
2069
 * @method string getClusterId()
2070
 * @method $this withClusterId($value)
2071
 * @method string getVersion()
2072
 */
2073
class UpgradeCluster extends Roa
2074
{
2075
    /** @var string */
2076
    public $pathPattern = '/api/v2/clusters/[ClusterId]/upgrade';
2077
2078
    /**
2079
     * @param string $value
2080
     *
2081
     * @return $this
2082
     */
2083
    public function withVersion($value)
2084
    {
2085
        $this->data['Version'] = $value;
2086
        $this->options['form_params']['version'] = $value;
2087
2088
        return $this;
2089
    }
2090
}
2091
2092
/**
2093
 * @method string getComponentName()
2094
 * @method string getClusterId()
2095
 * @method $this withClusterId($value)
2096
 * @method string getVersion()
2097
 */
2098
class UpgradeClusterAddons extends Roa
2099
{
2100
    /** @var string */
2101
    public $pathPattern = '/clusters/[ClusterId]/components/upgrade';
2102
2103
    /**
2104
     * @param string $value
2105
     *
2106
     * @return $this
2107
     */
2108
    public function withComponentName($value)
2109
    {
2110
        $this->data['ComponentName'] = $value;
2111
        $this->options['form_params']['component_name'] = $value;
2112
2113
        return $this;
2114
    }
2115
2116
    /**
2117
     * @param string $value
2118
     *
2119
     * @return $this
2120
     */
2121
    public function withVersion($value)
2122
    {
2123
        $this->data['Version'] = $value;
2124
        $this->options['form_params']['version'] = $value;
2125
2126
        return $this;
2127
    }
2128
}
2129