tencentcloud-sdk-nodejs-intl-en 3.0.1059 → 3.0.1061

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,4117 @@
1
+ /*
2
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+ const AbstractModel = require("../../common/abstract_model");
18
+
19
+ /**
20
+ * Node information
21
+ * @class
22
+ */
23
+ class NativeNodeInfo extends AbstractModel {
24
+ constructor(){
25
+ super();
26
+
27
+ /**
28
+ * Node name
29
+ * @type {string || null}
30
+ */
31
+ this.MachineName = null;
32
+
33
+ /**
34
+ * Machine status
35
+ * @type {string || null}
36
+ */
37
+ this.MachineState = null;
38
+
39
+ /**
40
+ * Machine availability zone
41
+ * @type {string || null}
42
+ */
43
+ this.Zone = null;
44
+
45
+ /**
46
+ * Node billing type. PREPAID: Monthly subscription; POSTPAID_BY_HOUR: Pay-as-you-go (default);
47
+ * @type {string || null}
48
+ */
49
+ this.InstanceChargeType = null;
50
+
51
+ /**
52
+ * Creation time
53
+ * @type {string || null}
54
+ */
55
+ this.CreatedAt = null;
56
+
57
+ /**
58
+ * Machine login status
59
+ Note: This field may return "null", indicating that no valid value can be obtained.
60
+ * @type {string || null}
61
+ */
62
+ this.LoginStatus = null;
63
+
64
+ /**
65
+ * Whether to enable scale-in protection
66
+ Note: This field may return "null", indicating that no valid value can be obtained.
67
+ * @type {boolean || null}
68
+ */
69
+ this.IsProtectedFromScaleIn = null;
70
+
71
+ /**
72
+ * Machine name
73
+ Note: This field may return "null", indicating that no valid value can be obtained.
74
+ * @type {string || null}
75
+ */
76
+ this.DisplayName = null;
77
+
78
+ /**
79
+ * Number of CPU cores (unit: cores)
80
+ * @type {number || null}
81
+ */
82
+ this.CPU = null;
83
+
84
+ /**
85
+ * Number of GPU cores (unit: cores)
86
+ Note: This field may return "null", indicating that no valid value can be obtained.
87
+ * @type {number || null}
88
+ */
89
+ this.GPU = null;
90
+
91
+ /**
92
+ * Auto-renewal label
93
+ * @type {string || null}
94
+ */
95
+ this.RenewFlag = null;
96
+
97
+ /**
98
+ * Node billing mode (deprecated)
99
+ * @type {string || null}
100
+ */
101
+ this.PayMode = null;
102
+
103
+ /**
104
+ * Node memory capacity (unit: `GB`)
105
+ * @type {number || null}
106
+ */
107
+ this.Memory = null;
108
+
109
+ /**
110
+ * Public network bandwidth configuration
111
+ * @type {InternetAccessible || null}
112
+ */
113
+ this.InternetAccessible = null;
114
+
115
+ /**
116
+ * Model family
117
+ * @type {string || null}
118
+ */
119
+ this.InstanceFamily = null;
120
+
121
+ /**
122
+ * Node private network IP
123
+ * @type {string || null}
124
+ */
125
+ this.LanIp = null;
126
+
127
+ /**
128
+ * Model
129
+ * @type {string || null}
130
+ */
131
+ this.InstanceType = null;
132
+
133
+ /**
134
+ * Billing expiration time of monthly subscription nodes
135
+ Note: This field may return "null", indicating that no valid value can be obtained.
136
+ * @type {string || null}
137
+ */
138
+ this.ExpiredTime = null;
139
+
140
+ /**
141
+ * Security group list
142
+ Note: This field may return "null", indicating that no valid value can be obtained.
143
+ * @type {Array.<string> || null}
144
+ */
145
+ this.SecurityGroupIDs = null;
146
+
147
+ /**
148
+ * VPC unique ID
149
+ Note: This field may return "null", indicating that no valid value can be obtained.
150
+ * @type {string || null}
151
+ */
152
+ this.VpcId = null;
153
+
154
+ /**
155
+ * Subnet unique ID
156
+ Note: This field may return "null", indicating that no valid value can be obtained.
157
+ * @type {string || null}
158
+ */
159
+ this.SubnetId = null;
160
+
161
+ /**
162
+ * OS name
163
+ Note: This field may return "null", indicating that no valid value can be obtained.
164
+ * @type {string || null}
165
+ */
166
+ this.OsImage = null;
167
+
168
+ /**
169
+ *
170
+ * @type {string || null}
171
+ */
172
+ this.InstanceId = null;
173
+
174
+ }
175
+
176
+ /**
177
+ * @private
178
+ */
179
+ deserialize(params) {
180
+ if (!params) {
181
+ return;
182
+ }
183
+ this.MachineName = 'MachineName' in params ? params.MachineName : null;
184
+ this.MachineState = 'MachineState' in params ? params.MachineState : null;
185
+ this.Zone = 'Zone' in params ? params.Zone : null;
186
+ this.InstanceChargeType = 'InstanceChargeType' in params ? params.InstanceChargeType : null;
187
+ this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null;
188
+ this.LoginStatus = 'LoginStatus' in params ? params.LoginStatus : null;
189
+ this.IsProtectedFromScaleIn = 'IsProtectedFromScaleIn' in params ? params.IsProtectedFromScaleIn : null;
190
+ this.DisplayName = 'DisplayName' in params ? params.DisplayName : null;
191
+ this.CPU = 'CPU' in params ? params.CPU : null;
192
+ this.GPU = 'GPU' in params ? params.GPU : null;
193
+ this.RenewFlag = 'RenewFlag' in params ? params.RenewFlag : null;
194
+ this.PayMode = 'PayMode' in params ? params.PayMode : null;
195
+ this.Memory = 'Memory' in params ? params.Memory : null;
196
+
197
+ if (params.InternetAccessible) {
198
+ let obj = new InternetAccessible();
199
+ obj.deserialize(params.InternetAccessible)
200
+ this.InternetAccessible = obj;
201
+ }
202
+ this.InstanceFamily = 'InstanceFamily' in params ? params.InstanceFamily : null;
203
+ this.LanIp = 'LanIp' in params ? params.LanIp : null;
204
+ this.InstanceType = 'InstanceType' in params ? params.InstanceType : null;
205
+ this.ExpiredTime = 'ExpiredTime' in params ? params.ExpiredTime : null;
206
+ this.SecurityGroupIDs = 'SecurityGroupIDs' in params ? params.SecurityGroupIDs : null;
207
+ this.VpcId = 'VpcId' in params ? params.VpcId : null;
208
+ this.SubnetId = 'SubnetId' in params ? params.SubnetId : null;
209
+ this.OsImage = 'OsImage' in params ? params.OsImage : null;
210
+ this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
211
+
212
+ }
213
+ }
214
+
215
+ /**
216
+ * Health check template rules
217
+ * @class
218
+ */
219
+ class HealthCheckTemplateRule extends AbstractModel {
220
+ constructor(){
221
+ super();
222
+
223
+ /**
224
+ * Health check item name
225
+ * @type {string || null}
226
+ */
227
+ this.Name = null;
228
+
229
+ /**
230
+ * Description of health check rules
231
+ * @type {string || null}
232
+ */
233
+ this.Description = null;
234
+
235
+ /**
236
+ * Fix action
237
+ * @type {string || null}
238
+ */
239
+ this.RepairAction = null;
240
+
241
+ /**
242
+ * Fix impact
243
+ * @type {string || null}
244
+ */
245
+ this.RepairEffect = null;
246
+
247
+ /**
248
+ * Whether it is recommended to enable check
249
+ * @type {boolean || null}
250
+ */
251
+ this.ShouldEnable = null;
252
+
253
+ /**
254
+ * Whether repair is suggested.
255
+ * @type {boolean || null}
256
+ */
257
+ this.ShouldRepair = null;
258
+
259
+ /**
260
+ * Severity
261
+ * @type {string || null}
262
+ */
263
+ this.Severity = null;
264
+
265
+ }
266
+
267
+ /**
268
+ * @private
269
+ */
270
+ deserialize(params) {
271
+ if (!params) {
272
+ return;
273
+ }
274
+ this.Name = 'Name' in params ? params.Name : null;
275
+ this.Description = 'Description' in params ? params.Description : null;
276
+ this.RepairAction = 'RepairAction' in params ? params.RepairAction : null;
277
+ this.RepairEffect = 'RepairEffect' in params ? params.RepairEffect : null;
278
+ this.ShouldEnable = 'ShouldEnable' in params ? params.ShouldEnable : null;
279
+ this.ShouldRepair = 'ShouldRepair' in params ? params.ShouldRepair : null;
280
+ this.Severity = 'Severity' in params ? params.Severity : null;
281
+
282
+ }
283
+ }
284
+
285
+ /**
286
+ * Health check rules
287
+ * @class
288
+ */
289
+ class HealthCheckPolicyRule extends AbstractModel {
290
+ constructor(){
291
+ super();
292
+
293
+ /**
294
+ * Health check rules
295
+ * @type {string || null}
296
+ */
297
+ this.Name = null;
298
+
299
+ /**
300
+ * Whether to check this item
301
+ * @type {boolean || null}
302
+ */
303
+ this.Enabled = null;
304
+
305
+ /**
306
+ * Whether to enable repair
307
+ * @type {boolean || null}
308
+ */
309
+ this.AutoRepairEnabled = null;
310
+
311
+ }
312
+
313
+ /**
314
+ * @private
315
+ */
316
+ deserialize(params) {
317
+ if (!params) {
318
+ return;
319
+ }
320
+ this.Name = 'Name' in params ? params.Name : null;
321
+ this.Enabled = 'Enabled' in params ? params.Enabled : null;
322
+ this.AutoRepairEnabled = 'AutoRepairEnabled' in params ? params.AutoRepairEnabled : null;
323
+
324
+ }
325
+ }
326
+
327
+ /**
328
+ * DeleteHealthCheckPolicy request structure.
329
+ * @class
330
+ */
331
+ class DeleteHealthCheckPolicyRequest extends AbstractModel {
332
+ constructor(){
333
+ super();
334
+
335
+ /**
336
+ * Cluster ID
337
+ * @type {string || null}
338
+ */
339
+ this.ClusterId = null;
340
+
341
+ /**
342
+ * Health check policy name
343
+ * @type {string || null}
344
+ */
345
+ this.HealthCheckPolicyName = null;
346
+
347
+ }
348
+
349
+ /**
350
+ * @private
351
+ */
352
+ deserialize(params) {
353
+ if (!params) {
354
+ return;
355
+ }
356
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
357
+ this.HealthCheckPolicyName = 'HealthCheckPolicyName' in params ? params.HealthCheckPolicyName : null;
358
+
359
+ }
360
+ }
361
+
362
+ /**
363
+ * CreateNodePool response structure.
364
+ * @class
365
+ */
366
+ class CreateNodePoolResponse extends AbstractModel {
367
+ constructor(){
368
+ super();
369
+
370
+ /**
371
+ * Node pool ID
372
+ * @type {string || null}
373
+ */
374
+ this.NodePoolId = null;
375
+
376
+ /**
377
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
378
+ * @type {string || null}
379
+ */
380
+ this.RequestId = null;
381
+
382
+ }
383
+
384
+ /**
385
+ * @private
386
+ */
387
+ deserialize(params) {
388
+ if (!params) {
389
+ return;
390
+ }
391
+ this.NodePoolId = 'NodePoolId' in params ? params.NodePoolId : null;
392
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
393
+
394
+ }
395
+ }
396
+
397
+ /**
398
+ * Native node pool creation parameters
399
+ * @class
400
+ */
401
+ class CreateNativeNodePoolParam extends AbstractModel {
402
+ constructor(){
403
+ super();
404
+
405
+ /**
406
+ * Node pool scaling configuration
407
+ * @type {MachineSetScaling || null}
408
+ */
409
+ this.Scaling = null;
410
+
411
+ /**
412
+ * Subnet list
413
+ * @type {Array.<string> || null}
414
+ */
415
+ this.SubnetIds = null;
416
+
417
+ /**
418
+ * Node billing type. PREPAID: Monthly subscription; POSTPAID_BY_HOUR: Pay-as-you-go (default);
419
+ * @type {string || null}
420
+ */
421
+ this.InstanceChargeType = null;
422
+
423
+ /**
424
+ * System disk configuration
425
+ * @type {Disk || null}
426
+ */
427
+ this.SystemDisk = null;
428
+
429
+ /**
430
+ * List of models
431
+ * @type {Array.<string> || null}
432
+ */
433
+ this.InstanceTypes = null;
434
+
435
+ /**
436
+ * Security group list
437
+ * @type {Array.<string> || null}
438
+ */
439
+ this.SecurityGroupIds = null;
440
+
441
+ /**
442
+ * Automatic upgrade configuration
443
+ * @type {MachineUpgradeSettings || null}
444
+ */
445
+ this.UpgradeSettings = null;
446
+
447
+ /**
448
+ * Whether to enable self-healing capability
449
+ * @type {boolean || null}
450
+ */
451
+ this.AutoRepair = null;
452
+
453
+ /**
454
+ * Billing configuration of monthly subscription models
455
+ * @type {InstanceChargePrepaid || null}
456
+ */
457
+ this.InstanceChargePrepaid = null;
458
+
459
+ /**
460
+ * Management parameter configuration of node pools
461
+ * @type {ManagementConfig || null}
462
+ */
463
+ this.Management = null;
464
+
465
+ /**
466
+ * Fault self-healing rule name
467
+ * @type {string || null}
468
+ */
469
+ this.HealthCheckPolicyName = null;
470
+
471
+ /**
472
+ * hostname pattern string of native node pools
473
+ * @type {string || null}
474
+ */
475
+ this.HostNamePattern = null;
476
+
477
+ /**
478
+ * kubelet custom parameters
479
+ * @type {Array.<string> || null}
480
+ */
481
+ this.KubeletArgs = null;
482
+
483
+ /**
484
+ * Predefined script
485
+ * @type {LifecycleConfig || null}
486
+ */
487
+ this.Lifecycle = null;
488
+
489
+ /**
490
+ * Runtime root directory
491
+ * @type {string || null}
492
+ */
493
+ this.RuntimeRootDir = null;
494
+
495
+ /**
496
+ * Whether to enable Auto Scaling (AS)
497
+ * @type {boolean || null}
498
+ */
499
+ this.EnableAutoscaling = null;
500
+
501
+ /**
502
+ * Desired node count
503
+ * @type {number || null}
504
+ */
505
+ this.Replicas = null;
506
+
507
+ /**
508
+ * Public network bandwidth configuration
509
+ * @type {InternetAccessible || null}
510
+ */
511
+ this.InternetAccessible = null;
512
+
513
+ /**
514
+ * Data disk list of native node pools
515
+ * @type {Array.<DataDisk> || null}
516
+ */
517
+ this.DataDisks = null;
518
+
519
+ /**
520
+ * Node pool ssh public key ID array
521
+ * @type {Array.<string> || null}
522
+ */
523
+ this.KeyIds = null;
524
+
525
+ /**
526
+ * Node pool type
527
+ * @type {string || null}
528
+ */
529
+ this.MachineType = null;
530
+
531
+ }
532
+
533
+ /**
534
+ * @private
535
+ */
536
+ deserialize(params) {
537
+ if (!params) {
538
+ return;
539
+ }
540
+
541
+ if (params.Scaling) {
542
+ let obj = new MachineSetScaling();
543
+ obj.deserialize(params.Scaling)
544
+ this.Scaling = obj;
545
+ }
546
+ this.SubnetIds = 'SubnetIds' in params ? params.SubnetIds : null;
547
+ this.InstanceChargeType = 'InstanceChargeType' in params ? params.InstanceChargeType : null;
548
+
549
+ if (params.SystemDisk) {
550
+ let obj = new Disk();
551
+ obj.deserialize(params.SystemDisk)
552
+ this.SystemDisk = obj;
553
+ }
554
+ this.InstanceTypes = 'InstanceTypes' in params ? params.InstanceTypes : null;
555
+ this.SecurityGroupIds = 'SecurityGroupIds' in params ? params.SecurityGroupIds : null;
556
+
557
+ if (params.UpgradeSettings) {
558
+ let obj = new MachineUpgradeSettings();
559
+ obj.deserialize(params.UpgradeSettings)
560
+ this.UpgradeSettings = obj;
561
+ }
562
+ this.AutoRepair = 'AutoRepair' in params ? params.AutoRepair : null;
563
+
564
+ if (params.InstanceChargePrepaid) {
565
+ let obj = new InstanceChargePrepaid();
566
+ obj.deserialize(params.InstanceChargePrepaid)
567
+ this.InstanceChargePrepaid = obj;
568
+ }
569
+
570
+ if (params.Management) {
571
+ let obj = new ManagementConfig();
572
+ obj.deserialize(params.Management)
573
+ this.Management = obj;
574
+ }
575
+ this.HealthCheckPolicyName = 'HealthCheckPolicyName' in params ? params.HealthCheckPolicyName : null;
576
+ this.HostNamePattern = 'HostNamePattern' in params ? params.HostNamePattern : null;
577
+ this.KubeletArgs = 'KubeletArgs' in params ? params.KubeletArgs : null;
578
+
579
+ if (params.Lifecycle) {
580
+ let obj = new LifecycleConfig();
581
+ obj.deserialize(params.Lifecycle)
582
+ this.Lifecycle = obj;
583
+ }
584
+ this.RuntimeRootDir = 'RuntimeRootDir' in params ? params.RuntimeRootDir : null;
585
+ this.EnableAutoscaling = 'EnableAutoscaling' in params ? params.EnableAutoscaling : null;
586
+ this.Replicas = 'Replicas' in params ? params.Replicas : null;
587
+
588
+ if (params.InternetAccessible) {
589
+ let obj = new InternetAccessible();
590
+ obj.deserialize(params.InternetAccessible)
591
+ this.InternetAccessible = obj;
592
+ }
593
+
594
+ if (params.DataDisks) {
595
+ this.DataDisks = new Array();
596
+ for (let z in params.DataDisks) {
597
+ let obj = new DataDisk();
598
+ obj.deserialize(params.DataDisks[z]);
599
+ this.DataDisks.push(obj);
600
+ }
601
+ }
602
+ this.KeyIds = 'KeyIds' in params ? params.KeyIds : null;
603
+ this.MachineType = 'MachineType' in params ? params.MachineType : null;
604
+
605
+ }
606
+ }
607
+
608
+ /**
609
+ * DescribeNodePools response structure.
610
+ * @class
611
+ */
612
+ class DescribeNodePoolsResponse extends AbstractModel {
613
+ constructor(){
614
+ super();
615
+
616
+ /**
617
+ * Node pool list
618
+ Note: This field may return "null", indicating that no valid value can be obtained.
619
+ * @type {Array.<NodePool> || null}
620
+ */
621
+ this.NodePools = null;
622
+
623
+ /**
624
+ * Total resources
625
+ * @type {number || null}
626
+ */
627
+ this.TotalCount = null;
628
+
629
+ /**
630
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
631
+ * @type {string || null}
632
+ */
633
+ this.RequestId = null;
634
+
635
+ }
636
+
637
+ /**
638
+ * @private
639
+ */
640
+ deserialize(params) {
641
+ if (!params) {
642
+ return;
643
+ }
644
+
645
+ if (params.NodePools) {
646
+ this.NodePools = new Array();
647
+ for (let z in params.NodePools) {
648
+ let obj = new NodePool();
649
+ obj.deserialize(params.NodePools[z]);
650
+ this.NodePools.push(obj);
651
+ }
652
+ }
653
+ this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
654
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
655
+
656
+ }
657
+ }
658
+
659
+ /**
660
+ * Third-party node
661
+ * @class
662
+ */
663
+ class ExternalNodeInfo extends AbstractModel {
664
+ constructor(){
665
+ super();
666
+
667
+ /**
668
+ * Third-party node name
669
+ * @type {string || null}
670
+ */
671
+ this.Name = null;
672
+
673
+ /**
674
+ * Number of CPU cores (unit: cores)
675
+ Note: This field may return "null", indicating that no valid value can be obtained.
676
+ * @type {number || null}
677
+ */
678
+ this.CPU = null;
679
+
680
+ /**
681
+ * Node memory capacity (unit: `GB`)
682
+ Note: This field may return "null", indicating that no valid value can be obtained.
683
+ * @type {number || null}
684
+ */
685
+ this.Memory = null;
686
+
687
+ /**
688
+ * kubelet version information of third-party nodes
689
+ Note: This field may return "null", indicating that no valid value can be obtained.
690
+ * @type {string || null}
691
+ */
692
+ this.K8SVersion = null;
693
+
694
+ }
695
+
696
+ /**
697
+ * @private
698
+ */
699
+ deserialize(params) {
700
+ if (!params) {
701
+ return;
702
+ }
703
+ this.Name = 'Name' in params ? params.Name : null;
704
+ this.CPU = 'CPU' in params ? params.CPU : null;
705
+ this.Memory = 'Memory' in params ? params.Memory : null;
706
+ this.K8SVersion = 'K8SVersion' in params ? params.K8SVersion : null;
707
+
708
+ }
709
+ }
710
+
711
+ /**
712
+ * DescribeClusterInstances response structure.
713
+ * @class
714
+ */
715
+ class DescribeClusterInstancesResponse extends AbstractModel {
716
+ constructor(){
717
+ super();
718
+
719
+ /**
720
+ * Total number of instances in the cluster
721
+ * @type {number || null}
722
+ */
723
+ this.TotalCount = null;
724
+
725
+ /**
726
+ * List of instances in the cluster
727
+ * @type {Array.<Instance> || null}
728
+ */
729
+ this.InstanceSet = null;
730
+
731
+ /**
732
+ * Error information collection
733
+ Note: This field may return "null", indicating that no valid value can be obtained.
734
+ * @type {Array.<string> || null}
735
+ */
736
+ this.Errors = null;
737
+
738
+ /**
739
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
740
+ * @type {string || null}
741
+ */
742
+ this.RequestId = null;
743
+
744
+ }
745
+
746
+ /**
747
+ * @private
748
+ */
749
+ deserialize(params) {
750
+ if (!params) {
751
+ return;
752
+ }
753
+ this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
754
+
755
+ if (params.InstanceSet) {
756
+ this.InstanceSet = new Array();
757
+ for (let z in params.InstanceSet) {
758
+ let obj = new Instance();
759
+ obj.deserialize(params.InstanceSet[z]);
760
+ this.InstanceSet.push(obj);
761
+ }
762
+ }
763
+ this.Errors = 'Errors' in params ? params.Errors : null;
764
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
765
+
766
+ }
767
+ }
768
+
769
+ /**
770
+ * Ops window settings of managed node pools
771
+ * @class
772
+ */
773
+ class AutoUpgradeOptions extends AbstractModel {
774
+ constructor(){
775
+ super();
776
+
777
+ /**
778
+ * Automatic upgrade start time
779
+ Note: This field may return "null", indicating that no valid value can be obtained.
780
+ * @type {string || null}
781
+ */
782
+ this.AutoUpgradeStartTime = null;
783
+
784
+ /**
785
+ * Automatic upgrade duration
786
+ Note: This field may return "null", indicating that no valid value can be obtained.
787
+ * @type {string || null}
788
+ */
789
+ this.Duration = null;
790
+
791
+ /**
792
+ * Ops date
793
+ Note: This field may return "null", indicating that no valid value can be obtained.
794
+ * @type {Array.<string> || null}
795
+ */
796
+ this.WeeklyPeriod = null;
797
+
798
+ }
799
+
800
+ /**
801
+ * @private
802
+ */
803
+ deserialize(params) {
804
+ if (!params) {
805
+ return;
806
+ }
807
+ this.AutoUpgradeStartTime = 'AutoUpgradeStartTime' in params ? params.AutoUpgradeStartTime : null;
808
+ this.Duration = 'Duration' in params ? params.Duration : null;
809
+ this.WeeklyPeriod = 'WeeklyPeriod' in params ? params.WeeklyPeriod : null;
810
+
811
+ }
812
+ }
813
+
814
+ /**
815
+ * Nodes for automatic scaling
816
+ * @class
817
+ */
818
+ class AutoscalingAdded extends AbstractModel {
819
+ constructor(){
820
+ super();
821
+
822
+ /**
823
+ * Number of nodes being added
824
+ * @type {number || null}
825
+ */
826
+ this.Joining = null;
827
+
828
+ /**
829
+ * Number of nodes being initialized
830
+ * @type {number || null}
831
+ */
832
+ this.Initializing = null;
833
+
834
+ /**
835
+ * Number of normal nodes
836
+ * @type {number || null}
837
+ */
838
+ this.Normal = null;
839
+
840
+ /**
841
+ * Total number of nodes
842
+ * @type {number || null}
843
+ */
844
+ this.Total = null;
845
+
846
+ }
847
+
848
+ /**
849
+ * @private
850
+ */
851
+ deserialize(params) {
852
+ if (!params) {
853
+ return;
854
+ }
855
+ this.Joining = 'Joining' in params ? params.Joining : null;
856
+ this.Initializing = 'Initializing' in params ? params.Initializing : null;
857
+ this.Normal = 'Normal' in params ? params.Normal : null;
858
+ this.Total = 'Total' in params ? params.Total : null;
859
+
860
+ }
861
+ }
862
+
863
+ /**
864
+ * Cluster's instance information
865
+ * @class
866
+ */
867
+ class Instance extends AbstractModel {
868
+ constructor(){
869
+ super();
870
+
871
+ /**
872
+ * Instance ID
873
+ * @type {string || null}
874
+ */
875
+ this.InstanceId = null;
876
+
877
+ /**
878
+ * Node role: MASTER, WORKER, ETCD, MASTER_ETCD, and ALL. Default value: WORKER
879
+ * @type {string || null}
880
+ */
881
+ this.InstanceRole = null;
882
+
883
+ /**
884
+ * Cause of instance exception (or initialization)
885
+ Note: This field may return "null", indicating that no valid value can be obtained.
886
+ * @type {string || null}
887
+ */
888
+ this.FailedReason = null;
889
+
890
+ /**
891
+ * Instance status
892
+
893
+ - initializing
894
+ - running
895
+ - failed
896
+ * @type {string || null}
897
+ */
898
+ this.InstanceState = null;
899
+
900
+ /**
901
+ * Whether it is unschedulable
902
+ Note: This field may return "null", indicating that no valid value can be obtained.
903
+ * @type {boolean || null}
904
+ */
905
+ this.Unschedulable = null;
906
+
907
+ /**
908
+ * Adding time
909
+ * @type {string || null}
910
+ */
911
+ this.CreatedTime = null;
912
+
913
+ /**
914
+ * Node private network IP
915
+ Note: This field may return "null", indicating that no valid value can be obtained.
916
+ * @type {string || null}
917
+ */
918
+ this.LanIP = null;
919
+
920
+ /**
921
+ * Resource pool ID
922
+
923
+ Note: This field may return "null", indicating that no valid value can be obtained.
924
+ * @type {string || null}
925
+ */
926
+ this.NodePoolId = null;
927
+
928
+ /**
929
+ * Native node parameters
930
+ Note: This field may return "null", indicating that no valid value can be obtained.
931
+ * @type {NativeNodeInfo || null}
932
+ */
933
+ this.Native = null;
934
+
935
+ /**
936
+ * General node parameters
937
+ Note: This field may return "null", indicating that no valid value can be obtained.
938
+ * @type {RegularNodeInfo || null}
939
+ */
940
+ this.Regular = null;
941
+
942
+ /**
943
+ * Super node parameters
944
+ Note: This field may return "null", indicating that no valid value can be obtained.
945
+ * @type {SuperNodeInfo || null}
946
+ */
947
+ this.Super = null;
948
+
949
+ /**
950
+ * Third-party node parameters
951
+ Note: This field may return "null", indicating that no valid value can be obtained.
952
+ * @type {ExternalNodeInfo || null}
953
+ */
954
+ this.External = null;
955
+
956
+ /**
957
+ * Node type
958
+
959
+ Note: This field may return "null", indicating that no valid value can be obtained.
960
+ * @type {string || null}
961
+ */
962
+ this.NodeType = null;
963
+
964
+ }
965
+
966
+ /**
967
+ * @private
968
+ */
969
+ deserialize(params) {
970
+ if (!params) {
971
+ return;
972
+ }
973
+ this.InstanceId = 'InstanceId' in params ? params.InstanceId : null;
974
+ this.InstanceRole = 'InstanceRole' in params ? params.InstanceRole : null;
975
+ this.FailedReason = 'FailedReason' in params ? params.FailedReason : null;
976
+ this.InstanceState = 'InstanceState' in params ? params.InstanceState : null;
977
+ this.Unschedulable = 'Unschedulable' in params ? params.Unschedulable : null;
978
+ this.CreatedTime = 'CreatedTime' in params ? params.CreatedTime : null;
979
+ this.LanIP = 'LanIP' in params ? params.LanIP : null;
980
+ this.NodePoolId = 'NodePoolId' in params ? params.NodePoolId : null;
981
+
982
+ if (params.Native) {
983
+ let obj = new NativeNodeInfo();
984
+ obj.deserialize(params.Native)
985
+ this.Native = obj;
986
+ }
987
+
988
+ if (params.Regular) {
989
+ let obj = new RegularNodeInfo();
990
+ obj.deserialize(params.Regular)
991
+ this.Regular = obj;
992
+ }
993
+
994
+ if (params.Super) {
995
+ let obj = new SuperNodeInfo();
996
+ obj.deserialize(params.Super)
997
+ this.Super = obj;
998
+ }
999
+
1000
+ if (params.External) {
1001
+ let obj = new ExternalNodeInfo();
1002
+ obj.deserialize(params.External)
1003
+ this.External = obj;
1004
+ }
1005
+ this.NodeType = 'NodeType' in params ? params.NodeType : null;
1006
+
1007
+ }
1008
+ }
1009
+
1010
+ /**
1011
+ * DescribeHealthCheckPolicyBindings request structure.
1012
+ * @class
1013
+ */
1014
+ class DescribeHealthCheckPolicyBindingsRequest extends AbstractModel {
1015
+ constructor(){
1016
+ super();
1017
+
1018
+ /**
1019
+ * Cluster ID
1020
+ * @type {string || null}
1021
+ */
1022
+ this.ClusterId = null;
1023
+
1024
+ /**
1025
+ * · HealthCheckPolicyName
1026
+ Filter by [Health Check Rule Name].
1027
+ Type: String
1028
+ Required: No
1029
+ * @type {Array.<Filter> || null}
1030
+ */
1031
+ this.Filter = null;
1032
+
1033
+ /**
1034
+ * Maximum number of output entries. Default value: 20; maximum value: 100.
1035
+ * @type {number || null}
1036
+ */
1037
+ this.Limit = null;
1038
+
1039
+ /**
1040
+ * Offset. Default value: 0
1041
+ * @type {number || null}
1042
+ */
1043
+ this.Offset = null;
1044
+
1045
+ }
1046
+
1047
+ /**
1048
+ * @private
1049
+ */
1050
+ deserialize(params) {
1051
+ if (!params) {
1052
+ return;
1053
+ }
1054
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
1055
+
1056
+ if (params.Filter) {
1057
+ this.Filter = new Array();
1058
+ for (let z in params.Filter) {
1059
+ let obj = new Filter();
1060
+ obj.deserialize(params.Filter[z]);
1061
+ this.Filter.push(obj);
1062
+ }
1063
+ }
1064
+ this.Limit = 'Limit' in params ? params.Limit : null;
1065
+ this.Offset = 'Offset' in params ? params.Offset : null;
1066
+
1067
+ }
1068
+ }
1069
+
1070
+ /**
1071
+ * Node statistics list
1072
+ * @class
1073
+ */
1074
+ class NodeCountSummary extends AbstractModel {
1075
+ constructor(){
1076
+ super();
1077
+
1078
+ /**
1079
+ * Manually managed nodes
1080
+ Note: This field may return "null", indicating that no valid value can be obtained.
1081
+ * @type {ManuallyAdded || null}
1082
+ */
1083
+ this.ManuallyAdded = null;
1084
+
1085
+ /**
1086
+ * Automatically managed nodes
1087
+ Note: This field may return "null", indicating that no valid value can be obtained.
1088
+ * @type {AutoscalingAdded || null}
1089
+ */
1090
+ this.AutoscalingAdded = null;
1091
+
1092
+ }
1093
+
1094
+ /**
1095
+ * @private
1096
+ */
1097
+ deserialize(params) {
1098
+ if (!params) {
1099
+ return;
1100
+ }
1101
+
1102
+ if (params.ManuallyAdded) {
1103
+ let obj = new ManuallyAdded();
1104
+ obj.deserialize(params.ManuallyAdded)
1105
+ this.ManuallyAdded = obj;
1106
+ }
1107
+
1108
+ if (params.AutoscalingAdded) {
1109
+ let obj = new AutoscalingAdded();
1110
+ obj.deserialize(params.AutoscalingAdded)
1111
+ this.AutoscalingAdded = obj;
1112
+ }
1113
+
1114
+ }
1115
+ }
1116
+
1117
+ /**
1118
+ * Virtual node pool information.
1119
+ * @class
1120
+ */
1121
+ class SuperNodePoolInfo extends AbstractModel {
1122
+ constructor(){
1123
+ super();
1124
+
1125
+ /**
1126
+ * Subnet list
1127
+ Note: This field may return "null", indicating that no valid value can be obtained.
1128
+ * @type {Array.<string> || null}
1129
+ */
1130
+ this.SubnetIds = null;
1131
+
1132
+ /**
1133
+ * Security group list
1134
+ Note: This field may return "null", indicating that no valid value can be obtained.
1135
+ * @type {Array.<string> || null}
1136
+ */
1137
+ this.SecurityGroupIds = null;
1138
+
1139
+ }
1140
+
1141
+ /**
1142
+ * @private
1143
+ */
1144
+ deserialize(params) {
1145
+ if (!params) {
1146
+ return;
1147
+ }
1148
+ this.SubnetIds = 'SubnetIds' in params ? params.SubnetIds : null;
1149
+ this.SecurityGroupIds = 'SecurityGroupIds' in params ? params.SecurityGroupIds : null;
1150
+
1151
+ }
1152
+ }
1153
+
1154
+ /**
1155
+ * Runtime configuration
1156
+ * @class
1157
+ */
1158
+ class RuntimeConfig extends AbstractModel {
1159
+ constructor(){
1160
+ super();
1161
+
1162
+ /**
1163
+ * Runtime type
1164
+ Note: This field may return "null", indicating that no valid value can be obtained.
1165
+ * @type {string || null}
1166
+ */
1167
+ this.RuntimeType = null;
1168
+
1169
+ /**
1170
+ * Runtime version
1171
+ Note: This field may return "null", indicating that no valid value can be obtained.
1172
+ * @type {string || null}
1173
+ */
1174
+ this.RuntimeVersion = null;
1175
+
1176
+ /**
1177
+ * Runtime root directory
1178
+ Note: This field may return "null", indicating that no valid value can be obtained.
1179
+ * @type {string || null}
1180
+ */
1181
+ this.RuntimeRootDir = null;
1182
+
1183
+ }
1184
+
1185
+ /**
1186
+ * @private
1187
+ */
1188
+ deserialize(params) {
1189
+ if (!params) {
1190
+ return;
1191
+ }
1192
+ this.RuntimeType = 'RuntimeType' in params ? params.RuntimeType : null;
1193
+ this.RuntimeVersion = 'RuntimeVersion' in params ? params.RuntimeVersion : null;
1194
+ this.RuntimeRootDir = 'RuntimeRootDir' in params ? params.RuntimeRootDir : null;
1195
+
1196
+ }
1197
+ }
1198
+
1199
+ /**
1200
+ * Tags in k8s, generally existing as an array
1201
+ * @class
1202
+ */
1203
+ class Label extends AbstractModel {
1204
+ constructor(){
1205
+ super();
1206
+
1207
+ /**
1208
+ * Name in the map list
1209
+ * @type {string || null}
1210
+ */
1211
+ this.Name = null;
1212
+
1213
+ /**
1214
+ * Value in the map list
1215
+ * @type {string || null}
1216
+ */
1217
+ this.Value = null;
1218
+
1219
+ }
1220
+
1221
+ /**
1222
+ * @private
1223
+ */
1224
+ deserialize(params) {
1225
+ if (!params) {
1226
+ return;
1227
+ }
1228
+ this.Name = 'Name' in params ? params.Name : null;
1229
+ this.Value = 'Value' in params ? params.Value : null;
1230
+
1231
+ }
1232
+ }
1233
+
1234
+ /**
1235
+ * Binding relationship between health check policy and node pool
1236
+ * @class
1237
+ */
1238
+ class HealthCheckPolicyBinding extends AbstractModel {
1239
+ constructor(){
1240
+ super();
1241
+
1242
+ /**
1243
+ * Health check policy name
1244
+ * @type {string || null}
1245
+ */
1246
+ this.Name = null;
1247
+
1248
+ /**
1249
+ * Rule creation time
1250
+ * @type {string || null}
1251
+ */
1252
+ this.CreatedAt = null;
1253
+
1254
+ /**
1255
+ * Associated node pool array
1256
+ * @type {Array.<string> || null}
1257
+ */
1258
+ this.NodePools = null;
1259
+
1260
+ }
1261
+
1262
+ /**
1263
+ * @private
1264
+ */
1265
+ deserialize(params) {
1266
+ if (!params) {
1267
+ return;
1268
+ }
1269
+ this.Name = 'Name' in params ? params.Name : null;
1270
+ this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null;
1271
+ this.NodePools = 'NodePools' in params ? params.NodePools : null;
1272
+
1273
+ }
1274
+ }
1275
+
1276
+ /**
1277
+ * CreateHealthCheckPolicy request structure.
1278
+ * @class
1279
+ */
1280
+ class CreateHealthCheckPolicyRequest extends AbstractModel {
1281
+ constructor(){
1282
+ super();
1283
+
1284
+ /**
1285
+ * Cluster ID
1286
+ * @type {string || null}
1287
+ */
1288
+ this.ClusterId = null;
1289
+
1290
+ /**
1291
+ * Health check policy
1292
+ * @type {HealthCheckPolicy || null}
1293
+ */
1294
+ this.HealthCheckPolicy = null;
1295
+
1296
+ }
1297
+
1298
+ /**
1299
+ * @private
1300
+ */
1301
+ deserialize(params) {
1302
+ if (!params) {
1303
+ return;
1304
+ }
1305
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
1306
+
1307
+ if (params.HealthCheckPolicy) {
1308
+ let obj = new HealthCheckPolicy();
1309
+ obj.deserialize(params.HealthCheckPolicy)
1310
+ this.HealthCheckPolicy = obj;
1311
+ }
1312
+
1313
+ }
1314
+ }
1315
+
1316
+ /**
1317
+ * Node custom parameters
1318
+ * @class
1319
+ */
1320
+ class InstanceExtraArgs extends AbstractModel {
1321
+ constructor(){
1322
+ super();
1323
+
1324
+ /**
1325
+ * kubelet custom parameters, whose format is ["k1=v1", "k1=v2"], for example ["root-dir=/var/lib/kubelet","feature-gates=PodShareProcessNamespace=true,DynamicKubeletConfig=true"]
1326
+ Note: This field may return "null", indicating that no valid value can be obtained.
1327
+ * @type {Array.<string> || null}
1328
+ */
1329
+ this.Kubelet = null;
1330
+
1331
+ }
1332
+
1333
+ /**
1334
+ * @private
1335
+ */
1336
+ deserialize(params) {
1337
+ if (!params) {
1338
+ return;
1339
+ }
1340
+ this.Kubelet = 'Kubelet' in params ? params.Kubelet : null;
1341
+
1342
+ }
1343
+ }
1344
+
1345
+ /**
1346
+ * Managed node pool automatic upgrade configuration
1347
+ * @class
1348
+ */
1349
+ class MachineUpgradeSettings extends AbstractModel {
1350
+ constructor(){
1351
+ super();
1352
+
1353
+ /**
1354
+ * Whether to enable automatic upgrade
1355
+ Note: This field may return "null", indicating that no valid value can be obtained.
1356
+ * @type {boolean || null}
1357
+ */
1358
+ this.AutoUpgrade = null;
1359
+
1360
+ /**
1361
+ * Ops window
1362
+ Note: This field may return "null", indicating that no valid value can be obtained.
1363
+ * @type {AutoUpgradeOptions || null}
1364
+ */
1365
+ this.UpgradeOptions = null;
1366
+
1367
+ /**
1368
+ * Upgrade item
1369
+ Note: This field may return "null", indicating that no valid value can be obtained.
1370
+ * @type {Array.<string> || null}
1371
+ */
1372
+ this.Components = null;
1373
+
1374
+ /**
1375
+ * Maximum number of nodes that cannot be upgraded during upgrade
1376
+ Note: This field may return "null", indicating that no valid value can be obtained.
1377
+ * @type {IntOrString || null}
1378
+ */
1379
+ this.MaxUnavailable = null;
1380
+
1381
+ }
1382
+
1383
+ /**
1384
+ * @private
1385
+ */
1386
+ deserialize(params) {
1387
+ if (!params) {
1388
+ return;
1389
+ }
1390
+ this.AutoUpgrade = 'AutoUpgrade' in params ? params.AutoUpgrade : null;
1391
+
1392
+ if (params.UpgradeOptions) {
1393
+ let obj = new AutoUpgradeOptions();
1394
+ obj.deserialize(params.UpgradeOptions)
1395
+ this.UpgradeOptions = obj;
1396
+ }
1397
+ this.Components = 'Components' in params ? params.Components : null;
1398
+
1399
+ if (params.MaxUnavailable) {
1400
+ let obj = new IntOrString();
1401
+ obj.deserialize(params.MaxUnavailable)
1402
+ this.MaxUnavailable = obj;
1403
+ }
1404
+
1405
+ }
1406
+ }
1407
+
1408
+ /**
1409
+ * Modify native node pool parameters
1410
+ * @class
1411
+ */
1412
+ class UpdateNativeNodePoolParam extends AbstractModel {
1413
+ constructor(){
1414
+ super();
1415
+
1416
+ /**
1417
+ * Scaling configuration
1418
+ * @type {MachineSetScaling || null}
1419
+ */
1420
+ this.Scaling = null;
1421
+
1422
+ /**
1423
+ * Subnet list
1424
+ * @type {Array.<string> || null}
1425
+ */
1426
+ this.SubnetIds = null;
1427
+
1428
+ /**
1429
+ * Security group list
1430
+ * @type {Array.<string> || null}
1431
+ */
1432
+ this.SecurityGroupIds = null;
1433
+
1434
+ /**
1435
+ * Automatic upgrade configuration
1436
+ * @type {MachineUpgradeSettings || null}
1437
+ */
1438
+ this.UpgradeSettings = null;
1439
+
1440
+ /**
1441
+ * Whether to enable self-healing capability
1442
+ * @type {boolean || null}
1443
+ */
1444
+ this.AutoRepair = null;
1445
+
1446
+ /**
1447
+ * Change the node billing type
1448
+ Currently, only pay-as-you-go to monthly subscription is supported:
1449
+ - PREPAID
1450
+
1451
+ * @type {string || null}
1452
+ */
1453
+ this.InstanceChargeType = null;
1454
+
1455
+ /**
1456
+ * Billing configuration of monthly subscription models
1457
+ * @type {InstanceChargePrepaid || null}
1458
+ */
1459
+ this.InstanceChargePrepaid = null;
1460
+
1461
+ /**
1462
+ * System disk configuration
1463
+ * @type {Disk || null}
1464
+ */
1465
+ this.SystemDisk = null;
1466
+
1467
+ /**
1468
+ * Machine system configuration
1469
+ * @type {ManagementConfig || null}
1470
+ */
1471
+ this.Management = null;
1472
+
1473
+ /**
1474
+ * Fault self-healing rule name
1475
+ * @type {string || null}
1476
+ */
1477
+ this.HealthCheckPolicyName = null;
1478
+
1479
+ /**
1480
+ * hostname pattern string of native node pools
1481
+ * @type {string || null}
1482
+ */
1483
+ this.HostNamePattern = null;
1484
+
1485
+ /**
1486
+ * kubelet custom parameters
1487
+ * @type {Array.<string> || null}
1488
+ */
1489
+ this.KubeletArgs = null;
1490
+
1491
+ /**
1492
+ * Predefined script
1493
+ * @type {LifecycleConfig || null}
1494
+ */
1495
+ this.Lifecycle = null;
1496
+
1497
+ /**
1498
+ * Runtime root directory
1499
+ * @type {string || null}
1500
+ */
1501
+ this.RuntimeRootDir = null;
1502
+
1503
+ /**
1504
+ * Whether to enable Auto Scaling (AS)
1505
+ * @type {boolean || null}
1506
+ */
1507
+ this.EnableAutoscaling = null;
1508
+
1509
+ /**
1510
+ * List of models
1511
+ * @type {Array.<string> || null}
1512
+ */
1513
+ this.InstanceTypes = null;
1514
+
1515
+ /**
1516
+ * Desired node count
1517
+ * @type {number || null}
1518
+ */
1519
+ this.Replicas = null;
1520
+
1521
+ /**
1522
+ * Data disk list
1523
+ * @type {Array.<DataDisk> || null}
1524
+ */
1525
+ this.DataDisks = null;
1526
+
1527
+ /**
1528
+ * ssh public key ID array
1529
+ * @type {Array.<string> || null}
1530
+ */
1531
+ this.KeyIds = null;
1532
+
1533
+ }
1534
+
1535
+ /**
1536
+ * @private
1537
+ */
1538
+ deserialize(params) {
1539
+ if (!params) {
1540
+ return;
1541
+ }
1542
+
1543
+ if (params.Scaling) {
1544
+ let obj = new MachineSetScaling();
1545
+ obj.deserialize(params.Scaling)
1546
+ this.Scaling = obj;
1547
+ }
1548
+ this.SubnetIds = 'SubnetIds' in params ? params.SubnetIds : null;
1549
+ this.SecurityGroupIds = 'SecurityGroupIds' in params ? params.SecurityGroupIds : null;
1550
+
1551
+ if (params.UpgradeSettings) {
1552
+ let obj = new MachineUpgradeSettings();
1553
+ obj.deserialize(params.UpgradeSettings)
1554
+ this.UpgradeSettings = obj;
1555
+ }
1556
+ this.AutoRepair = 'AutoRepair' in params ? params.AutoRepair : null;
1557
+ this.InstanceChargeType = 'InstanceChargeType' in params ? params.InstanceChargeType : null;
1558
+
1559
+ if (params.InstanceChargePrepaid) {
1560
+ let obj = new InstanceChargePrepaid();
1561
+ obj.deserialize(params.InstanceChargePrepaid)
1562
+ this.InstanceChargePrepaid = obj;
1563
+ }
1564
+
1565
+ if (params.SystemDisk) {
1566
+ let obj = new Disk();
1567
+ obj.deserialize(params.SystemDisk)
1568
+ this.SystemDisk = obj;
1569
+ }
1570
+
1571
+ if (params.Management) {
1572
+ let obj = new ManagementConfig();
1573
+ obj.deserialize(params.Management)
1574
+ this.Management = obj;
1575
+ }
1576
+ this.HealthCheckPolicyName = 'HealthCheckPolicyName' in params ? params.HealthCheckPolicyName : null;
1577
+ this.HostNamePattern = 'HostNamePattern' in params ? params.HostNamePattern : null;
1578
+ this.KubeletArgs = 'KubeletArgs' in params ? params.KubeletArgs : null;
1579
+
1580
+ if (params.Lifecycle) {
1581
+ let obj = new LifecycleConfig();
1582
+ obj.deserialize(params.Lifecycle)
1583
+ this.Lifecycle = obj;
1584
+ }
1585
+ this.RuntimeRootDir = 'RuntimeRootDir' in params ? params.RuntimeRootDir : null;
1586
+ this.EnableAutoscaling = 'EnableAutoscaling' in params ? params.EnableAutoscaling : null;
1587
+ this.InstanceTypes = 'InstanceTypes' in params ? params.InstanceTypes : null;
1588
+ this.Replicas = 'Replicas' in params ? params.Replicas : null;
1589
+
1590
+ if (params.DataDisks) {
1591
+ this.DataDisks = new Array();
1592
+ for (let z in params.DataDisks) {
1593
+ let obj = new DataDisk();
1594
+ obj.deserialize(params.DataDisks[z]);
1595
+ this.DataDisks.push(obj);
1596
+ }
1597
+ }
1598
+ this.KeyIds = 'KeyIds' in params ? params.KeyIds : null;
1599
+
1600
+ }
1601
+ }
1602
+
1603
+ /**
1604
+ * Monthly subscription configuration
1605
+ * @class
1606
+ */
1607
+ class InstanceChargePrepaid extends AbstractModel {
1608
+ constructor(){
1609
+ super();
1610
+
1611
+ /**
1612
+ * Billing cycle of the pay-as-you-go mode (unit: month):
1613
+ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36, 48, 60
1614
+ * @type {number || null}
1615
+ */
1616
+ this.Period = null;
1617
+
1618
+ /**
1619
+ * Renewal method of the prepayment mode:
1620
+ - NOTIFY_AND_AUTO_RENEW: Notify the user of expiration and auto-renew (default)
1621
+ - NOTIFY_AND_MANUAL_RENEW: Notify the user of expiration but do not auto-renew
1622
+ - DISABLE_NOTIFY_AND_MANUAL_RENEW: Do not notify the user of expiration and do not auto-renew
1623
+
1624
+ * @type {string || null}
1625
+ */
1626
+ this.RenewFlag = null;
1627
+
1628
+ }
1629
+
1630
+ /**
1631
+ * @private
1632
+ */
1633
+ deserialize(params) {
1634
+ if (!params) {
1635
+ return;
1636
+ }
1637
+ this.Period = 'Period' in params ? params.Period : null;
1638
+ this.RenewFlag = 'RenewFlag' in params ? params.RenewFlag : null;
1639
+
1640
+ }
1641
+ }
1642
+
1643
+ /**
1644
+ * DeleteNodePool response structure.
1645
+ * @class
1646
+ */
1647
+ class DeleteNodePoolResponse extends AbstractModel {
1648
+ constructor(){
1649
+ super();
1650
+
1651
+ /**
1652
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1653
+ * @type {string || null}
1654
+ */
1655
+ this.RequestId = null;
1656
+
1657
+ }
1658
+
1659
+ /**
1660
+ * @private
1661
+ */
1662
+ deserialize(params) {
1663
+ if (!params) {
1664
+ return;
1665
+ }
1666
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1667
+
1668
+ }
1669
+ }
1670
+
1671
+ /**
1672
+ * The type of resources the label is bound to. Type currently supported: "cluster".
1673
+ * @class
1674
+ */
1675
+ class Tag extends AbstractModel {
1676
+ constructor(){
1677
+ super();
1678
+
1679
+ /**
1680
+ * Tag key
1681
+ * @type {string || null}
1682
+ */
1683
+ this.Key = null;
1684
+
1685
+ /**
1686
+ * Tag value
1687
+ * @type {string || null}
1688
+ */
1689
+ this.Value = null;
1690
+
1691
+ }
1692
+
1693
+ /**
1694
+ * @private
1695
+ */
1696
+ deserialize(params) {
1697
+ if (!params) {
1698
+ return;
1699
+ }
1700
+ this.Key = 'Key' in params ? params.Key : null;
1701
+ this.Value = 'Value' in params ? params.Value : null;
1702
+
1703
+ }
1704
+ }
1705
+
1706
+ /**
1707
+ * Node pool AS configuration
1708
+ * @class
1709
+ */
1710
+ class MachineSetScaling extends AbstractModel {
1711
+ constructor(){
1712
+ super();
1713
+
1714
+ /**
1715
+ * Node pool minimum replica count
1716
+ Note: This field may return "null", indicating that no valid value can be obtained.
1717
+ * @type {number || null}
1718
+ */
1719
+ this.MinReplicas = null;
1720
+
1721
+ /**
1722
+ * Node pool maximum replica count
1723
+ Note: This field may return "null", indicating that no valid value can be obtained.
1724
+ * @type {number || null}
1725
+ */
1726
+ this.MaxReplicas = null;
1727
+
1728
+ /**
1729
+ * Node pool scaling policy. ZoneEquality: Scatter across multiple availability zones; ZonePriority: Prioritize preferred availability zones;
1730
+ Note: This field may return "null", indicating that no valid value can be obtained.
1731
+ * @type {string || null}
1732
+ */
1733
+ this.CreatePolicy = null;
1734
+
1735
+ }
1736
+
1737
+ /**
1738
+ * @private
1739
+ */
1740
+ deserialize(params) {
1741
+ if (!params) {
1742
+ return;
1743
+ }
1744
+ this.MinReplicas = 'MinReplicas' in params ? params.MinReplicas : null;
1745
+ this.MaxReplicas = 'MaxReplicas' in params ? params.MaxReplicas : null;
1746
+ this.CreatePolicy = 'CreatePolicy' in params ? params.CreatePolicy : null;
1747
+
1748
+ }
1749
+ }
1750
+
1751
+ /**
1752
+ * ModifyNodePool request structure.
1753
+ * @class
1754
+ */
1755
+ class ModifyNodePoolRequest extends AbstractModel {
1756
+ constructor(){
1757
+ super();
1758
+
1759
+ /**
1760
+ * Cluster ID
1761
+ * @type {string || null}
1762
+ */
1763
+ this.ClusterId = null;
1764
+
1765
+ /**
1766
+ * Node pool ID
1767
+ * @type {string || null}
1768
+ */
1769
+ this.NodePoolId = null;
1770
+
1771
+ /**
1772
+ * Node pool name
1773
+ * @type {string || null}
1774
+ */
1775
+ this.Name = null;
1776
+
1777
+ /**
1778
+ * Node Labels
1779
+ * @type {Array.<Label> || null}
1780
+ */
1781
+ this.Labels = null;
1782
+
1783
+ /**
1784
+ * Node taint
1785
+ * @type {Array.<Taint> || null}
1786
+ */
1787
+ this.Taints = null;
1788
+
1789
+ /**
1790
+ * Node tags
1791
+ * @type {Array.<TagSpecification> || null}
1792
+ */
1793
+ this.Tags = null;
1794
+
1795
+ /**
1796
+ * Whether to enable deletion protection
1797
+ * @type {boolean || null}
1798
+ */
1799
+ this.DeletionProtection = null;
1800
+
1801
+ /**
1802
+ * Whether the node is unschedulable
1803
+ * @type {boolean || null}
1804
+ */
1805
+ this.Unschedulable = null;
1806
+
1807
+ /**
1808
+ * Native node pool update parameters
1809
+ * @type {UpdateNativeNodePoolParam || null}
1810
+ */
1811
+ this.Native = null;
1812
+
1813
+ /**
1814
+ * Node annotation list
1815
+ * @type {Array.<Annotation> || null}
1816
+ */
1817
+ this.Annotations = null;
1818
+
1819
+ }
1820
+
1821
+ /**
1822
+ * @private
1823
+ */
1824
+ deserialize(params) {
1825
+ if (!params) {
1826
+ return;
1827
+ }
1828
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
1829
+ this.NodePoolId = 'NodePoolId' in params ? params.NodePoolId : null;
1830
+ this.Name = 'Name' in params ? params.Name : null;
1831
+
1832
+ if (params.Labels) {
1833
+ this.Labels = new Array();
1834
+ for (let z in params.Labels) {
1835
+ let obj = new Label();
1836
+ obj.deserialize(params.Labels[z]);
1837
+ this.Labels.push(obj);
1838
+ }
1839
+ }
1840
+
1841
+ if (params.Taints) {
1842
+ this.Taints = new Array();
1843
+ for (let z in params.Taints) {
1844
+ let obj = new Taint();
1845
+ obj.deserialize(params.Taints[z]);
1846
+ this.Taints.push(obj);
1847
+ }
1848
+ }
1849
+
1850
+ if (params.Tags) {
1851
+ this.Tags = new Array();
1852
+ for (let z in params.Tags) {
1853
+ let obj = new TagSpecification();
1854
+ obj.deserialize(params.Tags[z]);
1855
+ this.Tags.push(obj);
1856
+ }
1857
+ }
1858
+ this.DeletionProtection = 'DeletionProtection' in params ? params.DeletionProtection : null;
1859
+ this.Unschedulable = 'Unschedulable' in params ? params.Unschedulable : null;
1860
+
1861
+ if (params.Native) {
1862
+ let obj = new UpdateNativeNodePoolParam();
1863
+ obj.deserialize(params.Native)
1864
+ this.Native = obj;
1865
+ }
1866
+
1867
+ if (params.Annotations) {
1868
+ this.Annotations = new Array();
1869
+ for (let z in params.Annotations) {
1870
+ let obj = new Annotation();
1871
+ obj.deserialize(params.Annotations[z]);
1872
+ this.Annotations.push(obj);
1873
+ }
1874
+ }
1875
+
1876
+ }
1877
+ }
1878
+
1879
+ /**
1880
+ * Annotations in k8s, generally existing as an array
1881
+ * @class
1882
+ */
1883
+ class Annotation extends AbstractModel {
1884
+ constructor(){
1885
+ super();
1886
+
1887
+ /**
1888
+ * Name in the map list
1889
+ * @type {string || null}
1890
+ */
1891
+ this.Name = null;
1892
+
1893
+ /**
1894
+ * Value in the map list
1895
+ * @type {string || null}
1896
+ */
1897
+ this.Value = null;
1898
+
1899
+ }
1900
+
1901
+ /**
1902
+ * @private
1903
+ */
1904
+ deserialize(params) {
1905
+ if (!params) {
1906
+ return;
1907
+ }
1908
+ this.Name = 'Name' in params ? params.Name : null;
1909
+ this.Value = 'Value' in params ? params.Value : null;
1910
+
1911
+ }
1912
+ }
1913
+
1914
+ /**
1915
+ * DescribeClusterInstances request structure.
1916
+ * @class
1917
+ */
1918
+ class DescribeClusterInstancesRequest extends AbstractModel {
1919
+ constructor(){
1920
+ super();
1921
+
1922
+ /**
1923
+ * Cluster ID
1924
+ * @type {string || null}
1925
+ */
1926
+ this.ClusterId = null;
1927
+
1928
+ /**
1929
+ * Offset. Default value: 0. For more information on Offset, see the relevant sections in API [Overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
1930
+ * @type {number || null}
1931
+ */
1932
+ this.Offset = null;
1933
+
1934
+ /**
1935
+ * Number of returned results. Default value: 20, maximum value: 100. For more information on Limit, see the relevant sections in API [Overview](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1).
1936
+ * @type {number || null}
1937
+ */
1938
+ this.Limit = null;
1939
+
1940
+ /**
1941
+ * Filter criteria list:
1942
+ InstanceIds (Instance ID), InstanceType (Instance type: Regular, Native, Virtual, External), VagueIpAddress (Fuzzy matching IP), Labels (k8s node label), NodePoolNames (Node pool name), VagueInstanceName (Fuzzy matching node name), InstanceStates (Node status), Unschedulable (Cordoning status), NodePoolIds (Node pool ID)
1943
+ * @type {Array.<Filter> || null}
1944
+ */
1945
+ this.Filters = null;
1946
+
1947
+ /**
1948
+ * Sorting information
1949
+ * @type {SortBy || null}
1950
+ */
1951
+ this.SortBy = null;
1952
+
1953
+ }
1954
+
1955
+ /**
1956
+ * @private
1957
+ */
1958
+ deserialize(params) {
1959
+ if (!params) {
1960
+ return;
1961
+ }
1962
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
1963
+ this.Offset = 'Offset' in params ? params.Offset : null;
1964
+ this.Limit = 'Limit' in params ? params.Limit : null;
1965
+
1966
+ if (params.Filters) {
1967
+ this.Filters = new Array();
1968
+ for (let z in params.Filters) {
1969
+ let obj = new Filter();
1970
+ obj.deserialize(params.Filters[z]);
1971
+ this.Filters.push(obj);
1972
+ }
1973
+ }
1974
+
1975
+ if (params.SortBy) {
1976
+ let obj = new SortBy();
1977
+ obj.deserialize(params.SortBy)
1978
+ this.SortBy = obj;
1979
+ }
1980
+
1981
+ }
1982
+ }
1983
+
1984
+ /**
1985
+ * DeleteHealthCheckPolicy response structure.
1986
+ * @class
1987
+ */
1988
+ class DeleteHealthCheckPolicyResponse extends AbstractModel {
1989
+ constructor(){
1990
+ super();
1991
+
1992
+ /**
1993
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
1994
+ * @type {string || null}
1995
+ */
1996
+ this.RequestId = null;
1997
+
1998
+ }
1999
+
2000
+ /**
2001
+ * @private
2002
+ */
2003
+ deserialize(params) {
2004
+ if (!params) {
2005
+ return;
2006
+ }
2007
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2008
+
2009
+ }
2010
+ }
2011
+
2012
+ /**
2013
+ * List of tag descriptions. By specifying this parameter, you can bind tags to corresponding resource instances at the same time. Currently, only tags can be bound to cloud host instances.
2014
+ * @class
2015
+ */
2016
+ class TagSpecification extends AbstractModel {
2017
+ constructor(){
2018
+ super();
2019
+
2020
+ /**
2021
+ * The type of resources the label is bound to. Type currently supported: "cluster".
2022
+
2023
+ Note: This field may return "null", indicating that no valid value can be obtained.
2024
+ * @type {string || null}
2025
+ */
2026
+ this.ResourceType = null;
2027
+
2028
+ /**
2029
+ * Tag pair list
2030
+
2031
+ Note: This field may return "null", indicating that no valid value can be obtained.
2032
+ * @type {Array.<Tag> || null}
2033
+ */
2034
+ this.Tags = null;
2035
+
2036
+ }
2037
+
2038
+ /**
2039
+ * @private
2040
+ */
2041
+ deserialize(params) {
2042
+ if (!params) {
2043
+ return;
2044
+ }
2045
+ this.ResourceType = 'ResourceType' in params ? params.ResourceType : null;
2046
+
2047
+ if (params.Tags) {
2048
+ this.Tags = new Array();
2049
+ for (let z in params.Tags) {
2050
+ let obj = new Tag();
2051
+ obj.deserialize(params.Tags[z]);
2052
+ this.Tags.push(obj);
2053
+ }
2054
+ }
2055
+
2056
+ }
2057
+ }
2058
+
2059
+ /**
2060
+ * Custom script for node pools
2061
+ * @class
2062
+ */
2063
+ class LifecycleConfig extends AbstractModel {
2064
+ constructor(){
2065
+ super();
2066
+
2067
+ /**
2068
+ * Custom script before node initialization
2069
+ Note: This field may return "null", indicating that no valid value can be obtained.
2070
+ * @type {string || null}
2071
+ */
2072
+ this.PreInit = null;
2073
+
2074
+ /**
2075
+ * Custom script after node initialization
2076
+ Note: This field may return "null", indicating that no valid value can be obtained.
2077
+ * @type {string || null}
2078
+ */
2079
+ this.PostInit = null;
2080
+
2081
+ }
2082
+
2083
+ /**
2084
+ * @private
2085
+ */
2086
+ deserialize(params) {
2087
+ if (!params) {
2088
+ return;
2089
+ }
2090
+ this.PreInit = 'PreInit' in params ? params.PreInit : null;
2091
+ this.PostInit = 'PostInit' in params ? params.PostInit : null;
2092
+
2093
+ }
2094
+ }
2095
+
2096
+ /**
2097
+ * ModifyNodePool response structure.
2098
+ * @class
2099
+ */
2100
+ class ModifyNodePoolResponse extends AbstractModel {
2101
+ constructor(){
2102
+ super();
2103
+
2104
+ /**
2105
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
2106
+ * @type {string || null}
2107
+ */
2108
+ this.RequestId = null;
2109
+
2110
+ }
2111
+
2112
+ /**
2113
+ * @private
2114
+ */
2115
+ deserialize(params) {
2116
+ if (!params) {
2117
+ return;
2118
+ }
2119
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2120
+
2121
+ }
2122
+ }
2123
+
2124
+ /**
2125
+ * General node pool information
2126
+ * @class
2127
+ */
2128
+ class RegularNodePoolInfo extends AbstractModel {
2129
+ constructor(){
2130
+ super();
2131
+
2132
+ /**
2133
+ * LaunchConfigurationId configuration
2134
+ * @type {string || null}
2135
+ */
2136
+ this.LaunchConfigurationId = null;
2137
+
2138
+ /**
2139
+ * Auto-scaling group ID
2140
+ * @type {string || null}
2141
+ */
2142
+ this.AutoscalingGroupId = null;
2143
+
2144
+ /**
2145
+ * NodeCountSummary node list
2146
+ * @type {NodeCountSummary || null}
2147
+ */
2148
+ this.NodeCountSummary = null;
2149
+
2150
+ /**
2151
+ * Status information
2152
+ Note: This field may return "null", indicating that no valid value can be obtained.
2153
+ * @type {string || null}
2154
+ */
2155
+ this.AutoscalingGroupStatus = null;
2156
+
2157
+ /**
2158
+ * Maximum number of nodes
2159
+ Note: This field may return "null", indicating that no valid value can be obtained.
2160
+ * @type {number || null}
2161
+ */
2162
+ this.MaxNodesNum = null;
2163
+
2164
+ /**
2165
+ * Minimum number of nodes
2166
+ Note: This field may return "null", indicating that no valid value can be obtained.
2167
+ * @type {number || null}
2168
+ */
2169
+ this.MinNodesNum = null;
2170
+
2171
+ /**
2172
+ * Desired number of nodes
2173
+ Note: This field may return "null", indicating that no valid value can be obtained.
2174
+ * @type {number || null}
2175
+ */
2176
+ this.DesiredNodesNum = null;
2177
+
2178
+ /**
2179
+ * Node pool osName
2180
+ Note: This field may return "null", indicating that no valid value can be obtained.
2181
+ * @type {string || null}
2182
+ */
2183
+ this.NodePoolOs = null;
2184
+
2185
+ /**
2186
+ * Node configuration
2187
+ Note: This field may return "null", indicating that no valid value can be obtained.
2188
+ * @type {InstanceAdvancedSettings || null}
2189
+ */
2190
+ this.InstanceAdvancedSettings = null;
2191
+
2192
+ }
2193
+
2194
+ /**
2195
+ * @private
2196
+ */
2197
+ deserialize(params) {
2198
+ if (!params) {
2199
+ return;
2200
+ }
2201
+ this.LaunchConfigurationId = 'LaunchConfigurationId' in params ? params.LaunchConfigurationId : null;
2202
+ this.AutoscalingGroupId = 'AutoscalingGroupId' in params ? params.AutoscalingGroupId : null;
2203
+
2204
+ if (params.NodeCountSummary) {
2205
+ let obj = new NodeCountSummary();
2206
+ obj.deserialize(params.NodeCountSummary)
2207
+ this.NodeCountSummary = obj;
2208
+ }
2209
+ this.AutoscalingGroupStatus = 'AutoscalingGroupStatus' in params ? params.AutoscalingGroupStatus : null;
2210
+ this.MaxNodesNum = 'MaxNodesNum' in params ? params.MaxNodesNum : null;
2211
+ this.MinNodesNum = 'MinNodesNum' in params ? params.MinNodesNum : null;
2212
+ this.DesiredNodesNum = 'DesiredNodesNum' in params ? params.DesiredNodesNum : null;
2213
+ this.NodePoolOs = 'NodePoolOs' in params ? params.NodePoolOs : null;
2214
+
2215
+ if (params.InstanceAdvancedSettings) {
2216
+ let obj = new InstanceAdvancedSettings();
2217
+ obj.deserialize(params.InstanceAdvancedSettings)
2218
+ this.InstanceAdvancedSettings = obj;
2219
+ }
2220
+
2221
+ }
2222
+ }
2223
+
2224
+ /**
2225
+ * kubernetes Taint
2226
+ * @class
2227
+ */
2228
+ class Taint extends AbstractModel {
2229
+ constructor(){
2230
+ super();
2231
+
2232
+ /**
2233
+ * Key of Taint
2234
+ * @type {string || null}
2235
+ */
2236
+ this.Key = null;
2237
+
2238
+ /**
2239
+ * Value of Taint
2240
+ * @type {string || null}
2241
+ */
2242
+ this.Value = null;
2243
+
2244
+ /**
2245
+ * Effect of Taint
2246
+ * @type {string || null}
2247
+ */
2248
+ this.Effect = null;
2249
+
2250
+ }
2251
+
2252
+ /**
2253
+ * @private
2254
+ */
2255
+ deserialize(params) {
2256
+ if (!params) {
2257
+ return;
2258
+ }
2259
+ this.Key = 'Key' in params ? params.Key : null;
2260
+ this.Value = 'Value' in params ? params.Value : null;
2261
+ this.Effect = 'Effect' in params ? params.Effect : null;
2262
+
2263
+ }
2264
+ }
2265
+
2266
+ /**
2267
+ * Filter
2268
+ * @class
2269
+ */
2270
+ class Filter extends AbstractModel {
2271
+ constructor(){
2272
+ super();
2273
+
2274
+ /**
2275
+ * Attribute name. If more than one Filter exists, the logical relation between these Filters is `AND`.
2276
+ * @type {string || null}
2277
+ */
2278
+ this.Name = null;
2279
+
2280
+ /**
2281
+ * Attribute value. If multiple values exist in one filter, the logical relationship between these values is `OR`.
2282
+ * @type {Array.<string> || null}
2283
+ */
2284
+ this.Values = null;
2285
+
2286
+ }
2287
+
2288
+ /**
2289
+ * @private
2290
+ */
2291
+ deserialize(params) {
2292
+ if (!params) {
2293
+ return;
2294
+ }
2295
+ this.Name = 'Name' in params ? params.Name : null;
2296
+ this.Values = 'Values' in params ? params.Values : null;
2297
+
2298
+ }
2299
+ }
2300
+
2301
+ /**
2302
+ * DescribeHealthCheckPolicies request structure.
2303
+ * @class
2304
+ */
2305
+ class DescribeHealthCheckPoliciesRequest extends AbstractModel {
2306
+ constructor(){
2307
+ super();
2308
+
2309
+ /**
2310
+ * Cluster ID
2311
+ * @type {string || null}
2312
+ */
2313
+ this.ClusterId = null;
2314
+
2315
+ /**
2316
+ * · HealthCheckPolicyName
2317
+ Filter by [Health Check Policy Name].
2318
+ Type: String
2319
+ Required: No
2320
+ * @type {Array.<Filter> || null}
2321
+ */
2322
+ this.Filters = null;
2323
+
2324
+ /**
2325
+ * Maximum number of output entries. Default value: 20; maximum value: 100.
2326
+ * @type {number || null}
2327
+ */
2328
+ this.Limit = null;
2329
+
2330
+ /**
2331
+ * Offset. Default value: 0
2332
+ * @type {number || null}
2333
+ */
2334
+ this.Offset = null;
2335
+
2336
+ }
2337
+
2338
+ /**
2339
+ * @private
2340
+ */
2341
+ deserialize(params) {
2342
+ if (!params) {
2343
+ return;
2344
+ }
2345
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
2346
+
2347
+ if (params.Filters) {
2348
+ this.Filters = new Array();
2349
+ for (let z in params.Filters) {
2350
+ let obj = new Filter();
2351
+ obj.deserialize(params.Filters[z]);
2352
+ this.Filters.push(obj);
2353
+ }
2354
+ }
2355
+ this.Limit = 'Limit' in params ? params.Limit : null;
2356
+ this.Offset = 'Offset' in params ? params.Offset : null;
2357
+
2358
+ }
2359
+ }
2360
+
2361
+ /**
2362
+ * DescribeHealthCheckTemplate response structure.
2363
+ * @class
2364
+ */
2365
+ class DescribeHealthCheckTemplateResponse extends AbstractModel {
2366
+ constructor(){
2367
+ super();
2368
+
2369
+ /**
2370
+ * Health check policy template
2371
+ * @type {HealthCheckTemplate || null}
2372
+ */
2373
+ this.HealthCheckTemplate = null;
2374
+
2375
+ /**
2376
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
2377
+ * @type {string || null}
2378
+ */
2379
+ this.RequestId = null;
2380
+
2381
+ }
2382
+
2383
+ /**
2384
+ * @private
2385
+ */
2386
+ deserialize(params) {
2387
+ if (!params) {
2388
+ return;
2389
+ }
2390
+
2391
+ if (params.HealthCheckTemplate) {
2392
+ let obj = new HealthCheckTemplate();
2393
+ obj.deserialize(params.HealthCheckTemplate)
2394
+ this.HealthCheckTemplate = obj;
2395
+ }
2396
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2397
+
2398
+ }
2399
+ }
2400
+
2401
+ /**
2402
+ * CreateNodePool request structure.
2403
+ * @class
2404
+ */
2405
+ class CreateNodePoolRequest extends AbstractModel {
2406
+ constructor(){
2407
+ super();
2408
+
2409
+ /**
2410
+ * Cluster ID
2411
+ * @type {string || null}
2412
+ */
2413
+ this.ClusterId = null;
2414
+
2415
+ /**
2416
+ * Node pool name
2417
+ * @type {string || null}
2418
+ */
2419
+ this.Name = null;
2420
+
2421
+ /**
2422
+ * Node pool type
2423
+ * @type {string || null}
2424
+ */
2425
+ this.Type = null;
2426
+
2427
+ /**
2428
+ * Node Labels
2429
+ * @type {Array.<Label> || null}
2430
+ */
2431
+ this.Labels = null;
2432
+
2433
+ /**
2434
+ * Node taint
2435
+ * @type {Array.<Taint> || null}
2436
+ */
2437
+ this.Taints = null;
2438
+
2439
+ /**
2440
+ * Node tags
2441
+ * @type {Array.<TagSpecification> || null}
2442
+ */
2443
+ this.Tags = null;
2444
+
2445
+ /**
2446
+ * Whether to enable deletion protection
2447
+ * @type {boolean || null}
2448
+ */
2449
+ this.DeletionProtection = null;
2450
+
2451
+ /**
2452
+ * Whether the node is unschedulable by default
2453
+ * @type {boolean || null}
2454
+ */
2455
+ this.Unschedulable = null;
2456
+
2457
+ /**
2458
+ * Native node pool creation parameters
2459
+ * @type {CreateNativeNodePoolParam || null}
2460
+ */
2461
+ this.Native = null;
2462
+
2463
+ /**
2464
+ * Node Annotation List
2465
+ * @type {Array.<Annotation> || null}
2466
+ */
2467
+ this.Annotations = null;
2468
+
2469
+ }
2470
+
2471
+ /**
2472
+ * @private
2473
+ */
2474
+ deserialize(params) {
2475
+ if (!params) {
2476
+ return;
2477
+ }
2478
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
2479
+ this.Name = 'Name' in params ? params.Name : null;
2480
+ this.Type = 'Type' in params ? params.Type : null;
2481
+
2482
+ if (params.Labels) {
2483
+ this.Labels = new Array();
2484
+ for (let z in params.Labels) {
2485
+ let obj = new Label();
2486
+ obj.deserialize(params.Labels[z]);
2487
+ this.Labels.push(obj);
2488
+ }
2489
+ }
2490
+
2491
+ if (params.Taints) {
2492
+ this.Taints = new Array();
2493
+ for (let z in params.Taints) {
2494
+ let obj = new Taint();
2495
+ obj.deserialize(params.Taints[z]);
2496
+ this.Taints.push(obj);
2497
+ }
2498
+ }
2499
+
2500
+ if (params.Tags) {
2501
+ this.Tags = new Array();
2502
+ for (let z in params.Tags) {
2503
+ let obj = new TagSpecification();
2504
+ obj.deserialize(params.Tags[z]);
2505
+ this.Tags.push(obj);
2506
+ }
2507
+ }
2508
+ this.DeletionProtection = 'DeletionProtection' in params ? params.DeletionProtection : null;
2509
+ this.Unschedulable = 'Unschedulable' in params ? params.Unschedulable : null;
2510
+
2511
+ if (params.Native) {
2512
+ let obj = new CreateNativeNodePoolParam();
2513
+ obj.deserialize(params.Native)
2514
+ this.Native = obj;
2515
+ }
2516
+
2517
+ if (params.Annotations) {
2518
+ this.Annotations = new Array();
2519
+ for (let z in params.Annotations) {
2520
+ let obj = new Annotation();
2521
+ obj.deserialize(params.Annotations[z]);
2522
+ this.Annotations.push(obj);
2523
+ }
2524
+ }
2525
+
2526
+ }
2527
+ }
2528
+
2529
+ /**
2530
+ * General node information
2531
+ * @class
2532
+ */
2533
+ class RegularNodeInfo extends AbstractModel {
2534
+ constructor(){
2535
+ super();
2536
+
2537
+ /**
2538
+ * Node configuration
2539
+ Note: This field may return "null", indicating that no valid value can be obtained.
2540
+ * @type {InstanceAdvancedSettings || null}
2541
+ */
2542
+ this.InstanceAdvancedSettings = null;
2543
+
2544
+ /**
2545
+ * Auto scaling group ID
2546
+ Note: This field may return "null", indicating that no valid value can be obtained.
2547
+ * @type {string || null}
2548
+ */
2549
+ this.AutoscalingGroupId = null;
2550
+
2551
+ }
2552
+
2553
+ /**
2554
+ * @private
2555
+ */
2556
+ deserialize(params) {
2557
+ if (!params) {
2558
+ return;
2559
+ }
2560
+
2561
+ if (params.InstanceAdvancedSettings) {
2562
+ let obj = new InstanceAdvancedSettings();
2563
+ obj.deserialize(params.InstanceAdvancedSettings)
2564
+ this.InstanceAdvancedSettings = obj;
2565
+ }
2566
+ this.AutoscalingGroupId = 'AutoscalingGroupId' in params ? params.AutoscalingGroupId : null;
2567
+
2568
+ }
2569
+ }
2570
+
2571
+ /**
2572
+ * DescribeHealthCheckPolicyBindings response structure.
2573
+ * @class
2574
+ */
2575
+ class DescribeHealthCheckPolicyBindingsResponse extends AbstractModel {
2576
+ constructor(){
2577
+ super();
2578
+
2579
+ /**
2580
+ * Health check rule array
2581
+ Note: This field may return "null", indicating that no valid value can be obtained.
2582
+ * @type {Array.<HealthCheckPolicyBinding> || null}
2583
+ */
2584
+ this.HealthCheckPolicyBindings = null;
2585
+
2586
+ /**
2587
+ * Number of health check rules
2588
+ Note: This field may return "null", indicating that no valid value can be obtained.
2589
+ * @type {number || null}
2590
+ */
2591
+ this.TotalCount = null;
2592
+
2593
+ /**
2594
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
2595
+ * @type {string || null}
2596
+ */
2597
+ this.RequestId = null;
2598
+
2599
+ }
2600
+
2601
+ /**
2602
+ * @private
2603
+ */
2604
+ deserialize(params) {
2605
+ if (!params) {
2606
+ return;
2607
+ }
2608
+
2609
+ if (params.HealthCheckPolicyBindings) {
2610
+ this.HealthCheckPolicyBindings = new Array();
2611
+ for (let z in params.HealthCheckPolicyBindings) {
2612
+ let obj = new HealthCheckPolicyBinding();
2613
+ obj.deserialize(params.HealthCheckPolicyBindings[z]);
2614
+ this.HealthCheckPolicyBindings.push(obj);
2615
+ }
2616
+ }
2617
+ this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
2618
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
2619
+
2620
+ }
2621
+ }
2622
+
2623
+ /**
2624
+ * Native node pool information
2625
+ * @class
2626
+ */
2627
+ class NativeNodePoolInfo extends AbstractModel {
2628
+ constructor(){
2629
+ super();
2630
+
2631
+ /**
2632
+ * Scaling configuration
2633
+ Note: This field may return "null", indicating that no valid value can be obtained.
2634
+ * @type {MachineSetScaling || null}
2635
+ */
2636
+ this.Scaling = null;
2637
+
2638
+ /**
2639
+ * Subnet list
2640
+ * @type {Array.<string> || null}
2641
+ */
2642
+ this.SubnetIds = null;
2643
+
2644
+ /**
2645
+ * Security group list
2646
+ Note: This field may return "null", indicating that no valid value can be obtained.
2647
+ * @type {Array.<string> || null}
2648
+ */
2649
+ this.SecurityGroupIds = null;
2650
+
2651
+ /**
2652
+ * Automatic upgrade configuration
2653
+ Note: This field may return "null", indicating that no valid value can be obtained.
2654
+ * @type {MachineUpgradeSettings || null}
2655
+ */
2656
+ this.UpgradeSettings = null;
2657
+
2658
+ /**
2659
+ * Whether to enable self-healing capability
2660
+ Note: This field may return "null", indicating that no valid value can be obtained.
2661
+ * @type {boolean || null}
2662
+ */
2663
+ this.AutoRepair = null;
2664
+
2665
+ /**
2666
+ * Node billing type
2667
+ * @type {string || null}
2668
+ */
2669
+ this.InstanceChargeType = null;
2670
+
2671
+ /**
2672
+ * Billing configuration of monthly subscription models
2673
+ Note: This field may return "null", indicating that no valid value can be obtained.
2674
+ * @type {InstanceChargePrepaid || null}
2675
+ */
2676
+ this.InstanceChargePrepaid = null;
2677
+
2678
+ /**
2679
+ * System disk configuration
2680
+ * @type {Disk || null}
2681
+ */
2682
+ this.SystemDisk = null;
2683
+
2684
+ /**
2685
+ * Key ID list
2686
+ Note: This field may return "null", indicating that no valid value can be obtained.
2687
+ * @type {Array.<string> || null}
2688
+ */
2689
+ this.KeyIds = null;
2690
+
2691
+ /**
2692
+ * Machine system configuration
2693
+ Note: This field may return "null", indicating that no valid value can be obtained.
2694
+ * @type {ManagementConfig || null}
2695
+ */
2696
+ this.Management = null;
2697
+
2698
+ /**
2699
+ * Fault self-healing rule name
2700
+ Note: This field may return "null", indicating that no valid value can be obtained.
2701
+ * @type {string || null}
2702
+ */
2703
+ this.HealthCheckPolicyName = null;
2704
+
2705
+ /**
2706
+ * hostname pattern string of native node pools
2707
+ Note: This field may return "null", indicating that no valid value can be obtained.
2708
+ * @type {string || null}
2709
+ */
2710
+ this.HostNamePattern = null;
2711
+
2712
+ /**
2713
+ * kubelet custom parameters
2714
+ Note: This field may return "null", indicating that no valid value can be obtained.
2715
+ * @type {Array.<string> || null}
2716
+ */
2717
+ this.KubeletArgs = null;
2718
+
2719
+ /**
2720
+ * Predefined script
2721
+ Note: This field may return "null", indicating that no valid value can be obtained.
2722
+ * @type {LifecycleConfig || null}
2723
+ */
2724
+ this.Lifecycle = null;
2725
+
2726
+ /**
2727
+ * Runtime root directory
2728
+ Note: This field may return "null", indicating that no valid value can be obtained.
2729
+ * @type {string || null}
2730
+ */
2731
+ this.RuntimeRootDir = null;
2732
+
2733
+ /**
2734
+ * Whether to enable Auto Scaling (AS)
2735
+ Note: This field may return "null", indicating that no valid value can be obtained.
2736
+ * @type {boolean || null}
2737
+ */
2738
+ this.EnableAutoscaling = null;
2739
+
2740
+ /**
2741
+ * List of models
2742
+ * @type {Array.<string> || null}
2743
+ */
2744
+ this.InstanceTypes = null;
2745
+
2746
+ /**
2747
+ * Desired node count
2748
+ Note: This field may return "null", indicating that no valid value can be obtained.
2749
+ * @type {number || null}
2750
+ */
2751
+ this.Replicas = null;
2752
+
2753
+ /**
2754
+ * Number of ready machines
2755
+ * @type {number || null}
2756
+ */
2757
+ this.ReadyReplicas = null;
2758
+
2759
+ /**
2760
+ * Public network bandwidth configuration
2761
+ Note: This field may return "null", indicating that no valid value can be obtained.
2762
+ * @type {InternetAccessible || null}
2763
+ */
2764
+ this.InternetAccessible = null;
2765
+
2766
+ /**
2767
+ * Data disk of native node pools
2768
+ Note: This field may return "null", indicating that no valid value can be obtained.
2769
+ * @type {Array.<DataDisk> || null}
2770
+ */
2771
+ this.DataDisks = null;
2772
+
2773
+ /**
2774
+ * Native node models: Native, NativeCVM
2775
+ Note: This field may return "null", indicating that no valid value can be obtained.
2776
+ * @type {string || null}
2777
+ */
2778
+ this.MachineType = null;
2779
+
2780
+ }
2781
+
2782
+ /**
2783
+ * @private
2784
+ */
2785
+ deserialize(params) {
2786
+ if (!params) {
2787
+ return;
2788
+ }
2789
+
2790
+ if (params.Scaling) {
2791
+ let obj = new MachineSetScaling();
2792
+ obj.deserialize(params.Scaling)
2793
+ this.Scaling = obj;
2794
+ }
2795
+ this.SubnetIds = 'SubnetIds' in params ? params.SubnetIds : null;
2796
+ this.SecurityGroupIds = 'SecurityGroupIds' in params ? params.SecurityGroupIds : null;
2797
+
2798
+ if (params.UpgradeSettings) {
2799
+ let obj = new MachineUpgradeSettings();
2800
+ obj.deserialize(params.UpgradeSettings)
2801
+ this.UpgradeSettings = obj;
2802
+ }
2803
+ this.AutoRepair = 'AutoRepair' in params ? params.AutoRepair : null;
2804
+ this.InstanceChargeType = 'InstanceChargeType' in params ? params.InstanceChargeType : null;
2805
+
2806
+ if (params.InstanceChargePrepaid) {
2807
+ let obj = new InstanceChargePrepaid();
2808
+ obj.deserialize(params.InstanceChargePrepaid)
2809
+ this.InstanceChargePrepaid = obj;
2810
+ }
2811
+
2812
+ if (params.SystemDisk) {
2813
+ let obj = new Disk();
2814
+ obj.deserialize(params.SystemDisk)
2815
+ this.SystemDisk = obj;
2816
+ }
2817
+ this.KeyIds = 'KeyIds' in params ? params.KeyIds : null;
2818
+
2819
+ if (params.Management) {
2820
+ let obj = new ManagementConfig();
2821
+ obj.deserialize(params.Management)
2822
+ this.Management = obj;
2823
+ }
2824
+ this.HealthCheckPolicyName = 'HealthCheckPolicyName' in params ? params.HealthCheckPolicyName : null;
2825
+ this.HostNamePattern = 'HostNamePattern' in params ? params.HostNamePattern : null;
2826
+ this.KubeletArgs = 'KubeletArgs' in params ? params.KubeletArgs : null;
2827
+
2828
+ if (params.Lifecycle) {
2829
+ let obj = new LifecycleConfig();
2830
+ obj.deserialize(params.Lifecycle)
2831
+ this.Lifecycle = obj;
2832
+ }
2833
+ this.RuntimeRootDir = 'RuntimeRootDir' in params ? params.RuntimeRootDir : null;
2834
+ this.EnableAutoscaling = 'EnableAutoscaling' in params ? params.EnableAutoscaling : null;
2835
+ this.InstanceTypes = 'InstanceTypes' in params ? params.InstanceTypes : null;
2836
+ this.Replicas = 'Replicas' in params ? params.Replicas : null;
2837
+ this.ReadyReplicas = 'ReadyReplicas' in params ? params.ReadyReplicas : null;
2838
+
2839
+ if (params.InternetAccessible) {
2840
+ let obj = new InternetAccessible();
2841
+ obj.deserialize(params.InternetAccessible)
2842
+ this.InternetAccessible = obj;
2843
+ }
2844
+
2845
+ if (params.DataDisks) {
2846
+ this.DataDisks = new Array();
2847
+ for (let z in params.DataDisks) {
2848
+ let obj = new DataDisk();
2849
+ obj.deserialize(params.DataDisks[z]);
2850
+ this.DataDisks.push(obj);
2851
+ }
2852
+ }
2853
+ this.MachineType = 'MachineType' in params ? params.MachineType : null;
2854
+
2855
+ }
2856
+ }
2857
+
2858
+ /**
2859
+ * DescribeNodePools request structure.
2860
+ * @class
2861
+ */
2862
+ class DescribeNodePoolsRequest extends AbstractModel {
2863
+ constructor(){
2864
+ super();
2865
+
2866
+ /**
2867
+ * Cluster ID
2868
+ * @type {string || null}
2869
+ */
2870
+ this.ClusterId = null;
2871
+
2872
+ /**
2873
+ * Query filter criteria:
2874
+ · NodePoolsName
2875
+ Filter by [Node Pool Name].
2876
+ Type: String
2877
+ Required: No
2878
+
2879
+
2880
+
2881
+ · NodePoolsId
2882
+ Filter by [Node Pool id].
2883
+ Type: String
2884
+ Required: No
2885
+
2886
+
2887
+
2888
+ · tags
2889
+ Filter by [Tag Key-value Pairs].
2890
+ Type: String
2891
+ Required: No
2892
+
2893
+
2894
+
2895
+ · tag:tag-key
2896
+ Filter by [Tag Key-value Pairs].
2897
+ Type: String
2898
+ Required: No
2899
+ * @type {Array.<Filter> || null}
2900
+ */
2901
+ this.Filters = null;
2902
+
2903
+ /**
2904
+ * Offset. Default value: 0
2905
+ * @type {number || null}
2906
+ */
2907
+ this.Offset = null;
2908
+
2909
+ /**
2910
+ * Maximum number of output entries. Default value: 20; maximum value: 100.
2911
+ * @type {number || null}
2912
+ */
2913
+ this.Limit = null;
2914
+
2915
+ }
2916
+
2917
+ /**
2918
+ * @private
2919
+ */
2920
+ deserialize(params) {
2921
+ if (!params) {
2922
+ return;
2923
+ }
2924
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
2925
+
2926
+ if (params.Filters) {
2927
+ this.Filters = new Array();
2928
+ for (let z in params.Filters) {
2929
+ let obj = new Filter();
2930
+ obj.deserialize(params.Filters[z]);
2931
+ this.Filters.push(obj);
2932
+ }
2933
+ }
2934
+ this.Offset = 'Offset' in params ? params.Offset : null;
2935
+ this.Limit = 'Limit' in params ? params.Limit : null;
2936
+
2937
+ }
2938
+ }
2939
+
2940
+ /**
2941
+ * Node pool information
2942
+ * @class
2943
+ */
2944
+ class NodePool extends AbstractModel {
2945
+ constructor(){
2946
+ super();
2947
+
2948
+ /**
2949
+ * Cluster ID
2950
+ * @type {string || null}
2951
+ */
2952
+ this.ClusterId = null;
2953
+
2954
+ /**
2955
+ * Node pool ID
2956
+ * @type {string || null}
2957
+ */
2958
+ this.NodePoolId = null;
2959
+
2960
+ /**
2961
+ * Node tags
2962
+ Note: This field may return "null", indicating that no valid value can be obtained.
2963
+ * @type {Array.<TagSpecification> || null}
2964
+ */
2965
+ this.Tags = null;
2966
+
2967
+ /**
2968
+ * Node taint
2969
+
2970
+ Note: This field may return "null", indicating that no valid value can be obtained.
2971
+ * @type {Array.<Taint> || null}
2972
+ */
2973
+ this.Taints = null;
2974
+
2975
+ /**
2976
+ * Whether to enable deletion protection
2977
+ Note: This field may return "null", indicating that no valid value can be obtained.
2978
+ * @type {boolean || null}
2979
+ */
2980
+ this.DeletionProtection = null;
2981
+
2982
+ /**
2983
+ * Whether the node is unschedulable
2984
+ Note: This field may return "null", indicating that no valid value can be obtained.
2985
+ * @type {boolean || null}
2986
+ */
2987
+ this.Unschedulable = null;
2988
+
2989
+ /**
2990
+ * Node pool type
2991
+ * @type {string || null}
2992
+ */
2993
+ this.Type = null;
2994
+
2995
+ /**
2996
+ * Node Labels
2997
+ Note: This field may return "null", indicating that no valid value can be obtained.
2998
+ * @type {Array.<Label> || null}
2999
+ */
3000
+ this.Labels = null;
3001
+
3002
+ /**
3003
+ * Node pool status
3004
+ * @type {string || null}
3005
+ */
3006
+ this.LifeState = null;
3007
+
3008
+ /**
3009
+ * Creation time
3010
+ * @type {string || null}
3011
+ */
3012
+ this.CreatedAt = null;
3013
+
3014
+ /**
3015
+ * Node pool name
3016
+ * @type {string || null}
3017
+ */
3018
+ this.Name = null;
3019
+
3020
+ /**
3021
+ * Native node pool parameters
3022
+ Note: This field may return "null", indicating that no valid value can be obtained.
3023
+ * @type {NativeNodePoolInfo || null}
3024
+ */
3025
+ this.Native = null;
3026
+
3027
+ /**
3028
+ * Node annotation list
3029
+
3030
+ Note: This field may return "null", indicating that no valid value can be obtained.
3031
+ * @type {Array.<Annotation> || null}
3032
+ */
3033
+ this.Annotations = null;
3034
+
3035
+ /**
3036
+ * Super node pool parameter, which has a value only when Type equals Super
3037
+ Note: This field may return "null", indicating that no valid value can be obtained.
3038
+ * @type {SuperNodePoolInfo || null}
3039
+ */
3040
+ this.Super = null;
3041
+
3042
+ /**
3043
+ * General node pool parameter, which has a value only when Type equals Regular
3044
+ Note: This field may return "null", indicating that no valid value can be obtained.
3045
+ * @type {RegularNodePoolInfo || null}
3046
+ */
3047
+ this.Regular = null;
3048
+
3049
+ /**
3050
+ * Third-party node pool parameter, which has a value only when Type equals External
3051
+ Note: This field may return "null", indicating that no valid value can be obtained.
3052
+ * @type {ExternalNodePoolInfo || null}
3053
+ */
3054
+ this.External = null;
3055
+
3056
+ }
3057
+
3058
+ /**
3059
+ * @private
3060
+ */
3061
+ deserialize(params) {
3062
+ if (!params) {
3063
+ return;
3064
+ }
3065
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
3066
+ this.NodePoolId = 'NodePoolId' in params ? params.NodePoolId : null;
3067
+
3068
+ if (params.Tags) {
3069
+ this.Tags = new Array();
3070
+ for (let z in params.Tags) {
3071
+ let obj = new TagSpecification();
3072
+ obj.deserialize(params.Tags[z]);
3073
+ this.Tags.push(obj);
3074
+ }
3075
+ }
3076
+
3077
+ if (params.Taints) {
3078
+ this.Taints = new Array();
3079
+ for (let z in params.Taints) {
3080
+ let obj = new Taint();
3081
+ obj.deserialize(params.Taints[z]);
3082
+ this.Taints.push(obj);
3083
+ }
3084
+ }
3085
+ this.DeletionProtection = 'DeletionProtection' in params ? params.DeletionProtection : null;
3086
+ this.Unschedulable = 'Unschedulable' in params ? params.Unschedulable : null;
3087
+ this.Type = 'Type' in params ? params.Type : null;
3088
+
3089
+ if (params.Labels) {
3090
+ this.Labels = new Array();
3091
+ for (let z in params.Labels) {
3092
+ let obj = new Label();
3093
+ obj.deserialize(params.Labels[z]);
3094
+ this.Labels.push(obj);
3095
+ }
3096
+ }
3097
+ this.LifeState = 'LifeState' in params ? params.LifeState : null;
3098
+ this.CreatedAt = 'CreatedAt' in params ? params.CreatedAt : null;
3099
+ this.Name = 'Name' in params ? params.Name : null;
3100
+
3101
+ if (params.Native) {
3102
+ let obj = new NativeNodePoolInfo();
3103
+ obj.deserialize(params.Native)
3104
+ this.Native = obj;
3105
+ }
3106
+
3107
+ if (params.Annotations) {
3108
+ this.Annotations = new Array();
3109
+ for (let z in params.Annotations) {
3110
+ let obj = new Annotation();
3111
+ obj.deserialize(params.Annotations[z]);
3112
+ this.Annotations.push(obj);
3113
+ }
3114
+ }
3115
+
3116
+ if (params.Super) {
3117
+ let obj = new SuperNodePoolInfo();
3118
+ obj.deserialize(params.Super)
3119
+ this.Super = obj;
3120
+ }
3121
+
3122
+ if (params.Regular) {
3123
+ let obj = new RegularNodePoolInfo();
3124
+ obj.deserialize(params.Regular)
3125
+ this.Regular = obj;
3126
+ }
3127
+
3128
+ if (params.External) {
3129
+ let obj = new ExternalNodePoolInfo();
3130
+ obj.deserialize(params.External)
3131
+ this.External = obj;
3132
+ }
3133
+
3134
+ }
3135
+ }
3136
+
3137
+ /**
3138
+ * DeleteNodePool request structure.
3139
+ * @class
3140
+ */
3141
+ class DeleteNodePoolRequest extends AbstractModel {
3142
+ constructor(){
3143
+ super();
3144
+
3145
+ /**
3146
+ * Cluster ID
3147
+ * @type {string || null}
3148
+ */
3149
+ this.ClusterId = null;
3150
+
3151
+ /**
3152
+ * Node pool ID
3153
+ * @type {string || null}
3154
+ */
3155
+ this.NodePoolId = null;
3156
+
3157
+ }
3158
+
3159
+ /**
3160
+ * @private
3161
+ */
3162
+ deserialize(params) {
3163
+ if (!params) {
3164
+ return;
3165
+ }
3166
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
3167
+ this.NodePoolId = 'NodePoolId' in params ? params.NodePoolId : null;
3168
+
3169
+ }
3170
+ }
3171
+
3172
+ /**
3173
+ * Describes the configuration and related information of K8s cluster.
3174
+ * @class
3175
+ */
3176
+ class InstanceAdvancedSettings extends AbstractModel {
3177
+ constructor(){
3178
+ super();
3179
+
3180
+ /**
3181
+ * When the node is in the podCIDR size customization mode, you can specify the upper limit of the number of pods running on the node.
3182
+ Note: This field may return "null", indicating that no valid value can be obtained.
3183
+ * @type {number || null}
3184
+ */
3185
+ this.DesiredPodNumber = null;
3186
+
3187
+ /**
3188
+ * base64 encoded user script, executed before initializing the node and currently effective only for adding existing nodes
3189
+ Note: This field may return "null", indicating that no valid value can be obtained.
3190
+ * @type {string || null}
3191
+ */
3192
+ this.PreStartUserScript = null;
3193
+
3194
+ /**
3195
+ * Runtime description
3196
+ Note: This field may return "null", indicating that no valid value can be obtained.
3197
+ * @type {RuntimeConfig || null}
3198
+ */
3199
+ this.RuntimeConfig = null;
3200
+
3201
+ /**
3202
+ * Base64-encoded user script. This script is executed after the k8s components start running. Users must ensure the reenterable and retry logic of the script. The script and the log files generated by it can be viewed at the /data/ccs_userscript/ path of the node. If a node must be initialized before joining the scheduling, it can be used in conjunction with the unschedulable parameter. After initializing with userScript, add the command `kubectl uncordon nodename --kubeconfig=/root/.kube/config` to add the node to scheduling.
3203
+
3204
+ Note: This field may return "null", indicating that no valid value can be obtained.
3205
+ * @type {string || null}
3206
+ */
3207
+ this.UserScript = null;
3208
+
3209
+ /**
3210
+ * Node-related custom parameter information.
3211
+
3212
+ Note: This field may return "null", indicating that no valid value can be obtained.
3213
+ * @type {InstanceExtraArgs || null}
3214
+ */
3215
+ this.ExtraArgs = null;
3216
+
3217
+ }
3218
+
3219
+ /**
3220
+ * @private
3221
+ */
3222
+ deserialize(params) {
3223
+ if (!params) {
3224
+ return;
3225
+ }
3226
+ this.DesiredPodNumber = 'DesiredPodNumber' in params ? params.DesiredPodNumber : null;
3227
+ this.PreStartUserScript = 'PreStartUserScript' in params ? params.PreStartUserScript : null;
3228
+
3229
+ if (params.RuntimeConfig) {
3230
+ let obj = new RuntimeConfig();
3231
+ obj.deserialize(params.RuntimeConfig)
3232
+ this.RuntimeConfig = obj;
3233
+ }
3234
+ this.UserScript = 'UserScript' in params ? params.UserScript : null;
3235
+
3236
+ if (params.ExtraArgs) {
3237
+ let obj = new InstanceExtraArgs();
3238
+ obj.deserialize(params.ExtraArgs)
3239
+ this.ExtraArgs = obj;
3240
+ }
3241
+
3242
+ }
3243
+ }
3244
+
3245
+ /**
3246
+ * Numerical structure
3247
+ * @class
3248
+ */
3249
+ class IntOrString extends AbstractModel {
3250
+ constructor(){
3251
+ super();
3252
+
3253
+ /**
3254
+ * Numerical type, 0: int, 1: string
3255
+ Note: This field may return "null", indicating that no valid value can be obtained.
3256
+ * @type {number || null}
3257
+ */
3258
+ this.Type = null;
3259
+
3260
+ /**
3261
+ * Integer
3262
+ Note: This field may return "null", indicating that no valid value can be obtained.
3263
+ * @type {number || null}
3264
+ */
3265
+ this.IntVal = null;
3266
+
3267
+ /**
3268
+ * String
3269
+ Note: This field may return "null", indicating that no valid value can be obtained.
3270
+ * @type {string || null}
3271
+ */
3272
+ this.StrVal = null;
3273
+
3274
+ }
3275
+
3276
+ /**
3277
+ * @private
3278
+ */
3279
+ deserialize(params) {
3280
+ if (!params) {
3281
+ return;
3282
+ }
3283
+ this.Type = 'Type' in params ? params.Type : null;
3284
+ this.IntVal = 'IntVal' in params ? params.IntVal : null;
3285
+ this.StrVal = 'StrVal' in params ? params.StrVal : null;
3286
+
3287
+ }
3288
+ }
3289
+
3290
+ /**
3291
+ * Third-party node pool information
3292
+ * @class
3293
+ */
3294
+ class ExternalNodePoolInfo extends AbstractModel {
3295
+ constructor(){
3296
+ super();
3297
+
3298
+ /**
3299
+ * Third-party node runtime configuration
3300
+ * @type {RuntimeConfig || null}
3301
+ */
3302
+ this.RuntimeConfig = null;
3303
+
3304
+ /**
3305
+ * Number of nodes
3306
+ Note: This field may return "null", indicating that no valid value can be obtained.
3307
+ * @type {number || null}
3308
+ */
3309
+ this.NodesNum = null;
3310
+
3311
+ }
3312
+
3313
+ /**
3314
+ * @private
3315
+ */
3316
+ deserialize(params) {
3317
+ if (!params) {
3318
+ return;
3319
+ }
3320
+
3321
+ if (params.RuntimeConfig) {
3322
+ let obj = new RuntimeConfig();
3323
+ obj.deserialize(params.RuntimeConfig)
3324
+ this.RuntimeConfig = obj;
3325
+ }
3326
+ this.NodesNum = 'NodesNum' in params ? params.NodesNum : null;
3327
+
3328
+ }
3329
+ }
3330
+
3331
+ /**
3332
+ * DescribeHealthCheckTemplate request structure.
3333
+ * @class
3334
+ */
3335
+ class DescribeHealthCheckTemplateRequest extends AbstractModel {
3336
+ constructor(){
3337
+ super();
3338
+
3339
+ }
3340
+
3341
+ /**
3342
+ * @private
3343
+ */
3344
+ deserialize(params) {
3345
+ if (!params) {
3346
+ return;
3347
+ }
3348
+
3349
+ }
3350
+ }
3351
+
3352
+ /**
3353
+ * DescribeHealthCheckPolicies response structure.
3354
+ * @class
3355
+ */
3356
+ class DescribeHealthCheckPoliciesResponse extends AbstractModel {
3357
+ constructor(){
3358
+ super();
3359
+
3360
+ /**
3361
+ * Health check policy array
3362
+ Note: This field may return "null", indicating that no valid value can be obtained.
3363
+ * @type {Array.<HealthCheckPolicy> || null}
3364
+ */
3365
+ this.HealthCheckPolicies = null;
3366
+
3367
+ /**
3368
+ * Total number of arrays
3369
+ Note: This field may return "null", indicating that no valid value can be obtained.
3370
+ * @type {number || null}
3371
+ */
3372
+ this.TotalCount = null;
3373
+
3374
+ /**
3375
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
3376
+ * @type {string || null}
3377
+ */
3378
+ this.RequestId = null;
3379
+
3380
+ }
3381
+
3382
+ /**
3383
+ * @private
3384
+ */
3385
+ deserialize(params) {
3386
+ if (!params) {
3387
+ return;
3388
+ }
3389
+
3390
+ if (params.HealthCheckPolicies) {
3391
+ this.HealthCheckPolicies = new Array();
3392
+ for (let z in params.HealthCheckPolicies) {
3393
+ let obj = new HealthCheckPolicy();
3394
+ obj.deserialize(params.HealthCheckPolicies[z]);
3395
+ this.HealthCheckPolicies.push(obj);
3396
+ }
3397
+ }
3398
+ this.TotalCount = 'TotalCount' in params ? params.TotalCount : null;
3399
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
3400
+
3401
+ }
3402
+ }
3403
+
3404
+ /**
3405
+ * Health check template
3406
+ * @class
3407
+ */
3408
+ class HealthCheckTemplate extends AbstractModel {
3409
+ constructor(){
3410
+ super();
3411
+
3412
+ /**
3413
+ * Health check item
3414
+ * @type {Array.<HealthCheckTemplateRule> || null}
3415
+ */
3416
+ this.Rules = null;
3417
+
3418
+ }
3419
+
3420
+ /**
3421
+ * @private
3422
+ */
3423
+ deserialize(params) {
3424
+ if (!params) {
3425
+ return;
3426
+ }
3427
+
3428
+ if (params.Rules) {
3429
+ this.Rules = new Array();
3430
+ for (let z in params.Rules) {
3431
+ let obj = new HealthCheckTemplateRule();
3432
+ obj.deserialize(params.Rules[z]);
3433
+ this.Rules.push(obj);
3434
+ }
3435
+ }
3436
+
3437
+ }
3438
+ }
3439
+
3440
+ /**
3441
+ * Public network bandwidth
3442
+ * @class
3443
+ */
3444
+ class InternetAccessible extends AbstractModel {
3445
+ constructor(){
3446
+ super();
3447
+
3448
+ /**
3449
+ * Bandwidth
3450
+ * @type {number || null}
3451
+ */
3452
+ this.MaxBandwidthOut = null;
3453
+
3454
+ /**
3455
+ * Network billing method
3456
+ * @type {string || null}
3457
+ */
3458
+ this.ChargeType = null;
3459
+
3460
+ /**
3461
+ * Bandwidth package ID
3462
+ * @type {string || null}
3463
+ */
3464
+ this.BandwidthPackageId = null;
3465
+
3466
+ }
3467
+
3468
+ /**
3469
+ * @private
3470
+ */
3471
+ deserialize(params) {
3472
+ if (!params) {
3473
+ return;
3474
+ }
3475
+ this.MaxBandwidthOut = 'MaxBandwidthOut' in params ? params.MaxBandwidthOut : null;
3476
+ this.ChargeType = 'ChargeType' in params ? params.ChargeType : null;
3477
+ this.BandwidthPackageId = 'BandwidthPackageId' in params ? params.BandwidthPackageId : null;
3478
+
3479
+ }
3480
+ }
3481
+
3482
+ /**
3483
+ * ModifyHealthCheckPolicy request structure.
3484
+ * @class
3485
+ */
3486
+ class ModifyHealthCheckPolicyRequest extends AbstractModel {
3487
+ constructor(){
3488
+ super();
3489
+
3490
+ /**
3491
+ * Cluster ID
3492
+ * @type {string || null}
3493
+ */
3494
+ this.ClusterId = null;
3495
+
3496
+ /**
3497
+ * Health check policy
3498
+ * @type {HealthCheckPolicy || null}
3499
+ */
3500
+ this.HealthCheckPolicy = null;
3501
+
3502
+ }
3503
+
3504
+ /**
3505
+ * @private
3506
+ */
3507
+ deserialize(params) {
3508
+ if (!params) {
3509
+ return;
3510
+ }
3511
+ this.ClusterId = 'ClusterId' in params ? params.ClusterId : null;
3512
+
3513
+ if (params.HealthCheckPolicy) {
3514
+ let obj = new HealthCheckPolicy();
3515
+ obj.deserialize(params.HealthCheckPolicy)
3516
+ this.HealthCheckPolicy = obj;
3517
+ }
3518
+
3519
+ }
3520
+ }
3521
+
3522
+ /**
3523
+ * Super Node Information
3524
+ * @class
3525
+ */
3526
+ class SuperNodeInfo extends AbstractModel {
3527
+ constructor(){
3528
+ super();
3529
+
3530
+ /**
3531
+ * Instance name
3532
+ Note: This field may return "null", indicating that no valid value can be obtained.
3533
+ * @type {string || null}
3534
+ */
3535
+ this.Name = null;
3536
+
3537
+ /**
3538
+ * Auto-renewal label
3539
+ Note: This field may return "null", indicating that no valid value can be obtained.
3540
+ * @type {number || null}
3541
+ */
3542
+ this.AutoRenewFlag = null;
3543
+
3544
+ /**
3545
+ * Resource type
3546
+ Note: This field may return "null", indicating that no valid value can be obtained.
3547
+ * @type {string || null}
3548
+ */
3549
+ this.ResourceType = null;
3550
+
3551
+ /**
3552
+ * CPU specification of nodes (unit: cores).
3553
+ Note: This field may return "null", indicating that no valid value can be obtained.
3554
+ * @type {number || null}
3555
+ */
3556
+ this.CPU = null;
3557
+
3558
+ /**
3559
+ * Total number of CPUs of Pods on nodes (unit: cores).
3560
+ Note: This field may return "null", indicating that no valid value can be obtained.
3561
+ * @type {number || null}
3562
+ */
3563
+ this.UsedCPU = null;
3564
+
3565
+ /**
3566
+ * Memory specification of nodes (unit: Gi).
3567
+ Note: This field may return "null", indicating that no valid value can be obtained.
3568
+ * @type {number || null}
3569
+ */
3570
+ this.Memory = null;
3571
+
3572
+ /**
3573
+ * Total memory of Pods on nodes (unit: Gi).
3574
+ Note: This field may return "null", indicating that no valid value can be obtained.
3575
+ * @type {number || null}
3576
+ */
3577
+ this.UsedMemory = null;
3578
+
3579
+ /**
3580
+ * Availability zone
3581
+
3582
+ Note: This field may return "null", indicating that no valid value can be obtained.
3583
+ * @type {string || null}
3584
+ */
3585
+ this.Zone = null;
3586
+
3587
+ /**
3588
+ * Unique VPC ID
3589
+ Note: This field may return "null", indicating that no valid value can be obtained.
3590
+ * @type {string || null}
3591
+ */
3592
+ this.VpcId = null;
3593
+
3594
+ /**
3595
+ * Subnet unique ID
3596
+ Note: This field may return "null", indicating that no valid value can be obtained.
3597
+ * @type {string || null}
3598
+ */
3599
+ this.SubnetId = null;
3600
+
3601
+ /**
3602
+ * Effective time
3603
+ Note: This field may return "null", indicating that no valid value can be obtained.
3604
+ * @type {string || null}
3605
+ */
3606
+ this.ActiveAt = null;
3607
+
3608
+ /**
3609
+ * Expiration time
3610
+
3611
+ Note: This field may return "null", indicating that no valid value can be obtained.
3612
+ * @type {string || null}
3613
+ */
3614
+ this.ExpireAt = null;
3615
+
3616
+ /**
3617
+ * Maximum schedulable CPU specification for a single Pod
3618
+ Note: This field may return "null", indicating that no valid value can be obtained.
3619
+ * @type {number || null}
3620
+ */
3621
+ this.MaxCPUScheduledPod = null;
3622
+
3623
+ /**
3624
+ * Instance attributes
3625
+ Note: This field may return "null", indicating that no valid value can be obtained.
3626
+ * @type {string || null}
3627
+ */
3628
+ this.InstanceAttribute = null;
3629
+
3630
+ }
3631
+
3632
+ /**
3633
+ * @private
3634
+ */
3635
+ deserialize(params) {
3636
+ if (!params) {
3637
+ return;
3638
+ }
3639
+ this.Name = 'Name' in params ? params.Name : null;
3640
+ this.AutoRenewFlag = 'AutoRenewFlag' in params ? params.AutoRenewFlag : null;
3641
+ this.ResourceType = 'ResourceType' in params ? params.ResourceType : null;
3642
+ this.CPU = 'CPU' in params ? params.CPU : null;
3643
+ this.UsedCPU = 'UsedCPU' in params ? params.UsedCPU : null;
3644
+ this.Memory = 'Memory' in params ? params.Memory : null;
3645
+ this.UsedMemory = 'UsedMemory' in params ? params.UsedMemory : null;
3646
+ this.Zone = 'Zone' in params ? params.Zone : null;
3647
+ this.VpcId = 'VpcId' in params ? params.VpcId : null;
3648
+ this.SubnetId = 'SubnetId' in params ? params.SubnetId : null;
3649
+ this.ActiveAt = 'ActiveAt' in params ? params.ActiveAt : null;
3650
+ this.ExpireAt = 'ExpireAt' in params ? params.ExpireAt : null;
3651
+ this.MaxCPUScheduledPod = 'MaxCPUScheduledPod' in params ? params.MaxCPUScheduledPod : null;
3652
+ this.InstanceAttribute = 'InstanceAttribute' in params ? params.InstanceAttribute : null;
3653
+
3654
+ }
3655
+ }
3656
+
3657
+ /**
3658
+ * Nodes manually added
3659
+ * @class
3660
+ */
3661
+ class ManuallyAdded extends AbstractModel {
3662
+ constructor(){
3663
+ super();
3664
+
3665
+ /**
3666
+ * Number of nodes being added
3667
+ * @type {number || null}
3668
+ */
3669
+ this.Joining = null;
3670
+
3671
+ /**
3672
+ * Number of nodes being initialized
3673
+ * @type {number || null}
3674
+ */
3675
+ this.Initializing = null;
3676
+
3677
+ /**
3678
+ * Number of normal nodes
3679
+ * @type {number || null}
3680
+ */
3681
+ this.Normal = null;
3682
+
3683
+ /**
3684
+ * Total number of nodes
3685
+ * @type {number || null}
3686
+ */
3687
+ this.Total = null;
3688
+
3689
+ }
3690
+
3691
+ /**
3692
+ * @private
3693
+ */
3694
+ deserialize(params) {
3695
+ if (!params) {
3696
+ return;
3697
+ }
3698
+ this.Joining = 'Joining' in params ? params.Joining : null;
3699
+ this.Initializing = 'Initializing' in params ? params.Initializing : null;
3700
+ this.Normal = 'Normal' in params ? params.Normal : null;
3701
+ this.Total = 'Total' in params ? params.Total : null;
3702
+
3703
+ }
3704
+ }
3705
+
3706
+ /**
3707
+ * Management configuration of managed node pools
3708
+ * @class
3709
+ */
3710
+ class ManagementConfig extends AbstractModel {
3711
+ constructor(){
3712
+ super();
3713
+
3714
+ /**
3715
+ * dns configuration
3716
+ Note: This field may return "null", indicating that no valid value can be obtained.
3717
+ * @type {Array.<string> || null}
3718
+ */
3719
+ this.Nameservers = null;
3720
+
3721
+ /**
3722
+ * hosts configuration
3723
+ Note: This field may return "null", indicating that no valid value can be obtained.
3724
+ * @type {Array.<string> || null}
3725
+ */
3726
+ this.Hosts = null;
3727
+
3728
+ /**
3729
+ * Kernel parameter configuration
3730
+ Note: This field may return "null", indicating that no valid value can be obtained.
3731
+ * @type {Array.<string> || null}
3732
+ */
3733
+ this.KernelArgs = null;
3734
+
3735
+ }
3736
+
3737
+ /**
3738
+ * @private
3739
+ */
3740
+ deserialize(params) {
3741
+ if (!params) {
3742
+ return;
3743
+ }
3744
+ this.Nameservers = 'Nameservers' in params ? params.Nameservers : null;
3745
+ this.Hosts = 'Hosts' in params ? params.Hosts : null;
3746
+ this.KernelArgs = 'KernelArgs' in params ? params.KernelArgs : null;
3747
+
3748
+ }
3749
+ }
3750
+
3751
+ /**
3752
+ * ModifyHealthCheckPolicy response structure.
3753
+ * @class
3754
+ */
3755
+ class ModifyHealthCheckPolicyResponse extends AbstractModel {
3756
+ constructor(){
3757
+ super();
3758
+
3759
+ /**
3760
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
3761
+ * @type {string || null}
3762
+ */
3763
+ this.RequestId = null;
3764
+
3765
+ }
3766
+
3767
+ /**
3768
+ * @private
3769
+ */
3770
+ deserialize(params) {
3771
+ if (!params) {
3772
+ return;
3773
+ }
3774
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
3775
+
3776
+ }
3777
+ }
3778
+
3779
+ /**
3780
+ * Sorting information
3781
+ * @class
3782
+ */
3783
+ class SortBy extends AbstractModel {
3784
+ constructor(){
3785
+ super();
3786
+
3787
+ /**
3788
+ * Sorting metrics
3789
+ * @type {string || null}
3790
+ */
3791
+ this.FieldName = null;
3792
+
3793
+ /**
3794
+ * Sorting method
3795
+ * @type {string || null}
3796
+ */
3797
+ this.OrderType = null;
3798
+
3799
+ }
3800
+
3801
+ /**
3802
+ * @private
3803
+ */
3804
+ deserialize(params) {
3805
+ if (!params) {
3806
+ return;
3807
+ }
3808
+ this.FieldName = 'FieldName' in params ? params.FieldName : null;
3809
+ this.OrderType = 'OrderType' in params ? params.OrderType : null;
3810
+
3811
+ }
3812
+ }
3813
+
3814
+ /**
3815
+ * Health check rules
3816
+ * @class
3817
+ */
3818
+ class HealthCheckPolicy extends AbstractModel {
3819
+ constructor(){
3820
+ super();
3821
+
3822
+ /**
3823
+ * Health check policy name
3824
+ * @type {string || null}
3825
+ */
3826
+ this.Name = null;
3827
+
3828
+ /**
3829
+ * List of health check policy rules
3830
+ * @type {Array.<HealthCheckPolicyRule> || null}
3831
+ */
3832
+ this.Rules = null;
3833
+
3834
+ }
3835
+
3836
+ /**
3837
+ * @private
3838
+ */
3839
+ deserialize(params) {
3840
+ if (!params) {
3841
+ return;
3842
+ }
3843
+ this.Name = 'Name' in params ? params.Name : null;
3844
+
3845
+ if (params.Rules) {
3846
+ this.Rules = new Array();
3847
+ for (let z in params.Rules) {
3848
+ let obj = new HealthCheckPolicyRule();
3849
+ obj.deserialize(params.Rules[z]);
3850
+ this.Rules.push(obj);
3851
+ }
3852
+ }
3853
+
3854
+ }
3855
+ }
3856
+
3857
+ /**
3858
+ * Node system disk and data disk configuration
3859
+ * @class
3860
+ */
3861
+ class Disk extends AbstractModel {
3862
+ constructor(){
3863
+ super();
3864
+
3865
+ /**
3866
+ * Cloud disk type
3867
+ * @type {string || null}
3868
+ */
3869
+ this.DiskType = null;
3870
+
3871
+ /**
3872
+ * Cloud disk size (GB)
3873
+ * @type {number || null}
3874
+ */
3875
+ this.DiskSize = null;
3876
+
3877
+ /**
3878
+ * Whether to automatically format and mount disks.
3879
+ * @type {boolean || null}
3880
+ */
3881
+ this.AutoFormatAndMount = null;
3882
+
3883
+ /**
3884
+ * File system
3885
+ * @type {string || null}
3886
+ */
3887
+ this.FileSystem = null;
3888
+
3889
+ /**
3890
+ * Mounting directory
3891
+ * @type {string || null}
3892
+ */
3893
+ this.MountTarget = null;
3894
+
3895
+ }
3896
+
3897
+ /**
3898
+ * @private
3899
+ */
3900
+ deserialize(params) {
3901
+ if (!params) {
3902
+ return;
3903
+ }
3904
+ this.DiskType = 'DiskType' in params ? params.DiskType : null;
3905
+ this.DiskSize = 'DiskSize' in params ? params.DiskSize : null;
3906
+ this.AutoFormatAndMount = 'AutoFormatAndMount' in params ? params.AutoFormatAndMount : null;
3907
+ this.FileSystem = 'FileSystem' in params ? params.FileSystem : null;
3908
+ this.MountTarget = 'MountTarget' in params ? params.MountTarget : null;
3909
+
3910
+ }
3911
+ }
3912
+
3913
+ /**
3914
+ * CreateHealthCheckPolicy response structure.
3915
+ * @class
3916
+ */
3917
+ class CreateHealthCheckPolicyResponse extends AbstractModel {
3918
+ constructor(){
3919
+ super();
3920
+
3921
+ /**
3922
+ * Health check policy name
3923
+ * @type {string || null}
3924
+ */
3925
+ this.HealthCheckPolicyName = null;
3926
+
3927
+ /**
3928
+ * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
3929
+ * @type {string || null}
3930
+ */
3931
+ this.RequestId = null;
3932
+
3933
+ }
3934
+
3935
+ /**
3936
+ * @private
3937
+ */
3938
+ deserialize(params) {
3939
+ if (!params) {
3940
+ return;
3941
+ }
3942
+ this.HealthCheckPolicyName = 'HealthCheckPolicyName' in params ? params.HealthCheckPolicyName : null;
3943
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
3944
+
3945
+ }
3946
+ }
3947
+
3948
+ /**
3949
+ * Describes the configuration and related information of k8s node data disk.
3950
+ * @class
3951
+ */
3952
+ class DataDisk extends AbstractModel {
3953
+ constructor(){
3954
+ super();
3955
+
3956
+ /**
3957
+ * Cloud disk type
3958
+ Note: This field may return "null", indicating that no valid value can be obtained.
3959
+ * @type {string || null}
3960
+ */
3961
+ this.DiskType = null;
3962
+
3963
+ /**
3964
+ * File system (ext3/ext4/xfs).
3965
+
3966
+ Note: This field may return "null", indicating that no valid value can be obtained.
3967
+ * @type {string || null}
3968
+ */
3969
+ this.FileSystem = null;
3970
+
3971
+ /**
3972
+ * Cloud disk size (GB)
3973
+
3974
+ Note: This field may return "null", indicating that no valid value can be obtained.
3975
+ * @type {number || null}
3976
+ */
3977
+ this.DiskSize = null;
3978
+
3979
+ /**
3980
+ * Whether to automatically format and mount disks.
3981
+
3982
+ Note: This field may return "null", indicating that no valid value can be obtained.
3983
+ * @type {boolean || null}
3984
+ */
3985
+ this.AutoFormatAndMount = null;
3986
+
3987
+ /**
3988
+ * Mount device name or partition name
3989
+ Note: This field may return "null", indicating that no valid value can be obtained.
3990
+ * @type {string || null}
3991
+ */
3992
+ this.DiskPartition = null;
3993
+
3994
+ /**
3995
+ * Mounting directory
3996
+
3997
+ Note: This field may return "null", indicating that no valid value can be obtained.
3998
+ * @type {string || null}
3999
+ */
4000
+ this.MountTarget = null;
4001
+
4002
+ /**
4003
+ * This parameter is used to create an encrypted cloud disk, with the value fixed as ENCRYPT.
4004
+ Note: This field may return "null", indicating that no valid value can be obtained.
4005
+ * @type {string || null}
4006
+ */
4007
+ this.Encrypt = null;
4008
+
4009
+ /**
4010
+ * Custom key for purchasing encrypted disks. When this parameter is input, the Encrypt input parameter cannot be left empty.
4011
+ Note: This field may return "null", indicating that no valid value can be obtained.
4012
+ * @type {string || null}
4013
+ */
4014
+ this.KmsKeyId = null;
4015
+
4016
+ /**
4017
+ * Snapshot ID. If it is input, a cloud disk will be created based on this snapshot. The snapshot must be a data disk snapshot.
4018
+ Note: This field may return "null", indicating that no valid value can be obtained.
4019
+ * @type {string || null}
4020
+ */
4021
+ this.SnapshotId = null;
4022
+
4023
+ /**
4024
+ * Cloud disk performance (unit: MB/s), which can be used to purchase additional performance for cloud disks.
4025
+ Note: This field may return "null", indicating that no valid value can be obtained.
4026
+ * @type {number || null}
4027
+ */
4028
+ this.ThroughputPerformance = null;
4029
+
4030
+ }
4031
+
4032
+ /**
4033
+ * @private
4034
+ */
4035
+ deserialize(params) {
4036
+ if (!params) {
4037
+ return;
4038
+ }
4039
+ this.DiskType = 'DiskType' in params ? params.DiskType : null;
4040
+ this.FileSystem = 'FileSystem' in params ? params.FileSystem : null;
4041
+ this.DiskSize = 'DiskSize' in params ? params.DiskSize : null;
4042
+ this.AutoFormatAndMount = 'AutoFormatAndMount' in params ? params.AutoFormatAndMount : null;
4043
+ this.DiskPartition = 'DiskPartition' in params ? params.DiskPartition : null;
4044
+ this.MountTarget = 'MountTarget' in params ? params.MountTarget : null;
4045
+ this.Encrypt = 'Encrypt' in params ? params.Encrypt : null;
4046
+ this.KmsKeyId = 'KmsKeyId' in params ? params.KmsKeyId : null;
4047
+ this.SnapshotId = 'SnapshotId' in params ? params.SnapshotId : null;
4048
+ this.ThroughputPerformance = 'ThroughputPerformance' in params ? params.ThroughputPerformance : null;
4049
+
4050
+ }
4051
+ }
4052
+
4053
+ module.exports = {
4054
+ NativeNodeInfo: NativeNodeInfo,
4055
+ HealthCheckTemplateRule: HealthCheckTemplateRule,
4056
+ HealthCheckPolicyRule: HealthCheckPolicyRule,
4057
+ DeleteHealthCheckPolicyRequest: DeleteHealthCheckPolicyRequest,
4058
+ CreateNodePoolResponse: CreateNodePoolResponse,
4059
+ CreateNativeNodePoolParam: CreateNativeNodePoolParam,
4060
+ DescribeNodePoolsResponse: DescribeNodePoolsResponse,
4061
+ ExternalNodeInfo: ExternalNodeInfo,
4062
+ DescribeClusterInstancesResponse: DescribeClusterInstancesResponse,
4063
+ AutoUpgradeOptions: AutoUpgradeOptions,
4064
+ AutoscalingAdded: AutoscalingAdded,
4065
+ Instance: Instance,
4066
+ DescribeHealthCheckPolicyBindingsRequest: DescribeHealthCheckPolicyBindingsRequest,
4067
+ NodeCountSummary: NodeCountSummary,
4068
+ SuperNodePoolInfo: SuperNodePoolInfo,
4069
+ RuntimeConfig: RuntimeConfig,
4070
+ Label: Label,
4071
+ HealthCheckPolicyBinding: HealthCheckPolicyBinding,
4072
+ CreateHealthCheckPolicyRequest: CreateHealthCheckPolicyRequest,
4073
+ InstanceExtraArgs: InstanceExtraArgs,
4074
+ MachineUpgradeSettings: MachineUpgradeSettings,
4075
+ UpdateNativeNodePoolParam: UpdateNativeNodePoolParam,
4076
+ InstanceChargePrepaid: InstanceChargePrepaid,
4077
+ DeleteNodePoolResponse: DeleteNodePoolResponse,
4078
+ Tag: Tag,
4079
+ MachineSetScaling: MachineSetScaling,
4080
+ ModifyNodePoolRequest: ModifyNodePoolRequest,
4081
+ Annotation: Annotation,
4082
+ DescribeClusterInstancesRequest: DescribeClusterInstancesRequest,
4083
+ DeleteHealthCheckPolicyResponse: DeleteHealthCheckPolicyResponse,
4084
+ TagSpecification: TagSpecification,
4085
+ LifecycleConfig: LifecycleConfig,
4086
+ ModifyNodePoolResponse: ModifyNodePoolResponse,
4087
+ RegularNodePoolInfo: RegularNodePoolInfo,
4088
+ Taint: Taint,
4089
+ Filter: Filter,
4090
+ DescribeHealthCheckPoliciesRequest: DescribeHealthCheckPoliciesRequest,
4091
+ DescribeHealthCheckTemplateResponse: DescribeHealthCheckTemplateResponse,
4092
+ CreateNodePoolRequest: CreateNodePoolRequest,
4093
+ RegularNodeInfo: RegularNodeInfo,
4094
+ DescribeHealthCheckPolicyBindingsResponse: DescribeHealthCheckPolicyBindingsResponse,
4095
+ NativeNodePoolInfo: NativeNodePoolInfo,
4096
+ DescribeNodePoolsRequest: DescribeNodePoolsRequest,
4097
+ NodePool: NodePool,
4098
+ DeleteNodePoolRequest: DeleteNodePoolRequest,
4099
+ InstanceAdvancedSettings: InstanceAdvancedSettings,
4100
+ IntOrString: IntOrString,
4101
+ ExternalNodePoolInfo: ExternalNodePoolInfo,
4102
+ DescribeHealthCheckTemplateRequest: DescribeHealthCheckTemplateRequest,
4103
+ DescribeHealthCheckPoliciesResponse: DescribeHealthCheckPoliciesResponse,
4104
+ HealthCheckTemplate: HealthCheckTemplate,
4105
+ InternetAccessible: InternetAccessible,
4106
+ ModifyHealthCheckPolicyRequest: ModifyHealthCheckPolicyRequest,
4107
+ SuperNodeInfo: SuperNodeInfo,
4108
+ ManuallyAdded: ManuallyAdded,
4109
+ ManagementConfig: ManagementConfig,
4110
+ ModifyHealthCheckPolicyResponse: ModifyHealthCheckPolicyResponse,
4111
+ SortBy: SortBy,
4112
+ HealthCheckPolicy: HealthCheckPolicy,
4113
+ Disk: Disk,
4114
+ CreateHealthCheckPolicyResponse: CreateHealthCheckPolicyResponse,
4115
+ DataDisk: DataDisk,
4116
+
4117
+ }