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 ( 4a4dd0...5457f1 )
by
unknown
06:28
created

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