@alicloud/cs20151215 3.0.20 → 3.0.21
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 +929 -149
- package/dist/client.js +1529 -257
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +1820 -318
package/src/client.ts
CHANGED
|
@@ -192,6 +192,34 @@ export class StandardComponentsValue extends $tea.Model {
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
+
export class QuotasValue extends $tea.Model {
|
|
196
|
+
quota?: string;
|
|
197
|
+
operationCode?: string;
|
|
198
|
+
adjustable?: boolean;
|
|
199
|
+
unit?: string;
|
|
200
|
+
static names(): { [key: string]: string } {
|
|
201
|
+
return {
|
|
202
|
+
quota: 'quota',
|
|
203
|
+
operationCode: 'operation_code',
|
|
204
|
+
adjustable: 'adjustable',
|
|
205
|
+
unit: 'unit',
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
static types(): { [key: string]: any } {
|
|
210
|
+
return {
|
|
211
|
+
quota: 'string',
|
|
212
|
+
operationCode: 'string',
|
|
213
|
+
adjustable: 'boolean',
|
|
214
|
+
unit: 'string',
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
constructor(map?: { [key: string]: any }) {
|
|
219
|
+
super(map);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
195
223
|
export class AttachInstancesRequest extends $tea.Model {
|
|
196
224
|
cpuPolicy?: string;
|
|
197
225
|
formatDisk?: boolean;
|
|
@@ -294,6 +322,81 @@ export class AttachInstancesResponse extends $tea.Model {
|
|
|
294
322
|
}
|
|
295
323
|
}
|
|
296
324
|
|
|
325
|
+
export class AttachInstancesToNodePoolRequest extends $tea.Model {
|
|
326
|
+
formatDisk?: boolean;
|
|
327
|
+
instances?: string[];
|
|
328
|
+
keepInstanceName?: boolean;
|
|
329
|
+
password?: string;
|
|
330
|
+
static names(): { [key: string]: string } {
|
|
331
|
+
return {
|
|
332
|
+
formatDisk: 'format_disk',
|
|
333
|
+
instances: 'instances',
|
|
334
|
+
keepInstanceName: 'keep_instance_name',
|
|
335
|
+
password: 'password',
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
static types(): { [key: string]: any } {
|
|
340
|
+
return {
|
|
341
|
+
formatDisk: 'boolean',
|
|
342
|
+
instances: { 'type': 'array', 'itemType': 'string' },
|
|
343
|
+
keepInstanceName: 'boolean',
|
|
344
|
+
password: 'string',
|
|
345
|
+
};
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
constructor(map?: { [key: string]: any }) {
|
|
349
|
+
super(map);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
export class AttachInstancesToNodePoolResponseBody extends $tea.Model {
|
|
354
|
+
requestId?: string;
|
|
355
|
+
taskId?: string;
|
|
356
|
+
static names(): { [key: string]: string } {
|
|
357
|
+
return {
|
|
358
|
+
requestId: 'request_id',
|
|
359
|
+
taskId: 'task_id',
|
|
360
|
+
};
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
static types(): { [key: string]: any } {
|
|
364
|
+
return {
|
|
365
|
+
requestId: 'string',
|
|
366
|
+
taskId: 'string',
|
|
367
|
+
};
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
constructor(map?: { [key: string]: any }) {
|
|
371
|
+
super(map);
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
export class AttachInstancesToNodePoolResponse extends $tea.Model {
|
|
376
|
+
headers: { [key: string]: string };
|
|
377
|
+
statusCode: number;
|
|
378
|
+
body: AttachInstancesToNodePoolResponseBody;
|
|
379
|
+
static names(): { [key: string]: string } {
|
|
380
|
+
return {
|
|
381
|
+
headers: 'headers',
|
|
382
|
+
statusCode: 'statusCode',
|
|
383
|
+
body: 'body',
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
static types(): { [key: string]: any } {
|
|
388
|
+
return {
|
|
389
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
390
|
+
statusCode: 'number',
|
|
391
|
+
body: AttachInstancesToNodePoolResponseBody,
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
constructor(map?: { [key: string]: any }) {
|
|
396
|
+
super(map);
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
297
400
|
export class CancelClusterUpgradeResponse extends $tea.Model {
|
|
298
401
|
headers: { [key: string]: string };
|
|
299
402
|
statusCode: number;
|
|
@@ -401,21 +504,88 @@ export class CancelWorkflowResponse extends $tea.Model {
|
|
|
401
504
|
}
|
|
402
505
|
}
|
|
403
506
|
|
|
507
|
+
export class CheckControlPlaneLogEnableResponseBody extends $tea.Model {
|
|
508
|
+
aliuid?: string;
|
|
509
|
+
components?: string[];
|
|
510
|
+
logProject?: string;
|
|
511
|
+
logTtl?: string;
|
|
512
|
+
static names(): { [key: string]: string } {
|
|
513
|
+
return {
|
|
514
|
+
aliuid: 'aliuid',
|
|
515
|
+
components: 'components',
|
|
516
|
+
logProject: 'log_project',
|
|
517
|
+
logTtl: 'log_ttl',
|
|
518
|
+
};
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
static types(): { [key: string]: any } {
|
|
522
|
+
return {
|
|
523
|
+
aliuid: 'string',
|
|
524
|
+
components: { 'type': 'array', 'itemType': 'string' },
|
|
525
|
+
logProject: 'string',
|
|
526
|
+
logTtl: 'string',
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
constructor(map?: { [key: string]: any }) {
|
|
531
|
+
super(map);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
export class CheckControlPlaneLogEnableResponse extends $tea.Model {
|
|
536
|
+
headers: { [key: string]: string };
|
|
537
|
+
statusCode: number;
|
|
538
|
+
body: CheckControlPlaneLogEnableResponseBody;
|
|
539
|
+
static names(): { [key: string]: string } {
|
|
540
|
+
return {
|
|
541
|
+
headers: 'headers',
|
|
542
|
+
statusCode: 'statusCode',
|
|
543
|
+
body: 'body',
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
static types(): { [key: string]: any } {
|
|
548
|
+
return {
|
|
549
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
550
|
+
statusCode: 'number',
|
|
551
|
+
body: CheckControlPlaneLogEnableResponseBody,
|
|
552
|
+
};
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
constructor(map?: { [key: string]: any }) {
|
|
556
|
+
super(map);
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
|
|
404
560
|
export class CreateAutoscalingConfigRequest extends $tea.Model {
|
|
405
561
|
coolDownDuration?: string;
|
|
562
|
+
daemonsetEvictionForNodes?: boolean;
|
|
406
563
|
expander?: string;
|
|
407
564
|
gpuUtilizationThreshold?: string;
|
|
565
|
+
maxGracefulTerminationSec?: number;
|
|
566
|
+
minReplicaCount?: number;
|
|
567
|
+
recycleNodeDeletionEnabled?: boolean;
|
|
408
568
|
scaleDownEnabled?: boolean;
|
|
569
|
+
scaleUpFromZero?: boolean;
|
|
409
570
|
scanInterval?: string;
|
|
571
|
+
skipNodesWithLocalStorage?: boolean;
|
|
572
|
+
skipNodesWithSystemPods?: boolean;
|
|
410
573
|
unneededDuration?: string;
|
|
411
574
|
utilizationThreshold?: string;
|
|
412
575
|
static names(): { [key: string]: string } {
|
|
413
576
|
return {
|
|
414
577
|
coolDownDuration: 'cool_down_duration',
|
|
578
|
+
daemonsetEvictionForNodes: 'daemonset_eviction_for_nodes',
|
|
415
579
|
expander: 'expander',
|
|
416
580
|
gpuUtilizationThreshold: 'gpu_utilization_threshold',
|
|
581
|
+
maxGracefulTerminationSec: 'max_graceful_termination_sec',
|
|
582
|
+
minReplicaCount: 'min_replica_count',
|
|
583
|
+
recycleNodeDeletionEnabled: 'recycle_node_deletion_enabled',
|
|
417
584
|
scaleDownEnabled: 'scale_down_enabled',
|
|
585
|
+
scaleUpFromZero: 'scale_up_from_zero',
|
|
418
586
|
scanInterval: 'scan_interval',
|
|
587
|
+
skipNodesWithLocalStorage: 'skip_nodes_with_local_storage',
|
|
588
|
+
skipNodesWithSystemPods: 'skip_nodes_with_system_pods',
|
|
419
589
|
unneededDuration: 'unneeded_duration',
|
|
420
590
|
utilizationThreshold: 'utilization_threshold',
|
|
421
591
|
};
|
|
@@ -424,10 +594,17 @@ export class CreateAutoscalingConfigRequest extends $tea.Model {
|
|
|
424
594
|
static types(): { [key: string]: any } {
|
|
425
595
|
return {
|
|
426
596
|
coolDownDuration: 'string',
|
|
597
|
+
daemonsetEvictionForNodes: 'boolean',
|
|
427
598
|
expander: 'string',
|
|
428
599
|
gpuUtilizationThreshold: 'string',
|
|
600
|
+
maxGracefulTerminationSec: 'number',
|
|
601
|
+
minReplicaCount: 'number',
|
|
602
|
+
recycleNodeDeletionEnabled: 'boolean',
|
|
429
603
|
scaleDownEnabled: 'boolean',
|
|
604
|
+
scaleUpFromZero: 'boolean',
|
|
430
605
|
scanInterval: 'string',
|
|
606
|
+
skipNodesWithLocalStorage: 'boolean',
|
|
607
|
+
skipNodesWithSystemPods: 'boolean',
|
|
431
608
|
unneededDuration: 'string',
|
|
432
609
|
utilizationThreshold: 'string',
|
|
433
610
|
};
|
|
@@ -1289,13 +1466,34 @@ export class DeleteClusterShrinkRequest extends $tea.Model {
|
|
|
1289
1466
|
}
|
|
1290
1467
|
}
|
|
1291
1468
|
|
|
1469
|
+
export class DeleteClusterResponseBody extends $tea.Model {
|
|
1470
|
+
taskId?: string;
|
|
1471
|
+
static names(): { [key: string]: string } {
|
|
1472
|
+
return {
|
|
1473
|
+
taskId: 'task_id',
|
|
1474
|
+
};
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
static types(): { [key: string]: any } {
|
|
1478
|
+
return {
|
|
1479
|
+
taskId: 'string',
|
|
1480
|
+
};
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
constructor(map?: { [key: string]: any }) {
|
|
1484
|
+
super(map);
|
|
1485
|
+
}
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1292
1488
|
export class DeleteClusterResponse extends $tea.Model {
|
|
1293
1489
|
headers: { [key: string]: string };
|
|
1294
1490
|
statusCode: number;
|
|
1491
|
+
body: DeleteClusterResponseBody;
|
|
1295
1492
|
static names(): { [key: string]: string } {
|
|
1296
1493
|
return {
|
|
1297
1494
|
headers: 'headers',
|
|
1298
1495
|
statusCode: 'statusCode',
|
|
1496
|
+
body: 'body',
|
|
1299
1497
|
};
|
|
1300
1498
|
}
|
|
1301
1499
|
|
|
@@ -1303,6 +1501,7 @@ export class DeleteClusterResponse extends $tea.Model {
|
|
|
1303
1501
|
return {
|
|
1304
1502
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1305
1503
|
statusCode: 'number',
|
|
1504
|
+
body: DeleteClusterResponseBody,
|
|
1306
1505
|
};
|
|
1307
1506
|
}
|
|
1308
1507
|
|
|
@@ -1763,18 +1962,27 @@ export class DescirbeWorkflowResponse extends $tea.Model {
|
|
|
1763
1962
|
}
|
|
1764
1963
|
|
|
1765
1964
|
export class DescribeAddonsRequest extends $tea.Model {
|
|
1965
|
+
clusterProfile?: string;
|
|
1966
|
+
clusterSpec?: string;
|
|
1766
1967
|
clusterType?: string;
|
|
1968
|
+
clusterVersion?: string;
|
|
1767
1969
|
region?: string;
|
|
1768
1970
|
static names(): { [key: string]: string } {
|
|
1769
1971
|
return {
|
|
1972
|
+
clusterProfile: 'cluster_profile',
|
|
1973
|
+
clusterSpec: 'cluster_spec',
|
|
1770
1974
|
clusterType: 'cluster_type',
|
|
1975
|
+
clusterVersion: 'cluster_version',
|
|
1771
1976
|
region: 'region',
|
|
1772
1977
|
};
|
|
1773
1978
|
}
|
|
1774
1979
|
|
|
1775
1980
|
static types(): { [key: string]: any } {
|
|
1776
1981
|
return {
|
|
1982
|
+
clusterProfile: 'string',
|
|
1983
|
+
clusterSpec: 'string',
|
|
1777
1984
|
clusterType: 'string',
|
|
1985
|
+
clusterVersion: 'string',
|
|
1778
1986
|
region: 'string',
|
|
1779
1987
|
};
|
|
1780
1988
|
}
|
|
@@ -1831,6 +2039,59 @@ export class DescribeAddonsResponse extends $tea.Model {
|
|
|
1831
2039
|
}
|
|
1832
2040
|
}
|
|
1833
2041
|
|
|
2042
|
+
export class DescribeClusterAddonInstanceResponseBody extends $tea.Model {
|
|
2043
|
+
config?: string;
|
|
2044
|
+
name?: string;
|
|
2045
|
+
state?: string;
|
|
2046
|
+
version?: string;
|
|
2047
|
+
static names(): { [key: string]: string } {
|
|
2048
|
+
return {
|
|
2049
|
+
config: 'config',
|
|
2050
|
+
name: 'name',
|
|
2051
|
+
state: 'state',
|
|
2052
|
+
version: 'version',
|
|
2053
|
+
};
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
static types(): { [key: string]: any } {
|
|
2057
|
+
return {
|
|
2058
|
+
config: 'string',
|
|
2059
|
+
name: 'string',
|
|
2060
|
+
state: 'string',
|
|
2061
|
+
version: 'string',
|
|
2062
|
+
};
|
|
2063
|
+
}
|
|
2064
|
+
|
|
2065
|
+
constructor(map?: { [key: string]: any }) {
|
|
2066
|
+
super(map);
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
|
|
2070
|
+
export class DescribeClusterAddonInstanceResponse extends $tea.Model {
|
|
2071
|
+
headers: { [key: string]: string };
|
|
2072
|
+
statusCode: number;
|
|
2073
|
+
body: DescribeClusterAddonInstanceResponseBody;
|
|
2074
|
+
static names(): { [key: string]: string } {
|
|
2075
|
+
return {
|
|
2076
|
+
headers: 'headers',
|
|
2077
|
+
statusCode: 'statusCode',
|
|
2078
|
+
body: 'body',
|
|
2079
|
+
};
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
static types(): { [key: string]: any } {
|
|
2083
|
+
return {
|
|
2084
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2085
|
+
statusCode: 'number',
|
|
2086
|
+
body: DescribeClusterAddonInstanceResponseBody,
|
|
2087
|
+
};
|
|
2088
|
+
}
|
|
2089
|
+
|
|
2090
|
+
constructor(map?: { [key: string]: any }) {
|
|
2091
|
+
super(map);
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
|
|
1834
2095
|
export class DescribeClusterAddonMetadataResponseBody extends $tea.Model {
|
|
1835
2096
|
configSchema?: string;
|
|
1836
2097
|
name?: string;
|
|
@@ -2069,6 +2330,7 @@ export class DescribeClusterDetailResponseBody extends $tea.Model {
|
|
|
2069
2330
|
name?: string;
|
|
2070
2331
|
networkMode?: string;
|
|
2071
2332
|
nextVersion?: string;
|
|
2333
|
+
parameters?: { [key: string]: string };
|
|
2072
2334
|
privateZone?: boolean;
|
|
2073
2335
|
profile?: string;
|
|
2074
2336
|
regionId?: string;
|
|
@@ -2100,6 +2362,7 @@ export class DescribeClusterDetailResponseBody extends $tea.Model {
|
|
|
2100
2362
|
name: 'name',
|
|
2101
2363
|
networkMode: 'network_mode',
|
|
2102
2364
|
nextVersion: 'next_version',
|
|
2365
|
+
parameters: 'parameters',
|
|
2103
2366
|
privateZone: 'private_zone',
|
|
2104
2367
|
profile: 'profile',
|
|
2105
2368
|
regionId: 'region_id',
|
|
@@ -2134,6 +2397,7 @@ export class DescribeClusterDetailResponseBody extends $tea.Model {
|
|
|
2134
2397
|
name: 'string',
|
|
2135
2398
|
networkMode: 'string',
|
|
2136
2399
|
nextVersion: 'string',
|
|
2400
|
+
parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2137
2401
|
privateZone: 'boolean',
|
|
2138
2402
|
profile: 'string',
|
|
2139
2403
|
regionId: 'string',
|
|
@@ -2184,7 +2448,7 @@ export class DescribeClusterDetailResponse extends $tea.Model {
|
|
|
2184
2448
|
export class DescribeClusterEventsRequest extends $tea.Model {
|
|
2185
2449
|
pageNumber?: number;
|
|
2186
2450
|
pageSize?: number;
|
|
2187
|
-
taskId?:
|
|
2451
|
+
taskId?: string;
|
|
2188
2452
|
static names(): { [key: string]: string } {
|
|
2189
2453
|
return {
|
|
2190
2454
|
pageNumber: 'page_number',
|
|
@@ -2197,7 +2461,7 @@ export class DescribeClusterEventsRequest extends $tea.Model {
|
|
|
2197
2461
|
return {
|
|
2198
2462
|
pageNumber: 'number',
|
|
2199
2463
|
pageSize: 'number',
|
|
2200
|
-
taskId: '
|
|
2464
|
+
taskId: 'string',
|
|
2201
2465
|
};
|
|
2202
2466
|
}
|
|
2203
2467
|
|
|
@@ -2678,6 +2942,50 @@ export class DescribeClusterV2UserKubeconfigResponse extends $tea.Model {
|
|
|
2678
2942
|
}
|
|
2679
2943
|
}
|
|
2680
2944
|
|
|
2945
|
+
export class DescribeClusterVulsResponseBody extends $tea.Model {
|
|
2946
|
+
vulRecords?: DescribeClusterVulsResponseBodyVulRecords[];
|
|
2947
|
+
static names(): { [key: string]: string } {
|
|
2948
|
+
return {
|
|
2949
|
+
vulRecords: 'vul_records',
|
|
2950
|
+
};
|
|
2951
|
+
}
|
|
2952
|
+
|
|
2953
|
+
static types(): { [key: string]: any } {
|
|
2954
|
+
return {
|
|
2955
|
+
vulRecords: { 'type': 'array', 'itemType': DescribeClusterVulsResponseBodyVulRecords },
|
|
2956
|
+
};
|
|
2957
|
+
}
|
|
2958
|
+
|
|
2959
|
+
constructor(map?: { [key: string]: any }) {
|
|
2960
|
+
super(map);
|
|
2961
|
+
}
|
|
2962
|
+
}
|
|
2963
|
+
|
|
2964
|
+
export class DescribeClusterVulsResponse extends $tea.Model {
|
|
2965
|
+
headers: { [key: string]: string };
|
|
2966
|
+
statusCode: number;
|
|
2967
|
+
body: DescribeClusterVulsResponseBody;
|
|
2968
|
+
static names(): { [key: string]: string } {
|
|
2969
|
+
return {
|
|
2970
|
+
headers: 'headers',
|
|
2971
|
+
statusCode: 'statusCode',
|
|
2972
|
+
body: 'body',
|
|
2973
|
+
};
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2976
|
+
static types(): { [key: string]: any } {
|
|
2977
|
+
return {
|
|
2978
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
2979
|
+
statusCode: 'number',
|
|
2980
|
+
body: DescribeClusterVulsResponseBody,
|
|
2981
|
+
};
|
|
2982
|
+
}
|
|
2983
|
+
|
|
2984
|
+
constructor(map?: { [key: string]: any }) {
|
|
2985
|
+
super(map);
|
|
2986
|
+
}
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2681
2989
|
export class DescribeClustersRequest extends $tea.Model {
|
|
2682
2990
|
clusterType?: string;
|
|
2683
2991
|
name?: string;
|
|
@@ -3193,6 +3501,7 @@ export class DescribeExternalAgentResponse extends $tea.Model {
|
|
|
3193
3501
|
export class DescribeKubernetesVersionMetadataRequest extends $tea.Model {
|
|
3194
3502
|
clusterType?: string;
|
|
3195
3503
|
kubernetesVersion?: string;
|
|
3504
|
+
mode?: string;
|
|
3196
3505
|
profile?: string;
|
|
3197
3506
|
region?: string;
|
|
3198
3507
|
runtime?: string;
|
|
@@ -3200,6 +3509,7 @@ export class DescribeKubernetesVersionMetadataRequest extends $tea.Model {
|
|
|
3200
3509
|
return {
|
|
3201
3510
|
clusterType: 'ClusterType',
|
|
3202
3511
|
kubernetesVersion: 'KubernetesVersion',
|
|
3512
|
+
mode: 'Mode',
|
|
3203
3513
|
profile: 'Profile',
|
|
3204
3514
|
region: 'Region',
|
|
3205
3515
|
runtime: 'runtime',
|
|
@@ -3210,6 +3520,7 @@ export class DescribeKubernetesVersionMetadataRequest extends $tea.Model {
|
|
|
3210
3520
|
return {
|
|
3211
3521
|
clusterType: 'string',
|
|
3212
3522
|
kubernetesVersion: 'string',
|
|
3523
|
+
mode: 'string',
|
|
3213
3524
|
profile: 'string',
|
|
3214
3525
|
region: 'string',
|
|
3215
3526
|
runtime: 'string',
|
|
@@ -3246,6 +3557,25 @@ export class DescribeKubernetesVersionMetadataResponse extends $tea.Model {
|
|
|
3246
3557
|
}
|
|
3247
3558
|
}
|
|
3248
3559
|
|
|
3560
|
+
export class DescribeNodePoolVulsRequest extends $tea.Model {
|
|
3561
|
+
necessity?: string;
|
|
3562
|
+
static names(): { [key: string]: string } {
|
|
3563
|
+
return {
|
|
3564
|
+
necessity: 'necessity',
|
|
3565
|
+
};
|
|
3566
|
+
}
|
|
3567
|
+
|
|
3568
|
+
static types(): { [key: string]: any } {
|
|
3569
|
+
return {
|
|
3570
|
+
necessity: 'string',
|
|
3571
|
+
};
|
|
3572
|
+
}
|
|
3573
|
+
|
|
3574
|
+
constructor(map?: { [key: string]: any }) {
|
|
3575
|
+
super(map);
|
|
3576
|
+
}
|
|
3577
|
+
}
|
|
3578
|
+
|
|
3249
3579
|
export class DescribeNodePoolVulsResponseBody extends $tea.Model {
|
|
3250
3580
|
vulRecords?: DescribeNodePoolVulsResponseBodyVulRecords[];
|
|
3251
3581
|
vulsFixServicePurchased?: boolean;
|
|
@@ -3530,10 +3860,79 @@ export class DescribePolicyInstancesStatusResponse extends $tea.Model {
|
|
|
3530
3860
|
}
|
|
3531
3861
|
}
|
|
3532
3862
|
|
|
3533
|
-
export class
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3863
|
+
export class DescribeSubaccountK8sClusterUserConfigRequest extends $tea.Model {
|
|
3864
|
+
privateIpAddress?: boolean;
|
|
3865
|
+
temporaryDurationMinutes?: number;
|
|
3866
|
+
static names(): { [key: string]: string } {
|
|
3867
|
+
return {
|
|
3868
|
+
privateIpAddress: 'PrivateIpAddress',
|
|
3869
|
+
temporaryDurationMinutes: 'TemporaryDurationMinutes',
|
|
3870
|
+
};
|
|
3871
|
+
}
|
|
3872
|
+
|
|
3873
|
+
static types(): { [key: string]: any } {
|
|
3874
|
+
return {
|
|
3875
|
+
privateIpAddress: 'boolean',
|
|
3876
|
+
temporaryDurationMinutes: 'number',
|
|
3877
|
+
};
|
|
3878
|
+
}
|
|
3879
|
+
|
|
3880
|
+
constructor(map?: { [key: string]: any }) {
|
|
3881
|
+
super(map);
|
|
3882
|
+
}
|
|
3883
|
+
}
|
|
3884
|
+
|
|
3885
|
+
export class DescribeSubaccountK8sClusterUserConfigResponseBody extends $tea.Model {
|
|
3886
|
+
config?: string;
|
|
3887
|
+
expiration?: string;
|
|
3888
|
+
static names(): { [key: string]: string } {
|
|
3889
|
+
return {
|
|
3890
|
+
config: 'config',
|
|
3891
|
+
expiration: 'expiration',
|
|
3892
|
+
};
|
|
3893
|
+
}
|
|
3894
|
+
|
|
3895
|
+
static types(): { [key: string]: any } {
|
|
3896
|
+
return {
|
|
3897
|
+
config: 'string',
|
|
3898
|
+
expiration: 'string',
|
|
3899
|
+
};
|
|
3900
|
+
}
|
|
3901
|
+
|
|
3902
|
+
constructor(map?: { [key: string]: any }) {
|
|
3903
|
+
super(map);
|
|
3904
|
+
}
|
|
3905
|
+
}
|
|
3906
|
+
|
|
3907
|
+
export class DescribeSubaccountK8sClusterUserConfigResponse extends $tea.Model {
|
|
3908
|
+
headers: { [key: string]: string };
|
|
3909
|
+
statusCode: number;
|
|
3910
|
+
body: DescribeSubaccountK8sClusterUserConfigResponseBody;
|
|
3911
|
+
static names(): { [key: string]: string } {
|
|
3912
|
+
return {
|
|
3913
|
+
headers: 'headers',
|
|
3914
|
+
statusCode: 'statusCode',
|
|
3915
|
+
body: 'body',
|
|
3916
|
+
};
|
|
3917
|
+
}
|
|
3918
|
+
|
|
3919
|
+
static types(): { [key: string]: any } {
|
|
3920
|
+
return {
|
|
3921
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3922
|
+
statusCode: 'number',
|
|
3923
|
+
body: DescribeSubaccountK8sClusterUserConfigResponseBody,
|
|
3924
|
+
};
|
|
3925
|
+
}
|
|
3926
|
+
|
|
3927
|
+
constructor(map?: { [key: string]: any }) {
|
|
3928
|
+
super(map);
|
|
3929
|
+
}
|
|
3930
|
+
}
|
|
3931
|
+
|
|
3932
|
+
export class DescribeTaskInfoResponseBody extends $tea.Model {
|
|
3933
|
+
clusterId?: string;
|
|
3934
|
+
created?: string;
|
|
3935
|
+
currentStage?: string;
|
|
3537
3936
|
error?: DescribeTaskInfoResponseBodyError;
|
|
3538
3937
|
events?: DescribeTaskInfoResponseBodyEvents[];
|
|
3539
3938
|
parameters?: { [key: string]: any };
|
|
@@ -3779,6 +4178,31 @@ export class DescribeTriggerResponse extends $tea.Model {
|
|
|
3779
4178
|
}
|
|
3780
4179
|
}
|
|
3781
4180
|
|
|
4181
|
+
export class DescribeUserClusterNamespacesResponse extends $tea.Model {
|
|
4182
|
+
headers: { [key: string]: string };
|
|
4183
|
+
statusCode: number;
|
|
4184
|
+
body: string[];
|
|
4185
|
+
static names(): { [key: string]: string } {
|
|
4186
|
+
return {
|
|
4187
|
+
headers: 'headers',
|
|
4188
|
+
statusCode: 'statusCode',
|
|
4189
|
+
body: 'body',
|
|
4190
|
+
};
|
|
4191
|
+
}
|
|
4192
|
+
|
|
4193
|
+
static types(): { [key: string]: any } {
|
|
4194
|
+
return {
|
|
4195
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4196
|
+
statusCode: 'number',
|
|
4197
|
+
body: { 'type': 'array', 'itemType': 'string' },
|
|
4198
|
+
};
|
|
4199
|
+
}
|
|
4200
|
+
|
|
4201
|
+
constructor(map?: { [key: string]: any }) {
|
|
4202
|
+
super(map);
|
|
4203
|
+
}
|
|
4204
|
+
}
|
|
4205
|
+
|
|
3782
4206
|
export class DescribeUserPermissionResponse extends $tea.Model {
|
|
3783
4207
|
headers: { [key: string]: string };
|
|
3784
4208
|
statusCode: number;
|
|
@@ -3811,6 +4235,7 @@ export class DescribeUserQuotaResponseBody extends $tea.Model {
|
|
|
3811
4235
|
clusterQuota?: number;
|
|
3812
4236
|
edgeImprovedNodepoolQuota?: DescribeUserQuotaResponseBodyEdgeImprovedNodepoolQuota;
|
|
3813
4237
|
nodeQuota?: number;
|
|
4238
|
+
quotas?: { [key: string]: QuotasValue };
|
|
3814
4239
|
static names(): { [key: string]: string } {
|
|
3815
4240
|
return {
|
|
3816
4241
|
amkClusterQuota: 'amk_cluster_quota',
|
|
@@ -3819,6 +4244,7 @@ export class DescribeUserQuotaResponseBody extends $tea.Model {
|
|
|
3819
4244
|
clusterQuota: 'cluster_quota',
|
|
3820
4245
|
edgeImprovedNodepoolQuota: 'edge_improved_nodepool_quota',
|
|
3821
4246
|
nodeQuota: 'node_quota',
|
|
4247
|
+
quotas: 'quotas',
|
|
3822
4248
|
};
|
|
3823
4249
|
}
|
|
3824
4250
|
|
|
@@ -3830,6 +4256,7 @@ export class DescribeUserQuotaResponseBody extends $tea.Model {
|
|
|
3830
4256
|
clusterQuota: 'number',
|
|
3831
4257
|
edgeImprovedNodepoolQuota: DescribeUserQuotaResponseBodyEdgeImprovedNodepoolQuota,
|
|
3832
4258
|
nodeQuota: 'number',
|
|
4259
|
+
quotas: { 'type': 'map', 'keyType': 'string', 'valueType': QuotasValue },
|
|
3833
4260
|
};
|
|
3834
4261
|
}
|
|
3835
4262
|
|
|
@@ -3982,12 +4409,12 @@ export class EdgeClusterAddEdgeMachineResponse extends $tea.Model {
|
|
|
3982
4409
|
export class FixNodePoolVulsRequest extends $tea.Model {
|
|
3983
4410
|
nodes?: string[];
|
|
3984
4411
|
rolloutPolicy?: FixNodePoolVulsRequestRolloutPolicy;
|
|
3985
|
-
|
|
4412
|
+
vuls?: string[];
|
|
3986
4413
|
static names(): { [key: string]: string } {
|
|
3987
4414
|
return {
|
|
3988
4415
|
nodes: 'nodes',
|
|
3989
4416
|
rolloutPolicy: 'rollout_policy',
|
|
3990
|
-
|
|
4417
|
+
vuls: 'vuls',
|
|
3991
4418
|
};
|
|
3992
4419
|
}
|
|
3993
4420
|
|
|
@@ -3995,7 +4422,7 @@ export class FixNodePoolVulsRequest extends $tea.Model {
|
|
|
3995
4422
|
return {
|
|
3996
4423
|
nodes: { 'type': 'array', 'itemType': 'string' },
|
|
3997
4424
|
rolloutPolicy: FixNodePoolVulsRequestRolloutPolicy,
|
|
3998
|
-
|
|
4425
|
+
vuls: { 'type': 'array', 'itemType': 'string' },
|
|
3999
4426
|
};
|
|
4000
4427
|
}
|
|
4001
4428
|
|
|
@@ -5048,11 +5475,13 @@ export class RemoveClusterNodesResponse extends $tea.Model {
|
|
|
5048
5475
|
|
|
5049
5476
|
export class RemoveNodePoolNodesRequest extends $tea.Model {
|
|
5050
5477
|
drainNode?: boolean;
|
|
5478
|
+
instanceIds?: string[];
|
|
5051
5479
|
nodes?: string[];
|
|
5052
5480
|
releaseNode?: boolean;
|
|
5053
5481
|
static names(): { [key: string]: string } {
|
|
5054
5482
|
return {
|
|
5055
5483
|
drainNode: 'drain_node',
|
|
5484
|
+
instanceIds: 'instance_ids',
|
|
5056
5485
|
nodes: 'nodes',
|
|
5057
5486
|
releaseNode: 'release_node',
|
|
5058
5487
|
};
|
|
@@ -5061,6 +5490,7 @@ export class RemoveNodePoolNodesRequest extends $tea.Model {
|
|
|
5061
5490
|
static types(): { [key: string]: any } {
|
|
5062
5491
|
return {
|
|
5063
5492
|
drainNode: 'boolean',
|
|
5493
|
+
instanceIds: { 'type': 'array', 'itemType': 'string' },
|
|
5064
5494
|
nodes: { 'type': 'array', 'itemType': 'string' },
|
|
5065
5495
|
releaseNode: 'boolean',
|
|
5066
5496
|
};
|
|
@@ -5073,11 +5503,13 @@ export class RemoveNodePoolNodesRequest extends $tea.Model {
|
|
|
5073
5503
|
|
|
5074
5504
|
export class RemoveNodePoolNodesShrinkRequest extends $tea.Model {
|
|
5075
5505
|
drainNode?: boolean;
|
|
5506
|
+
instanceIdsShrink?: string;
|
|
5076
5507
|
nodesShrink?: string;
|
|
5077
5508
|
releaseNode?: boolean;
|
|
5078
5509
|
static names(): { [key: string]: string } {
|
|
5079
5510
|
return {
|
|
5080
5511
|
drainNode: 'drain_node',
|
|
5512
|
+
instanceIdsShrink: 'instance_ids',
|
|
5081
5513
|
nodesShrink: 'nodes',
|
|
5082
5514
|
releaseNode: 'release_node',
|
|
5083
5515
|
};
|
|
@@ -5086,6 +5518,7 @@ export class RemoveNodePoolNodesShrinkRequest extends $tea.Model {
|
|
|
5086
5518
|
static types(): { [key: string]: any } {
|
|
5087
5519
|
return {
|
|
5088
5520
|
drainNode: 'boolean',
|
|
5521
|
+
instanceIdsShrink: 'string',
|
|
5089
5522
|
nodesShrink: 'string',
|
|
5090
5523
|
releaseNode: 'boolean',
|
|
5091
5524
|
};
|
|
@@ -5612,6 +6045,100 @@ export class ScaleOutClusterResponse extends $tea.Model {
|
|
|
5612
6045
|
}
|
|
5613
6046
|
}
|
|
5614
6047
|
|
|
6048
|
+
export class ScanClusterVulsResponseBody extends $tea.Model {
|
|
6049
|
+
requestId?: string;
|
|
6050
|
+
taskId?: string;
|
|
6051
|
+
static names(): { [key: string]: string } {
|
|
6052
|
+
return {
|
|
6053
|
+
requestId: 'request_id',
|
|
6054
|
+
taskId: 'task_id',
|
|
6055
|
+
};
|
|
6056
|
+
}
|
|
6057
|
+
|
|
6058
|
+
static types(): { [key: string]: any } {
|
|
6059
|
+
return {
|
|
6060
|
+
requestId: 'string',
|
|
6061
|
+
taskId: 'string',
|
|
6062
|
+
};
|
|
6063
|
+
}
|
|
6064
|
+
|
|
6065
|
+
constructor(map?: { [key: string]: any }) {
|
|
6066
|
+
super(map);
|
|
6067
|
+
}
|
|
6068
|
+
}
|
|
6069
|
+
|
|
6070
|
+
export class ScanClusterVulsResponse extends $tea.Model {
|
|
6071
|
+
headers: { [key: string]: string };
|
|
6072
|
+
statusCode: number;
|
|
6073
|
+
body: ScanClusterVulsResponseBody;
|
|
6074
|
+
static names(): { [key: string]: string } {
|
|
6075
|
+
return {
|
|
6076
|
+
headers: 'headers',
|
|
6077
|
+
statusCode: 'statusCode',
|
|
6078
|
+
body: 'body',
|
|
6079
|
+
};
|
|
6080
|
+
}
|
|
6081
|
+
|
|
6082
|
+
static types(): { [key: string]: any } {
|
|
6083
|
+
return {
|
|
6084
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6085
|
+
statusCode: 'number',
|
|
6086
|
+
body: ScanClusterVulsResponseBody,
|
|
6087
|
+
};
|
|
6088
|
+
}
|
|
6089
|
+
|
|
6090
|
+
constructor(map?: { [key: string]: any }) {
|
|
6091
|
+
super(map);
|
|
6092
|
+
}
|
|
6093
|
+
}
|
|
6094
|
+
|
|
6095
|
+
export class StartAlertResponseBody extends $tea.Model {
|
|
6096
|
+
msg?: string;
|
|
6097
|
+
status?: boolean;
|
|
6098
|
+
static names(): { [key: string]: string } {
|
|
6099
|
+
return {
|
|
6100
|
+
msg: 'msg',
|
|
6101
|
+
status: 'status',
|
|
6102
|
+
};
|
|
6103
|
+
}
|
|
6104
|
+
|
|
6105
|
+
static types(): { [key: string]: any } {
|
|
6106
|
+
return {
|
|
6107
|
+
msg: 'string',
|
|
6108
|
+
status: 'boolean',
|
|
6109
|
+
};
|
|
6110
|
+
}
|
|
6111
|
+
|
|
6112
|
+
constructor(map?: { [key: string]: any }) {
|
|
6113
|
+
super(map);
|
|
6114
|
+
}
|
|
6115
|
+
}
|
|
6116
|
+
|
|
6117
|
+
export class StartAlertResponse extends $tea.Model {
|
|
6118
|
+
headers: { [key: string]: string };
|
|
6119
|
+
statusCode: number;
|
|
6120
|
+
body: StartAlertResponseBody;
|
|
6121
|
+
static names(): { [key: string]: string } {
|
|
6122
|
+
return {
|
|
6123
|
+
headers: 'headers',
|
|
6124
|
+
statusCode: 'statusCode',
|
|
6125
|
+
body: 'body',
|
|
6126
|
+
};
|
|
6127
|
+
}
|
|
6128
|
+
|
|
6129
|
+
static types(): { [key: string]: any } {
|
|
6130
|
+
return {
|
|
6131
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6132
|
+
statusCode: 'number',
|
|
6133
|
+
body: StartAlertResponseBody,
|
|
6134
|
+
};
|
|
6135
|
+
}
|
|
6136
|
+
|
|
6137
|
+
constructor(map?: { [key: string]: any }) {
|
|
6138
|
+
super(map);
|
|
6139
|
+
}
|
|
6140
|
+
}
|
|
6141
|
+
|
|
5615
6142
|
export class StartWorkflowRequest extends $tea.Model {
|
|
5616
6143
|
mappingBamOutFilename?: string;
|
|
5617
6144
|
mappingBamOutPath?: string;
|
|
@@ -5729,45 +6256,20 @@ export class StartWorkflowResponse extends $tea.Model {
|
|
|
5729
6256
|
}
|
|
5730
6257
|
}
|
|
5731
6258
|
|
|
5732
|
-
export class
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
resourceType?: string;
|
|
5736
|
-
tags?: Tag[];
|
|
5737
|
-
static names(): { [key: string]: string } {
|
|
5738
|
-
return {
|
|
5739
|
-
regionId: 'region_id',
|
|
5740
|
-
resourceIds: 'resource_ids',
|
|
5741
|
-
resourceType: 'resource_type',
|
|
5742
|
-
tags: 'tags',
|
|
5743
|
-
};
|
|
5744
|
-
}
|
|
5745
|
-
|
|
5746
|
-
static types(): { [key: string]: any } {
|
|
5747
|
-
return {
|
|
5748
|
-
regionId: 'string',
|
|
5749
|
-
resourceIds: { 'type': 'array', 'itemType': 'string' },
|
|
5750
|
-
resourceType: 'string',
|
|
5751
|
-
tags: { 'type': 'array', 'itemType': Tag },
|
|
5752
|
-
};
|
|
5753
|
-
}
|
|
5754
|
-
|
|
5755
|
-
constructor(map?: { [key: string]: any }) {
|
|
5756
|
-
super(map);
|
|
5757
|
-
}
|
|
5758
|
-
}
|
|
5759
|
-
|
|
5760
|
-
export class TagResourcesResponseBody extends $tea.Model {
|
|
5761
|
-
requestId?: string;
|
|
6259
|
+
export class StopAlertResponseBody extends $tea.Model {
|
|
6260
|
+
msg?: string;
|
|
6261
|
+
status?: boolean;
|
|
5762
6262
|
static names(): { [key: string]: string } {
|
|
5763
6263
|
return {
|
|
5764
|
-
|
|
6264
|
+
msg: 'msg',
|
|
6265
|
+
status: 'status',
|
|
5765
6266
|
};
|
|
5766
6267
|
}
|
|
5767
6268
|
|
|
5768
6269
|
static types(): { [key: string]: any } {
|
|
5769
6270
|
return {
|
|
5770
|
-
|
|
6271
|
+
msg: 'string',
|
|
6272
|
+
status: 'boolean',
|
|
5771
6273
|
};
|
|
5772
6274
|
}
|
|
5773
6275
|
|
|
@@ -5776,10 +6278,10 @@ export class TagResourcesResponseBody extends $tea.Model {
|
|
|
5776
6278
|
}
|
|
5777
6279
|
}
|
|
5778
6280
|
|
|
5779
|
-
export class
|
|
6281
|
+
export class StopAlertResponse extends $tea.Model {
|
|
5780
6282
|
headers: { [key: string]: string };
|
|
5781
6283
|
statusCode: number;
|
|
5782
|
-
body:
|
|
6284
|
+
body: StopAlertResponseBody;
|
|
5783
6285
|
static names(): { [key: string]: string } {
|
|
5784
6286
|
return {
|
|
5785
6287
|
headers: 'headers',
|
|
@@ -5792,7 +6294,7 @@ export class TagResourcesResponse extends $tea.Model {
|
|
|
5792
6294
|
return {
|
|
5793
6295
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5794
6296
|
statusCode: 'number',
|
|
5795
|
-
body:
|
|
6297
|
+
body: StopAlertResponseBody,
|
|
5796
6298
|
};
|
|
5797
6299
|
}
|
|
5798
6300
|
|
|
@@ -5801,17 +6303,17 @@ export class TagResourcesResponse extends $tea.Model {
|
|
|
5801
6303
|
}
|
|
5802
6304
|
}
|
|
5803
6305
|
|
|
5804
|
-
export class
|
|
5805
|
-
|
|
6306
|
+
export class SyncClusterNodePoolResponseBody extends $tea.Model {
|
|
6307
|
+
requestId?: string;
|
|
5806
6308
|
static names(): { [key: string]: string } {
|
|
5807
6309
|
return {
|
|
5808
|
-
|
|
6310
|
+
requestId: 'RequestId',
|
|
5809
6311
|
};
|
|
5810
6312
|
}
|
|
5811
6313
|
|
|
5812
6314
|
static types(): { [key: string]: any } {
|
|
5813
6315
|
return {
|
|
5814
|
-
|
|
6316
|
+
requestId: 'string',
|
|
5815
6317
|
};
|
|
5816
6318
|
}
|
|
5817
6319
|
|
|
@@ -5820,13 +6322,15 @@ export class UnInstallClusterAddonsRequest extends $tea.Model {
|
|
|
5820
6322
|
}
|
|
5821
6323
|
}
|
|
5822
6324
|
|
|
5823
|
-
export class
|
|
6325
|
+
export class SyncClusterNodePoolResponse extends $tea.Model {
|
|
5824
6326
|
headers: { [key: string]: string };
|
|
5825
6327
|
statusCode: number;
|
|
6328
|
+
body: SyncClusterNodePoolResponseBody;
|
|
5826
6329
|
static names(): { [key: string]: string } {
|
|
5827
6330
|
return {
|
|
5828
6331
|
headers: 'headers',
|
|
5829
6332
|
statusCode: 'statusCode',
|
|
6333
|
+
body: 'body',
|
|
5830
6334
|
};
|
|
5831
6335
|
}
|
|
5832
6336
|
|
|
@@ -5834,6 +6338,7 @@ export class UnInstallClusterAddonsResponse extends $tea.Model {
|
|
|
5834
6338
|
return {
|
|
5835
6339
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5836
6340
|
statusCode: 'number',
|
|
6341
|
+
body: SyncClusterNodePoolResponseBody,
|
|
5837
6342
|
};
|
|
5838
6343
|
}
|
|
5839
6344
|
|
|
@@ -5842,29 +6347,26 @@ export class UnInstallClusterAddonsResponse extends $tea.Model {
|
|
|
5842
6347
|
}
|
|
5843
6348
|
}
|
|
5844
6349
|
|
|
5845
|
-
export class
|
|
5846
|
-
all?: boolean;
|
|
6350
|
+
export class TagResourcesRequest extends $tea.Model {
|
|
5847
6351
|
regionId?: string;
|
|
5848
6352
|
resourceIds?: string[];
|
|
5849
6353
|
resourceType?: string;
|
|
5850
|
-
|
|
6354
|
+
tags?: Tag[];
|
|
5851
6355
|
static names(): { [key: string]: string } {
|
|
5852
6356
|
return {
|
|
5853
|
-
all: 'all',
|
|
5854
6357
|
regionId: 'region_id',
|
|
5855
6358
|
resourceIds: 'resource_ids',
|
|
5856
6359
|
resourceType: 'resource_type',
|
|
5857
|
-
|
|
6360
|
+
tags: 'tags',
|
|
5858
6361
|
};
|
|
5859
6362
|
}
|
|
5860
6363
|
|
|
5861
6364
|
static types(): { [key: string]: any } {
|
|
5862
6365
|
return {
|
|
5863
|
-
all: 'boolean',
|
|
5864
6366
|
regionId: 'string',
|
|
5865
6367
|
resourceIds: { 'type': 'array', 'itemType': 'string' },
|
|
5866
6368
|
resourceType: 'string',
|
|
5867
|
-
|
|
6369
|
+
tags: { 'type': 'array', 'itemType': Tag },
|
|
5868
6370
|
};
|
|
5869
6371
|
}
|
|
5870
6372
|
|
|
@@ -5873,7 +6375,7 @@ export class UntagResourcesRequest extends $tea.Model {
|
|
|
5873
6375
|
}
|
|
5874
6376
|
}
|
|
5875
6377
|
|
|
5876
|
-
export class
|
|
6378
|
+
export class TagResourcesResponseBody extends $tea.Model {
|
|
5877
6379
|
requestId?: string;
|
|
5878
6380
|
static names(): { [key: string]: string } {
|
|
5879
6381
|
return {
|
|
@@ -5892,10 +6394,10 @@ export class UntagResourcesResponseBody extends $tea.Model {
|
|
|
5892
6394
|
}
|
|
5893
6395
|
}
|
|
5894
6396
|
|
|
5895
|
-
export class
|
|
6397
|
+
export class TagResourcesResponse extends $tea.Model {
|
|
5896
6398
|
headers: { [key: string]: string };
|
|
5897
6399
|
statusCode: number;
|
|
5898
|
-
body:
|
|
6400
|
+
body: TagResourcesResponseBody;
|
|
5899
6401
|
static names(): { [key: string]: string } {
|
|
5900
6402
|
return {
|
|
5901
6403
|
headers: 'headers',
|
|
@@ -5908,7 +6410,7 @@ export class UntagResourcesResponse extends $tea.Model {
|
|
|
5908
6410
|
return {
|
|
5909
6411
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5910
6412
|
statusCode: 'number',
|
|
5911
|
-
body:
|
|
6413
|
+
body: TagResourcesResponseBody,
|
|
5912
6414
|
};
|
|
5913
6415
|
}
|
|
5914
6416
|
|
|
@@ -5917,20 +6419,17 @@ export class UntagResourcesResponse extends $tea.Model {
|
|
|
5917
6419
|
}
|
|
5918
6420
|
}
|
|
5919
6421
|
|
|
5920
|
-
export class
|
|
5921
|
-
|
|
5922
|
-
statusCode: number;
|
|
6422
|
+
export class UnInstallClusterAddonsRequest extends $tea.Model {
|
|
6423
|
+
addons?: UnInstallClusterAddonsRequestAddons[];
|
|
5923
6424
|
static names(): { [key: string]: string } {
|
|
5924
6425
|
return {
|
|
5925
|
-
|
|
5926
|
-
statusCode: 'statusCode',
|
|
6426
|
+
addons: 'addons',
|
|
5927
6427
|
};
|
|
5928
6428
|
}
|
|
5929
6429
|
|
|
5930
6430
|
static types(): { [key: string]: any } {
|
|
5931
6431
|
return {
|
|
5932
|
-
|
|
5933
|
-
statusCode: 'number',
|
|
6432
|
+
addons: { 'type': 'array', 'itemType': UnInstallClusterAddonsRequestAddons },
|
|
5934
6433
|
};
|
|
5935
6434
|
}
|
|
5936
6435
|
|
|
@@ -5939,9 +6438,209 @@ export class UpdateContactGroupForAlertResponse extends $tea.Model {
|
|
|
5939
6438
|
}
|
|
5940
6439
|
}
|
|
5941
6440
|
|
|
5942
|
-
export class
|
|
5943
|
-
|
|
5944
|
-
|
|
6441
|
+
export class UnInstallClusterAddonsResponse extends $tea.Model {
|
|
6442
|
+
headers: { [key: string]: string };
|
|
6443
|
+
statusCode: number;
|
|
6444
|
+
static names(): { [key: string]: string } {
|
|
6445
|
+
return {
|
|
6446
|
+
headers: 'headers',
|
|
6447
|
+
statusCode: 'statusCode',
|
|
6448
|
+
};
|
|
6449
|
+
}
|
|
6450
|
+
|
|
6451
|
+
static types(): { [key: string]: any } {
|
|
6452
|
+
return {
|
|
6453
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6454
|
+
statusCode: 'number',
|
|
6455
|
+
};
|
|
6456
|
+
}
|
|
6457
|
+
|
|
6458
|
+
constructor(map?: { [key: string]: any }) {
|
|
6459
|
+
super(map);
|
|
6460
|
+
}
|
|
6461
|
+
}
|
|
6462
|
+
|
|
6463
|
+
export class UntagResourcesRequest extends $tea.Model {
|
|
6464
|
+
all?: boolean;
|
|
6465
|
+
regionId?: string;
|
|
6466
|
+
resourceIds?: string[];
|
|
6467
|
+
resourceType?: string;
|
|
6468
|
+
tagKeys?: string[];
|
|
6469
|
+
static names(): { [key: string]: string } {
|
|
6470
|
+
return {
|
|
6471
|
+
all: 'all',
|
|
6472
|
+
regionId: 'region_id',
|
|
6473
|
+
resourceIds: 'resource_ids',
|
|
6474
|
+
resourceType: 'resource_type',
|
|
6475
|
+
tagKeys: 'tag_keys',
|
|
6476
|
+
};
|
|
6477
|
+
}
|
|
6478
|
+
|
|
6479
|
+
static types(): { [key: string]: any } {
|
|
6480
|
+
return {
|
|
6481
|
+
all: 'boolean',
|
|
6482
|
+
regionId: 'string',
|
|
6483
|
+
resourceIds: { 'type': 'array', 'itemType': 'string' },
|
|
6484
|
+
resourceType: 'string',
|
|
6485
|
+
tagKeys: { 'type': 'array', 'itemType': 'string' },
|
|
6486
|
+
};
|
|
6487
|
+
}
|
|
6488
|
+
|
|
6489
|
+
constructor(map?: { [key: string]: any }) {
|
|
6490
|
+
super(map);
|
|
6491
|
+
}
|
|
6492
|
+
}
|
|
6493
|
+
|
|
6494
|
+
export class UntagResourcesShrinkRequest extends $tea.Model {
|
|
6495
|
+
all?: boolean;
|
|
6496
|
+
regionId?: string;
|
|
6497
|
+
resourceIdsShrink?: string;
|
|
6498
|
+
resourceType?: string;
|
|
6499
|
+
tagKeysShrink?: string;
|
|
6500
|
+
static names(): { [key: string]: string } {
|
|
6501
|
+
return {
|
|
6502
|
+
all: 'all',
|
|
6503
|
+
regionId: 'region_id',
|
|
6504
|
+
resourceIdsShrink: 'resource_ids',
|
|
6505
|
+
resourceType: 'resource_type',
|
|
6506
|
+
tagKeysShrink: 'tag_keys',
|
|
6507
|
+
};
|
|
6508
|
+
}
|
|
6509
|
+
|
|
6510
|
+
static types(): { [key: string]: any } {
|
|
6511
|
+
return {
|
|
6512
|
+
all: 'boolean',
|
|
6513
|
+
regionId: 'string',
|
|
6514
|
+
resourceIdsShrink: 'string',
|
|
6515
|
+
resourceType: 'string',
|
|
6516
|
+
tagKeysShrink: 'string',
|
|
6517
|
+
};
|
|
6518
|
+
}
|
|
6519
|
+
|
|
6520
|
+
constructor(map?: { [key: string]: any }) {
|
|
6521
|
+
super(map);
|
|
6522
|
+
}
|
|
6523
|
+
}
|
|
6524
|
+
|
|
6525
|
+
export class UntagResourcesResponseBody extends $tea.Model {
|
|
6526
|
+
requestId?: string;
|
|
6527
|
+
static names(): { [key: string]: string } {
|
|
6528
|
+
return {
|
|
6529
|
+
requestId: 'RequestId',
|
|
6530
|
+
};
|
|
6531
|
+
}
|
|
6532
|
+
|
|
6533
|
+
static types(): { [key: string]: any } {
|
|
6534
|
+
return {
|
|
6535
|
+
requestId: 'string',
|
|
6536
|
+
};
|
|
6537
|
+
}
|
|
6538
|
+
|
|
6539
|
+
constructor(map?: { [key: string]: any }) {
|
|
6540
|
+
super(map);
|
|
6541
|
+
}
|
|
6542
|
+
}
|
|
6543
|
+
|
|
6544
|
+
export class UntagResourcesResponse extends $tea.Model {
|
|
6545
|
+
headers: { [key: string]: string };
|
|
6546
|
+
statusCode: number;
|
|
6547
|
+
body: UntagResourcesResponseBody;
|
|
6548
|
+
static names(): { [key: string]: string } {
|
|
6549
|
+
return {
|
|
6550
|
+
headers: 'headers',
|
|
6551
|
+
statusCode: 'statusCode',
|
|
6552
|
+
body: 'body',
|
|
6553
|
+
};
|
|
6554
|
+
}
|
|
6555
|
+
|
|
6556
|
+
static types(): { [key: string]: any } {
|
|
6557
|
+
return {
|
|
6558
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6559
|
+
statusCode: 'number',
|
|
6560
|
+
body: UntagResourcesResponseBody,
|
|
6561
|
+
};
|
|
6562
|
+
}
|
|
6563
|
+
|
|
6564
|
+
constructor(map?: { [key: string]: any }) {
|
|
6565
|
+
super(map);
|
|
6566
|
+
}
|
|
6567
|
+
}
|
|
6568
|
+
|
|
6569
|
+
export class UpdateContactGroupForAlertResponse extends $tea.Model {
|
|
6570
|
+
headers: { [key: string]: string };
|
|
6571
|
+
statusCode: number;
|
|
6572
|
+
static names(): { [key: string]: string } {
|
|
6573
|
+
return {
|
|
6574
|
+
headers: 'headers',
|
|
6575
|
+
statusCode: 'statusCode',
|
|
6576
|
+
};
|
|
6577
|
+
}
|
|
6578
|
+
|
|
6579
|
+
static types(): { [key: string]: any } {
|
|
6580
|
+
return {
|
|
6581
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6582
|
+
statusCode: 'number',
|
|
6583
|
+
};
|
|
6584
|
+
}
|
|
6585
|
+
|
|
6586
|
+
constructor(map?: { [key: string]: any }) {
|
|
6587
|
+
super(map);
|
|
6588
|
+
}
|
|
6589
|
+
}
|
|
6590
|
+
|
|
6591
|
+
export class UpdateControlPlaneLogRequest extends $tea.Model {
|
|
6592
|
+
aliuid?: string;
|
|
6593
|
+
components?: string[];
|
|
6594
|
+
logProject?: string;
|
|
6595
|
+
logTtl?: string;
|
|
6596
|
+
static names(): { [key: string]: string } {
|
|
6597
|
+
return {
|
|
6598
|
+
aliuid: 'aliuid',
|
|
6599
|
+
components: 'components',
|
|
6600
|
+
logProject: 'log_project',
|
|
6601
|
+
logTtl: 'log_ttl',
|
|
6602
|
+
};
|
|
6603
|
+
}
|
|
6604
|
+
|
|
6605
|
+
static types(): { [key: string]: any } {
|
|
6606
|
+
return {
|
|
6607
|
+
aliuid: 'string',
|
|
6608
|
+
components: { 'type': 'array', 'itemType': 'string' },
|
|
6609
|
+
logProject: 'string',
|
|
6610
|
+
logTtl: 'string',
|
|
6611
|
+
};
|
|
6612
|
+
}
|
|
6613
|
+
|
|
6614
|
+
constructor(map?: { [key: string]: any }) {
|
|
6615
|
+
super(map);
|
|
6616
|
+
}
|
|
6617
|
+
}
|
|
6618
|
+
|
|
6619
|
+
export class UpdateControlPlaneLogResponse extends $tea.Model {
|
|
6620
|
+
headers: { [key: string]: string };
|
|
6621
|
+
statusCode: number;
|
|
6622
|
+
static names(): { [key: string]: string } {
|
|
6623
|
+
return {
|
|
6624
|
+
headers: 'headers',
|
|
6625
|
+
statusCode: 'statusCode',
|
|
6626
|
+
};
|
|
6627
|
+
}
|
|
6628
|
+
|
|
6629
|
+
static types(): { [key: string]: any } {
|
|
6630
|
+
return {
|
|
6631
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6632
|
+
statusCode: 'number',
|
|
6633
|
+
};
|
|
6634
|
+
}
|
|
6635
|
+
|
|
6636
|
+
constructor(map?: { [key: string]: any }) {
|
|
6637
|
+
super(map);
|
|
6638
|
+
}
|
|
6639
|
+
}
|
|
6640
|
+
|
|
6641
|
+
export class UpdateK8sClusterUserConfigExpireRequest extends $tea.Model {
|
|
6642
|
+
expireHour?: number;
|
|
6643
|
+
user?: string;
|
|
5945
6644
|
static names(): { [key: string]: string } {
|
|
5946
6645
|
return {
|
|
5947
6646
|
expireHour: 'expire_hour',
|
|
@@ -6038,11 +6737,13 @@ export class UpdateTemplateResponse extends $tea.Model {
|
|
|
6038
6737
|
|
|
6039
6738
|
export class UpgradeClusterRequest extends $tea.Model {
|
|
6040
6739
|
componentName?: string;
|
|
6740
|
+
masterOnly?: boolean;
|
|
6041
6741
|
nextVersion?: string;
|
|
6042
6742
|
version?: string;
|
|
6043
6743
|
static names(): { [key: string]: string } {
|
|
6044
6744
|
return {
|
|
6045
6745
|
componentName: 'component_name',
|
|
6746
|
+
masterOnly: 'master_only',
|
|
6046
6747
|
nextVersion: 'next_version',
|
|
6047
6748
|
version: 'version',
|
|
6048
6749
|
};
|
|
@@ -6051,6 +6752,7 @@ export class UpgradeClusterRequest extends $tea.Model {
|
|
|
6051
6752
|
static types(): { [key: string]: any } {
|
|
6052
6753
|
return {
|
|
6053
6754
|
componentName: 'string',
|
|
6755
|
+
masterOnly: 'boolean',
|
|
6054
6756
|
nextVersion: 'string',
|
|
6055
6757
|
version: 'string',
|
|
6056
6758
|
};
|
|
@@ -6127,11 +6829,13 @@ export class UpgradeClusterAddonsResponse extends $tea.Model {
|
|
|
6127
6829
|
export class UpgradeClusterNodepoolRequest extends $tea.Model {
|
|
6128
6830
|
imageId?: string;
|
|
6129
6831
|
kubernetesVersion?: string;
|
|
6832
|
+
runtimeType?: string;
|
|
6130
6833
|
runtimeVersion?: string;
|
|
6131
6834
|
static names(): { [key: string]: string } {
|
|
6132
6835
|
return {
|
|
6133
6836
|
imageId: 'image_id',
|
|
6134
6837
|
kubernetesVersion: 'kubernetes_version',
|
|
6838
|
+
runtimeType: 'runtime_type',
|
|
6135
6839
|
runtimeVersion: 'runtime_version',
|
|
6136
6840
|
};
|
|
6137
6841
|
}
|
|
@@ -6140,6 +6844,7 @@ export class UpgradeClusterNodepoolRequest extends $tea.Model {
|
|
|
6140
6844
|
return {
|
|
6141
6845
|
imageId: 'string',
|
|
6142
6846
|
kubernetesVersion: 'string',
|
|
6847
|
+
runtimeType: 'string',
|
|
6143
6848
|
runtimeVersion: 'string',
|
|
6144
6849
|
};
|
|
6145
6850
|
}
|
|
@@ -6151,15 +6856,18 @@ export class UpgradeClusterNodepoolRequest extends $tea.Model {
|
|
|
6151
6856
|
|
|
6152
6857
|
export class UpgradeClusterNodepoolResponseBody extends $tea.Model {
|
|
6153
6858
|
requestId?: string;
|
|
6859
|
+
taskId?: string;
|
|
6154
6860
|
static names(): { [key: string]: string } {
|
|
6155
6861
|
return {
|
|
6156
6862
|
requestId: 'RequestId',
|
|
6863
|
+
taskId: 'task_id',
|
|
6157
6864
|
};
|
|
6158
6865
|
}
|
|
6159
6866
|
|
|
6160
6867
|
static types(): { [key: string]: any } {
|
|
6161
6868
|
return {
|
|
6162
6869
|
requestId: 'string',
|
|
6870
|
+
taskId: 'string',
|
|
6163
6871
|
};
|
|
6164
6872
|
}
|
|
6165
6873
|
|
|
@@ -6432,6 +7140,28 @@ export class CreateClusterNodePoolRequestNodepoolInfo extends $tea.Model {
|
|
|
6432
7140
|
}
|
|
6433
7141
|
}
|
|
6434
7142
|
|
|
7143
|
+
export class CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions extends $tea.Model {
|
|
7144
|
+
id?: string;
|
|
7145
|
+
matchCriteria?: string;
|
|
7146
|
+
static names(): { [key: string]: string } {
|
|
7147
|
+
return {
|
|
7148
|
+
id: 'id',
|
|
7149
|
+
matchCriteria: 'match_criteria',
|
|
7150
|
+
};
|
|
7151
|
+
}
|
|
7152
|
+
|
|
7153
|
+
static types(): { [key: string]: any } {
|
|
7154
|
+
return {
|
|
7155
|
+
id: 'string',
|
|
7156
|
+
matchCriteria: 'string',
|
|
7157
|
+
};
|
|
7158
|
+
}
|
|
7159
|
+
|
|
7160
|
+
constructor(map?: { [key: string]: any }) {
|
|
7161
|
+
super(map);
|
|
7162
|
+
}
|
|
7163
|
+
}
|
|
7164
|
+
|
|
6435
7165
|
export class CreateClusterNodePoolRequestScalingGroupSpotPriceLimit extends $tea.Model {
|
|
6436
7166
|
instanceType?: string;
|
|
6437
7167
|
priceLimit?: string;
|
|
@@ -6497,6 +7227,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
6497
7227
|
period?: number;
|
|
6498
7228
|
periodUnit?: string;
|
|
6499
7229
|
platform?: string;
|
|
7230
|
+
privatePoolOptions?: CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions;
|
|
6500
7231
|
rdsInstances?: string[];
|
|
6501
7232
|
scalingPolicy?: string;
|
|
6502
7233
|
securityGroupId?: string;
|
|
@@ -6532,6 +7263,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
6532
7263
|
period: 'period',
|
|
6533
7264
|
periodUnit: 'period_unit',
|
|
6534
7265
|
platform: 'platform',
|
|
7266
|
+
privatePoolOptions: 'private_pool_options',
|
|
6535
7267
|
rdsInstances: 'rds_instances',
|
|
6536
7268
|
scalingPolicy: 'scaling_policy',
|
|
6537
7269
|
securityGroupId: 'security_group_id',
|
|
@@ -6570,6 +7302,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
6570
7302
|
period: 'number',
|
|
6571
7303
|
periodUnit: 'string',
|
|
6572
7304
|
platform: 'string',
|
|
7305
|
+
privatePoolOptions: CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions,
|
|
6573
7306
|
rdsInstances: { 'type': 'array', 'itemType': 'string' },
|
|
6574
7307
|
scalingPolicy: 'string',
|
|
6575
7308
|
securityGroupId: 'string',
|
|
@@ -6970,6 +7703,28 @@ export class DescribeClusterNodePoolDetailResponseBodyNodepoolInfo extends $tea.
|
|
|
6970
7703
|
}
|
|
6971
7704
|
}
|
|
6972
7705
|
|
|
7706
|
+
export class DescribeClusterNodePoolDetailResponseBodyScalingGroupPrivatePoolOptions extends $tea.Model {
|
|
7707
|
+
id?: string;
|
|
7708
|
+
matchCriteria?: string;
|
|
7709
|
+
static names(): { [key: string]: string } {
|
|
7710
|
+
return {
|
|
7711
|
+
id: 'id',
|
|
7712
|
+
matchCriteria: 'match_criteria',
|
|
7713
|
+
};
|
|
7714
|
+
}
|
|
7715
|
+
|
|
7716
|
+
static types(): { [key: string]: any } {
|
|
7717
|
+
return {
|
|
7718
|
+
id: 'string',
|
|
7719
|
+
matchCriteria: 'string',
|
|
7720
|
+
};
|
|
7721
|
+
}
|
|
7722
|
+
|
|
7723
|
+
constructor(map?: { [key: string]: any }) {
|
|
7724
|
+
super(map);
|
|
7725
|
+
}
|
|
7726
|
+
}
|
|
7727
|
+
|
|
6973
7728
|
export class DescribeClusterNodePoolDetailResponseBodyScalingGroupSpotPriceLimit extends $tea.Model {
|
|
6974
7729
|
instanceType?: string;
|
|
6975
7730
|
priceLimit?: string;
|
|
@@ -7012,6 +7767,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
7012
7767
|
period?: number;
|
|
7013
7768
|
periodUnit?: string;
|
|
7014
7769
|
platform?: string;
|
|
7770
|
+
privatePoolOptions?: DescribeClusterNodePoolDetailResponseBodyScalingGroupPrivatePoolOptions;
|
|
7015
7771
|
ramPolicy?: string;
|
|
7016
7772
|
rdsInstances?: string[];
|
|
7017
7773
|
scalingGroupId?: string;
|
|
@@ -7048,6 +7804,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
7048
7804
|
period: 'period',
|
|
7049
7805
|
periodUnit: 'period_unit',
|
|
7050
7806
|
platform: 'platform',
|
|
7807
|
+
privatePoolOptions: 'private_pool_options',
|
|
7051
7808
|
ramPolicy: 'ram_policy',
|
|
7052
7809
|
rdsInstances: 'rds_instances',
|
|
7053
7810
|
scalingGroupId: 'scaling_group_id',
|
|
@@ -7087,6 +7844,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
7087
7844
|
period: 'number',
|
|
7088
7845
|
periodUnit: 'string',
|
|
7089
7846
|
platform: 'string',
|
|
7847
|
+
privatePoolOptions: DescribeClusterNodePoolDetailResponseBodyScalingGroupPrivatePoolOptions,
|
|
7090
7848
|
ramPolicy: 'string',
|
|
7091
7849
|
rdsInstances: { 'type': 'array', 'itemType': 'string' },
|
|
7092
7850
|
scalingGroupId: 'string',
|
|
@@ -7370,6 +8128,28 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsNodepoolInfo extends $
|
|
|
7370
8128
|
}
|
|
7371
8129
|
}
|
|
7372
8130
|
|
|
8131
|
+
export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupPrivatePoolOptions extends $tea.Model {
|
|
8132
|
+
id?: string;
|
|
8133
|
+
matchCriteria?: string;
|
|
8134
|
+
static names(): { [key: string]: string } {
|
|
8135
|
+
return {
|
|
8136
|
+
id: 'id',
|
|
8137
|
+
matchCriteria: 'match_criteria',
|
|
8138
|
+
};
|
|
8139
|
+
}
|
|
8140
|
+
|
|
8141
|
+
static types(): { [key: string]: any } {
|
|
8142
|
+
return {
|
|
8143
|
+
id: 'string',
|
|
8144
|
+
matchCriteria: 'string',
|
|
8145
|
+
};
|
|
8146
|
+
}
|
|
8147
|
+
|
|
8148
|
+
constructor(map?: { [key: string]: any }) {
|
|
8149
|
+
super(map);
|
|
8150
|
+
}
|
|
8151
|
+
}
|
|
8152
|
+
|
|
7373
8153
|
export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupSpotPriceLimit extends $tea.Model {
|
|
7374
8154
|
instanceType?: string;
|
|
7375
8155
|
priceLimit?: string;
|
|
@@ -7412,6 +8192,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
7412
8192
|
period?: number;
|
|
7413
8193
|
periodUnit?: string;
|
|
7414
8194
|
platform?: string;
|
|
8195
|
+
privatePoolOptions?: DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupPrivatePoolOptions;
|
|
7415
8196
|
ramPolicy?: string;
|
|
7416
8197
|
rdsInstances?: string[];
|
|
7417
8198
|
scalingGroupId?: string;
|
|
@@ -7448,6 +8229,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
7448
8229
|
period: 'period',
|
|
7449
8230
|
periodUnit: 'period_unit',
|
|
7450
8231
|
platform: 'platform',
|
|
8232
|
+
privatePoolOptions: 'private_pool_options',
|
|
7451
8233
|
ramPolicy: 'ram_policy',
|
|
7452
8234
|
rdsInstances: 'rds_instances',
|
|
7453
8235
|
scalingGroupId: 'scaling_group_id',
|
|
@@ -7487,6 +8269,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
7487
8269
|
period: 'number',
|
|
7488
8270
|
periodUnit: 'string',
|
|
7489
8271
|
platform: 'string',
|
|
8272
|
+
privatePoolOptions: DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupPrivatePoolOptions,
|
|
7490
8273
|
ramPolicy: 'string',
|
|
7491
8274
|
rdsInstances: { 'type': 'array', 'itemType': 'string' },
|
|
7492
8275
|
scalingGroupId: 'string',
|
|
@@ -7834,21 +8617,61 @@ export class DescribeClusterTasksResponseBodyTasks extends $tea.Model {
|
|
|
7834
8617
|
}
|
|
7835
8618
|
}
|
|
7836
8619
|
|
|
7837
|
-
export class
|
|
7838
|
-
|
|
7839
|
-
|
|
8620
|
+
export class DescribeClusterVulsResponseBodyVulRecords extends $tea.Model {
|
|
8621
|
+
cveList?: string[];
|
|
8622
|
+
necessity?: string;
|
|
8623
|
+
nodeCount?: number;
|
|
8624
|
+
nodepoolId?: string;
|
|
8625
|
+
nodepoolName?: string;
|
|
8626
|
+
vulAliasName?: string;
|
|
8627
|
+
vulName?: string;
|
|
8628
|
+
vulType?: string;
|
|
7840
8629
|
static names(): { [key: string]: string } {
|
|
7841
8630
|
return {
|
|
7842
|
-
|
|
7843
|
-
|
|
8631
|
+
cveList: 'cve_list',
|
|
8632
|
+
necessity: 'necessity',
|
|
8633
|
+
nodeCount: 'node_count',
|
|
8634
|
+
nodepoolId: 'nodepool_id',
|
|
8635
|
+
nodepoolName: 'nodepool_name',
|
|
8636
|
+
vulAliasName: 'vul_alias_name',
|
|
8637
|
+
vulName: 'vul_name',
|
|
8638
|
+
vulType: 'vul_type',
|
|
7844
8639
|
};
|
|
7845
8640
|
}
|
|
7846
8641
|
|
|
7847
8642
|
static types(): { [key: string]: any } {
|
|
7848
8643
|
return {
|
|
7849
|
-
|
|
7850
|
-
|
|
7851
|
-
|
|
8644
|
+
cveList: { 'type': 'array', 'itemType': 'string' },
|
|
8645
|
+
necessity: 'string',
|
|
8646
|
+
nodeCount: 'number',
|
|
8647
|
+
nodepoolId: 'string',
|
|
8648
|
+
nodepoolName: 'string',
|
|
8649
|
+
vulAliasName: 'string',
|
|
8650
|
+
vulName: 'string',
|
|
8651
|
+
vulType: 'string',
|
|
8652
|
+
};
|
|
8653
|
+
}
|
|
8654
|
+
|
|
8655
|
+
constructor(map?: { [key: string]: any }) {
|
|
8656
|
+
super(map);
|
|
8657
|
+
}
|
|
8658
|
+
}
|
|
8659
|
+
|
|
8660
|
+
export class DescribeClustersResponseBodyTags extends $tea.Model {
|
|
8661
|
+
key?: string;
|
|
8662
|
+
value?: string;
|
|
8663
|
+
static names(): { [key: string]: string } {
|
|
8664
|
+
return {
|
|
8665
|
+
key: 'key',
|
|
8666
|
+
value: 'value',
|
|
8667
|
+
};
|
|
8668
|
+
}
|
|
8669
|
+
|
|
8670
|
+
static types(): { [key: string]: any } {
|
|
8671
|
+
return {
|
|
8672
|
+
key: 'string',
|
|
8673
|
+
value: 'string',
|
|
8674
|
+
};
|
|
7852
8675
|
}
|
|
7853
8676
|
|
|
7854
8677
|
constructor(map?: { [key: string]: any }) {
|
|
@@ -8331,7 +9154,9 @@ export class DescribeKubernetesVersionMetadataResponseBody extends $tea.Model {
|
|
|
8331
9154
|
metaData?: { [key: string]: any };
|
|
8332
9155
|
runtimes?: Runtime[];
|
|
8333
9156
|
version?: string;
|
|
8334
|
-
|
|
9157
|
+
releaseDate?: string;
|
|
9158
|
+
expirationDate?: string;
|
|
9159
|
+
creatable?: boolean;
|
|
8335
9160
|
static names(): { [key: string]: string } {
|
|
8336
9161
|
return {
|
|
8337
9162
|
capabilities: 'capabilities',
|
|
@@ -8339,7 +9164,9 @@ export class DescribeKubernetesVersionMetadataResponseBody extends $tea.Model {
|
|
|
8339
9164
|
metaData: 'meta_data',
|
|
8340
9165
|
runtimes: 'runtimes',
|
|
8341
9166
|
version: 'version',
|
|
8342
|
-
|
|
9167
|
+
releaseDate: 'release_date',
|
|
9168
|
+
expirationDate: 'expiration_date',
|
|
9169
|
+
creatable: 'creatable',
|
|
8343
9170
|
};
|
|
8344
9171
|
}
|
|
8345
9172
|
|
|
@@ -8350,7 +9177,9 @@ export class DescribeKubernetesVersionMetadataResponseBody extends $tea.Model {
|
|
|
8350
9177
|
metaData: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
8351
9178
|
runtimes: { 'type': 'array', 'itemType': Runtime },
|
|
8352
9179
|
version: 'string',
|
|
8353
|
-
|
|
9180
|
+
releaseDate: 'string',
|
|
9181
|
+
expirationDate: 'string',
|
|
9182
|
+
creatable: 'boolean',
|
|
8354
9183
|
};
|
|
8355
9184
|
}
|
|
8356
9185
|
|
|
@@ -8389,10 +9218,12 @@ export class DescribeNodePoolVulsResponseBodyVulRecordsVulList extends $tea.Mode
|
|
|
8389
9218
|
|
|
8390
9219
|
export class DescribeNodePoolVulsResponseBodyVulRecords extends $tea.Model {
|
|
8391
9220
|
instanceId?: string;
|
|
9221
|
+
nodeName?: string;
|
|
8392
9222
|
vulList?: DescribeNodePoolVulsResponseBodyVulRecordsVulList[];
|
|
8393
9223
|
static names(): { [key: string]: string } {
|
|
8394
9224
|
return {
|
|
8395
9225
|
instanceId: 'instance_id',
|
|
9226
|
+
nodeName: 'node_name',
|
|
8396
9227
|
vulList: 'vul_list',
|
|
8397
9228
|
};
|
|
8398
9229
|
}
|
|
@@ -8400,6 +9231,7 @@ export class DescribeNodePoolVulsResponseBodyVulRecords extends $tea.Model {
|
|
|
8400
9231
|
static types(): { [key: string]: any } {
|
|
8401
9232
|
return {
|
|
8402
9233
|
instanceId: 'string',
|
|
9234
|
+
nodeName: 'string',
|
|
8403
9235
|
vulList: { 'type': 'array', 'itemType': DescribeNodePoolVulsResponseBodyVulRecordsVulList },
|
|
8404
9236
|
};
|
|
8405
9237
|
}
|
|
@@ -9460,6 +10292,28 @@ export class ModifyClusterNodePoolRequestNodepoolInfo extends $tea.Model {
|
|
|
9460
10292
|
}
|
|
9461
10293
|
}
|
|
9462
10294
|
|
|
10295
|
+
export class ModifyClusterNodePoolRequestScalingGroupPrivatePoolOptions extends $tea.Model {
|
|
10296
|
+
id?: string;
|
|
10297
|
+
matchCriteria?: string;
|
|
10298
|
+
static names(): { [key: string]: string } {
|
|
10299
|
+
return {
|
|
10300
|
+
id: 'id',
|
|
10301
|
+
matchCriteria: 'match_criteria',
|
|
10302
|
+
};
|
|
10303
|
+
}
|
|
10304
|
+
|
|
10305
|
+
static types(): { [key: string]: any } {
|
|
10306
|
+
return {
|
|
10307
|
+
id: 'string',
|
|
10308
|
+
matchCriteria: 'string',
|
|
10309
|
+
};
|
|
10310
|
+
}
|
|
10311
|
+
|
|
10312
|
+
constructor(map?: { [key: string]: any }) {
|
|
10313
|
+
super(map);
|
|
10314
|
+
}
|
|
10315
|
+
}
|
|
10316
|
+
|
|
9463
10317
|
export class ModifyClusterNodePoolRequestScalingGroupSpotPriceLimit extends $tea.Model {
|
|
9464
10318
|
instanceType?: string;
|
|
9465
10319
|
priceLimit?: string;
|
|
@@ -9501,6 +10355,7 @@ export class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
9501
10355
|
period?: number;
|
|
9502
10356
|
periodUnit?: string;
|
|
9503
10357
|
platform?: string;
|
|
10358
|
+
privatePoolOptions?: ModifyClusterNodePoolRequestScalingGroupPrivatePoolOptions;
|
|
9504
10359
|
rdsInstances?: string[];
|
|
9505
10360
|
scalingPolicy?: string;
|
|
9506
10361
|
spotInstancePools?: number;
|
|
@@ -9532,6 +10387,7 @@ export class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
9532
10387
|
period: 'period',
|
|
9533
10388
|
periodUnit: 'period_unit',
|
|
9534
10389
|
platform: 'platform',
|
|
10390
|
+
privatePoolOptions: 'private_pool_options',
|
|
9535
10391
|
rdsInstances: 'rds_instances',
|
|
9536
10392
|
scalingPolicy: 'scaling_policy',
|
|
9537
10393
|
spotInstancePools: 'spot_instance_pools',
|
|
@@ -9566,6 +10422,7 @@ export class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
9566
10422
|
period: 'number',
|
|
9567
10423
|
periodUnit: 'string',
|
|
9568
10424
|
platform: 'string',
|
|
10425
|
+
privatePoolOptions: ModifyClusterNodePoolRequestScalingGroupPrivatePoolOptions,
|
|
9569
10426
|
rdsInstances: { 'type': 'array', 'itemType': 'string' },
|
|
9570
10427
|
scalingPolicy: 'string',
|
|
9571
10428
|
spotInstancePools: 'number',
|
|
@@ -9798,12 +10655,14 @@ export class UpgradeClusterAddonsRequestBody extends $tea.Model {
|
|
|
9798
10655
|
componentName?: string;
|
|
9799
10656
|
config?: string;
|
|
9800
10657
|
nextVersion?: string;
|
|
10658
|
+
policy?: string;
|
|
9801
10659
|
version?: string;
|
|
9802
10660
|
static names(): { [key: string]: string } {
|
|
9803
10661
|
return {
|
|
9804
10662
|
componentName: 'component_name',
|
|
9805
10663
|
config: 'config',
|
|
9806
10664
|
nextVersion: 'next_version',
|
|
10665
|
+
policy: 'policy',
|
|
9807
10666
|
version: 'version',
|
|
9808
10667
|
};
|
|
9809
10668
|
}
|
|
@@ -9813,6 +10672,7 @@ export class UpgradeClusterAddonsRequestBody extends $tea.Model {
|
|
|
9813
10672
|
componentName: 'string',
|
|
9814
10673
|
config: 'string',
|
|
9815
10674
|
nextVersion: 'string',
|
|
10675
|
+
policy: 'string',
|
|
9816
10676
|
version: 'string',
|
|
9817
10677
|
};
|
|
9818
10678
|
}
|
|
@@ -9878,12 +10738,6 @@ export default class Client extends OpenApi {
|
|
|
9878
10738
|
return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
9879
10739
|
}
|
|
9880
10740
|
|
|
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
10741
|
async attachInstancesWithOptions(ClusterId: string, request: AttachInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<AttachInstancesResponse> {
|
|
9888
10742
|
Util.validateModel(request);
|
|
9889
10743
|
let body : {[key: string ]: any} = { };
|
|
@@ -9927,7 +10781,7 @@ export default class Client extends OpenApi {
|
|
|
9927
10781
|
body["rds_instances"] = request.rdsInstances;
|
|
9928
10782
|
}
|
|
9929
10783
|
|
|
9930
|
-
if (!Util.isUnset(
|
|
10784
|
+
if (!Util.isUnset(request.runtime)) {
|
|
9931
10785
|
body["runtime"] = request.runtime;
|
|
9932
10786
|
}
|
|
9933
10787
|
|
|
@@ -9957,10 +10811,53 @@ export default class Client extends OpenApi {
|
|
|
9957
10811
|
return $tea.cast<AttachInstancesResponse>(await this.callApi(params, req, runtime), new AttachInstancesResponse({}));
|
|
9958
10812
|
}
|
|
9959
10813
|
|
|
9960
|
-
async
|
|
10814
|
+
async attachInstances(ClusterId: string, request: AttachInstancesRequest): Promise<AttachInstancesResponse> {
|
|
9961
10815
|
let runtime = new $Util.RuntimeOptions({ });
|
|
9962
10816
|
let headers : {[key: string ]: string} = { };
|
|
9963
|
-
return await this.
|
|
10817
|
+
return await this.attachInstancesWithOptions(ClusterId, request, headers, runtime);
|
|
10818
|
+
}
|
|
10819
|
+
|
|
10820
|
+
async attachInstancesToNodePoolWithOptions(ClusterId: string, NodepoolId: string, request: AttachInstancesToNodePoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<AttachInstancesToNodePoolResponse> {
|
|
10821
|
+
Util.validateModel(request);
|
|
10822
|
+
let body : {[key: string ]: any} = { };
|
|
10823
|
+
if (!Util.isUnset(request.formatDisk)) {
|
|
10824
|
+
body["format_disk"] = request.formatDisk;
|
|
10825
|
+
}
|
|
10826
|
+
|
|
10827
|
+
if (!Util.isUnset(request.instances)) {
|
|
10828
|
+
body["instances"] = request.instances;
|
|
10829
|
+
}
|
|
10830
|
+
|
|
10831
|
+
if (!Util.isUnset(request.keepInstanceName)) {
|
|
10832
|
+
body["keep_instance_name"] = request.keepInstanceName;
|
|
10833
|
+
}
|
|
10834
|
+
|
|
10835
|
+
if (!Util.isUnset(request.password)) {
|
|
10836
|
+
body["password"] = request.password;
|
|
10837
|
+
}
|
|
10838
|
+
|
|
10839
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
10840
|
+
headers: headers,
|
|
10841
|
+
body: OpenApiUtil.parseToMap(body),
|
|
10842
|
+
});
|
|
10843
|
+
let params = new $OpenApi.Params({
|
|
10844
|
+
action: "AttachInstancesToNodePool",
|
|
10845
|
+
version: "2015-12-15",
|
|
10846
|
+
protocol: "HTTPS",
|
|
10847
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(ClusterId)}/nodepools/${OpenApiUtil.getEncodeParam(NodepoolId)}/attach`,
|
|
10848
|
+
method: "POST",
|
|
10849
|
+
authType: "AK",
|
|
10850
|
+
style: "ROA",
|
|
10851
|
+
reqBodyType: "json",
|
|
10852
|
+
bodyType: "json",
|
|
10853
|
+
});
|
|
10854
|
+
return $tea.cast<AttachInstancesToNodePoolResponse>(await this.callApi(params, req, runtime), new AttachInstancesToNodePoolResponse({}));
|
|
10855
|
+
}
|
|
10856
|
+
|
|
10857
|
+
async attachInstancesToNodePool(ClusterId: string, NodepoolId: string, request: AttachInstancesToNodePoolRequest): Promise<AttachInstancesToNodePoolResponse> {
|
|
10858
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
10859
|
+
let headers : {[key: string ]: string} = { };
|
|
10860
|
+
return await this.attachInstancesToNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
9964
10861
|
}
|
|
9965
10862
|
|
|
9966
10863
|
async cancelClusterUpgradeWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CancelClusterUpgradeResponse> {
|
|
@@ -9981,10 +10878,10 @@ export default class Client extends OpenApi {
|
|
|
9981
10878
|
return $tea.cast<CancelClusterUpgradeResponse>(await this.callApi(params, req, runtime), new CancelClusterUpgradeResponse({}));
|
|
9982
10879
|
}
|
|
9983
10880
|
|
|
9984
|
-
async
|
|
10881
|
+
async cancelClusterUpgrade(ClusterId: string): Promise<CancelClusterUpgradeResponse> {
|
|
9985
10882
|
let runtime = new $Util.RuntimeOptions({ });
|
|
9986
10883
|
let headers : {[key: string ]: string} = { };
|
|
9987
|
-
return await this.
|
|
10884
|
+
return await this.cancelClusterUpgradeWithOptions(ClusterId, headers, runtime);
|
|
9988
10885
|
}
|
|
9989
10886
|
|
|
9990
10887
|
async cancelComponentUpgradeWithOptions(clusterId: string, componentId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CancelComponentUpgradeResponse> {
|
|
@@ -10005,10 +10902,10 @@ export default class Client extends OpenApi {
|
|
|
10005
10902
|
return $tea.cast<CancelComponentUpgradeResponse>(await this.callApi(params, req, runtime), new CancelComponentUpgradeResponse({}));
|
|
10006
10903
|
}
|
|
10007
10904
|
|
|
10008
|
-
async
|
|
10905
|
+
async cancelComponentUpgrade(clusterId: string, componentId: string): Promise<CancelComponentUpgradeResponse> {
|
|
10009
10906
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10010
10907
|
let headers : {[key: string ]: string} = { };
|
|
10011
|
-
return await this.
|
|
10908
|
+
return await this.cancelComponentUpgradeWithOptions(clusterId, componentId, headers, runtime);
|
|
10012
10909
|
}
|
|
10013
10910
|
|
|
10014
10911
|
async cancelTaskWithOptions(taskId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CancelTaskResponse> {
|
|
@@ -10029,10 +10926,10 @@ export default class Client extends OpenApi {
|
|
|
10029
10926
|
return $tea.cast<CancelTaskResponse>(await this.callApi(params, req, runtime), new CancelTaskResponse({}));
|
|
10030
10927
|
}
|
|
10031
10928
|
|
|
10032
|
-
async
|
|
10929
|
+
async cancelTask(taskId: string): Promise<CancelTaskResponse> {
|
|
10033
10930
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10034
10931
|
let headers : {[key: string ]: string} = { };
|
|
10035
|
-
return await this.
|
|
10932
|
+
return await this.cancelTaskWithOptions(taskId, headers, runtime);
|
|
10036
10933
|
}
|
|
10037
10934
|
|
|
10038
10935
|
async cancelWorkflowWithOptions(workflowName: string, request: CancelWorkflowRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CancelWorkflowResponse> {
|
|
@@ -10060,10 +10957,34 @@ export default class Client extends OpenApi {
|
|
|
10060
10957
|
return $tea.cast<CancelWorkflowResponse>(await this.callApi(params, req, runtime), new CancelWorkflowResponse({}));
|
|
10061
10958
|
}
|
|
10062
10959
|
|
|
10063
|
-
async
|
|
10960
|
+
async cancelWorkflow(workflowName: string, request: CancelWorkflowRequest): Promise<CancelWorkflowResponse> {
|
|
10064
10961
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10065
10962
|
let headers : {[key: string ]: string} = { };
|
|
10066
|
-
return await this.
|
|
10963
|
+
return await this.cancelWorkflowWithOptions(workflowName, request, headers, runtime);
|
|
10964
|
+
}
|
|
10965
|
+
|
|
10966
|
+
async checkControlPlaneLogEnableWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CheckControlPlaneLogEnableResponse> {
|
|
10967
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
10968
|
+
headers: headers,
|
|
10969
|
+
});
|
|
10970
|
+
let params = new $OpenApi.Params({
|
|
10971
|
+
action: "CheckControlPlaneLogEnable",
|
|
10972
|
+
version: "2015-12-15",
|
|
10973
|
+
protocol: "HTTPS",
|
|
10974
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(ClusterId)}/controlplanelog`,
|
|
10975
|
+
method: "GET",
|
|
10976
|
+
authType: "AK",
|
|
10977
|
+
style: "ROA",
|
|
10978
|
+
reqBodyType: "json",
|
|
10979
|
+
bodyType: "json",
|
|
10980
|
+
});
|
|
10981
|
+
return $tea.cast<CheckControlPlaneLogEnableResponse>(await this.callApi(params, req, runtime), new CheckControlPlaneLogEnableResponse({}));
|
|
10982
|
+
}
|
|
10983
|
+
|
|
10984
|
+
async checkControlPlaneLogEnable(ClusterId: string): Promise<CheckControlPlaneLogEnableResponse> {
|
|
10985
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
10986
|
+
let headers : {[key: string ]: string} = { };
|
|
10987
|
+
return await this.checkControlPlaneLogEnableWithOptions(ClusterId, headers, runtime);
|
|
10067
10988
|
}
|
|
10068
10989
|
|
|
10069
10990
|
async createAutoscalingConfigWithOptions(ClusterId: string, request: CreateAutoscalingConfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateAutoscalingConfigResponse> {
|
|
@@ -10073,6 +10994,10 @@ export default class Client extends OpenApi {
|
|
|
10073
10994
|
body["cool_down_duration"] = request.coolDownDuration;
|
|
10074
10995
|
}
|
|
10075
10996
|
|
|
10997
|
+
if (!Util.isUnset(request.daemonsetEvictionForNodes)) {
|
|
10998
|
+
body["daemonset_eviction_for_nodes"] = request.daemonsetEvictionForNodes;
|
|
10999
|
+
}
|
|
11000
|
+
|
|
10076
11001
|
if (!Util.isUnset(request.expander)) {
|
|
10077
11002
|
body["expander"] = request.expander;
|
|
10078
11003
|
}
|
|
@@ -10081,14 +11006,38 @@ export default class Client extends OpenApi {
|
|
|
10081
11006
|
body["gpu_utilization_threshold"] = request.gpuUtilizationThreshold;
|
|
10082
11007
|
}
|
|
10083
11008
|
|
|
11009
|
+
if (!Util.isUnset(request.maxGracefulTerminationSec)) {
|
|
11010
|
+
body["max_graceful_termination_sec"] = request.maxGracefulTerminationSec;
|
|
11011
|
+
}
|
|
11012
|
+
|
|
11013
|
+
if (!Util.isUnset(request.minReplicaCount)) {
|
|
11014
|
+
body["min_replica_count"] = request.minReplicaCount;
|
|
11015
|
+
}
|
|
11016
|
+
|
|
11017
|
+
if (!Util.isUnset(request.recycleNodeDeletionEnabled)) {
|
|
11018
|
+
body["recycle_node_deletion_enabled"] = request.recycleNodeDeletionEnabled;
|
|
11019
|
+
}
|
|
11020
|
+
|
|
10084
11021
|
if (!Util.isUnset(request.scaleDownEnabled)) {
|
|
10085
11022
|
body["scale_down_enabled"] = request.scaleDownEnabled;
|
|
10086
11023
|
}
|
|
10087
11024
|
|
|
11025
|
+
if (!Util.isUnset(request.scaleUpFromZero)) {
|
|
11026
|
+
body["scale_up_from_zero"] = request.scaleUpFromZero;
|
|
11027
|
+
}
|
|
11028
|
+
|
|
10088
11029
|
if (!Util.isUnset(request.scanInterval)) {
|
|
10089
11030
|
body["scan_interval"] = request.scanInterval;
|
|
10090
11031
|
}
|
|
10091
11032
|
|
|
11033
|
+
if (!Util.isUnset(request.skipNodesWithLocalStorage)) {
|
|
11034
|
+
body["skip_nodes_with_local_storage"] = request.skipNodesWithLocalStorage;
|
|
11035
|
+
}
|
|
11036
|
+
|
|
11037
|
+
if (!Util.isUnset(request.skipNodesWithSystemPods)) {
|
|
11038
|
+
body["skip_nodes_with_system_pods"] = request.skipNodesWithSystemPods;
|
|
11039
|
+
}
|
|
11040
|
+
|
|
10092
11041
|
if (!Util.isUnset(request.unneededDuration)) {
|
|
10093
11042
|
body["unneeded_duration"] = request.unneededDuration;
|
|
10094
11043
|
}
|
|
@@ -10115,10 +11064,10 @@ export default class Client extends OpenApi {
|
|
|
10115
11064
|
return $tea.cast<CreateAutoscalingConfigResponse>(await this.callApi(params, req, runtime), new CreateAutoscalingConfigResponse({}));
|
|
10116
11065
|
}
|
|
10117
11066
|
|
|
10118
|
-
async
|
|
11067
|
+
async createAutoscalingConfig(ClusterId: string, request: CreateAutoscalingConfigRequest): Promise<CreateAutoscalingConfigResponse> {
|
|
10119
11068
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10120
11069
|
let headers : {[key: string ]: string} = { };
|
|
10121
|
-
return await this.
|
|
11070
|
+
return await this.createAutoscalingConfigWithOptions(ClusterId, request, headers, runtime);
|
|
10122
11071
|
}
|
|
10123
11072
|
|
|
10124
11073
|
async createClusterWithOptions(request: CreateClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateClusterResponse> {
|
|
@@ -10360,7 +11309,7 @@ export default class Client extends OpenApi {
|
|
|
10360
11309
|
body["resource_group_id"] = request.resourceGroupId;
|
|
10361
11310
|
}
|
|
10362
11311
|
|
|
10363
|
-
if (!Util.isUnset(
|
|
11312
|
+
if (!Util.isUnset(request.runtime)) {
|
|
10364
11313
|
body["runtime"] = request.runtime;
|
|
10365
11314
|
}
|
|
10366
11315
|
|
|
@@ -10494,16 +11443,16 @@ export default class Client extends OpenApi {
|
|
|
10494
11443
|
return $tea.cast<CreateClusterResponse>(await this.callApi(params, req, runtime), new CreateClusterResponse({}));
|
|
10495
11444
|
}
|
|
10496
11445
|
|
|
10497
|
-
async
|
|
11446
|
+
async createCluster(request: CreateClusterRequest): Promise<CreateClusterResponse> {
|
|
10498
11447
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10499
11448
|
let headers : {[key: string ]: string} = { };
|
|
10500
|
-
return await this.
|
|
11449
|
+
return await this.createClusterWithOptions(request, headers, runtime);
|
|
10501
11450
|
}
|
|
10502
11451
|
|
|
10503
11452
|
async createClusterNodePoolWithOptions(ClusterId: string, request: CreateClusterNodePoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateClusterNodePoolResponse> {
|
|
10504
11453
|
Util.validateModel(request);
|
|
10505
11454
|
let body : {[key: string ]: any} = { };
|
|
10506
|
-
if (!Util.isUnset(
|
|
11455
|
+
if (!Util.isUnset(request.autoScaling)) {
|
|
10507
11456
|
body["auto_scaling"] = request.autoScaling;
|
|
10508
11457
|
}
|
|
10509
11458
|
|
|
@@ -10511,7 +11460,7 @@ export default class Client extends OpenApi {
|
|
|
10511
11460
|
body["count"] = request.count;
|
|
10512
11461
|
}
|
|
10513
11462
|
|
|
10514
|
-
if (!Util.isUnset(
|
|
11463
|
+
if (!Util.isUnset(request.interconnectConfig)) {
|
|
10515
11464
|
body["interconnect_config"] = request.interconnectConfig;
|
|
10516
11465
|
}
|
|
10517
11466
|
|
|
@@ -10519,11 +11468,11 @@ export default class Client extends OpenApi {
|
|
|
10519
11468
|
body["interconnect_mode"] = request.interconnectMode;
|
|
10520
11469
|
}
|
|
10521
11470
|
|
|
10522
|
-
if (!Util.isUnset(
|
|
11471
|
+
if (!Util.isUnset(request.kubernetesConfig)) {
|
|
10523
11472
|
body["kubernetes_config"] = request.kubernetesConfig;
|
|
10524
11473
|
}
|
|
10525
11474
|
|
|
10526
|
-
if (!Util.isUnset(
|
|
11475
|
+
if (!Util.isUnset(request.management)) {
|
|
10527
11476
|
body["management"] = request.management;
|
|
10528
11477
|
}
|
|
10529
11478
|
|
|
@@ -10531,15 +11480,15 @@ export default class Client extends OpenApi {
|
|
|
10531
11480
|
body["max_nodes"] = request.maxNodes;
|
|
10532
11481
|
}
|
|
10533
11482
|
|
|
10534
|
-
if (!Util.isUnset(
|
|
11483
|
+
if (!Util.isUnset(request.nodepoolInfo)) {
|
|
10535
11484
|
body["nodepool_info"] = request.nodepoolInfo;
|
|
10536
11485
|
}
|
|
10537
11486
|
|
|
10538
|
-
if (!Util.isUnset(
|
|
11487
|
+
if (!Util.isUnset(request.scalingGroup)) {
|
|
10539
11488
|
body["scaling_group"] = request.scalingGroup;
|
|
10540
11489
|
}
|
|
10541
11490
|
|
|
10542
|
-
if (!Util.isUnset(
|
|
11491
|
+
if (!Util.isUnset(request.teeConfig)) {
|
|
10543
11492
|
body["tee_config"] = request.teeConfig;
|
|
10544
11493
|
}
|
|
10545
11494
|
|
|
@@ -10561,10 +11510,10 @@ export default class Client extends OpenApi {
|
|
|
10561
11510
|
return $tea.cast<CreateClusterNodePoolResponse>(await this.callApi(params, req, runtime), new CreateClusterNodePoolResponse({}));
|
|
10562
11511
|
}
|
|
10563
11512
|
|
|
10564
|
-
async
|
|
11513
|
+
async createClusterNodePool(ClusterId: string, request: CreateClusterNodePoolRequest): Promise<CreateClusterNodePoolResponse> {
|
|
10565
11514
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10566
11515
|
let headers : {[key: string ]: string} = { };
|
|
10567
|
-
return await this.
|
|
11516
|
+
return await this.createClusterNodePoolWithOptions(ClusterId, request, headers, runtime);
|
|
10568
11517
|
}
|
|
10569
11518
|
|
|
10570
11519
|
async createEdgeMachineWithOptions(request: CreateEdgeMachineRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateEdgeMachineResponse> {
|
|
@@ -10600,10 +11549,10 @@ export default class Client extends OpenApi {
|
|
|
10600
11549
|
return $tea.cast<CreateEdgeMachineResponse>(await this.callApi(params, req, runtime), new CreateEdgeMachineResponse({}));
|
|
10601
11550
|
}
|
|
10602
11551
|
|
|
10603
|
-
async
|
|
11552
|
+
async createEdgeMachine(request: CreateEdgeMachineRequest): Promise<CreateEdgeMachineResponse> {
|
|
10604
11553
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10605
11554
|
let headers : {[key: string ]: string} = { };
|
|
10606
|
-
return await this.
|
|
11555
|
+
return await this.createEdgeMachineWithOptions(request, headers, runtime);
|
|
10607
11556
|
}
|
|
10608
11557
|
|
|
10609
11558
|
async createKubernetesTriggerWithOptions(request: CreateKubernetesTriggerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateKubernetesTriggerResponse> {
|
|
@@ -10643,10 +11592,10 @@ export default class Client extends OpenApi {
|
|
|
10643
11592
|
return $tea.cast<CreateKubernetesTriggerResponse>(await this.callApi(params, req, runtime), new CreateKubernetesTriggerResponse({}));
|
|
10644
11593
|
}
|
|
10645
11594
|
|
|
10646
|
-
async
|
|
11595
|
+
async createKubernetesTrigger(request: CreateKubernetesTriggerRequest): Promise<CreateKubernetesTriggerResponse> {
|
|
10647
11596
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10648
11597
|
let headers : {[key: string ]: string} = { };
|
|
10649
|
-
return await this.
|
|
11598
|
+
return await this.createKubernetesTriggerWithOptions(request, headers, runtime);
|
|
10650
11599
|
}
|
|
10651
11600
|
|
|
10652
11601
|
async createTemplateWithOptions(request: CreateTemplateRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateTemplateResponse> {
|
|
@@ -10690,10 +11639,10 @@ export default class Client extends OpenApi {
|
|
|
10690
11639
|
return $tea.cast<CreateTemplateResponse>(await this.callApi(params, req, runtime), new CreateTemplateResponse({}));
|
|
10691
11640
|
}
|
|
10692
11641
|
|
|
10693
|
-
async
|
|
11642
|
+
async createTemplate(request: CreateTemplateRequest): Promise<CreateTemplateResponse> {
|
|
10694
11643
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10695
11644
|
let headers : {[key: string ]: string} = { };
|
|
10696
|
-
return await this.
|
|
11645
|
+
return await this.createTemplateWithOptions(request, headers, runtime);
|
|
10697
11646
|
}
|
|
10698
11647
|
|
|
10699
11648
|
async createTriggerWithOptions(clusterId: string, request: CreateTriggerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateTriggerResponse> {
|
|
@@ -10733,10 +11682,10 @@ export default class Client extends OpenApi {
|
|
|
10733
11682
|
return $tea.cast<CreateTriggerResponse>(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
|
|
10734
11683
|
}
|
|
10735
11684
|
|
|
10736
|
-
async
|
|
11685
|
+
async createTrigger(clusterId: string, request: CreateTriggerRequest): Promise<CreateTriggerResponse> {
|
|
10737
11686
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10738
11687
|
let headers : {[key: string ]: string} = { };
|
|
10739
|
-
return await this.
|
|
11688
|
+
return await this.createTriggerWithOptions(clusterId, request, headers, runtime);
|
|
10740
11689
|
}
|
|
10741
11690
|
|
|
10742
11691
|
async deleteAlertContactWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactResponse> {
|
|
@@ -10757,10 +11706,10 @@ export default class Client extends OpenApi {
|
|
|
10757
11706
|
return $tea.cast<DeleteAlertContactResponse>(await this.callApi(params, req, runtime), new DeleteAlertContactResponse({}));
|
|
10758
11707
|
}
|
|
10759
11708
|
|
|
10760
|
-
async
|
|
11709
|
+
async deleteAlertContact(): Promise<DeleteAlertContactResponse> {
|
|
10761
11710
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10762
11711
|
let headers : {[key: string ]: string} = { };
|
|
10763
|
-
return await this.
|
|
11712
|
+
return await this.deleteAlertContactWithOptions(headers, runtime);
|
|
10764
11713
|
}
|
|
10765
11714
|
|
|
10766
11715
|
async deleteAlertContactGroupWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactGroupResponse> {
|
|
@@ -10781,10 +11730,10 @@ export default class Client extends OpenApi {
|
|
|
10781
11730
|
return $tea.cast<DeleteAlertContactGroupResponse>(await this.callApi(params, req, runtime), new DeleteAlertContactGroupResponse({}));
|
|
10782
11731
|
}
|
|
10783
11732
|
|
|
10784
|
-
async
|
|
11733
|
+
async deleteAlertContactGroup(): Promise<DeleteAlertContactGroupResponse> {
|
|
10785
11734
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10786
11735
|
let headers : {[key: string ]: string} = { };
|
|
10787
|
-
return await this.
|
|
11736
|
+
return await this.deleteAlertContactGroupWithOptions(headers, runtime);
|
|
10788
11737
|
}
|
|
10789
11738
|
|
|
10790
11739
|
async deleteClusterWithOptions(ClusterId: string, tmpReq: DeleteClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterResponse> {
|
|
@@ -10821,15 +11770,15 @@ export default class Client extends OpenApi {
|
|
|
10821
11770
|
authType: "AK",
|
|
10822
11771
|
style: "ROA",
|
|
10823
11772
|
reqBodyType: "json",
|
|
10824
|
-
bodyType: "
|
|
11773
|
+
bodyType: "json",
|
|
10825
11774
|
});
|
|
10826
11775
|
return $tea.cast<DeleteClusterResponse>(await this.callApi(params, req, runtime), new DeleteClusterResponse({}));
|
|
10827
11776
|
}
|
|
10828
11777
|
|
|
10829
|
-
async
|
|
11778
|
+
async deleteCluster(ClusterId: string, request: DeleteClusterRequest): Promise<DeleteClusterResponse> {
|
|
10830
11779
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10831
11780
|
let headers : {[key: string ]: string} = { };
|
|
10832
|
-
return await this.
|
|
11781
|
+
return await this.deleteClusterWithOptions(ClusterId, request, headers, runtime);
|
|
10833
11782
|
}
|
|
10834
11783
|
|
|
10835
11784
|
async deleteClusterNodepoolWithOptions(ClusterId: string, NodepoolId: string, request: DeleteClusterNodepoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterNodepoolResponse> {
|
|
@@ -10857,12 +11806,24 @@ export default class Client extends OpenApi {
|
|
|
10857
11806
|
return $tea.cast<DeleteClusterNodepoolResponse>(await this.callApi(params, req, runtime), new DeleteClusterNodepoolResponse({}));
|
|
10858
11807
|
}
|
|
10859
11808
|
|
|
10860
|
-
async
|
|
11809
|
+
async deleteClusterNodepool(ClusterId: string, NodepoolId: string, request: DeleteClusterNodepoolRequest): Promise<DeleteClusterNodepoolResponse> {
|
|
10861
11810
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10862
11811
|
let headers : {[key: string ]: string} = { };
|
|
10863
|
-
return await this.
|
|
11812
|
+
return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
10864
11813
|
}
|
|
10865
11814
|
|
|
11815
|
+
/**
|
|
11816
|
+
* >
|
|
11817
|
+
* * 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.
|
|
11818
|
+
* * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
|
|
11819
|
+
* * Nodes remain in the unschedulable state when they are being removed.
|
|
11820
|
+
* * You can remove only worker nodes by calling this operation.
|
|
11821
|
+
*
|
|
11822
|
+
* @param request DeleteClusterNodesRequest
|
|
11823
|
+
* @param headers map
|
|
11824
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
11825
|
+
* @return DeleteClusterNodesResponse
|
|
11826
|
+
*/
|
|
10866
11827
|
async deleteClusterNodesWithOptions(ClusterId: string, request: DeleteClusterNodesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterNodesResponse> {
|
|
10867
11828
|
Util.validateModel(request);
|
|
10868
11829
|
let body : {[key: string ]: any} = { };
|
|
@@ -10896,10 +11857,20 @@ export default class Client extends OpenApi {
|
|
|
10896
11857
|
return $tea.cast<DeleteClusterNodesResponse>(await this.callApi(params, req, runtime), new DeleteClusterNodesResponse({}));
|
|
10897
11858
|
}
|
|
10898
11859
|
|
|
10899
|
-
|
|
11860
|
+
/**
|
|
11861
|
+
* >
|
|
11862
|
+
* * 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.
|
|
11863
|
+
* * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
|
|
11864
|
+
* * Nodes remain in the unschedulable state when they are being removed.
|
|
11865
|
+
* * You can remove only worker nodes by calling this operation.
|
|
11866
|
+
*
|
|
11867
|
+
* @param request DeleteClusterNodesRequest
|
|
11868
|
+
* @return DeleteClusterNodesResponse
|
|
11869
|
+
*/
|
|
11870
|
+
async deleteClusterNodes(ClusterId: string, request: DeleteClusterNodesRequest): Promise<DeleteClusterNodesResponse> {
|
|
10900
11871
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10901
11872
|
let headers : {[key: string ]: string} = { };
|
|
10902
|
-
return await this.
|
|
11873
|
+
return await this.deleteClusterNodesWithOptions(ClusterId, request, headers, runtime);
|
|
10903
11874
|
}
|
|
10904
11875
|
|
|
10905
11876
|
async deleteEdgeMachineWithOptions(edgeMachineid: string, request: DeleteEdgeMachineRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteEdgeMachineResponse> {
|
|
@@ -10927,10 +11898,10 @@ export default class Client extends OpenApi {
|
|
|
10927
11898
|
return $tea.cast<DeleteEdgeMachineResponse>(await this.callApi(params, req, runtime), new DeleteEdgeMachineResponse({}));
|
|
10928
11899
|
}
|
|
10929
11900
|
|
|
10930
|
-
async
|
|
11901
|
+
async deleteEdgeMachine(edgeMachineid: string, request: DeleteEdgeMachineRequest): Promise<DeleteEdgeMachineResponse> {
|
|
10931
11902
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10932
11903
|
let headers : {[key: string ]: string} = { };
|
|
10933
|
-
return await this.
|
|
11904
|
+
return await this.deleteEdgeMachineWithOptions(edgeMachineid, request, headers, runtime);
|
|
10934
11905
|
}
|
|
10935
11906
|
|
|
10936
11907
|
async deleteKubernetesTriggerWithOptions(Id: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteKubernetesTriggerResponse> {
|
|
@@ -10951,10 +11922,10 @@ export default class Client extends OpenApi {
|
|
|
10951
11922
|
return $tea.cast<DeleteKubernetesTriggerResponse>(await this.callApi(params, req, runtime), new DeleteKubernetesTriggerResponse({}));
|
|
10952
11923
|
}
|
|
10953
11924
|
|
|
10954
|
-
async
|
|
11925
|
+
async deleteKubernetesTrigger(Id: string): Promise<DeleteKubernetesTriggerResponse> {
|
|
10955
11926
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10956
11927
|
let headers : {[key: string ]: string} = { };
|
|
10957
|
-
return await this.
|
|
11928
|
+
return await this.deleteKubernetesTriggerWithOptions(Id, headers, runtime);
|
|
10958
11929
|
}
|
|
10959
11930
|
|
|
10960
11931
|
async deletePolicyInstanceWithOptions(clusterId: string, policyName: string, request: DeletePolicyInstanceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeletePolicyInstanceResponse> {
|
|
@@ -10982,10 +11953,10 @@ export default class Client extends OpenApi {
|
|
|
10982
11953
|
return $tea.cast<DeletePolicyInstanceResponse>(await this.callApi(params, req, runtime), new DeletePolicyInstanceResponse({}));
|
|
10983
11954
|
}
|
|
10984
11955
|
|
|
10985
|
-
async
|
|
11956
|
+
async deletePolicyInstance(clusterId: string, policyName: string, request: DeletePolicyInstanceRequest): Promise<DeletePolicyInstanceResponse> {
|
|
10986
11957
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10987
11958
|
let headers : {[key: string ]: string} = { };
|
|
10988
|
-
return await this.
|
|
11959
|
+
return await this.deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
|
|
10989
11960
|
}
|
|
10990
11961
|
|
|
10991
11962
|
async deleteTemplateWithOptions(TemplateId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteTemplateResponse> {
|
|
@@ -11006,10 +11977,10 @@ export default class Client extends OpenApi {
|
|
|
11006
11977
|
return $tea.cast<DeleteTemplateResponse>(await this.callApi(params, req, runtime), new DeleteTemplateResponse({}));
|
|
11007
11978
|
}
|
|
11008
11979
|
|
|
11009
|
-
async
|
|
11980
|
+
async deleteTemplate(TemplateId: string): Promise<DeleteTemplateResponse> {
|
|
11010
11981
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11011
11982
|
let headers : {[key: string ]: string} = { };
|
|
11012
|
-
return await this.
|
|
11983
|
+
return await this.deleteTemplateWithOptions(TemplateId, headers, runtime);
|
|
11013
11984
|
}
|
|
11014
11985
|
|
|
11015
11986
|
async deleteTriggerWithOptions(clusterId: string, Id: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteTriggerResponse> {
|
|
@@ -11030,10 +12001,10 @@ export default class Client extends OpenApi {
|
|
|
11030
12001
|
return $tea.cast<DeleteTriggerResponse>(await this.callApi(params, req, runtime), new DeleteTriggerResponse({}));
|
|
11031
12002
|
}
|
|
11032
12003
|
|
|
11033
|
-
async
|
|
12004
|
+
async deleteTrigger(clusterId: string, Id: string): Promise<DeleteTriggerResponse> {
|
|
11034
12005
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11035
12006
|
let headers : {[key: string ]: string} = { };
|
|
11036
|
-
return await this.
|
|
12007
|
+
return await this.deleteTriggerWithOptions(clusterId, Id, headers, runtime);
|
|
11037
12008
|
}
|
|
11038
12009
|
|
|
11039
12010
|
async deployPolicyInstanceWithOptions(clusterId: string, policyName: string, request: DeployPolicyInstanceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeployPolicyInstanceResponse> {
|
|
@@ -11069,10 +12040,10 @@ export default class Client extends OpenApi {
|
|
|
11069
12040
|
return $tea.cast<DeployPolicyInstanceResponse>(await this.callApi(params, req, runtime), new DeployPolicyInstanceResponse({}));
|
|
11070
12041
|
}
|
|
11071
12042
|
|
|
11072
|
-
async
|
|
12043
|
+
async deployPolicyInstance(clusterId: string, policyName: string, request: DeployPolicyInstanceRequest): Promise<DeployPolicyInstanceResponse> {
|
|
11073
12044
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11074
12045
|
let headers : {[key: string ]: string} = { };
|
|
11075
|
-
return await this.
|
|
12046
|
+
return await this.deployPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
|
|
11076
12047
|
}
|
|
11077
12048
|
|
|
11078
12049
|
async descirbeWorkflowWithOptions(workflowName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescirbeWorkflowResponse> {
|
|
@@ -11093,19 +12064,31 @@ export default class Client extends OpenApi {
|
|
|
11093
12064
|
return $tea.cast<DescirbeWorkflowResponse>(await this.callApi(params, req, runtime), new DescirbeWorkflowResponse({}));
|
|
11094
12065
|
}
|
|
11095
12066
|
|
|
11096
|
-
async
|
|
12067
|
+
async descirbeWorkflow(workflowName: string): Promise<DescirbeWorkflowResponse> {
|
|
11097
12068
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11098
12069
|
let headers : {[key: string ]: string} = { };
|
|
11099
|
-
return await this.
|
|
12070
|
+
return await this.descirbeWorkflowWithOptions(workflowName, headers, runtime);
|
|
11100
12071
|
}
|
|
11101
12072
|
|
|
11102
12073
|
async describeAddonsWithOptions(request: DescribeAddonsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeAddonsResponse> {
|
|
11103
12074
|
Util.validateModel(request);
|
|
11104
12075
|
let query : {[key: string ]: any} = { };
|
|
12076
|
+
if (!Util.isUnset(request.clusterProfile)) {
|
|
12077
|
+
query["cluster_profile"] = request.clusterProfile;
|
|
12078
|
+
}
|
|
12079
|
+
|
|
12080
|
+
if (!Util.isUnset(request.clusterSpec)) {
|
|
12081
|
+
query["cluster_spec"] = request.clusterSpec;
|
|
12082
|
+
}
|
|
12083
|
+
|
|
11105
12084
|
if (!Util.isUnset(request.clusterType)) {
|
|
11106
12085
|
query["cluster_type"] = request.clusterType;
|
|
11107
12086
|
}
|
|
11108
12087
|
|
|
12088
|
+
if (!Util.isUnset(request.clusterVersion)) {
|
|
12089
|
+
query["cluster_version"] = request.clusterVersion;
|
|
12090
|
+
}
|
|
12091
|
+
|
|
11109
12092
|
if (!Util.isUnset(request.region)) {
|
|
11110
12093
|
query["region"] = request.region;
|
|
11111
12094
|
}
|
|
@@ -11128,10 +12111,34 @@ export default class Client extends OpenApi {
|
|
|
11128
12111
|
return $tea.cast<DescribeAddonsResponse>(await this.callApi(params, req, runtime), new DescribeAddonsResponse({}));
|
|
11129
12112
|
}
|
|
11130
12113
|
|
|
11131
|
-
async
|
|
12114
|
+
async describeAddons(request: DescribeAddonsRequest): Promise<DescribeAddonsResponse> {
|
|
11132
12115
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11133
12116
|
let headers : {[key: string ]: string} = { };
|
|
11134
|
-
return await this.
|
|
12117
|
+
return await this.describeAddonsWithOptions(request, headers, runtime);
|
|
12118
|
+
}
|
|
12119
|
+
|
|
12120
|
+
async describeClusterAddonInstanceWithOptions(ClusterID: string, AddonName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterAddonInstanceResponse> {
|
|
12121
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
12122
|
+
headers: headers,
|
|
12123
|
+
});
|
|
12124
|
+
let params = new $OpenApi.Params({
|
|
12125
|
+
action: "DescribeClusterAddonInstance",
|
|
12126
|
+
version: "2015-12-15",
|
|
12127
|
+
protocol: "HTTPS",
|
|
12128
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(ClusterID)}/components/${OpenApiUtil.getEncodeParam(AddonName)}/instance`,
|
|
12129
|
+
method: "GET",
|
|
12130
|
+
authType: "AK",
|
|
12131
|
+
style: "ROA",
|
|
12132
|
+
reqBodyType: "json",
|
|
12133
|
+
bodyType: "json",
|
|
12134
|
+
});
|
|
12135
|
+
return $tea.cast<DescribeClusterAddonInstanceResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonInstanceResponse({}));
|
|
12136
|
+
}
|
|
12137
|
+
|
|
12138
|
+
async describeClusterAddonInstance(ClusterID: string, AddonName: string): Promise<DescribeClusterAddonInstanceResponse> {
|
|
12139
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
12140
|
+
let headers : {[key: string ]: string} = { };
|
|
12141
|
+
return await this.describeClusterAddonInstanceWithOptions(ClusterID, AddonName, headers, runtime);
|
|
11135
12142
|
}
|
|
11136
12143
|
|
|
11137
12144
|
async describeClusterAddonMetadataWithOptions(clusterId: string, componentId: string, version: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterAddonMetadataResponse> {
|
|
@@ -11152,12 +12159,20 @@ export default class Client extends OpenApi {
|
|
|
11152
12159
|
return $tea.cast<DescribeClusterAddonMetadataResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonMetadataResponse({}));
|
|
11153
12160
|
}
|
|
11154
12161
|
|
|
11155
|
-
async
|
|
12162
|
+
async describeClusterAddonMetadata(clusterId: string, componentId: string, version: string): Promise<DescribeClusterAddonMetadataResponse> {
|
|
11156
12163
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11157
12164
|
let headers : {[key: string ]: string} = { };
|
|
11158
|
-
return await this.
|
|
12165
|
+
return await this.describeClusterAddonMetadataWithOptions(clusterId, componentId, version, headers, runtime);
|
|
11159
12166
|
}
|
|
11160
12167
|
|
|
12168
|
+
/**
|
|
12169
|
+
* @deprecated
|
|
12170
|
+
*
|
|
12171
|
+
* @param headers map
|
|
12172
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
12173
|
+
* @return DescribeClusterAddonUpgradeStatusResponse
|
|
12174
|
+
*/
|
|
12175
|
+
// Deprecated
|
|
11161
12176
|
async describeClusterAddonUpgradeStatusWithOptions(ClusterId: string, ComponentId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterAddonUpgradeStatusResponse> {
|
|
11162
12177
|
let req = new $OpenApi.OpenApiRequest({
|
|
11163
12178
|
headers: headers,
|
|
@@ -11176,10 +12191,16 @@ export default class Client extends OpenApi {
|
|
|
11176
12191
|
return $tea.cast<DescribeClusterAddonUpgradeStatusResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonUpgradeStatusResponse({}));
|
|
11177
12192
|
}
|
|
11178
12193
|
|
|
11179
|
-
|
|
12194
|
+
/**
|
|
12195
|
+
* @deprecated
|
|
12196
|
+
*
|
|
12197
|
+
* @return DescribeClusterAddonUpgradeStatusResponse
|
|
12198
|
+
*/
|
|
12199
|
+
// Deprecated
|
|
12200
|
+
async describeClusterAddonUpgradeStatus(ClusterId: string, ComponentId: string): Promise<DescribeClusterAddonUpgradeStatusResponse> {
|
|
11180
12201
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11181
12202
|
let headers : {[key: string ]: string} = { };
|
|
11182
|
-
return await this.
|
|
12203
|
+
return await this.describeClusterAddonUpgradeStatusWithOptions(ClusterId, ComponentId, headers, runtime);
|
|
11183
12204
|
}
|
|
11184
12205
|
|
|
11185
12206
|
async describeClusterAddonsUpgradeStatusWithOptions(ClusterId: string, tmpReq: DescribeClusterAddonsUpgradeStatusRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterAddonsUpgradeStatusResponse> {
|
|
@@ -11213,10 +12234,10 @@ export default class Client extends OpenApi {
|
|
|
11213
12234
|
return $tea.cast<DescribeClusterAddonsUpgradeStatusResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonsUpgradeStatusResponse({}));
|
|
11214
12235
|
}
|
|
11215
12236
|
|
|
11216
|
-
async
|
|
12237
|
+
async describeClusterAddonsUpgradeStatus(ClusterId: string, request: DescribeClusterAddonsUpgradeStatusRequest): Promise<DescribeClusterAddonsUpgradeStatusResponse> {
|
|
11217
12238
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11218
12239
|
let headers : {[key: string ]: string} = { };
|
|
11219
|
-
return await this.
|
|
12240
|
+
return await this.describeClusterAddonsUpgradeStatusWithOptions(ClusterId, request, headers, runtime);
|
|
11220
12241
|
}
|
|
11221
12242
|
|
|
11222
12243
|
async describeClusterAddonsVersionWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterAddonsVersionResponse> {
|
|
@@ -11237,10 +12258,10 @@ export default class Client extends OpenApi {
|
|
|
11237
12258
|
return $tea.cast<DescribeClusterAddonsVersionResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonsVersionResponse({}));
|
|
11238
12259
|
}
|
|
11239
12260
|
|
|
11240
|
-
async
|
|
12261
|
+
async describeClusterAddonsVersion(ClusterId: string): Promise<DescribeClusterAddonsVersionResponse> {
|
|
11241
12262
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11242
12263
|
let headers : {[key: string ]: string} = { };
|
|
11243
|
-
return await this.
|
|
12264
|
+
return await this.describeClusterAddonsVersionWithOptions(ClusterId, headers, runtime);
|
|
11244
12265
|
}
|
|
11245
12266
|
|
|
11246
12267
|
async describeClusterAttachScriptsWithOptions(ClusterId: string, request: DescribeClusterAttachScriptsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterAttachScriptsResponse> {
|
|
@@ -11288,10 +12309,10 @@ export default class Client extends OpenApi {
|
|
|
11288
12309
|
return $tea.cast<DescribeClusterAttachScriptsResponse>(await this.callApi(params, req, runtime), new DescribeClusterAttachScriptsResponse({}));
|
|
11289
12310
|
}
|
|
11290
12311
|
|
|
11291
|
-
async
|
|
12312
|
+
async describeClusterAttachScripts(ClusterId: string, request: DescribeClusterAttachScriptsRequest): Promise<DescribeClusterAttachScriptsResponse> {
|
|
11292
12313
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11293
12314
|
let headers : {[key: string ]: string} = { };
|
|
11294
|
-
return await this.
|
|
12315
|
+
return await this.describeClusterAttachScriptsWithOptions(ClusterId, request, headers, runtime);
|
|
11295
12316
|
}
|
|
11296
12317
|
|
|
11297
12318
|
async describeClusterDetailWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterDetailResponse> {
|
|
@@ -11312,10 +12333,10 @@ export default class Client extends OpenApi {
|
|
|
11312
12333
|
return $tea.cast<DescribeClusterDetailResponse>(await this.callApi(params, req, runtime), new DescribeClusterDetailResponse({}));
|
|
11313
12334
|
}
|
|
11314
12335
|
|
|
11315
|
-
async
|
|
12336
|
+
async describeClusterDetail(ClusterId: string): Promise<DescribeClusterDetailResponse> {
|
|
11316
12337
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11317
12338
|
let headers : {[key: string ]: string} = { };
|
|
11318
|
-
return await this.
|
|
12339
|
+
return await this.describeClusterDetailWithOptions(ClusterId, headers, runtime);
|
|
11319
12340
|
}
|
|
11320
12341
|
|
|
11321
12342
|
async describeClusterEventsWithOptions(ClusterId: string, request: DescribeClusterEventsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterEventsResponse> {
|
|
@@ -11351,10 +12372,10 @@ export default class Client extends OpenApi {
|
|
|
11351
12372
|
return $tea.cast<DescribeClusterEventsResponse>(await this.callApi(params, req, runtime), new DescribeClusterEventsResponse({}));
|
|
11352
12373
|
}
|
|
11353
12374
|
|
|
11354
|
-
async
|
|
12375
|
+
async describeClusterEvents(ClusterId: string, request: DescribeClusterEventsRequest): Promise<DescribeClusterEventsResponse> {
|
|
11355
12376
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11356
12377
|
let headers : {[key: string ]: string} = { };
|
|
11357
|
-
return await this.
|
|
12378
|
+
return await this.describeClusterEventsWithOptions(ClusterId, request, headers, runtime);
|
|
11358
12379
|
}
|
|
11359
12380
|
|
|
11360
12381
|
async describeClusterLogsWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterLogsResponse> {
|
|
@@ -11375,10 +12396,10 @@ export default class Client extends OpenApi {
|
|
|
11375
12396
|
return $tea.cast<DescribeClusterLogsResponse>(await this.callApi(params, req, runtime), new DescribeClusterLogsResponse({}));
|
|
11376
12397
|
}
|
|
11377
12398
|
|
|
11378
|
-
async
|
|
12399
|
+
async describeClusterLogs(ClusterId: string): Promise<DescribeClusterLogsResponse> {
|
|
11379
12400
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11380
12401
|
let headers : {[key: string ]: string} = { };
|
|
11381
|
-
return await this.
|
|
12402
|
+
return await this.describeClusterLogsWithOptions(ClusterId, headers, runtime);
|
|
11382
12403
|
}
|
|
11383
12404
|
|
|
11384
12405
|
async describeClusterNodePoolDetailWithOptions(ClusterId: string, NodepoolId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterNodePoolDetailResponse> {
|
|
@@ -11399,10 +12420,10 @@ export default class Client extends OpenApi {
|
|
|
11399
12420
|
return $tea.cast<DescribeClusterNodePoolDetailResponse>(await this.callApi(params, req, runtime), new DescribeClusterNodePoolDetailResponse({}));
|
|
11400
12421
|
}
|
|
11401
12422
|
|
|
11402
|
-
async
|
|
12423
|
+
async describeClusterNodePoolDetail(ClusterId: string, NodepoolId: string): Promise<DescribeClusterNodePoolDetailResponse> {
|
|
11403
12424
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11404
12425
|
let headers : {[key: string ]: string} = { };
|
|
11405
|
-
return await this.
|
|
12426
|
+
return await this.describeClusterNodePoolDetailWithOptions(ClusterId, NodepoolId, headers, runtime);
|
|
11406
12427
|
}
|
|
11407
12428
|
|
|
11408
12429
|
async describeClusterNodePoolsWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterNodePoolsResponse> {
|
|
@@ -11423,10 +12444,10 @@ export default class Client extends OpenApi {
|
|
|
11423
12444
|
return $tea.cast<DescribeClusterNodePoolsResponse>(await this.callApi(params, req, runtime), new DescribeClusterNodePoolsResponse({}));
|
|
11424
12445
|
}
|
|
11425
12446
|
|
|
11426
|
-
async
|
|
12447
|
+
async describeClusterNodePools(ClusterId: string): Promise<DescribeClusterNodePoolsResponse> {
|
|
11427
12448
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11428
12449
|
let headers : {[key: string ]: string} = { };
|
|
11429
|
-
return await this.
|
|
12450
|
+
return await this.describeClusterNodePoolsWithOptions(ClusterId, headers, runtime);
|
|
11430
12451
|
}
|
|
11431
12452
|
|
|
11432
12453
|
async describeClusterNodesWithOptions(ClusterId: string, request: DescribeClusterNodesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterNodesResponse> {
|
|
@@ -11470,10 +12491,10 @@ export default class Client extends OpenApi {
|
|
|
11470
12491
|
return $tea.cast<DescribeClusterNodesResponse>(await this.callApi(params, req, runtime), new DescribeClusterNodesResponse({}));
|
|
11471
12492
|
}
|
|
11472
12493
|
|
|
11473
|
-
async
|
|
12494
|
+
async describeClusterNodes(ClusterId: string, request: DescribeClusterNodesRequest): Promise<DescribeClusterNodesResponse> {
|
|
11474
12495
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11475
12496
|
let headers : {[key: string ]: string} = { };
|
|
11476
|
-
return await this.
|
|
12497
|
+
return await this.describeClusterNodesWithOptions(ClusterId, request, headers, runtime);
|
|
11477
12498
|
}
|
|
11478
12499
|
|
|
11479
12500
|
async describeClusterResourcesWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterResourcesResponse> {
|
|
@@ -11494,10 +12515,10 @@ export default class Client extends OpenApi {
|
|
|
11494
12515
|
return $tea.cast<DescribeClusterResourcesResponse>(await this.callApi(params, req, runtime), new DescribeClusterResourcesResponse({}));
|
|
11495
12516
|
}
|
|
11496
12517
|
|
|
11497
|
-
async
|
|
12518
|
+
async describeClusterResources(ClusterId: string): Promise<DescribeClusterResourcesResponse> {
|
|
11498
12519
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11499
12520
|
let headers : {[key: string ]: string} = { };
|
|
11500
|
-
return await this.
|
|
12521
|
+
return await this.describeClusterResourcesWithOptions(ClusterId, headers, runtime);
|
|
11501
12522
|
}
|
|
11502
12523
|
|
|
11503
12524
|
async describeClusterTasksWithOptions(clusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterTasksResponse> {
|
|
@@ -11518,10 +12539,10 @@ export default class Client extends OpenApi {
|
|
|
11518
12539
|
return $tea.cast<DescribeClusterTasksResponse>(await this.callApi(params, req, runtime), new DescribeClusterTasksResponse({}));
|
|
11519
12540
|
}
|
|
11520
12541
|
|
|
11521
|
-
async
|
|
12542
|
+
async describeClusterTasks(clusterId: string): Promise<DescribeClusterTasksResponse> {
|
|
11522
12543
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11523
12544
|
let headers : {[key: string ]: string} = { };
|
|
11524
|
-
return await this.
|
|
12545
|
+
return await this.describeClusterTasksWithOptions(clusterId, headers, runtime);
|
|
11525
12546
|
}
|
|
11526
12547
|
|
|
11527
12548
|
async describeClusterUserKubeconfigWithOptions(ClusterId: string, request: DescribeClusterUserKubeconfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterUserKubeconfigResponse> {
|
|
@@ -11553,12 +12574,21 @@ export default class Client extends OpenApi {
|
|
|
11553
12574
|
return $tea.cast<DescribeClusterUserKubeconfigResponse>(await this.callApi(params, req, runtime), new DescribeClusterUserKubeconfigResponse({}));
|
|
11554
12575
|
}
|
|
11555
12576
|
|
|
11556
|
-
async
|
|
12577
|
+
async describeClusterUserKubeconfig(ClusterId: string, request: DescribeClusterUserKubeconfigRequest): Promise<DescribeClusterUserKubeconfigResponse> {
|
|
11557
12578
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11558
12579
|
let headers : {[key: string ]: string} = { };
|
|
11559
|
-
return await this.
|
|
12580
|
+
return await this.describeClusterUserKubeconfigWithOptions(ClusterId, request, headers, runtime);
|
|
11560
12581
|
}
|
|
11561
12582
|
|
|
12583
|
+
/**
|
|
12584
|
+
* @deprecated
|
|
12585
|
+
*
|
|
12586
|
+
* @param request DescribeClusterV2UserKubeconfigRequest
|
|
12587
|
+
* @param headers map
|
|
12588
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
12589
|
+
* @return DescribeClusterV2UserKubeconfigResponse
|
|
12590
|
+
*/
|
|
12591
|
+
// Deprecated
|
|
11562
12592
|
async describeClusterV2UserKubeconfigWithOptions(ClusterId: string, request: DescribeClusterV2UserKubeconfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterV2UserKubeconfigResponse> {
|
|
11563
12593
|
Util.validateModel(request);
|
|
11564
12594
|
let query : {[key: string ]: any} = { };
|
|
@@ -11584,12 +12614,52 @@ export default class Client extends OpenApi {
|
|
|
11584
12614
|
return $tea.cast<DescribeClusterV2UserKubeconfigResponse>(await this.callApi(params, req, runtime), new DescribeClusterV2UserKubeconfigResponse({}));
|
|
11585
12615
|
}
|
|
11586
12616
|
|
|
11587
|
-
|
|
12617
|
+
/**
|
|
12618
|
+
* @deprecated
|
|
12619
|
+
*
|
|
12620
|
+
* @param request DescribeClusterV2UserKubeconfigRequest
|
|
12621
|
+
* @return DescribeClusterV2UserKubeconfigResponse
|
|
12622
|
+
*/
|
|
12623
|
+
// Deprecated
|
|
12624
|
+
async describeClusterV2UserKubeconfig(ClusterId: string, request: DescribeClusterV2UserKubeconfigRequest): Promise<DescribeClusterV2UserKubeconfigResponse> {
|
|
11588
12625
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11589
12626
|
let headers : {[key: string ]: string} = { };
|
|
11590
|
-
return await this.
|
|
12627
|
+
return await this.describeClusterV2UserKubeconfigWithOptions(ClusterId, request, headers, runtime);
|
|
11591
12628
|
}
|
|
11592
12629
|
|
|
12630
|
+
async describeClusterVulsWithOptions(clusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterVulsResponse> {
|
|
12631
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
12632
|
+
headers: headers,
|
|
12633
|
+
});
|
|
12634
|
+
let params = new $OpenApi.Params({
|
|
12635
|
+
action: "DescribeClusterVuls",
|
|
12636
|
+
version: "2015-12-15",
|
|
12637
|
+
protocol: "HTTPS",
|
|
12638
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterId)}/vuls`,
|
|
12639
|
+
method: "GET",
|
|
12640
|
+
authType: "AK",
|
|
12641
|
+
style: "ROA",
|
|
12642
|
+
reqBodyType: "json",
|
|
12643
|
+
bodyType: "json",
|
|
12644
|
+
});
|
|
12645
|
+
return $tea.cast<DescribeClusterVulsResponse>(await this.callApi(params, req, runtime), new DescribeClusterVulsResponse({}));
|
|
12646
|
+
}
|
|
12647
|
+
|
|
12648
|
+
async describeClusterVuls(clusterId: string): Promise<DescribeClusterVulsResponse> {
|
|
12649
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
12650
|
+
let headers : {[key: string ]: string} = { };
|
|
12651
|
+
return await this.describeClusterVulsWithOptions(clusterId, headers, runtime);
|
|
12652
|
+
}
|
|
12653
|
+
|
|
12654
|
+
/**
|
|
12655
|
+
* @deprecated
|
|
12656
|
+
*
|
|
12657
|
+
* @param request DescribeClustersRequest
|
|
12658
|
+
* @param headers map
|
|
12659
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
12660
|
+
* @return DescribeClustersResponse
|
|
12661
|
+
*/
|
|
12662
|
+
// Deprecated
|
|
11593
12663
|
async describeClustersWithOptions(request: DescribeClustersRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClustersResponse> {
|
|
11594
12664
|
Util.validateModel(request);
|
|
11595
12665
|
let query : {[key: string ]: any} = { };
|
|
@@ -11619,10 +12689,17 @@ export default class Client extends OpenApi {
|
|
|
11619
12689
|
return $tea.cast<DescribeClustersResponse>(await this.callApi(params, req, runtime), new DescribeClustersResponse({}));
|
|
11620
12690
|
}
|
|
11621
12691
|
|
|
11622
|
-
|
|
12692
|
+
/**
|
|
12693
|
+
* @deprecated
|
|
12694
|
+
*
|
|
12695
|
+
* @param request DescribeClustersRequest
|
|
12696
|
+
* @return DescribeClustersResponse
|
|
12697
|
+
*/
|
|
12698
|
+
// Deprecated
|
|
12699
|
+
async describeClusters(request: DescribeClustersRequest): Promise<DescribeClustersResponse> {
|
|
11623
12700
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11624
12701
|
let headers : {[key: string ]: string} = { };
|
|
11625
|
-
return await this.
|
|
12702
|
+
return await this.describeClustersWithOptions(request, headers, runtime);
|
|
11626
12703
|
}
|
|
11627
12704
|
|
|
11628
12705
|
async describeClustersV1WithOptions(request: DescribeClustersV1Request, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClustersV1Response> {
|
|
@@ -11674,10 +12751,10 @@ export default class Client extends OpenApi {
|
|
|
11674
12751
|
return $tea.cast<DescribeClustersV1Response>(await this.callApi(params, req, runtime), new DescribeClustersV1Response({}));
|
|
11675
12752
|
}
|
|
11676
12753
|
|
|
11677
|
-
async
|
|
12754
|
+
async describeClustersV1(request: DescribeClustersV1Request): Promise<DescribeClustersV1Response> {
|
|
11678
12755
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11679
12756
|
let headers : {[key: string ]: string} = { };
|
|
11680
|
-
return await this.
|
|
12757
|
+
return await this.describeClustersV1WithOptions(request, headers, runtime);
|
|
11681
12758
|
}
|
|
11682
12759
|
|
|
11683
12760
|
async describeEdgeMachineActiveProcessWithOptions(edgeMachineid: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeEdgeMachineActiveProcessResponse> {
|
|
@@ -11698,10 +12775,10 @@ export default class Client extends OpenApi {
|
|
|
11698
12775
|
return $tea.cast<DescribeEdgeMachineActiveProcessResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachineActiveProcessResponse({}));
|
|
11699
12776
|
}
|
|
11700
12777
|
|
|
11701
|
-
async
|
|
12778
|
+
async describeEdgeMachineActiveProcess(edgeMachineid: string): Promise<DescribeEdgeMachineActiveProcessResponse> {
|
|
11702
12779
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11703
12780
|
let headers : {[key: string ]: string} = { };
|
|
11704
|
-
return await this.
|
|
12781
|
+
return await this.describeEdgeMachineActiveProcessWithOptions(edgeMachineid, headers, runtime);
|
|
11705
12782
|
}
|
|
11706
12783
|
|
|
11707
12784
|
async describeEdgeMachineModelsWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeEdgeMachineModelsResponse> {
|
|
@@ -11722,10 +12799,10 @@ export default class Client extends OpenApi {
|
|
|
11722
12799
|
return $tea.cast<DescribeEdgeMachineModelsResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachineModelsResponse({}));
|
|
11723
12800
|
}
|
|
11724
12801
|
|
|
11725
|
-
async
|
|
12802
|
+
async describeEdgeMachineModels(): Promise<DescribeEdgeMachineModelsResponse> {
|
|
11726
12803
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11727
12804
|
let headers : {[key: string ]: string} = { };
|
|
11728
|
-
return await this.
|
|
12805
|
+
return await this.describeEdgeMachineModelsWithOptions(headers, runtime);
|
|
11729
12806
|
}
|
|
11730
12807
|
|
|
11731
12808
|
async describeEdgeMachineTunnelConfigDetailWithOptions(edgeMachineid: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeEdgeMachineTunnelConfigDetailResponse> {
|
|
@@ -11746,10 +12823,10 @@ export default class Client extends OpenApi {
|
|
|
11746
12823
|
return $tea.cast<DescribeEdgeMachineTunnelConfigDetailResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachineTunnelConfigDetailResponse({}));
|
|
11747
12824
|
}
|
|
11748
12825
|
|
|
11749
|
-
async
|
|
12826
|
+
async describeEdgeMachineTunnelConfigDetail(edgeMachineid: string): Promise<DescribeEdgeMachineTunnelConfigDetailResponse> {
|
|
11750
12827
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11751
12828
|
let headers : {[key: string ]: string} = { };
|
|
11752
|
-
return await this.
|
|
12829
|
+
return await this.describeEdgeMachineTunnelConfigDetailWithOptions(edgeMachineid, headers, runtime);
|
|
11753
12830
|
}
|
|
11754
12831
|
|
|
11755
12832
|
async describeEdgeMachinesWithOptions(request: DescribeEdgeMachinesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeEdgeMachinesResponse> {
|
|
@@ -11797,10 +12874,10 @@ export default class Client extends OpenApi {
|
|
|
11797
12874
|
return $tea.cast<DescribeEdgeMachinesResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachinesResponse({}));
|
|
11798
12875
|
}
|
|
11799
12876
|
|
|
11800
|
-
async
|
|
12877
|
+
async describeEdgeMachines(request: DescribeEdgeMachinesRequest): Promise<DescribeEdgeMachinesResponse> {
|
|
11801
12878
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11802
12879
|
let headers : {[key: string ]: string} = { };
|
|
11803
|
-
return await this.
|
|
12880
|
+
return await this.describeEdgeMachinesWithOptions(request, headers, runtime);
|
|
11804
12881
|
}
|
|
11805
12882
|
|
|
11806
12883
|
async describeEventsWithOptions(request: DescribeEventsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeEventsResponse> {
|
|
@@ -11840,12 +12917,20 @@ export default class Client extends OpenApi {
|
|
|
11840
12917
|
return $tea.cast<DescribeEventsResponse>(await this.callApi(params, req, runtime), new DescribeEventsResponse({}));
|
|
11841
12918
|
}
|
|
11842
12919
|
|
|
11843
|
-
async
|
|
12920
|
+
async describeEvents(request: DescribeEventsRequest): Promise<DescribeEventsResponse> {
|
|
11844
12921
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11845
12922
|
let headers : {[key: string ]: string} = { };
|
|
11846
|
-
return await this.
|
|
12923
|
+
return await this.describeEventsWithOptions(request, headers, runtime);
|
|
11847
12924
|
}
|
|
11848
12925
|
|
|
12926
|
+
/**
|
|
12927
|
+
* For more information, see [Register an external Kubernetes cluster](~~121053~~).
|
|
12928
|
+
*
|
|
12929
|
+
* @param request DescribeExternalAgentRequest
|
|
12930
|
+
* @param headers map
|
|
12931
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
12932
|
+
* @return DescribeExternalAgentResponse
|
|
12933
|
+
*/
|
|
11849
12934
|
async describeExternalAgentWithOptions(ClusterId: string, request: DescribeExternalAgentRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeExternalAgentResponse> {
|
|
11850
12935
|
Util.validateModel(request);
|
|
11851
12936
|
let query : {[key: string ]: any} = { };
|
|
@@ -11871,10 +12956,16 @@ export default class Client extends OpenApi {
|
|
|
11871
12956
|
return $tea.cast<DescribeExternalAgentResponse>(await this.callApi(params, req, runtime), new DescribeExternalAgentResponse({}));
|
|
11872
12957
|
}
|
|
11873
12958
|
|
|
11874
|
-
|
|
12959
|
+
/**
|
|
12960
|
+
* For more information, see [Register an external Kubernetes cluster](~~121053~~).
|
|
12961
|
+
*
|
|
12962
|
+
* @param request DescribeExternalAgentRequest
|
|
12963
|
+
* @return DescribeExternalAgentResponse
|
|
12964
|
+
*/
|
|
12965
|
+
async describeExternalAgent(ClusterId: string, request: DescribeExternalAgentRequest): Promise<DescribeExternalAgentResponse> {
|
|
11875
12966
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11876
12967
|
let headers : {[key: string ]: string} = { };
|
|
11877
|
-
return await this.
|
|
12968
|
+
return await this.describeExternalAgentWithOptions(ClusterId, request, headers, runtime);
|
|
11878
12969
|
}
|
|
11879
12970
|
|
|
11880
12971
|
async describeKubernetesVersionMetadataWithOptions(request: DescribeKubernetesVersionMetadataRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeKubernetesVersionMetadataResponse> {
|
|
@@ -11888,6 +12979,10 @@ export default class Client extends OpenApi {
|
|
|
11888
12979
|
query["KubernetesVersion"] = request.kubernetesVersion;
|
|
11889
12980
|
}
|
|
11890
12981
|
|
|
12982
|
+
if (!Util.isUnset(request.mode)) {
|
|
12983
|
+
query["Mode"] = request.mode;
|
|
12984
|
+
}
|
|
12985
|
+
|
|
11891
12986
|
if (!Util.isUnset(request.profile)) {
|
|
11892
12987
|
query["Profile"] = request.profile;
|
|
11893
12988
|
}
|
|
@@ -11918,15 +13013,22 @@ export default class Client extends OpenApi {
|
|
|
11918
13013
|
return $tea.cast<DescribeKubernetesVersionMetadataResponse>(await this.callApi(params, req, runtime), new DescribeKubernetesVersionMetadataResponse({}));
|
|
11919
13014
|
}
|
|
11920
13015
|
|
|
11921
|
-
async
|
|
13016
|
+
async describeKubernetesVersionMetadata(request: DescribeKubernetesVersionMetadataRequest): Promise<DescribeKubernetesVersionMetadataResponse> {
|
|
11922
13017
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11923
13018
|
let headers : {[key: string ]: string} = { };
|
|
11924
|
-
return await this.
|
|
13019
|
+
return await this.describeKubernetesVersionMetadataWithOptions(request, headers, runtime);
|
|
11925
13020
|
}
|
|
11926
13021
|
|
|
11927
|
-
async describeNodePoolVulsWithOptions(clusterId: string, nodepoolId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeNodePoolVulsResponse> {
|
|
13022
|
+
async describeNodePoolVulsWithOptions(clusterId: string, nodepoolId: string, request: DescribeNodePoolVulsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeNodePoolVulsResponse> {
|
|
13023
|
+
Util.validateModel(request);
|
|
13024
|
+
let query : {[key: string ]: any} = { };
|
|
13025
|
+
if (!Util.isUnset(request.necessity)) {
|
|
13026
|
+
query["necessity"] = request.necessity;
|
|
13027
|
+
}
|
|
13028
|
+
|
|
11928
13029
|
let req = new $OpenApi.OpenApiRequest({
|
|
11929
13030
|
headers: headers,
|
|
13031
|
+
query: OpenApiUtil.query(query),
|
|
11930
13032
|
});
|
|
11931
13033
|
let params = new $OpenApi.Params({
|
|
11932
13034
|
action: "DescribeNodePoolVuls",
|
|
@@ -11942,10 +13044,10 @@ export default class Client extends OpenApi {
|
|
|
11942
13044
|
return $tea.cast<DescribeNodePoolVulsResponse>(await this.callApi(params, req, runtime), new DescribeNodePoolVulsResponse({}));
|
|
11943
13045
|
}
|
|
11944
13046
|
|
|
11945
|
-
async
|
|
13047
|
+
async describeNodePoolVuls(clusterId: string, nodepoolId: string, request: DescribeNodePoolVulsRequest): Promise<DescribeNodePoolVulsResponse> {
|
|
11946
13048
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11947
13049
|
let headers : {[key: string ]: string} = { };
|
|
11948
|
-
return await this.
|
|
13050
|
+
return await this.describeNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime);
|
|
11949
13051
|
}
|
|
11950
13052
|
|
|
11951
13053
|
async describePoliciesWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribePoliciesResponse> {
|
|
@@ -11966,10 +13068,10 @@ export default class Client extends OpenApi {
|
|
|
11966
13068
|
return $tea.cast<DescribePoliciesResponse>(await this.callApi(params, req, runtime), new DescribePoliciesResponse({}));
|
|
11967
13069
|
}
|
|
11968
13070
|
|
|
11969
|
-
async
|
|
13071
|
+
async describePolicies(): Promise<DescribePoliciesResponse> {
|
|
11970
13072
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11971
13073
|
let headers : {[key: string ]: string} = { };
|
|
11972
|
-
return await this.
|
|
13074
|
+
return await this.describePoliciesWithOptions(headers, runtime);
|
|
11973
13075
|
}
|
|
11974
13076
|
|
|
11975
13077
|
async describePolicyDetailsWithOptions(policyName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribePolicyDetailsResponse> {
|
|
@@ -11990,10 +13092,10 @@ export default class Client extends OpenApi {
|
|
|
11990
13092
|
return $tea.cast<DescribePolicyDetailsResponse>(await this.callApi(params, req, runtime), new DescribePolicyDetailsResponse({}));
|
|
11991
13093
|
}
|
|
11992
13094
|
|
|
11993
|
-
async
|
|
13095
|
+
async describePolicyDetails(policyName: string): Promise<DescribePolicyDetailsResponse> {
|
|
11994
13096
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11995
13097
|
let headers : {[key: string ]: string} = { };
|
|
11996
|
-
return await this.
|
|
13098
|
+
return await this.describePolicyDetailsWithOptions(policyName, headers, runtime);
|
|
11997
13099
|
}
|
|
11998
13100
|
|
|
11999
13101
|
async describePolicyGovernanceInClusterWithOptions(clusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribePolicyGovernanceInClusterResponse> {
|
|
@@ -12014,10 +13116,10 @@ export default class Client extends OpenApi {
|
|
|
12014
13116
|
return $tea.cast<DescribePolicyGovernanceInClusterResponse>(await this.callApi(params, req, runtime), new DescribePolicyGovernanceInClusterResponse({}));
|
|
12015
13117
|
}
|
|
12016
13118
|
|
|
12017
|
-
async
|
|
13119
|
+
async describePolicyGovernanceInCluster(clusterId: string): Promise<DescribePolicyGovernanceInClusterResponse> {
|
|
12018
13120
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12019
13121
|
let headers : {[key: string ]: string} = { };
|
|
12020
|
-
return await this.
|
|
13122
|
+
return await this.describePolicyGovernanceInClusterWithOptions(clusterId, headers, runtime);
|
|
12021
13123
|
}
|
|
12022
13124
|
|
|
12023
13125
|
async describePolicyInstancesWithOptions(clusterId: string, request: DescribePolicyInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribePolicyInstancesResponse> {
|
|
@@ -12049,10 +13151,10 @@ export default class Client extends OpenApi {
|
|
|
12049
13151
|
return $tea.cast<DescribePolicyInstancesResponse>(await this.callApi(params, req, runtime), new DescribePolicyInstancesResponse({}));
|
|
12050
13152
|
}
|
|
12051
13153
|
|
|
12052
|
-
async
|
|
13154
|
+
async describePolicyInstances(clusterId: string, request: DescribePolicyInstancesRequest): Promise<DescribePolicyInstancesResponse> {
|
|
12053
13155
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12054
13156
|
let headers : {[key: string ]: string} = { };
|
|
12055
|
-
return await this.
|
|
13157
|
+
return await this.describePolicyInstancesWithOptions(clusterId, request, headers, runtime);
|
|
12056
13158
|
}
|
|
12057
13159
|
|
|
12058
13160
|
async describePolicyInstancesStatusWithOptions(clusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribePolicyInstancesStatusResponse> {
|
|
@@ -12073,10 +13175,59 @@ export default class Client extends OpenApi {
|
|
|
12073
13175
|
return $tea.cast<DescribePolicyInstancesStatusResponse>(await this.callApi(params, req, runtime), new DescribePolicyInstancesStatusResponse({}));
|
|
12074
13176
|
}
|
|
12075
13177
|
|
|
12076
|
-
async
|
|
13178
|
+
async describePolicyInstancesStatus(clusterId: string): Promise<DescribePolicyInstancesStatusResponse> {
|
|
12077
13179
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12078
13180
|
let headers : {[key: string ]: string} = { };
|
|
12079
|
-
return await this.
|
|
13181
|
+
return await this.describePolicyInstancesStatusWithOptions(clusterId, headers, runtime);
|
|
13182
|
+
}
|
|
13183
|
+
|
|
13184
|
+
/**
|
|
13185
|
+
* > You can call this operation only with an Alibaba Cloud account.
|
|
13186
|
+
*
|
|
13187
|
+
* @param request DescribeSubaccountK8sClusterUserConfigRequest
|
|
13188
|
+
* @param headers map
|
|
13189
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
13190
|
+
* @return DescribeSubaccountK8sClusterUserConfigResponse
|
|
13191
|
+
*/
|
|
13192
|
+
async describeSubaccountK8sClusterUserConfigWithOptions(ClusterId: string, Uid: string, request: DescribeSubaccountK8sClusterUserConfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeSubaccountK8sClusterUserConfigResponse> {
|
|
13193
|
+
Util.validateModel(request);
|
|
13194
|
+
let query : {[key: string ]: any} = { };
|
|
13195
|
+
if (!Util.isUnset(request.privateIpAddress)) {
|
|
13196
|
+
query["PrivateIpAddress"] = request.privateIpAddress;
|
|
13197
|
+
}
|
|
13198
|
+
|
|
13199
|
+
if (!Util.isUnset(request.temporaryDurationMinutes)) {
|
|
13200
|
+
query["TemporaryDurationMinutes"] = request.temporaryDurationMinutes;
|
|
13201
|
+
}
|
|
13202
|
+
|
|
13203
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
13204
|
+
headers: headers,
|
|
13205
|
+
query: OpenApiUtil.query(query),
|
|
13206
|
+
});
|
|
13207
|
+
let params = new $OpenApi.Params({
|
|
13208
|
+
action: "DescribeSubaccountK8sClusterUserConfig",
|
|
13209
|
+
version: "2015-12-15",
|
|
13210
|
+
protocol: "HTTPS",
|
|
13211
|
+
pathname: `/k8s/${OpenApiUtil.getEncodeParam(ClusterId)}/users/${OpenApiUtil.getEncodeParam(Uid)}/user_config`,
|
|
13212
|
+
method: "GET",
|
|
13213
|
+
authType: "AK",
|
|
13214
|
+
style: "ROA",
|
|
13215
|
+
reqBodyType: "json",
|
|
13216
|
+
bodyType: "json",
|
|
13217
|
+
});
|
|
13218
|
+
return $tea.cast<DescribeSubaccountK8sClusterUserConfigResponse>(await this.callApi(params, req, runtime), new DescribeSubaccountK8sClusterUserConfigResponse({}));
|
|
13219
|
+
}
|
|
13220
|
+
|
|
13221
|
+
/**
|
|
13222
|
+
* > You can call this operation only with an Alibaba Cloud account.
|
|
13223
|
+
*
|
|
13224
|
+
* @param request DescribeSubaccountK8sClusterUserConfigRequest
|
|
13225
|
+
* @return DescribeSubaccountK8sClusterUserConfigResponse
|
|
13226
|
+
*/
|
|
13227
|
+
async describeSubaccountK8sClusterUserConfig(ClusterId: string, Uid: string, request: DescribeSubaccountK8sClusterUserConfigRequest): Promise<DescribeSubaccountK8sClusterUserConfigResponse> {
|
|
13228
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
13229
|
+
let headers : {[key: string ]: string} = { };
|
|
13230
|
+
return await this.describeSubaccountK8sClusterUserConfigWithOptions(ClusterId, Uid, request, headers, runtime);
|
|
12080
13231
|
}
|
|
12081
13232
|
|
|
12082
13233
|
async describeTaskInfoWithOptions(taskId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeTaskInfoResponse> {
|
|
@@ -12097,10 +13248,10 @@ export default class Client extends OpenApi {
|
|
|
12097
13248
|
return $tea.cast<DescribeTaskInfoResponse>(await this.callApi(params, req, runtime), new DescribeTaskInfoResponse({}));
|
|
12098
13249
|
}
|
|
12099
13250
|
|
|
12100
|
-
async
|
|
13251
|
+
async describeTaskInfo(taskId: string): Promise<DescribeTaskInfoResponse> {
|
|
12101
13252
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12102
13253
|
let headers : {[key: string ]: string} = { };
|
|
12103
|
-
return await this.
|
|
13254
|
+
return await this.describeTaskInfoWithOptions(taskId, headers, runtime);
|
|
12104
13255
|
}
|
|
12105
13256
|
|
|
12106
13257
|
async describeTemplateAttributeWithOptions(TemplateId: string, request: DescribeTemplateAttributeRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeTemplateAttributeResponse> {
|
|
@@ -12128,10 +13279,10 @@ export default class Client extends OpenApi {
|
|
|
12128
13279
|
return $tea.cast<DescribeTemplateAttributeResponse>(await this.callApi(params, req, runtime), new DescribeTemplateAttributeResponse({}));
|
|
12129
13280
|
}
|
|
12130
13281
|
|
|
12131
|
-
async
|
|
13282
|
+
async describeTemplateAttribute(TemplateId: string, request: DescribeTemplateAttributeRequest): Promise<DescribeTemplateAttributeResponse> {
|
|
12132
13283
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12133
13284
|
let headers : {[key: string ]: string} = { };
|
|
12134
|
-
return await this.
|
|
13285
|
+
return await this.describeTemplateAttributeWithOptions(TemplateId, request, headers, runtime);
|
|
12135
13286
|
}
|
|
12136
13287
|
|
|
12137
13288
|
async describeTemplatesWithOptions(request: DescribeTemplatesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeTemplatesResponse> {
|
|
@@ -12167,10 +13318,10 @@ export default class Client extends OpenApi {
|
|
|
12167
13318
|
return $tea.cast<DescribeTemplatesResponse>(await this.callApi(params, req, runtime), new DescribeTemplatesResponse({}));
|
|
12168
13319
|
}
|
|
12169
13320
|
|
|
12170
|
-
async
|
|
13321
|
+
async describeTemplates(request: DescribeTemplatesRequest): Promise<DescribeTemplatesResponse> {
|
|
12171
13322
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12172
13323
|
let headers : {[key: string ]: string} = { };
|
|
12173
|
-
return await this.
|
|
13324
|
+
return await this.describeTemplatesWithOptions(request, headers, runtime);
|
|
12174
13325
|
}
|
|
12175
13326
|
|
|
12176
13327
|
async describeTriggerWithOptions(clusterId: string, request: DescribeTriggerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeTriggerResponse> {
|
|
@@ -12200,7 +13351,7 @@ export default class Client extends OpenApi {
|
|
|
12200
13351
|
action: "DescribeTrigger",
|
|
12201
13352
|
version: "2015-12-15",
|
|
12202
13353
|
protocol: "HTTPS",
|
|
12203
|
-
pathname: `/clusters
|
|
13354
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterId)}/triggers`,
|
|
12204
13355
|
method: "GET",
|
|
12205
13356
|
authType: "AK",
|
|
12206
13357
|
style: "ROA",
|
|
@@ -12210,10 +13361,34 @@ export default class Client extends OpenApi {
|
|
|
12210
13361
|
return $tea.cast<DescribeTriggerResponse>(await this.callApi(params, req, runtime), new DescribeTriggerResponse({}));
|
|
12211
13362
|
}
|
|
12212
13363
|
|
|
12213
|
-
async
|
|
13364
|
+
async describeTrigger(clusterId: string, request: DescribeTriggerRequest): Promise<DescribeTriggerResponse> {
|
|
12214
13365
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12215
13366
|
let headers : {[key: string ]: string} = { };
|
|
12216
|
-
return await this.
|
|
13367
|
+
return await this.describeTriggerWithOptions(clusterId, request, headers, runtime);
|
|
13368
|
+
}
|
|
13369
|
+
|
|
13370
|
+
async describeUserClusterNamespacesWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeUserClusterNamespacesResponse> {
|
|
13371
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
13372
|
+
headers: headers,
|
|
13373
|
+
});
|
|
13374
|
+
let params = new $OpenApi.Params({
|
|
13375
|
+
action: "DescribeUserClusterNamespaces",
|
|
13376
|
+
version: "2015-12-15",
|
|
13377
|
+
protocol: "HTTPS",
|
|
13378
|
+
pathname: `/api/v2/k8s/${OpenApiUtil.getEncodeParam(ClusterId)}/namespaces`,
|
|
13379
|
+
method: "GET",
|
|
13380
|
+
authType: "AK",
|
|
13381
|
+
style: "ROA",
|
|
13382
|
+
reqBodyType: "json",
|
|
13383
|
+
bodyType: "array",
|
|
13384
|
+
});
|
|
13385
|
+
return $tea.cast<DescribeUserClusterNamespacesResponse>(await this.callApi(params, req, runtime), new DescribeUserClusterNamespacesResponse({}));
|
|
13386
|
+
}
|
|
13387
|
+
|
|
13388
|
+
async describeUserClusterNamespaces(ClusterId: string): Promise<DescribeUserClusterNamespacesResponse> {
|
|
13389
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
13390
|
+
let headers : {[key: string ]: string} = { };
|
|
13391
|
+
return await this.describeUserClusterNamespacesWithOptions(ClusterId, headers, runtime);
|
|
12217
13392
|
}
|
|
12218
13393
|
|
|
12219
13394
|
async describeUserPermissionWithOptions(uid: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeUserPermissionResponse> {
|
|
@@ -12234,10 +13409,10 @@ export default class Client extends OpenApi {
|
|
|
12234
13409
|
return $tea.cast<DescribeUserPermissionResponse>(await this.callApi(params, req, runtime), new DescribeUserPermissionResponse({}));
|
|
12235
13410
|
}
|
|
12236
13411
|
|
|
12237
|
-
async
|
|
13412
|
+
async describeUserPermission(uid: string): Promise<DescribeUserPermissionResponse> {
|
|
12238
13413
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12239
13414
|
let headers : {[key: string ]: string} = { };
|
|
12240
|
-
return await this.
|
|
13415
|
+
return await this.describeUserPermissionWithOptions(uid, headers, runtime);
|
|
12241
13416
|
}
|
|
12242
13417
|
|
|
12243
13418
|
async describeUserQuotaWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeUserQuotaResponse> {
|
|
@@ -12258,10 +13433,10 @@ export default class Client extends OpenApi {
|
|
|
12258
13433
|
return $tea.cast<DescribeUserQuotaResponse>(await this.callApi(params, req, runtime), new DescribeUserQuotaResponse({}));
|
|
12259
13434
|
}
|
|
12260
13435
|
|
|
12261
|
-
async
|
|
13436
|
+
async describeUserQuota(): Promise<DescribeUserQuotaResponse> {
|
|
12262
13437
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12263
13438
|
let headers : {[key: string ]: string} = { };
|
|
12264
|
-
return await this.
|
|
13439
|
+
return await this.describeUserQuotaWithOptions(headers, runtime);
|
|
12265
13440
|
}
|
|
12266
13441
|
|
|
12267
13442
|
async describeWorkflowsWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeWorkflowsResponse> {
|
|
@@ -12282,10 +13457,10 @@ export default class Client extends OpenApi {
|
|
|
12282
13457
|
return $tea.cast<DescribeWorkflowsResponse>(await this.callApi(params, req, runtime), new DescribeWorkflowsResponse({}));
|
|
12283
13458
|
}
|
|
12284
13459
|
|
|
12285
|
-
async
|
|
13460
|
+
async describeWorkflows(): Promise<DescribeWorkflowsResponse> {
|
|
12286
13461
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12287
13462
|
let headers : {[key: string ]: string} = { };
|
|
12288
|
-
return await this.
|
|
13463
|
+
return await this.describeWorkflowsWithOptions(headers, runtime);
|
|
12289
13464
|
}
|
|
12290
13465
|
|
|
12291
13466
|
async edgeClusterAddEdgeMachineWithOptions(clusterid: string, edgeMachineid: string, request: EdgeClusterAddEdgeMachineRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<EdgeClusterAddEdgeMachineResponse> {
|
|
@@ -12321,10 +13496,10 @@ export default class Client extends OpenApi {
|
|
|
12321
13496
|
return $tea.cast<EdgeClusterAddEdgeMachineResponse>(await this.callApi(params, req, runtime), new EdgeClusterAddEdgeMachineResponse({}));
|
|
12322
13497
|
}
|
|
12323
13498
|
|
|
12324
|
-
async
|
|
13499
|
+
async edgeClusterAddEdgeMachine(clusterid: string, edgeMachineid: string, request: EdgeClusterAddEdgeMachineRequest): Promise<EdgeClusterAddEdgeMachineResponse> {
|
|
12325
13500
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12326
13501
|
let headers : {[key: string ]: string} = { };
|
|
12327
|
-
return await this.
|
|
13502
|
+
return await this.edgeClusterAddEdgeMachineWithOptions(clusterid, edgeMachineid, request, headers, runtime);
|
|
12328
13503
|
}
|
|
12329
13504
|
|
|
12330
13505
|
async fixNodePoolVulsWithOptions(clusterId: string, nodepoolId: string, request: FixNodePoolVulsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<FixNodePoolVulsResponse> {
|
|
@@ -12334,12 +13509,12 @@ export default class Client extends OpenApi {
|
|
|
12334
13509
|
body["nodes"] = request.nodes;
|
|
12335
13510
|
}
|
|
12336
13511
|
|
|
12337
|
-
if (!Util.isUnset(
|
|
13512
|
+
if (!Util.isUnset(request.rolloutPolicy)) {
|
|
12338
13513
|
body["rollout_policy"] = request.rolloutPolicy;
|
|
12339
13514
|
}
|
|
12340
13515
|
|
|
12341
|
-
if (!Util.isUnset(request.
|
|
12342
|
-
body["
|
|
13516
|
+
if (!Util.isUnset(request.vuls)) {
|
|
13517
|
+
body["vuls"] = request.vuls;
|
|
12343
13518
|
}
|
|
12344
13519
|
|
|
12345
13520
|
let req = new $OpenApi.OpenApiRequest({
|
|
@@ -12360,10 +13535,10 @@ export default class Client extends OpenApi {
|
|
|
12360
13535
|
return $tea.cast<FixNodePoolVulsResponse>(await this.callApi(params, req, runtime), new FixNodePoolVulsResponse({}));
|
|
12361
13536
|
}
|
|
12362
13537
|
|
|
12363
|
-
async
|
|
13538
|
+
async fixNodePoolVuls(clusterId: string, nodepoolId: string, request: FixNodePoolVulsRequest): Promise<FixNodePoolVulsResponse> {
|
|
12364
13539
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12365
13540
|
let headers : {[key: string ]: string} = { };
|
|
12366
|
-
return await this.
|
|
13541
|
+
return await this.fixNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime);
|
|
12367
13542
|
}
|
|
12368
13543
|
|
|
12369
13544
|
async getKubernetesTriggerWithOptions(ClusterId: string, request: GetKubernetesTriggerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetKubernetesTriggerResponse> {
|
|
@@ -12403,10 +13578,10 @@ export default class Client extends OpenApi {
|
|
|
12403
13578
|
return $tea.cast<GetKubernetesTriggerResponse>(await this.callApi(params, req, runtime), new GetKubernetesTriggerResponse({}));
|
|
12404
13579
|
}
|
|
12405
13580
|
|
|
12406
|
-
async
|
|
13581
|
+
async getKubernetesTrigger(ClusterId: string, request: GetKubernetesTriggerRequest): Promise<GetKubernetesTriggerResponse> {
|
|
12407
13582
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12408
13583
|
let headers : {[key: string ]: string} = { };
|
|
12409
|
-
return await this.
|
|
13584
|
+
return await this.getKubernetesTriggerWithOptions(ClusterId, request, headers, runtime);
|
|
12410
13585
|
}
|
|
12411
13586
|
|
|
12412
13587
|
async getUpgradeStatusWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetUpgradeStatusResponse> {
|
|
@@ -12427,12 +13602,24 @@ export default class Client extends OpenApi {
|
|
|
12427
13602
|
return $tea.cast<GetUpgradeStatusResponse>(await this.callApi(params, req, runtime), new GetUpgradeStatusResponse({}));
|
|
12428
13603
|
}
|
|
12429
13604
|
|
|
12430
|
-
async
|
|
13605
|
+
async getUpgradeStatus(ClusterId: string): Promise<GetUpgradeStatusResponse> {
|
|
12431
13606
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12432
13607
|
let headers : {[key: string ]: string} = { };
|
|
12433
|
-
return await this.
|
|
13608
|
+
return await this.getUpgradeStatusWithOptions(ClusterId, headers, runtime);
|
|
12434
13609
|
}
|
|
12435
13610
|
|
|
13611
|
+
/**
|
|
13612
|
+
* **Precautions**:
|
|
13613
|
+
* * 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.
|
|
13614
|
+
* For more information about how to authorize a RAM user by attaching RAM policies, see [Create a custom RAM policy](~~86485~~).
|
|
13615
|
+
* * 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~~).
|
|
13616
|
+
* * 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.
|
|
13617
|
+
*
|
|
13618
|
+
* @param request GrantPermissionsRequest
|
|
13619
|
+
* @param headers map
|
|
13620
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
13621
|
+
* @return GrantPermissionsResponse
|
|
13622
|
+
*/
|
|
12436
13623
|
async grantPermissionsWithOptions(uid: string, request: GrantPermissionsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GrantPermissionsResponse> {
|
|
12437
13624
|
Util.validateModel(request);
|
|
12438
13625
|
let req = new $OpenApi.OpenApiRequest({
|
|
@@ -12453,10 +13640,20 @@ export default class Client extends OpenApi {
|
|
|
12453
13640
|
return $tea.cast<GrantPermissionsResponse>(await this.callApi(params, req, runtime), new GrantPermissionsResponse({}));
|
|
12454
13641
|
}
|
|
12455
13642
|
|
|
12456
|
-
|
|
13643
|
+
/**
|
|
13644
|
+
* **Precautions**:
|
|
13645
|
+
* * 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.
|
|
13646
|
+
* For more information about how to authorize a RAM user by attaching RAM policies, see [Create a custom RAM policy](~~86485~~).
|
|
13647
|
+
* * 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~~).
|
|
13648
|
+
* * 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.
|
|
13649
|
+
*
|
|
13650
|
+
* @param request GrantPermissionsRequest
|
|
13651
|
+
* @return GrantPermissionsResponse
|
|
13652
|
+
*/
|
|
13653
|
+
async grantPermissions(uid: string, request: GrantPermissionsRequest): Promise<GrantPermissionsResponse> {
|
|
12457
13654
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12458
13655
|
let headers : {[key: string ]: string} = { };
|
|
12459
|
-
return await this.
|
|
13656
|
+
return await this.grantPermissionsWithOptions(uid, request, headers, runtime);
|
|
12460
13657
|
}
|
|
12461
13658
|
|
|
12462
13659
|
async installClusterAddonsWithOptions(ClusterId: string, request: InstallClusterAddonsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<InstallClusterAddonsResponse> {
|
|
@@ -12479,10 +13676,10 @@ export default class Client extends OpenApi {
|
|
|
12479
13676
|
return $tea.cast<InstallClusterAddonsResponse>(await this.callApi(params, req, runtime), new InstallClusterAddonsResponse({}));
|
|
12480
13677
|
}
|
|
12481
13678
|
|
|
12482
|
-
async
|
|
13679
|
+
async installClusterAddons(ClusterId: string, request: InstallClusterAddonsRequest): Promise<InstallClusterAddonsResponse> {
|
|
12483
13680
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12484
13681
|
let headers : {[key: string ]: string} = { };
|
|
12485
|
-
return await this.
|
|
13682
|
+
return await this.installClusterAddonsWithOptions(ClusterId, request, headers, runtime);
|
|
12486
13683
|
}
|
|
12487
13684
|
|
|
12488
13685
|
async listTagResourcesWithOptions(tmpReq: ListTagResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListTagResourcesResponse> {
|
|
@@ -12536,10 +13733,10 @@ export default class Client extends OpenApi {
|
|
|
12536
13733
|
return $tea.cast<ListTagResourcesResponse>(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
|
|
12537
13734
|
}
|
|
12538
13735
|
|
|
12539
|
-
async
|
|
13736
|
+
async listTagResources(request: ListTagResourcesRequest): Promise<ListTagResourcesResponse> {
|
|
12540
13737
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12541
13738
|
let headers : {[key: string ]: string} = { };
|
|
12542
|
-
return await this.
|
|
13739
|
+
return await this.listTagResourcesWithOptions(request, headers, runtime);
|
|
12543
13740
|
}
|
|
12544
13741
|
|
|
12545
13742
|
async migrateClusterWithOptions(clusterId: string, request: MigrateClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<MigrateClusterResponse> {
|
|
@@ -12571,10 +13768,10 @@ export default class Client extends OpenApi {
|
|
|
12571
13768
|
return $tea.cast<MigrateClusterResponse>(await this.callApi(params, req, runtime), new MigrateClusterResponse({}));
|
|
12572
13769
|
}
|
|
12573
13770
|
|
|
12574
|
-
async
|
|
13771
|
+
async migrateCluster(clusterId: string, request: MigrateClusterRequest): Promise<MigrateClusterResponse> {
|
|
12575
13772
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12576
13773
|
let headers : {[key: string ]: string} = { };
|
|
12577
|
-
return await this.
|
|
13774
|
+
return await this.migrateClusterWithOptions(clusterId, request, headers, runtime);
|
|
12578
13775
|
}
|
|
12579
13776
|
|
|
12580
13777
|
async modifyClusterWithOptions(ClusterId: string, request: ModifyClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyClusterResponse> {
|
|
@@ -12608,7 +13805,7 @@ export default class Client extends OpenApi {
|
|
|
12608
13805
|
body["instance_deletion_protection"] = request.instanceDeletionProtection;
|
|
12609
13806
|
}
|
|
12610
13807
|
|
|
12611
|
-
if (!Util.isUnset(
|
|
13808
|
+
if (!Util.isUnset(request.maintenanceWindow)) {
|
|
12612
13809
|
body["maintenance_window"] = request.maintenanceWindow;
|
|
12613
13810
|
}
|
|
12614
13811
|
|
|
@@ -12634,12 +13831,23 @@ export default class Client extends OpenApi {
|
|
|
12634
13831
|
return $tea.cast<ModifyClusterResponse>(await this.callApi(params, req, runtime), new ModifyClusterResponse({}));
|
|
12635
13832
|
}
|
|
12636
13833
|
|
|
12637
|
-
async
|
|
13834
|
+
async modifyCluster(ClusterId: string, request: ModifyClusterRequest): Promise<ModifyClusterResponse> {
|
|
12638
13835
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12639
13836
|
let headers : {[key: string ]: string} = { };
|
|
12640
|
-
return await this.
|
|
13837
|
+
return await this.modifyClusterWithOptions(ClusterId, request, headers, runtime);
|
|
12641
13838
|
}
|
|
12642
13839
|
|
|
13840
|
+
/**
|
|
13841
|
+
* 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.
|
|
13842
|
+
* * 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).
|
|
13843
|
+
* * 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).
|
|
13844
|
+
* After you call this operation, the component may be redeployed and restarted. We recommend that you evaluate the impact before you call this operation.
|
|
13845
|
+
*
|
|
13846
|
+
* @param request ModifyClusterAddonRequest
|
|
13847
|
+
* @param headers map
|
|
13848
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
13849
|
+
* @return ModifyClusterAddonResponse
|
|
13850
|
+
*/
|
|
12643
13851
|
async modifyClusterAddonWithOptions(clusterId: string, componentId: string, request: ModifyClusterAddonRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyClusterAddonResponse> {
|
|
12644
13852
|
Util.validateModel(request);
|
|
12645
13853
|
let body : {[key: string ]: any} = { };
|
|
@@ -12665,10 +13873,19 @@ export default class Client extends OpenApi {
|
|
|
12665
13873
|
return $tea.cast<ModifyClusterAddonResponse>(await this.callApi(params, req, runtime), new ModifyClusterAddonResponse({}));
|
|
12666
13874
|
}
|
|
12667
13875
|
|
|
12668
|
-
|
|
13876
|
+
/**
|
|
13877
|
+
* 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.
|
|
13878
|
+
* * 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).
|
|
13879
|
+
* * 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).
|
|
13880
|
+
* After you call this operation, the component may be redeployed and restarted. We recommend that you evaluate the impact before you call this operation.
|
|
13881
|
+
*
|
|
13882
|
+
* @param request ModifyClusterAddonRequest
|
|
13883
|
+
* @return ModifyClusterAddonResponse
|
|
13884
|
+
*/
|
|
13885
|
+
async modifyClusterAddon(clusterId: string, componentId: string, request: ModifyClusterAddonRequest): Promise<ModifyClusterAddonResponse> {
|
|
12669
13886
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12670
13887
|
let headers : {[key: string ]: string} = { };
|
|
12671
|
-
return await this.
|
|
13888
|
+
return await this.modifyClusterAddonWithOptions(clusterId, componentId, request, headers, runtime);
|
|
12672
13889
|
}
|
|
12673
13890
|
|
|
12674
13891
|
async modifyClusterConfigurationWithOptions(ClusterId: string, request: ModifyClusterConfigurationRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyClusterConfigurationResponse> {
|
|
@@ -12696,36 +13913,36 @@ export default class Client extends OpenApi {
|
|
|
12696
13913
|
return $tea.cast<ModifyClusterConfigurationResponse>(await this.callApi(params, req, runtime), new ModifyClusterConfigurationResponse({}));
|
|
12697
13914
|
}
|
|
12698
13915
|
|
|
12699
|
-
async
|
|
13916
|
+
async modifyClusterConfiguration(ClusterId: string, request: ModifyClusterConfigurationRequest): Promise<ModifyClusterConfigurationResponse> {
|
|
12700
13917
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12701
13918
|
let headers : {[key: string ]: string} = { };
|
|
12702
|
-
return await this.
|
|
13919
|
+
return await this.modifyClusterConfigurationWithOptions(ClusterId, request, headers, runtime);
|
|
12703
13920
|
}
|
|
12704
13921
|
|
|
12705
13922
|
async modifyClusterNodePoolWithOptions(ClusterId: string, NodepoolId: string, request: ModifyClusterNodePoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyClusterNodePoolResponse> {
|
|
12706
13923
|
Util.validateModel(request);
|
|
12707
13924
|
let body : {[key: string ]: any} = { };
|
|
12708
|
-
if (!Util.isUnset(
|
|
13925
|
+
if (!Util.isUnset(request.autoScaling)) {
|
|
12709
13926
|
body["auto_scaling"] = request.autoScaling;
|
|
12710
13927
|
}
|
|
12711
13928
|
|
|
12712
|
-
if (!Util.isUnset(
|
|
13929
|
+
if (!Util.isUnset(request.kubernetesConfig)) {
|
|
12713
13930
|
body["kubernetes_config"] = request.kubernetesConfig;
|
|
12714
13931
|
}
|
|
12715
13932
|
|
|
12716
|
-
if (!Util.isUnset(
|
|
13933
|
+
if (!Util.isUnset(request.management)) {
|
|
12717
13934
|
body["management"] = request.management;
|
|
12718
13935
|
}
|
|
12719
13936
|
|
|
12720
|
-
if (!Util.isUnset(
|
|
13937
|
+
if (!Util.isUnset(request.nodepoolInfo)) {
|
|
12721
13938
|
body["nodepool_info"] = request.nodepoolInfo;
|
|
12722
13939
|
}
|
|
12723
13940
|
|
|
12724
|
-
if (!Util.isUnset(
|
|
13941
|
+
if (!Util.isUnset(request.scalingGroup)) {
|
|
12725
13942
|
body["scaling_group"] = request.scalingGroup;
|
|
12726
13943
|
}
|
|
12727
13944
|
|
|
12728
|
-
if (!Util.isUnset(
|
|
13945
|
+
if (!Util.isUnset(request.teeConfig)) {
|
|
12729
13946
|
body["tee_config"] = request.teeConfig;
|
|
12730
13947
|
}
|
|
12731
13948
|
|
|
@@ -12751,10 +13968,10 @@ export default class Client extends OpenApi {
|
|
|
12751
13968
|
return $tea.cast<ModifyClusterNodePoolResponse>(await this.callApi(params, req, runtime), new ModifyClusterNodePoolResponse({}));
|
|
12752
13969
|
}
|
|
12753
13970
|
|
|
12754
|
-
async
|
|
13971
|
+
async modifyClusterNodePool(ClusterId: string, NodepoolId: string, request: ModifyClusterNodePoolRequest): Promise<ModifyClusterNodePoolResponse> {
|
|
12755
13972
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12756
13973
|
let headers : {[key: string ]: string} = { };
|
|
12757
|
-
return await this.
|
|
13974
|
+
return await this.modifyClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
12758
13975
|
}
|
|
12759
13976
|
|
|
12760
13977
|
async modifyClusterTagsWithOptions(ClusterId: string, request: ModifyClusterTagsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyClusterTagsResponse> {
|
|
@@ -12777,20 +13994,20 @@ export default class Client extends OpenApi {
|
|
|
12777
13994
|
return $tea.cast<ModifyClusterTagsResponse>(await this.callApi(params, req, runtime), new ModifyClusterTagsResponse({}));
|
|
12778
13995
|
}
|
|
12779
13996
|
|
|
12780
|
-
async
|
|
13997
|
+
async modifyClusterTags(ClusterId: string, request: ModifyClusterTagsRequest): Promise<ModifyClusterTagsResponse> {
|
|
12781
13998
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12782
13999
|
let headers : {[key: string ]: string} = { };
|
|
12783
|
-
return await this.
|
|
14000
|
+
return await this.modifyClusterTagsWithOptions(ClusterId, request, headers, runtime);
|
|
12784
14001
|
}
|
|
12785
14002
|
|
|
12786
14003
|
async modifyNodePoolNodeConfigWithOptions(ClusterId: string, NodepoolId: string, request: ModifyNodePoolNodeConfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyNodePoolNodeConfigResponse> {
|
|
12787
14004
|
Util.validateModel(request);
|
|
12788
14005
|
let body : {[key: string ]: any} = { };
|
|
12789
|
-
if (!Util.isUnset(
|
|
14006
|
+
if (!Util.isUnset(request.kubeletConfig)) {
|
|
12790
14007
|
body["kubelet_config"] = request.kubeletConfig;
|
|
12791
14008
|
}
|
|
12792
14009
|
|
|
12793
|
-
if (!Util.isUnset(
|
|
14010
|
+
if (!Util.isUnset(request.rollingPolicy)) {
|
|
12794
14011
|
body["rolling_policy"] = request.rollingPolicy;
|
|
12795
14012
|
}
|
|
12796
14013
|
|
|
@@ -12812,10 +14029,10 @@ export default class Client extends OpenApi {
|
|
|
12812
14029
|
return $tea.cast<ModifyNodePoolNodeConfigResponse>(await this.callApi(params, req, runtime), new ModifyNodePoolNodeConfigResponse({}));
|
|
12813
14030
|
}
|
|
12814
14031
|
|
|
12815
|
-
async
|
|
14032
|
+
async modifyNodePoolNodeConfig(ClusterId: string, NodepoolId: string, request: ModifyNodePoolNodeConfigRequest): Promise<ModifyNodePoolNodeConfigResponse> {
|
|
12816
14033
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12817
14034
|
let headers : {[key: string ]: string} = { };
|
|
12818
|
-
return await this.
|
|
14035
|
+
return await this.modifyNodePoolNodeConfigWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
12819
14036
|
}
|
|
12820
14037
|
|
|
12821
14038
|
async modifyPolicyInstanceWithOptions(clusterId: string, policyName: string, request: ModifyPolicyInstanceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyPolicyInstanceResponse> {
|
|
@@ -12855,12 +14072,20 @@ export default class Client extends OpenApi {
|
|
|
12855
14072
|
return $tea.cast<ModifyPolicyInstanceResponse>(await this.callApi(params, req, runtime), new ModifyPolicyInstanceResponse({}));
|
|
12856
14073
|
}
|
|
12857
14074
|
|
|
12858
|
-
async
|
|
14075
|
+
async modifyPolicyInstance(clusterId: string, policyName: string, request: ModifyPolicyInstanceRequest): Promise<ModifyPolicyInstanceResponse> {
|
|
12859
14076
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12860
14077
|
let headers : {[key: string ]: string} = { };
|
|
12861
|
-
return await this.
|
|
14078
|
+
return await this.modifyPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
|
|
12862
14079
|
}
|
|
12863
14080
|
|
|
14081
|
+
/**
|
|
14082
|
+
* You can activate ACK with Alibaba Cloud accounts or RAM users that have the authority of AdministratorAccess.
|
|
14083
|
+
*
|
|
14084
|
+
* @param request OpenAckServiceRequest
|
|
14085
|
+
* @param headers map
|
|
14086
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
14087
|
+
* @return OpenAckServiceResponse
|
|
14088
|
+
*/
|
|
12864
14089
|
async openAckServiceWithOptions(request: OpenAckServiceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<OpenAckServiceResponse> {
|
|
12865
14090
|
Util.validateModel(request);
|
|
12866
14091
|
let query : {[key: string ]: any} = { };
|
|
@@ -12886,10 +14111,16 @@ export default class Client extends OpenApi {
|
|
|
12886
14111
|
return $tea.cast<OpenAckServiceResponse>(await this.callApi(params, req, runtime), new OpenAckServiceResponse({}));
|
|
12887
14112
|
}
|
|
12888
14113
|
|
|
12889
|
-
|
|
14114
|
+
/**
|
|
14115
|
+
* You can activate ACK with Alibaba Cloud accounts or RAM users that have the authority of AdministratorAccess.
|
|
14116
|
+
*
|
|
14117
|
+
* @param request OpenAckServiceRequest
|
|
14118
|
+
* @return OpenAckServiceResponse
|
|
14119
|
+
*/
|
|
14120
|
+
async openAckService(request: OpenAckServiceRequest): Promise<OpenAckServiceResponse> {
|
|
12890
14121
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12891
14122
|
let headers : {[key: string ]: string} = { };
|
|
12892
|
-
return await this.
|
|
14123
|
+
return await this.openAckServiceWithOptions(request, headers, runtime);
|
|
12893
14124
|
}
|
|
12894
14125
|
|
|
12895
14126
|
async pauseClusterUpgradeWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PauseClusterUpgradeResponse> {
|
|
@@ -12910,10 +14141,10 @@ export default class Client extends OpenApi {
|
|
|
12910
14141
|
return $tea.cast<PauseClusterUpgradeResponse>(await this.callApi(params, req, runtime), new PauseClusterUpgradeResponse({}));
|
|
12911
14142
|
}
|
|
12912
14143
|
|
|
12913
|
-
async
|
|
14144
|
+
async pauseClusterUpgrade(ClusterId: string): Promise<PauseClusterUpgradeResponse> {
|
|
12914
14145
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12915
14146
|
let headers : {[key: string ]: string} = { };
|
|
12916
|
-
return await this.
|
|
14147
|
+
return await this.pauseClusterUpgradeWithOptions(ClusterId, headers, runtime);
|
|
12917
14148
|
}
|
|
12918
14149
|
|
|
12919
14150
|
async pauseComponentUpgradeWithOptions(clusterid: string, componentid: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PauseComponentUpgradeResponse> {
|
|
@@ -12934,10 +14165,10 @@ export default class Client extends OpenApi {
|
|
|
12934
14165
|
return $tea.cast<PauseComponentUpgradeResponse>(await this.callApi(params, req, runtime), new PauseComponentUpgradeResponse({}));
|
|
12935
14166
|
}
|
|
12936
14167
|
|
|
12937
|
-
async
|
|
14168
|
+
async pauseComponentUpgrade(clusterid: string, componentid: string): Promise<PauseComponentUpgradeResponse> {
|
|
12938
14169
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12939
14170
|
let headers : {[key: string ]: string} = { };
|
|
12940
|
-
return await this.
|
|
14171
|
+
return await this.pauseComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
|
|
12941
14172
|
}
|
|
12942
14173
|
|
|
12943
14174
|
async pauseTaskWithOptions(taskId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PauseTaskResponse> {
|
|
@@ -12958,12 +14189,21 @@ export default class Client extends OpenApi {
|
|
|
12958
14189
|
return $tea.cast<PauseTaskResponse>(await this.callApi(params, req, runtime), new PauseTaskResponse({}));
|
|
12959
14190
|
}
|
|
12960
14191
|
|
|
12961
|
-
async
|
|
14192
|
+
async pauseTask(taskId: string): Promise<PauseTaskResponse> {
|
|
12962
14193
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12963
14194
|
let headers : {[key: string ]: string} = { };
|
|
12964
|
-
return await this.
|
|
14195
|
+
return await this.pauseTaskWithOptions(taskId, headers, runtime);
|
|
12965
14196
|
}
|
|
12966
14197
|
|
|
14198
|
+
/**
|
|
14199
|
+
* @deprecated
|
|
14200
|
+
*
|
|
14201
|
+
* @param request RemoveClusterNodesRequest
|
|
14202
|
+
* @param headers map
|
|
14203
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
14204
|
+
* @return RemoveClusterNodesResponse
|
|
14205
|
+
*/
|
|
14206
|
+
// Deprecated
|
|
12967
14207
|
async removeClusterNodesWithOptions(ClusterId: string, request: RemoveClusterNodesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RemoveClusterNodesResponse> {
|
|
12968
14208
|
Util.validateModel(request);
|
|
12969
14209
|
let body : {[key: string ]: any} = { };
|
|
@@ -12997,16 +14237,39 @@ export default class Client extends OpenApi {
|
|
|
12997
14237
|
return $tea.cast<RemoveClusterNodesResponse>(await this.callApi(params, req, runtime), new RemoveClusterNodesResponse({}));
|
|
12998
14238
|
}
|
|
12999
14239
|
|
|
13000
|
-
|
|
14240
|
+
/**
|
|
14241
|
+
* @deprecated
|
|
14242
|
+
*
|
|
14243
|
+
* @param request RemoveClusterNodesRequest
|
|
14244
|
+
* @return RemoveClusterNodesResponse
|
|
14245
|
+
*/
|
|
14246
|
+
// Deprecated
|
|
14247
|
+
async removeClusterNodes(ClusterId: string, request: RemoveClusterNodesRequest): Promise<RemoveClusterNodesResponse> {
|
|
13001
14248
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13002
14249
|
let headers : {[key: string ]: string} = { };
|
|
13003
|
-
return await this.
|
|
14250
|
+
return await this.removeClusterNodesWithOptions(ClusterId, request, headers, runtime);
|
|
13004
14251
|
}
|
|
13005
14252
|
|
|
14253
|
+
/**
|
|
14254
|
+
* >
|
|
14255
|
+
* * 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.
|
|
14256
|
+
* * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
|
|
14257
|
+
* * Nodes remain in the Unschedulable state when they are being removed.
|
|
14258
|
+
* * You can remove only worker nodes. You cannot remove control planes.
|
|
14259
|
+
*
|
|
14260
|
+
* @param tmpReq RemoveNodePoolNodesRequest
|
|
14261
|
+
* @param headers map
|
|
14262
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
14263
|
+
* @return RemoveNodePoolNodesResponse
|
|
14264
|
+
*/
|
|
13006
14265
|
async removeNodePoolNodesWithOptions(ClusterId: string, NodepoolId: string, tmpReq: RemoveNodePoolNodesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RemoveNodePoolNodesResponse> {
|
|
13007
14266
|
Util.validateModel(tmpReq);
|
|
13008
14267
|
let request = new RemoveNodePoolNodesShrinkRequest({ });
|
|
13009
14268
|
OpenApiUtil.convert(tmpReq, request);
|
|
14269
|
+
if (!Util.isUnset(tmpReq.instanceIds)) {
|
|
14270
|
+
request.instanceIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.instanceIds, "instance_ids", "json");
|
|
14271
|
+
}
|
|
14272
|
+
|
|
13010
14273
|
if (!Util.isUnset(tmpReq.nodes)) {
|
|
13011
14274
|
request.nodesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.nodes, "nodes", "json");
|
|
13012
14275
|
}
|
|
@@ -13016,6 +14279,10 @@ export default class Client extends OpenApi {
|
|
|
13016
14279
|
query["drain_node"] = request.drainNode;
|
|
13017
14280
|
}
|
|
13018
14281
|
|
|
14282
|
+
if (!Util.isUnset(request.instanceIdsShrink)) {
|
|
14283
|
+
query["instance_ids"] = request.instanceIdsShrink;
|
|
14284
|
+
}
|
|
14285
|
+
|
|
13019
14286
|
if (!Util.isUnset(request.nodesShrink)) {
|
|
13020
14287
|
query["nodes"] = request.nodesShrink;
|
|
13021
14288
|
}
|
|
@@ -13042,10 +14309,20 @@ export default class Client extends OpenApi {
|
|
|
13042
14309
|
return $tea.cast<RemoveNodePoolNodesResponse>(await this.callApi(params, req, runtime), new RemoveNodePoolNodesResponse({}));
|
|
13043
14310
|
}
|
|
13044
14311
|
|
|
13045
|
-
|
|
14312
|
+
/**
|
|
14313
|
+
* >
|
|
14314
|
+
* * 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.
|
|
14315
|
+
* * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
|
|
14316
|
+
* * Nodes remain in the Unschedulable state when they are being removed.
|
|
14317
|
+
* * You can remove only worker nodes. You cannot remove control planes.
|
|
14318
|
+
*
|
|
14319
|
+
* @param request RemoveNodePoolNodesRequest
|
|
14320
|
+
* @return RemoveNodePoolNodesResponse
|
|
14321
|
+
*/
|
|
14322
|
+
async removeNodePoolNodes(ClusterId: string, NodepoolId: string, request: RemoveNodePoolNodesRequest): Promise<RemoveNodePoolNodesResponse> {
|
|
13046
14323
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13047
14324
|
let headers : {[key: string ]: string} = { };
|
|
13048
|
-
return await this.
|
|
14325
|
+
return await this.removeNodePoolNodesWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
13049
14326
|
}
|
|
13050
14327
|
|
|
13051
14328
|
async removeWorkflowWithOptions(workflowName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RemoveWorkflowResponse> {
|
|
@@ -13066,10 +14343,10 @@ export default class Client extends OpenApi {
|
|
|
13066
14343
|
return $tea.cast<RemoveWorkflowResponse>(await this.callApi(params, req, runtime), new RemoveWorkflowResponse({}));
|
|
13067
14344
|
}
|
|
13068
14345
|
|
|
13069
|
-
async
|
|
14346
|
+
async removeWorkflow(workflowName: string): Promise<RemoveWorkflowResponse> {
|
|
13070
14347
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13071
14348
|
let headers : {[key: string ]: string} = { };
|
|
13072
|
-
return await this.
|
|
14349
|
+
return await this.removeWorkflowWithOptions(workflowName, headers, runtime);
|
|
13073
14350
|
}
|
|
13074
14351
|
|
|
13075
14352
|
async repairClusterNodePoolWithOptions(clusterId: string, nodepoolId: string, request: RepairClusterNodePoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RepairClusterNodePoolResponse> {
|
|
@@ -13097,10 +14374,10 @@ export default class Client extends OpenApi {
|
|
|
13097
14374
|
return $tea.cast<RepairClusterNodePoolResponse>(await this.callApi(params, req, runtime), new RepairClusterNodePoolResponse({}));
|
|
13098
14375
|
}
|
|
13099
14376
|
|
|
13100
|
-
async
|
|
14377
|
+
async repairClusterNodePool(clusterId: string, nodepoolId: string, request: RepairClusterNodePoolRequest): Promise<RepairClusterNodePoolResponse> {
|
|
13101
14378
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13102
14379
|
let headers : {[key: string ]: string} = { };
|
|
13103
|
-
return await this.
|
|
14380
|
+
return await this.repairClusterNodePoolWithOptions(clusterId, nodepoolId, request, headers, runtime);
|
|
13104
14381
|
}
|
|
13105
14382
|
|
|
13106
14383
|
async resumeComponentUpgradeWithOptions(clusterid: string, componentid: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ResumeComponentUpgradeResponse> {
|
|
@@ -13121,10 +14398,10 @@ export default class Client extends OpenApi {
|
|
|
13121
14398
|
return $tea.cast<ResumeComponentUpgradeResponse>(await this.callApi(params, req, runtime), new ResumeComponentUpgradeResponse({}));
|
|
13122
14399
|
}
|
|
13123
14400
|
|
|
13124
|
-
async
|
|
14401
|
+
async resumeComponentUpgrade(clusterid: string, componentid: string): Promise<ResumeComponentUpgradeResponse> {
|
|
13125
14402
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13126
14403
|
let headers : {[key: string ]: string} = { };
|
|
13127
|
-
return await this.
|
|
14404
|
+
return await this.resumeComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
|
|
13128
14405
|
}
|
|
13129
14406
|
|
|
13130
14407
|
async resumeTaskWithOptions(taskId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ResumeTaskResponse> {
|
|
@@ -13145,10 +14422,10 @@ export default class Client extends OpenApi {
|
|
|
13145
14422
|
return $tea.cast<ResumeTaskResponse>(await this.callApi(params, req, runtime), new ResumeTaskResponse({}));
|
|
13146
14423
|
}
|
|
13147
14424
|
|
|
13148
|
-
async
|
|
14425
|
+
async resumeTask(taskId: string): Promise<ResumeTaskResponse> {
|
|
13149
14426
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13150
14427
|
let headers : {[key: string ]: string} = { };
|
|
13151
|
-
return await this.
|
|
14428
|
+
return await this.resumeTaskWithOptions(taskId, headers, runtime);
|
|
13152
14429
|
}
|
|
13153
14430
|
|
|
13154
14431
|
async resumeUpgradeClusterWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ResumeUpgradeClusterResponse> {
|
|
@@ -13169,12 +14446,21 @@ export default class Client extends OpenApi {
|
|
|
13169
14446
|
return $tea.cast<ResumeUpgradeClusterResponse>(await this.callApi(params, req, runtime), new ResumeUpgradeClusterResponse({}));
|
|
13170
14447
|
}
|
|
13171
14448
|
|
|
13172
|
-
async
|
|
14449
|
+
async resumeUpgradeCluster(ClusterId: string): Promise<ResumeUpgradeClusterResponse> {
|
|
13173
14450
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13174
14451
|
let headers : {[key: string ]: string} = { };
|
|
13175
|
-
return await this.
|
|
14452
|
+
return await this.resumeUpgradeClusterWithOptions(ClusterId, headers, runtime);
|
|
13176
14453
|
}
|
|
13177
14454
|
|
|
14455
|
+
/**
|
|
14456
|
+
* @deprecated
|
|
14457
|
+
*
|
|
14458
|
+
* @param request ScaleClusterRequest
|
|
14459
|
+
* @param headers map
|
|
14460
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
14461
|
+
* @return ScaleClusterResponse
|
|
14462
|
+
*/
|
|
14463
|
+
// Deprecated
|
|
13178
14464
|
async scaleClusterWithOptions(ClusterId: string, request: ScaleClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ScaleClusterResponse> {
|
|
13179
14465
|
Util.validateModel(request);
|
|
13180
14466
|
let body : {[key: string ]: any} = { };
|
|
@@ -13272,10 +14558,17 @@ export default class Client extends OpenApi {
|
|
|
13272
14558
|
return $tea.cast<ScaleClusterResponse>(await this.callApi(params, req, runtime), new ScaleClusterResponse({}));
|
|
13273
14559
|
}
|
|
13274
14560
|
|
|
13275
|
-
|
|
14561
|
+
/**
|
|
14562
|
+
* @deprecated
|
|
14563
|
+
*
|
|
14564
|
+
* @param request ScaleClusterRequest
|
|
14565
|
+
* @return ScaleClusterResponse
|
|
14566
|
+
*/
|
|
14567
|
+
// Deprecated
|
|
14568
|
+
async scaleCluster(ClusterId: string, request: ScaleClusterRequest): Promise<ScaleClusterResponse> {
|
|
13276
14569
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13277
14570
|
let headers : {[key: string ]: string} = { };
|
|
13278
|
-
return await this.
|
|
14571
|
+
return await this.scaleClusterWithOptions(ClusterId, request, headers, runtime);
|
|
13279
14572
|
}
|
|
13280
14573
|
|
|
13281
14574
|
async scaleClusterNodePoolWithOptions(ClusterId: string, NodepoolId: string, request: ScaleClusterNodePoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ScaleClusterNodePoolResponse> {
|
|
@@ -13303,12 +14596,20 @@ export default class Client extends OpenApi {
|
|
|
13303
14596
|
return $tea.cast<ScaleClusterNodePoolResponse>(await this.callApi(params, req, runtime), new ScaleClusterNodePoolResponse({}));
|
|
13304
14597
|
}
|
|
13305
14598
|
|
|
13306
|
-
async
|
|
14599
|
+
async scaleClusterNodePool(ClusterId: string, NodepoolId: string, request: ScaleClusterNodePoolRequest): Promise<ScaleClusterNodePoolResponse> {
|
|
13307
14600
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13308
14601
|
let headers : {[key: string ]: string} = { };
|
|
13309
|
-
return await this.
|
|
14602
|
+
return await this.scaleClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
13310
14603
|
}
|
|
13311
14604
|
|
|
14605
|
+
/**
|
|
14606
|
+
* > 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~~).
|
|
14607
|
+
*
|
|
14608
|
+
* @param request ScaleOutClusterRequest
|
|
14609
|
+
* @param headers map
|
|
14610
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
14611
|
+
* @return ScaleOutClusterResponse
|
|
14612
|
+
*/
|
|
13312
14613
|
async scaleOutClusterWithOptions(ClusterId: string, request: ScaleOutClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ScaleOutClusterResponse> {
|
|
13313
14614
|
Util.validateModel(request);
|
|
13314
14615
|
let body : {[key: string ]: any} = { };
|
|
@@ -13340,7 +14641,7 @@ export default class Client extends OpenApi {
|
|
|
13340
14641
|
body["rds_instances"] = request.rdsInstances;
|
|
13341
14642
|
}
|
|
13342
14643
|
|
|
13343
|
-
if (!Util.isUnset(
|
|
14644
|
+
if (!Util.isUnset(request.runtime)) {
|
|
13344
14645
|
body["runtime"] = request.runtime;
|
|
13345
14646
|
}
|
|
13346
14647
|
|
|
@@ -13414,10 +14715,64 @@ export default class Client extends OpenApi {
|
|
|
13414
14715
|
return $tea.cast<ScaleOutClusterResponse>(await this.callApi(params, req, runtime), new ScaleOutClusterResponse({}));
|
|
13415
14716
|
}
|
|
13416
14717
|
|
|
13417
|
-
|
|
14718
|
+
/**
|
|
14719
|
+
* > 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~~).
|
|
14720
|
+
*
|
|
14721
|
+
* @param request ScaleOutClusterRequest
|
|
14722
|
+
* @return ScaleOutClusterResponse
|
|
14723
|
+
*/
|
|
14724
|
+
async scaleOutCluster(ClusterId: string, request: ScaleOutClusterRequest): Promise<ScaleOutClusterResponse> {
|
|
13418
14725
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13419
14726
|
let headers : {[key: string ]: string} = { };
|
|
13420
|
-
return await this.
|
|
14727
|
+
return await this.scaleOutClusterWithOptions(ClusterId, request, headers, runtime);
|
|
14728
|
+
}
|
|
14729
|
+
|
|
14730
|
+
async scanClusterVulsWithOptions(clusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ScanClusterVulsResponse> {
|
|
14731
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
14732
|
+
headers: headers,
|
|
14733
|
+
});
|
|
14734
|
+
let params = new $OpenApi.Params({
|
|
14735
|
+
action: "ScanClusterVuls",
|
|
14736
|
+
version: "2015-12-15",
|
|
14737
|
+
protocol: "HTTPS",
|
|
14738
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterId)}/vuls/scan`,
|
|
14739
|
+
method: "POST",
|
|
14740
|
+
authType: "AK",
|
|
14741
|
+
style: "ROA",
|
|
14742
|
+
reqBodyType: "json",
|
|
14743
|
+
bodyType: "json",
|
|
14744
|
+
});
|
|
14745
|
+
return $tea.cast<ScanClusterVulsResponse>(await this.callApi(params, req, runtime), new ScanClusterVulsResponse({}));
|
|
14746
|
+
}
|
|
14747
|
+
|
|
14748
|
+
async scanClusterVuls(clusterId: string): Promise<ScanClusterVulsResponse> {
|
|
14749
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
14750
|
+
let headers : {[key: string ]: string} = { };
|
|
14751
|
+
return await this.scanClusterVulsWithOptions(clusterId, headers, runtime);
|
|
14752
|
+
}
|
|
14753
|
+
|
|
14754
|
+
async startAlertWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartAlertResponse> {
|
|
14755
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
14756
|
+
headers: headers,
|
|
14757
|
+
});
|
|
14758
|
+
let params = new $OpenApi.Params({
|
|
14759
|
+
action: "StartAlert",
|
|
14760
|
+
version: "2015-12-15",
|
|
14761
|
+
protocol: "HTTPS",
|
|
14762
|
+
pathname: `/alert/${OpenApiUtil.getEncodeParam(ClusterId)}/alert_rule/start`,
|
|
14763
|
+
method: "POST",
|
|
14764
|
+
authType: "AK",
|
|
14765
|
+
style: "ROA",
|
|
14766
|
+
reqBodyType: "json",
|
|
14767
|
+
bodyType: "json",
|
|
14768
|
+
});
|
|
14769
|
+
return $tea.cast<StartAlertResponse>(await this.callApi(params, req, runtime), new StartAlertResponse({}));
|
|
14770
|
+
}
|
|
14771
|
+
|
|
14772
|
+
async startAlert(ClusterId: string): Promise<StartAlertResponse> {
|
|
14773
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
14774
|
+
let headers : {[key: string ]: string} = { };
|
|
14775
|
+
return await this.startAlertWithOptions(ClusterId, headers, runtime);
|
|
13421
14776
|
}
|
|
13422
14777
|
|
|
13423
14778
|
async startWorkflowWithOptions(request: StartWorkflowRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartWorkflowResponse> {
|
|
@@ -13517,10 +14872,58 @@ export default class Client extends OpenApi {
|
|
|
13517
14872
|
return $tea.cast<StartWorkflowResponse>(await this.callApi(params, req, runtime), new StartWorkflowResponse({}));
|
|
13518
14873
|
}
|
|
13519
14874
|
|
|
13520
|
-
async
|
|
14875
|
+
async startWorkflow(request: StartWorkflowRequest): Promise<StartWorkflowResponse> {
|
|
13521
14876
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13522
14877
|
let headers : {[key: string ]: string} = { };
|
|
13523
|
-
return await this.
|
|
14878
|
+
return await this.startWorkflowWithOptions(request, headers, runtime);
|
|
14879
|
+
}
|
|
14880
|
+
|
|
14881
|
+
async stopAlertWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StopAlertResponse> {
|
|
14882
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
14883
|
+
headers: headers,
|
|
14884
|
+
});
|
|
14885
|
+
let params = new $OpenApi.Params({
|
|
14886
|
+
action: "StopAlert",
|
|
14887
|
+
version: "2015-12-15",
|
|
14888
|
+
protocol: "HTTPS",
|
|
14889
|
+
pathname: `/alert/${OpenApiUtil.getEncodeParam(ClusterId)}/alert_rule/stop`,
|
|
14890
|
+
method: "POST",
|
|
14891
|
+
authType: "AK",
|
|
14892
|
+
style: "ROA",
|
|
14893
|
+
reqBodyType: "json",
|
|
14894
|
+
bodyType: "json",
|
|
14895
|
+
});
|
|
14896
|
+
return $tea.cast<StopAlertResponse>(await this.callApi(params, req, runtime), new StopAlertResponse({}));
|
|
14897
|
+
}
|
|
14898
|
+
|
|
14899
|
+
async stopAlert(ClusterId: string): Promise<StopAlertResponse> {
|
|
14900
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
14901
|
+
let headers : {[key: string ]: string} = { };
|
|
14902
|
+
return await this.stopAlertWithOptions(ClusterId, headers, runtime);
|
|
14903
|
+
}
|
|
14904
|
+
|
|
14905
|
+
async syncClusterNodePoolWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<SyncClusterNodePoolResponse> {
|
|
14906
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
14907
|
+
headers: headers,
|
|
14908
|
+
});
|
|
14909
|
+
let params = new $OpenApi.Params({
|
|
14910
|
+
action: "SyncClusterNodePool",
|
|
14911
|
+
version: "2015-12-15",
|
|
14912
|
+
protocol: "HTTPS",
|
|
14913
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(ClusterId)}/sync_nodepools`,
|
|
14914
|
+
method: "POST",
|
|
14915
|
+
authType: "AK",
|
|
14916
|
+
style: "ROA",
|
|
14917
|
+
reqBodyType: "json",
|
|
14918
|
+
bodyType: "json",
|
|
14919
|
+
});
|
|
14920
|
+
return $tea.cast<SyncClusterNodePoolResponse>(await this.callApi(params, req, runtime), new SyncClusterNodePoolResponse({}));
|
|
14921
|
+
}
|
|
14922
|
+
|
|
14923
|
+
async syncClusterNodePool(ClusterId: string): Promise<SyncClusterNodePoolResponse> {
|
|
14924
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
14925
|
+
let headers : {[key: string ]: string} = { };
|
|
14926
|
+
return await this.syncClusterNodePoolWithOptions(ClusterId, headers, runtime);
|
|
13524
14927
|
}
|
|
13525
14928
|
|
|
13526
14929
|
async tagResourcesWithOptions(request: TagResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<TagResourcesResponse> {
|
|
@@ -13560,10 +14963,10 @@ export default class Client extends OpenApi {
|
|
|
13560
14963
|
return $tea.cast<TagResourcesResponse>(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
|
|
13561
14964
|
}
|
|
13562
14965
|
|
|
13563
|
-
async
|
|
14966
|
+
async tagResources(request: TagResourcesRequest): Promise<TagResourcesResponse> {
|
|
13564
14967
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13565
14968
|
let headers : {[key: string ]: string} = { };
|
|
13566
|
-
return await this.
|
|
14969
|
+
return await this.tagResourcesWithOptions(request, headers, runtime);
|
|
13567
14970
|
}
|
|
13568
14971
|
|
|
13569
14972
|
async unInstallClusterAddonsWithOptions(ClusterId: string, request: UnInstallClusterAddonsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UnInstallClusterAddonsResponse> {
|
|
@@ -13586,14 +14989,24 @@ export default class Client extends OpenApi {
|
|
|
13586
14989
|
return $tea.cast<UnInstallClusterAddonsResponse>(await this.callApi(params, req, runtime), new UnInstallClusterAddonsResponse({}));
|
|
13587
14990
|
}
|
|
13588
14991
|
|
|
13589
|
-
async
|
|
14992
|
+
async unInstallClusterAddons(ClusterId: string, request: UnInstallClusterAddonsRequest): Promise<UnInstallClusterAddonsResponse> {
|
|
13590
14993
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13591
14994
|
let headers : {[key: string ]: string} = { };
|
|
13592
|
-
return await this.
|
|
14995
|
+
return await this.unInstallClusterAddonsWithOptions(ClusterId, request, headers, runtime);
|
|
13593
14996
|
}
|
|
13594
14997
|
|
|
13595
|
-
async untagResourcesWithOptions(
|
|
13596
|
-
Util.validateModel(
|
|
14998
|
+
async untagResourcesWithOptions(tmpReq: UntagResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UntagResourcesResponse> {
|
|
14999
|
+
Util.validateModel(tmpReq);
|
|
15000
|
+
let request = new UntagResourcesShrinkRequest({ });
|
|
15001
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
15002
|
+
if (!Util.isUnset(tmpReq.resourceIds)) {
|
|
15003
|
+
request.resourceIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.resourceIds, "resource_ids", "json");
|
|
15004
|
+
}
|
|
15005
|
+
|
|
15006
|
+
if (!Util.isUnset(tmpReq.tagKeys)) {
|
|
15007
|
+
request.tagKeysShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.tagKeys, "tag_keys", "json");
|
|
15008
|
+
}
|
|
15009
|
+
|
|
13597
15010
|
let query : {[key: string ]: any} = { };
|
|
13598
15011
|
if (!Util.isUnset(request.all)) {
|
|
13599
15012
|
query["all"] = request.all;
|
|
@@ -13603,16 +15016,16 @@ export default class Client extends OpenApi {
|
|
|
13603
15016
|
query["region_id"] = request.regionId;
|
|
13604
15017
|
}
|
|
13605
15018
|
|
|
13606
|
-
if (!Util.isUnset(request.
|
|
13607
|
-
query["resource_ids"] = request.
|
|
15019
|
+
if (!Util.isUnset(request.resourceIdsShrink)) {
|
|
15020
|
+
query["resource_ids"] = request.resourceIdsShrink;
|
|
13608
15021
|
}
|
|
13609
15022
|
|
|
13610
15023
|
if (!Util.isUnset(request.resourceType)) {
|
|
13611
15024
|
query["resource_type"] = request.resourceType;
|
|
13612
15025
|
}
|
|
13613
15026
|
|
|
13614
|
-
if (!Util.isUnset(request.
|
|
13615
|
-
query["tag_keys"] = request.
|
|
15027
|
+
if (!Util.isUnset(request.tagKeysShrink)) {
|
|
15028
|
+
query["tag_keys"] = request.tagKeysShrink;
|
|
13616
15029
|
}
|
|
13617
15030
|
|
|
13618
15031
|
let req = new $OpenApi.OpenApiRequest({
|
|
@@ -13633,10 +15046,10 @@ export default class Client extends OpenApi {
|
|
|
13633
15046
|
return $tea.cast<UntagResourcesResponse>(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
|
|
13634
15047
|
}
|
|
13635
15048
|
|
|
13636
|
-
async
|
|
15049
|
+
async untagResources(request: UntagResourcesRequest): Promise<UntagResourcesResponse> {
|
|
13637
15050
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13638
15051
|
let headers : {[key: string ]: string} = { };
|
|
13639
|
-
return await this.
|
|
15052
|
+
return await this.untagResourcesWithOptions(request, headers, runtime);
|
|
13640
15053
|
}
|
|
13641
15054
|
|
|
13642
15055
|
async updateContactGroupForAlertWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateContactGroupForAlertResponse> {
|
|
@@ -13657,12 +15070,65 @@ export default class Client extends OpenApi {
|
|
|
13657
15070
|
return $tea.cast<UpdateContactGroupForAlertResponse>(await this.callApi(params, req, runtime), new UpdateContactGroupForAlertResponse({}));
|
|
13658
15071
|
}
|
|
13659
15072
|
|
|
13660
|
-
async
|
|
15073
|
+
async updateContactGroupForAlert(ClusterId: string): Promise<UpdateContactGroupForAlertResponse> {
|
|
13661
15074
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13662
15075
|
let headers : {[key: string ]: string} = { };
|
|
13663
|
-
return await this.
|
|
15076
|
+
return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
|
|
13664
15077
|
}
|
|
13665
15078
|
|
|
15079
|
+
async updateControlPlaneLogWithOptions(ClusterId: string, request: UpdateControlPlaneLogRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateControlPlaneLogResponse> {
|
|
15080
|
+
Util.validateModel(request);
|
|
15081
|
+
let body : {[key: string ]: any} = { };
|
|
15082
|
+
if (!Util.isUnset(request.aliuid)) {
|
|
15083
|
+
body["aliuid"] = request.aliuid;
|
|
15084
|
+
}
|
|
15085
|
+
|
|
15086
|
+
if (!Util.isUnset(request.components)) {
|
|
15087
|
+
body["components"] = request.components;
|
|
15088
|
+
}
|
|
15089
|
+
|
|
15090
|
+
if (!Util.isUnset(request.logProject)) {
|
|
15091
|
+
body["log_project"] = request.logProject;
|
|
15092
|
+
}
|
|
15093
|
+
|
|
15094
|
+
if (!Util.isUnset(request.logTtl)) {
|
|
15095
|
+
body["log_ttl"] = request.logTtl;
|
|
15096
|
+
}
|
|
15097
|
+
|
|
15098
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
15099
|
+
headers: headers,
|
|
15100
|
+
body: OpenApiUtil.parseToMap(body),
|
|
15101
|
+
});
|
|
15102
|
+
let params = new $OpenApi.Params({
|
|
15103
|
+
action: "UpdateControlPlaneLog",
|
|
15104
|
+
version: "2015-12-15",
|
|
15105
|
+
protocol: "HTTPS",
|
|
15106
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(ClusterId)}/controlplanelog`,
|
|
15107
|
+
method: "PUT",
|
|
15108
|
+
authType: "AK",
|
|
15109
|
+
style: "ROA",
|
|
15110
|
+
reqBodyType: "json",
|
|
15111
|
+
bodyType: "none",
|
|
15112
|
+
});
|
|
15113
|
+
return $tea.cast<UpdateControlPlaneLogResponse>(await this.callApi(params, req, runtime), new UpdateControlPlaneLogResponse({}));
|
|
15114
|
+
}
|
|
15115
|
+
|
|
15116
|
+
async updateControlPlaneLog(ClusterId: string, request: UpdateControlPlaneLogRequest): Promise<UpdateControlPlaneLogResponse> {
|
|
15117
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
15118
|
+
let headers : {[key: string ]: string} = { };
|
|
15119
|
+
return await this.updateControlPlaneLogWithOptions(ClusterId, request, headers, runtime);
|
|
15120
|
+
}
|
|
15121
|
+
|
|
15122
|
+
/**
|
|
15123
|
+
* >
|
|
15124
|
+
* * You can call this operation only with an Alibaba Cloud account.
|
|
15125
|
+
* * 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.
|
|
15126
|
+
*
|
|
15127
|
+
* @param request UpdateK8sClusterUserConfigExpireRequest
|
|
15128
|
+
* @param headers map
|
|
15129
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
15130
|
+
* @return UpdateK8sClusterUserConfigExpireResponse
|
|
15131
|
+
*/
|
|
13666
15132
|
async updateK8sClusterUserConfigExpireWithOptions(ClusterId: string, request: UpdateK8sClusterUserConfigExpireRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateK8sClusterUserConfigExpireResponse> {
|
|
13667
15133
|
Util.validateModel(request);
|
|
13668
15134
|
let body : {[key: string ]: any} = { };
|
|
@@ -13692,10 +15158,18 @@ export default class Client extends OpenApi {
|
|
|
13692
15158
|
return $tea.cast<UpdateK8sClusterUserConfigExpireResponse>(await this.callApi(params, req, runtime), new UpdateK8sClusterUserConfigExpireResponse({}));
|
|
13693
15159
|
}
|
|
13694
15160
|
|
|
13695
|
-
|
|
15161
|
+
/**
|
|
15162
|
+
* >
|
|
15163
|
+
* * You can call this operation only with an Alibaba Cloud account.
|
|
15164
|
+
* * 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.
|
|
15165
|
+
*
|
|
15166
|
+
* @param request UpdateK8sClusterUserConfigExpireRequest
|
|
15167
|
+
* @return UpdateK8sClusterUserConfigExpireResponse
|
|
15168
|
+
*/
|
|
15169
|
+
async updateK8sClusterUserConfigExpire(ClusterId: string, request: UpdateK8sClusterUserConfigExpireRequest): Promise<UpdateK8sClusterUserConfigExpireResponse> {
|
|
13696
15170
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13697
15171
|
let headers : {[key: string ]: string} = { };
|
|
13698
|
-
return await this.
|
|
15172
|
+
return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime);
|
|
13699
15173
|
}
|
|
13700
15174
|
|
|
13701
15175
|
async updateTemplateWithOptions(TemplateId: string, request: UpdateTemplateRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateTemplateResponse> {
|
|
@@ -13739,10 +15213,10 @@ export default class Client extends OpenApi {
|
|
|
13739
15213
|
return $tea.cast<UpdateTemplateResponse>(await this.callApi(params, req, runtime), new UpdateTemplateResponse({}));
|
|
13740
15214
|
}
|
|
13741
15215
|
|
|
13742
|
-
async
|
|
15216
|
+
async updateTemplate(TemplateId: string, request: UpdateTemplateRequest): Promise<UpdateTemplateResponse> {
|
|
13743
15217
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13744
15218
|
let headers : {[key: string ]: string} = { };
|
|
13745
|
-
return await this.
|
|
15219
|
+
return await this.updateTemplateWithOptions(TemplateId, request, headers, runtime);
|
|
13746
15220
|
}
|
|
13747
15221
|
|
|
13748
15222
|
async upgradeClusterWithOptions(ClusterId: string, request: UpgradeClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpgradeClusterResponse> {
|
|
@@ -13752,6 +15226,10 @@ export default class Client extends OpenApi {
|
|
|
13752
15226
|
body["component_name"] = request.componentName;
|
|
13753
15227
|
}
|
|
13754
15228
|
|
|
15229
|
+
if (!Util.isUnset(request.masterOnly)) {
|
|
15230
|
+
body["master_only"] = request.masterOnly;
|
|
15231
|
+
}
|
|
15232
|
+
|
|
13755
15233
|
if (!Util.isUnset(request.nextVersion)) {
|
|
13756
15234
|
body["next_version"] = request.nextVersion;
|
|
13757
15235
|
}
|
|
@@ -13778,10 +15256,10 @@ export default class Client extends OpenApi {
|
|
|
13778
15256
|
return $tea.cast<UpgradeClusterResponse>(await this.callApi(params, req, runtime), new UpgradeClusterResponse({}));
|
|
13779
15257
|
}
|
|
13780
15258
|
|
|
13781
|
-
async
|
|
15259
|
+
async upgradeCluster(ClusterId: string, request: UpgradeClusterRequest): Promise<UpgradeClusterResponse> {
|
|
13782
15260
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13783
15261
|
let headers : {[key: string ]: string} = { };
|
|
13784
|
-
return await this.
|
|
15262
|
+
return await this.upgradeClusterWithOptions(ClusterId, request, headers, runtime);
|
|
13785
15263
|
}
|
|
13786
15264
|
|
|
13787
15265
|
async upgradeClusterAddonsWithOptions(ClusterId: string, request: UpgradeClusterAddonsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpgradeClusterAddonsResponse> {
|
|
@@ -13804,12 +15282,20 @@ export default class Client extends OpenApi {
|
|
|
13804
15282
|
return $tea.cast<UpgradeClusterAddonsResponse>(await this.callApi(params, req, runtime), new UpgradeClusterAddonsResponse({}));
|
|
13805
15283
|
}
|
|
13806
15284
|
|
|
13807
|
-
async
|
|
15285
|
+
async upgradeClusterAddons(ClusterId: string, request: UpgradeClusterAddonsRequest): Promise<UpgradeClusterAddonsResponse> {
|
|
13808
15286
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13809
15287
|
let headers : {[key: string ]: string} = { };
|
|
13810
|
-
return await this.
|
|
15288
|
+
return await this.upgradeClusterAddonsWithOptions(ClusterId, request, headers, runtime);
|
|
13811
15289
|
}
|
|
13812
15290
|
|
|
15291
|
+
/**
|
|
15292
|
+
* You can call the UpgradeClusterNodepool operation to update the Kubernetes version, OS version, or container runtime version of the nodes in a node pool.
|
|
15293
|
+
*
|
|
15294
|
+
* @param request UpgradeClusterNodepoolRequest
|
|
15295
|
+
* @param headers map
|
|
15296
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
15297
|
+
* @return UpgradeClusterNodepoolResponse
|
|
15298
|
+
*/
|
|
13813
15299
|
async upgradeClusterNodepoolWithOptions(ClusterId: string, NodepoolId: string, request: UpgradeClusterNodepoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpgradeClusterNodepoolResponse> {
|
|
13814
15300
|
Util.validateModel(request);
|
|
13815
15301
|
let body : {[key: string ]: any} = { };
|
|
@@ -13821,6 +15307,10 @@ export default class Client extends OpenApi {
|
|
|
13821
15307
|
body["kubernetes_version"] = request.kubernetesVersion;
|
|
13822
15308
|
}
|
|
13823
15309
|
|
|
15310
|
+
if (!Util.isUnset(request.runtimeType)) {
|
|
15311
|
+
body["runtime_type"] = request.runtimeType;
|
|
15312
|
+
}
|
|
15313
|
+
|
|
13824
15314
|
if (!Util.isUnset(request.runtimeVersion)) {
|
|
13825
15315
|
body["runtime_version"] = request.runtimeVersion;
|
|
13826
15316
|
}
|
|
@@ -13843,4 +15333,16 @@ export default class Client extends OpenApi {
|
|
|
13843
15333
|
return $tea.cast<UpgradeClusterNodepoolResponse>(await this.callApi(params, req, runtime), new UpgradeClusterNodepoolResponse({}));
|
|
13844
15334
|
}
|
|
13845
15335
|
|
|
15336
|
+
/**
|
|
15337
|
+
* You can call the UpgradeClusterNodepool operation to update the Kubernetes version, OS version, or container runtime version of the nodes in a node pool.
|
|
15338
|
+
*
|
|
15339
|
+
* @param request UpgradeClusterNodepoolRequest
|
|
15340
|
+
* @return UpgradeClusterNodepoolResponse
|
|
15341
|
+
*/
|
|
15342
|
+
async upgradeClusterNodepool(ClusterId: string, NodepoolId: string, request: UpgradeClusterNodepoolRequest): Promise<UpgradeClusterNodepoolResponse> {
|
|
15343
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
15344
|
+
let headers : {[key: string ]: string} = { };
|
|
15345
|
+
return await this.upgradeClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
15346
|
+
}
|
|
15347
|
+
|
|
13846
15348
|
}
|