@alicloud/cs20151215 3.0.20 → 3.0.22
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.
- package/dist/client.d.ts +1133 -136
- package/dist/client.js +1905 -295
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +2299 -350
package/src/client.ts
CHANGED
|
@@ -35,16 +35,20 @@ export class Addon extends $tea.Model {
|
|
|
35
35
|
|
|
36
36
|
export class DataDisk extends $tea.Model {
|
|
37
37
|
autoSnapshotPolicyId?: string;
|
|
38
|
+
burstingEnabled?: boolean;
|
|
38
39
|
category?: string;
|
|
39
40
|
encrypted?: string;
|
|
40
41
|
performanceLevel?: string;
|
|
42
|
+
provisionedIops?: number;
|
|
41
43
|
size?: number;
|
|
42
44
|
static names(): { [key: string]: string } {
|
|
43
45
|
return {
|
|
44
46
|
autoSnapshotPolicyId: 'auto_snapshot_policy_id',
|
|
47
|
+
burstingEnabled: 'bursting_enabled',
|
|
45
48
|
category: 'category',
|
|
46
49
|
encrypted: 'encrypted',
|
|
47
50
|
performanceLevel: 'performance_level',
|
|
51
|
+
provisionedIops: 'provisioned_iops',
|
|
48
52
|
size: 'size',
|
|
49
53
|
};
|
|
50
54
|
}
|
|
@@ -52,9 +56,11 @@ export class DataDisk extends $tea.Model {
|
|
|
52
56
|
static types(): { [key: string]: any } {
|
|
53
57
|
return {
|
|
54
58
|
autoSnapshotPolicyId: 'string',
|
|
59
|
+
burstingEnabled: 'boolean',
|
|
55
60
|
category: 'string',
|
|
56
61
|
encrypted: 'string',
|
|
57
62
|
performanceLevel: 'string',
|
|
63
|
+
provisionedIops: 'number',
|
|
58
64
|
size: 'number',
|
|
59
65
|
};
|
|
60
66
|
}
|
|
@@ -92,6 +98,52 @@ export class MaintenanceWindow extends $tea.Model {
|
|
|
92
98
|
}
|
|
93
99
|
}
|
|
94
100
|
|
|
101
|
+
export class Nodepool extends $tea.Model {
|
|
102
|
+
autoScaling?: NodepoolAutoScaling;
|
|
103
|
+
count?: number;
|
|
104
|
+
interconnectConfig?: NodepoolInterconnectConfig;
|
|
105
|
+
interconnectMode?: string;
|
|
106
|
+
kubernetesConfig?: NodepoolKubernetesConfig;
|
|
107
|
+
management?: NodepoolManagement;
|
|
108
|
+
maxNodes?: number;
|
|
109
|
+
nodepoolInfo?: NodepoolNodepoolInfo;
|
|
110
|
+
scalingGroup?: NodepoolScalingGroup;
|
|
111
|
+
teeConfig?: NodepoolTeeConfig;
|
|
112
|
+
static names(): { [key: string]: string } {
|
|
113
|
+
return {
|
|
114
|
+
autoScaling: 'auto_scaling',
|
|
115
|
+
count: 'count',
|
|
116
|
+
interconnectConfig: 'interconnect_config',
|
|
117
|
+
interconnectMode: 'interconnect_mode',
|
|
118
|
+
kubernetesConfig: 'kubernetes_config',
|
|
119
|
+
management: 'management',
|
|
120
|
+
maxNodes: 'max_nodes',
|
|
121
|
+
nodepoolInfo: 'nodepool_info',
|
|
122
|
+
scalingGroup: 'scaling_group',
|
|
123
|
+
teeConfig: 'tee_config',
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
static types(): { [key: string]: any } {
|
|
128
|
+
return {
|
|
129
|
+
autoScaling: NodepoolAutoScaling,
|
|
130
|
+
count: 'number',
|
|
131
|
+
interconnectConfig: NodepoolInterconnectConfig,
|
|
132
|
+
interconnectMode: 'string',
|
|
133
|
+
kubernetesConfig: NodepoolKubernetesConfig,
|
|
134
|
+
management: NodepoolManagement,
|
|
135
|
+
maxNodes: 'number',
|
|
136
|
+
nodepoolInfo: NodepoolNodepoolInfo,
|
|
137
|
+
scalingGroup: NodepoolScalingGroup,
|
|
138
|
+
teeConfig: NodepoolTeeConfig,
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
constructor(map?: { [key: string]: any }) {
|
|
143
|
+
super(map);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
95
147
|
export class Runtime extends $tea.Model {
|
|
96
148
|
name?: string;
|
|
97
149
|
version?: string;
|
|
@@ -192,6 +244,34 @@ export class StandardComponentsValue extends $tea.Model {
|
|
|
192
244
|
}
|
|
193
245
|
}
|
|
194
246
|
|
|
247
|
+
export class QuotasValue extends $tea.Model {
|
|
248
|
+
quota?: string;
|
|
249
|
+
operationCode?: string;
|
|
250
|
+
adjustable?: boolean;
|
|
251
|
+
unit?: string;
|
|
252
|
+
static names(): { [key: string]: string } {
|
|
253
|
+
return {
|
|
254
|
+
quota: 'quota',
|
|
255
|
+
operationCode: 'operation_code',
|
|
256
|
+
adjustable: 'adjustable',
|
|
257
|
+
unit: 'unit',
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
static types(): { [key: string]: any } {
|
|
262
|
+
return {
|
|
263
|
+
quota: 'string',
|
|
264
|
+
operationCode: 'string',
|
|
265
|
+
adjustable: 'boolean',
|
|
266
|
+
unit: 'string',
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
constructor(map?: { [key: string]: any }) {
|
|
271
|
+
super(map);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
195
275
|
export class AttachInstancesRequest extends $tea.Model {
|
|
196
276
|
cpuPolicy?: string;
|
|
197
277
|
formatDisk?: boolean;
|
|
@@ -294,6 +374,81 @@ export class AttachInstancesResponse extends $tea.Model {
|
|
|
294
374
|
}
|
|
295
375
|
}
|
|
296
376
|
|
|
377
|
+
export class AttachInstancesToNodePoolRequest extends $tea.Model {
|
|
378
|
+
formatDisk?: boolean;
|
|
379
|
+
instances?: string[];
|
|
380
|
+
keepInstanceName?: boolean;
|
|
381
|
+
password?: string;
|
|
382
|
+
static names(): { [key: string]: string } {
|
|
383
|
+
return {
|
|
384
|
+
formatDisk: 'format_disk',
|
|
385
|
+
instances: 'instances',
|
|
386
|
+
keepInstanceName: 'keep_instance_name',
|
|
387
|
+
password: 'password',
|
|
388
|
+
};
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
static types(): { [key: string]: any } {
|
|
392
|
+
return {
|
|
393
|
+
formatDisk: 'boolean',
|
|
394
|
+
instances: { 'type': 'array', 'itemType': 'string' },
|
|
395
|
+
keepInstanceName: 'boolean',
|
|
396
|
+
password: 'string',
|
|
397
|
+
};
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
constructor(map?: { [key: string]: any }) {
|
|
401
|
+
super(map);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export class AttachInstancesToNodePoolResponseBody extends $tea.Model {
|
|
406
|
+
requestId?: string;
|
|
407
|
+
taskId?: string;
|
|
408
|
+
static names(): { [key: string]: string } {
|
|
409
|
+
return {
|
|
410
|
+
requestId: 'request_id',
|
|
411
|
+
taskId: 'task_id',
|
|
412
|
+
};
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
static types(): { [key: string]: any } {
|
|
416
|
+
return {
|
|
417
|
+
requestId: 'string',
|
|
418
|
+
taskId: 'string',
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
constructor(map?: { [key: string]: any }) {
|
|
423
|
+
super(map);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
export class AttachInstancesToNodePoolResponse extends $tea.Model {
|
|
428
|
+
headers: { [key: string]: string };
|
|
429
|
+
statusCode: number;
|
|
430
|
+
body: AttachInstancesToNodePoolResponseBody;
|
|
431
|
+
static names(): { [key: string]: string } {
|
|
432
|
+
return {
|
|
433
|
+
headers: 'headers',
|
|
434
|
+
statusCode: 'statusCode',
|
|
435
|
+
body: 'body',
|
|
436
|
+
};
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
static types(): { [key: string]: any } {
|
|
440
|
+
return {
|
|
441
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
442
|
+
statusCode: 'number',
|
|
443
|
+
body: AttachInstancesToNodePoolResponseBody,
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
constructor(map?: { [key: string]: any }) {
|
|
448
|
+
super(map);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
297
452
|
export class CancelClusterUpgradeResponse extends $tea.Model {
|
|
298
453
|
headers: { [key: string]: string };
|
|
299
454
|
statusCode: number;
|
|
@@ -401,21 +556,88 @@ export class CancelWorkflowResponse extends $tea.Model {
|
|
|
401
556
|
}
|
|
402
557
|
}
|
|
403
558
|
|
|
559
|
+
export class CheckControlPlaneLogEnableResponseBody extends $tea.Model {
|
|
560
|
+
aliuid?: string;
|
|
561
|
+
components?: string[];
|
|
562
|
+
logProject?: string;
|
|
563
|
+
logTtl?: string;
|
|
564
|
+
static names(): { [key: string]: string } {
|
|
565
|
+
return {
|
|
566
|
+
aliuid: 'aliuid',
|
|
567
|
+
components: 'components',
|
|
568
|
+
logProject: 'log_project',
|
|
569
|
+
logTtl: 'log_ttl',
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
static types(): { [key: string]: any } {
|
|
574
|
+
return {
|
|
575
|
+
aliuid: 'string',
|
|
576
|
+
components: { 'type': 'array', 'itemType': 'string' },
|
|
577
|
+
logProject: 'string',
|
|
578
|
+
logTtl: 'string',
|
|
579
|
+
};
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
constructor(map?: { [key: string]: any }) {
|
|
583
|
+
super(map);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
export class CheckControlPlaneLogEnableResponse extends $tea.Model {
|
|
588
|
+
headers: { [key: string]: string };
|
|
589
|
+
statusCode: number;
|
|
590
|
+
body: CheckControlPlaneLogEnableResponseBody;
|
|
591
|
+
static names(): { [key: string]: string } {
|
|
592
|
+
return {
|
|
593
|
+
headers: 'headers',
|
|
594
|
+
statusCode: 'statusCode',
|
|
595
|
+
body: 'body',
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
static types(): { [key: string]: any } {
|
|
600
|
+
return {
|
|
601
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
602
|
+
statusCode: 'number',
|
|
603
|
+
body: CheckControlPlaneLogEnableResponseBody,
|
|
604
|
+
};
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
constructor(map?: { [key: string]: any }) {
|
|
608
|
+
super(map);
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
|
|
404
612
|
export class CreateAutoscalingConfigRequest extends $tea.Model {
|
|
405
613
|
coolDownDuration?: string;
|
|
614
|
+
daemonsetEvictionForNodes?: boolean;
|
|
406
615
|
expander?: string;
|
|
407
616
|
gpuUtilizationThreshold?: string;
|
|
617
|
+
maxGracefulTerminationSec?: number;
|
|
618
|
+
minReplicaCount?: number;
|
|
619
|
+
recycleNodeDeletionEnabled?: boolean;
|
|
408
620
|
scaleDownEnabled?: boolean;
|
|
621
|
+
scaleUpFromZero?: boolean;
|
|
409
622
|
scanInterval?: string;
|
|
623
|
+
skipNodesWithLocalStorage?: boolean;
|
|
624
|
+
skipNodesWithSystemPods?: boolean;
|
|
410
625
|
unneededDuration?: string;
|
|
411
626
|
utilizationThreshold?: string;
|
|
412
627
|
static names(): { [key: string]: string } {
|
|
413
628
|
return {
|
|
414
629
|
coolDownDuration: 'cool_down_duration',
|
|
630
|
+
daemonsetEvictionForNodes: 'daemonset_eviction_for_nodes',
|
|
415
631
|
expander: 'expander',
|
|
416
632
|
gpuUtilizationThreshold: 'gpu_utilization_threshold',
|
|
633
|
+
maxGracefulTerminationSec: 'max_graceful_termination_sec',
|
|
634
|
+
minReplicaCount: 'min_replica_count',
|
|
635
|
+
recycleNodeDeletionEnabled: 'recycle_node_deletion_enabled',
|
|
417
636
|
scaleDownEnabled: 'scale_down_enabled',
|
|
637
|
+
scaleUpFromZero: 'scale_up_from_zero',
|
|
418
638
|
scanInterval: 'scan_interval',
|
|
639
|
+
skipNodesWithLocalStorage: 'skip_nodes_with_local_storage',
|
|
640
|
+
skipNodesWithSystemPods: 'skip_nodes_with_system_pods',
|
|
419
641
|
unneededDuration: 'unneeded_duration',
|
|
420
642
|
utilizationThreshold: 'utilization_threshold',
|
|
421
643
|
};
|
|
@@ -424,10 +646,17 @@ export class CreateAutoscalingConfigRequest extends $tea.Model {
|
|
|
424
646
|
static types(): { [key: string]: any } {
|
|
425
647
|
return {
|
|
426
648
|
coolDownDuration: 'string',
|
|
649
|
+
daemonsetEvictionForNodes: 'boolean',
|
|
427
650
|
expander: 'string',
|
|
428
651
|
gpuUtilizationThreshold: 'string',
|
|
652
|
+
maxGracefulTerminationSec: 'number',
|
|
653
|
+
minReplicaCount: 'number',
|
|
654
|
+
recycleNodeDeletionEnabled: 'boolean',
|
|
429
655
|
scaleDownEnabled: 'boolean',
|
|
656
|
+
scaleUpFromZero: 'boolean',
|
|
430
657
|
scanInterval: 'string',
|
|
658
|
+
skipNodesWithLocalStorage: 'boolean',
|
|
659
|
+
skipNodesWithSystemPods: 'boolean',
|
|
431
660
|
unneededDuration: 'string',
|
|
432
661
|
utilizationThreshold: 'string',
|
|
433
662
|
};
|
|
@@ -1289,13 +1518,34 @@ export class DeleteClusterShrinkRequest extends $tea.Model {
|
|
|
1289
1518
|
}
|
|
1290
1519
|
}
|
|
1291
1520
|
|
|
1521
|
+
export class DeleteClusterResponseBody extends $tea.Model {
|
|
1522
|
+
taskId?: string;
|
|
1523
|
+
static names(): { [key: string]: string } {
|
|
1524
|
+
return {
|
|
1525
|
+
taskId: 'task_id',
|
|
1526
|
+
};
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
static types(): { [key: string]: any } {
|
|
1530
|
+
return {
|
|
1531
|
+
taskId: 'string',
|
|
1532
|
+
};
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
constructor(map?: { [key: string]: any }) {
|
|
1536
|
+
super(map);
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1292
1540
|
export class DeleteClusterResponse extends $tea.Model {
|
|
1293
1541
|
headers: { [key: string]: string };
|
|
1294
1542
|
statusCode: number;
|
|
1543
|
+
body: DeleteClusterResponseBody;
|
|
1295
1544
|
static names(): { [key: string]: string } {
|
|
1296
1545
|
return {
|
|
1297
1546
|
headers: 'headers',
|
|
1298
1547
|
statusCode: 'statusCode',
|
|
1548
|
+
body: 'body',
|
|
1299
1549
|
};
|
|
1300
1550
|
}
|
|
1301
1551
|
|
|
@@ -1303,6 +1553,7 @@ export class DeleteClusterResponse extends $tea.Model {
|
|
|
1303
1553
|
return {
|
|
1304
1554
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1305
1555
|
statusCode: 'number',
|
|
1556
|
+
body: DeleteClusterResponseBody,
|
|
1306
1557
|
};
|
|
1307
1558
|
}
|
|
1308
1559
|
|
|
@@ -1763,18 +2014,27 @@ export class DescirbeWorkflowResponse extends $tea.Model {
|
|
|
1763
2014
|
}
|
|
1764
2015
|
|
|
1765
2016
|
export class DescribeAddonsRequest extends $tea.Model {
|
|
2017
|
+
clusterProfile?: string;
|
|
2018
|
+
clusterSpec?: string;
|
|
1766
2019
|
clusterType?: string;
|
|
2020
|
+
clusterVersion?: string;
|
|
1767
2021
|
region?: string;
|
|
1768
2022
|
static names(): { [key: string]: string } {
|
|
1769
2023
|
return {
|
|
2024
|
+
clusterProfile: 'cluster_profile',
|
|
2025
|
+
clusterSpec: 'cluster_spec',
|
|
1770
2026
|
clusterType: 'cluster_type',
|
|
2027
|
+
clusterVersion: 'cluster_version',
|
|
1771
2028
|
region: 'region',
|
|
1772
2029
|
};
|
|
1773
2030
|
}
|
|
1774
2031
|
|
|
1775
2032
|
static types(): { [key: string]: any } {
|
|
1776
2033
|
return {
|
|
2034
|
+
clusterProfile: 'string',
|
|
2035
|
+
clusterSpec: 'string',
|
|
1777
2036
|
clusterType: 'string',
|
|
2037
|
+
clusterVersion: 'string',
|
|
1778
2038
|
region: 'string',
|
|
1779
2039
|
};
|
|
1780
2040
|
}
|
|
@@ -1831,6 +2091,59 @@ export class DescribeAddonsResponse extends $tea.Model {
|
|
|
1831
2091
|
}
|
|
1832
2092
|
}
|
|
1833
2093
|
|
|
2094
|
+
export class DescribeClusterAddonInstanceResponseBody extends $tea.Model {
|
|
2095
|
+
config?: string;
|
|
2096
|
+
name?: string;
|
|
2097
|
+
state?: string;
|
|
2098
|
+
version?: string;
|
|
2099
|
+
static names(): { [key: string]: string } {
|
|
2100
|
+
return {
|
|
2101
|
+
config: 'config',
|
|
2102
|
+
name: 'name',
|
|
2103
|
+
state: 'state',
|
|
2104
|
+
version: 'version',
|
|
2105
|
+
};
|
|
2106
|
+
}
|
|
2107
|
+
|
|
2108
|
+
static types(): { [key: string]: any } {
|
|
2109
|
+
return {
|
|
2110
|
+
config: 'string',
|
|
2111
|
+
name: 'string',
|
|
2112
|
+
state: 'string',
|
|
2113
|
+
version: 'string',
|
|
2114
|
+
};
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
constructor(map?: { [key: string]: any }) {
|
|
2118
|
+
super(map);
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
|
|
2122
|
+
export class DescribeClusterAddonInstanceResponse extends $tea.Model {
|
|
2123
|
+
headers: { [key: string]: string };
|
|
2124
|
+
statusCode: number;
|
|
2125
|
+
body: DescribeClusterAddonInstanceResponseBody;
|
|
2126
|
+
static names(): { [key: string]: string } {
|
|
2127
|
+
return {
|
|
2128
|
+
headers: 'headers',
|
|
2129
|
+
statusCode: 'statusCode',
|
|
2130
|
+
body: 'body',
|
|
2131
|
+
};
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2134
|
+
static types(): { [key: string]: any } {
|
|
2135
|
+
return {
|
|
2136
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2137
|
+
statusCode: 'number',
|
|
2138
|
+
body: DescribeClusterAddonInstanceResponseBody,
|
|
2139
|
+
};
|
|
2140
|
+
}
|
|
2141
|
+
|
|
2142
|
+
constructor(map?: { [key: string]: any }) {
|
|
2143
|
+
super(map);
|
|
2144
|
+
}
|
|
2145
|
+
}
|
|
2146
|
+
|
|
1834
2147
|
export class DescribeClusterAddonMetadataResponseBody extends $tea.Model {
|
|
1835
2148
|
configSchema?: string;
|
|
1836
2149
|
name?: string;
|
|
@@ -2069,6 +2382,7 @@ export class DescribeClusterDetailResponseBody extends $tea.Model {
|
|
|
2069
2382
|
name?: string;
|
|
2070
2383
|
networkMode?: string;
|
|
2071
2384
|
nextVersion?: string;
|
|
2385
|
+
parameters?: { [key: string]: string };
|
|
2072
2386
|
privateZone?: boolean;
|
|
2073
2387
|
profile?: string;
|
|
2074
2388
|
regionId?: string;
|
|
@@ -2100,6 +2414,7 @@ export class DescribeClusterDetailResponseBody extends $tea.Model {
|
|
|
2100
2414
|
name: 'name',
|
|
2101
2415
|
networkMode: 'network_mode',
|
|
2102
2416
|
nextVersion: 'next_version',
|
|
2417
|
+
parameters: 'parameters',
|
|
2103
2418
|
privateZone: 'private_zone',
|
|
2104
2419
|
profile: 'profile',
|
|
2105
2420
|
regionId: 'region_id',
|
|
@@ -2134,6 +2449,7 @@ export class DescribeClusterDetailResponseBody extends $tea.Model {
|
|
|
2134
2449
|
name: 'string',
|
|
2135
2450
|
networkMode: 'string',
|
|
2136
2451
|
nextVersion: 'string',
|
|
2452
|
+
parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2137
2453
|
privateZone: 'boolean',
|
|
2138
2454
|
profile: 'string',
|
|
2139
2455
|
regionId: 'string',
|
|
@@ -2184,7 +2500,7 @@ export class DescribeClusterDetailResponse extends $tea.Model {
|
|
|
2184
2500
|
export class DescribeClusterEventsRequest extends $tea.Model {
|
|
2185
2501
|
pageNumber?: number;
|
|
2186
2502
|
pageSize?: number;
|
|
2187
|
-
taskId?:
|
|
2503
|
+
taskId?: string;
|
|
2188
2504
|
static names(): { [key: string]: string } {
|
|
2189
2505
|
return {
|
|
2190
2506
|
pageNumber: 'page_number',
|
|
@@ -2197,7 +2513,7 @@ export class DescribeClusterEventsRequest extends $tea.Model {
|
|
|
2197
2513
|
return {
|
|
2198
2514
|
pageNumber: 'number',
|
|
2199
2515
|
pageSize: 'number',
|
|
2200
|
-
taskId: '
|
|
2516
|
+
taskId: 'string',
|
|
2201
2517
|
};
|
|
2202
2518
|
}
|
|
2203
2519
|
|
|
@@ -2678,20 +2994,17 @@ export class DescribeClusterV2UserKubeconfigResponse extends $tea.Model {
|
|
|
2678
2994
|
}
|
|
2679
2995
|
}
|
|
2680
2996
|
|
|
2681
|
-
export class
|
|
2682
|
-
|
|
2683
|
-
name?: string;
|
|
2997
|
+
export class DescribeClusterVulsResponseBody extends $tea.Model {
|
|
2998
|
+
vulRecords?: DescribeClusterVulsResponseBodyVulRecords[];
|
|
2684
2999
|
static names(): { [key: string]: string } {
|
|
2685
3000
|
return {
|
|
2686
|
-
|
|
2687
|
-
name: 'name',
|
|
3001
|
+
vulRecords: 'vul_records',
|
|
2688
3002
|
};
|
|
2689
3003
|
}
|
|
2690
3004
|
|
|
2691
3005
|
static types(): { [key: string]: any } {
|
|
2692
3006
|
return {
|
|
2693
|
-
|
|
2694
|
-
name: 'string',
|
|
3007
|
+
vulRecords: { 'type': 'array', 'itemType': DescribeClusterVulsResponseBodyVulRecords },
|
|
2695
3008
|
};
|
|
2696
3009
|
}
|
|
2697
3010
|
|
|
@@ -2700,10 +3013,10 @@ export class DescribeClustersRequest extends $tea.Model {
|
|
|
2700
3013
|
}
|
|
2701
3014
|
}
|
|
2702
3015
|
|
|
2703
|
-
export class
|
|
3016
|
+
export class DescribeClusterVulsResponse extends $tea.Model {
|
|
2704
3017
|
headers: { [key: string]: string };
|
|
2705
3018
|
statusCode: number;
|
|
2706
|
-
body:
|
|
3019
|
+
body: DescribeClusterVulsResponseBody;
|
|
2707
3020
|
static names(): { [key: string]: string } {
|
|
2708
3021
|
return {
|
|
2709
3022
|
headers: 'headers',
|
|
@@ -2716,7 +3029,7 @@ export class DescribeClustersResponse extends $tea.Model {
|
|
|
2716
3029
|
return {
|
|
2717
3030
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2718
3031
|
statusCode: 'number',
|
|
2719
|
-
body:
|
|
3032
|
+
body: DescribeClusterVulsResponseBody,
|
|
2720
3033
|
};
|
|
2721
3034
|
}
|
|
2722
3035
|
|
|
@@ -2725,34 +3038,81 @@ export class DescribeClustersResponse extends $tea.Model {
|
|
|
2725
3038
|
}
|
|
2726
3039
|
}
|
|
2727
3040
|
|
|
2728
|
-
export class
|
|
2729
|
-
clusterSpec?: string;
|
|
3041
|
+
export class DescribeClustersRequest extends $tea.Model {
|
|
2730
3042
|
clusterType?: string;
|
|
2731
3043
|
name?: string;
|
|
2732
|
-
pageNumber?: number;
|
|
2733
|
-
pageSize?: number;
|
|
2734
|
-
profile?: string;
|
|
2735
|
-
regionId?: string;
|
|
2736
3044
|
static names(): { [key: string]: string } {
|
|
2737
3045
|
return {
|
|
2738
|
-
|
|
2739
|
-
clusterType: 'cluster_type',
|
|
3046
|
+
clusterType: 'clusterType',
|
|
2740
3047
|
name: 'name',
|
|
2741
|
-
pageNumber: 'page_number',
|
|
2742
|
-
pageSize: 'page_size',
|
|
2743
|
-
profile: 'profile',
|
|
2744
|
-
regionId: 'region_id',
|
|
2745
3048
|
};
|
|
2746
3049
|
}
|
|
2747
3050
|
|
|
2748
3051
|
static types(): { [key: string]: any } {
|
|
2749
3052
|
return {
|
|
2750
|
-
clusterSpec: 'string',
|
|
2751
3053
|
clusterType: 'string',
|
|
2752
3054
|
name: 'string',
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
3055
|
+
};
|
|
3056
|
+
}
|
|
3057
|
+
|
|
3058
|
+
constructor(map?: { [key: string]: any }) {
|
|
3059
|
+
super(map);
|
|
3060
|
+
}
|
|
3061
|
+
}
|
|
3062
|
+
|
|
3063
|
+
export class DescribeClustersResponse extends $tea.Model {
|
|
3064
|
+
headers: { [key: string]: string };
|
|
3065
|
+
statusCode: number;
|
|
3066
|
+
body: DescribeClustersResponseBody[];
|
|
3067
|
+
static names(): { [key: string]: string } {
|
|
3068
|
+
return {
|
|
3069
|
+
headers: 'headers',
|
|
3070
|
+
statusCode: 'statusCode',
|
|
3071
|
+
body: 'body',
|
|
3072
|
+
};
|
|
3073
|
+
}
|
|
3074
|
+
|
|
3075
|
+
static types(): { [key: string]: any } {
|
|
3076
|
+
return {
|
|
3077
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3078
|
+
statusCode: 'number',
|
|
3079
|
+
body: { 'type': 'array', 'itemType': DescribeClustersResponseBody },
|
|
3080
|
+
};
|
|
3081
|
+
}
|
|
3082
|
+
|
|
3083
|
+
constructor(map?: { [key: string]: any }) {
|
|
3084
|
+
super(map);
|
|
3085
|
+
}
|
|
3086
|
+
}
|
|
3087
|
+
|
|
3088
|
+
export class DescribeClustersV1Request extends $tea.Model {
|
|
3089
|
+
clusterSpec?: string;
|
|
3090
|
+
clusterType?: string;
|
|
3091
|
+
name?: string;
|
|
3092
|
+
pageNumber?: number;
|
|
3093
|
+
pageSize?: number;
|
|
3094
|
+
profile?: string;
|
|
3095
|
+
regionId?: string;
|
|
3096
|
+
static names(): { [key: string]: string } {
|
|
3097
|
+
return {
|
|
3098
|
+
clusterSpec: 'cluster_spec',
|
|
3099
|
+
clusterType: 'cluster_type',
|
|
3100
|
+
name: 'name',
|
|
3101
|
+
pageNumber: 'page_number',
|
|
3102
|
+
pageSize: 'page_size',
|
|
3103
|
+
profile: 'profile',
|
|
3104
|
+
regionId: 'region_id',
|
|
3105
|
+
};
|
|
3106
|
+
}
|
|
3107
|
+
|
|
3108
|
+
static types(): { [key: string]: any } {
|
|
3109
|
+
return {
|
|
3110
|
+
clusterSpec: 'string',
|
|
3111
|
+
clusterType: 'string',
|
|
3112
|
+
name: 'string',
|
|
3113
|
+
pageNumber: 'number',
|
|
3114
|
+
pageSize: 'number',
|
|
3115
|
+
profile: 'string',
|
|
2756
3116
|
regionId: 'string',
|
|
2757
3117
|
};
|
|
2758
3118
|
}
|
|
@@ -3193,6 +3553,7 @@ export class DescribeExternalAgentResponse extends $tea.Model {
|
|
|
3193
3553
|
export class DescribeKubernetesVersionMetadataRequest extends $tea.Model {
|
|
3194
3554
|
clusterType?: string;
|
|
3195
3555
|
kubernetesVersion?: string;
|
|
3556
|
+
mode?: string;
|
|
3196
3557
|
profile?: string;
|
|
3197
3558
|
region?: string;
|
|
3198
3559
|
runtime?: string;
|
|
@@ -3200,6 +3561,7 @@ export class DescribeKubernetesVersionMetadataRequest extends $tea.Model {
|
|
|
3200
3561
|
return {
|
|
3201
3562
|
clusterType: 'ClusterType',
|
|
3202
3563
|
kubernetesVersion: 'KubernetesVersion',
|
|
3564
|
+
mode: 'Mode',
|
|
3203
3565
|
profile: 'Profile',
|
|
3204
3566
|
region: 'Region',
|
|
3205
3567
|
runtime: 'runtime',
|
|
@@ -3210,6 +3572,7 @@ export class DescribeKubernetesVersionMetadataRequest extends $tea.Model {
|
|
|
3210
3572
|
return {
|
|
3211
3573
|
clusterType: 'string',
|
|
3212
3574
|
kubernetesVersion: 'string',
|
|
3575
|
+
mode: 'string',
|
|
3213
3576
|
profile: 'string',
|
|
3214
3577
|
region: 'string',
|
|
3215
3578
|
runtime: 'string',
|
|
@@ -3246,6 +3609,25 @@ export class DescribeKubernetesVersionMetadataResponse extends $tea.Model {
|
|
|
3246
3609
|
}
|
|
3247
3610
|
}
|
|
3248
3611
|
|
|
3612
|
+
export class DescribeNodePoolVulsRequest extends $tea.Model {
|
|
3613
|
+
necessity?: string;
|
|
3614
|
+
static names(): { [key: string]: string } {
|
|
3615
|
+
return {
|
|
3616
|
+
necessity: 'necessity',
|
|
3617
|
+
};
|
|
3618
|
+
}
|
|
3619
|
+
|
|
3620
|
+
static types(): { [key: string]: any } {
|
|
3621
|
+
return {
|
|
3622
|
+
necessity: 'string',
|
|
3623
|
+
};
|
|
3624
|
+
}
|
|
3625
|
+
|
|
3626
|
+
constructor(map?: { [key: string]: any }) {
|
|
3627
|
+
super(map);
|
|
3628
|
+
}
|
|
3629
|
+
}
|
|
3630
|
+
|
|
3249
3631
|
export class DescribeNodePoolVulsResponseBody extends $tea.Model {
|
|
3250
3632
|
vulRecords?: DescribeNodePoolVulsResponseBodyVulRecords[];
|
|
3251
3633
|
vulsFixServicePurchased?: boolean;
|
|
@@ -3530,6 +3912,75 @@ export class DescribePolicyInstancesStatusResponse extends $tea.Model {
|
|
|
3530
3912
|
}
|
|
3531
3913
|
}
|
|
3532
3914
|
|
|
3915
|
+
export class DescribeSubaccountK8sClusterUserConfigRequest extends $tea.Model {
|
|
3916
|
+
privateIpAddress?: boolean;
|
|
3917
|
+
temporaryDurationMinutes?: number;
|
|
3918
|
+
static names(): { [key: string]: string } {
|
|
3919
|
+
return {
|
|
3920
|
+
privateIpAddress: 'PrivateIpAddress',
|
|
3921
|
+
temporaryDurationMinutes: 'TemporaryDurationMinutes',
|
|
3922
|
+
};
|
|
3923
|
+
}
|
|
3924
|
+
|
|
3925
|
+
static types(): { [key: string]: any } {
|
|
3926
|
+
return {
|
|
3927
|
+
privateIpAddress: 'boolean',
|
|
3928
|
+
temporaryDurationMinutes: 'number',
|
|
3929
|
+
};
|
|
3930
|
+
}
|
|
3931
|
+
|
|
3932
|
+
constructor(map?: { [key: string]: any }) {
|
|
3933
|
+
super(map);
|
|
3934
|
+
}
|
|
3935
|
+
}
|
|
3936
|
+
|
|
3937
|
+
export class DescribeSubaccountK8sClusterUserConfigResponseBody extends $tea.Model {
|
|
3938
|
+
config?: string;
|
|
3939
|
+
expiration?: string;
|
|
3940
|
+
static names(): { [key: string]: string } {
|
|
3941
|
+
return {
|
|
3942
|
+
config: 'config',
|
|
3943
|
+
expiration: 'expiration',
|
|
3944
|
+
};
|
|
3945
|
+
}
|
|
3946
|
+
|
|
3947
|
+
static types(): { [key: string]: any } {
|
|
3948
|
+
return {
|
|
3949
|
+
config: 'string',
|
|
3950
|
+
expiration: 'string',
|
|
3951
|
+
};
|
|
3952
|
+
}
|
|
3953
|
+
|
|
3954
|
+
constructor(map?: { [key: string]: any }) {
|
|
3955
|
+
super(map);
|
|
3956
|
+
}
|
|
3957
|
+
}
|
|
3958
|
+
|
|
3959
|
+
export class DescribeSubaccountK8sClusterUserConfigResponse extends $tea.Model {
|
|
3960
|
+
headers: { [key: string]: string };
|
|
3961
|
+
statusCode: number;
|
|
3962
|
+
body: DescribeSubaccountK8sClusterUserConfigResponseBody;
|
|
3963
|
+
static names(): { [key: string]: string } {
|
|
3964
|
+
return {
|
|
3965
|
+
headers: 'headers',
|
|
3966
|
+
statusCode: 'statusCode',
|
|
3967
|
+
body: 'body',
|
|
3968
|
+
};
|
|
3969
|
+
}
|
|
3970
|
+
|
|
3971
|
+
static types(): { [key: string]: any } {
|
|
3972
|
+
return {
|
|
3973
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3974
|
+
statusCode: 'number',
|
|
3975
|
+
body: DescribeSubaccountK8sClusterUserConfigResponseBody,
|
|
3976
|
+
};
|
|
3977
|
+
}
|
|
3978
|
+
|
|
3979
|
+
constructor(map?: { [key: string]: any }) {
|
|
3980
|
+
super(map);
|
|
3981
|
+
}
|
|
3982
|
+
}
|
|
3983
|
+
|
|
3533
3984
|
export class DescribeTaskInfoResponseBody extends $tea.Model {
|
|
3534
3985
|
clusterId?: string;
|
|
3535
3986
|
created?: string;
|
|
@@ -3779,6 +4230,31 @@ export class DescribeTriggerResponse extends $tea.Model {
|
|
|
3779
4230
|
}
|
|
3780
4231
|
}
|
|
3781
4232
|
|
|
4233
|
+
export class DescribeUserClusterNamespacesResponse extends $tea.Model {
|
|
4234
|
+
headers: { [key: string]: string };
|
|
4235
|
+
statusCode: number;
|
|
4236
|
+
body: string[];
|
|
4237
|
+
static names(): { [key: string]: string } {
|
|
4238
|
+
return {
|
|
4239
|
+
headers: 'headers',
|
|
4240
|
+
statusCode: 'statusCode',
|
|
4241
|
+
body: 'body',
|
|
4242
|
+
};
|
|
4243
|
+
}
|
|
4244
|
+
|
|
4245
|
+
static types(): { [key: string]: any } {
|
|
4246
|
+
return {
|
|
4247
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4248
|
+
statusCode: 'number',
|
|
4249
|
+
body: { 'type': 'array', 'itemType': 'string' },
|
|
4250
|
+
};
|
|
4251
|
+
}
|
|
4252
|
+
|
|
4253
|
+
constructor(map?: { [key: string]: any }) {
|
|
4254
|
+
super(map);
|
|
4255
|
+
}
|
|
4256
|
+
}
|
|
4257
|
+
|
|
3782
4258
|
export class DescribeUserPermissionResponse extends $tea.Model {
|
|
3783
4259
|
headers: { [key: string]: string };
|
|
3784
4260
|
statusCode: number;
|
|
@@ -3811,6 +4287,7 @@ export class DescribeUserQuotaResponseBody extends $tea.Model {
|
|
|
3811
4287
|
clusterQuota?: number;
|
|
3812
4288
|
edgeImprovedNodepoolQuota?: DescribeUserQuotaResponseBodyEdgeImprovedNodepoolQuota;
|
|
3813
4289
|
nodeQuota?: number;
|
|
4290
|
+
quotas?: { [key: string]: QuotasValue };
|
|
3814
4291
|
static names(): { [key: string]: string } {
|
|
3815
4292
|
return {
|
|
3816
4293
|
amkClusterQuota: 'amk_cluster_quota',
|
|
@@ -3819,6 +4296,7 @@ export class DescribeUserQuotaResponseBody extends $tea.Model {
|
|
|
3819
4296
|
clusterQuota: 'cluster_quota',
|
|
3820
4297
|
edgeImprovedNodepoolQuota: 'edge_improved_nodepool_quota',
|
|
3821
4298
|
nodeQuota: 'node_quota',
|
|
4299
|
+
quotas: 'quotas',
|
|
3822
4300
|
};
|
|
3823
4301
|
}
|
|
3824
4302
|
|
|
@@ -3830,6 +4308,7 @@ export class DescribeUserQuotaResponseBody extends $tea.Model {
|
|
|
3830
4308
|
clusterQuota: 'number',
|
|
3831
4309
|
edgeImprovedNodepoolQuota: DescribeUserQuotaResponseBodyEdgeImprovedNodepoolQuota,
|
|
3832
4310
|
nodeQuota: 'number',
|
|
4311
|
+
quotas: { 'type': 'map', 'keyType': 'string', 'valueType': QuotasValue },
|
|
3833
4312
|
};
|
|
3834
4313
|
}
|
|
3835
4314
|
|
|
@@ -3982,12 +4461,12 @@ export class EdgeClusterAddEdgeMachineResponse extends $tea.Model {
|
|
|
3982
4461
|
export class FixNodePoolVulsRequest extends $tea.Model {
|
|
3983
4462
|
nodes?: string[];
|
|
3984
4463
|
rolloutPolicy?: FixNodePoolVulsRequestRolloutPolicy;
|
|
3985
|
-
|
|
4464
|
+
vuls?: string[];
|
|
3986
4465
|
static names(): { [key: string]: string } {
|
|
3987
4466
|
return {
|
|
3988
4467
|
nodes: 'nodes',
|
|
3989
4468
|
rolloutPolicy: 'rollout_policy',
|
|
3990
|
-
|
|
4469
|
+
vuls: 'vuls',
|
|
3991
4470
|
};
|
|
3992
4471
|
}
|
|
3993
4472
|
|
|
@@ -3995,7 +4474,7 @@ export class FixNodePoolVulsRequest extends $tea.Model {
|
|
|
3995
4474
|
return {
|
|
3996
4475
|
nodes: { 'type': 'array', 'itemType': 'string' },
|
|
3997
4476
|
rolloutPolicy: FixNodePoolVulsRequestRolloutPolicy,
|
|
3998
|
-
|
|
4477
|
+
vuls: { 'type': 'array', 'itemType': 'string' },
|
|
3999
4478
|
};
|
|
4000
4479
|
}
|
|
4001
4480
|
|
|
@@ -5048,11 +5527,13 @@ export class RemoveClusterNodesResponse extends $tea.Model {
|
|
|
5048
5527
|
|
|
5049
5528
|
export class RemoveNodePoolNodesRequest extends $tea.Model {
|
|
5050
5529
|
drainNode?: boolean;
|
|
5530
|
+
instanceIds?: string[];
|
|
5051
5531
|
nodes?: string[];
|
|
5052
5532
|
releaseNode?: boolean;
|
|
5053
5533
|
static names(): { [key: string]: string } {
|
|
5054
5534
|
return {
|
|
5055
5535
|
drainNode: 'drain_node',
|
|
5536
|
+
instanceIds: 'instance_ids',
|
|
5056
5537
|
nodes: 'nodes',
|
|
5057
5538
|
releaseNode: 'release_node',
|
|
5058
5539
|
};
|
|
@@ -5061,6 +5542,7 @@ export class RemoveNodePoolNodesRequest extends $tea.Model {
|
|
|
5061
5542
|
static types(): { [key: string]: any } {
|
|
5062
5543
|
return {
|
|
5063
5544
|
drainNode: 'boolean',
|
|
5545
|
+
instanceIds: { 'type': 'array', 'itemType': 'string' },
|
|
5064
5546
|
nodes: { 'type': 'array', 'itemType': 'string' },
|
|
5065
5547
|
releaseNode: 'boolean',
|
|
5066
5548
|
};
|
|
@@ -5073,11 +5555,13 @@ export class RemoveNodePoolNodesRequest extends $tea.Model {
|
|
|
5073
5555
|
|
|
5074
5556
|
export class RemoveNodePoolNodesShrinkRequest extends $tea.Model {
|
|
5075
5557
|
drainNode?: boolean;
|
|
5558
|
+
instanceIdsShrink?: string;
|
|
5076
5559
|
nodesShrink?: string;
|
|
5077
5560
|
releaseNode?: boolean;
|
|
5078
5561
|
static names(): { [key: string]: string } {
|
|
5079
5562
|
return {
|
|
5080
5563
|
drainNode: 'drain_node',
|
|
5564
|
+
instanceIdsShrink: 'instance_ids',
|
|
5081
5565
|
nodesShrink: 'nodes',
|
|
5082
5566
|
releaseNode: 'release_node',
|
|
5083
5567
|
};
|
|
@@ -5086,6 +5570,7 @@ export class RemoveNodePoolNodesShrinkRequest extends $tea.Model {
|
|
|
5086
5570
|
static types(): { [key: string]: any } {
|
|
5087
5571
|
return {
|
|
5088
5572
|
drainNode: 'boolean',
|
|
5573
|
+
instanceIdsShrink: 'string',
|
|
5089
5574
|
nodesShrink: 'string',
|
|
5090
5575
|
releaseNode: 'boolean',
|
|
5091
5576
|
};
|
|
@@ -5612,6 +6097,100 @@ export class ScaleOutClusterResponse extends $tea.Model {
|
|
|
5612
6097
|
}
|
|
5613
6098
|
}
|
|
5614
6099
|
|
|
6100
|
+
export class ScanClusterVulsResponseBody extends $tea.Model {
|
|
6101
|
+
requestId?: string;
|
|
6102
|
+
taskId?: string;
|
|
6103
|
+
static names(): { [key: string]: string } {
|
|
6104
|
+
return {
|
|
6105
|
+
requestId: 'request_id',
|
|
6106
|
+
taskId: 'task_id',
|
|
6107
|
+
};
|
|
6108
|
+
}
|
|
6109
|
+
|
|
6110
|
+
static types(): { [key: string]: any } {
|
|
6111
|
+
return {
|
|
6112
|
+
requestId: 'string',
|
|
6113
|
+
taskId: 'string',
|
|
6114
|
+
};
|
|
6115
|
+
}
|
|
6116
|
+
|
|
6117
|
+
constructor(map?: { [key: string]: any }) {
|
|
6118
|
+
super(map);
|
|
6119
|
+
}
|
|
6120
|
+
}
|
|
6121
|
+
|
|
6122
|
+
export class ScanClusterVulsResponse extends $tea.Model {
|
|
6123
|
+
headers: { [key: string]: string };
|
|
6124
|
+
statusCode: number;
|
|
6125
|
+
body: ScanClusterVulsResponseBody;
|
|
6126
|
+
static names(): { [key: string]: string } {
|
|
6127
|
+
return {
|
|
6128
|
+
headers: 'headers',
|
|
6129
|
+
statusCode: 'statusCode',
|
|
6130
|
+
body: 'body',
|
|
6131
|
+
};
|
|
6132
|
+
}
|
|
6133
|
+
|
|
6134
|
+
static types(): { [key: string]: any } {
|
|
6135
|
+
return {
|
|
6136
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6137
|
+
statusCode: 'number',
|
|
6138
|
+
body: ScanClusterVulsResponseBody,
|
|
6139
|
+
};
|
|
6140
|
+
}
|
|
6141
|
+
|
|
6142
|
+
constructor(map?: { [key: string]: any }) {
|
|
6143
|
+
super(map);
|
|
6144
|
+
}
|
|
6145
|
+
}
|
|
6146
|
+
|
|
6147
|
+
export class StartAlertResponseBody extends $tea.Model {
|
|
6148
|
+
msg?: string;
|
|
6149
|
+
status?: boolean;
|
|
6150
|
+
static names(): { [key: string]: string } {
|
|
6151
|
+
return {
|
|
6152
|
+
msg: 'msg',
|
|
6153
|
+
status: 'status',
|
|
6154
|
+
};
|
|
6155
|
+
}
|
|
6156
|
+
|
|
6157
|
+
static types(): { [key: string]: any } {
|
|
6158
|
+
return {
|
|
6159
|
+
msg: 'string',
|
|
6160
|
+
status: 'boolean',
|
|
6161
|
+
};
|
|
6162
|
+
}
|
|
6163
|
+
|
|
6164
|
+
constructor(map?: { [key: string]: any }) {
|
|
6165
|
+
super(map);
|
|
6166
|
+
}
|
|
6167
|
+
}
|
|
6168
|
+
|
|
6169
|
+
export class StartAlertResponse extends $tea.Model {
|
|
6170
|
+
headers: { [key: string]: string };
|
|
6171
|
+
statusCode: number;
|
|
6172
|
+
body: StartAlertResponseBody;
|
|
6173
|
+
static names(): { [key: string]: string } {
|
|
6174
|
+
return {
|
|
6175
|
+
headers: 'headers',
|
|
6176
|
+
statusCode: 'statusCode',
|
|
6177
|
+
body: 'body',
|
|
6178
|
+
};
|
|
6179
|
+
}
|
|
6180
|
+
|
|
6181
|
+
static types(): { [key: string]: any } {
|
|
6182
|
+
return {
|
|
6183
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6184
|
+
statusCode: 'number',
|
|
6185
|
+
body: StartAlertResponseBody,
|
|
6186
|
+
};
|
|
6187
|
+
}
|
|
6188
|
+
|
|
6189
|
+
constructor(map?: { [key: string]: any }) {
|
|
6190
|
+
super(map);
|
|
6191
|
+
}
|
|
6192
|
+
}
|
|
6193
|
+
|
|
5615
6194
|
export class StartWorkflowRequest extends $tea.Model {
|
|
5616
6195
|
mappingBamOutFilename?: string;
|
|
5617
6196
|
mappingBamOutPath?: string;
|
|
@@ -5729,11 +6308,102 @@ export class StartWorkflowResponse extends $tea.Model {
|
|
|
5729
6308
|
}
|
|
5730
6309
|
}
|
|
5731
6310
|
|
|
5732
|
-
export class
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
6311
|
+
export class StopAlertResponseBody extends $tea.Model {
|
|
6312
|
+
msg?: string;
|
|
6313
|
+
status?: boolean;
|
|
6314
|
+
static names(): { [key: string]: string } {
|
|
6315
|
+
return {
|
|
6316
|
+
msg: 'msg',
|
|
6317
|
+
status: 'status',
|
|
6318
|
+
};
|
|
6319
|
+
}
|
|
6320
|
+
|
|
6321
|
+
static types(): { [key: string]: any } {
|
|
6322
|
+
return {
|
|
6323
|
+
msg: 'string',
|
|
6324
|
+
status: 'boolean',
|
|
6325
|
+
};
|
|
6326
|
+
}
|
|
6327
|
+
|
|
6328
|
+
constructor(map?: { [key: string]: any }) {
|
|
6329
|
+
super(map);
|
|
6330
|
+
}
|
|
6331
|
+
}
|
|
6332
|
+
|
|
6333
|
+
export class StopAlertResponse extends $tea.Model {
|
|
6334
|
+
headers: { [key: string]: string };
|
|
6335
|
+
statusCode: number;
|
|
6336
|
+
body: StopAlertResponseBody;
|
|
6337
|
+
static names(): { [key: string]: string } {
|
|
6338
|
+
return {
|
|
6339
|
+
headers: 'headers',
|
|
6340
|
+
statusCode: 'statusCode',
|
|
6341
|
+
body: 'body',
|
|
6342
|
+
};
|
|
6343
|
+
}
|
|
6344
|
+
|
|
6345
|
+
static types(): { [key: string]: any } {
|
|
6346
|
+
return {
|
|
6347
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6348
|
+
statusCode: 'number',
|
|
6349
|
+
body: StopAlertResponseBody,
|
|
6350
|
+
};
|
|
6351
|
+
}
|
|
6352
|
+
|
|
6353
|
+
constructor(map?: { [key: string]: any }) {
|
|
6354
|
+
super(map);
|
|
6355
|
+
}
|
|
6356
|
+
}
|
|
6357
|
+
|
|
6358
|
+
export class SyncClusterNodePoolResponseBody extends $tea.Model {
|
|
6359
|
+
requestId?: string;
|
|
6360
|
+
static names(): { [key: string]: string } {
|
|
6361
|
+
return {
|
|
6362
|
+
requestId: 'RequestId',
|
|
6363
|
+
};
|
|
6364
|
+
}
|
|
6365
|
+
|
|
6366
|
+
static types(): { [key: string]: any } {
|
|
6367
|
+
return {
|
|
6368
|
+
requestId: 'string',
|
|
6369
|
+
};
|
|
6370
|
+
}
|
|
6371
|
+
|
|
6372
|
+
constructor(map?: { [key: string]: any }) {
|
|
6373
|
+
super(map);
|
|
6374
|
+
}
|
|
6375
|
+
}
|
|
6376
|
+
|
|
6377
|
+
export class SyncClusterNodePoolResponse extends $tea.Model {
|
|
6378
|
+
headers: { [key: string]: string };
|
|
6379
|
+
statusCode: number;
|
|
6380
|
+
body: SyncClusterNodePoolResponseBody;
|
|
6381
|
+
static names(): { [key: string]: string } {
|
|
6382
|
+
return {
|
|
6383
|
+
headers: 'headers',
|
|
6384
|
+
statusCode: 'statusCode',
|
|
6385
|
+
body: 'body',
|
|
6386
|
+
};
|
|
6387
|
+
}
|
|
6388
|
+
|
|
6389
|
+
static types(): { [key: string]: any } {
|
|
6390
|
+
return {
|
|
6391
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6392
|
+
statusCode: 'number',
|
|
6393
|
+
body: SyncClusterNodePoolResponseBody,
|
|
6394
|
+
};
|
|
6395
|
+
}
|
|
6396
|
+
|
|
6397
|
+
constructor(map?: { [key: string]: any }) {
|
|
6398
|
+
super(map);
|
|
6399
|
+
}
|
|
6400
|
+
}
|
|
6401
|
+
|
|
6402
|
+
export class TagResourcesRequest extends $tea.Model {
|
|
6403
|
+
regionId?: string;
|
|
6404
|
+
resourceIds?: string[];
|
|
6405
|
+
resourceType?: string;
|
|
6406
|
+
tags?: Tag[];
|
|
5737
6407
|
static names(): { [key: string]: string } {
|
|
5738
6408
|
return {
|
|
5739
6409
|
regionId: 'region_id',
|
|
@@ -5873,6 +6543,37 @@ export class UntagResourcesRequest extends $tea.Model {
|
|
|
5873
6543
|
}
|
|
5874
6544
|
}
|
|
5875
6545
|
|
|
6546
|
+
export class UntagResourcesShrinkRequest extends $tea.Model {
|
|
6547
|
+
all?: boolean;
|
|
6548
|
+
regionId?: string;
|
|
6549
|
+
resourceIdsShrink?: string;
|
|
6550
|
+
resourceType?: string;
|
|
6551
|
+
tagKeysShrink?: string;
|
|
6552
|
+
static names(): { [key: string]: string } {
|
|
6553
|
+
return {
|
|
6554
|
+
all: 'all',
|
|
6555
|
+
regionId: 'region_id',
|
|
6556
|
+
resourceIdsShrink: 'resource_ids',
|
|
6557
|
+
resourceType: 'resource_type',
|
|
6558
|
+
tagKeysShrink: 'tag_keys',
|
|
6559
|
+
};
|
|
6560
|
+
}
|
|
6561
|
+
|
|
6562
|
+
static types(): { [key: string]: any } {
|
|
6563
|
+
return {
|
|
6564
|
+
all: 'boolean',
|
|
6565
|
+
regionId: 'string',
|
|
6566
|
+
resourceIdsShrink: 'string',
|
|
6567
|
+
resourceType: 'string',
|
|
6568
|
+
tagKeysShrink: 'string',
|
|
6569
|
+
};
|
|
6570
|
+
}
|
|
6571
|
+
|
|
6572
|
+
constructor(map?: { [key: string]: any }) {
|
|
6573
|
+
super(map);
|
|
6574
|
+
}
|
|
6575
|
+
}
|
|
6576
|
+
|
|
5876
6577
|
export class UntagResourcesResponseBody extends $tea.Model {
|
|
5877
6578
|
requestId?: string;
|
|
5878
6579
|
static names(): { [key: string]: string } {
|
|
@@ -5939,6 +6640,56 @@ export class UpdateContactGroupForAlertResponse extends $tea.Model {
|
|
|
5939
6640
|
}
|
|
5940
6641
|
}
|
|
5941
6642
|
|
|
6643
|
+
export class UpdateControlPlaneLogRequest extends $tea.Model {
|
|
6644
|
+
aliuid?: string;
|
|
6645
|
+
components?: string[];
|
|
6646
|
+
logProject?: string;
|
|
6647
|
+
logTtl?: string;
|
|
6648
|
+
static names(): { [key: string]: string } {
|
|
6649
|
+
return {
|
|
6650
|
+
aliuid: 'aliuid',
|
|
6651
|
+
components: 'components',
|
|
6652
|
+
logProject: 'log_project',
|
|
6653
|
+
logTtl: 'log_ttl',
|
|
6654
|
+
};
|
|
6655
|
+
}
|
|
6656
|
+
|
|
6657
|
+
static types(): { [key: string]: any } {
|
|
6658
|
+
return {
|
|
6659
|
+
aliuid: 'string',
|
|
6660
|
+
components: { 'type': 'array', 'itemType': 'string' },
|
|
6661
|
+
logProject: 'string',
|
|
6662
|
+
logTtl: 'string',
|
|
6663
|
+
};
|
|
6664
|
+
}
|
|
6665
|
+
|
|
6666
|
+
constructor(map?: { [key: string]: any }) {
|
|
6667
|
+
super(map);
|
|
6668
|
+
}
|
|
6669
|
+
}
|
|
6670
|
+
|
|
6671
|
+
export class UpdateControlPlaneLogResponse extends $tea.Model {
|
|
6672
|
+
headers: { [key: string]: string };
|
|
6673
|
+
statusCode: number;
|
|
6674
|
+
static names(): { [key: string]: string } {
|
|
6675
|
+
return {
|
|
6676
|
+
headers: 'headers',
|
|
6677
|
+
statusCode: 'statusCode',
|
|
6678
|
+
};
|
|
6679
|
+
}
|
|
6680
|
+
|
|
6681
|
+
static types(): { [key: string]: any } {
|
|
6682
|
+
return {
|
|
6683
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6684
|
+
statusCode: 'number',
|
|
6685
|
+
};
|
|
6686
|
+
}
|
|
6687
|
+
|
|
6688
|
+
constructor(map?: { [key: string]: any }) {
|
|
6689
|
+
super(map);
|
|
6690
|
+
}
|
|
6691
|
+
}
|
|
6692
|
+
|
|
5942
6693
|
export class UpdateK8sClusterUserConfigExpireRequest extends $tea.Model {
|
|
5943
6694
|
expireHour?: number;
|
|
5944
6695
|
user?: string;
|
|
@@ -6038,21 +6789,323 @@ export class UpdateTemplateResponse extends $tea.Model {
|
|
|
6038
6789
|
|
|
6039
6790
|
export class UpgradeClusterRequest extends $tea.Model {
|
|
6040
6791
|
componentName?: string;
|
|
6792
|
+
masterOnly?: boolean;
|
|
6041
6793
|
nextVersion?: string;
|
|
6042
6794
|
version?: string;
|
|
6043
6795
|
static names(): { [key: string]: string } {
|
|
6044
6796
|
return {
|
|
6045
|
-
componentName: 'component_name',
|
|
6046
|
-
|
|
6047
|
-
|
|
6797
|
+
componentName: 'component_name',
|
|
6798
|
+
masterOnly: 'master_only',
|
|
6799
|
+
nextVersion: 'next_version',
|
|
6800
|
+
version: 'version',
|
|
6801
|
+
};
|
|
6802
|
+
}
|
|
6803
|
+
|
|
6804
|
+
static types(): { [key: string]: any } {
|
|
6805
|
+
return {
|
|
6806
|
+
componentName: 'string',
|
|
6807
|
+
masterOnly: 'boolean',
|
|
6808
|
+
nextVersion: 'string',
|
|
6809
|
+
version: 'string',
|
|
6810
|
+
};
|
|
6811
|
+
}
|
|
6812
|
+
|
|
6813
|
+
constructor(map?: { [key: string]: any }) {
|
|
6814
|
+
super(map);
|
|
6815
|
+
}
|
|
6816
|
+
}
|
|
6817
|
+
|
|
6818
|
+
export class UpgradeClusterResponse extends $tea.Model {
|
|
6819
|
+
headers: { [key: string]: string };
|
|
6820
|
+
statusCode: number;
|
|
6821
|
+
static names(): { [key: string]: string } {
|
|
6822
|
+
return {
|
|
6823
|
+
headers: 'headers',
|
|
6824
|
+
statusCode: 'statusCode',
|
|
6825
|
+
};
|
|
6826
|
+
}
|
|
6827
|
+
|
|
6828
|
+
static types(): { [key: string]: any } {
|
|
6829
|
+
return {
|
|
6830
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6831
|
+
statusCode: 'number',
|
|
6832
|
+
};
|
|
6833
|
+
}
|
|
6834
|
+
|
|
6835
|
+
constructor(map?: { [key: string]: any }) {
|
|
6836
|
+
super(map);
|
|
6837
|
+
}
|
|
6838
|
+
}
|
|
6839
|
+
|
|
6840
|
+
export class UpgradeClusterAddonsRequest extends $tea.Model {
|
|
6841
|
+
body?: UpgradeClusterAddonsRequestBody[];
|
|
6842
|
+
static names(): { [key: string]: string } {
|
|
6843
|
+
return {
|
|
6844
|
+
body: 'body',
|
|
6845
|
+
};
|
|
6846
|
+
}
|
|
6847
|
+
|
|
6848
|
+
static types(): { [key: string]: any } {
|
|
6849
|
+
return {
|
|
6850
|
+
body: { 'type': 'array', 'itemType': UpgradeClusterAddonsRequestBody },
|
|
6851
|
+
};
|
|
6852
|
+
}
|
|
6853
|
+
|
|
6854
|
+
constructor(map?: { [key: string]: any }) {
|
|
6855
|
+
super(map);
|
|
6856
|
+
}
|
|
6857
|
+
}
|
|
6858
|
+
|
|
6859
|
+
export class UpgradeClusterAddonsResponse extends $tea.Model {
|
|
6860
|
+
headers: { [key: string]: string };
|
|
6861
|
+
statusCode: number;
|
|
6862
|
+
static names(): { [key: string]: string } {
|
|
6863
|
+
return {
|
|
6864
|
+
headers: 'headers',
|
|
6865
|
+
statusCode: 'statusCode',
|
|
6866
|
+
};
|
|
6867
|
+
}
|
|
6868
|
+
|
|
6869
|
+
static types(): { [key: string]: any } {
|
|
6870
|
+
return {
|
|
6871
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6872
|
+
statusCode: 'number',
|
|
6873
|
+
};
|
|
6874
|
+
}
|
|
6875
|
+
|
|
6876
|
+
constructor(map?: { [key: string]: any }) {
|
|
6877
|
+
super(map);
|
|
6878
|
+
}
|
|
6879
|
+
}
|
|
6880
|
+
|
|
6881
|
+
export class UpgradeClusterNodepoolRequest extends $tea.Model {
|
|
6882
|
+
imageId?: string;
|
|
6883
|
+
kubernetesVersion?: string;
|
|
6884
|
+
runtimeType?: string;
|
|
6885
|
+
runtimeVersion?: string;
|
|
6886
|
+
static names(): { [key: string]: string } {
|
|
6887
|
+
return {
|
|
6888
|
+
imageId: 'image_id',
|
|
6889
|
+
kubernetesVersion: 'kubernetes_version',
|
|
6890
|
+
runtimeType: 'runtime_type',
|
|
6891
|
+
runtimeVersion: 'runtime_version',
|
|
6892
|
+
};
|
|
6893
|
+
}
|
|
6894
|
+
|
|
6895
|
+
static types(): { [key: string]: any } {
|
|
6896
|
+
return {
|
|
6897
|
+
imageId: 'string',
|
|
6898
|
+
kubernetesVersion: 'string',
|
|
6899
|
+
runtimeType: 'string',
|
|
6900
|
+
runtimeVersion: 'string',
|
|
6901
|
+
};
|
|
6902
|
+
}
|
|
6903
|
+
|
|
6904
|
+
constructor(map?: { [key: string]: any }) {
|
|
6905
|
+
super(map);
|
|
6906
|
+
}
|
|
6907
|
+
}
|
|
6908
|
+
|
|
6909
|
+
export class UpgradeClusterNodepoolResponseBody extends $tea.Model {
|
|
6910
|
+
requestId?: string;
|
|
6911
|
+
taskId?: string;
|
|
6912
|
+
static names(): { [key: string]: string } {
|
|
6913
|
+
return {
|
|
6914
|
+
requestId: 'RequestId',
|
|
6915
|
+
taskId: 'task_id',
|
|
6916
|
+
};
|
|
6917
|
+
}
|
|
6918
|
+
|
|
6919
|
+
static types(): { [key: string]: any } {
|
|
6920
|
+
return {
|
|
6921
|
+
requestId: 'string',
|
|
6922
|
+
taskId: 'string',
|
|
6923
|
+
};
|
|
6924
|
+
}
|
|
6925
|
+
|
|
6926
|
+
constructor(map?: { [key: string]: any }) {
|
|
6927
|
+
super(map);
|
|
6928
|
+
}
|
|
6929
|
+
}
|
|
6930
|
+
|
|
6931
|
+
export class UpgradeClusterNodepoolResponse extends $tea.Model {
|
|
6932
|
+
headers: { [key: string]: string };
|
|
6933
|
+
statusCode: number;
|
|
6934
|
+
body: UpgradeClusterNodepoolResponseBody;
|
|
6935
|
+
static names(): { [key: string]: string } {
|
|
6936
|
+
return {
|
|
6937
|
+
headers: 'headers',
|
|
6938
|
+
statusCode: 'statusCode',
|
|
6939
|
+
body: 'body',
|
|
6940
|
+
};
|
|
6941
|
+
}
|
|
6942
|
+
|
|
6943
|
+
static types(): { [key: string]: any } {
|
|
6944
|
+
return {
|
|
6945
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6946
|
+
statusCode: 'number',
|
|
6947
|
+
body: UpgradeClusterNodepoolResponseBody,
|
|
6948
|
+
};
|
|
6949
|
+
}
|
|
6950
|
+
|
|
6951
|
+
constructor(map?: { [key: string]: any }) {
|
|
6952
|
+
super(map);
|
|
6953
|
+
}
|
|
6954
|
+
}
|
|
6955
|
+
|
|
6956
|
+
export class NodepoolAutoScaling extends $tea.Model {
|
|
6957
|
+
eipBandwidth?: number;
|
|
6958
|
+
eipInternetChargeType?: string;
|
|
6959
|
+
enable?: boolean;
|
|
6960
|
+
isBondEip?: boolean;
|
|
6961
|
+
maxInstances?: number;
|
|
6962
|
+
minInstances?: number;
|
|
6963
|
+
type?: string;
|
|
6964
|
+
static names(): { [key: string]: string } {
|
|
6965
|
+
return {
|
|
6966
|
+
eipBandwidth: 'eip_bandwidth',
|
|
6967
|
+
eipInternetChargeType: 'eip_internet_charge_type',
|
|
6968
|
+
enable: 'enable',
|
|
6969
|
+
isBondEip: 'is_bond_eip',
|
|
6970
|
+
maxInstances: 'max_instances',
|
|
6971
|
+
minInstances: 'min_instances',
|
|
6972
|
+
type: 'type',
|
|
6973
|
+
};
|
|
6974
|
+
}
|
|
6975
|
+
|
|
6976
|
+
static types(): { [key: string]: any } {
|
|
6977
|
+
return {
|
|
6978
|
+
eipBandwidth: 'number',
|
|
6979
|
+
eipInternetChargeType: 'string',
|
|
6980
|
+
enable: 'boolean',
|
|
6981
|
+
isBondEip: 'boolean',
|
|
6982
|
+
maxInstances: 'number',
|
|
6983
|
+
minInstances: 'number',
|
|
6984
|
+
type: 'string',
|
|
6985
|
+
};
|
|
6986
|
+
}
|
|
6987
|
+
|
|
6988
|
+
constructor(map?: { [key: string]: any }) {
|
|
6989
|
+
super(map);
|
|
6990
|
+
}
|
|
6991
|
+
}
|
|
6992
|
+
|
|
6993
|
+
export class NodepoolInterconnectConfig extends $tea.Model {
|
|
6994
|
+
bandwidth?: number;
|
|
6995
|
+
ccnId?: string;
|
|
6996
|
+
ccnRegionId?: string;
|
|
6997
|
+
cenId?: string;
|
|
6998
|
+
improvedPeriod?: string;
|
|
6999
|
+
static names(): { [key: string]: string } {
|
|
7000
|
+
return {
|
|
7001
|
+
bandwidth: 'bandwidth',
|
|
7002
|
+
ccnId: 'ccn_id',
|
|
7003
|
+
ccnRegionId: 'ccn_region_id',
|
|
7004
|
+
cenId: 'cen_id',
|
|
7005
|
+
improvedPeriod: 'improved_period',
|
|
7006
|
+
};
|
|
7007
|
+
}
|
|
7008
|
+
|
|
7009
|
+
static types(): { [key: string]: any } {
|
|
7010
|
+
return {
|
|
7011
|
+
bandwidth: 'number',
|
|
7012
|
+
ccnId: 'string',
|
|
7013
|
+
ccnRegionId: 'string',
|
|
7014
|
+
cenId: 'string',
|
|
7015
|
+
improvedPeriod: 'string',
|
|
7016
|
+
};
|
|
7017
|
+
}
|
|
7018
|
+
|
|
7019
|
+
constructor(map?: { [key: string]: any }) {
|
|
7020
|
+
super(map);
|
|
7021
|
+
}
|
|
7022
|
+
}
|
|
7023
|
+
|
|
7024
|
+
export class NodepoolKubernetesConfig extends $tea.Model {
|
|
7025
|
+
cmsEnabled?: boolean;
|
|
7026
|
+
cpuPolicy?: string;
|
|
7027
|
+
labels?: Tag[];
|
|
7028
|
+
nodeNameMode?: string;
|
|
7029
|
+
runtime?: string;
|
|
7030
|
+
runtimeVersion?: string;
|
|
7031
|
+
taints?: Taint[];
|
|
7032
|
+
userData?: string;
|
|
7033
|
+
static names(): { [key: string]: string } {
|
|
7034
|
+
return {
|
|
7035
|
+
cmsEnabled: 'cms_enabled',
|
|
7036
|
+
cpuPolicy: 'cpu_policy',
|
|
7037
|
+
labels: 'labels',
|
|
7038
|
+
nodeNameMode: 'node_name_mode',
|
|
7039
|
+
runtime: 'runtime',
|
|
7040
|
+
runtimeVersion: 'runtime_version',
|
|
7041
|
+
taints: 'taints',
|
|
7042
|
+
userData: 'user_data',
|
|
7043
|
+
};
|
|
7044
|
+
}
|
|
7045
|
+
|
|
7046
|
+
static types(): { [key: string]: any } {
|
|
7047
|
+
return {
|
|
7048
|
+
cmsEnabled: 'boolean',
|
|
7049
|
+
cpuPolicy: 'string',
|
|
7050
|
+
labels: { 'type': 'array', 'itemType': Tag },
|
|
7051
|
+
nodeNameMode: 'string',
|
|
7052
|
+
runtime: 'string',
|
|
7053
|
+
runtimeVersion: 'string',
|
|
7054
|
+
taints: { 'type': 'array', 'itemType': Taint },
|
|
7055
|
+
userData: 'string',
|
|
7056
|
+
};
|
|
7057
|
+
}
|
|
7058
|
+
|
|
7059
|
+
constructor(map?: { [key: string]: any }) {
|
|
7060
|
+
super(map);
|
|
7061
|
+
}
|
|
7062
|
+
}
|
|
7063
|
+
|
|
7064
|
+
export class NodepoolManagementUpgradeConfig extends $tea.Model {
|
|
7065
|
+
autoUpgrade?: boolean;
|
|
7066
|
+
maxUnavailable?: number;
|
|
7067
|
+
surge?: number;
|
|
7068
|
+
surgePercentage?: number;
|
|
7069
|
+
static names(): { [key: string]: string } {
|
|
7070
|
+
return {
|
|
7071
|
+
autoUpgrade: 'auto_upgrade',
|
|
7072
|
+
maxUnavailable: 'max_unavailable',
|
|
7073
|
+
surge: 'surge',
|
|
7074
|
+
surgePercentage: 'surge_percentage',
|
|
7075
|
+
};
|
|
7076
|
+
}
|
|
7077
|
+
|
|
7078
|
+
static types(): { [key: string]: any } {
|
|
7079
|
+
return {
|
|
7080
|
+
autoUpgrade: 'boolean',
|
|
7081
|
+
maxUnavailable: 'number',
|
|
7082
|
+
surge: 'number',
|
|
7083
|
+
surgePercentage: 'number',
|
|
7084
|
+
};
|
|
7085
|
+
}
|
|
7086
|
+
|
|
7087
|
+
constructor(map?: { [key: string]: any }) {
|
|
7088
|
+
super(map);
|
|
7089
|
+
}
|
|
7090
|
+
}
|
|
7091
|
+
|
|
7092
|
+
export class NodepoolManagement extends $tea.Model {
|
|
7093
|
+
autoRepair?: boolean;
|
|
7094
|
+
enable?: boolean;
|
|
7095
|
+
upgradeConfig?: NodepoolManagementUpgradeConfig;
|
|
7096
|
+
static names(): { [key: string]: string } {
|
|
7097
|
+
return {
|
|
7098
|
+
autoRepair: 'auto_repair',
|
|
7099
|
+
enable: 'enable',
|
|
7100
|
+
upgradeConfig: 'upgrade_config',
|
|
6048
7101
|
};
|
|
6049
7102
|
}
|
|
6050
7103
|
|
|
6051
7104
|
static types(): { [key: string]: any } {
|
|
6052
7105
|
return {
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
7106
|
+
autoRepair: 'boolean',
|
|
7107
|
+
enable: 'boolean',
|
|
7108
|
+
upgradeConfig: NodepoolManagementUpgradeConfig,
|
|
6056
7109
|
};
|
|
6057
7110
|
}
|
|
6058
7111
|
|
|
@@ -6061,20 +7114,23 @@ export class UpgradeClusterRequest extends $tea.Model {
|
|
|
6061
7114
|
}
|
|
6062
7115
|
}
|
|
6063
7116
|
|
|
6064
|
-
export class
|
|
6065
|
-
|
|
6066
|
-
|
|
7117
|
+
export class NodepoolNodepoolInfo extends $tea.Model {
|
|
7118
|
+
name?: string;
|
|
7119
|
+
resourceGroupId?: string;
|
|
7120
|
+
type?: string;
|
|
6067
7121
|
static names(): { [key: string]: string } {
|
|
6068
7122
|
return {
|
|
6069
|
-
|
|
6070
|
-
|
|
7123
|
+
name: 'name',
|
|
7124
|
+
resourceGroupId: 'resource_group_id',
|
|
7125
|
+
type: 'type',
|
|
6071
7126
|
};
|
|
6072
7127
|
}
|
|
6073
7128
|
|
|
6074
7129
|
static types(): { [key: string]: any } {
|
|
6075
7130
|
return {
|
|
6076
|
-
|
|
6077
|
-
|
|
7131
|
+
name: 'string',
|
|
7132
|
+
resourceGroupId: 'string',
|
|
7133
|
+
type: 'string',
|
|
6078
7134
|
};
|
|
6079
7135
|
}
|
|
6080
7136
|
|
|
@@ -6083,17 +7139,20 @@ export class UpgradeClusterResponse extends $tea.Model {
|
|
|
6083
7139
|
}
|
|
6084
7140
|
}
|
|
6085
7141
|
|
|
6086
|
-
export class
|
|
6087
|
-
|
|
7142
|
+
export class NodepoolScalingGroupPrivatePoolOptions extends $tea.Model {
|
|
7143
|
+
id?: string;
|
|
7144
|
+
matchCriteria?: string;
|
|
6088
7145
|
static names(): { [key: string]: string } {
|
|
6089
7146
|
return {
|
|
6090
|
-
|
|
7147
|
+
id: 'id',
|
|
7148
|
+
matchCriteria: 'match_criteria',
|
|
6091
7149
|
};
|
|
6092
7150
|
}
|
|
6093
7151
|
|
|
6094
7152
|
static types(): { [key: string]: any } {
|
|
6095
7153
|
return {
|
|
6096
|
-
|
|
7154
|
+
id: 'string',
|
|
7155
|
+
matchCriteria: 'string',
|
|
6097
7156
|
};
|
|
6098
7157
|
}
|
|
6099
7158
|
|
|
@@ -6102,20 +7161,20 @@ export class UpgradeClusterAddonsRequest extends $tea.Model {
|
|
|
6102
7161
|
}
|
|
6103
7162
|
}
|
|
6104
7163
|
|
|
6105
|
-
export class
|
|
6106
|
-
|
|
6107
|
-
|
|
7164
|
+
export class NodepoolScalingGroupSpotPriceLimit extends $tea.Model {
|
|
7165
|
+
instanceType?: string;
|
|
7166
|
+
priceLimit?: string;
|
|
6108
7167
|
static names(): { [key: string]: string } {
|
|
6109
7168
|
return {
|
|
6110
|
-
|
|
6111
|
-
|
|
7169
|
+
instanceType: 'instance_type',
|
|
7170
|
+
priceLimit: 'price_limit',
|
|
6112
7171
|
};
|
|
6113
7172
|
}
|
|
6114
7173
|
|
|
6115
7174
|
static types(): { [key: string]: any } {
|
|
6116
7175
|
return {
|
|
6117
|
-
|
|
6118
|
-
|
|
7176
|
+
instanceType: 'string',
|
|
7177
|
+
priceLimit: 'string',
|
|
6119
7178
|
};
|
|
6120
7179
|
}
|
|
6121
7180
|
|
|
@@ -6124,23 +7183,20 @@ export class UpgradeClusterAddonsResponse extends $tea.Model {
|
|
|
6124
7183
|
}
|
|
6125
7184
|
}
|
|
6126
7185
|
|
|
6127
|
-
export class
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
runtimeVersion?: string;
|
|
7186
|
+
export class NodepoolScalingGroupTags extends $tea.Model {
|
|
7187
|
+
key?: string;
|
|
7188
|
+
value?: string;
|
|
6131
7189
|
static names(): { [key: string]: string } {
|
|
6132
7190
|
return {
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
runtimeVersion: 'runtime_version',
|
|
7191
|
+
key: 'key',
|
|
7192
|
+
value: 'value',
|
|
6136
7193
|
};
|
|
6137
7194
|
}
|
|
6138
7195
|
|
|
6139
7196
|
static types(): { [key: string]: any } {
|
|
6140
7197
|
return {
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
runtimeVersion: 'string',
|
|
7198
|
+
key: 'string',
|
|
7199
|
+
value: 'string',
|
|
6144
7200
|
};
|
|
6145
7201
|
}
|
|
6146
7202
|
|
|
@@ -6149,17 +7205,122 @@ export class UpgradeClusterNodepoolRequest extends $tea.Model {
|
|
|
6149
7205
|
}
|
|
6150
7206
|
}
|
|
6151
7207
|
|
|
6152
|
-
export class
|
|
6153
|
-
|
|
7208
|
+
export class NodepoolScalingGroup extends $tea.Model {
|
|
7209
|
+
autoRenew?: boolean;
|
|
7210
|
+
autoRenewPeriod?: number;
|
|
7211
|
+
compensateWithOnDemand?: boolean;
|
|
7212
|
+
dataDisks?: DataDisk[];
|
|
7213
|
+
deploymentsetId?: string;
|
|
7214
|
+
desiredSize?: number;
|
|
7215
|
+
imageId?: string;
|
|
7216
|
+
imageType?: string;
|
|
7217
|
+
instanceChargeType?: string;
|
|
7218
|
+
instanceTypes?: string[];
|
|
7219
|
+
internetChargeType?: string;
|
|
7220
|
+
internetMaxBandwidthOut?: number;
|
|
7221
|
+
keyPair?: string;
|
|
7222
|
+
loginPassword?: string;
|
|
7223
|
+
multiAzPolicy?: string;
|
|
7224
|
+
onDemandBaseCapacity?: number;
|
|
7225
|
+
onDemandPercentageAboveBaseCapacity?: number;
|
|
7226
|
+
period?: number;
|
|
7227
|
+
periodUnit?: string;
|
|
7228
|
+
platform?: string;
|
|
7229
|
+
privatePoolOptions?: NodepoolScalingGroupPrivatePoolOptions;
|
|
7230
|
+
rdsInstances?: string[];
|
|
7231
|
+
scalingPolicy?: string;
|
|
7232
|
+
securityGroupId?: string;
|
|
7233
|
+
securityGroupIds?: string[];
|
|
7234
|
+
spotInstancePools?: number;
|
|
7235
|
+
spotInstanceRemedy?: boolean;
|
|
7236
|
+
spotPriceLimit?: NodepoolScalingGroupSpotPriceLimit[];
|
|
7237
|
+
spotStrategy?: string;
|
|
7238
|
+
systemDiskBurstingEnabled?: boolean;
|
|
7239
|
+
systemDiskCategory?: string;
|
|
7240
|
+
systemDiskPerformanceLevel?: string;
|
|
7241
|
+
systemDiskProvisionedIops?: number;
|
|
7242
|
+
systemDiskSize?: number;
|
|
7243
|
+
tags?: NodepoolScalingGroupTags[];
|
|
7244
|
+
vswitchIds?: string[];
|
|
6154
7245
|
static names(): { [key: string]: string } {
|
|
6155
7246
|
return {
|
|
6156
|
-
|
|
7247
|
+
autoRenew: 'auto_renew',
|
|
7248
|
+
autoRenewPeriod: 'auto_renew_period',
|
|
7249
|
+
compensateWithOnDemand: 'compensate_with_on_demand',
|
|
7250
|
+
dataDisks: 'data_disks',
|
|
7251
|
+
deploymentsetId: 'deploymentset_id',
|
|
7252
|
+
desiredSize: 'desired_size',
|
|
7253
|
+
imageId: 'image_id',
|
|
7254
|
+
imageType: 'image_type',
|
|
7255
|
+
instanceChargeType: 'instance_charge_type',
|
|
7256
|
+
instanceTypes: 'instance_types',
|
|
7257
|
+
internetChargeType: 'internet_charge_type',
|
|
7258
|
+
internetMaxBandwidthOut: 'internet_max_bandwidth_out',
|
|
7259
|
+
keyPair: 'key_pair',
|
|
7260
|
+
loginPassword: 'login_password',
|
|
7261
|
+
multiAzPolicy: 'multi_az_policy',
|
|
7262
|
+
onDemandBaseCapacity: 'on_demand_base_capacity',
|
|
7263
|
+
onDemandPercentageAboveBaseCapacity: 'on_demand_percentage_above_base_capacity',
|
|
7264
|
+
period: 'period',
|
|
7265
|
+
periodUnit: 'period_unit',
|
|
7266
|
+
platform: 'platform',
|
|
7267
|
+
privatePoolOptions: 'private_pool_options',
|
|
7268
|
+
rdsInstances: 'rds_instances',
|
|
7269
|
+
scalingPolicy: 'scaling_policy',
|
|
7270
|
+
securityGroupId: 'security_group_id',
|
|
7271
|
+
securityGroupIds: 'security_group_ids',
|
|
7272
|
+
spotInstancePools: 'spot_instance_pools',
|
|
7273
|
+
spotInstanceRemedy: 'spot_instance_remedy',
|
|
7274
|
+
spotPriceLimit: 'spot_price_limit',
|
|
7275
|
+
spotStrategy: 'spot_strategy',
|
|
7276
|
+
systemDiskBurstingEnabled: 'system_disk_bursting_enabled',
|
|
7277
|
+
systemDiskCategory: 'system_disk_category',
|
|
7278
|
+
systemDiskPerformanceLevel: 'system_disk_performance_level',
|
|
7279
|
+
systemDiskProvisionedIops: 'system_disk_provisioned_iops',
|
|
7280
|
+
systemDiskSize: 'system_disk_size',
|
|
7281
|
+
tags: 'tags',
|
|
7282
|
+
vswitchIds: 'vswitch_ids',
|
|
6157
7283
|
};
|
|
6158
7284
|
}
|
|
6159
7285
|
|
|
6160
7286
|
static types(): { [key: string]: any } {
|
|
6161
7287
|
return {
|
|
6162
|
-
|
|
7288
|
+
autoRenew: 'boolean',
|
|
7289
|
+
autoRenewPeriod: 'number',
|
|
7290
|
+
compensateWithOnDemand: 'boolean',
|
|
7291
|
+
dataDisks: { 'type': 'array', 'itemType': DataDisk },
|
|
7292
|
+
deploymentsetId: 'string',
|
|
7293
|
+
desiredSize: 'number',
|
|
7294
|
+
imageId: 'string',
|
|
7295
|
+
imageType: 'string',
|
|
7296
|
+
instanceChargeType: 'string',
|
|
7297
|
+
instanceTypes: { 'type': 'array', 'itemType': 'string' },
|
|
7298
|
+
internetChargeType: 'string',
|
|
7299
|
+
internetMaxBandwidthOut: 'number',
|
|
7300
|
+
keyPair: 'string',
|
|
7301
|
+
loginPassword: 'string',
|
|
7302
|
+
multiAzPolicy: 'string',
|
|
7303
|
+
onDemandBaseCapacity: 'number',
|
|
7304
|
+
onDemandPercentageAboveBaseCapacity: 'number',
|
|
7305
|
+
period: 'number',
|
|
7306
|
+
periodUnit: 'string',
|
|
7307
|
+
platform: 'string',
|
|
7308
|
+
privatePoolOptions: NodepoolScalingGroupPrivatePoolOptions,
|
|
7309
|
+
rdsInstances: { 'type': 'array', 'itemType': 'string' },
|
|
7310
|
+
scalingPolicy: 'string',
|
|
7311
|
+
securityGroupId: 'string',
|
|
7312
|
+
securityGroupIds: { 'type': 'array', 'itemType': 'string' },
|
|
7313
|
+
spotInstancePools: 'number',
|
|
7314
|
+
spotInstanceRemedy: 'boolean',
|
|
7315
|
+
spotPriceLimit: { 'type': 'array', 'itemType': NodepoolScalingGroupSpotPriceLimit },
|
|
7316
|
+
spotStrategy: 'string',
|
|
7317
|
+
systemDiskBurstingEnabled: 'boolean',
|
|
7318
|
+
systemDiskCategory: 'string',
|
|
7319
|
+
systemDiskPerformanceLevel: 'string',
|
|
7320
|
+
systemDiskProvisionedIops: 'number',
|
|
7321
|
+
systemDiskSize: 'number',
|
|
7322
|
+
tags: { 'type': 'array', 'itemType': NodepoolScalingGroupTags },
|
|
7323
|
+
vswitchIds: { 'type': 'array', 'itemType': 'string' },
|
|
6163
7324
|
};
|
|
6164
7325
|
}
|
|
6165
7326
|
|
|
@@ -6168,23 +7329,17 @@ export class UpgradeClusterNodepoolResponseBody extends $tea.Model {
|
|
|
6168
7329
|
}
|
|
6169
7330
|
}
|
|
6170
7331
|
|
|
6171
|
-
export class
|
|
6172
|
-
|
|
6173
|
-
statusCode: number;
|
|
6174
|
-
body: UpgradeClusterNodepoolResponseBody;
|
|
7332
|
+
export class NodepoolTeeConfig extends $tea.Model {
|
|
7333
|
+
teeEnable?: boolean;
|
|
6175
7334
|
static names(): { [key: string]: string } {
|
|
6176
7335
|
return {
|
|
6177
|
-
|
|
6178
|
-
statusCode: 'statusCode',
|
|
6179
|
-
body: 'body',
|
|
7336
|
+
teeEnable: 'tee_enable',
|
|
6180
7337
|
};
|
|
6181
7338
|
}
|
|
6182
7339
|
|
|
6183
7340
|
static types(): { [key: string]: any } {
|
|
6184
7341
|
return {
|
|
6185
|
-
|
|
6186
|
-
statusCode: 'number',
|
|
6187
|
-
body: UpgradeClusterNodepoolResponseBody,
|
|
7342
|
+
teeEnable: 'boolean',
|
|
6188
7343
|
};
|
|
6189
7344
|
}
|
|
6190
7345
|
|
|
@@ -6432,6 +7587,28 @@ export class CreateClusterNodePoolRequestNodepoolInfo extends $tea.Model {
|
|
|
6432
7587
|
}
|
|
6433
7588
|
}
|
|
6434
7589
|
|
|
7590
|
+
export class CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions extends $tea.Model {
|
|
7591
|
+
id?: string;
|
|
7592
|
+
matchCriteria?: string;
|
|
7593
|
+
static names(): { [key: string]: string } {
|
|
7594
|
+
return {
|
|
7595
|
+
id: 'id',
|
|
7596
|
+
matchCriteria: 'match_criteria',
|
|
7597
|
+
};
|
|
7598
|
+
}
|
|
7599
|
+
|
|
7600
|
+
static types(): { [key: string]: any } {
|
|
7601
|
+
return {
|
|
7602
|
+
id: 'string',
|
|
7603
|
+
matchCriteria: 'string',
|
|
7604
|
+
};
|
|
7605
|
+
}
|
|
7606
|
+
|
|
7607
|
+
constructor(map?: { [key: string]: any }) {
|
|
7608
|
+
super(map);
|
|
7609
|
+
}
|
|
7610
|
+
}
|
|
7611
|
+
|
|
6435
7612
|
export class CreateClusterNodePoolRequestScalingGroupSpotPriceLimit extends $tea.Model {
|
|
6436
7613
|
instanceType?: string;
|
|
6437
7614
|
priceLimit?: string;
|
|
@@ -6497,6 +7674,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
6497
7674
|
period?: number;
|
|
6498
7675
|
periodUnit?: string;
|
|
6499
7676
|
platform?: string;
|
|
7677
|
+
privatePoolOptions?: CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions;
|
|
6500
7678
|
rdsInstances?: string[];
|
|
6501
7679
|
scalingPolicy?: string;
|
|
6502
7680
|
securityGroupId?: string;
|
|
@@ -6532,6 +7710,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
6532
7710
|
period: 'period',
|
|
6533
7711
|
periodUnit: 'period_unit',
|
|
6534
7712
|
platform: 'platform',
|
|
7713
|
+
privatePoolOptions: 'private_pool_options',
|
|
6535
7714
|
rdsInstances: 'rds_instances',
|
|
6536
7715
|
scalingPolicy: 'scaling_policy',
|
|
6537
7716
|
securityGroupId: 'security_group_id',
|
|
@@ -6570,6 +7749,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
6570
7749
|
period: 'number',
|
|
6571
7750
|
periodUnit: 'string',
|
|
6572
7751
|
platform: 'string',
|
|
7752
|
+
privatePoolOptions: CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions,
|
|
6573
7753
|
rdsInstances: { 'type': 'array', 'itemType': 'string' },
|
|
6574
7754
|
scalingPolicy: 'string',
|
|
6575
7755
|
securityGroupId: 'string',
|
|
@@ -6970,6 +8150,28 @@ export class DescribeClusterNodePoolDetailResponseBodyNodepoolInfo extends $tea.
|
|
|
6970
8150
|
}
|
|
6971
8151
|
}
|
|
6972
8152
|
|
|
8153
|
+
export class DescribeClusterNodePoolDetailResponseBodyScalingGroupPrivatePoolOptions extends $tea.Model {
|
|
8154
|
+
id?: string;
|
|
8155
|
+
matchCriteria?: string;
|
|
8156
|
+
static names(): { [key: string]: string } {
|
|
8157
|
+
return {
|
|
8158
|
+
id: 'id',
|
|
8159
|
+
matchCriteria: 'match_criteria',
|
|
8160
|
+
};
|
|
8161
|
+
}
|
|
8162
|
+
|
|
8163
|
+
static types(): { [key: string]: any } {
|
|
8164
|
+
return {
|
|
8165
|
+
id: 'string',
|
|
8166
|
+
matchCriteria: 'string',
|
|
8167
|
+
};
|
|
8168
|
+
}
|
|
8169
|
+
|
|
8170
|
+
constructor(map?: { [key: string]: any }) {
|
|
8171
|
+
super(map);
|
|
8172
|
+
}
|
|
8173
|
+
}
|
|
8174
|
+
|
|
6973
8175
|
export class DescribeClusterNodePoolDetailResponseBodyScalingGroupSpotPriceLimit extends $tea.Model {
|
|
6974
8176
|
instanceType?: string;
|
|
6975
8177
|
priceLimit?: string;
|
|
@@ -7012,6 +8214,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
7012
8214
|
period?: number;
|
|
7013
8215
|
periodUnit?: string;
|
|
7014
8216
|
platform?: string;
|
|
8217
|
+
privatePoolOptions?: DescribeClusterNodePoolDetailResponseBodyScalingGroupPrivatePoolOptions;
|
|
7015
8218
|
ramPolicy?: string;
|
|
7016
8219
|
rdsInstances?: string[];
|
|
7017
8220
|
scalingGroupId?: string;
|
|
@@ -7048,6 +8251,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
7048
8251
|
period: 'period',
|
|
7049
8252
|
periodUnit: 'period_unit',
|
|
7050
8253
|
platform: 'platform',
|
|
8254
|
+
privatePoolOptions: 'private_pool_options',
|
|
7051
8255
|
ramPolicy: 'ram_policy',
|
|
7052
8256
|
rdsInstances: 'rds_instances',
|
|
7053
8257
|
scalingGroupId: 'scaling_group_id',
|
|
@@ -7087,6 +8291,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
7087
8291
|
period: 'number',
|
|
7088
8292
|
periodUnit: 'string',
|
|
7089
8293
|
platform: 'string',
|
|
8294
|
+
privatePoolOptions: DescribeClusterNodePoolDetailResponseBodyScalingGroupPrivatePoolOptions,
|
|
7090
8295
|
ramPolicy: 'string',
|
|
7091
8296
|
rdsInstances: { 'type': 'array', 'itemType': 'string' },
|
|
7092
8297
|
scalingGroupId: 'string',
|
|
@@ -7370,6 +8575,28 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsNodepoolInfo extends $
|
|
|
7370
8575
|
}
|
|
7371
8576
|
}
|
|
7372
8577
|
|
|
8578
|
+
export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupPrivatePoolOptions extends $tea.Model {
|
|
8579
|
+
id?: string;
|
|
8580
|
+
matchCriteria?: string;
|
|
8581
|
+
static names(): { [key: string]: string } {
|
|
8582
|
+
return {
|
|
8583
|
+
id: 'id',
|
|
8584
|
+
matchCriteria: 'match_criteria',
|
|
8585
|
+
};
|
|
8586
|
+
}
|
|
8587
|
+
|
|
8588
|
+
static types(): { [key: string]: any } {
|
|
8589
|
+
return {
|
|
8590
|
+
id: 'string',
|
|
8591
|
+
matchCriteria: 'string',
|
|
8592
|
+
};
|
|
8593
|
+
}
|
|
8594
|
+
|
|
8595
|
+
constructor(map?: { [key: string]: any }) {
|
|
8596
|
+
super(map);
|
|
8597
|
+
}
|
|
8598
|
+
}
|
|
8599
|
+
|
|
7373
8600
|
export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupSpotPriceLimit extends $tea.Model {
|
|
7374
8601
|
instanceType?: string;
|
|
7375
8602
|
priceLimit?: string;
|
|
@@ -7412,6 +8639,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
7412
8639
|
period?: number;
|
|
7413
8640
|
periodUnit?: string;
|
|
7414
8641
|
platform?: string;
|
|
8642
|
+
privatePoolOptions?: DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupPrivatePoolOptions;
|
|
7415
8643
|
ramPolicy?: string;
|
|
7416
8644
|
rdsInstances?: string[];
|
|
7417
8645
|
scalingGroupId?: string;
|
|
@@ -7448,6 +8676,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
7448
8676
|
period: 'period',
|
|
7449
8677
|
periodUnit: 'period_unit',
|
|
7450
8678
|
platform: 'platform',
|
|
8679
|
+
privatePoolOptions: 'private_pool_options',
|
|
7451
8680
|
ramPolicy: 'ram_policy',
|
|
7452
8681
|
rdsInstances: 'rds_instances',
|
|
7453
8682
|
scalingGroupId: 'scaling_group_id',
|
|
@@ -7487,6 +8716,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
7487
8716
|
period: 'number',
|
|
7488
8717
|
periodUnit: 'string',
|
|
7489
8718
|
platform: 'string',
|
|
8719
|
+
privatePoolOptions: DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupPrivatePoolOptions,
|
|
7490
8720
|
ramPolicy: 'string',
|
|
7491
8721
|
rdsInstances: { 'type': 'array', 'itemType': 'string' },
|
|
7492
8722
|
scalingGroupId: 'string',
|
|
@@ -7809,23 +9039,63 @@ export class DescribeClusterTasksResponseBodyTasks extends $tea.Model {
|
|
|
7809
9039
|
updated?: string;
|
|
7810
9040
|
static names(): { [key: string]: string } {
|
|
7811
9041
|
return {
|
|
7812
|
-
created: 'created',
|
|
7813
|
-
error: 'error',
|
|
7814
|
-
state: 'state',
|
|
7815
|
-
taskId: 'task_id',
|
|
7816
|
-
taskType: 'task_type',
|
|
7817
|
-
updated: 'updated',
|
|
9042
|
+
created: 'created',
|
|
9043
|
+
error: 'error',
|
|
9044
|
+
state: 'state',
|
|
9045
|
+
taskId: 'task_id',
|
|
9046
|
+
taskType: 'task_type',
|
|
9047
|
+
updated: 'updated',
|
|
9048
|
+
};
|
|
9049
|
+
}
|
|
9050
|
+
|
|
9051
|
+
static types(): { [key: string]: any } {
|
|
9052
|
+
return {
|
|
9053
|
+
created: 'string',
|
|
9054
|
+
error: DescribeClusterTasksResponseBodyTasksError,
|
|
9055
|
+
state: 'string',
|
|
9056
|
+
taskId: 'string',
|
|
9057
|
+
taskType: 'string',
|
|
9058
|
+
updated: 'string',
|
|
9059
|
+
};
|
|
9060
|
+
}
|
|
9061
|
+
|
|
9062
|
+
constructor(map?: { [key: string]: any }) {
|
|
9063
|
+
super(map);
|
|
9064
|
+
}
|
|
9065
|
+
}
|
|
9066
|
+
|
|
9067
|
+
export class DescribeClusterVulsResponseBodyVulRecords extends $tea.Model {
|
|
9068
|
+
cveList?: string[];
|
|
9069
|
+
necessity?: string;
|
|
9070
|
+
nodeCount?: number;
|
|
9071
|
+
nodepoolId?: string;
|
|
9072
|
+
nodepoolName?: string;
|
|
9073
|
+
vulAliasName?: string;
|
|
9074
|
+
vulName?: string;
|
|
9075
|
+
vulType?: string;
|
|
9076
|
+
static names(): { [key: string]: string } {
|
|
9077
|
+
return {
|
|
9078
|
+
cveList: 'cve_list',
|
|
9079
|
+
necessity: 'necessity',
|
|
9080
|
+
nodeCount: 'node_count',
|
|
9081
|
+
nodepoolId: 'nodepool_id',
|
|
9082
|
+
nodepoolName: 'nodepool_name',
|
|
9083
|
+
vulAliasName: 'vul_alias_name',
|
|
9084
|
+
vulName: 'vul_name',
|
|
9085
|
+
vulType: 'vul_type',
|
|
7818
9086
|
};
|
|
7819
9087
|
}
|
|
7820
9088
|
|
|
7821
9089
|
static types(): { [key: string]: any } {
|
|
7822
9090
|
return {
|
|
7823
|
-
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
|
|
7827
|
-
|
|
7828
|
-
|
|
9091
|
+
cveList: { 'type': 'array', 'itemType': 'string' },
|
|
9092
|
+
necessity: 'string',
|
|
9093
|
+
nodeCount: 'number',
|
|
9094
|
+
nodepoolId: 'string',
|
|
9095
|
+
nodepoolName: 'string',
|
|
9096
|
+
vulAliasName: 'string',
|
|
9097
|
+
vulName: 'string',
|
|
9098
|
+
vulType: 'string',
|
|
7829
9099
|
};
|
|
7830
9100
|
}
|
|
7831
9101
|
|
|
@@ -8331,7 +9601,9 @@ export class DescribeKubernetesVersionMetadataResponseBody extends $tea.Model {
|
|
|
8331
9601
|
metaData?: { [key: string]: any };
|
|
8332
9602
|
runtimes?: Runtime[];
|
|
8333
9603
|
version?: string;
|
|
8334
|
-
|
|
9604
|
+
releaseDate?: string;
|
|
9605
|
+
expirationDate?: string;
|
|
9606
|
+
creatable?: boolean;
|
|
8335
9607
|
static names(): { [key: string]: string } {
|
|
8336
9608
|
return {
|
|
8337
9609
|
capabilities: 'capabilities',
|
|
@@ -8339,7 +9611,9 @@ export class DescribeKubernetesVersionMetadataResponseBody extends $tea.Model {
|
|
|
8339
9611
|
metaData: 'meta_data',
|
|
8340
9612
|
runtimes: 'runtimes',
|
|
8341
9613
|
version: 'version',
|
|
8342
|
-
|
|
9614
|
+
releaseDate: 'release_date',
|
|
9615
|
+
expirationDate: 'expiration_date',
|
|
9616
|
+
creatable: 'creatable',
|
|
8343
9617
|
};
|
|
8344
9618
|
}
|
|
8345
9619
|
|
|
@@ -8350,7 +9624,9 @@ export class DescribeKubernetesVersionMetadataResponseBody extends $tea.Model {
|
|
|
8350
9624
|
metaData: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
8351
9625
|
runtimes: { 'type': 'array', 'itemType': Runtime },
|
|
8352
9626
|
version: 'string',
|
|
8353
|
-
|
|
9627
|
+
releaseDate: 'string',
|
|
9628
|
+
expirationDate: 'string',
|
|
9629
|
+
creatable: 'boolean',
|
|
8354
9630
|
};
|
|
8355
9631
|
}
|
|
8356
9632
|
|
|
@@ -8389,10 +9665,12 @@ export class DescribeNodePoolVulsResponseBodyVulRecordsVulList extends $tea.Mode
|
|
|
8389
9665
|
|
|
8390
9666
|
export class DescribeNodePoolVulsResponseBodyVulRecords extends $tea.Model {
|
|
8391
9667
|
instanceId?: string;
|
|
9668
|
+
nodeName?: string;
|
|
8392
9669
|
vulList?: DescribeNodePoolVulsResponseBodyVulRecordsVulList[];
|
|
8393
9670
|
static names(): { [key: string]: string } {
|
|
8394
9671
|
return {
|
|
8395
9672
|
instanceId: 'instance_id',
|
|
9673
|
+
nodeName: 'node_name',
|
|
8396
9674
|
vulList: 'vul_list',
|
|
8397
9675
|
};
|
|
8398
9676
|
}
|
|
@@ -8400,6 +9678,7 @@ export class DescribeNodePoolVulsResponseBodyVulRecords extends $tea.Model {
|
|
|
8400
9678
|
static types(): { [key: string]: any } {
|
|
8401
9679
|
return {
|
|
8402
9680
|
instanceId: 'string',
|
|
9681
|
+
nodeName: 'string',
|
|
8403
9682
|
vulList: { 'type': 'array', 'itemType': DescribeNodePoolVulsResponseBodyVulRecordsVulList },
|
|
8404
9683
|
};
|
|
8405
9684
|
}
|
|
@@ -9460,6 +10739,28 @@ export class ModifyClusterNodePoolRequestNodepoolInfo extends $tea.Model {
|
|
|
9460
10739
|
}
|
|
9461
10740
|
}
|
|
9462
10741
|
|
|
10742
|
+
export class ModifyClusterNodePoolRequestScalingGroupPrivatePoolOptions extends $tea.Model {
|
|
10743
|
+
id?: string;
|
|
10744
|
+
matchCriteria?: string;
|
|
10745
|
+
static names(): { [key: string]: string } {
|
|
10746
|
+
return {
|
|
10747
|
+
id: 'id',
|
|
10748
|
+
matchCriteria: 'match_criteria',
|
|
10749
|
+
};
|
|
10750
|
+
}
|
|
10751
|
+
|
|
10752
|
+
static types(): { [key: string]: any } {
|
|
10753
|
+
return {
|
|
10754
|
+
id: 'string',
|
|
10755
|
+
matchCriteria: 'string',
|
|
10756
|
+
};
|
|
10757
|
+
}
|
|
10758
|
+
|
|
10759
|
+
constructor(map?: { [key: string]: any }) {
|
|
10760
|
+
super(map);
|
|
10761
|
+
}
|
|
10762
|
+
}
|
|
10763
|
+
|
|
9463
10764
|
export class ModifyClusterNodePoolRequestScalingGroupSpotPriceLimit extends $tea.Model {
|
|
9464
10765
|
instanceType?: string;
|
|
9465
10766
|
priceLimit?: string;
|
|
@@ -9501,6 +10802,7 @@ export class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
9501
10802
|
period?: number;
|
|
9502
10803
|
periodUnit?: string;
|
|
9503
10804
|
platform?: string;
|
|
10805
|
+
privatePoolOptions?: ModifyClusterNodePoolRequestScalingGroupPrivatePoolOptions;
|
|
9504
10806
|
rdsInstances?: string[];
|
|
9505
10807
|
scalingPolicy?: string;
|
|
9506
10808
|
spotInstancePools?: number;
|
|
@@ -9532,6 +10834,7 @@ export class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
9532
10834
|
period: 'period',
|
|
9533
10835
|
periodUnit: 'period_unit',
|
|
9534
10836
|
platform: 'platform',
|
|
10837
|
+
privatePoolOptions: 'private_pool_options',
|
|
9535
10838
|
rdsInstances: 'rds_instances',
|
|
9536
10839
|
scalingPolicy: 'scaling_policy',
|
|
9537
10840
|
spotInstancePools: 'spot_instance_pools',
|
|
@@ -9566,6 +10869,7 @@ export class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
9566
10869
|
period: 'number',
|
|
9567
10870
|
periodUnit: 'string',
|
|
9568
10871
|
platform: 'string',
|
|
10872
|
+
privatePoolOptions: ModifyClusterNodePoolRequestScalingGroupPrivatePoolOptions,
|
|
9569
10873
|
rdsInstances: { 'type': 'array', 'itemType': 'string' },
|
|
9570
10874
|
scalingPolicy: 'string',
|
|
9571
10875
|
spotInstancePools: 'number',
|
|
@@ -9798,12 +11102,14 @@ export class UpgradeClusterAddonsRequestBody extends $tea.Model {
|
|
|
9798
11102
|
componentName?: string;
|
|
9799
11103
|
config?: string;
|
|
9800
11104
|
nextVersion?: string;
|
|
11105
|
+
policy?: string;
|
|
9801
11106
|
version?: string;
|
|
9802
11107
|
static names(): { [key: string]: string } {
|
|
9803
11108
|
return {
|
|
9804
11109
|
componentName: 'component_name',
|
|
9805
11110
|
config: 'config',
|
|
9806
11111
|
nextVersion: 'next_version',
|
|
11112
|
+
policy: 'policy',
|
|
9807
11113
|
version: 'version',
|
|
9808
11114
|
};
|
|
9809
11115
|
}
|
|
@@ -9813,6 +11119,7 @@ export class UpgradeClusterAddonsRequestBody extends $tea.Model {
|
|
|
9813
11119
|
componentName: 'string',
|
|
9814
11120
|
config: 'string',
|
|
9815
11121
|
nextVersion: 'string',
|
|
11122
|
+
policy: 'string',
|
|
9816
11123
|
version: 'string',
|
|
9817
11124
|
};
|
|
9818
11125
|
}
|
|
@@ -9878,12 +11185,6 @@ export default class Client extends OpenApi {
|
|
|
9878
11185
|
return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
9879
11186
|
}
|
|
9880
11187
|
|
|
9881
|
-
async attachInstances(ClusterId: string, request: AttachInstancesRequest): Promise<AttachInstancesResponse> {
|
|
9882
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
9883
|
-
let headers : {[key: string ]: string} = { };
|
|
9884
|
-
return await this.attachInstancesWithOptions(ClusterId, request, headers, runtime);
|
|
9885
|
-
}
|
|
9886
|
-
|
|
9887
11188
|
async attachInstancesWithOptions(ClusterId: string, request: AttachInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<AttachInstancesResponse> {
|
|
9888
11189
|
Util.validateModel(request);
|
|
9889
11190
|
let body : {[key: string ]: any} = { };
|
|
@@ -9927,7 +11228,7 @@ export default class Client extends OpenApi {
|
|
|
9927
11228
|
body["rds_instances"] = request.rdsInstances;
|
|
9928
11229
|
}
|
|
9929
11230
|
|
|
9930
|
-
if (!Util.isUnset(
|
|
11231
|
+
if (!Util.isUnset(request.runtime)) {
|
|
9931
11232
|
body["runtime"] = request.runtime;
|
|
9932
11233
|
}
|
|
9933
11234
|
|
|
@@ -9957,10 +11258,53 @@ export default class Client extends OpenApi {
|
|
|
9957
11258
|
return $tea.cast<AttachInstancesResponse>(await this.callApi(params, req, runtime), new AttachInstancesResponse({}));
|
|
9958
11259
|
}
|
|
9959
11260
|
|
|
9960
|
-
async
|
|
11261
|
+
async attachInstances(ClusterId: string, request: AttachInstancesRequest): Promise<AttachInstancesResponse> {
|
|
9961
11262
|
let runtime = new $Util.RuntimeOptions({ });
|
|
9962
11263
|
let headers : {[key: string ]: string} = { };
|
|
9963
|
-
return await this.
|
|
11264
|
+
return await this.attachInstancesWithOptions(ClusterId, request, headers, runtime);
|
|
11265
|
+
}
|
|
11266
|
+
|
|
11267
|
+
async attachInstancesToNodePoolWithOptions(ClusterId: string, NodepoolId: string, request: AttachInstancesToNodePoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<AttachInstancesToNodePoolResponse> {
|
|
11268
|
+
Util.validateModel(request);
|
|
11269
|
+
let body : {[key: string ]: any} = { };
|
|
11270
|
+
if (!Util.isUnset(request.formatDisk)) {
|
|
11271
|
+
body["format_disk"] = request.formatDisk;
|
|
11272
|
+
}
|
|
11273
|
+
|
|
11274
|
+
if (!Util.isUnset(request.instances)) {
|
|
11275
|
+
body["instances"] = request.instances;
|
|
11276
|
+
}
|
|
11277
|
+
|
|
11278
|
+
if (!Util.isUnset(request.keepInstanceName)) {
|
|
11279
|
+
body["keep_instance_name"] = request.keepInstanceName;
|
|
11280
|
+
}
|
|
11281
|
+
|
|
11282
|
+
if (!Util.isUnset(request.password)) {
|
|
11283
|
+
body["password"] = request.password;
|
|
11284
|
+
}
|
|
11285
|
+
|
|
11286
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11287
|
+
headers: headers,
|
|
11288
|
+
body: OpenApiUtil.parseToMap(body),
|
|
11289
|
+
});
|
|
11290
|
+
let params = new $OpenApi.Params({
|
|
11291
|
+
action: "AttachInstancesToNodePool",
|
|
11292
|
+
version: "2015-12-15",
|
|
11293
|
+
protocol: "HTTPS",
|
|
11294
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(ClusterId)}/nodepools/${OpenApiUtil.getEncodeParam(NodepoolId)}/attach`,
|
|
11295
|
+
method: "POST",
|
|
11296
|
+
authType: "AK",
|
|
11297
|
+
style: "ROA",
|
|
11298
|
+
reqBodyType: "json",
|
|
11299
|
+
bodyType: "json",
|
|
11300
|
+
});
|
|
11301
|
+
return $tea.cast<AttachInstancesToNodePoolResponse>(await this.callApi(params, req, runtime), new AttachInstancesToNodePoolResponse({}));
|
|
11302
|
+
}
|
|
11303
|
+
|
|
11304
|
+
async attachInstancesToNodePool(ClusterId: string, NodepoolId: string, request: AttachInstancesToNodePoolRequest): Promise<AttachInstancesToNodePoolResponse> {
|
|
11305
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
11306
|
+
let headers : {[key: string ]: string} = { };
|
|
11307
|
+
return await this.attachInstancesToNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
9964
11308
|
}
|
|
9965
11309
|
|
|
9966
11310
|
async cancelClusterUpgradeWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CancelClusterUpgradeResponse> {
|
|
@@ -9981,10 +11325,10 @@ export default class Client extends OpenApi {
|
|
|
9981
11325
|
return $tea.cast<CancelClusterUpgradeResponse>(await this.callApi(params, req, runtime), new CancelClusterUpgradeResponse({}));
|
|
9982
11326
|
}
|
|
9983
11327
|
|
|
9984
|
-
async
|
|
11328
|
+
async cancelClusterUpgrade(ClusterId: string): Promise<CancelClusterUpgradeResponse> {
|
|
9985
11329
|
let runtime = new $Util.RuntimeOptions({ });
|
|
9986
11330
|
let headers : {[key: string ]: string} = { };
|
|
9987
|
-
return await this.
|
|
11331
|
+
return await this.cancelClusterUpgradeWithOptions(ClusterId, headers, runtime);
|
|
9988
11332
|
}
|
|
9989
11333
|
|
|
9990
11334
|
async cancelComponentUpgradeWithOptions(clusterId: string, componentId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CancelComponentUpgradeResponse> {
|
|
@@ -10005,10 +11349,10 @@ export default class Client extends OpenApi {
|
|
|
10005
11349
|
return $tea.cast<CancelComponentUpgradeResponse>(await this.callApi(params, req, runtime), new CancelComponentUpgradeResponse({}));
|
|
10006
11350
|
}
|
|
10007
11351
|
|
|
10008
|
-
async
|
|
11352
|
+
async cancelComponentUpgrade(clusterId: string, componentId: string): Promise<CancelComponentUpgradeResponse> {
|
|
10009
11353
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10010
11354
|
let headers : {[key: string ]: string} = { };
|
|
10011
|
-
return await this.
|
|
11355
|
+
return await this.cancelComponentUpgradeWithOptions(clusterId, componentId, headers, runtime);
|
|
10012
11356
|
}
|
|
10013
11357
|
|
|
10014
11358
|
async cancelTaskWithOptions(taskId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CancelTaskResponse> {
|
|
@@ -10029,10 +11373,10 @@ export default class Client extends OpenApi {
|
|
|
10029
11373
|
return $tea.cast<CancelTaskResponse>(await this.callApi(params, req, runtime), new CancelTaskResponse({}));
|
|
10030
11374
|
}
|
|
10031
11375
|
|
|
10032
|
-
async
|
|
11376
|
+
async cancelTask(taskId: string): Promise<CancelTaskResponse> {
|
|
10033
11377
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10034
11378
|
let headers : {[key: string ]: string} = { };
|
|
10035
|
-
return await this.
|
|
11379
|
+
return await this.cancelTaskWithOptions(taskId, headers, runtime);
|
|
10036
11380
|
}
|
|
10037
11381
|
|
|
10038
11382
|
async cancelWorkflowWithOptions(workflowName: string, request: CancelWorkflowRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CancelWorkflowResponse> {
|
|
@@ -10060,10 +11404,34 @@ export default class Client extends OpenApi {
|
|
|
10060
11404
|
return $tea.cast<CancelWorkflowResponse>(await this.callApi(params, req, runtime), new CancelWorkflowResponse({}));
|
|
10061
11405
|
}
|
|
10062
11406
|
|
|
10063
|
-
async
|
|
11407
|
+
async cancelWorkflow(workflowName: string, request: CancelWorkflowRequest): Promise<CancelWorkflowResponse> {
|
|
10064
11408
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10065
11409
|
let headers : {[key: string ]: string} = { };
|
|
10066
|
-
return await this.
|
|
11410
|
+
return await this.cancelWorkflowWithOptions(workflowName, request, headers, runtime);
|
|
11411
|
+
}
|
|
11412
|
+
|
|
11413
|
+
async checkControlPlaneLogEnableWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CheckControlPlaneLogEnableResponse> {
|
|
11414
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
11415
|
+
headers: headers,
|
|
11416
|
+
});
|
|
11417
|
+
let params = new $OpenApi.Params({
|
|
11418
|
+
action: "CheckControlPlaneLogEnable",
|
|
11419
|
+
version: "2015-12-15",
|
|
11420
|
+
protocol: "HTTPS",
|
|
11421
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(ClusterId)}/controlplanelog`,
|
|
11422
|
+
method: "GET",
|
|
11423
|
+
authType: "AK",
|
|
11424
|
+
style: "ROA",
|
|
11425
|
+
reqBodyType: "json",
|
|
11426
|
+
bodyType: "json",
|
|
11427
|
+
});
|
|
11428
|
+
return $tea.cast<CheckControlPlaneLogEnableResponse>(await this.callApi(params, req, runtime), new CheckControlPlaneLogEnableResponse({}));
|
|
11429
|
+
}
|
|
11430
|
+
|
|
11431
|
+
async checkControlPlaneLogEnable(ClusterId: string): Promise<CheckControlPlaneLogEnableResponse> {
|
|
11432
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
11433
|
+
let headers : {[key: string ]: string} = { };
|
|
11434
|
+
return await this.checkControlPlaneLogEnableWithOptions(ClusterId, headers, runtime);
|
|
10067
11435
|
}
|
|
10068
11436
|
|
|
10069
11437
|
async createAutoscalingConfigWithOptions(ClusterId: string, request: CreateAutoscalingConfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateAutoscalingConfigResponse> {
|
|
@@ -10073,6 +11441,10 @@ export default class Client extends OpenApi {
|
|
|
10073
11441
|
body["cool_down_duration"] = request.coolDownDuration;
|
|
10074
11442
|
}
|
|
10075
11443
|
|
|
11444
|
+
if (!Util.isUnset(request.daemonsetEvictionForNodes)) {
|
|
11445
|
+
body["daemonset_eviction_for_nodes"] = request.daemonsetEvictionForNodes;
|
|
11446
|
+
}
|
|
11447
|
+
|
|
10076
11448
|
if (!Util.isUnset(request.expander)) {
|
|
10077
11449
|
body["expander"] = request.expander;
|
|
10078
11450
|
}
|
|
@@ -10081,14 +11453,38 @@ export default class Client extends OpenApi {
|
|
|
10081
11453
|
body["gpu_utilization_threshold"] = request.gpuUtilizationThreshold;
|
|
10082
11454
|
}
|
|
10083
11455
|
|
|
11456
|
+
if (!Util.isUnset(request.maxGracefulTerminationSec)) {
|
|
11457
|
+
body["max_graceful_termination_sec"] = request.maxGracefulTerminationSec;
|
|
11458
|
+
}
|
|
11459
|
+
|
|
11460
|
+
if (!Util.isUnset(request.minReplicaCount)) {
|
|
11461
|
+
body["min_replica_count"] = request.minReplicaCount;
|
|
11462
|
+
}
|
|
11463
|
+
|
|
11464
|
+
if (!Util.isUnset(request.recycleNodeDeletionEnabled)) {
|
|
11465
|
+
body["recycle_node_deletion_enabled"] = request.recycleNodeDeletionEnabled;
|
|
11466
|
+
}
|
|
11467
|
+
|
|
10084
11468
|
if (!Util.isUnset(request.scaleDownEnabled)) {
|
|
10085
11469
|
body["scale_down_enabled"] = request.scaleDownEnabled;
|
|
10086
11470
|
}
|
|
10087
11471
|
|
|
11472
|
+
if (!Util.isUnset(request.scaleUpFromZero)) {
|
|
11473
|
+
body["scale_up_from_zero"] = request.scaleUpFromZero;
|
|
11474
|
+
}
|
|
11475
|
+
|
|
10088
11476
|
if (!Util.isUnset(request.scanInterval)) {
|
|
10089
11477
|
body["scan_interval"] = request.scanInterval;
|
|
10090
11478
|
}
|
|
10091
11479
|
|
|
11480
|
+
if (!Util.isUnset(request.skipNodesWithLocalStorage)) {
|
|
11481
|
+
body["skip_nodes_with_local_storage"] = request.skipNodesWithLocalStorage;
|
|
11482
|
+
}
|
|
11483
|
+
|
|
11484
|
+
if (!Util.isUnset(request.skipNodesWithSystemPods)) {
|
|
11485
|
+
body["skip_nodes_with_system_pods"] = request.skipNodesWithSystemPods;
|
|
11486
|
+
}
|
|
11487
|
+
|
|
10092
11488
|
if (!Util.isUnset(request.unneededDuration)) {
|
|
10093
11489
|
body["unneeded_duration"] = request.unneededDuration;
|
|
10094
11490
|
}
|
|
@@ -10115,10 +11511,10 @@ export default class Client extends OpenApi {
|
|
|
10115
11511
|
return $tea.cast<CreateAutoscalingConfigResponse>(await this.callApi(params, req, runtime), new CreateAutoscalingConfigResponse({}));
|
|
10116
11512
|
}
|
|
10117
11513
|
|
|
10118
|
-
async
|
|
11514
|
+
async createAutoscalingConfig(ClusterId: string, request: CreateAutoscalingConfigRequest): Promise<CreateAutoscalingConfigResponse> {
|
|
10119
11515
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10120
11516
|
let headers : {[key: string ]: string} = { };
|
|
10121
|
-
return await this.
|
|
11517
|
+
return await this.createAutoscalingConfigWithOptions(ClusterId, request, headers, runtime);
|
|
10122
11518
|
}
|
|
10123
11519
|
|
|
10124
11520
|
async createClusterWithOptions(request: CreateClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateClusterResponse> {
|
|
@@ -10360,7 +11756,7 @@ export default class Client extends OpenApi {
|
|
|
10360
11756
|
body["resource_group_id"] = request.resourceGroupId;
|
|
10361
11757
|
}
|
|
10362
11758
|
|
|
10363
|
-
if (!Util.isUnset(
|
|
11759
|
+
if (!Util.isUnset(request.runtime)) {
|
|
10364
11760
|
body["runtime"] = request.runtime;
|
|
10365
11761
|
}
|
|
10366
11762
|
|
|
@@ -10494,16 +11890,16 @@ export default class Client extends OpenApi {
|
|
|
10494
11890
|
return $tea.cast<CreateClusterResponse>(await this.callApi(params, req, runtime), new CreateClusterResponse({}));
|
|
10495
11891
|
}
|
|
10496
11892
|
|
|
10497
|
-
async
|
|
11893
|
+
async createCluster(request: CreateClusterRequest): Promise<CreateClusterResponse> {
|
|
10498
11894
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10499
11895
|
let headers : {[key: string ]: string} = { };
|
|
10500
|
-
return await this.
|
|
11896
|
+
return await this.createClusterWithOptions(request, headers, runtime);
|
|
10501
11897
|
}
|
|
10502
11898
|
|
|
10503
11899
|
async createClusterNodePoolWithOptions(ClusterId: string, request: CreateClusterNodePoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateClusterNodePoolResponse> {
|
|
10504
11900
|
Util.validateModel(request);
|
|
10505
11901
|
let body : {[key: string ]: any} = { };
|
|
10506
|
-
if (!Util.isUnset(
|
|
11902
|
+
if (!Util.isUnset(request.autoScaling)) {
|
|
10507
11903
|
body["auto_scaling"] = request.autoScaling;
|
|
10508
11904
|
}
|
|
10509
11905
|
|
|
@@ -10511,7 +11907,7 @@ export default class Client extends OpenApi {
|
|
|
10511
11907
|
body["count"] = request.count;
|
|
10512
11908
|
}
|
|
10513
11909
|
|
|
10514
|
-
if (!Util.isUnset(
|
|
11910
|
+
if (!Util.isUnset(request.interconnectConfig)) {
|
|
10515
11911
|
body["interconnect_config"] = request.interconnectConfig;
|
|
10516
11912
|
}
|
|
10517
11913
|
|
|
@@ -10519,11 +11915,11 @@ export default class Client extends OpenApi {
|
|
|
10519
11915
|
body["interconnect_mode"] = request.interconnectMode;
|
|
10520
11916
|
}
|
|
10521
11917
|
|
|
10522
|
-
if (!Util.isUnset(
|
|
11918
|
+
if (!Util.isUnset(request.kubernetesConfig)) {
|
|
10523
11919
|
body["kubernetes_config"] = request.kubernetesConfig;
|
|
10524
11920
|
}
|
|
10525
11921
|
|
|
10526
|
-
if (!Util.isUnset(
|
|
11922
|
+
if (!Util.isUnset(request.management)) {
|
|
10527
11923
|
body["management"] = request.management;
|
|
10528
11924
|
}
|
|
10529
11925
|
|
|
@@ -10531,15 +11927,15 @@ export default class Client extends OpenApi {
|
|
|
10531
11927
|
body["max_nodes"] = request.maxNodes;
|
|
10532
11928
|
}
|
|
10533
11929
|
|
|
10534
|
-
if (!Util.isUnset(
|
|
11930
|
+
if (!Util.isUnset(request.nodepoolInfo)) {
|
|
10535
11931
|
body["nodepool_info"] = request.nodepoolInfo;
|
|
10536
11932
|
}
|
|
10537
11933
|
|
|
10538
|
-
if (!Util.isUnset(
|
|
11934
|
+
if (!Util.isUnset(request.scalingGroup)) {
|
|
10539
11935
|
body["scaling_group"] = request.scalingGroup;
|
|
10540
11936
|
}
|
|
10541
11937
|
|
|
10542
|
-
if (!Util.isUnset(
|
|
11938
|
+
if (!Util.isUnset(request.teeConfig)) {
|
|
10543
11939
|
body["tee_config"] = request.teeConfig;
|
|
10544
11940
|
}
|
|
10545
11941
|
|
|
@@ -10561,10 +11957,10 @@ export default class Client extends OpenApi {
|
|
|
10561
11957
|
return $tea.cast<CreateClusterNodePoolResponse>(await this.callApi(params, req, runtime), new CreateClusterNodePoolResponse({}));
|
|
10562
11958
|
}
|
|
10563
11959
|
|
|
10564
|
-
async
|
|
11960
|
+
async createClusterNodePool(ClusterId: string, request: CreateClusterNodePoolRequest): Promise<CreateClusterNodePoolResponse> {
|
|
10565
11961
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10566
11962
|
let headers : {[key: string ]: string} = { };
|
|
10567
|
-
return await this.
|
|
11963
|
+
return await this.createClusterNodePoolWithOptions(ClusterId, request, headers, runtime);
|
|
10568
11964
|
}
|
|
10569
11965
|
|
|
10570
11966
|
async createEdgeMachineWithOptions(request: CreateEdgeMachineRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateEdgeMachineResponse> {
|
|
@@ -10600,10 +11996,10 @@ export default class Client extends OpenApi {
|
|
|
10600
11996
|
return $tea.cast<CreateEdgeMachineResponse>(await this.callApi(params, req, runtime), new CreateEdgeMachineResponse({}));
|
|
10601
11997
|
}
|
|
10602
11998
|
|
|
10603
|
-
async
|
|
11999
|
+
async createEdgeMachine(request: CreateEdgeMachineRequest): Promise<CreateEdgeMachineResponse> {
|
|
10604
12000
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10605
12001
|
let headers : {[key: string ]: string} = { };
|
|
10606
|
-
return await this.
|
|
12002
|
+
return await this.createEdgeMachineWithOptions(request, headers, runtime);
|
|
10607
12003
|
}
|
|
10608
12004
|
|
|
10609
12005
|
async createKubernetesTriggerWithOptions(request: CreateKubernetesTriggerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateKubernetesTriggerResponse> {
|
|
@@ -10643,10 +12039,10 @@ export default class Client extends OpenApi {
|
|
|
10643
12039
|
return $tea.cast<CreateKubernetesTriggerResponse>(await this.callApi(params, req, runtime), new CreateKubernetesTriggerResponse({}));
|
|
10644
12040
|
}
|
|
10645
12041
|
|
|
10646
|
-
async
|
|
12042
|
+
async createKubernetesTrigger(request: CreateKubernetesTriggerRequest): Promise<CreateKubernetesTriggerResponse> {
|
|
10647
12043
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10648
12044
|
let headers : {[key: string ]: string} = { };
|
|
10649
|
-
return await this.
|
|
12045
|
+
return await this.createKubernetesTriggerWithOptions(request, headers, runtime);
|
|
10650
12046
|
}
|
|
10651
12047
|
|
|
10652
12048
|
async createTemplateWithOptions(request: CreateTemplateRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateTemplateResponse> {
|
|
@@ -10690,10 +12086,10 @@ export default class Client extends OpenApi {
|
|
|
10690
12086
|
return $tea.cast<CreateTemplateResponse>(await this.callApi(params, req, runtime), new CreateTemplateResponse({}));
|
|
10691
12087
|
}
|
|
10692
12088
|
|
|
10693
|
-
async
|
|
12089
|
+
async createTemplate(request: CreateTemplateRequest): Promise<CreateTemplateResponse> {
|
|
10694
12090
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10695
12091
|
let headers : {[key: string ]: string} = { };
|
|
10696
|
-
return await this.
|
|
12092
|
+
return await this.createTemplateWithOptions(request, headers, runtime);
|
|
10697
12093
|
}
|
|
10698
12094
|
|
|
10699
12095
|
async createTriggerWithOptions(clusterId: string, request: CreateTriggerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateTriggerResponse> {
|
|
@@ -10733,10 +12129,10 @@ export default class Client extends OpenApi {
|
|
|
10733
12129
|
return $tea.cast<CreateTriggerResponse>(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
|
|
10734
12130
|
}
|
|
10735
12131
|
|
|
10736
|
-
async
|
|
12132
|
+
async createTrigger(clusterId: string, request: CreateTriggerRequest): Promise<CreateTriggerResponse> {
|
|
10737
12133
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10738
12134
|
let headers : {[key: string ]: string} = { };
|
|
10739
|
-
return await this.
|
|
12135
|
+
return await this.createTriggerWithOptions(clusterId, request, headers, runtime);
|
|
10740
12136
|
}
|
|
10741
12137
|
|
|
10742
12138
|
async deleteAlertContactWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactResponse> {
|
|
@@ -10757,10 +12153,10 @@ export default class Client extends OpenApi {
|
|
|
10757
12153
|
return $tea.cast<DeleteAlertContactResponse>(await this.callApi(params, req, runtime), new DeleteAlertContactResponse({}));
|
|
10758
12154
|
}
|
|
10759
12155
|
|
|
10760
|
-
async
|
|
12156
|
+
async deleteAlertContact(): Promise<DeleteAlertContactResponse> {
|
|
10761
12157
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10762
12158
|
let headers : {[key: string ]: string} = { };
|
|
10763
|
-
return await this.
|
|
12159
|
+
return await this.deleteAlertContactWithOptions(headers, runtime);
|
|
10764
12160
|
}
|
|
10765
12161
|
|
|
10766
12162
|
async deleteAlertContactGroupWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactGroupResponse> {
|
|
@@ -10781,10 +12177,10 @@ export default class Client extends OpenApi {
|
|
|
10781
12177
|
return $tea.cast<DeleteAlertContactGroupResponse>(await this.callApi(params, req, runtime), new DeleteAlertContactGroupResponse({}));
|
|
10782
12178
|
}
|
|
10783
12179
|
|
|
10784
|
-
async
|
|
12180
|
+
async deleteAlertContactGroup(): Promise<DeleteAlertContactGroupResponse> {
|
|
10785
12181
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10786
12182
|
let headers : {[key: string ]: string} = { };
|
|
10787
|
-
return await this.
|
|
12183
|
+
return await this.deleteAlertContactGroupWithOptions(headers, runtime);
|
|
10788
12184
|
}
|
|
10789
12185
|
|
|
10790
12186
|
async deleteClusterWithOptions(ClusterId: string, tmpReq: DeleteClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterResponse> {
|
|
@@ -10821,15 +12217,15 @@ export default class Client extends OpenApi {
|
|
|
10821
12217
|
authType: "AK",
|
|
10822
12218
|
style: "ROA",
|
|
10823
12219
|
reqBodyType: "json",
|
|
10824
|
-
bodyType: "
|
|
12220
|
+
bodyType: "json",
|
|
10825
12221
|
});
|
|
10826
12222
|
return $tea.cast<DeleteClusterResponse>(await this.callApi(params, req, runtime), new DeleteClusterResponse({}));
|
|
10827
12223
|
}
|
|
10828
12224
|
|
|
10829
|
-
async
|
|
12225
|
+
async deleteCluster(ClusterId: string, request: DeleteClusterRequest): Promise<DeleteClusterResponse> {
|
|
10830
12226
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10831
12227
|
let headers : {[key: string ]: string} = { };
|
|
10832
|
-
return await this.
|
|
12228
|
+
return await this.deleteClusterWithOptions(ClusterId, request, headers, runtime);
|
|
10833
12229
|
}
|
|
10834
12230
|
|
|
10835
12231
|
async deleteClusterNodepoolWithOptions(ClusterId: string, NodepoolId: string, request: DeleteClusterNodepoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterNodepoolResponse> {
|
|
@@ -10857,12 +12253,24 @@ export default class Client extends OpenApi {
|
|
|
10857
12253
|
return $tea.cast<DeleteClusterNodepoolResponse>(await this.callApi(params, req, runtime), new DeleteClusterNodepoolResponse({}));
|
|
10858
12254
|
}
|
|
10859
12255
|
|
|
10860
|
-
async
|
|
12256
|
+
async deleteClusterNodepool(ClusterId: string, NodepoolId: string, request: DeleteClusterNodepoolRequest): Promise<DeleteClusterNodepoolResponse> {
|
|
10861
12257
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10862
12258
|
let headers : {[key: string ]: string} = { };
|
|
10863
|
-
return await this.
|
|
12259
|
+
return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
10864
12260
|
}
|
|
10865
12261
|
|
|
12262
|
+
/**
|
|
12263
|
+
* >
|
|
12264
|
+
* * When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours.
|
|
12265
|
+
* * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
|
|
12266
|
+
* * Nodes remain in the unschedulable state when they are being removed.
|
|
12267
|
+
* * You can remove only worker nodes by calling this operation.
|
|
12268
|
+
*
|
|
12269
|
+
* @param request DeleteClusterNodesRequest
|
|
12270
|
+
* @param headers map
|
|
12271
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
12272
|
+
* @return DeleteClusterNodesResponse
|
|
12273
|
+
*/
|
|
10866
12274
|
async deleteClusterNodesWithOptions(ClusterId: string, request: DeleteClusterNodesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterNodesResponse> {
|
|
10867
12275
|
Util.validateModel(request);
|
|
10868
12276
|
let body : {[key: string ]: any} = { };
|
|
@@ -10896,10 +12304,20 @@ export default class Client extends OpenApi {
|
|
|
10896
12304
|
return $tea.cast<DeleteClusterNodesResponse>(await this.callApi(params, req, runtime), new DeleteClusterNodesResponse({}));
|
|
10897
12305
|
}
|
|
10898
12306
|
|
|
10899
|
-
|
|
12307
|
+
/**
|
|
12308
|
+
* >
|
|
12309
|
+
* * When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours.
|
|
12310
|
+
* * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
|
|
12311
|
+
* * Nodes remain in the unschedulable state when they are being removed.
|
|
12312
|
+
* * You can remove only worker nodes by calling this operation.
|
|
12313
|
+
*
|
|
12314
|
+
* @param request DeleteClusterNodesRequest
|
|
12315
|
+
* @return DeleteClusterNodesResponse
|
|
12316
|
+
*/
|
|
12317
|
+
async deleteClusterNodes(ClusterId: string, request: DeleteClusterNodesRequest): Promise<DeleteClusterNodesResponse> {
|
|
10900
12318
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10901
12319
|
let headers : {[key: string ]: string} = { };
|
|
10902
|
-
return await this.
|
|
12320
|
+
return await this.deleteClusterNodesWithOptions(ClusterId, request, headers, runtime);
|
|
10903
12321
|
}
|
|
10904
12322
|
|
|
10905
12323
|
async deleteEdgeMachineWithOptions(edgeMachineid: string, request: DeleteEdgeMachineRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteEdgeMachineResponse> {
|
|
@@ -10927,10 +12345,10 @@ export default class Client extends OpenApi {
|
|
|
10927
12345
|
return $tea.cast<DeleteEdgeMachineResponse>(await this.callApi(params, req, runtime), new DeleteEdgeMachineResponse({}));
|
|
10928
12346
|
}
|
|
10929
12347
|
|
|
10930
|
-
async
|
|
12348
|
+
async deleteEdgeMachine(edgeMachineid: string, request: DeleteEdgeMachineRequest): Promise<DeleteEdgeMachineResponse> {
|
|
10931
12349
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10932
12350
|
let headers : {[key: string ]: string} = { };
|
|
10933
|
-
return await this.
|
|
12351
|
+
return await this.deleteEdgeMachineWithOptions(edgeMachineid, request, headers, runtime);
|
|
10934
12352
|
}
|
|
10935
12353
|
|
|
10936
12354
|
async deleteKubernetesTriggerWithOptions(Id: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteKubernetesTriggerResponse> {
|
|
@@ -10951,10 +12369,10 @@ export default class Client extends OpenApi {
|
|
|
10951
12369
|
return $tea.cast<DeleteKubernetesTriggerResponse>(await this.callApi(params, req, runtime), new DeleteKubernetesTriggerResponse({}));
|
|
10952
12370
|
}
|
|
10953
12371
|
|
|
10954
|
-
async
|
|
12372
|
+
async deleteKubernetesTrigger(Id: string): Promise<DeleteKubernetesTriggerResponse> {
|
|
10955
12373
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10956
12374
|
let headers : {[key: string ]: string} = { };
|
|
10957
|
-
return await this.
|
|
12375
|
+
return await this.deleteKubernetesTriggerWithOptions(Id, headers, runtime);
|
|
10958
12376
|
}
|
|
10959
12377
|
|
|
10960
12378
|
async deletePolicyInstanceWithOptions(clusterId: string, policyName: string, request: DeletePolicyInstanceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeletePolicyInstanceResponse> {
|
|
@@ -10982,10 +12400,10 @@ export default class Client extends OpenApi {
|
|
|
10982
12400
|
return $tea.cast<DeletePolicyInstanceResponse>(await this.callApi(params, req, runtime), new DeletePolicyInstanceResponse({}));
|
|
10983
12401
|
}
|
|
10984
12402
|
|
|
10985
|
-
async
|
|
12403
|
+
async deletePolicyInstance(clusterId: string, policyName: string, request: DeletePolicyInstanceRequest): Promise<DeletePolicyInstanceResponse> {
|
|
10986
12404
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10987
12405
|
let headers : {[key: string ]: string} = { };
|
|
10988
|
-
return await this.
|
|
12406
|
+
return await this.deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
|
|
10989
12407
|
}
|
|
10990
12408
|
|
|
10991
12409
|
async deleteTemplateWithOptions(TemplateId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteTemplateResponse> {
|
|
@@ -11006,10 +12424,10 @@ export default class Client extends OpenApi {
|
|
|
11006
12424
|
return $tea.cast<DeleteTemplateResponse>(await this.callApi(params, req, runtime), new DeleteTemplateResponse({}));
|
|
11007
12425
|
}
|
|
11008
12426
|
|
|
11009
|
-
async
|
|
12427
|
+
async deleteTemplate(TemplateId: string): Promise<DeleteTemplateResponse> {
|
|
11010
12428
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11011
12429
|
let headers : {[key: string ]: string} = { };
|
|
11012
|
-
return await this.
|
|
12430
|
+
return await this.deleteTemplateWithOptions(TemplateId, headers, runtime);
|
|
11013
12431
|
}
|
|
11014
12432
|
|
|
11015
12433
|
async deleteTriggerWithOptions(clusterId: string, Id: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteTriggerResponse> {
|
|
@@ -11030,10 +12448,10 @@ export default class Client extends OpenApi {
|
|
|
11030
12448
|
return $tea.cast<DeleteTriggerResponse>(await this.callApi(params, req, runtime), new DeleteTriggerResponse({}));
|
|
11031
12449
|
}
|
|
11032
12450
|
|
|
11033
|
-
async
|
|
12451
|
+
async deleteTrigger(clusterId: string, Id: string): Promise<DeleteTriggerResponse> {
|
|
11034
12452
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11035
12453
|
let headers : {[key: string ]: string} = { };
|
|
11036
|
-
return await this.
|
|
12454
|
+
return await this.deleteTriggerWithOptions(clusterId, Id, headers, runtime);
|
|
11037
12455
|
}
|
|
11038
12456
|
|
|
11039
12457
|
async deployPolicyInstanceWithOptions(clusterId: string, policyName: string, request: DeployPolicyInstanceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeployPolicyInstanceResponse> {
|
|
@@ -11069,10 +12487,10 @@ export default class Client extends OpenApi {
|
|
|
11069
12487
|
return $tea.cast<DeployPolicyInstanceResponse>(await this.callApi(params, req, runtime), new DeployPolicyInstanceResponse({}));
|
|
11070
12488
|
}
|
|
11071
12489
|
|
|
11072
|
-
async
|
|
12490
|
+
async deployPolicyInstance(clusterId: string, policyName: string, request: DeployPolicyInstanceRequest): Promise<DeployPolicyInstanceResponse> {
|
|
11073
12491
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11074
12492
|
let headers : {[key: string ]: string} = { };
|
|
11075
|
-
return await this.
|
|
12493
|
+
return await this.deployPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
|
|
11076
12494
|
}
|
|
11077
12495
|
|
|
11078
12496
|
async descirbeWorkflowWithOptions(workflowName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescirbeWorkflowResponse> {
|
|
@@ -11090,7 +12508,54 @@ export default class Client extends OpenApi {
|
|
|
11090
12508
|
reqBodyType: "json",
|
|
11091
12509
|
bodyType: "json",
|
|
11092
12510
|
});
|
|
11093
|
-
return $tea.cast<DescirbeWorkflowResponse>(await this.callApi(params, req, runtime), new DescirbeWorkflowResponse({}));
|
|
12511
|
+
return $tea.cast<DescirbeWorkflowResponse>(await this.callApi(params, req, runtime), new DescirbeWorkflowResponse({}));
|
|
12512
|
+
}
|
|
12513
|
+
|
|
12514
|
+
async descirbeWorkflow(workflowName: string): Promise<DescirbeWorkflowResponse> {
|
|
12515
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
12516
|
+
let headers : {[key: string ]: string} = { };
|
|
12517
|
+
return await this.descirbeWorkflowWithOptions(workflowName, headers, runtime);
|
|
12518
|
+
}
|
|
12519
|
+
|
|
12520
|
+
async describeAddonsWithOptions(request: DescribeAddonsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeAddonsResponse> {
|
|
12521
|
+
Util.validateModel(request);
|
|
12522
|
+
let query : {[key: string ]: any} = { };
|
|
12523
|
+
if (!Util.isUnset(request.clusterProfile)) {
|
|
12524
|
+
query["cluster_profile"] = request.clusterProfile;
|
|
12525
|
+
}
|
|
12526
|
+
|
|
12527
|
+
if (!Util.isUnset(request.clusterSpec)) {
|
|
12528
|
+
query["cluster_spec"] = request.clusterSpec;
|
|
12529
|
+
}
|
|
12530
|
+
|
|
12531
|
+
if (!Util.isUnset(request.clusterType)) {
|
|
12532
|
+
query["cluster_type"] = request.clusterType;
|
|
12533
|
+
}
|
|
12534
|
+
|
|
12535
|
+
if (!Util.isUnset(request.clusterVersion)) {
|
|
12536
|
+
query["cluster_version"] = request.clusterVersion;
|
|
12537
|
+
}
|
|
12538
|
+
|
|
12539
|
+
if (!Util.isUnset(request.region)) {
|
|
12540
|
+
query["region"] = request.region;
|
|
12541
|
+
}
|
|
12542
|
+
|
|
12543
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
12544
|
+
headers: headers,
|
|
12545
|
+
query: OpenApiUtil.query(query),
|
|
12546
|
+
});
|
|
12547
|
+
let params = new $OpenApi.Params({
|
|
12548
|
+
action: "DescribeAddons",
|
|
12549
|
+
version: "2015-12-15",
|
|
12550
|
+
protocol: "HTTPS",
|
|
12551
|
+
pathname: `/clusters/components/metadata`,
|
|
12552
|
+
method: "GET",
|
|
12553
|
+
authType: "AK",
|
|
12554
|
+
style: "ROA",
|
|
12555
|
+
reqBodyType: "json",
|
|
12556
|
+
bodyType: "json",
|
|
12557
|
+
});
|
|
12558
|
+
return $tea.cast<DescribeAddonsResponse>(await this.callApi(params, req, runtime), new DescribeAddonsResponse({}));
|
|
11094
12559
|
}
|
|
11095
12560
|
|
|
11096
12561
|
async describeAddons(request: DescribeAddonsRequest): Promise<DescribeAddonsResponse> {
|
|
@@ -11099,39 +12564,28 @@ export default class Client extends OpenApi {
|
|
|
11099
12564
|
return await this.describeAddonsWithOptions(request, headers, runtime);
|
|
11100
12565
|
}
|
|
11101
12566
|
|
|
11102
|
-
async
|
|
11103
|
-
Util.validateModel(request);
|
|
11104
|
-
let query : {[key: string ]: any} = { };
|
|
11105
|
-
if (!Util.isUnset(request.clusterType)) {
|
|
11106
|
-
query["cluster_type"] = request.clusterType;
|
|
11107
|
-
}
|
|
11108
|
-
|
|
11109
|
-
if (!Util.isUnset(request.region)) {
|
|
11110
|
-
query["region"] = request.region;
|
|
11111
|
-
}
|
|
11112
|
-
|
|
12567
|
+
async describeClusterAddonInstanceWithOptions(ClusterID: string, AddonName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterAddonInstanceResponse> {
|
|
11113
12568
|
let req = new $OpenApi.OpenApiRequest({
|
|
11114
12569
|
headers: headers,
|
|
11115
|
-
query: OpenApiUtil.query(query),
|
|
11116
12570
|
});
|
|
11117
12571
|
let params = new $OpenApi.Params({
|
|
11118
|
-
action: "
|
|
12572
|
+
action: "DescribeClusterAddonInstance",
|
|
11119
12573
|
version: "2015-12-15",
|
|
11120
12574
|
protocol: "HTTPS",
|
|
11121
|
-
pathname: `/clusters/components/
|
|
12575
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(ClusterID)}/components/${OpenApiUtil.getEncodeParam(AddonName)}/instance`,
|
|
11122
12576
|
method: "GET",
|
|
11123
12577
|
authType: "AK",
|
|
11124
12578
|
style: "ROA",
|
|
11125
12579
|
reqBodyType: "json",
|
|
11126
12580
|
bodyType: "json",
|
|
11127
12581
|
});
|
|
11128
|
-
return $tea.cast<
|
|
12582
|
+
return $tea.cast<DescribeClusterAddonInstanceResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonInstanceResponse({}));
|
|
11129
12583
|
}
|
|
11130
12584
|
|
|
11131
|
-
async
|
|
12585
|
+
async describeClusterAddonInstance(ClusterID: string, AddonName: string): Promise<DescribeClusterAddonInstanceResponse> {
|
|
11132
12586
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11133
12587
|
let headers : {[key: string ]: string} = { };
|
|
11134
|
-
return await this.
|
|
12588
|
+
return await this.describeClusterAddonInstanceWithOptions(ClusterID, AddonName, headers, runtime);
|
|
11135
12589
|
}
|
|
11136
12590
|
|
|
11137
12591
|
async describeClusterAddonMetadataWithOptions(clusterId: string, componentId: string, version: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterAddonMetadataResponse> {
|
|
@@ -11152,12 +12606,20 @@ export default class Client extends OpenApi {
|
|
|
11152
12606
|
return $tea.cast<DescribeClusterAddonMetadataResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonMetadataResponse({}));
|
|
11153
12607
|
}
|
|
11154
12608
|
|
|
11155
|
-
async
|
|
12609
|
+
async describeClusterAddonMetadata(clusterId: string, componentId: string, version: string): Promise<DescribeClusterAddonMetadataResponse> {
|
|
11156
12610
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11157
12611
|
let headers : {[key: string ]: string} = { };
|
|
11158
|
-
return await this.
|
|
12612
|
+
return await this.describeClusterAddonMetadataWithOptions(clusterId, componentId, version, headers, runtime);
|
|
11159
12613
|
}
|
|
11160
12614
|
|
|
12615
|
+
/**
|
|
12616
|
+
* @deprecated
|
|
12617
|
+
*
|
|
12618
|
+
* @param headers map
|
|
12619
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
12620
|
+
* @return DescribeClusterAddonUpgradeStatusResponse
|
|
12621
|
+
*/
|
|
12622
|
+
// Deprecated
|
|
11161
12623
|
async describeClusterAddonUpgradeStatusWithOptions(ClusterId: string, ComponentId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterAddonUpgradeStatusResponse> {
|
|
11162
12624
|
let req = new $OpenApi.OpenApiRequest({
|
|
11163
12625
|
headers: headers,
|
|
@@ -11176,10 +12638,16 @@ export default class Client extends OpenApi {
|
|
|
11176
12638
|
return $tea.cast<DescribeClusterAddonUpgradeStatusResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonUpgradeStatusResponse({}));
|
|
11177
12639
|
}
|
|
11178
12640
|
|
|
11179
|
-
|
|
12641
|
+
/**
|
|
12642
|
+
* @deprecated
|
|
12643
|
+
*
|
|
12644
|
+
* @return DescribeClusterAddonUpgradeStatusResponse
|
|
12645
|
+
*/
|
|
12646
|
+
// Deprecated
|
|
12647
|
+
async describeClusterAddonUpgradeStatus(ClusterId: string, ComponentId: string): Promise<DescribeClusterAddonUpgradeStatusResponse> {
|
|
11180
12648
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11181
12649
|
let headers : {[key: string ]: string} = { };
|
|
11182
|
-
return await this.
|
|
12650
|
+
return await this.describeClusterAddonUpgradeStatusWithOptions(ClusterId, ComponentId, headers, runtime);
|
|
11183
12651
|
}
|
|
11184
12652
|
|
|
11185
12653
|
async describeClusterAddonsUpgradeStatusWithOptions(ClusterId: string, tmpReq: DescribeClusterAddonsUpgradeStatusRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterAddonsUpgradeStatusResponse> {
|
|
@@ -11213,10 +12681,10 @@ export default class Client extends OpenApi {
|
|
|
11213
12681
|
return $tea.cast<DescribeClusterAddonsUpgradeStatusResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonsUpgradeStatusResponse({}));
|
|
11214
12682
|
}
|
|
11215
12683
|
|
|
11216
|
-
async
|
|
12684
|
+
async describeClusterAddonsUpgradeStatus(ClusterId: string, request: DescribeClusterAddonsUpgradeStatusRequest): Promise<DescribeClusterAddonsUpgradeStatusResponse> {
|
|
11217
12685
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11218
12686
|
let headers : {[key: string ]: string} = { };
|
|
11219
|
-
return await this.
|
|
12687
|
+
return await this.describeClusterAddonsUpgradeStatusWithOptions(ClusterId, request, headers, runtime);
|
|
11220
12688
|
}
|
|
11221
12689
|
|
|
11222
12690
|
async describeClusterAddonsVersionWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterAddonsVersionResponse> {
|
|
@@ -11237,10 +12705,10 @@ export default class Client extends OpenApi {
|
|
|
11237
12705
|
return $tea.cast<DescribeClusterAddonsVersionResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonsVersionResponse({}));
|
|
11238
12706
|
}
|
|
11239
12707
|
|
|
11240
|
-
async
|
|
12708
|
+
async describeClusterAddonsVersion(ClusterId: string): Promise<DescribeClusterAddonsVersionResponse> {
|
|
11241
12709
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11242
12710
|
let headers : {[key: string ]: string} = { };
|
|
11243
|
-
return await this.
|
|
12711
|
+
return await this.describeClusterAddonsVersionWithOptions(ClusterId, headers, runtime);
|
|
11244
12712
|
}
|
|
11245
12713
|
|
|
11246
12714
|
async describeClusterAttachScriptsWithOptions(ClusterId: string, request: DescribeClusterAttachScriptsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterAttachScriptsResponse> {
|
|
@@ -11288,10 +12756,10 @@ export default class Client extends OpenApi {
|
|
|
11288
12756
|
return $tea.cast<DescribeClusterAttachScriptsResponse>(await this.callApi(params, req, runtime), new DescribeClusterAttachScriptsResponse({}));
|
|
11289
12757
|
}
|
|
11290
12758
|
|
|
11291
|
-
async
|
|
12759
|
+
async describeClusterAttachScripts(ClusterId: string, request: DescribeClusterAttachScriptsRequest): Promise<DescribeClusterAttachScriptsResponse> {
|
|
11292
12760
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11293
12761
|
let headers : {[key: string ]: string} = { };
|
|
11294
|
-
return await this.
|
|
12762
|
+
return await this.describeClusterAttachScriptsWithOptions(ClusterId, request, headers, runtime);
|
|
11295
12763
|
}
|
|
11296
12764
|
|
|
11297
12765
|
async describeClusterDetailWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterDetailResponse> {
|
|
@@ -11312,10 +12780,10 @@ export default class Client extends OpenApi {
|
|
|
11312
12780
|
return $tea.cast<DescribeClusterDetailResponse>(await this.callApi(params, req, runtime), new DescribeClusterDetailResponse({}));
|
|
11313
12781
|
}
|
|
11314
12782
|
|
|
11315
|
-
async
|
|
12783
|
+
async describeClusterDetail(ClusterId: string): Promise<DescribeClusterDetailResponse> {
|
|
11316
12784
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11317
12785
|
let headers : {[key: string ]: string} = { };
|
|
11318
|
-
return await this.
|
|
12786
|
+
return await this.describeClusterDetailWithOptions(ClusterId, headers, runtime);
|
|
11319
12787
|
}
|
|
11320
12788
|
|
|
11321
12789
|
async describeClusterEventsWithOptions(ClusterId: string, request: DescribeClusterEventsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterEventsResponse> {
|
|
@@ -11351,10 +12819,10 @@ export default class Client extends OpenApi {
|
|
|
11351
12819
|
return $tea.cast<DescribeClusterEventsResponse>(await this.callApi(params, req, runtime), new DescribeClusterEventsResponse({}));
|
|
11352
12820
|
}
|
|
11353
12821
|
|
|
11354
|
-
async
|
|
12822
|
+
async describeClusterEvents(ClusterId: string, request: DescribeClusterEventsRequest): Promise<DescribeClusterEventsResponse> {
|
|
11355
12823
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11356
12824
|
let headers : {[key: string ]: string} = { };
|
|
11357
|
-
return await this.
|
|
12825
|
+
return await this.describeClusterEventsWithOptions(ClusterId, request, headers, runtime);
|
|
11358
12826
|
}
|
|
11359
12827
|
|
|
11360
12828
|
async describeClusterLogsWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterLogsResponse> {
|
|
@@ -11375,10 +12843,10 @@ export default class Client extends OpenApi {
|
|
|
11375
12843
|
return $tea.cast<DescribeClusterLogsResponse>(await this.callApi(params, req, runtime), new DescribeClusterLogsResponse({}));
|
|
11376
12844
|
}
|
|
11377
12845
|
|
|
11378
|
-
async
|
|
12846
|
+
async describeClusterLogs(ClusterId: string): Promise<DescribeClusterLogsResponse> {
|
|
11379
12847
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11380
12848
|
let headers : {[key: string ]: string} = { };
|
|
11381
|
-
return await this.
|
|
12849
|
+
return await this.describeClusterLogsWithOptions(ClusterId, headers, runtime);
|
|
11382
12850
|
}
|
|
11383
12851
|
|
|
11384
12852
|
async describeClusterNodePoolDetailWithOptions(ClusterId: string, NodepoolId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterNodePoolDetailResponse> {
|
|
@@ -11399,10 +12867,10 @@ export default class Client extends OpenApi {
|
|
|
11399
12867
|
return $tea.cast<DescribeClusterNodePoolDetailResponse>(await this.callApi(params, req, runtime), new DescribeClusterNodePoolDetailResponse({}));
|
|
11400
12868
|
}
|
|
11401
12869
|
|
|
11402
|
-
async
|
|
12870
|
+
async describeClusterNodePoolDetail(ClusterId: string, NodepoolId: string): Promise<DescribeClusterNodePoolDetailResponse> {
|
|
11403
12871
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11404
12872
|
let headers : {[key: string ]: string} = { };
|
|
11405
|
-
return await this.
|
|
12873
|
+
return await this.describeClusterNodePoolDetailWithOptions(ClusterId, NodepoolId, headers, runtime);
|
|
11406
12874
|
}
|
|
11407
12875
|
|
|
11408
12876
|
async describeClusterNodePoolsWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterNodePoolsResponse> {
|
|
@@ -11423,10 +12891,10 @@ export default class Client extends OpenApi {
|
|
|
11423
12891
|
return $tea.cast<DescribeClusterNodePoolsResponse>(await this.callApi(params, req, runtime), new DescribeClusterNodePoolsResponse({}));
|
|
11424
12892
|
}
|
|
11425
12893
|
|
|
11426
|
-
async
|
|
12894
|
+
async describeClusterNodePools(ClusterId: string): Promise<DescribeClusterNodePoolsResponse> {
|
|
11427
12895
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11428
12896
|
let headers : {[key: string ]: string} = { };
|
|
11429
|
-
return await this.
|
|
12897
|
+
return await this.describeClusterNodePoolsWithOptions(ClusterId, headers, runtime);
|
|
11430
12898
|
}
|
|
11431
12899
|
|
|
11432
12900
|
async describeClusterNodesWithOptions(ClusterId: string, request: DescribeClusterNodesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterNodesResponse> {
|
|
@@ -11470,10 +12938,10 @@ export default class Client extends OpenApi {
|
|
|
11470
12938
|
return $tea.cast<DescribeClusterNodesResponse>(await this.callApi(params, req, runtime), new DescribeClusterNodesResponse({}));
|
|
11471
12939
|
}
|
|
11472
12940
|
|
|
11473
|
-
async
|
|
12941
|
+
async describeClusterNodes(ClusterId: string, request: DescribeClusterNodesRequest): Promise<DescribeClusterNodesResponse> {
|
|
11474
12942
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11475
12943
|
let headers : {[key: string ]: string} = { };
|
|
11476
|
-
return await this.
|
|
12944
|
+
return await this.describeClusterNodesWithOptions(ClusterId, request, headers, runtime);
|
|
11477
12945
|
}
|
|
11478
12946
|
|
|
11479
12947
|
async describeClusterResourcesWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterResourcesResponse> {
|
|
@@ -11494,10 +12962,10 @@ export default class Client extends OpenApi {
|
|
|
11494
12962
|
return $tea.cast<DescribeClusterResourcesResponse>(await this.callApi(params, req, runtime), new DescribeClusterResourcesResponse({}));
|
|
11495
12963
|
}
|
|
11496
12964
|
|
|
11497
|
-
async
|
|
12965
|
+
async describeClusterResources(ClusterId: string): Promise<DescribeClusterResourcesResponse> {
|
|
11498
12966
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11499
12967
|
let headers : {[key: string ]: string} = { };
|
|
11500
|
-
return await this.
|
|
12968
|
+
return await this.describeClusterResourcesWithOptions(ClusterId, headers, runtime);
|
|
11501
12969
|
}
|
|
11502
12970
|
|
|
11503
12971
|
async describeClusterTasksWithOptions(clusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterTasksResponse> {
|
|
@@ -11518,10 +12986,10 @@ export default class Client extends OpenApi {
|
|
|
11518
12986
|
return $tea.cast<DescribeClusterTasksResponse>(await this.callApi(params, req, runtime), new DescribeClusterTasksResponse({}));
|
|
11519
12987
|
}
|
|
11520
12988
|
|
|
11521
|
-
async
|
|
12989
|
+
async describeClusterTasks(clusterId: string): Promise<DescribeClusterTasksResponse> {
|
|
11522
12990
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11523
12991
|
let headers : {[key: string ]: string} = { };
|
|
11524
|
-
return await this.
|
|
12992
|
+
return await this.describeClusterTasksWithOptions(clusterId, headers, runtime);
|
|
11525
12993
|
}
|
|
11526
12994
|
|
|
11527
12995
|
async describeClusterUserKubeconfigWithOptions(ClusterId: string, request: DescribeClusterUserKubeconfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterUserKubeconfigResponse> {
|
|
@@ -11553,12 +13021,21 @@ export default class Client extends OpenApi {
|
|
|
11553
13021
|
return $tea.cast<DescribeClusterUserKubeconfigResponse>(await this.callApi(params, req, runtime), new DescribeClusterUserKubeconfigResponse({}));
|
|
11554
13022
|
}
|
|
11555
13023
|
|
|
11556
|
-
async
|
|
13024
|
+
async describeClusterUserKubeconfig(ClusterId: string, request: DescribeClusterUserKubeconfigRequest): Promise<DescribeClusterUserKubeconfigResponse> {
|
|
11557
13025
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11558
13026
|
let headers : {[key: string ]: string} = { };
|
|
11559
|
-
return await this.
|
|
13027
|
+
return await this.describeClusterUserKubeconfigWithOptions(ClusterId, request, headers, runtime);
|
|
11560
13028
|
}
|
|
11561
13029
|
|
|
13030
|
+
/**
|
|
13031
|
+
* @deprecated
|
|
13032
|
+
*
|
|
13033
|
+
* @param request DescribeClusterV2UserKubeconfigRequest
|
|
13034
|
+
* @param headers map
|
|
13035
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
13036
|
+
* @return DescribeClusterV2UserKubeconfigResponse
|
|
13037
|
+
*/
|
|
13038
|
+
// Deprecated
|
|
11562
13039
|
async describeClusterV2UserKubeconfigWithOptions(ClusterId: string, request: DescribeClusterV2UserKubeconfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterV2UserKubeconfigResponse> {
|
|
11563
13040
|
Util.validateModel(request);
|
|
11564
13041
|
let query : {[key: string ]: any} = { };
|
|
@@ -11584,12 +13061,52 @@ export default class Client extends OpenApi {
|
|
|
11584
13061
|
return $tea.cast<DescribeClusterV2UserKubeconfigResponse>(await this.callApi(params, req, runtime), new DescribeClusterV2UserKubeconfigResponse({}));
|
|
11585
13062
|
}
|
|
11586
13063
|
|
|
11587
|
-
|
|
13064
|
+
/**
|
|
13065
|
+
* @deprecated
|
|
13066
|
+
*
|
|
13067
|
+
* @param request DescribeClusterV2UserKubeconfigRequest
|
|
13068
|
+
* @return DescribeClusterV2UserKubeconfigResponse
|
|
13069
|
+
*/
|
|
13070
|
+
// Deprecated
|
|
13071
|
+
async describeClusterV2UserKubeconfig(ClusterId: string, request: DescribeClusterV2UserKubeconfigRequest): Promise<DescribeClusterV2UserKubeconfigResponse> {
|
|
11588
13072
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11589
13073
|
let headers : {[key: string ]: string} = { };
|
|
11590
|
-
return await this.
|
|
13074
|
+
return await this.describeClusterV2UserKubeconfigWithOptions(ClusterId, request, headers, runtime);
|
|
13075
|
+
}
|
|
13076
|
+
|
|
13077
|
+
async describeClusterVulsWithOptions(clusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterVulsResponse> {
|
|
13078
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
13079
|
+
headers: headers,
|
|
13080
|
+
});
|
|
13081
|
+
let params = new $OpenApi.Params({
|
|
13082
|
+
action: "DescribeClusterVuls",
|
|
13083
|
+
version: "2015-12-15",
|
|
13084
|
+
protocol: "HTTPS",
|
|
13085
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterId)}/vuls`,
|
|
13086
|
+
method: "GET",
|
|
13087
|
+
authType: "AK",
|
|
13088
|
+
style: "ROA",
|
|
13089
|
+
reqBodyType: "json",
|
|
13090
|
+
bodyType: "json",
|
|
13091
|
+
});
|
|
13092
|
+
return $tea.cast<DescribeClusterVulsResponse>(await this.callApi(params, req, runtime), new DescribeClusterVulsResponse({}));
|
|
11591
13093
|
}
|
|
11592
13094
|
|
|
13095
|
+
async describeClusterVuls(clusterId: string): Promise<DescribeClusterVulsResponse> {
|
|
13096
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
13097
|
+
let headers : {[key: string ]: string} = { };
|
|
13098
|
+
return await this.describeClusterVulsWithOptions(clusterId, headers, runtime);
|
|
13099
|
+
}
|
|
13100
|
+
|
|
13101
|
+
/**
|
|
13102
|
+
* @deprecated
|
|
13103
|
+
*
|
|
13104
|
+
* @param request DescribeClustersRequest
|
|
13105
|
+
* @param headers map
|
|
13106
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
13107
|
+
* @return DescribeClustersResponse
|
|
13108
|
+
*/
|
|
13109
|
+
// Deprecated
|
|
11593
13110
|
async describeClustersWithOptions(request: DescribeClustersRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClustersResponse> {
|
|
11594
13111
|
Util.validateModel(request);
|
|
11595
13112
|
let query : {[key: string ]: any} = { };
|
|
@@ -11619,10 +13136,17 @@ export default class Client extends OpenApi {
|
|
|
11619
13136
|
return $tea.cast<DescribeClustersResponse>(await this.callApi(params, req, runtime), new DescribeClustersResponse({}));
|
|
11620
13137
|
}
|
|
11621
13138
|
|
|
11622
|
-
|
|
13139
|
+
/**
|
|
13140
|
+
* @deprecated
|
|
13141
|
+
*
|
|
13142
|
+
* @param request DescribeClustersRequest
|
|
13143
|
+
* @return DescribeClustersResponse
|
|
13144
|
+
*/
|
|
13145
|
+
// Deprecated
|
|
13146
|
+
async describeClusters(request: DescribeClustersRequest): Promise<DescribeClustersResponse> {
|
|
11623
13147
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11624
13148
|
let headers : {[key: string ]: string} = { };
|
|
11625
|
-
return await this.
|
|
13149
|
+
return await this.describeClustersWithOptions(request, headers, runtime);
|
|
11626
13150
|
}
|
|
11627
13151
|
|
|
11628
13152
|
async describeClustersV1WithOptions(request: DescribeClustersV1Request, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClustersV1Response> {
|
|
@@ -11674,10 +13198,10 @@ export default class Client extends OpenApi {
|
|
|
11674
13198
|
return $tea.cast<DescribeClustersV1Response>(await this.callApi(params, req, runtime), new DescribeClustersV1Response({}));
|
|
11675
13199
|
}
|
|
11676
13200
|
|
|
11677
|
-
async
|
|
13201
|
+
async describeClustersV1(request: DescribeClustersV1Request): Promise<DescribeClustersV1Response> {
|
|
11678
13202
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11679
13203
|
let headers : {[key: string ]: string} = { };
|
|
11680
|
-
return await this.
|
|
13204
|
+
return await this.describeClustersV1WithOptions(request, headers, runtime);
|
|
11681
13205
|
}
|
|
11682
13206
|
|
|
11683
13207
|
async describeEdgeMachineActiveProcessWithOptions(edgeMachineid: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeEdgeMachineActiveProcessResponse> {
|
|
@@ -11698,10 +13222,10 @@ export default class Client extends OpenApi {
|
|
|
11698
13222
|
return $tea.cast<DescribeEdgeMachineActiveProcessResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachineActiveProcessResponse({}));
|
|
11699
13223
|
}
|
|
11700
13224
|
|
|
11701
|
-
async
|
|
13225
|
+
async describeEdgeMachineActiveProcess(edgeMachineid: string): Promise<DescribeEdgeMachineActiveProcessResponse> {
|
|
11702
13226
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11703
13227
|
let headers : {[key: string ]: string} = { };
|
|
11704
|
-
return await this.
|
|
13228
|
+
return await this.describeEdgeMachineActiveProcessWithOptions(edgeMachineid, headers, runtime);
|
|
11705
13229
|
}
|
|
11706
13230
|
|
|
11707
13231
|
async describeEdgeMachineModelsWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeEdgeMachineModelsResponse> {
|
|
@@ -11722,10 +13246,10 @@ export default class Client extends OpenApi {
|
|
|
11722
13246
|
return $tea.cast<DescribeEdgeMachineModelsResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachineModelsResponse({}));
|
|
11723
13247
|
}
|
|
11724
13248
|
|
|
11725
|
-
async
|
|
13249
|
+
async describeEdgeMachineModels(): Promise<DescribeEdgeMachineModelsResponse> {
|
|
11726
13250
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11727
13251
|
let headers : {[key: string ]: string} = { };
|
|
11728
|
-
return await this.
|
|
13252
|
+
return await this.describeEdgeMachineModelsWithOptions(headers, runtime);
|
|
11729
13253
|
}
|
|
11730
13254
|
|
|
11731
13255
|
async describeEdgeMachineTunnelConfigDetailWithOptions(edgeMachineid: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeEdgeMachineTunnelConfigDetailResponse> {
|
|
@@ -11746,10 +13270,10 @@ export default class Client extends OpenApi {
|
|
|
11746
13270
|
return $tea.cast<DescribeEdgeMachineTunnelConfigDetailResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachineTunnelConfigDetailResponse({}));
|
|
11747
13271
|
}
|
|
11748
13272
|
|
|
11749
|
-
async
|
|
13273
|
+
async describeEdgeMachineTunnelConfigDetail(edgeMachineid: string): Promise<DescribeEdgeMachineTunnelConfigDetailResponse> {
|
|
11750
13274
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11751
13275
|
let headers : {[key: string ]: string} = { };
|
|
11752
|
-
return await this.
|
|
13276
|
+
return await this.describeEdgeMachineTunnelConfigDetailWithOptions(edgeMachineid, headers, runtime);
|
|
11753
13277
|
}
|
|
11754
13278
|
|
|
11755
13279
|
async describeEdgeMachinesWithOptions(request: DescribeEdgeMachinesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeEdgeMachinesResponse> {
|
|
@@ -11797,10 +13321,10 @@ export default class Client extends OpenApi {
|
|
|
11797
13321
|
return $tea.cast<DescribeEdgeMachinesResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachinesResponse({}));
|
|
11798
13322
|
}
|
|
11799
13323
|
|
|
11800
|
-
async
|
|
13324
|
+
async describeEdgeMachines(request: DescribeEdgeMachinesRequest): Promise<DescribeEdgeMachinesResponse> {
|
|
11801
13325
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11802
13326
|
let headers : {[key: string ]: string} = { };
|
|
11803
|
-
return await this.
|
|
13327
|
+
return await this.describeEdgeMachinesWithOptions(request, headers, runtime);
|
|
11804
13328
|
}
|
|
11805
13329
|
|
|
11806
13330
|
async describeEventsWithOptions(request: DescribeEventsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeEventsResponse> {
|
|
@@ -11840,12 +13364,20 @@ export default class Client extends OpenApi {
|
|
|
11840
13364
|
return $tea.cast<DescribeEventsResponse>(await this.callApi(params, req, runtime), new DescribeEventsResponse({}));
|
|
11841
13365
|
}
|
|
11842
13366
|
|
|
11843
|
-
async
|
|
13367
|
+
async describeEvents(request: DescribeEventsRequest): Promise<DescribeEventsResponse> {
|
|
11844
13368
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11845
13369
|
let headers : {[key: string ]: string} = { };
|
|
11846
|
-
return await this.
|
|
13370
|
+
return await this.describeEventsWithOptions(request, headers, runtime);
|
|
11847
13371
|
}
|
|
11848
13372
|
|
|
13373
|
+
/**
|
|
13374
|
+
* For more information, see [Register an external Kubernetes cluster](~~121053~~).
|
|
13375
|
+
*
|
|
13376
|
+
* @param request DescribeExternalAgentRequest
|
|
13377
|
+
* @param headers map
|
|
13378
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
13379
|
+
* @return DescribeExternalAgentResponse
|
|
13380
|
+
*/
|
|
11849
13381
|
async describeExternalAgentWithOptions(ClusterId: string, request: DescribeExternalAgentRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeExternalAgentResponse> {
|
|
11850
13382
|
Util.validateModel(request);
|
|
11851
13383
|
let query : {[key: string ]: any} = { };
|
|
@@ -11871,10 +13403,16 @@ export default class Client extends OpenApi {
|
|
|
11871
13403
|
return $tea.cast<DescribeExternalAgentResponse>(await this.callApi(params, req, runtime), new DescribeExternalAgentResponse({}));
|
|
11872
13404
|
}
|
|
11873
13405
|
|
|
11874
|
-
|
|
13406
|
+
/**
|
|
13407
|
+
* For more information, see [Register an external Kubernetes cluster](~~121053~~).
|
|
13408
|
+
*
|
|
13409
|
+
* @param request DescribeExternalAgentRequest
|
|
13410
|
+
* @return DescribeExternalAgentResponse
|
|
13411
|
+
*/
|
|
13412
|
+
async describeExternalAgent(ClusterId: string, request: DescribeExternalAgentRequest): Promise<DescribeExternalAgentResponse> {
|
|
11875
13413
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11876
13414
|
let headers : {[key: string ]: string} = { };
|
|
11877
|
-
return await this.
|
|
13415
|
+
return await this.describeExternalAgentWithOptions(ClusterId, request, headers, runtime);
|
|
11878
13416
|
}
|
|
11879
13417
|
|
|
11880
13418
|
async describeKubernetesVersionMetadataWithOptions(request: DescribeKubernetesVersionMetadataRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeKubernetesVersionMetadataResponse> {
|
|
@@ -11888,6 +13426,10 @@ export default class Client extends OpenApi {
|
|
|
11888
13426
|
query["KubernetesVersion"] = request.kubernetesVersion;
|
|
11889
13427
|
}
|
|
11890
13428
|
|
|
13429
|
+
if (!Util.isUnset(request.mode)) {
|
|
13430
|
+
query["Mode"] = request.mode;
|
|
13431
|
+
}
|
|
13432
|
+
|
|
11891
13433
|
if (!Util.isUnset(request.profile)) {
|
|
11892
13434
|
query["Profile"] = request.profile;
|
|
11893
13435
|
}
|
|
@@ -11918,15 +13460,22 @@ export default class Client extends OpenApi {
|
|
|
11918
13460
|
return $tea.cast<DescribeKubernetesVersionMetadataResponse>(await this.callApi(params, req, runtime), new DescribeKubernetesVersionMetadataResponse({}));
|
|
11919
13461
|
}
|
|
11920
13462
|
|
|
11921
|
-
async
|
|
13463
|
+
async describeKubernetesVersionMetadata(request: DescribeKubernetesVersionMetadataRequest): Promise<DescribeKubernetesVersionMetadataResponse> {
|
|
11922
13464
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11923
13465
|
let headers : {[key: string ]: string} = { };
|
|
11924
|
-
return await this.
|
|
13466
|
+
return await this.describeKubernetesVersionMetadataWithOptions(request, headers, runtime);
|
|
11925
13467
|
}
|
|
11926
13468
|
|
|
11927
|
-
async describeNodePoolVulsWithOptions(clusterId: string, nodepoolId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeNodePoolVulsResponse> {
|
|
13469
|
+
async describeNodePoolVulsWithOptions(clusterId: string, nodepoolId: string, request: DescribeNodePoolVulsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeNodePoolVulsResponse> {
|
|
13470
|
+
Util.validateModel(request);
|
|
13471
|
+
let query : {[key: string ]: any} = { };
|
|
13472
|
+
if (!Util.isUnset(request.necessity)) {
|
|
13473
|
+
query["necessity"] = request.necessity;
|
|
13474
|
+
}
|
|
13475
|
+
|
|
11928
13476
|
let req = new $OpenApi.OpenApiRequest({
|
|
11929
13477
|
headers: headers,
|
|
13478
|
+
query: OpenApiUtil.query(query),
|
|
11930
13479
|
});
|
|
11931
13480
|
let params = new $OpenApi.Params({
|
|
11932
13481
|
action: "DescribeNodePoolVuls",
|
|
@@ -11942,10 +13491,10 @@ export default class Client extends OpenApi {
|
|
|
11942
13491
|
return $tea.cast<DescribeNodePoolVulsResponse>(await this.callApi(params, req, runtime), new DescribeNodePoolVulsResponse({}));
|
|
11943
13492
|
}
|
|
11944
13493
|
|
|
11945
|
-
async
|
|
13494
|
+
async describeNodePoolVuls(clusterId: string, nodepoolId: string, request: DescribeNodePoolVulsRequest): Promise<DescribeNodePoolVulsResponse> {
|
|
11946
13495
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11947
13496
|
let headers : {[key: string ]: string} = { };
|
|
11948
|
-
return await this.
|
|
13497
|
+
return await this.describeNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime);
|
|
11949
13498
|
}
|
|
11950
13499
|
|
|
11951
13500
|
async describePoliciesWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribePoliciesResponse> {
|
|
@@ -11966,10 +13515,10 @@ export default class Client extends OpenApi {
|
|
|
11966
13515
|
return $tea.cast<DescribePoliciesResponse>(await this.callApi(params, req, runtime), new DescribePoliciesResponse({}));
|
|
11967
13516
|
}
|
|
11968
13517
|
|
|
11969
|
-
async
|
|
13518
|
+
async describePolicies(): Promise<DescribePoliciesResponse> {
|
|
11970
13519
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11971
13520
|
let headers : {[key: string ]: string} = { };
|
|
11972
|
-
return await this.
|
|
13521
|
+
return await this.describePoliciesWithOptions(headers, runtime);
|
|
11973
13522
|
}
|
|
11974
13523
|
|
|
11975
13524
|
async describePolicyDetailsWithOptions(policyName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribePolicyDetailsResponse> {
|
|
@@ -11990,10 +13539,10 @@ export default class Client extends OpenApi {
|
|
|
11990
13539
|
return $tea.cast<DescribePolicyDetailsResponse>(await this.callApi(params, req, runtime), new DescribePolicyDetailsResponse({}));
|
|
11991
13540
|
}
|
|
11992
13541
|
|
|
11993
|
-
async
|
|
13542
|
+
async describePolicyDetails(policyName: string): Promise<DescribePolicyDetailsResponse> {
|
|
11994
13543
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11995
13544
|
let headers : {[key: string ]: string} = { };
|
|
11996
|
-
return await this.
|
|
13545
|
+
return await this.describePolicyDetailsWithOptions(policyName, headers, runtime);
|
|
11997
13546
|
}
|
|
11998
13547
|
|
|
11999
13548
|
async describePolicyGovernanceInClusterWithOptions(clusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribePolicyGovernanceInClusterResponse> {
|
|
@@ -12014,10 +13563,10 @@ export default class Client extends OpenApi {
|
|
|
12014
13563
|
return $tea.cast<DescribePolicyGovernanceInClusterResponse>(await this.callApi(params, req, runtime), new DescribePolicyGovernanceInClusterResponse({}));
|
|
12015
13564
|
}
|
|
12016
13565
|
|
|
12017
|
-
async
|
|
13566
|
+
async describePolicyGovernanceInCluster(clusterId: string): Promise<DescribePolicyGovernanceInClusterResponse> {
|
|
12018
13567
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12019
13568
|
let headers : {[key: string ]: string} = { };
|
|
12020
|
-
return await this.
|
|
13569
|
+
return await this.describePolicyGovernanceInClusterWithOptions(clusterId, headers, runtime);
|
|
12021
13570
|
}
|
|
12022
13571
|
|
|
12023
13572
|
async describePolicyInstancesWithOptions(clusterId: string, request: DescribePolicyInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribePolicyInstancesResponse> {
|
|
@@ -12049,10 +13598,10 @@ export default class Client extends OpenApi {
|
|
|
12049
13598
|
return $tea.cast<DescribePolicyInstancesResponse>(await this.callApi(params, req, runtime), new DescribePolicyInstancesResponse({}));
|
|
12050
13599
|
}
|
|
12051
13600
|
|
|
12052
|
-
async
|
|
13601
|
+
async describePolicyInstances(clusterId: string, request: DescribePolicyInstancesRequest): Promise<DescribePolicyInstancesResponse> {
|
|
12053
13602
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12054
13603
|
let headers : {[key: string ]: string} = { };
|
|
12055
|
-
return await this.
|
|
13604
|
+
return await this.describePolicyInstancesWithOptions(clusterId, request, headers, runtime);
|
|
12056
13605
|
}
|
|
12057
13606
|
|
|
12058
13607
|
async describePolicyInstancesStatusWithOptions(clusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribePolicyInstancesStatusResponse> {
|
|
@@ -12073,10 +13622,59 @@ export default class Client extends OpenApi {
|
|
|
12073
13622
|
return $tea.cast<DescribePolicyInstancesStatusResponse>(await this.callApi(params, req, runtime), new DescribePolicyInstancesStatusResponse({}));
|
|
12074
13623
|
}
|
|
12075
13624
|
|
|
12076
|
-
async
|
|
13625
|
+
async describePolicyInstancesStatus(clusterId: string): Promise<DescribePolicyInstancesStatusResponse> {
|
|
12077
13626
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12078
13627
|
let headers : {[key: string ]: string} = { };
|
|
12079
|
-
return await this.
|
|
13628
|
+
return await this.describePolicyInstancesStatusWithOptions(clusterId, headers, runtime);
|
|
13629
|
+
}
|
|
13630
|
+
|
|
13631
|
+
/**
|
|
13632
|
+
* > You can call this operation only with an Alibaba Cloud account.
|
|
13633
|
+
*
|
|
13634
|
+
* @param request DescribeSubaccountK8sClusterUserConfigRequest
|
|
13635
|
+
* @param headers map
|
|
13636
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
13637
|
+
* @return DescribeSubaccountK8sClusterUserConfigResponse
|
|
13638
|
+
*/
|
|
13639
|
+
async describeSubaccountK8sClusterUserConfigWithOptions(ClusterId: string, Uid: string, request: DescribeSubaccountK8sClusterUserConfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeSubaccountK8sClusterUserConfigResponse> {
|
|
13640
|
+
Util.validateModel(request);
|
|
13641
|
+
let query : {[key: string ]: any} = { };
|
|
13642
|
+
if (!Util.isUnset(request.privateIpAddress)) {
|
|
13643
|
+
query["PrivateIpAddress"] = request.privateIpAddress;
|
|
13644
|
+
}
|
|
13645
|
+
|
|
13646
|
+
if (!Util.isUnset(request.temporaryDurationMinutes)) {
|
|
13647
|
+
query["TemporaryDurationMinutes"] = request.temporaryDurationMinutes;
|
|
13648
|
+
}
|
|
13649
|
+
|
|
13650
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
13651
|
+
headers: headers,
|
|
13652
|
+
query: OpenApiUtil.query(query),
|
|
13653
|
+
});
|
|
13654
|
+
let params = new $OpenApi.Params({
|
|
13655
|
+
action: "DescribeSubaccountK8sClusterUserConfig",
|
|
13656
|
+
version: "2015-12-15",
|
|
13657
|
+
protocol: "HTTPS",
|
|
13658
|
+
pathname: `/k8s/${OpenApiUtil.getEncodeParam(ClusterId)}/users/${OpenApiUtil.getEncodeParam(Uid)}/user_config`,
|
|
13659
|
+
method: "GET",
|
|
13660
|
+
authType: "AK",
|
|
13661
|
+
style: "ROA",
|
|
13662
|
+
reqBodyType: "json",
|
|
13663
|
+
bodyType: "json",
|
|
13664
|
+
});
|
|
13665
|
+
return $tea.cast<DescribeSubaccountK8sClusterUserConfigResponse>(await this.callApi(params, req, runtime), new DescribeSubaccountK8sClusterUserConfigResponse({}));
|
|
13666
|
+
}
|
|
13667
|
+
|
|
13668
|
+
/**
|
|
13669
|
+
* > You can call this operation only with an Alibaba Cloud account.
|
|
13670
|
+
*
|
|
13671
|
+
* @param request DescribeSubaccountK8sClusterUserConfigRequest
|
|
13672
|
+
* @return DescribeSubaccountK8sClusterUserConfigResponse
|
|
13673
|
+
*/
|
|
13674
|
+
async describeSubaccountK8sClusterUserConfig(ClusterId: string, Uid: string, request: DescribeSubaccountK8sClusterUserConfigRequest): Promise<DescribeSubaccountK8sClusterUserConfigResponse> {
|
|
13675
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
13676
|
+
let headers : {[key: string ]: string} = { };
|
|
13677
|
+
return await this.describeSubaccountK8sClusterUserConfigWithOptions(ClusterId, Uid, request, headers, runtime);
|
|
12080
13678
|
}
|
|
12081
13679
|
|
|
12082
13680
|
async describeTaskInfoWithOptions(taskId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeTaskInfoResponse> {
|
|
@@ -12097,10 +13695,10 @@ export default class Client extends OpenApi {
|
|
|
12097
13695
|
return $tea.cast<DescribeTaskInfoResponse>(await this.callApi(params, req, runtime), new DescribeTaskInfoResponse({}));
|
|
12098
13696
|
}
|
|
12099
13697
|
|
|
12100
|
-
async
|
|
13698
|
+
async describeTaskInfo(taskId: string): Promise<DescribeTaskInfoResponse> {
|
|
12101
13699
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12102
13700
|
let headers : {[key: string ]: string} = { };
|
|
12103
|
-
return await this.
|
|
13701
|
+
return await this.describeTaskInfoWithOptions(taskId, headers, runtime);
|
|
12104
13702
|
}
|
|
12105
13703
|
|
|
12106
13704
|
async describeTemplateAttributeWithOptions(TemplateId: string, request: DescribeTemplateAttributeRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeTemplateAttributeResponse> {
|
|
@@ -12128,10 +13726,10 @@ export default class Client extends OpenApi {
|
|
|
12128
13726
|
return $tea.cast<DescribeTemplateAttributeResponse>(await this.callApi(params, req, runtime), new DescribeTemplateAttributeResponse({}));
|
|
12129
13727
|
}
|
|
12130
13728
|
|
|
12131
|
-
async
|
|
13729
|
+
async describeTemplateAttribute(TemplateId: string, request: DescribeTemplateAttributeRequest): Promise<DescribeTemplateAttributeResponse> {
|
|
12132
13730
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12133
13731
|
let headers : {[key: string ]: string} = { };
|
|
12134
|
-
return await this.
|
|
13732
|
+
return await this.describeTemplateAttributeWithOptions(TemplateId, request, headers, runtime);
|
|
12135
13733
|
}
|
|
12136
13734
|
|
|
12137
13735
|
async describeTemplatesWithOptions(request: DescribeTemplatesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeTemplatesResponse> {
|
|
@@ -12167,10 +13765,10 @@ export default class Client extends OpenApi {
|
|
|
12167
13765
|
return $tea.cast<DescribeTemplatesResponse>(await this.callApi(params, req, runtime), new DescribeTemplatesResponse({}));
|
|
12168
13766
|
}
|
|
12169
13767
|
|
|
12170
|
-
async
|
|
13768
|
+
async describeTemplates(request: DescribeTemplatesRequest): Promise<DescribeTemplatesResponse> {
|
|
12171
13769
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12172
13770
|
let headers : {[key: string ]: string} = { };
|
|
12173
|
-
return await this.
|
|
13771
|
+
return await this.describeTemplatesWithOptions(request, headers, runtime);
|
|
12174
13772
|
}
|
|
12175
13773
|
|
|
12176
13774
|
async describeTriggerWithOptions(clusterId: string, request: DescribeTriggerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeTriggerResponse> {
|
|
@@ -12200,7 +13798,7 @@ export default class Client extends OpenApi {
|
|
|
12200
13798
|
action: "DescribeTrigger",
|
|
12201
13799
|
version: "2015-12-15",
|
|
12202
13800
|
protocol: "HTTPS",
|
|
12203
|
-
pathname: `/clusters
|
|
13801
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterId)}/triggers`,
|
|
12204
13802
|
method: "GET",
|
|
12205
13803
|
authType: "AK",
|
|
12206
13804
|
style: "ROA",
|
|
@@ -12210,10 +13808,34 @@ export default class Client extends OpenApi {
|
|
|
12210
13808
|
return $tea.cast<DescribeTriggerResponse>(await this.callApi(params, req, runtime), new DescribeTriggerResponse({}));
|
|
12211
13809
|
}
|
|
12212
13810
|
|
|
12213
|
-
async
|
|
13811
|
+
async describeTrigger(clusterId: string, request: DescribeTriggerRequest): Promise<DescribeTriggerResponse> {
|
|
12214
13812
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12215
13813
|
let headers : {[key: string ]: string} = { };
|
|
12216
|
-
return await this.
|
|
13814
|
+
return await this.describeTriggerWithOptions(clusterId, request, headers, runtime);
|
|
13815
|
+
}
|
|
13816
|
+
|
|
13817
|
+
async describeUserClusterNamespacesWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeUserClusterNamespacesResponse> {
|
|
13818
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
13819
|
+
headers: headers,
|
|
13820
|
+
});
|
|
13821
|
+
let params = new $OpenApi.Params({
|
|
13822
|
+
action: "DescribeUserClusterNamespaces",
|
|
13823
|
+
version: "2015-12-15",
|
|
13824
|
+
protocol: "HTTPS",
|
|
13825
|
+
pathname: `/api/v2/k8s/${OpenApiUtil.getEncodeParam(ClusterId)}/namespaces`,
|
|
13826
|
+
method: "GET",
|
|
13827
|
+
authType: "AK",
|
|
13828
|
+
style: "ROA",
|
|
13829
|
+
reqBodyType: "json",
|
|
13830
|
+
bodyType: "array",
|
|
13831
|
+
});
|
|
13832
|
+
return $tea.cast<DescribeUserClusterNamespacesResponse>(await this.callApi(params, req, runtime), new DescribeUserClusterNamespacesResponse({}));
|
|
13833
|
+
}
|
|
13834
|
+
|
|
13835
|
+
async describeUserClusterNamespaces(ClusterId: string): Promise<DescribeUserClusterNamespacesResponse> {
|
|
13836
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
13837
|
+
let headers : {[key: string ]: string} = { };
|
|
13838
|
+
return await this.describeUserClusterNamespacesWithOptions(ClusterId, headers, runtime);
|
|
12217
13839
|
}
|
|
12218
13840
|
|
|
12219
13841
|
async describeUserPermissionWithOptions(uid: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeUserPermissionResponse> {
|
|
@@ -12234,10 +13856,10 @@ export default class Client extends OpenApi {
|
|
|
12234
13856
|
return $tea.cast<DescribeUserPermissionResponse>(await this.callApi(params, req, runtime), new DescribeUserPermissionResponse({}));
|
|
12235
13857
|
}
|
|
12236
13858
|
|
|
12237
|
-
async
|
|
13859
|
+
async describeUserPermission(uid: string): Promise<DescribeUserPermissionResponse> {
|
|
12238
13860
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12239
13861
|
let headers : {[key: string ]: string} = { };
|
|
12240
|
-
return await this.
|
|
13862
|
+
return await this.describeUserPermissionWithOptions(uid, headers, runtime);
|
|
12241
13863
|
}
|
|
12242
13864
|
|
|
12243
13865
|
async describeUserQuotaWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeUserQuotaResponse> {
|
|
@@ -12258,10 +13880,10 @@ export default class Client extends OpenApi {
|
|
|
12258
13880
|
return $tea.cast<DescribeUserQuotaResponse>(await this.callApi(params, req, runtime), new DescribeUserQuotaResponse({}));
|
|
12259
13881
|
}
|
|
12260
13882
|
|
|
12261
|
-
async
|
|
13883
|
+
async describeUserQuota(): Promise<DescribeUserQuotaResponse> {
|
|
12262
13884
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12263
13885
|
let headers : {[key: string ]: string} = { };
|
|
12264
|
-
return await this.
|
|
13886
|
+
return await this.describeUserQuotaWithOptions(headers, runtime);
|
|
12265
13887
|
}
|
|
12266
13888
|
|
|
12267
13889
|
async describeWorkflowsWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeWorkflowsResponse> {
|
|
@@ -12282,10 +13904,10 @@ export default class Client extends OpenApi {
|
|
|
12282
13904
|
return $tea.cast<DescribeWorkflowsResponse>(await this.callApi(params, req, runtime), new DescribeWorkflowsResponse({}));
|
|
12283
13905
|
}
|
|
12284
13906
|
|
|
12285
|
-
async
|
|
13907
|
+
async describeWorkflows(): Promise<DescribeWorkflowsResponse> {
|
|
12286
13908
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12287
13909
|
let headers : {[key: string ]: string} = { };
|
|
12288
|
-
return await this.
|
|
13910
|
+
return await this.describeWorkflowsWithOptions(headers, runtime);
|
|
12289
13911
|
}
|
|
12290
13912
|
|
|
12291
13913
|
async edgeClusterAddEdgeMachineWithOptions(clusterid: string, edgeMachineid: string, request: EdgeClusterAddEdgeMachineRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<EdgeClusterAddEdgeMachineResponse> {
|
|
@@ -12321,10 +13943,10 @@ export default class Client extends OpenApi {
|
|
|
12321
13943
|
return $tea.cast<EdgeClusterAddEdgeMachineResponse>(await this.callApi(params, req, runtime), new EdgeClusterAddEdgeMachineResponse({}));
|
|
12322
13944
|
}
|
|
12323
13945
|
|
|
12324
|
-
async
|
|
13946
|
+
async edgeClusterAddEdgeMachine(clusterid: string, edgeMachineid: string, request: EdgeClusterAddEdgeMachineRequest): Promise<EdgeClusterAddEdgeMachineResponse> {
|
|
12325
13947
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12326
13948
|
let headers : {[key: string ]: string} = { };
|
|
12327
|
-
return await this.
|
|
13949
|
+
return await this.edgeClusterAddEdgeMachineWithOptions(clusterid, edgeMachineid, request, headers, runtime);
|
|
12328
13950
|
}
|
|
12329
13951
|
|
|
12330
13952
|
async fixNodePoolVulsWithOptions(clusterId: string, nodepoolId: string, request: FixNodePoolVulsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<FixNodePoolVulsResponse> {
|
|
@@ -12334,12 +13956,12 @@ export default class Client extends OpenApi {
|
|
|
12334
13956
|
body["nodes"] = request.nodes;
|
|
12335
13957
|
}
|
|
12336
13958
|
|
|
12337
|
-
if (!Util.isUnset(
|
|
13959
|
+
if (!Util.isUnset(request.rolloutPolicy)) {
|
|
12338
13960
|
body["rollout_policy"] = request.rolloutPolicy;
|
|
12339
13961
|
}
|
|
12340
13962
|
|
|
12341
|
-
if (!Util.isUnset(request.
|
|
12342
|
-
body["
|
|
13963
|
+
if (!Util.isUnset(request.vuls)) {
|
|
13964
|
+
body["vuls"] = request.vuls;
|
|
12343
13965
|
}
|
|
12344
13966
|
|
|
12345
13967
|
let req = new $OpenApi.OpenApiRequest({
|
|
@@ -12360,10 +13982,10 @@ export default class Client extends OpenApi {
|
|
|
12360
13982
|
return $tea.cast<FixNodePoolVulsResponse>(await this.callApi(params, req, runtime), new FixNodePoolVulsResponse({}));
|
|
12361
13983
|
}
|
|
12362
13984
|
|
|
12363
|
-
async
|
|
13985
|
+
async fixNodePoolVuls(clusterId: string, nodepoolId: string, request: FixNodePoolVulsRequest): Promise<FixNodePoolVulsResponse> {
|
|
12364
13986
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12365
13987
|
let headers : {[key: string ]: string} = { };
|
|
12366
|
-
return await this.
|
|
13988
|
+
return await this.fixNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime);
|
|
12367
13989
|
}
|
|
12368
13990
|
|
|
12369
13991
|
async getKubernetesTriggerWithOptions(ClusterId: string, request: GetKubernetesTriggerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetKubernetesTriggerResponse> {
|
|
@@ -12403,10 +14025,10 @@ export default class Client extends OpenApi {
|
|
|
12403
14025
|
return $tea.cast<GetKubernetesTriggerResponse>(await this.callApi(params, req, runtime), new GetKubernetesTriggerResponse({}));
|
|
12404
14026
|
}
|
|
12405
14027
|
|
|
12406
|
-
async
|
|
14028
|
+
async getKubernetesTrigger(ClusterId: string, request: GetKubernetesTriggerRequest): Promise<GetKubernetesTriggerResponse> {
|
|
12407
14029
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12408
14030
|
let headers : {[key: string ]: string} = { };
|
|
12409
|
-
return await this.
|
|
14031
|
+
return await this.getKubernetesTriggerWithOptions(ClusterId, request, headers, runtime);
|
|
12410
14032
|
}
|
|
12411
14033
|
|
|
12412
14034
|
async getUpgradeStatusWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetUpgradeStatusResponse> {
|
|
@@ -12427,12 +14049,24 @@ export default class Client extends OpenApi {
|
|
|
12427
14049
|
return $tea.cast<GetUpgradeStatusResponse>(await this.callApi(params, req, runtime), new GetUpgradeStatusResponse({}));
|
|
12428
14050
|
}
|
|
12429
14051
|
|
|
12430
|
-
async
|
|
14052
|
+
async getUpgradeStatus(ClusterId: string): Promise<GetUpgradeStatusResponse> {
|
|
12431
14053
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12432
14054
|
let headers : {[key: string ]: string} = { };
|
|
12433
|
-
return await this.
|
|
14055
|
+
return await this.getUpgradeStatusWithOptions(ClusterId, headers, runtime);
|
|
12434
14056
|
}
|
|
12435
14057
|
|
|
14058
|
+
/**
|
|
14059
|
+
* **Precautions**:
|
|
14060
|
+
* * Make sure that you have granted the specified RAM user at least read permissions on the specified cluster by attaching RAM policies. Otherwise, the `ErrorRamPolicyConfig` error will be returned.
|
|
14061
|
+
* For more information about how to authorize a RAM user by attaching RAM policies, see [Create a custom RAM policy](~~86485~~).
|
|
14062
|
+
* * If you call this operation as a RAM user, make sure that this RAM user has the permissions to grant other RAM users the permissions to manage ACK clusters. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` errors will be returned. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](~~119035~~).
|
|
14063
|
+
* * This operation overwrites the permissions that have been granted to the specified RAM user. When you call this operation, make sure that the required permissions are included.
|
|
14064
|
+
*
|
|
14065
|
+
* @param request GrantPermissionsRequest
|
|
14066
|
+
* @param headers map
|
|
14067
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
14068
|
+
* @return GrantPermissionsResponse
|
|
14069
|
+
*/
|
|
12436
14070
|
async grantPermissionsWithOptions(uid: string, request: GrantPermissionsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GrantPermissionsResponse> {
|
|
12437
14071
|
Util.validateModel(request);
|
|
12438
14072
|
let req = new $OpenApi.OpenApiRequest({
|
|
@@ -12453,10 +14087,20 @@ export default class Client extends OpenApi {
|
|
|
12453
14087
|
return $tea.cast<GrantPermissionsResponse>(await this.callApi(params, req, runtime), new GrantPermissionsResponse({}));
|
|
12454
14088
|
}
|
|
12455
14089
|
|
|
12456
|
-
|
|
14090
|
+
/**
|
|
14091
|
+
* **Precautions**:
|
|
14092
|
+
* * Make sure that you have granted the specified RAM user at least read permissions on the specified cluster by attaching RAM policies. Otherwise, the `ErrorRamPolicyConfig` error will be returned.
|
|
14093
|
+
* For more information about how to authorize a RAM user by attaching RAM policies, see [Create a custom RAM policy](~~86485~~).
|
|
14094
|
+
* * If you call this operation as a RAM user, make sure that this RAM user has the permissions to grant other RAM users the permissions to manage ACK clusters. Otherwise, the `StatusForbidden` or `ForbiddenGrantPermissions` errors will be returned. For more information, see [Use a RAM user to grant RBAC permissions to other RAM users](~~119035~~).
|
|
14095
|
+
* * This operation overwrites the permissions that have been granted to the specified RAM user. When you call this operation, make sure that the required permissions are included.
|
|
14096
|
+
*
|
|
14097
|
+
* @param request GrantPermissionsRequest
|
|
14098
|
+
* @return GrantPermissionsResponse
|
|
14099
|
+
*/
|
|
14100
|
+
async grantPermissions(uid: string, request: GrantPermissionsRequest): Promise<GrantPermissionsResponse> {
|
|
12457
14101
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12458
14102
|
let headers : {[key: string ]: string} = { };
|
|
12459
|
-
return await this.
|
|
14103
|
+
return await this.grantPermissionsWithOptions(uid, request, headers, runtime);
|
|
12460
14104
|
}
|
|
12461
14105
|
|
|
12462
14106
|
async installClusterAddonsWithOptions(ClusterId: string, request: InstallClusterAddonsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<InstallClusterAddonsResponse> {
|
|
@@ -12479,10 +14123,10 @@ export default class Client extends OpenApi {
|
|
|
12479
14123
|
return $tea.cast<InstallClusterAddonsResponse>(await this.callApi(params, req, runtime), new InstallClusterAddonsResponse({}));
|
|
12480
14124
|
}
|
|
12481
14125
|
|
|
12482
|
-
async
|
|
14126
|
+
async installClusterAddons(ClusterId: string, request: InstallClusterAddonsRequest): Promise<InstallClusterAddonsResponse> {
|
|
12483
14127
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12484
14128
|
let headers : {[key: string ]: string} = { };
|
|
12485
|
-
return await this.
|
|
14129
|
+
return await this.installClusterAddonsWithOptions(ClusterId, request, headers, runtime);
|
|
12486
14130
|
}
|
|
12487
14131
|
|
|
12488
14132
|
async listTagResourcesWithOptions(tmpReq: ListTagResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListTagResourcesResponse> {
|
|
@@ -12536,10 +14180,10 @@ export default class Client extends OpenApi {
|
|
|
12536
14180
|
return $tea.cast<ListTagResourcesResponse>(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
|
|
12537
14181
|
}
|
|
12538
14182
|
|
|
12539
|
-
async
|
|
14183
|
+
async listTagResources(request: ListTagResourcesRequest): Promise<ListTagResourcesResponse> {
|
|
12540
14184
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12541
14185
|
let headers : {[key: string ]: string} = { };
|
|
12542
|
-
return await this.
|
|
14186
|
+
return await this.listTagResourcesWithOptions(request, headers, runtime);
|
|
12543
14187
|
}
|
|
12544
14188
|
|
|
12545
14189
|
async migrateClusterWithOptions(clusterId: string, request: MigrateClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<MigrateClusterResponse> {
|
|
@@ -12571,10 +14215,10 @@ export default class Client extends OpenApi {
|
|
|
12571
14215
|
return $tea.cast<MigrateClusterResponse>(await this.callApi(params, req, runtime), new MigrateClusterResponse({}));
|
|
12572
14216
|
}
|
|
12573
14217
|
|
|
12574
|
-
async
|
|
14218
|
+
async migrateCluster(clusterId: string, request: MigrateClusterRequest): Promise<MigrateClusterResponse> {
|
|
12575
14219
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12576
14220
|
let headers : {[key: string ]: string} = { };
|
|
12577
|
-
return await this.
|
|
14221
|
+
return await this.migrateClusterWithOptions(clusterId, request, headers, runtime);
|
|
12578
14222
|
}
|
|
12579
14223
|
|
|
12580
14224
|
async modifyClusterWithOptions(ClusterId: string, request: ModifyClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyClusterResponse> {
|
|
@@ -12608,7 +14252,7 @@ export default class Client extends OpenApi {
|
|
|
12608
14252
|
body["instance_deletion_protection"] = request.instanceDeletionProtection;
|
|
12609
14253
|
}
|
|
12610
14254
|
|
|
12611
|
-
if (!Util.isUnset(
|
|
14255
|
+
if (!Util.isUnset(request.maintenanceWindow)) {
|
|
12612
14256
|
body["maintenance_window"] = request.maintenanceWindow;
|
|
12613
14257
|
}
|
|
12614
14258
|
|
|
@@ -12634,12 +14278,23 @@ export default class Client extends OpenApi {
|
|
|
12634
14278
|
return $tea.cast<ModifyClusterResponse>(await this.callApi(params, req, runtime), new ModifyClusterResponse({}));
|
|
12635
14279
|
}
|
|
12636
14280
|
|
|
12637
|
-
async
|
|
14281
|
+
async modifyCluster(ClusterId: string, request: ModifyClusterRequest): Promise<ModifyClusterResponse> {
|
|
12638
14282
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12639
14283
|
let headers : {[key: string ]: string} = { };
|
|
12640
|
-
return await this.
|
|
14284
|
+
return await this.modifyClusterWithOptions(ClusterId, request, headers, runtime);
|
|
12641
14285
|
}
|
|
12642
14286
|
|
|
14287
|
+
/**
|
|
14288
|
+
* You can use this API operation to modify the components in a Container Service for Kubernetes (ACK) cluster or the control plane components in an ACK Pro cluster.
|
|
14289
|
+
* * To query the customizable parameters of a component, call the `DescribeClusterAddonMetadata` API operation. For more information, see [Query the metadata of a specified component version](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/query).
|
|
14290
|
+
* * For more information about the customizable parameters of control plane components in ACK Pro clusters, see [Customize the parameters of control plane components in ACK Pro clusters](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/customize-control-plane-parameters-for-a-professional-kubernetes-cluster).
|
|
14291
|
+
* After you call this operation, the component may be redeployed and restarted. We recommend that you evaluate the impact before you call this operation.
|
|
14292
|
+
*
|
|
14293
|
+
* @param request ModifyClusterAddonRequest
|
|
14294
|
+
* @param headers map
|
|
14295
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
14296
|
+
* @return ModifyClusterAddonResponse
|
|
14297
|
+
*/
|
|
12643
14298
|
async modifyClusterAddonWithOptions(clusterId: string, componentId: string, request: ModifyClusterAddonRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyClusterAddonResponse> {
|
|
12644
14299
|
Util.validateModel(request);
|
|
12645
14300
|
let body : {[key: string ]: any} = { };
|
|
@@ -12665,10 +14320,19 @@ export default class Client extends OpenApi {
|
|
|
12665
14320
|
return $tea.cast<ModifyClusterAddonResponse>(await this.callApi(params, req, runtime), new ModifyClusterAddonResponse({}));
|
|
12666
14321
|
}
|
|
12667
14322
|
|
|
12668
|
-
|
|
14323
|
+
/**
|
|
14324
|
+
* You can use this API operation to modify the components in a Container Service for Kubernetes (ACK) cluster or the control plane components in an ACK Pro cluster.
|
|
14325
|
+
* * To query the customizable parameters of a component, call the `DescribeClusterAddonMetadata` API operation. For more information, see [Query the metadata of a specified component version](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/query).
|
|
14326
|
+
* * For more information about the customizable parameters of control plane components in ACK Pro clusters, see [Customize the parameters of control plane components in ACK Pro clusters](https://www.alibabacloud.com/help/zh/container-service-for-kubernetes/latest/customize-control-plane-parameters-for-a-professional-kubernetes-cluster).
|
|
14327
|
+
* After you call this operation, the component may be redeployed and restarted. We recommend that you evaluate the impact before you call this operation.
|
|
14328
|
+
*
|
|
14329
|
+
* @param request ModifyClusterAddonRequest
|
|
14330
|
+
* @return ModifyClusterAddonResponse
|
|
14331
|
+
*/
|
|
14332
|
+
async modifyClusterAddon(clusterId: string, componentId: string, request: ModifyClusterAddonRequest): Promise<ModifyClusterAddonResponse> {
|
|
12669
14333
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12670
14334
|
let headers : {[key: string ]: string} = { };
|
|
12671
|
-
return await this.
|
|
14335
|
+
return await this.modifyClusterAddonWithOptions(clusterId, componentId, request, headers, runtime);
|
|
12672
14336
|
}
|
|
12673
14337
|
|
|
12674
14338
|
async modifyClusterConfigurationWithOptions(ClusterId: string, request: ModifyClusterConfigurationRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyClusterConfigurationResponse> {
|
|
@@ -12696,36 +14360,36 @@ export default class Client extends OpenApi {
|
|
|
12696
14360
|
return $tea.cast<ModifyClusterConfigurationResponse>(await this.callApi(params, req, runtime), new ModifyClusterConfigurationResponse({}));
|
|
12697
14361
|
}
|
|
12698
14362
|
|
|
12699
|
-
async
|
|
14363
|
+
async modifyClusterConfiguration(ClusterId: string, request: ModifyClusterConfigurationRequest): Promise<ModifyClusterConfigurationResponse> {
|
|
12700
14364
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12701
14365
|
let headers : {[key: string ]: string} = { };
|
|
12702
|
-
return await this.
|
|
14366
|
+
return await this.modifyClusterConfigurationWithOptions(ClusterId, request, headers, runtime);
|
|
12703
14367
|
}
|
|
12704
14368
|
|
|
12705
14369
|
async modifyClusterNodePoolWithOptions(ClusterId: string, NodepoolId: string, request: ModifyClusterNodePoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyClusterNodePoolResponse> {
|
|
12706
14370
|
Util.validateModel(request);
|
|
12707
14371
|
let body : {[key: string ]: any} = { };
|
|
12708
|
-
if (!Util.isUnset(
|
|
14372
|
+
if (!Util.isUnset(request.autoScaling)) {
|
|
12709
14373
|
body["auto_scaling"] = request.autoScaling;
|
|
12710
14374
|
}
|
|
12711
14375
|
|
|
12712
|
-
if (!Util.isUnset(
|
|
14376
|
+
if (!Util.isUnset(request.kubernetesConfig)) {
|
|
12713
14377
|
body["kubernetes_config"] = request.kubernetesConfig;
|
|
12714
14378
|
}
|
|
12715
14379
|
|
|
12716
|
-
if (!Util.isUnset(
|
|
14380
|
+
if (!Util.isUnset(request.management)) {
|
|
12717
14381
|
body["management"] = request.management;
|
|
12718
14382
|
}
|
|
12719
14383
|
|
|
12720
|
-
if (!Util.isUnset(
|
|
14384
|
+
if (!Util.isUnset(request.nodepoolInfo)) {
|
|
12721
14385
|
body["nodepool_info"] = request.nodepoolInfo;
|
|
12722
14386
|
}
|
|
12723
14387
|
|
|
12724
|
-
if (!Util.isUnset(
|
|
14388
|
+
if (!Util.isUnset(request.scalingGroup)) {
|
|
12725
14389
|
body["scaling_group"] = request.scalingGroup;
|
|
12726
14390
|
}
|
|
12727
14391
|
|
|
12728
|
-
if (!Util.isUnset(
|
|
14392
|
+
if (!Util.isUnset(request.teeConfig)) {
|
|
12729
14393
|
body["tee_config"] = request.teeConfig;
|
|
12730
14394
|
}
|
|
12731
14395
|
|
|
@@ -12751,10 +14415,10 @@ export default class Client extends OpenApi {
|
|
|
12751
14415
|
return $tea.cast<ModifyClusterNodePoolResponse>(await this.callApi(params, req, runtime), new ModifyClusterNodePoolResponse({}));
|
|
12752
14416
|
}
|
|
12753
14417
|
|
|
12754
|
-
async
|
|
14418
|
+
async modifyClusterNodePool(ClusterId: string, NodepoolId: string, request: ModifyClusterNodePoolRequest): Promise<ModifyClusterNodePoolResponse> {
|
|
12755
14419
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12756
14420
|
let headers : {[key: string ]: string} = { };
|
|
12757
|
-
return await this.
|
|
14421
|
+
return await this.modifyClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
12758
14422
|
}
|
|
12759
14423
|
|
|
12760
14424
|
async modifyClusterTagsWithOptions(ClusterId: string, request: ModifyClusterTagsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyClusterTagsResponse> {
|
|
@@ -12777,20 +14441,20 @@ export default class Client extends OpenApi {
|
|
|
12777
14441
|
return $tea.cast<ModifyClusterTagsResponse>(await this.callApi(params, req, runtime), new ModifyClusterTagsResponse({}));
|
|
12778
14442
|
}
|
|
12779
14443
|
|
|
12780
|
-
async
|
|
14444
|
+
async modifyClusterTags(ClusterId: string, request: ModifyClusterTagsRequest): Promise<ModifyClusterTagsResponse> {
|
|
12781
14445
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12782
14446
|
let headers : {[key: string ]: string} = { };
|
|
12783
|
-
return await this.
|
|
14447
|
+
return await this.modifyClusterTagsWithOptions(ClusterId, request, headers, runtime);
|
|
12784
14448
|
}
|
|
12785
14449
|
|
|
12786
14450
|
async modifyNodePoolNodeConfigWithOptions(ClusterId: string, NodepoolId: string, request: ModifyNodePoolNodeConfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyNodePoolNodeConfigResponse> {
|
|
12787
14451
|
Util.validateModel(request);
|
|
12788
14452
|
let body : {[key: string ]: any} = { };
|
|
12789
|
-
if (!Util.isUnset(
|
|
14453
|
+
if (!Util.isUnset(request.kubeletConfig)) {
|
|
12790
14454
|
body["kubelet_config"] = request.kubeletConfig;
|
|
12791
14455
|
}
|
|
12792
14456
|
|
|
12793
|
-
if (!Util.isUnset(
|
|
14457
|
+
if (!Util.isUnset(request.rollingPolicy)) {
|
|
12794
14458
|
body["rolling_policy"] = request.rollingPolicy;
|
|
12795
14459
|
}
|
|
12796
14460
|
|
|
@@ -12812,10 +14476,10 @@ export default class Client extends OpenApi {
|
|
|
12812
14476
|
return $tea.cast<ModifyNodePoolNodeConfigResponse>(await this.callApi(params, req, runtime), new ModifyNodePoolNodeConfigResponse({}));
|
|
12813
14477
|
}
|
|
12814
14478
|
|
|
12815
|
-
async
|
|
14479
|
+
async modifyNodePoolNodeConfig(ClusterId: string, NodepoolId: string, request: ModifyNodePoolNodeConfigRequest): Promise<ModifyNodePoolNodeConfigResponse> {
|
|
12816
14480
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12817
14481
|
let headers : {[key: string ]: string} = { };
|
|
12818
|
-
return await this.
|
|
14482
|
+
return await this.modifyNodePoolNodeConfigWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
12819
14483
|
}
|
|
12820
14484
|
|
|
12821
14485
|
async modifyPolicyInstanceWithOptions(clusterId: string, policyName: string, request: ModifyPolicyInstanceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyPolicyInstanceResponse> {
|
|
@@ -12855,12 +14519,20 @@ export default class Client extends OpenApi {
|
|
|
12855
14519
|
return $tea.cast<ModifyPolicyInstanceResponse>(await this.callApi(params, req, runtime), new ModifyPolicyInstanceResponse({}));
|
|
12856
14520
|
}
|
|
12857
14521
|
|
|
12858
|
-
async
|
|
14522
|
+
async modifyPolicyInstance(clusterId: string, policyName: string, request: ModifyPolicyInstanceRequest): Promise<ModifyPolicyInstanceResponse> {
|
|
12859
14523
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12860
14524
|
let headers : {[key: string ]: string} = { };
|
|
12861
|
-
return await this.
|
|
14525
|
+
return await this.modifyPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
|
|
12862
14526
|
}
|
|
12863
14527
|
|
|
14528
|
+
/**
|
|
14529
|
+
* You can activate ACK with Alibaba Cloud accounts or RAM users that have the authority of AdministratorAccess.
|
|
14530
|
+
*
|
|
14531
|
+
* @param request OpenAckServiceRequest
|
|
14532
|
+
* @param headers map
|
|
14533
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
14534
|
+
* @return OpenAckServiceResponse
|
|
14535
|
+
*/
|
|
12864
14536
|
async openAckServiceWithOptions(request: OpenAckServiceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<OpenAckServiceResponse> {
|
|
12865
14537
|
Util.validateModel(request);
|
|
12866
14538
|
let query : {[key: string ]: any} = { };
|
|
@@ -12886,10 +14558,16 @@ export default class Client extends OpenApi {
|
|
|
12886
14558
|
return $tea.cast<OpenAckServiceResponse>(await this.callApi(params, req, runtime), new OpenAckServiceResponse({}));
|
|
12887
14559
|
}
|
|
12888
14560
|
|
|
12889
|
-
|
|
14561
|
+
/**
|
|
14562
|
+
* You can activate ACK with Alibaba Cloud accounts or RAM users that have the authority of AdministratorAccess.
|
|
14563
|
+
*
|
|
14564
|
+
* @param request OpenAckServiceRequest
|
|
14565
|
+
* @return OpenAckServiceResponse
|
|
14566
|
+
*/
|
|
14567
|
+
async openAckService(request: OpenAckServiceRequest): Promise<OpenAckServiceResponse> {
|
|
12890
14568
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12891
14569
|
let headers : {[key: string ]: string} = { };
|
|
12892
|
-
return await this.
|
|
14570
|
+
return await this.openAckServiceWithOptions(request, headers, runtime);
|
|
12893
14571
|
}
|
|
12894
14572
|
|
|
12895
14573
|
async pauseClusterUpgradeWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PauseClusterUpgradeResponse> {
|
|
@@ -12910,10 +14588,10 @@ export default class Client extends OpenApi {
|
|
|
12910
14588
|
return $tea.cast<PauseClusterUpgradeResponse>(await this.callApi(params, req, runtime), new PauseClusterUpgradeResponse({}));
|
|
12911
14589
|
}
|
|
12912
14590
|
|
|
12913
|
-
async
|
|
14591
|
+
async pauseClusterUpgrade(ClusterId: string): Promise<PauseClusterUpgradeResponse> {
|
|
12914
14592
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12915
14593
|
let headers : {[key: string ]: string} = { };
|
|
12916
|
-
return await this.
|
|
14594
|
+
return await this.pauseClusterUpgradeWithOptions(ClusterId, headers, runtime);
|
|
12917
14595
|
}
|
|
12918
14596
|
|
|
12919
14597
|
async pauseComponentUpgradeWithOptions(clusterid: string, componentid: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PauseComponentUpgradeResponse> {
|
|
@@ -12934,10 +14612,10 @@ export default class Client extends OpenApi {
|
|
|
12934
14612
|
return $tea.cast<PauseComponentUpgradeResponse>(await this.callApi(params, req, runtime), new PauseComponentUpgradeResponse({}));
|
|
12935
14613
|
}
|
|
12936
14614
|
|
|
12937
|
-
async
|
|
14615
|
+
async pauseComponentUpgrade(clusterid: string, componentid: string): Promise<PauseComponentUpgradeResponse> {
|
|
12938
14616
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12939
14617
|
let headers : {[key: string ]: string} = { };
|
|
12940
|
-
return await this.
|
|
14618
|
+
return await this.pauseComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
|
|
12941
14619
|
}
|
|
12942
14620
|
|
|
12943
14621
|
async pauseTaskWithOptions(taskId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PauseTaskResponse> {
|
|
@@ -12958,12 +14636,21 @@ export default class Client extends OpenApi {
|
|
|
12958
14636
|
return $tea.cast<PauseTaskResponse>(await this.callApi(params, req, runtime), new PauseTaskResponse({}));
|
|
12959
14637
|
}
|
|
12960
14638
|
|
|
12961
|
-
async
|
|
14639
|
+
async pauseTask(taskId: string): Promise<PauseTaskResponse> {
|
|
12962
14640
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12963
14641
|
let headers : {[key: string ]: string} = { };
|
|
12964
|
-
return await this.
|
|
14642
|
+
return await this.pauseTaskWithOptions(taskId, headers, runtime);
|
|
12965
14643
|
}
|
|
12966
14644
|
|
|
14645
|
+
/**
|
|
14646
|
+
* @deprecated
|
|
14647
|
+
*
|
|
14648
|
+
* @param request RemoveClusterNodesRequest
|
|
14649
|
+
* @param headers map
|
|
14650
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
14651
|
+
* @return RemoveClusterNodesResponse
|
|
14652
|
+
*/
|
|
14653
|
+
// Deprecated
|
|
12967
14654
|
async removeClusterNodesWithOptions(ClusterId: string, request: RemoveClusterNodesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RemoveClusterNodesResponse> {
|
|
12968
14655
|
Util.validateModel(request);
|
|
12969
14656
|
let body : {[key: string ]: any} = { };
|
|
@@ -12997,16 +14684,39 @@ export default class Client extends OpenApi {
|
|
|
12997
14684
|
return $tea.cast<RemoveClusterNodesResponse>(await this.callApi(params, req, runtime), new RemoveClusterNodesResponse({}));
|
|
12998
14685
|
}
|
|
12999
14686
|
|
|
13000
|
-
|
|
14687
|
+
/**
|
|
14688
|
+
* @deprecated
|
|
14689
|
+
*
|
|
14690
|
+
* @param request RemoveClusterNodesRequest
|
|
14691
|
+
* @return RemoveClusterNodesResponse
|
|
14692
|
+
*/
|
|
14693
|
+
// Deprecated
|
|
14694
|
+
async removeClusterNodes(ClusterId: string, request: RemoveClusterNodesRequest): Promise<RemoveClusterNodesResponse> {
|
|
13001
14695
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13002
14696
|
let headers : {[key: string ]: string} = { };
|
|
13003
|
-
return await this.
|
|
14697
|
+
return await this.removeClusterNodesWithOptions(ClusterId, request, headers, runtime);
|
|
13004
14698
|
}
|
|
13005
14699
|
|
|
14700
|
+
/**
|
|
14701
|
+
* >
|
|
14702
|
+
* * When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours.
|
|
14703
|
+
* * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
|
|
14704
|
+
* * Nodes remain in the Unschedulable state when they are being removed.
|
|
14705
|
+
* * You can remove only worker nodes. You cannot remove control planes.
|
|
14706
|
+
*
|
|
14707
|
+
* @param tmpReq RemoveNodePoolNodesRequest
|
|
14708
|
+
* @param headers map
|
|
14709
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
14710
|
+
* @return RemoveNodePoolNodesResponse
|
|
14711
|
+
*/
|
|
13006
14712
|
async removeNodePoolNodesWithOptions(ClusterId: string, NodepoolId: string, tmpReq: RemoveNodePoolNodesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RemoveNodePoolNodesResponse> {
|
|
13007
14713
|
Util.validateModel(tmpReq);
|
|
13008
14714
|
let request = new RemoveNodePoolNodesShrinkRequest({ });
|
|
13009
14715
|
OpenApiUtil.convert(tmpReq, request);
|
|
14716
|
+
if (!Util.isUnset(tmpReq.instanceIds)) {
|
|
14717
|
+
request.instanceIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.instanceIds, "instance_ids", "json");
|
|
14718
|
+
}
|
|
14719
|
+
|
|
13010
14720
|
if (!Util.isUnset(tmpReq.nodes)) {
|
|
13011
14721
|
request.nodesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.nodes, "nodes", "json");
|
|
13012
14722
|
}
|
|
@@ -13016,6 +14726,10 @@ export default class Client extends OpenApi {
|
|
|
13016
14726
|
query["drain_node"] = request.drainNode;
|
|
13017
14727
|
}
|
|
13018
14728
|
|
|
14729
|
+
if (!Util.isUnset(request.instanceIdsShrink)) {
|
|
14730
|
+
query["instance_ids"] = request.instanceIdsShrink;
|
|
14731
|
+
}
|
|
14732
|
+
|
|
13019
14733
|
if (!Util.isUnset(request.nodesShrink)) {
|
|
13020
14734
|
query["nodes"] = request.nodesShrink;
|
|
13021
14735
|
}
|
|
@@ -13042,10 +14756,20 @@ export default class Client extends OpenApi {
|
|
|
13042
14756
|
return $tea.cast<RemoveNodePoolNodesResponse>(await this.callApi(params, req, runtime), new RemoveNodePoolNodesResponse({}));
|
|
13043
14757
|
}
|
|
13044
14758
|
|
|
13045
|
-
|
|
14759
|
+
/**
|
|
14760
|
+
* >
|
|
14761
|
+
* * When you remove a node, the pods that run on the node are migrated to other nodes. This may cause service interruptions. We recommend that you remove nodes during off-peak hours.
|
|
14762
|
+
* * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
|
|
14763
|
+
* * Nodes remain in the Unschedulable state when they are being removed.
|
|
14764
|
+
* * You can remove only worker nodes. You cannot remove control planes.
|
|
14765
|
+
*
|
|
14766
|
+
* @param request RemoveNodePoolNodesRequest
|
|
14767
|
+
* @return RemoveNodePoolNodesResponse
|
|
14768
|
+
*/
|
|
14769
|
+
async removeNodePoolNodes(ClusterId: string, NodepoolId: string, request: RemoveNodePoolNodesRequest): Promise<RemoveNodePoolNodesResponse> {
|
|
13046
14770
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13047
14771
|
let headers : {[key: string ]: string} = { };
|
|
13048
|
-
return await this.
|
|
14772
|
+
return await this.removeNodePoolNodesWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
13049
14773
|
}
|
|
13050
14774
|
|
|
13051
14775
|
async removeWorkflowWithOptions(workflowName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RemoveWorkflowResponse> {
|
|
@@ -13066,10 +14790,10 @@ export default class Client extends OpenApi {
|
|
|
13066
14790
|
return $tea.cast<RemoveWorkflowResponse>(await this.callApi(params, req, runtime), new RemoveWorkflowResponse({}));
|
|
13067
14791
|
}
|
|
13068
14792
|
|
|
13069
|
-
async
|
|
14793
|
+
async removeWorkflow(workflowName: string): Promise<RemoveWorkflowResponse> {
|
|
13070
14794
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13071
14795
|
let headers : {[key: string ]: string} = { };
|
|
13072
|
-
return await this.
|
|
14796
|
+
return await this.removeWorkflowWithOptions(workflowName, headers, runtime);
|
|
13073
14797
|
}
|
|
13074
14798
|
|
|
13075
14799
|
async repairClusterNodePoolWithOptions(clusterId: string, nodepoolId: string, request: RepairClusterNodePoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RepairClusterNodePoolResponse> {
|
|
@@ -13097,10 +14821,10 @@ export default class Client extends OpenApi {
|
|
|
13097
14821
|
return $tea.cast<RepairClusterNodePoolResponse>(await this.callApi(params, req, runtime), new RepairClusterNodePoolResponse({}));
|
|
13098
14822
|
}
|
|
13099
14823
|
|
|
13100
|
-
async
|
|
14824
|
+
async repairClusterNodePool(clusterId: string, nodepoolId: string, request: RepairClusterNodePoolRequest): Promise<RepairClusterNodePoolResponse> {
|
|
13101
14825
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13102
14826
|
let headers : {[key: string ]: string} = { };
|
|
13103
|
-
return await this.
|
|
14827
|
+
return await this.repairClusterNodePoolWithOptions(clusterId, nodepoolId, request, headers, runtime);
|
|
13104
14828
|
}
|
|
13105
14829
|
|
|
13106
14830
|
async resumeComponentUpgradeWithOptions(clusterid: string, componentid: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ResumeComponentUpgradeResponse> {
|
|
@@ -13121,10 +14845,10 @@ export default class Client extends OpenApi {
|
|
|
13121
14845
|
return $tea.cast<ResumeComponentUpgradeResponse>(await this.callApi(params, req, runtime), new ResumeComponentUpgradeResponse({}));
|
|
13122
14846
|
}
|
|
13123
14847
|
|
|
13124
|
-
async
|
|
14848
|
+
async resumeComponentUpgrade(clusterid: string, componentid: string): Promise<ResumeComponentUpgradeResponse> {
|
|
13125
14849
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13126
14850
|
let headers : {[key: string ]: string} = { };
|
|
13127
|
-
return await this.
|
|
14851
|
+
return await this.resumeComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
|
|
13128
14852
|
}
|
|
13129
14853
|
|
|
13130
14854
|
async resumeTaskWithOptions(taskId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ResumeTaskResponse> {
|
|
@@ -13145,10 +14869,10 @@ export default class Client extends OpenApi {
|
|
|
13145
14869
|
return $tea.cast<ResumeTaskResponse>(await this.callApi(params, req, runtime), new ResumeTaskResponse({}));
|
|
13146
14870
|
}
|
|
13147
14871
|
|
|
13148
|
-
async
|
|
14872
|
+
async resumeTask(taskId: string): Promise<ResumeTaskResponse> {
|
|
13149
14873
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13150
14874
|
let headers : {[key: string ]: string} = { };
|
|
13151
|
-
return await this.
|
|
14875
|
+
return await this.resumeTaskWithOptions(taskId, headers, runtime);
|
|
13152
14876
|
}
|
|
13153
14877
|
|
|
13154
14878
|
async resumeUpgradeClusterWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ResumeUpgradeClusterResponse> {
|
|
@@ -13169,12 +14893,21 @@ export default class Client extends OpenApi {
|
|
|
13169
14893
|
return $tea.cast<ResumeUpgradeClusterResponse>(await this.callApi(params, req, runtime), new ResumeUpgradeClusterResponse({}));
|
|
13170
14894
|
}
|
|
13171
14895
|
|
|
13172
|
-
async
|
|
14896
|
+
async resumeUpgradeCluster(ClusterId: string): Promise<ResumeUpgradeClusterResponse> {
|
|
13173
14897
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13174
14898
|
let headers : {[key: string ]: string} = { };
|
|
13175
|
-
return await this.
|
|
14899
|
+
return await this.resumeUpgradeClusterWithOptions(ClusterId, headers, runtime);
|
|
13176
14900
|
}
|
|
13177
14901
|
|
|
14902
|
+
/**
|
|
14903
|
+
* @deprecated
|
|
14904
|
+
*
|
|
14905
|
+
* @param request ScaleClusterRequest
|
|
14906
|
+
* @param headers map
|
|
14907
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
14908
|
+
* @return ScaleClusterResponse
|
|
14909
|
+
*/
|
|
14910
|
+
// Deprecated
|
|
13178
14911
|
async scaleClusterWithOptions(ClusterId: string, request: ScaleClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ScaleClusterResponse> {
|
|
13179
14912
|
Util.validateModel(request);
|
|
13180
14913
|
let body : {[key: string ]: any} = { };
|
|
@@ -13272,10 +15005,17 @@ export default class Client extends OpenApi {
|
|
|
13272
15005
|
return $tea.cast<ScaleClusterResponse>(await this.callApi(params, req, runtime), new ScaleClusterResponse({}));
|
|
13273
15006
|
}
|
|
13274
15007
|
|
|
13275
|
-
|
|
15008
|
+
/**
|
|
15009
|
+
* @deprecated
|
|
15010
|
+
*
|
|
15011
|
+
* @param request ScaleClusterRequest
|
|
15012
|
+
* @return ScaleClusterResponse
|
|
15013
|
+
*/
|
|
15014
|
+
// Deprecated
|
|
15015
|
+
async scaleCluster(ClusterId: string, request: ScaleClusterRequest): Promise<ScaleClusterResponse> {
|
|
13276
15016
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13277
15017
|
let headers : {[key: string ]: string} = { };
|
|
13278
|
-
return await this.
|
|
15018
|
+
return await this.scaleClusterWithOptions(ClusterId, request, headers, runtime);
|
|
13279
15019
|
}
|
|
13280
15020
|
|
|
13281
15021
|
async scaleClusterNodePoolWithOptions(ClusterId: string, NodepoolId: string, request: ScaleClusterNodePoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ScaleClusterNodePoolResponse> {
|
|
@@ -13303,12 +15043,20 @@ export default class Client extends OpenApi {
|
|
|
13303
15043
|
return $tea.cast<ScaleClusterNodePoolResponse>(await this.callApi(params, req, runtime), new ScaleClusterNodePoolResponse({}));
|
|
13304
15044
|
}
|
|
13305
15045
|
|
|
13306
|
-
async
|
|
15046
|
+
async scaleClusterNodePool(ClusterId: string, NodepoolId: string, request: ScaleClusterNodePoolRequest): Promise<ScaleClusterNodePoolResponse> {
|
|
13307
15047
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13308
15048
|
let headers : {[key: string ]: string} = { };
|
|
13309
|
-
return await this.
|
|
15049
|
+
return await this.scaleClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
13310
15050
|
}
|
|
13311
15051
|
|
|
15052
|
+
/**
|
|
15053
|
+
* > The ScaleOutCluster API operation is phased out. You must call the node pool-related API operations to manage nodes. If you want to add worker nodes to an ACK cluster, call the ScaleClusterNodePool API operation. For more information, see [ScaleClusterNodePool](~~184928~~).
|
|
15054
|
+
*
|
|
15055
|
+
* @param request ScaleOutClusterRequest
|
|
15056
|
+
* @param headers map
|
|
15057
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
15058
|
+
* @return ScaleOutClusterResponse
|
|
15059
|
+
*/
|
|
13312
15060
|
async scaleOutClusterWithOptions(ClusterId: string, request: ScaleOutClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ScaleOutClusterResponse> {
|
|
13313
15061
|
Util.validateModel(request);
|
|
13314
15062
|
let body : {[key: string ]: any} = { };
|
|
@@ -13340,7 +15088,7 @@ export default class Client extends OpenApi {
|
|
|
13340
15088
|
body["rds_instances"] = request.rdsInstances;
|
|
13341
15089
|
}
|
|
13342
15090
|
|
|
13343
|
-
if (!Util.isUnset(
|
|
15091
|
+
if (!Util.isUnset(request.runtime)) {
|
|
13344
15092
|
body["runtime"] = request.runtime;
|
|
13345
15093
|
}
|
|
13346
15094
|
|
|
@@ -13414,10 +15162,64 @@ export default class Client extends OpenApi {
|
|
|
13414
15162
|
return $tea.cast<ScaleOutClusterResponse>(await this.callApi(params, req, runtime), new ScaleOutClusterResponse({}));
|
|
13415
15163
|
}
|
|
13416
15164
|
|
|
13417
|
-
|
|
15165
|
+
/**
|
|
15166
|
+
* > The ScaleOutCluster API operation is phased out. You must call the node pool-related API operations to manage nodes. If you want to add worker nodes to an ACK cluster, call the ScaleClusterNodePool API operation. For more information, see [ScaleClusterNodePool](~~184928~~).
|
|
15167
|
+
*
|
|
15168
|
+
* @param request ScaleOutClusterRequest
|
|
15169
|
+
* @return ScaleOutClusterResponse
|
|
15170
|
+
*/
|
|
15171
|
+
async scaleOutCluster(ClusterId: string, request: ScaleOutClusterRequest): Promise<ScaleOutClusterResponse> {
|
|
13418
15172
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13419
15173
|
let headers : {[key: string ]: string} = { };
|
|
13420
|
-
return await this.
|
|
15174
|
+
return await this.scaleOutClusterWithOptions(ClusterId, request, headers, runtime);
|
|
15175
|
+
}
|
|
15176
|
+
|
|
15177
|
+
async scanClusterVulsWithOptions(clusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ScanClusterVulsResponse> {
|
|
15178
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
15179
|
+
headers: headers,
|
|
15180
|
+
});
|
|
15181
|
+
let params = new $OpenApi.Params({
|
|
15182
|
+
action: "ScanClusterVuls",
|
|
15183
|
+
version: "2015-12-15",
|
|
15184
|
+
protocol: "HTTPS",
|
|
15185
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterId)}/vuls/scan`,
|
|
15186
|
+
method: "POST",
|
|
15187
|
+
authType: "AK",
|
|
15188
|
+
style: "ROA",
|
|
15189
|
+
reqBodyType: "json",
|
|
15190
|
+
bodyType: "json",
|
|
15191
|
+
});
|
|
15192
|
+
return $tea.cast<ScanClusterVulsResponse>(await this.callApi(params, req, runtime), new ScanClusterVulsResponse({}));
|
|
15193
|
+
}
|
|
15194
|
+
|
|
15195
|
+
async scanClusterVuls(clusterId: string): Promise<ScanClusterVulsResponse> {
|
|
15196
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
15197
|
+
let headers : {[key: string ]: string} = { };
|
|
15198
|
+
return await this.scanClusterVulsWithOptions(clusterId, headers, runtime);
|
|
15199
|
+
}
|
|
15200
|
+
|
|
15201
|
+
async startAlertWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartAlertResponse> {
|
|
15202
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
15203
|
+
headers: headers,
|
|
15204
|
+
});
|
|
15205
|
+
let params = new $OpenApi.Params({
|
|
15206
|
+
action: "StartAlert",
|
|
15207
|
+
version: "2015-12-15",
|
|
15208
|
+
protocol: "HTTPS",
|
|
15209
|
+
pathname: `/alert/${OpenApiUtil.getEncodeParam(ClusterId)}/alert_rule/start`,
|
|
15210
|
+
method: "POST",
|
|
15211
|
+
authType: "AK",
|
|
15212
|
+
style: "ROA",
|
|
15213
|
+
reqBodyType: "json",
|
|
15214
|
+
bodyType: "json",
|
|
15215
|
+
});
|
|
15216
|
+
return $tea.cast<StartAlertResponse>(await this.callApi(params, req, runtime), new StartAlertResponse({}));
|
|
15217
|
+
}
|
|
15218
|
+
|
|
15219
|
+
async startAlert(ClusterId: string): Promise<StartAlertResponse> {
|
|
15220
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
15221
|
+
let headers : {[key: string ]: string} = { };
|
|
15222
|
+
return await this.startAlertWithOptions(ClusterId, headers, runtime);
|
|
13421
15223
|
}
|
|
13422
15224
|
|
|
13423
15225
|
async startWorkflowWithOptions(request: StartWorkflowRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartWorkflowResponse> {
|
|
@@ -13517,10 +15319,58 @@ export default class Client extends OpenApi {
|
|
|
13517
15319
|
return $tea.cast<StartWorkflowResponse>(await this.callApi(params, req, runtime), new StartWorkflowResponse({}));
|
|
13518
15320
|
}
|
|
13519
15321
|
|
|
13520
|
-
async
|
|
15322
|
+
async startWorkflow(request: StartWorkflowRequest): Promise<StartWorkflowResponse> {
|
|
13521
15323
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13522
15324
|
let headers : {[key: string ]: string} = { };
|
|
13523
|
-
return await this.
|
|
15325
|
+
return await this.startWorkflowWithOptions(request, headers, runtime);
|
|
15326
|
+
}
|
|
15327
|
+
|
|
15328
|
+
async stopAlertWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StopAlertResponse> {
|
|
15329
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
15330
|
+
headers: headers,
|
|
15331
|
+
});
|
|
15332
|
+
let params = new $OpenApi.Params({
|
|
15333
|
+
action: "StopAlert",
|
|
15334
|
+
version: "2015-12-15",
|
|
15335
|
+
protocol: "HTTPS",
|
|
15336
|
+
pathname: `/alert/${OpenApiUtil.getEncodeParam(ClusterId)}/alert_rule/stop`,
|
|
15337
|
+
method: "POST",
|
|
15338
|
+
authType: "AK",
|
|
15339
|
+
style: "ROA",
|
|
15340
|
+
reqBodyType: "json",
|
|
15341
|
+
bodyType: "json",
|
|
15342
|
+
});
|
|
15343
|
+
return $tea.cast<StopAlertResponse>(await this.callApi(params, req, runtime), new StopAlertResponse({}));
|
|
15344
|
+
}
|
|
15345
|
+
|
|
15346
|
+
async stopAlert(ClusterId: string): Promise<StopAlertResponse> {
|
|
15347
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
15348
|
+
let headers : {[key: string ]: string} = { };
|
|
15349
|
+
return await this.stopAlertWithOptions(ClusterId, headers, runtime);
|
|
15350
|
+
}
|
|
15351
|
+
|
|
15352
|
+
async syncClusterNodePoolWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<SyncClusterNodePoolResponse> {
|
|
15353
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
15354
|
+
headers: headers,
|
|
15355
|
+
});
|
|
15356
|
+
let params = new $OpenApi.Params({
|
|
15357
|
+
action: "SyncClusterNodePool",
|
|
15358
|
+
version: "2015-12-15",
|
|
15359
|
+
protocol: "HTTPS",
|
|
15360
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(ClusterId)}/sync_nodepools`,
|
|
15361
|
+
method: "POST",
|
|
15362
|
+
authType: "AK",
|
|
15363
|
+
style: "ROA",
|
|
15364
|
+
reqBodyType: "json",
|
|
15365
|
+
bodyType: "json",
|
|
15366
|
+
});
|
|
15367
|
+
return $tea.cast<SyncClusterNodePoolResponse>(await this.callApi(params, req, runtime), new SyncClusterNodePoolResponse({}));
|
|
15368
|
+
}
|
|
15369
|
+
|
|
15370
|
+
async syncClusterNodePool(ClusterId: string): Promise<SyncClusterNodePoolResponse> {
|
|
15371
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
15372
|
+
let headers : {[key: string ]: string} = { };
|
|
15373
|
+
return await this.syncClusterNodePoolWithOptions(ClusterId, headers, runtime);
|
|
13524
15374
|
}
|
|
13525
15375
|
|
|
13526
15376
|
async tagResourcesWithOptions(request: TagResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<TagResourcesResponse> {
|
|
@@ -13560,10 +15410,10 @@ export default class Client extends OpenApi {
|
|
|
13560
15410
|
return $tea.cast<TagResourcesResponse>(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
|
|
13561
15411
|
}
|
|
13562
15412
|
|
|
13563
|
-
async
|
|
15413
|
+
async tagResources(request: TagResourcesRequest): Promise<TagResourcesResponse> {
|
|
13564
15414
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13565
15415
|
let headers : {[key: string ]: string} = { };
|
|
13566
|
-
return await this.
|
|
15416
|
+
return await this.tagResourcesWithOptions(request, headers, runtime);
|
|
13567
15417
|
}
|
|
13568
15418
|
|
|
13569
15419
|
async unInstallClusterAddonsWithOptions(ClusterId: string, request: UnInstallClusterAddonsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UnInstallClusterAddonsResponse> {
|
|
@@ -13586,14 +15436,24 @@ export default class Client extends OpenApi {
|
|
|
13586
15436
|
return $tea.cast<UnInstallClusterAddonsResponse>(await this.callApi(params, req, runtime), new UnInstallClusterAddonsResponse({}));
|
|
13587
15437
|
}
|
|
13588
15438
|
|
|
13589
|
-
async
|
|
15439
|
+
async unInstallClusterAddons(ClusterId: string, request: UnInstallClusterAddonsRequest): Promise<UnInstallClusterAddonsResponse> {
|
|
13590
15440
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13591
15441
|
let headers : {[key: string ]: string} = { };
|
|
13592
|
-
return await this.
|
|
15442
|
+
return await this.unInstallClusterAddonsWithOptions(ClusterId, request, headers, runtime);
|
|
13593
15443
|
}
|
|
13594
15444
|
|
|
13595
|
-
async untagResourcesWithOptions(
|
|
13596
|
-
Util.validateModel(
|
|
15445
|
+
async untagResourcesWithOptions(tmpReq: UntagResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UntagResourcesResponse> {
|
|
15446
|
+
Util.validateModel(tmpReq);
|
|
15447
|
+
let request = new UntagResourcesShrinkRequest({ });
|
|
15448
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
15449
|
+
if (!Util.isUnset(tmpReq.resourceIds)) {
|
|
15450
|
+
request.resourceIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resourceIds, "resource_ids", "json");
|
|
15451
|
+
}
|
|
15452
|
+
|
|
15453
|
+
if (!Util.isUnset(tmpReq.tagKeys)) {
|
|
15454
|
+
request.tagKeysShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tagKeys, "tag_keys", "json");
|
|
15455
|
+
}
|
|
15456
|
+
|
|
13597
15457
|
let query : {[key: string ]: any} = { };
|
|
13598
15458
|
if (!Util.isUnset(request.all)) {
|
|
13599
15459
|
query["all"] = request.all;
|
|
@@ -13603,16 +15463,16 @@ export default class Client extends OpenApi {
|
|
|
13603
15463
|
query["region_id"] = request.regionId;
|
|
13604
15464
|
}
|
|
13605
15465
|
|
|
13606
|
-
if (!Util.isUnset(request.
|
|
13607
|
-
query["resource_ids"] = request.
|
|
15466
|
+
if (!Util.isUnset(request.resourceIdsShrink)) {
|
|
15467
|
+
query["resource_ids"] = request.resourceIdsShrink;
|
|
13608
15468
|
}
|
|
13609
15469
|
|
|
13610
15470
|
if (!Util.isUnset(request.resourceType)) {
|
|
13611
15471
|
query["resource_type"] = request.resourceType;
|
|
13612
15472
|
}
|
|
13613
15473
|
|
|
13614
|
-
if (!Util.isUnset(request.
|
|
13615
|
-
query["tag_keys"] = request.
|
|
15474
|
+
if (!Util.isUnset(request.tagKeysShrink)) {
|
|
15475
|
+
query["tag_keys"] = request.tagKeysShrink;
|
|
13616
15476
|
}
|
|
13617
15477
|
|
|
13618
15478
|
let req = new $OpenApi.OpenApiRequest({
|
|
@@ -13633,10 +15493,10 @@ export default class Client extends OpenApi {
|
|
|
13633
15493
|
return $tea.cast<UntagResourcesResponse>(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
|
|
13634
15494
|
}
|
|
13635
15495
|
|
|
13636
|
-
async
|
|
15496
|
+
async untagResources(request: UntagResourcesRequest): Promise<UntagResourcesResponse> {
|
|
13637
15497
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13638
15498
|
let headers : {[key: string ]: string} = { };
|
|
13639
|
-
return await this.
|
|
15499
|
+
return await this.untagResourcesWithOptions(request, headers, runtime);
|
|
13640
15500
|
}
|
|
13641
15501
|
|
|
13642
15502
|
async updateContactGroupForAlertWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateContactGroupForAlertResponse> {
|
|
@@ -13657,12 +15517,65 @@ export default class Client extends OpenApi {
|
|
|
13657
15517
|
return $tea.cast<UpdateContactGroupForAlertResponse>(await this.callApi(params, req, runtime), new UpdateContactGroupForAlertResponse({}));
|
|
13658
15518
|
}
|
|
13659
15519
|
|
|
13660
|
-
async
|
|
15520
|
+
async updateContactGroupForAlert(ClusterId: string): Promise<UpdateContactGroupForAlertResponse> {
|
|
13661
15521
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13662
15522
|
let headers : {[key: string ]: string} = { };
|
|
13663
|
-
return await this.
|
|
15523
|
+
return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
|
|
15524
|
+
}
|
|
15525
|
+
|
|
15526
|
+
async updateControlPlaneLogWithOptions(ClusterId: string, request: UpdateControlPlaneLogRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateControlPlaneLogResponse> {
|
|
15527
|
+
Util.validateModel(request);
|
|
15528
|
+
let body : {[key: string ]: any} = { };
|
|
15529
|
+
if (!Util.isUnset(request.aliuid)) {
|
|
15530
|
+
body["aliuid"] = request.aliuid;
|
|
15531
|
+
}
|
|
15532
|
+
|
|
15533
|
+
if (!Util.isUnset(request.components)) {
|
|
15534
|
+
body["components"] = request.components;
|
|
15535
|
+
}
|
|
15536
|
+
|
|
15537
|
+
if (!Util.isUnset(request.logProject)) {
|
|
15538
|
+
body["log_project"] = request.logProject;
|
|
15539
|
+
}
|
|
15540
|
+
|
|
15541
|
+
if (!Util.isUnset(request.logTtl)) {
|
|
15542
|
+
body["log_ttl"] = request.logTtl;
|
|
15543
|
+
}
|
|
15544
|
+
|
|
15545
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
15546
|
+
headers: headers,
|
|
15547
|
+
body: OpenApiUtil.parseToMap(body),
|
|
15548
|
+
});
|
|
15549
|
+
let params = new $OpenApi.Params({
|
|
15550
|
+
action: "UpdateControlPlaneLog",
|
|
15551
|
+
version: "2015-12-15",
|
|
15552
|
+
protocol: "HTTPS",
|
|
15553
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(ClusterId)}/controlplanelog`,
|
|
15554
|
+
method: "PUT",
|
|
15555
|
+
authType: "AK",
|
|
15556
|
+
style: "ROA",
|
|
15557
|
+
reqBodyType: "json",
|
|
15558
|
+
bodyType: "none",
|
|
15559
|
+
});
|
|
15560
|
+
return $tea.cast<UpdateControlPlaneLogResponse>(await this.callApi(params, req, runtime), new UpdateControlPlaneLogResponse({}));
|
|
13664
15561
|
}
|
|
13665
15562
|
|
|
15563
|
+
async updateControlPlaneLog(ClusterId: string, request: UpdateControlPlaneLogRequest): Promise<UpdateControlPlaneLogResponse> {
|
|
15564
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
15565
|
+
let headers : {[key: string ]: string} = { };
|
|
15566
|
+
return await this.updateControlPlaneLogWithOptions(ClusterId, request, headers, runtime);
|
|
15567
|
+
}
|
|
15568
|
+
|
|
15569
|
+
/**
|
|
15570
|
+
* >
|
|
15571
|
+
* * You can call this operation only with an Alibaba Cloud account.
|
|
15572
|
+
* * After you revoke the kubeconfig file of a cluster, the validity period of the kubeconfig file that you specified becomes invalid. You can call this API operation to specify the validity period again.
|
|
15573
|
+
*
|
|
15574
|
+
* @param request UpdateK8sClusterUserConfigExpireRequest
|
|
15575
|
+
* @param headers map
|
|
15576
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
15577
|
+
* @return UpdateK8sClusterUserConfigExpireResponse
|
|
15578
|
+
*/
|
|
13666
15579
|
async updateK8sClusterUserConfigExpireWithOptions(ClusterId: string, request: UpdateK8sClusterUserConfigExpireRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateK8sClusterUserConfigExpireResponse> {
|
|
13667
15580
|
Util.validateModel(request);
|
|
13668
15581
|
let body : {[key: string ]: any} = { };
|
|
@@ -13692,10 +15605,18 @@ export default class Client extends OpenApi {
|
|
|
13692
15605
|
return $tea.cast<UpdateK8sClusterUserConfigExpireResponse>(await this.callApi(params, req, runtime), new UpdateK8sClusterUserConfigExpireResponse({}));
|
|
13693
15606
|
}
|
|
13694
15607
|
|
|
13695
|
-
|
|
15608
|
+
/**
|
|
15609
|
+
* >
|
|
15610
|
+
* * You can call this operation only with an Alibaba Cloud account.
|
|
15611
|
+
* * After you revoke the kubeconfig file of a cluster, the validity period of the kubeconfig file that you specified becomes invalid. You can call this API operation to specify the validity period again.
|
|
15612
|
+
*
|
|
15613
|
+
* @param request UpdateK8sClusterUserConfigExpireRequest
|
|
15614
|
+
* @return UpdateK8sClusterUserConfigExpireResponse
|
|
15615
|
+
*/
|
|
15616
|
+
async updateK8sClusterUserConfigExpire(ClusterId: string, request: UpdateK8sClusterUserConfigExpireRequest): Promise<UpdateK8sClusterUserConfigExpireResponse> {
|
|
13696
15617
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13697
15618
|
let headers : {[key: string ]: string} = { };
|
|
13698
|
-
return await this.
|
|
15619
|
+
return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime);
|
|
13699
15620
|
}
|
|
13700
15621
|
|
|
13701
15622
|
async updateTemplateWithOptions(TemplateId: string, request: UpdateTemplateRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateTemplateResponse> {
|
|
@@ -13739,10 +15660,10 @@ export default class Client extends OpenApi {
|
|
|
13739
15660
|
return $tea.cast<UpdateTemplateResponse>(await this.callApi(params, req, runtime), new UpdateTemplateResponse({}));
|
|
13740
15661
|
}
|
|
13741
15662
|
|
|
13742
|
-
async
|
|
15663
|
+
async updateTemplate(TemplateId: string, request: UpdateTemplateRequest): Promise<UpdateTemplateResponse> {
|
|
13743
15664
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13744
15665
|
let headers : {[key: string ]: string} = { };
|
|
13745
|
-
return await this.
|
|
15666
|
+
return await this.updateTemplateWithOptions(TemplateId, request, headers, runtime);
|
|
13746
15667
|
}
|
|
13747
15668
|
|
|
13748
15669
|
async upgradeClusterWithOptions(ClusterId: string, request: UpgradeClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpgradeClusterResponse> {
|
|
@@ -13752,6 +15673,10 @@ export default class Client extends OpenApi {
|
|
|
13752
15673
|
body["component_name"] = request.componentName;
|
|
13753
15674
|
}
|
|
13754
15675
|
|
|
15676
|
+
if (!Util.isUnset(request.masterOnly)) {
|
|
15677
|
+
body["master_only"] = request.masterOnly;
|
|
15678
|
+
}
|
|
15679
|
+
|
|
13755
15680
|
if (!Util.isUnset(request.nextVersion)) {
|
|
13756
15681
|
body["next_version"] = request.nextVersion;
|
|
13757
15682
|
}
|
|
@@ -13778,10 +15703,10 @@ export default class Client extends OpenApi {
|
|
|
13778
15703
|
return $tea.cast<UpgradeClusterResponse>(await this.callApi(params, req, runtime), new UpgradeClusterResponse({}));
|
|
13779
15704
|
}
|
|
13780
15705
|
|
|
13781
|
-
async
|
|
15706
|
+
async upgradeCluster(ClusterId: string, request: UpgradeClusterRequest): Promise<UpgradeClusterResponse> {
|
|
13782
15707
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13783
15708
|
let headers : {[key: string ]: string} = { };
|
|
13784
|
-
return await this.
|
|
15709
|
+
return await this.upgradeClusterWithOptions(ClusterId, request, headers, runtime);
|
|
13785
15710
|
}
|
|
13786
15711
|
|
|
13787
15712
|
async upgradeClusterAddonsWithOptions(ClusterId: string, request: UpgradeClusterAddonsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpgradeClusterAddonsResponse> {
|
|
@@ -13804,12 +15729,20 @@ export default class Client extends OpenApi {
|
|
|
13804
15729
|
return $tea.cast<UpgradeClusterAddonsResponse>(await this.callApi(params, req, runtime), new UpgradeClusterAddonsResponse({}));
|
|
13805
15730
|
}
|
|
13806
15731
|
|
|
13807
|
-
async
|
|
15732
|
+
async upgradeClusterAddons(ClusterId: string, request: UpgradeClusterAddonsRequest): Promise<UpgradeClusterAddonsResponse> {
|
|
13808
15733
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13809
15734
|
let headers : {[key: string ]: string} = { };
|
|
13810
|
-
return await this.
|
|
15735
|
+
return await this.upgradeClusterAddonsWithOptions(ClusterId, request, headers, runtime);
|
|
13811
15736
|
}
|
|
13812
15737
|
|
|
15738
|
+
/**
|
|
15739
|
+
* You can call the UpgradeClusterNodepool operation to update the Kubernetes version, OS version, or container runtime version of the nodes in a node pool.
|
|
15740
|
+
*
|
|
15741
|
+
* @param request UpgradeClusterNodepoolRequest
|
|
15742
|
+
* @param headers map
|
|
15743
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
15744
|
+
* @return UpgradeClusterNodepoolResponse
|
|
15745
|
+
*/
|
|
13813
15746
|
async upgradeClusterNodepoolWithOptions(ClusterId: string, NodepoolId: string, request: UpgradeClusterNodepoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpgradeClusterNodepoolResponse> {
|
|
13814
15747
|
Util.validateModel(request);
|
|
13815
15748
|
let body : {[key: string ]: any} = { };
|
|
@@ -13821,6 +15754,10 @@ export default class Client extends OpenApi {
|
|
|
13821
15754
|
body["kubernetes_version"] = request.kubernetesVersion;
|
|
13822
15755
|
}
|
|
13823
15756
|
|
|
15757
|
+
if (!Util.isUnset(request.runtimeType)) {
|
|
15758
|
+
body["runtime_type"] = request.runtimeType;
|
|
15759
|
+
}
|
|
15760
|
+
|
|
13824
15761
|
if (!Util.isUnset(request.runtimeVersion)) {
|
|
13825
15762
|
body["runtime_version"] = request.runtimeVersion;
|
|
13826
15763
|
}
|
|
@@ -13843,4 +15780,16 @@ export default class Client extends OpenApi {
|
|
|
13843
15780
|
return $tea.cast<UpgradeClusterNodepoolResponse>(await this.callApi(params, req, runtime), new UpgradeClusterNodepoolResponse({}));
|
|
13844
15781
|
}
|
|
13845
15782
|
|
|
15783
|
+
/**
|
|
15784
|
+
* You can call the UpgradeClusterNodepool operation to update the Kubernetes version, OS version, or container runtime version of the nodes in a node pool.
|
|
15785
|
+
*
|
|
15786
|
+
* @param request UpgradeClusterNodepoolRequest
|
|
15787
|
+
* @return UpgradeClusterNodepoolResponse
|
|
15788
|
+
*/
|
|
15789
|
+
async upgradeClusterNodepool(ClusterId: string, NodepoolId: string, request: UpgradeClusterNodepoolRequest): Promise<UpgradeClusterNodepoolResponse> {
|
|
15790
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
15791
|
+
let headers : {[key: string ]: string} = { };
|
|
15792
|
+
return await this.upgradeClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
15793
|
+
}
|
|
15794
|
+
|
|
13846
15795
|
}
|