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 ( a84d28...b1ac01 )
by
unknown
12:50 queued 06:06
created

DescribeKubernetesVersionMetadata   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 68
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 5
eloc 17
dl 0
loc 68
ccs 0
cts 0
cp 0
c 0
b 0
f 0
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A withClusterType() 0 6 1
A withMultiAZ() 0 6 1
A withRegion() 0 6 1
A withProfile() 0 6 1
A withKubernetesVersion() 0 6 1
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 CreateClusterNodePool createClusterNodePool(array $options = [])
14
 * @method CreateKubernetesTrigger createKubernetesTrigger(array $options = [])
15
 * @method CreateTemplate createTemplate(array $options = [])
16
 * @method DeleteCluster deleteCluster(array $options = [])
17
 * @method DeleteClusterNodepool deleteClusterNodepool(array $options = [])
18
 * @method DeleteClusterNodes deleteClusterNodes(array $options = [])
19
 * @method DeleteKubernetesTrigger deleteKubernetesTrigger(array $options = [])
20
 * @method DeleteTemplate deleteTemplate(array $options = [])
21
 * @method DescirbeWorkflow descirbeWorkflow(array $options = [])
22
 * @method DescribeAddons describeAddons(array $options = [])
23
 * @method DescribeClusterAddonsUpgradeStatus describeClusterAddonsUpgradeStatus(array $options = [])
24
 * @method DescribeClusterAddonsVersion describeClusterAddonsVersion(array $options = [])
25
 * @method DescribeClusterAddonUpgradeStatus describeClusterAddonUpgradeStatus(array $options = [])
26
 * @method DescribeClusterAttachScripts describeClusterAttachScripts(array $options = [])
27
 * @method DescribeClusterDetail describeClusterDetail(array $options = [])
28
 * @method DescribeClusterLogs describeClusterLogs(array $options = [])
29
 * @method DescribeClusterNodePoolDetail describeClusterNodePoolDetail(array $options = [])
30
 * @method DescribeClusterNodePools describeClusterNodePools(array $options = [])
31
 * @method DescribeClusterNodes describeClusterNodes(array $options = [])
32
 * @method DescribeClusterResources describeClusterResources(array $options = [])
33
 * @method DescribeClusters describeClusters(array $options = [])
34
 * @method DescribeClustersV1 describeClustersV1(array $options = [])
35
 * @method DescribeClusterUserKubeconfig describeClusterUserKubeconfig(array $options = [])
36
 * @method DescribeClusterV2UserKubeconfig describeClusterV2UserKubeconfig(array $options = [])
37
 * @method DescribeExternalAgent describeExternalAgent(array $options = [])
38
 * @method DescribeKubernetesVersionMetadata describeKubernetesVersionMetadata(array $options = [])
39
 * @method DescribeTemplateAttribute describeTemplateAttribute(array $options = [])
40
 * @method DescribeTemplates describeTemplates(array $options = [])
41
 * @method DescribeUserQuota describeUserQuota(array $options = [])
42
 * @method DescribeWorkflows describeWorkflows(array $options = [])
43
 * @method GetKubernetesTrigger getKubernetesTrigger(array $options = [])
44
 * @method GetUpgradeStatus getUpgradeStatus(array $options = [])
45
 * @method InstallClusterAddons installClusterAddons(array $options = [])
46
 * @method ListTagResources listTagResources(array $options = [])
47
 * @method ModifyCluster modifyCluster(array $options = [])
48
 * @method ModifyClusterConfiguration modifyClusterConfiguration(array $options = [])
49
 * @method ModifyClusterNodePool modifyClusterNodePool(array $options = [])
50
 * @method ModifyClusterTags modifyClusterTags(array $options = [])
51
 * @method PauseClusterUpgrade pauseClusterUpgrade(array $options = [])
52
 * @method PauseComponentUpgrade pauseComponentUpgrade(array $options = [])
53
 * @method RemoveClusterNodes removeClusterNodes(array $options = [])
54
 * @method RemoveWorkflow removeWorkflow(array $options = [])
55
 * @method ResumeComponentUpgrade resumeComponentUpgrade(array $options = [])
56
 * @method ResumeUpgradeCluster resumeUpgradeCluster(array $options = [])
57
 * @method ScaleCluster scaleCluster(array $options = [])
58
 * @method ScaleClusterNodePool scaleClusterNodePool(array $options = [])
59
 * @method ScaleOutCluster scaleOutCluster(array $options = [])
60
 * @method StartWorkflow startWorkflow(array $options = [])
61
 * @method UnInstallClusterAddons unInstallClusterAddons(array $options = [])
62
 * @method UpdateK8sClusterUserConfigExpire updateK8sClusterUserConfigExpire(array $options = [])
63
 * @method UpdateTemplate updateTemplate(array $options = [])
64
 * @method UpgradeCluster upgradeCluster(array $options = [])
65
 * @method UpgradeClusterAddons upgradeClusterAddons(array $options = [])
66
 */
67
class CSApiResolver extends ApiResolver
68
{
69
}
70
71
class Roa extends \AlibabaCloud\Client\Resolver\Roa
72
{
73
    /** @var string */
74
    public $product = 'CS';
75
76
    /** @var string */
77
    public $version = '2015-12-15';
78
}
79
80
/**
81
 * @method string getClusterId()
82
 * @method $this withClusterId($value)
83
 */
84
class AttachInstances extends Roa
85
{
86
    /** @var string */
87
    public $pathPattern = '/clusters/[ClusterId]/attach';
88
89
    /** @var string */
90
    public $method = 'POST';
91
}
92
93
/**
94
 * @method string getClusterId()
95
 * @method $this withClusterId($value)
96
 */
97
class CancelClusterUpgrade extends Roa
98
{
99
    /** @var string */
100
    public $pathPattern = '/api/v2/clusters/[ClusterId]/upgrade/cancel';
101
102
    /** @var string */
103
    public $method = 'POST';
104
}
105
106
/**
107
 * @method string getComponentid()
108
 * @method string getClusterid()
109
 */
110
class CancelComponentUpgrade extends Roa
111
{
112
    /** @var string */
113
    public $pathPattern = '/clusters/[clusterid]/components/[componentid]/cancel';
114
115
    /** @var string */
116
    public $method = 'POST';
117
118
    /**
119
     * @param string $value
120
     *
121
     * @return $this
122
     */
123
    public function withComponentid($value)
124
    {
125
        $this->data['Componentid'] = $value;
126
        $this->pathParameters['componentid'] = $value;
127
128
        return $this;
129
    }
130
131
    /**
132
     * @param string $value
133
     *
134
     * @return $this
135
     */
136
    public function withClusterid($value)
137
    {
138
        $this->data['Clusterid'] = $value;
139
        $this->pathParameters['clusterid'] = $value;
140
141
        return $this;
142
    }
143
}
144
145
/**
146
 * @method string getWorkflowName()
147
 */
148
class CancelWorkflow extends Roa
149
{
150
    /** @var string */
151
    public $pathPattern = '/gs/workflow/[workflowName]';
152
153
    /** @var string */
154
    public $method = 'PUT';
155
156
    /**
157
     * @param string $value
158
     *
159
     * @return $this
160
     */
161
    public function withWorkflowName($value)
162
    {
163
        $this->data['WorkflowName'] = $value;
164
        $this->pathParameters['workflowName'] = $value;
165
166
        return $this;
167
    }
168
}
169
170
class CreateCluster extends Roa
171
{
172
    /** @var string */
173
    public $pathPattern = '/clusters';
174
175
    /** @var string */
176
    public $method = 'POST';
177
}
178
179
/**
180
 * @method string getClusterId()
181
 * @method $this withClusterId($value)
182
 */
183
class CreateClusterNodePool extends Roa
184
{
185
    /** @var string */
186
    public $pathPattern = '/clusters/[ClusterId]/nodepools';
187
188
    /** @var string */
189
    public $method = 'POST';
190
}
191
192
class CreateKubernetesTrigger extends Roa
193
{
194
    /** @var string */
195
    public $pathPattern = '/triggers';
196
197
    /** @var string */
198
    public $method = 'POST';
199
}
200
201
/**
202
 * @method string getTemplate()
203
 * @method string getName()
204
 * @method string getTemplateType()
205
 * @method string getTags()
206
 */
207
class CreateTemplate extends Roa
208
{
209
    /** @var string */
210
    public $pathPattern = '/templates';
211
212
    /** @var string */
213
    public $method = 'POST';
214
215
    /**
216
     * @param string $value
217
     *
218
     * @return $this
219
     */
220
    public function withTemplate($value)
221
    {
222
        $this->data['Template'] = $value;
223
        $this->options['form_params']['template'] = $value;
224
225
        return $this;
226
    }
227
228
    /**
229
     * @param string $value
230
     *
231
     * @return $this
232
     */
233
    public function withName($value)
234
    {
235
        $this->data['Name'] = $value;
236
        $this->options['form_params']['name'] = $value;
237
238
        return $this;
239
    }
240
241
    /**
242
     * @param string $value
243
     *
244
     * @return $this
245
     */
246
    public function withTemplateType($value)
247
    {
248
        $this->data['TemplateType'] = $value;
249
        $this->options['form_params']['template_type'] = $value;
250
251
        return $this;
252
    }
253
254
    /**
255
     * @param string $value
256
     *
257
     * @return $this
258
     */
259
    public function withTags($value)
260
    {
261
        $this->data['Tags'] = $value;
262
        $this->options['form_params']['tags'] = $value;
263
264
        return $this;
265
    }
266
}
267
268
/**
269
 * @method string getClusterId()
270
 * @method $this withClusterId($value)
271
 */
272
class DeleteCluster extends Roa
273
{
274
    /** @var string */
275
    public $pathPattern = '/clusters/[ClusterId]';
276
277
    /** @var string */
278
    public $method = 'DELETE';
279
}
280
281
/**
282
 * @method string getClusterId()
283
 * @method $this withClusterId($value)
284
 * @method string getNodepoolId()
285
 * @method $this withNodepoolId($value)
286
 */
287
class DeleteClusterNodepool extends Roa
288
{
289
    /** @var string */
290
    public $pathPattern = '/clusters/[ClusterId]/nodepools/[NodepoolId]';
291
292
    /** @var string */
293
    public $method = 'DELETE';
294
}
295
296
/**
297
 * @method string getReleaseNode()
298
 * @method string getClusterId()
299
 * @method $this withClusterId($value)
300
 */
301
class DeleteClusterNodes extends Roa
302
{
303
    /** @var string */
304
    public $pathPattern = '/clusters/[ClusterId]/nodes';
305
306
    /** @var string */
307
    public $method = 'POST';
308
309
    /**
310
     * @param string $value
311
     *
312
     * @return $this
313
     */
314
    public function withReleaseNode($value)
315
    {
316
        $this->data['ReleaseNode'] = $value;
317
        $this->options['form_params']['release_node'] = $value;
318
319
        return $this;
320
    }
321
}
322
323
/**
324
 * @method string getId()
325
 * @method $this withId($value)
326
 */
327
class DeleteKubernetesTrigger extends Roa
328
{
329
    /** @var string */
330
    public $pathPattern = '/triggers/revoke/[Id]';
331
332
    /** @var string */
333
    public $method = 'DELETE';
334
}
335
336
/**
337
 * @method string getTemplateId()
338
 * @method $this withTemplateId($value)
339
 */
340
class DeleteTemplate extends Roa
341
{
342
    /** @var string */
343
    public $pathPattern = '/templates/[TemplateId]';
344
345
    /** @var string */
346
    public $method = 'DELETE';
347
}
348
349
/**
350
 * @method string getWorkflowName()
351
 */
352
class DescirbeWorkflow extends Roa
353
{
354
    /** @var string */
355
    public $pathPattern = '/gs/workflow/[workflowName]';
356
357
    /**
358
     * @param string $value
359
     *
360
     * @return $this
361
     */
362
    public function withWorkflowName($value)
363
    {
364
        $this->data['WorkflowName'] = $value;
365
        $this->pathParameters['workflowName'] = $value;
366
367
        return $this;
368
    }
369
}
370
371
/**
372
 * @method string getClusterType()
373
 * @method string getRegion()
374
 */
375
class DescribeAddons extends Roa
376
{
377
    /** @var string */
378
    public $pathPattern = '/clusters/components/metadata';
379
380
    /**
381
     * @param string $value
382
     *
383
     * @return $this
384
     */
385
    public function withClusterType($value)
386
    {
387
        $this->data['ClusterType'] = $value;
388
        $this->options['query']['cluster_type'] = $value;
389
390
        return $this;
391
    }
392
393
    /**
394
     * @param string $value
395
     *
396
     * @return $this
397
     */
398
    public function withRegion($value)
399
    {
400
        $this->data['Region'] = $value;
401
        $this->options['query']['region'] = $value;
402
403
        return $this;
404
    }
405
}
406
407
/**
408
 * @method string getClusterId()
409
 * @method $this withClusterId($value)
410
 */
411
class DescribeClusterAddonsUpgradeStatus extends Roa
412
{
413
    /** @var string */
414
    public $pathPattern = '/clusters/[ClusterId]/components/upgradestatus';
415
}
416
417
/**
418
 * @method string getClusterId()
419
 * @method $this withClusterId($value)
420
 */
421
class DescribeClusterAddonsVersion extends Roa
422
{
423
    /** @var string */
424
    public $pathPattern = '/clusters/[ClusterId]/components/version';
425
}
426
427
/**
428
 * @method string getComponentId()
429
 * @method $this withComponentId($value)
430
 * @method string getClusterId()
431
 * @method $this withClusterId($value)
432
 */
433
class DescribeClusterAddonUpgradeStatus extends Roa
434
{
435
    /** @var string */
436
    public $pathPattern = '/clusters/[ClusterId]/components/[ComponentId]/upgradestatus';
437
}
438
439
/**
440
 * @method string getClusterId()
441
 * @method $this withClusterId($value)
442
 */
443
class DescribeClusterAttachScripts extends Roa
444
{
445
    /** @var string */
446
    public $pathPattern = '/clusters/[ClusterId]/attachscript';
447
448
    /** @var string */
449
    public $method = 'POST';
450
}
451
452
/**
453
 * @method string getClusterId()
454
 * @method $this withClusterId($value)
455
 */
456
class DescribeClusterDetail extends Roa
457
{
458
    /** @var string */
459
    public $pathPattern = '/clusters/[ClusterId]';
460
}
461
462
/**
463
 * @method string getClusterId()
464
 * @method $this withClusterId($value)
465
 */
466
class DescribeClusterLogs extends Roa
467
{
468
    /** @var string */
469
    public $pathPattern = '/clusters/[ClusterId]/logs';
470
}
471
472
/**
473
 * @method string getClusterId()
474
 * @method $this withClusterId($value)
475
 * @method string getNodepoolId()
476
 * @method $this withNodepoolId($value)
477
 */
478
class DescribeClusterNodePoolDetail extends Roa
479
{
480
    /** @var string */
481
    public $pathPattern = '/clusters/[ClusterId]/nodepools/[NodepoolId]';
482
}
483
484
/**
485
 * @method string getClusterId()
486
 * @method $this withClusterId($value)
487
 */
488
class DescribeClusterNodePools extends Roa
489
{
490
    /** @var string */
491
    public $pathPattern = '/clusters/[ClusterId]/nodepools';
492
}
493
494
/**
495
 * @method string getPageSize()
496
 * @method string getClusterId()
497
 * @method $this withClusterId($value)
498
 * @method string getState()
499
 * @method string getNodepoolId()
500
 * @method string getPageNumber()
501
 */
502
class DescribeClusterNodes extends Roa
503
{
504
    /** @var string */
505
    public $pathPattern = '/clusters/[ClusterId]/nodes';
506
507
    /**
508
     * @param string $value
509
     *
510
     * @return $this
511
     */
512
    public function withPageSize($value)
513
    {
514
        $this->data['PageSize'] = $value;
515
        $this->options['query']['pageSize'] = $value;
516
517
        return $this;
518
    }
519
520
    /**
521
     * @param string $value
522
     *
523
     * @return $this
524
     */
525
    public function withState($value)
526
    {
527
        $this->data['State'] = $value;
528
        $this->options['query']['state'] = $value;
529
530
        return $this;
531
    }
532
533
    /**
534
     * @param string $value
535
     *
536
     * @return $this
537
     */
538
    public function withNodepoolId($value)
539
    {
540
        $this->data['NodepoolId'] = $value;
541
        $this->options['query']['nodepool_id'] = $value;
542
543
        return $this;
544
    }
545
546
    /**
547
     * @param string $value
548
     *
549
     * @return $this
550
     */
551
    public function withPageNumber($value)
552
    {
553
        $this->data['PageNumber'] = $value;
554
        $this->options['query']['pageNumber'] = $value;
555
556
        return $this;
557
    }
558
}
559
560
/**
561
 * @method string getClusterId()
562
 * @method $this withClusterId($value)
563
 */
564
class DescribeClusterResources extends Roa
565
{
566
    /** @var string */
567
    public $pathPattern = '/clusters/[ClusterId]/resources';
568
}
569
570
/**
571
 * @method string getClusterType()
572
 * @method string getName()
573
 */
574
class DescribeClusters extends Roa
575
{
576
    /** @var string */
577
    public $pathPattern = '/clusters';
578
579
    /**
580
     * @param string $value
581
     *
582
     * @return $this
583
     */
584
    public function withClusterType($value)
585
    {
586
        $this->data['ClusterType'] = $value;
587
        $this->options['query']['clusterType'] = $value;
588
589
        return $this;
590
    }
591
592
    /**
593
     * @param string $value
594
     *
595
     * @return $this
596
     */
597
    public function withName($value)
598
    {
599
        $this->data['Name'] = $value;
600
        $this->options['query']['name'] = $value;
601
602
        return $this;
603
    }
604
}
605
606
/**
607
 * @method string getClusterType()
608
 * @method string getPageNumber()
609
 * @method string getName()
610
 * @method string getPageSize()
611
 */
612
class DescribeClustersV1 extends Roa
613
{
614
    /** @var string */
615
    public $pathPattern = '/api/v1/clusters';
616
617
    /**
618
     * @param string $value
619
     *
620
     * @return $this
621
     */
622
    public function withClusterType($value)
623
    {
624
        $this->data['ClusterType'] = $value;
625
        $this->options['query']['ClusterType'] = $value;
626
627
        return $this;
628
    }
629
630
    /**
631
     * @param string $value
632
     *
633
     * @return $this
634
     */
635
    public function withPageNumber($value)
636
    {
637
        $this->data['PageNumber'] = $value;
638
        $this->options['query']['page_number'] = $value;
639
640
        return $this;
641
    }
642
643
    /**
644
     * @param string $value
645
     *
646
     * @return $this
647
     */
648
    public function withName($value)
649
    {
650
        $this->data['Name'] = $value;
651
        $this->options['query']['Name'] = $value;
652
653
        return $this;
654
    }
655
656
    /**
657
     * @param string $value
658
     *
659
     * @return $this
660
     */
661
    public function withPageSize($value)
662
    {
663
        $this->data['PageSize'] = $value;
664
        $this->options['query']['page_size'] = $value;
665
666
        return $this;
667
    }
668
}
669
670
/**
671
 * @method string getPrivateIpAddress()
672
 * @method string getClusterId()
673
 * @method $this withClusterId($value)
674
 */
675
class DescribeClusterUserKubeconfig extends Roa
676
{
677
    /** @var string */
678
    public $pathPattern = '/k8s/[ClusterId]/user_config';
679
680
    /**
681
     * @param string $value
682
     *
683
     * @return $this
684
     */
685
    public function withPrivateIpAddress($value)
686
    {
687
        $this->data['PrivateIpAddress'] = $value;
688
        $this->options['query']['PrivateIpAddress'] = $value;
689
690
        return $this;
691
    }
692
}
693
694
/**
695
 * @method string getPrivateIpAddress()
696
 * @method string getClusterId()
697
 * @method $this withClusterId($value)
698
 */
699
class DescribeClusterV2UserKubeconfig extends Roa
700
{
701
    /** @var string */
702
    public $pathPattern = '/api/v2/k8s/[ClusterId]/user_config';
703
704
    /**
705
     * @param string $value
706
     *
707
     * @return $this
708
     */
709
    public function withPrivateIpAddress($value)
710
    {
711
        $this->data['PrivateIpAddress'] = $value;
712
        $this->options['query']['PrivateIpAddress'] = $value;
713
714
        return $this;
715
    }
716
}
717
718
/**
719
 * @method string getClusterId()
720
 * @method $this withClusterId($value)
721
 */
722
class DescribeExternalAgent extends Roa
723
{
724
    /** @var string */
725
    public $pathPattern = '/k8s/[ClusterId]/external/agent/deployment';
726
}
727
728
/**
729
 * @method string getClusterType()
730
 * @method string getMultiAZ()
731
 * @method string getKubernetesVersion()
732
 * @method string getProfile()
733
 * @method string getRegion()
734
 */
735
class DescribeKubernetesVersionMetadata extends Roa
736
{
737
    /** @var string */
738
    public $pathPattern = '/api/v1/metadata/versions';
739
740
    /**
741
     * @param string $value
742
     *
743
     * @return $this
744
     */
745
    public function withClusterType($value)
746
    {
747
        $this->data['ClusterType'] = $value;
748
        $this->options['query']['ClusterType'] = $value;
749
750
        return $this;
751
    }
752
753
    /**
754
     * @param string $value
755
     *
756
     * @return $this
757
     */
758
    public function withMultiAZ($value)
759
    {
760
        $this->data['MultiAZ'] = $value;
761
        $this->options['query']['MultiAZ'] = $value;
762
763
        return $this;
764
    }
765
766
    /**
767
     * @param string $value
768
     *
769
     * @return $this
770
     */
771
    public function withKubernetesVersion($value)
772
    {
773
        $this->data['KubernetesVersion'] = $value;
774
        $this->options['query']['KubernetesVersion'] = $value;
775
776
        return $this;
777
    }
778
779
    /**
780
     * @param string $value
781
     *
782
     * @return $this
783
     */
784
    public function withProfile($value)
785
    {
786
        $this->data['Profile'] = $value;
787
        $this->options['query']['Profile'] = $value;
788
789
        return $this;
790
    }
791
792
    /**
793
     * @param string $value
794
     *
795
     * @return $this
796
     */
797
    public function withRegion($value)
798
    {
799
        $this->data['Region'] = $value;
800
        $this->options['query']['Region'] = $value;
801
802
        return $this;
803
    }
804
}
805
806
/**
807
 * @method string getTemplateId()
808
 * @method $this withTemplateId($value)
809
 */
810
class DescribeTemplateAttribute extends Roa
811
{
812
    /** @var string */
813
    public $pathPattern = '/templates/[TemplateId]';
814
}
815
816
/**
817
 * @method string getTemplateType()
818
 */
819
class DescribeTemplates extends Roa
820
{
821
    /** @var string */
822
    public $pathPattern = '/templates';
823
824
    /**
825
     * @param string $value
826
     *
827
     * @return $this
828
     */
829
    public function withTemplateType($value)
830
    {
831
        $this->data['TemplateType'] = $value;
832
        $this->options['query']['template_type'] = $value;
833
834
        return $this;
835
    }
836
}
837
838
class DescribeUserQuota extends Roa
839
{
840
    /** @var string */
841
    public $pathPattern = '/quota';
842
}
843
844
class DescribeWorkflows extends Roa
845
{
846
    /** @var string */
847
    public $pathPattern = '/gs/workflows';
848
}
849
850
/**
851
 * @method string getNamespace()
852
 * @method string getName()
853
 * @method string getClusterId()
854
 * @method $this withClusterId($value)
855
 * @method string getType()
856
 */
857
class GetKubernetesTrigger extends Roa
858
{
859
    /** @var string */
860
    public $pathPattern = '/triggers/[ClusterId]';
861
862
    /**
863
     * @param string $value
864
     *
865
     * @return $this
866
     */
867
    public function withNamespace($value)
868
    {
869
        $this->data['Namespace'] = $value;
870
        $this->options['query']['Namespace'] = $value;
871
872
        return $this;
873
    }
874
875
    /**
876
     * @param string $value
877
     *
878
     * @return $this
879
     */
880
    public function withName($value)
881
    {
882
        $this->data['Name'] = $value;
883
        $this->options['query']['Name'] = $value;
884
885
        return $this;
886
    }
887
888
    /**
889
     * @param string $value
890
     *
891
     * @return $this
892
     */
893
    public function withType($value)
894
    {
895
        $this->data['Type'] = $value;
896
        $this->options['query']['Type'] = $value;
897
898
        return $this;
899
    }
900
}
901
902
/**
903
 * @method string getClusterId()
904
 * @method $this withClusterId($value)
905
 */
906
class GetUpgradeStatus extends Roa
907
{
908
    /** @var string */
909
    public $pathPattern = '/api/v2/clusters/[ClusterId]/upgrade/status';
910
}
911
912
/**
913
 * @method string getClusterId()
914
 * @method $this withClusterId($value)
915
 */
916
class InstallClusterAddons extends Roa
917
{
918
    /** @var string */
919
    public $pathPattern = '/clusters/[ClusterId]/components/install';
920
921
    /** @var string */
922
    public $method = 'POST';
923
}
924
925
/**
926
 * @method string getResourceType()
927
 * @method string getNextToken()
928
 * @method string getResourceIds()
929
 * @method string getTags()
930
 */
931
class ListTagResources extends Roa
932
{
933
    /** @var string */
934
    public $pathPattern = '/tags';
935
936
    /**
937
     * @param string $value
938
     *
939
     * @return $this
940
     */
941
    public function withResourceType($value)
942
    {
943
        $this->data['ResourceType'] = $value;
944
        $this->options['query']['resource_type'] = $value;
945
946
        return $this;
947
    }
948
949
    /**
950
     * @param string $value
951
     *
952
     * @return $this
953
     */
954
    public function withNextToken($value)
955
    {
956
        $this->data['NextToken'] = $value;
957
        $this->options['query']['next_token'] = $value;
958
959
        return $this;
960
    }
961
962
    /**
963
     * @param string $value
964
     *
965
     * @return $this
966
     */
967
    public function withResourceIds($value)
968
    {
969
        $this->data['ResourceIds'] = $value;
970
        $this->options['query']['resource_ids'] = $value;
971
972
        return $this;
973
    }
974
975
    /**
976
     * @param string $value
977
     *
978
     * @return $this
979
     */
980
    public function withTags($value)
981
    {
982
        $this->data['Tags'] = $value;
983
        $this->options['query']['tags'] = $value;
984
985
        return $this;
986
    }
987
}
988
989
/**
990
 * @method string getClusterId()
991
 * @method $this withClusterId($value)
992
 */
993
class ModifyCluster extends Roa
994
{
995
    /** @var string */
996
    public $pathPattern = '/api/v2/clusters/[ClusterId]';
997
998
    /** @var string */
999
    public $method = 'PUT';
1000
}
1001
1002
/**
1003
 * @method string getClusterId()
1004
 * @method $this withClusterId($value)
1005
 */
1006
class ModifyClusterConfiguration extends Roa
1007
{
1008
    /** @var string */
1009
    public $pathPattern = '/clusters/[ClusterId]/configuration';
1010
1011
    /** @var string */
1012
    public $method = 'PUT';
1013
}
1014
1015
/**
1016
 * @method string getClusterId()
1017
 * @method $this withClusterId($value)
1018
 * @method string getNodepoolId()
1019
 * @method $this withNodepoolId($value)
1020
 */
1021
class ModifyClusterNodePool extends Roa
1022
{
1023
    /** @var string */
1024
    public $pathPattern = '/clusters/[ClusterId]/nodepools/[NodepoolId]';
1025
1026
    /** @var string */
1027
    public $method = 'PUT';
1028
}
1029
1030
/**
1031
 * @method string getClusterId()
1032
 * @method $this withClusterId($value)
1033
 */
1034
class ModifyClusterTags extends Roa
1035
{
1036
    /** @var string */
1037
    public $pathPattern = '/clusters/[ClusterId]/tags';
1038
1039
    /** @var string */
1040
    public $method = 'POST';
1041
}
1042
1043
/**
1044
 * @method string getClusterId()
1045
 * @method $this withClusterId($value)
1046
 */
1047
class PauseClusterUpgrade extends Roa
1048
{
1049
    /** @var string */
1050
    public $pathPattern = '/api/v2/clusters/[ClusterId]/upgrade/pause';
1051
1052
    /** @var string */
1053
    public $method = 'POST';
1054
}
1055
1056
/**
1057
 * @method string getComponentid()
1058
 * @method string getClusterid()
1059
 */
1060
class PauseComponentUpgrade extends Roa
1061
{
1062
    /** @var string */
1063
    public $pathPattern = '/clusters/[clusterid]/components/[componentid]/pause';
1064
1065
    /** @var string */
1066
    public $method = 'POST';
1067
1068
    /**
1069
     * @param string $value
1070
     *
1071
     * @return $this
1072
     */
1073
    public function withComponentid($value)
1074
    {
1075
        $this->data['Componentid'] = $value;
1076
        $this->pathParameters['componentid'] = $value;
1077
1078
        return $this;
1079
    }
1080
1081
    /**
1082
     * @param string $value
1083
     *
1084
     * @return $this
1085
     */
1086
    public function withClusterid($value)
1087
    {
1088
        $this->data['Clusterid'] = $value;
1089
        $this->pathParameters['clusterid'] = $value;
1090
1091
        return $this;
1092
    }
1093
}
1094
1095
/**
1096
 * @method string getClusterId()
1097
 * @method $this withClusterId($value)
1098
 */
1099
class RemoveClusterNodes extends Roa
1100
{
1101
    /** @var string */
1102
    public $pathPattern = '/api/v2/clusters/[ClusterId]/nodes/remove';
1103
1104
    /** @var string */
1105
    public $method = 'POST';
1106
}
1107
1108
/**
1109
 * @method string getWorkflowName()
1110
 */
1111
class RemoveWorkflow extends Roa
1112
{
1113
    /** @var string */
1114
    public $pathPattern = '/gs/workflow/[workflowName]';
1115
1116
    /** @var string */
1117
    public $method = 'DELETE';
1118
1119
    /**
1120
     * @param string $value
1121
     *
1122
     * @return $this
1123
     */
1124
    public function withWorkflowName($value)
1125
    {
1126
        $this->data['WorkflowName'] = $value;
1127
        $this->pathParameters['workflowName'] = $value;
1128
1129
        return $this;
1130
    }
1131
}
1132
1133
/**
1134
 * @method string getComponentid()
1135
 * @method string getClusterid()
1136
 */
1137
class ResumeComponentUpgrade extends Roa
1138
{
1139
    /** @var string */
1140
    public $pathPattern = '/clusters/[clusterid]/components/[componentid]/resume';
1141
1142
    /** @var string */
1143
    public $method = 'POST';
1144
1145
    /**
1146
     * @param string $value
1147
     *
1148
     * @return $this
1149
     */
1150
    public function withComponentid($value)
1151
    {
1152
        $this->data['Componentid'] = $value;
1153
        $this->pathParameters['componentid'] = $value;
1154
1155
        return $this;
1156
    }
1157
1158
    /**
1159
     * @param string $value
1160
     *
1161
     * @return $this
1162
     */
1163
    public function withClusterid($value)
1164
    {
1165
        $this->data['Clusterid'] = $value;
1166
        $this->pathParameters['clusterid'] = $value;
1167
1168
        return $this;
1169
    }
1170
}
1171
1172
/**
1173
 * @method string getClusterId()
1174
 * @method $this withClusterId($value)
1175
 */
1176
class ResumeUpgradeCluster extends Roa
1177
{
1178
    /** @var string */
1179
    public $pathPattern = '/api/v2/clusters/[ClusterId]/upgrade/resume';
1180
1181
    /** @var string */
1182
    public $method = 'POST';
1183
}
1184
1185
/**
1186
 * @method string getClusterId()
1187
 * @method $this withClusterId($value)
1188
 */
1189
class ScaleCluster extends Roa
1190
{
1191
    /** @var string */
1192
    public $pathPattern = '/clusters/[ClusterId]';
1193
1194
    /** @var string */
1195
    public $method = 'PUT';
1196
}
1197
1198
/**
1199
 * @method string getClusterId()
1200
 * @method $this withClusterId($value)
1201
 * @method string getNodepoolId()
1202
 * @method $this withNodepoolId($value)
1203
 */
1204
class ScaleClusterNodePool extends Roa
1205
{
1206
    /** @var string */
1207
    public $pathPattern = '/clusters/[ClusterId]/nodepools/[NodepoolId]';
1208
1209
    /** @var string */
1210
    public $method = 'POST';
1211
}
1212
1213
/**
1214
 * @method string getClusterId()
1215
 * @method $this withClusterId($value)
1216
 */
1217
class ScaleOutCluster extends Roa
1218
{
1219
    /** @var string */
1220
    public $pathPattern = '/api/v2/clusters/[ClusterId]';
1221
1222
    /** @var string */
1223
    public $method = 'POST';
1224
}
1225
1226
class StartWorkflow extends Roa
1227
{
1228
    /** @var string */
1229
    public $pathPattern = '/gs/workflow';
1230
1231
    /** @var string */
1232
    public $method = 'POST';
1233
}
1234
1235
/**
1236
 * @method string getClusterId()
1237
 * @method $this withClusterId($value)
1238
 */
1239
class UnInstallClusterAddons extends Roa
1240
{
1241
    /** @var string */
1242
    public $pathPattern = '/clusters/[ClusterId]/components/uninstall';
1243
1244
    /** @var string */
1245
    public $method = 'POST';
1246
}
1247
1248
/**
1249
 * @method string getClusterId()
1250
 * @method $this withClusterId($value)
1251
 */
1252
class UpdateK8sClusterUserConfigExpire extends Roa
1253
{
1254
    /** @var string */
1255
    public $pathPattern = '/k8s/[ClusterId]/user_config/expire';
1256
1257
    /** @var string */
1258
    public $method = 'POST';
1259
}
1260
1261
/**
1262
 * @method string getTemplateId()
1263
 * @method $this withTemplateId($value)
1264
 */
1265
class UpdateTemplate extends Roa
1266
{
1267
    /** @var string */
1268
    public $pathPattern = '/templates/[TemplateId]';
1269
1270
    /** @var string */
1271
    public $method = 'PUT';
1272
}
1273
1274
/**
1275
 * @method string getClusterId()
1276
 * @method $this withClusterId($value)
1277
 */
1278
class UpgradeCluster extends Roa
1279
{
1280
    /** @var string */
1281
    public $pathPattern = '/api/v2/clusters/[ClusterId]/upgrade';
1282
1283
    /** @var string */
1284
    public $method = 'POST';
1285
}
1286
1287
/**
1288
 * @method string getClusterId()
1289
 * @method $this withClusterId($value)
1290
 */
1291
class UpgradeClusterAddons extends Roa
1292
{
1293
    /** @var string */
1294
    public $pathPattern = '/clusters/[ClusterId]/components/upgrade';
1295
1296
    /** @var string */
1297
    public $method = 'POST';
1298
}
1299