@alicloud/cs20151215 3.0.19 → 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 +990 -148
- package/dist/client.js +1639 -253
- package/dist/client.js.map +1 -1
- package/package.json +4 -4
- package/src/client.ts +1949 -308
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;
|
|
@@ -3809,14 +4233,18 @@ export class DescribeUserQuotaResponseBody extends $tea.Model {
|
|
|
3809
4233
|
askClusterQuota?: number;
|
|
3810
4234
|
clusterNodepoolQuota?: number;
|
|
3811
4235
|
clusterQuota?: number;
|
|
4236
|
+
edgeImprovedNodepoolQuota?: DescribeUserQuotaResponseBodyEdgeImprovedNodepoolQuota;
|
|
3812
4237
|
nodeQuota?: number;
|
|
4238
|
+
quotas?: { [key: string]: QuotasValue };
|
|
3813
4239
|
static names(): { [key: string]: string } {
|
|
3814
4240
|
return {
|
|
3815
4241
|
amkClusterQuota: 'amk_cluster_quota',
|
|
3816
4242
|
askClusterQuota: 'ask_cluster_quota',
|
|
3817
4243
|
clusterNodepoolQuota: 'cluster_nodepool_quota',
|
|
3818
4244
|
clusterQuota: 'cluster_quota',
|
|
4245
|
+
edgeImprovedNodepoolQuota: 'edge_improved_nodepool_quota',
|
|
3819
4246
|
nodeQuota: 'node_quota',
|
|
4247
|
+
quotas: 'quotas',
|
|
3820
4248
|
};
|
|
3821
4249
|
}
|
|
3822
4250
|
|
|
@@ -3826,7 +4254,9 @@ export class DescribeUserQuotaResponseBody extends $tea.Model {
|
|
|
3826
4254
|
askClusterQuota: 'number',
|
|
3827
4255
|
clusterNodepoolQuota: 'number',
|
|
3828
4256
|
clusterQuota: 'number',
|
|
4257
|
+
edgeImprovedNodepoolQuota: DescribeUserQuotaResponseBodyEdgeImprovedNodepoolQuota,
|
|
3829
4258
|
nodeQuota: 'number',
|
|
4259
|
+
quotas: { 'type': 'map', 'keyType': 'string', 'valueType': QuotasValue },
|
|
3830
4260
|
};
|
|
3831
4261
|
}
|
|
3832
4262
|
|
|
@@ -3979,12 +4409,12 @@ export class EdgeClusterAddEdgeMachineResponse extends $tea.Model {
|
|
|
3979
4409
|
export class FixNodePoolVulsRequest extends $tea.Model {
|
|
3980
4410
|
nodes?: string[];
|
|
3981
4411
|
rolloutPolicy?: FixNodePoolVulsRequestRolloutPolicy;
|
|
3982
|
-
|
|
4412
|
+
vuls?: string[];
|
|
3983
4413
|
static names(): { [key: string]: string } {
|
|
3984
4414
|
return {
|
|
3985
4415
|
nodes: 'nodes',
|
|
3986
4416
|
rolloutPolicy: 'rollout_policy',
|
|
3987
|
-
|
|
4417
|
+
vuls: 'vuls',
|
|
3988
4418
|
};
|
|
3989
4419
|
}
|
|
3990
4420
|
|
|
@@ -3992,7 +4422,7 @@ export class FixNodePoolVulsRequest extends $tea.Model {
|
|
|
3992
4422
|
return {
|
|
3993
4423
|
nodes: { 'type': 'array', 'itemType': 'string' },
|
|
3994
4424
|
rolloutPolicy: FixNodePoolVulsRequestRolloutPolicy,
|
|
3995
|
-
|
|
4425
|
+
vuls: { 'type': 'array', 'itemType': 'string' },
|
|
3996
4426
|
};
|
|
3997
4427
|
}
|
|
3998
4428
|
|
|
@@ -5045,11 +5475,13 @@ export class RemoveClusterNodesResponse extends $tea.Model {
|
|
|
5045
5475
|
|
|
5046
5476
|
export class RemoveNodePoolNodesRequest extends $tea.Model {
|
|
5047
5477
|
drainNode?: boolean;
|
|
5478
|
+
instanceIds?: string[];
|
|
5048
5479
|
nodes?: string[];
|
|
5049
5480
|
releaseNode?: boolean;
|
|
5050
5481
|
static names(): { [key: string]: string } {
|
|
5051
5482
|
return {
|
|
5052
5483
|
drainNode: 'drain_node',
|
|
5484
|
+
instanceIds: 'instance_ids',
|
|
5053
5485
|
nodes: 'nodes',
|
|
5054
5486
|
releaseNode: 'release_node',
|
|
5055
5487
|
};
|
|
@@ -5058,6 +5490,7 @@ export class RemoveNodePoolNodesRequest extends $tea.Model {
|
|
|
5058
5490
|
static types(): { [key: string]: any } {
|
|
5059
5491
|
return {
|
|
5060
5492
|
drainNode: 'boolean',
|
|
5493
|
+
instanceIds: { 'type': 'array', 'itemType': 'string' },
|
|
5061
5494
|
nodes: { 'type': 'array', 'itemType': 'string' },
|
|
5062
5495
|
releaseNode: 'boolean',
|
|
5063
5496
|
};
|
|
@@ -5070,11 +5503,13 @@ export class RemoveNodePoolNodesRequest extends $tea.Model {
|
|
|
5070
5503
|
|
|
5071
5504
|
export class RemoveNodePoolNodesShrinkRequest extends $tea.Model {
|
|
5072
5505
|
drainNode?: boolean;
|
|
5506
|
+
instanceIdsShrink?: string;
|
|
5073
5507
|
nodesShrink?: string;
|
|
5074
5508
|
releaseNode?: boolean;
|
|
5075
5509
|
static names(): { [key: string]: string } {
|
|
5076
5510
|
return {
|
|
5077
5511
|
drainNode: 'drain_node',
|
|
5512
|
+
instanceIdsShrink: 'instance_ids',
|
|
5078
5513
|
nodesShrink: 'nodes',
|
|
5079
5514
|
releaseNode: 'release_node',
|
|
5080
5515
|
};
|
|
@@ -5083,6 +5518,7 @@ export class RemoveNodePoolNodesShrinkRequest extends $tea.Model {
|
|
|
5083
5518
|
static types(): { [key: string]: any } {
|
|
5084
5519
|
return {
|
|
5085
5520
|
drainNode: 'boolean',
|
|
5521
|
+
instanceIdsShrink: 'string',
|
|
5086
5522
|
nodesShrink: 'string',
|
|
5087
5523
|
releaseNode: 'boolean',
|
|
5088
5524
|
};
|
|
@@ -5609,6 +6045,100 @@ export class ScaleOutClusterResponse extends $tea.Model {
|
|
|
5609
6045
|
}
|
|
5610
6046
|
}
|
|
5611
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
|
+
|
|
5612
6142
|
export class StartWorkflowRequest extends $tea.Model {
|
|
5613
6143
|
mappingBamOutFilename?: string;
|
|
5614
6144
|
mappingBamOutPath?: string;
|
|
@@ -5726,45 +6256,20 @@ export class StartWorkflowResponse extends $tea.Model {
|
|
|
5726
6256
|
}
|
|
5727
6257
|
}
|
|
5728
6258
|
|
|
5729
|
-
export class
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
resourceType?: string;
|
|
5733
|
-
tags?: Tag[];
|
|
5734
|
-
static names(): { [key: string]: string } {
|
|
5735
|
-
return {
|
|
5736
|
-
regionId: 'region_id',
|
|
5737
|
-
resourceIds: 'resource_ids',
|
|
5738
|
-
resourceType: 'resource_type',
|
|
5739
|
-
tags: 'tags',
|
|
5740
|
-
};
|
|
5741
|
-
}
|
|
5742
|
-
|
|
5743
|
-
static types(): { [key: string]: any } {
|
|
5744
|
-
return {
|
|
5745
|
-
regionId: 'string',
|
|
5746
|
-
resourceIds: { 'type': 'array', 'itemType': 'string' },
|
|
5747
|
-
resourceType: 'string',
|
|
5748
|
-
tags: { 'type': 'array', 'itemType': Tag },
|
|
5749
|
-
};
|
|
5750
|
-
}
|
|
5751
|
-
|
|
5752
|
-
constructor(map?: { [key: string]: any }) {
|
|
5753
|
-
super(map);
|
|
5754
|
-
}
|
|
5755
|
-
}
|
|
5756
|
-
|
|
5757
|
-
export class TagResourcesResponseBody extends $tea.Model {
|
|
5758
|
-
requestId?: string;
|
|
6259
|
+
export class StopAlertResponseBody extends $tea.Model {
|
|
6260
|
+
msg?: string;
|
|
6261
|
+
status?: boolean;
|
|
5759
6262
|
static names(): { [key: string]: string } {
|
|
5760
6263
|
return {
|
|
5761
|
-
|
|
6264
|
+
msg: 'msg',
|
|
6265
|
+
status: 'status',
|
|
5762
6266
|
};
|
|
5763
6267
|
}
|
|
5764
6268
|
|
|
5765
6269
|
static types(): { [key: string]: any } {
|
|
5766
6270
|
return {
|
|
5767
|
-
|
|
6271
|
+
msg: 'string',
|
|
6272
|
+
status: 'boolean',
|
|
5768
6273
|
};
|
|
5769
6274
|
}
|
|
5770
6275
|
|
|
@@ -5773,10 +6278,10 @@ export class TagResourcesResponseBody extends $tea.Model {
|
|
|
5773
6278
|
}
|
|
5774
6279
|
}
|
|
5775
6280
|
|
|
5776
|
-
export class
|
|
6281
|
+
export class StopAlertResponse extends $tea.Model {
|
|
5777
6282
|
headers: { [key: string]: string };
|
|
5778
6283
|
statusCode: number;
|
|
5779
|
-
body:
|
|
6284
|
+
body: StopAlertResponseBody;
|
|
5780
6285
|
static names(): { [key: string]: string } {
|
|
5781
6286
|
return {
|
|
5782
6287
|
headers: 'headers',
|
|
@@ -5789,7 +6294,7 @@ export class TagResourcesResponse extends $tea.Model {
|
|
|
5789
6294
|
return {
|
|
5790
6295
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5791
6296
|
statusCode: 'number',
|
|
5792
|
-
body:
|
|
6297
|
+
body: StopAlertResponseBody,
|
|
5793
6298
|
};
|
|
5794
6299
|
}
|
|
5795
6300
|
|
|
@@ -5798,17 +6303,17 @@ export class TagResourcesResponse extends $tea.Model {
|
|
|
5798
6303
|
}
|
|
5799
6304
|
}
|
|
5800
6305
|
|
|
5801
|
-
export class
|
|
5802
|
-
|
|
6306
|
+
export class SyncClusterNodePoolResponseBody extends $tea.Model {
|
|
6307
|
+
requestId?: string;
|
|
5803
6308
|
static names(): { [key: string]: string } {
|
|
5804
6309
|
return {
|
|
5805
|
-
|
|
6310
|
+
requestId: 'RequestId',
|
|
5806
6311
|
};
|
|
5807
6312
|
}
|
|
5808
6313
|
|
|
5809
6314
|
static types(): { [key: string]: any } {
|
|
5810
6315
|
return {
|
|
5811
|
-
|
|
6316
|
+
requestId: 'string',
|
|
5812
6317
|
};
|
|
5813
6318
|
}
|
|
5814
6319
|
|
|
@@ -5817,13 +6322,15 @@ export class UnInstallClusterAddonsRequest extends $tea.Model {
|
|
|
5817
6322
|
}
|
|
5818
6323
|
}
|
|
5819
6324
|
|
|
5820
|
-
export class
|
|
6325
|
+
export class SyncClusterNodePoolResponse extends $tea.Model {
|
|
5821
6326
|
headers: { [key: string]: string };
|
|
5822
6327
|
statusCode: number;
|
|
6328
|
+
body: SyncClusterNodePoolResponseBody;
|
|
5823
6329
|
static names(): { [key: string]: string } {
|
|
5824
6330
|
return {
|
|
5825
6331
|
headers: 'headers',
|
|
5826
6332
|
statusCode: 'statusCode',
|
|
6333
|
+
body: 'body',
|
|
5827
6334
|
};
|
|
5828
6335
|
}
|
|
5829
6336
|
|
|
@@ -5831,6 +6338,7 @@ export class UnInstallClusterAddonsResponse extends $tea.Model {
|
|
|
5831
6338
|
return {
|
|
5832
6339
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5833
6340
|
statusCode: 'number',
|
|
6341
|
+
body: SyncClusterNodePoolResponseBody,
|
|
5834
6342
|
};
|
|
5835
6343
|
}
|
|
5836
6344
|
|
|
@@ -5839,29 +6347,26 @@ export class UnInstallClusterAddonsResponse extends $tea.Model {
|
|
|
5839
6347
|
}
|
|
5840
6348
|
}
|
|
5841
6349
|
|
|
5842
|
-
export class
|
|
5843
|
-
all?: boolean;
|
|
6350
|
+
export class TagResourcesRequest extends $tea.Model {
|
|
5844
6351
|
regionId?: string;
|
|
5845
6352
|
resourceIds?: string[];
|
|
5846
6353
|
resourceType?: string;
|
|
5847
|
-
|
|
6354
|
+
tags?: Tag[];
|
|
5848
6355
|
static names(): { [key: string]: string } {
|
|
5849
6356
|
return {
|
|
5850
|
-
all: 'all',
|
|
5851
6357
|
regionId: 'region_id',
|
|
5852
6358
|
resourceIds: 'resource_ids',
|
|
5853
6359
|
resourceType: 'resource_type',
|
|
5854
|
-
|
|
6360
|
+
tags: 'tags',
|
|
5855
6361
|
};
|
|
5856
6362
|
}
|
|
5857
6363
|
|
|
5858
6364
|
static types(): { [key: string]: any } {
|
|
5859
6365
|
return {
|
|
5860
|
-
all: 'boolean',
|
|
5861
6366
|
regionId: 'string',
|
|
5862
6367
|
resourceIds: { 'type': 'array', 'itemType': 'string' },
|
|
5863
6368
|
resourceType: 'string',
|
|
5864
|
-
|
|
6369
|
+
tags: { 'type': 'array', 'itemType': Tag },
|
|
5865
6370
|
};
|
|
5866
6371
|
}
|
|
5867
6372
|
|
|
@@ -5870,7 +6375,7 @@ export class UntagResourcesRequest extends $tea.Model {
|
|
|
5870
6375
|
}
|
|
5871
6376
|
}
|
|
5872
6377
|
|
|
5873
|
-
export class
|
|
6378
|
+
export class TagResourcesResponseBody extends $tea.Model {
|
|
5874
6379
|
requestId?: string;
|
|
5875
6380
|
static names(): { [key: string]: string } {
|
|
5876
6381
|
return {
|
|
@@ -5889,10 +6394,10 @@ export class UntagResourcesResponseBody extends $tea.Model {
|
|
|
5889
6394
|
}
|
|
5890
6395
|
}
|
|
5891
6396
|
|
|
5892
|
-
export class
|
|
6397
|
+
export class TagResourcesResponse extends $tea.Model {
|
|
5893
6398
|
headers: { [key: string]: string };
|
|
5894
6399
|
statusCode: number;
|
|
5895
|
-
body:
|
|
6400
|
+
body: TagResourcesResponseBody;
|
|
5896
6401
|
static names(): { [key: string]: string } {
|
|
5897
6402
|
return {
|
|
5898
6403
|
headers: 'headers',
|
|
@@ -5905,7 +6410,7 @@ export class UntagResourcesResponse extends $tea.Model {
|
|
|
5905
6410
|
return {
|
|
5906
6411
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
5907
6412
|
statusCode: 'number',
|
|
5908
|
-
body:
|
|
6413
|
+
body: TagResourcesResponseBody,
|
|
5909
6414
|
};
|
|
5910
6415
|
}
|
|
5911
6416
|
|
|
@@ -5914,20 +6419,17 @@ export class UntagResourcesResponse extends $tea.Model {
|
|
|
5914
6419
|
}
|
|
5915
6420
|
}
|
|
5916
6421
|
|
|
5917
|
-
export class
|
|
5918
|
-
|
|
5919
|
-
statusCode: number;
|
|
6422
|
+
export class UnInstallClusterAddonsRequest extends $tea.Model {
|
|
6423
|
+
addons?: UnInstallClusterAddonsRequestAddons[];
|
|
5920
6424
|
static names(): { [key: string]: string } {
|
|
5921
6425
|
return {
|
|
5922
|
-
|
|
5923
|
-
statusCode: 'statusCode',
|
|
6426
|
+
addons: 'addons',
|
|
5924
6427
|
};
|
|
5925
6428
|
}
|
|
5926
6429
|
|
|
5927
6430
|
static types(): { [key: string]: any } {
|
|
5928
6431
|
return {
|
|
5929
|
-
|
|
5930
|
-
statusCode: 'number',
|
|
6432
|
+
addons: { 'type': 'array', 'itemType': UnInstallClusterAddonsRequestAddons },
|
|
5931
6433
|
};
|
|
5932
6434
|
}
|
|
5933
6435
|
|
|
@@ -5936,9 +6438,209 @@ export class UpdateContactGroupForAlertResponse extends $tea.Model {
|
|
|
5936
6438
|
}
|
|
5937
6439
|
}
|
|
5938
6440
|
|
|
5939
|
-
export class
|
|
5940
|
-
|
|
5941
|
-
|
|
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;
|
|
5942
6644
|
static names(): { [key: string]: string } {
|
|
5943
6645
|
return {
|
|
5944
6646
|
expireHour: 'expire_hour',
|
|
@@ -6035,11 +6737,13 @@ export class UpdateTemplateResponse extends $tea.Model {
|
|
|
6035
6737
|
|
|
6036
6738
|
export class UpgradeClusterRequest extends $tea.Model {
|
|
6037
6739
|
componentName?: string;
|
|
6740
|
+
masterOnly?: boolean;
|
|
6038
6741
|
nextVersion?: string;
|
|
6039
6742
|
version?: string;
|
|
6040
6743
|
static names(): { [key: string]: string } {
|
|
6041
6744
|
return {
|
|
6042
6745
|
componentName: 'component_name',
|
|
6746
|
+
masterOnly: 'master_only',
|
|
6043
6747
|
nextVersion: 'next_version',
|
|
6044
6748
|
version: 'version',
|
|
6045
6749
|
};
|
|
@@ -6048,6 +6752,7 @@ export class UpgradeClusterRequest extends $tea.Model {
|
|
|
6048
6752
|
static types(): { [key: string]: any } {
|
|
6049
6753
|
return {
|
|
6050
6754
|
componentName: 'string',
|
|
6755
|
+
masterOnly: 'boolean',
|
|
6051
6756
|
nextVersion: 'string',
|
|
6052
6757
|
version: 'string',
|
|
6053
6758
|
};
|
|
@@ -6121,6 +6826,81 @@ export class UpgradeClusterAddonsResponse extends $tea.Model {
|
|
|
6121
6826
|
}
|
|
6122
6827
|
}
|
|
6123
6828
|
|
|
6829
|
+
export class UpgradeClusterNodepoolRequest extends $tea.Model {
|
|
6830
|
+
imageId?: string;
|
|
6831
|
+
kubernetesVersion?: string;
|
|
6832
|
+
runtimeType?: string;
|
|
6833
|
+
runtimeVersion?: string;
|
|
6834
|
+
static names(): { [key: string]: string } {
|
|
6835
|
+
return {
|
|
6836
|
+
imageId: 'image_id',
|
|
6837
|
+
kubernetesVersion: 'kubernetes_version',
|
|
6838
|
+
runtimeType: 'runtime_type',
|
|
6839
|
+
runtimeVersion: 'runtime_version',
|
|
6840
|
+
};
|
|
6841
|
+
}
|
|
6842
|
+
|
|
6843
|
+
static types(): { [key: string]: any } {
|
|
6844
|
+
return {
|
|
6845
|
+
imageId: 'string',
|
|
6846
|
+
kubernetesVersion: 'string',
|
|
6847
|
+
runtimeType: 'string',
|
|
6848
|
+
runtimeVersion: 'string',
|
|
6849
|
+
};
|
|
6850
|
+
}
|
|
6851
|
+
|
|
6852
|
+
constructor(map?: { [key: string]: any }) {
|
|
6853
|
+
super(map);
|
|
6854
|
+
}
|
|
6855
|
+
}
|
|
6856
|
+
|
|
6857
|
+
export class UpgradeClusterNodepoolResponseBody extends $tea.Model {
|
|
6858
|
+
requestId?: string;
|
|
6859
|
+
taskId?: string;
|
|
6860
|
+
static names(): { [key: string]: string } {
|
|
6861
|
+
return {
|
|
6862
|
+
requestId: 'RequestId',
|
|
6863
|
+
taskId: 'task_id',
|
|
6864
|
+
};
|
|
6865
|
+
}
|
|
6866
|
+
|
|
6867
|
+
static types(): { [key: string]: any } {
|
|
6868
|
+
return {
|
|
6869
|
+
requestId: 'string',
|
|
6870
|
+
taskId: 'string',
|
|
6871
|
+
};
|
|
6872
|
+
}
|
|
6873
|
+
|
|
6874
|
+
constructor(map?: { [key: string]: any }) {
|
|
6875
|
+
super(map);
|
|
6876
|
+
}
|
|
6877
|
+
}
|
|
6878
|
+
|
|
6879
|
+
export class UpgradeClusterNodepoolResponse extends $tea.Model {
|
|
6880
|
+
headers: { [key: string]: string };
|
|
6881
|
+
statusCode: number;
|
|
6882
|
+
body: UpgradeClusterNodepoolResponseBody;
|
|
6883
|
+
static names(): { [key: string]: string } {
|
|
6884
|
+
return {
|
|
6885
|
+
headers: 'headers',
|
|
6886
|
+
statusCode: 'statusCode',
|
|
6887
|
+
body: 'body',
|
|
6888
|
+
};
|
|
6889
|
+
}
|
|
6890
|
+
|
|
6891
|
+
static types(): { [key: string]: any } {
|
|
6892
|
+
return {
|
|
6893
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6894
|
+
statusCode: 'number',
|
|
6895
|
+
body: UpgradeClusterNodepoolResponseBody,
|
|
6896
|
+
};
|
|
6897
|
+
}
|
|
6898
|
+
|
|
6899
|
+
constructor(map?: { [key: string]: any }) {
|
|
6900
|
+
super(map);
|
|
6901
|
+
}
|
|
6902
|
+
}
|
|
6903
|
+
|
|
6124
6904
|
export class AttachInstancesResponseBodyList extends $tea.Model {
|
|
6125
6905
|
code?: string;
|
|
6126
6906
|
instanceId?: string;
|
|
@@ -6360,6 +7140,28 @@ export class CreateClusterNodePoolRequestNodepoolInfo extends $tea.Model {
|
|
|
6360
7140
|
}
|
|
6361
7141
|
}
|
|
6362
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
|
+
|
|
6363
7165
|
export class CreateClusterNodePoolRequestScalingGroupSpotPriceLimit extends $tea.Model {
|
|
6364
7166
|
instanceType?: string;
|
|
6365
7167
|
priceLimit?: string;
|
|
@@ -6425,6 +7227,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
6425
7227
|
period?: number;
|
|
6426
7228
|
periodUnit?: string;
|
|
6427
7229
|
platform?: string;
|
|
7230
|
+
privatePoolOptions?: CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions;
|
|
6428
7231
|
rdsInstances?: string[];
|
|
6429
7232
|
scalingPolicy?: string;
|
|
6430
7233
|
securityGroupId?: string;
|
|
@@ -6460,6 +7263,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
6460
7263
|
period: 'period',
|
|
6461
7264
|
periodUnit: 'period_unit',
|
|
6462
7265
|
platform: 'platform',
|
|
7266
|
+
privatePoolOptions: 'private_pool_options',
|
|
6463
7267
|
rdsInstances: 'rds_instances',
|
|
6464
7268
|
scalingPolicy: 'scaling_policy',
|
|
6465
7269
|
securityGroupId: 'security_group_id',
|
|
@@ -6498,6 +7302,7 @@ export class CreateClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
6498
7302
|
period: 'number',
|
|
6499
7303
|
periodUnit: 'string',
|
|
6500
7304
|
platform: 'string',
|
|
7305
|
+
privatePoolOptions: CreateClusterNodePoolRequestScalingGroupPrivatePoolOptions,
|
|
6501
7306
|
rdsInstances: { 'type': 'array', 'itemType': 'string' },
|
|
6502
7307
|
scalingPolicy: 'string',
|
|
6503
7308
|
securityGroupId: 'string',
|
|
@@ -6898,6 +7703,28 @@ export class DescribeClusterNodePoolDetailResponseBodyNodepoolInfo extends $tea.
|
|
|
6898
7703
|
}
|
|
6899
7704
|
}
|
|
6900
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
|
+
|
|
6901
7728
|
export class DescribeClusterNodePoolDetailResponseBodyScalingGroupSpotPriceLimit extends $tea.Model {
|
|
6902
7729
|
instanceType?: string;
|
|
6903
7730
|
priceLimit?: string;
|
|
@@ -6940,6 +7767,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
6940
7767
|
period?: number;
|
|
6941
7768
|
periodUnit?: string;
|
|
6942
7769
|
platform?: string;
|
|
7770
|
+
privatePoolOptions?: DescribeClusterNodePoolDetailResponseBodyScalingGroupPrivatePoolOptions;
|
|
6943
7771
|
ramPolicy?: string;
|
|
6944
7772
|
rdsInstances?: string[];
|
|
6945
7773
|
scalingGroupId?: string;
|
|
@@ -6976,6 +7804,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
6976
7804
|
period: 'period',
|
|
6977
7805
|
periodUnit: 'period_unit',
|
|
6978
7806
|
platform: 'platform',
|
|
7807
|
+
privatePoolOptions: 'private_pool_options',
|
|
6979
7808
|
ramPolicy: 'ram_policy',
|
|
6980
7809
|
rdsInstances: 'rds_instances',
|
|
6981
7810
|
scalingGroupId: 'scaling_group_id',
|
|
@@ -7015,6 +7844,7 @@ export class DescribeClusterNodePoolDetailResponseBodyScalingGroup extends $tea.
|
|
|
7015
7844
|
period: 'number',
|
|
7016
7845
|
periodUnit: 'string',
|
|
7017
7846
|
platform: 'string',
|
|
7847
|
+
privatePoolOptions: DescribeClusterNodePoolDetailResponseBodyScalingGroupPrivatePoolOptions,
|
|
7018
7848
|
ramPolicy: 'string',
|
|
7019
7849
|
rdsInstances: { 'type': 'array', 'itemType': 'string' },
|
|
7020
7850
|
scalingGroupId: 'string',
|
|
@@ -7298,6 +8128,28 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsNodepoolInfo extends $
|
|
|
7298
8128
|
}
|
|
7299
8129
|
}
|
|
7300
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
|
+
|
|
7301
8153
|
export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupSpotPriceLimit extends $tea.Model {
|
|
7302
8154
|
instanceType?: string;
|
|
7303
8155
|
priceLimit?: string;
|
|
@@ -7340,6 +8192,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
7340
8192
|
period?: number;
|
|
7341
8193
|
periodUnit?: string;
|
|
7342
8194
|
platform?: string;
|
|
8195
|
+
privatePoolOptions?: DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupPrivatePoolOptions;
|
|
7343
8196
|
ramPolicy?: string;
|
|
7344
8197
|
rdsInstances?: string[];
|
|
7345
8198
|
scalingGroupId?: string;
|
|
@@ -7376,6 +8229,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
7376
8229
|
period: 'period',
|
|
7377
8230
|
periodUnit: 'period_unit',
|
|
7378
8231
|
platform: 'platform',
|
|
8232
|
+
privatePoolOptions: 'private_pool_options',
|
|
7379
8233
|
ramPolicy: 'ram_policy',
|
|
7380
8234
|
rdsInstances: 'rds_instances',
|
|
7381
8235
|
scalingGroupId: 'scaling_group_id',
|
|
@@ -7415,6 +8269,7 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroup extends $
|
|
|
7415
8269
|
period: 'number',
|
|
7416
8270
|
periodUnit: 'string',
|
|
7417
8271
|
platform: 'string',
|
|
8272
|
+
privatePoolOptions: DescribeClusterNodePoolsResponseBodyNodepoolsScalingGroupPrivatePoolOptions,
|
|
7418
8273
|
ramPolicy: 'string',
|
|
7419
8274
|
rdsInstances: { 'type': 'array', 'itemType': 'string' },
|
|
7420
8275
|
scalingGroupId: 'string',
|
|
@@ -7762,6 +8617,46 @@ export class DescribeClusterTasksResponseBodyTasks extends $tea.Model {
|
|
|
7762
8617
|
}
|
|
7763
8618
|
}
|
|
7764
8619
|
|
|
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;
|
|
8629
|
+
static names(): { [key: string]: string } {
|
|
8630
|
+
return {
|
|
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',
|
|
8639
|
+
};
|
|
8640
|
+
}
|
|
8641
|
+
|
|
8642
|
+
static types(): { [key: string]: any } {
|
|
8643
|
+
return {
|
|
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
|
+
|
|
7765
8660
|
export class DescribeClustersResponseBodyTags extends $tea.Model {
|
|
7766
8661
|
key?: string;
|
|
7767
8662
|
value?: string;
|
|
@@ -8221,6 +9116,7 @@ export class DescribeKubernetesVersionMetadataResponseBodyImages extends $tea.Mo
|
|
|
8221
9116
|
imageType?: string;
|
|
8222
9117
|
osType?: string;
|
|
8223
9118
|
imageCategory?: string;
|
|
9119
|
+
architecture?: string;
|
|
8224
9120
|
static names(): { [key: string]: string } {
|
|
8225
9121
|
return {
|
|
8226
9122
|
imageId: 'image_id',
|
|
@@ -8230,6 +9126,7 @@ export class DescribeKubernetesVersionMetadataResponseBodyImages extends $tea.Mo
|
|
|
8230
9126
|
imageType: 'image_type',
|
|
8231
9127
|
osType: 'os_type',
|
|
8232
9128
|
imageCategory: 'image_category',
|
|
9129
|
+
architecture: 'architecture',
|
|
8233
9130
|
};
|
|
8234
9131
|
}
|
|
8235
9132
|
|
|
@@ -8242,6 +9139,7 @@ export class DescribeKubernetesVersionMetadataResponseBodyImages extends $tea.Mo
|
|
|
8242
9139
|
imageType: 'string',
|
|
8243
9140
|
osType: 'string',
|
|
8244
9141
|
imageCategory: 'string',
|
|
9142
|
+
architecture: 'string',
|
|
8245
9143
|
};
|
|
8246
9144
|
}
|
|
8247
9145
|
|
|
@@ -8256,7 +9154,9 @@ export class DescribeKubernetesVersionMetadataResponseBody extends $tea.Model {
|
|
|
8256
9154
|
metaData?: { [key: string]: any };
|
|
8257
9155
|
runtimes?: Runtime[];
|
|
8258
9156
|
version?: string;
|
|
8259
|
-
|
|
9157
|
+
releaseDate?: string;
|
|
9158
|
+
expirationDate?: string;
|
|
9159
|
+
creatable?: boolean;
|
|
8260
9160
|
static names(): { [key: string]: string } {
|
|
8261
9161
|
return {
|
|
8262
9162
|
capabilities: 'capabilities',
|
|
@@ -8264,7 +9164,9 @@ export class DescribeKubernetesVersionMetadataResponseBody extends $tea.Model {
|
|
|
8264
9164
|
metaData: 'meta_data',
|
|
8265
9165
|
runtimes: 'runtimes',
|
|
8266
9166
|
version: 'version',
|
|
8267
|
-
|
|
9167
|
+
releaseDate: 'release_date',
|
|
9168
|
+
expirationDate: 'expiration_date',
|
|
9169
|
+
creatable: 'creatable',
|
|
8268
9170
|
};
|
|
8269
9171
|
}
|
|
8270
9172
|
|
|
@@ -8275,7 +9177,9 @@ export class DescribeKubernetesVersionMetadataResponseBody extends $tea.Model {
|
|
|
8275
9177
|
metaData: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
8276
9178
|
runtimes: { 'type': 'array', 'itemType': Runtime },
|
|
8277
9179
|
version: 'string',
|
|
8278
|
-
|
|
9180
|
+
releaseDate: 'string',
|
|
9181
|
+
expirationDate: 'string',
|
|
9182
|
+
creatable: 'boolean',
|
|
8279
9183
|
};
|
|
8280
9184
|
}
|
|
8281
9185
|
|
|
@@ -8314,10 +9218,12 @@ export class DescribeNodePoolVulsResponseBodyVulRecordsVulList extends $tea.Mode
|
|
|
8314
9218
|
|
|
8315
9219
|
export class DescribeNodePoolVulsResponseBodyVulRecords extends $tea.Model {
|
|
8316
9220
|
instanceId?: string;
|
|
9221
|
+
nodeName?: string;
|
|
8317
9222
|
vulList?: DescribeNodePoolVulsResponseBodyVulRecordsVulList[];
|
|
8318
9223
|
static names(): { [key: string]: string } {
|
|
8319
9224
|
return {
|
|
8320
9225
|
instanceId: 'instance_id',
|
|
9226
|
+
nodeName: 'node_name',
|
|
8321
9227
|
vulList: 'vul_list',
|
|
8322
9228
|
};
|
|
8323
9229
|
}
|
|
@@ -8325,6 +9231,7 @@ export class DescribeNodePoolVulsResponseBodyVulRecords extends $tea.Model {
|
|
|
8325
9231
|
static types(): { [key: string]: any } {
|
|
8326
9232
|
return {
|
|
8327
9233
|
instanceId: 'string',
|
|
9234
|
+
nodeName: 'string',
|
|
8328
9235
|
vulList: { 'type': 'array', 'itemType': DescribeNodePoolVulsResponseBodyVulRecordsVulList },
|
|
8329
9236
|
};
|
|
8330
9237
|
}
|
|
@@ -8958,6 +9865,31 @@ export class DescribeUserPermissionResponseBody extends $tea.Model {
|
|
|
8958
9865
|
}
|
|
8959
9866
|
}
|
|
8960
9867
|
|
|
9868
|
+
export class DescribeUserQuotaResponseBodyEdgeImprovedNodepoolQuota extends $tea.Model {
|
|
9869
|
+
bandwidth?: number;
|
|
9870
|
+
count?: number;
|
|
9871
|
+
period?: number;
|
|
9872
|
+
static names(): { [key: string]: string } {
|
|
9873
|
+
return {
|
|
9874
|
+
bandwidth: 'bandwidth',
|
|
9875
|
+
count: 'count',
|
|
9876
|
+
period: 'period',
|
|
9877
|
+
};
|
|
9878
|
+
}
|
|
9879
|
+
|
|
9880
|
+
static types(): { [key: string]: any } {
|
|
9881
|
+
return {
|
|
9882
|
+
bandwidth: 'number',
|
|
9883
|
+
count: 'number',
|
|
9884
|
+
period: 'number',
|
|
9885
|
+
};
|
|
9886
|
+
}
|
|
9887
|
+
|
|
9888
|
+
constructor(map?: { [key: string]: any }) {
|
|
9889
|
+
super(map);
|
|
9890
|
+
}
|
|
9891
|
+
}
|
|
9892
|
+
|
|
8961
9893
|
export class DescribeWorkflowsResponseBodyJobs extends $tea.Model {
|
|
8962
9894
|
clusterId?: string;
|
|
8963
9895
|
createTime?: string;
|
|
@@ -9360,6 +10292,28 @@ export class ModifyClusterNodePoolRequestNodepoolInfo extends $tea.Model {
|
|
|
9360
10292
|
}
|
|
9361
10293
|
}
|
|
9362
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
|
+
|
|
9363
10317
|
export class ModifyClusterNodePoolRequestScalingGroupSpotPriceLimit extends $tea.Model {
|
|
9364
10318
|
instanceType?: string;
|
|
9365
10319
|
priceLimit?: string;
|
|
@@ -9401,6 +10355,7 @@ export class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
9401
10355
|
period?: number;
|
|
9402
10356
|
periodUnit?: string;
|
|
9403
10357
|
platform?: string;
|
|
10358
|
+
privatePoolOptions?: ModifyClusterNodePoolRequestScalingGroupPrivatePoolOptions;
|
|
9404
10359
|
rdsInstances?: string[];
|
|
9405
10360
|
scalingPolicy?: string;
|
|
9406
10361
|
spotInstancePools?: number;
|
|
@@ -9432,6 +10387,7 @@ export class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
9432
10387
|
period: 'period',
|
|
9433
10388
|
periodUnit: 'period_unit',
|
|
9434
10389
|
platform: 'platform',
|
|
10390
|
+
privatePoolOptions: 'private_pool_options',
|
|
9435
10391
|
rdsInstances: 'rds_instances',
|
|
9436
10392
|
scalingPolicy: 'scaling_policy',
|
|
9437
10393
|
spotInstancePools: 'spot_instance_pools',
|
|
@@ -9466,6 +10422,7 @@ export class ModifyClusterNodePoolRequestScalingGroup extends $tea.Model {
|
|
|
9466
10422
|
period: 'number',
|
|
9467
10423
|
periodUnit: 'string',
|
|
9468
10424
|
platform: 'string',
|
|
10425
|
+
privatePoolOptions: ModifyClusterNodePoolRequestScalingGroupPrivatePoolOptions,
|
|
9469
10426
|
rdsInstances: { 'type': 'array', 'itemType': 'string' },
|
|
9470
10427
|
scalingPolicy: 'string',
|
|
9471
10428
|
spotInstancePools: 'number',
|
|
@@ -9698,12 +10655,14 @@ export class UpgradeClusterAddonsRequestBody extends $tea.Model {
|
|
|
9698
10655
|
componentName?: string;
|
|
9699
10656
|
config?: string;
|
|
9700
10657
|
nextVersion?: string;
|
|
10658
|
+
policy?: string;
|
|
9701
10659
|
version?: string;
|
|
9702
10660
|
static names(): { [key: string]: string } {
|
|
9703
10661
|
return {
|
|
9704
10662
|
componentName: 'component_name',
|
|
9705
10663
|
config: 'config',
|
|
9706
10664
|
nextVersion: 'next_version',
|
|
10665
|
+
policy: 'policy',
|
|
9707
10666
|
version: 'version',
|
|
9708
10667
|
};
|
|
9709
10668
|
}
|
|
@@ -9713,6 +10672,7 @@ export class UpgradeClusterAddonsRequestBody extends $tea.Model {
|
|
|
9713
10672
|
componentName: 'string',
|
|
9714
10673
|
config: 'string',
|
|
9715
10674
|
nextVersion: 'string',
|
|
10675
|
+
policy: 'string',
|
|
9716
10676
|
version: 'string',
|
|
9717
10677
|
};
|
|
9718
10678
|
}
|
|
@@ -9778,12 +10738,6 @@ export default class Client extends OpenApi {
|
|
|
9778
10738
|
return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
9779
10739
|
}
|
|
9780
10740
|
|
|
9781
|
-
async attachInstances(ClusterId: string, request: AttachInstancesRequest): Promise<AttachInstancesResponse> {
|
|
9782
|
-
let runtime = new $Util.RuntimeOptions({ });
|
|
9783
|
-
let headers : {[key: string ]: string} = { };
|
|
9784
|
-
return await this.attachInstancesWithOptions(ClusterId, request, headers, runtime);
|
|
9785
|
-
}
|
|
9786
|
-
|
|
9787
10741
|
async attachInstancesWithOptions(ClusterId: string, request: AttachInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<AttachInstancesResponse> {
|
|
9788
10742
|
Util.validateModel(request);
|
|
9789
10743
|
let body : {[key: string ]: any} = { };
|
|
@@ -9827,7 +10781,7 @@ export default class Client extends OpenApi {
|
|
|
9827
10781
|
body["rds_instances"] = request.rdsInstances;
|
|
9828
10782
|
}
|
|
9829
10783
|
|
|
9830
|
-
if (!Util.isUnset(
|
|
10784
|
+
if (!Util.isUnset(request.runtime)) {
|
|
9831
10785
|
body["runtime"] = request.runtime;
|
|
9832
10786
|
}
|
|
9833
10787
|
|
|
@@ -9857,10 +10811,53 @@ export default class Client extends OpenApi {
|
|
|
9857
10811
|
return $tea.cast<AttachInstancesResponse>(await this.callApi(params, req, runtime), new AttachInstancesResponse({}));
|
|
9858
10812
|
}
|
|
9859
10813
|
|
|
9860
|
-
async
|
|
10814
|
+
async attachInstances(ClusterId: string, request: AttachInstancesRequest): Promise<AttachInstancesResponse> {
|
|
9861
10815
|
let runtime = new $Util.RuntimeOptions({ });
|
|
9862
10816
|
let headers : {[key: string ]: string} = { };
|
|
9863
|
-
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);
|
|
9864
10861
|
}
|
|
9865
10862
|
|
|
9866
10863
|
async cancelClusterUpgradeWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CancelClusterUpgradeResponse> {
|
|
@@ -9881,10 +10878,10 @@ export default class Client extends OpenApi {
|
|
|
9881
10878
|
return $tea.cast<CancelClusterUpgradeResponse>(await this.callApi(params, req, runtime), new CancelClusterUpgradeResponse({}));
|
|
9882
10879
|
}
|
|
9883
10880
|
|
|
9884
|
-
async
|
|
10881
|
+
async cancelClusterUpgrade(ClusterId: string): Promise<CancelClusterUpgradeResponse> {
|
|
9885
10882
|
let runtime = new $Util.RuntimeOptions({ });
|
|
9886
10883
|
let headers : {[key: string ]: string} = { };
|
|
9887
|
-
return await this.
|
|
10884
|
+
return await this.cancelClusterUpgradeWithOptions(ClusterId, headers, runtime);
|
|
9888
10885
|
}
|
|
9889
10886
|
|
|
9890
10887
|
async cancelComponentUpgradeWithOptions(clusterId: string, componentId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CancelComponentUpgradeResponse> {
|
|
@@ -9905,10 +10902,10 @@ export default class Client extends OpenApi {
|
|
|
9905
10902
|
return $tea.cast<CancelComponentUpgradeResponse>(await this.callApi(params, req, runtime), new CancelComponentUpgradeResponse({}));
|
|
9906
10903
|
}
|
|
9907
10904
|
|
|
9908
|
-
async
|
|
10905
|
+
async cancelComponentUpgrade(clusterId: string, componentId: string): Promise<CancelComponentUpgradeResponse> {
|
|
9909
10906
|
let runtime = new $Util.RuntimeOptions({ });
|
|
9910
10907
|
let headers : {[key: string ]: string} = { };
|
|
9911
|
-
return await this.
|
|
10908
|
+
return await this.cancelComponentUpgradeWithOptions(clusterId, componentId, headers, runtime);
|
|
9912
10909
|
}
|
|
9913
10910
|
|
|
9914
10911
|
async cancelTaskWithOptions(taskId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CancelTaskResponse> {
|
|
@@ -9929,10 +10926,10 @@ export default class Client extends OpenApi {
|
|
|
9929
10926
|
return $tea.cast<CancelTaskResponse>(await this.callApi(params, req, runtime), new CancelTaskResponse({}));
|
|
9930
10927
|
}
|
|
9931
10928
|
|
|
9932
|
-
async
|
|
10929
|
+
async cancelTask(taskId: string): Promise<CancelTaskResponse> {
|
|
9933
10930
|
let runtime = new $Util.RuntimeOptions({ });
|
|
9934
10931
|
let headers : {[key: string ]: string} = { };
|
|
9935
|
-
return await this.
|
|
10932
|
+
return await this.cancelTaskWithOptions(taskId, headers, runtime);
|
|
9936
10933
|
}
|
|
9937
10934
|
|
|
9938
10935
|
async cancelWorkflowWithOptions(workflowName: string, request: CancelWorkflowRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CancelWorkflowResponse> {
|
|
@@ -9960,10 +10957,34 @@ export default class Client extends OpenApi {
|
|
|
9960
10957
|
return $tea.cast<CancelWorkflowResponse>(await this.callApi(params, req, runtime), new CancelWorkflowResponse({}));
|
|
9961
10958
|
}
|
|
9962
10959
|
|
|
9963
|
-
async
|
|
10960
|
+
async cancelWorkflow(workflowName: string, request: CancelWorkflowRequest): Promise<CancelWorkflowResponse> {
|
|
9964
10961
|
let runtime = new $Util.RuntimeOptions({ });
|
|
9965
10962
|
let headers : {[key: string ]: string} = { };
|
|
9966
|
-
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);
|
|
9967
10988
|
}
|
|
9968
10989
|
|
|
9969
10990
|
async createAutoscalingConfigWithOptions(ClusterId: string, request: CreateAutoscalingConfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateAutoscalingConfigResponse> {
|
|
@@ -9973,6 +10994,10 @@ export default class Client extends OpenApi {
|
|
|
9973
10994
|
body["cool_down_duration"] = request.coolDownDuration;
|
|
9974
10995
|
}
|
|
9975
10996
|
|
|
10997
|
+
if (!Util.isUnset(request.daemonsetEvictionForNodes)) {
|
|
10998
|
+
body["daemonset_eviction_for_nodes"] = request.daemonsetEvictionForNodes;
|
|
10999
|
+
}
|
|
11000
|
+
|
|
9976
11001
|
if (!Util.isUnset(request.expander)) {
|
|
9977
11002
|
body["expander"] = request.expander;
|
|
9978
11003
|
}
|
|
@@ -9981,14 +11006,38 @@ export default class Client extends OpenApi {
|
|
|
9981
11006
|
body["gpu_utilization_threshold"] = request.gpuUtilizationThreshold;
|
|
9982
11007
|
}
|
|
9983
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
|
+
|
|
9984
11021
|
if (!Util.isUnset(request.scaleDownEnabled)) {
|
|
9985
11022
|
body["scale_down_enabled"] = request.scaleDownEnabled;
|
|
9986
11023
|
}
|
|
9987
11024
|
|
|
11025
|
+
if (!Util.isUnset(request.scaleUpFromZero)) {
|
|
11026
|
+
body["scale_up_from_zero"] = request.scaleUpFromZero;
|
|
11027
|
+
}
|
|
11028
|
+
|
|
9988
11029
|
if (!Util.isUnset(request.scanInterval)) {
|
|
9989
11030
|
body["scan_interval"] = request.scanInterval;
|
|
9990
11031
|
}
|
|
9991
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
|
+
|
|
9992
11041
|
if (!Util.isUnset(request.unneededDuration)) {
|
|
9993
11042
|
body["unneeded_duration"] = request.unneededDuration;
|
|
9994
11043
|
}
|
|
@@ -10015,10 +11064,10 @@ export default class Client extends OpenApi {
|
|
|
10015
11064
|
return $tea.cast<CreateAutoscalingConfigResponse>(await this.callApi(params, req, runtime), new CreateAutoscalingConfigResponse({}));
|
|
10016
11065
|
}
|
|
10017
11066
|
|
|
10018
|
-
async
|
|
11067
|
+
async createAutoscalingConfig(ClusterId: string, request: CreateAutoscalingConfigRequest): Promise<CreateAutoscalingConfigResponse> {
|
|
10019
11068
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10020
11069
|
let headers : {[key: string ]: string} = { };
|
|
10021
|
-
return await this.
|
|
11070
|
+
return await this.createAutoscalingConfigWithOptions(ClusterId, request, headers, runtime);
|
|
10022
11071
|
}
|
|
10023
11072
|
|
|
10024
11073
|
async createClusterWithOptions(request: CreateClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateClusterResponse> {
|
|
@@ -10260,7 +11309,7 @@ export default class Client extends OpenApi {
|
|
|
10260
11309
|
body["resource_group_id"] = request.resourceGroupId;
|
|
10261
11310
|
}
|
|
10262
11311
|
|
|
10263
|
-
if (!Util.isUnset(
|
|
11312
|
+
if (!Util.isUnset(request.runtime)) {
|
|
10264
11313
|
body["runtime"] = request.runtime;
|
|
10265
11314
|
}
|
|
10266
11315
|
|
|
@@ -10394,16 +11443,16 @@ export default class Client extends OpenApi {
|
|
|
10394
11443
|
return $tea.cast<CreateClusterResponse>(await this.callApi(params, req, runtime), new CreateClusterResponse({}));
|
|
10395
11444
|
}
|
|
10396
11445
|
|
|
10397
|
-
async
|
|
11446
|
+
async createCluster(request: CreateClusterRequest): Promise<CreateClusterResponse> {
|
|
10398
11447
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10399
11448
|
let headers : {[key: string ]: string} = { };
|
|
10400
|
-
return await this.
|
|
11449
|
+
return await this.createClusterWithOptions(request, headers, runtime);
|
|
10401
11450
|
}
|
|
10402
11451
|
|
|
10403
11452
|
async createClusterNodePoolWithOptions(ClusterId: string, request: CreateClusterNodePoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateClusterNodePoolResponse> {
|
|
10404
11453
|
Util.validateModel(request);
|
|
10405
11454
|
let body : {[key: string ]: any} = { };
|
|
10406
|
-
if (!Util.isUnset(
|
|
11455
|
+
if (!Util.isUnset(request.autoScaling)) {
|
|
10407
11456
|
body["auto_scaling"] = request.autoScaling;
|
|
10408
11457
|
}
|
|
10409
11458
|
|
|
@@ -10411,7 +11460,7 @@ export default class Client extends OpenApi {
|
|
|
10411
11460
|
body["count"] = request.count;
|
|
10412
11461
|
}
|
|
10413
11462
|
|
|
10414
|
-
if (!Util.isUnset(
|
|
11463
|
+
if (!Util.isUnset(request.interconnectConfig)) {
|
|
10415
11464
|
body["interconnect_config"] = request.interconnectConfig;
|
|
10416
11465
|
}
|
|
10417
11466
|
|
|
@@ -10419,11 +11468,11 @@ export default class Client extends OpenApi {
|
|
|
10419
11468
|
body["interconnect_mode"] = request.interconnectMode;
|
|
10420
11469
|
}
|
|
10421
11470
|
|
|
10422
|
-
if (!Util.isUnset(
|
|
11471
|
+
if (!Util.isUnset(request.kubernetesConfig)) {
|
|
10423
11472
|
body["kubernetes_config"] = request.kubernetesConfig;
|
|
10424
11473
|
}
|
|
10425
11474
|
|
|
10426
|
-
if (!Util.isUnset(
|
|
11475
|
+
if (!Util.isUnset(request.management)) {
|
|
10427
11476
|
body["management"] = request.management;
|
|
10428
11477
|
}
|
|
10429
11478
|
|
|
@@ -10431,15 +11480,15 @@ export default class Client extends OpenApi {
|
|
|
10431
11480
|
body["max_nodes"] = request.maxNodes;
|
|
10432
11481
|
}
|
|
10433
11482
|
|
|
10434
|
-
if (!Util.isUnset(
|
|
11483
|
+
if (!Util.isUnset(request.nodepoolInfo)) {
|
|
10435
11484
|
body["nodepool_info"] = request.nodepoolInfo;
|
|
10436
11485
|
}
|
|
10437
11486
|
|
|
10438
|
-
if (!Util.isUnset(
|
|
11487
|
+
if (!Util.isUnset(request.scalingGroup)) {
|
|
10439
11488
|
body["scaling_group"] = request.scalingGroup;
|
|
10440
11489
|
}
|
|
10441
11490
|
|
|
10442
|
-
if (!Util.isUnset(
|
|
11491
|
+
if (!Util.isUnset(request.teeConfig)) {
|
|
10443
11492
|
body["tee_config"] = request.teeConfig;
|
|
10444
11493
|
}
|
|
10445
11494
|
|
|
@@ -10461,10 +11510,10 @@ export default class Client extends OpenApi {
|
|
|
10461
11510
|
return $tea.cast<CreateClusterNodePoolResponse>(await this.callApi(params, req, runtime), new CreateClusterNodePoolResponse({}));
|
|
10462
11511
|
}
|
|
10463
11512
|
|
|
10464
|
-
async
|
|
11513
|
+
async createClusterNodePool(ClusterId: string, request: CreateClusterNodePoolRequest): Promise<CreateClusterNodePoolResponse> {
|
|
10465
11514
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10466
11515
|
let headers : {[key: string ]: string} = { };
|
|
10467
|
-
return await this.
|
|
11516
|
+
return await this.createClusterNodePoolWithOptions(ClusterId, request, headers, runtime);
|
|
10468
11517
|
}
|
|
10469
11518
|
|
|
10470
11519
|
async createEdgeMachineWithOptions(request: CreateEdgeMachineRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateEdgeMachineResponse> {
|
|
@@ -10500,10 +11549,10 @@ export default class Client extends OpenApi {
|
|
|
10500
11549
|
return $tea.cast<CreateEdgeMachineResponse>(await this.callApi(params, req, runtime), new CreateEdgeMachineResponse({}));
|
|
10501
11550
|
}
|
|
10502
11551
|
|
|
10503
|
-
async
|
|
11552
|
+
async createEdgeMachine(request: CreateEdgeMachineRequest): Promise<CreateEdgeMachineResponse> {
|
|
10504
11553
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10505
11554
|
let headers : {[key: string ]: string} = { };
|
|
10506
|
-
return await this.
|
|
11555
|
+
return await this.createEdgeMachineWithOptions(request, headers, runtime);
|
|
10507
11556
|
}
|
|
10508
11557
|
|
|
10509
11558
|
async createKubernetesTriggerWithOptions(request: CreateKubernetesTriggerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateKubernetesTriggerResponse> {
|
|
@@ -10543,10 +11592,10 @@ export default class Client extends OpenApi {
|
|
|
10543
11592
|
return $tea.cast<CreateKubernetesTriggerResponse>(await this.callApi(params, req, runtime), new CreateKubernetesTriggerResponse({}));
|
|
10544
11593
|
}
|
|
10545
11594
|
|
|
10546
|
-
async
|
|
11595
|
+
async createKubernetesTrigger(request: CreateKubernetesTriggerRequest): Promise<CreateKubernetesTriggerResponse> {
|
|
10547
11596
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10548
11597
|
let headers : {[key: string ]: string} = { };
|
|
10549
|
-
return await this.
|
|
11598
|
+
return await this.createKubernetesTriggerWithOptions(request, headers, runtime);
|
|
10550
11599
|
}
|
|
10551
11600
|
|
|
10552
11601
|
async createTemplateWithOptions(request: CreateTemplateRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateTemplateResponse> {
|
|
@@ -10590,10 +11639,10 @@ export default class Client extends OpenApi {
|
|
|
10590
11639
|
return $tea.cast<CreateTemplateResponse>(await this.callApi(params, req, runtime), new CreateTemplateResponse({}));
|
|
10591
11640
|
}
|
|
10592
11641
|
|
|
10593
|
-
async
|
|
11642
|
+
async createTemplate(request: CreateTemplateRequest): Promise<CreateTemplateResponse> {
|
|
10594
11643
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10595
11644
|
let headers : {[key: string ]: string} = { };
|
|
10596
|
-
return await this.
|
|
11645
|
+
return await this.createTemplateWithOptions(request, headers, runtime);
|
|
10597
11646
|
}
|
|
10598
11647
|
|
|
10599
11648
|
async createTriggerWithOptions(clusterId: string, request: CreateTriggerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<CreateTriggerResponse> {
|
|
@@ -10633,10 +11682,10 @@ export default class Client extends OpenApi {
|
|
|
10633
11682
|
return $tea.cast<CreateTriggerResponse>(await this.callApi(params, req, runtime), new CreateTriggerResponse({}));
|
|
10634
11683
|
}
|
|
10635
11684
|
|
|
10636
|
-
async
|
|
11685
|
+
async createTrigger(clusterId: string, request: CreateTriggerRequest): Promise<CreateTriggerResponse> {
|
|
10637
11686
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10638
11687
|
let headers : {[key: string ]: string} = { };
|
|
10639
|
-
return await this.
|
|
11688
|
+
return await this.createTriggerWithOptions(clusterId, request, headers, runtime);
|
|
10640
11689
|
}
|
|
10641
11690
|
|
|
10642
11691
|
async deleteAlertContactWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactResponse> {
|
|
@@ -10657,10 +11706,10 @@ export default class Client extends OpenApi {
|
|
|
10657
11706
|
return $tea.cast<DeleteAlertContactResponse>(await this.callApi(params, req, runtime), new DeleteAlertContactResponse({}));
|
|
10658
11707
|
}
|
|
10659
11708
|
|
|
10660
|
-
async
|
|
11709
|
+
async deleteAlertContact(): Promise<DeleteAlertContactResponse> {
|
|
10661
11710
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10662
11711
|
let headers : {[key: string ]: string} = { };
|
|
10663
|
-
return await this.
|
|
11712
|
+
return await this.deleteAlertContactWithOptions(headers, runtime);
|
|
10664
11713
|
}
|
|
10665
11714
|
|
|
10666
11715
|
async deleteAlertContactGroupWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteAlertContactGroupResponse> {
|
|
@@ -10681,10 +11730,10 @@ export default class Client extends OpenApi {
|
|
|
10681
11730
|
return $tea.cast<DeleteAlertContactGroupResponse>(await this.callApi(params, req, runtime), new DeleteAlertContactGroupResponse({}));
|
|
10682
11731
|
}
|
|
10683
11732
|
|
|
10684
|
-
async
|
|
11733
|
+
async deleteAlertContactGroup(): Promise<DeleteAlertContactGroupResponse> {
|
|
10685
11734
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10686
11735
|
let headers : {[key: string ]: string} = { };
|
|
10687
|
-
return await this.
|
|
11736
|
+
return await this.deleteAlertContactGroupWithOptions(headers, runtime);
|
|
10688
11737
|
}
|
|
10689
11738
|
|
|
10690
11739
|
async deleteClusterWithOptions(ClusterId: string, tmpReq: DeleteClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterResponse> {
|
|
@@ -10721,15 +11770,15 @@ export default class Client extends OpenApi {
|
|
|
10721
11770
|
authType: "AK",
|
|
10722
11771
|
style: "ROA",
|
|
10723
11772
|
reqBodyType: "json",
|
|
10724
|
-
bodyType: "
|
|
11773
|
+
bodyType: "json",
|
|
10725
11774
|
});
|
|
10726
11775
|
return $tea.cast<DeleteClusterResponse>(await this.callApi(params, req, runtime), new DeleteClusterResponse({}));
|
|
10727
11776
|
}
|
|
10728
11777
|
|
|
10729
|
-
async
|
|
11778
|
+
async deleteCluster(ClusterId: string, request: DeleteClusterRequest): Promise<DeleteClusterResponse> {
|
|
10730
11779
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10731
11780
|
let headers : {[key: string ]: string} = { };
|
|
10732
|
-
return await this.
|
|
11781
|
+
return await this.deleteClusterWithOptions(ClusterId, request, headers, runtime);
|
|
10733
11782
|
}
|
|
10734
11783
|
|
|
10735
11784
|
async deleteClusterNodepoolWithOptions(ClusterId: string, NodepoolId: string, request: DeleteClusterNodepoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterNodepoolResponse> {
|
|
@@ -10757,12 +11806,24 @@ export default class Client extends OpenApi {
|
|
|
10757
11806
|
return $tea.cast<DeleteClusterNodepoolResponse>(await this.callApi(params, req, runtime), new DeleteClusterNodepoolResponse({}));
|
|
10758
11807
|
}
|
|
10759
11808
|
|
|
10760
|
-
async
|
|
11809
|
+
async deleteClusterNodepool(ClusterId: string, NodepoolId: string, request: DeleteClusterNodepoolRequest): Promise<DeleteClusterNodepoolResponse> {
|
|
10761
11810
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10762
11811
|
let headers : {[key: string ]: string} = { };
|
|
10763
|
-
return await this.
|
|
11812
|
+
return await this.deleteClusterNodepoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
10764
11813
|
}
|
|
10765
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
|
+
*/
|
|
10766
11827
|
async deleteClusterNodesWithOptions(ClusterId: string, request: DeleteClusterNodesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteClusterNodesResponse> {
|
|
10767
11828
|
Util.validateModel(request);
|
|
10768
11829
|
let body : {[key: string ]: any} = { };
|
|
@@ -10796,10 +11857,20 @@ export default class Client extends OpenApi {
|
|
|
10796
11857
|
return $tea.cast<DeleteClusterNodesResponse>(await this.callApi(params, req, runtime), new DeleteClusterNodesResponse({}));
|
|
10797
11858
|
}
|
|
10798
11859
|
|
|
10799
|
-
|
|
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> {
|
|
10800
11871
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10801
11872
|
let headers : {[key: string ]: string} = { };
|
|
10802
|
-
return await this.
|
|
11873
|
+
return await this.deleteClusterNodesWithOptions(ClusterId, request, headers, runtime);
|
|
10803
11874
|
}
|
|
10804
11875
|
|
|
10805
11876
|
async deleteEdgeMachineWithOptions(edgeMachineid: string, request: DeleteEdgeMachineRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteEdgeMachineResponse> {
|
|
@@ -10827,10 +11898,10 @@ export default class Client extends OpenApi {
|
|
|
10827
11898
|
return $tea.cast<DeleteEdgeMachineResponse>(await this.callApi(params, req, runtime), new DeleteEdgeMachineResponse({}));
|
|
10828
11899
|
}
|
|
10829
11900
|
|
|
10830
|
-
async
|
|
11901
|
+
async deleteEdgeMachine(edgeMachineid: string, request: DeleteEdgeMachineRequest): Promise<DeleteEdgeMachineResponse> {
|
|
10831
11902
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10832
11903
|
let headers : {[key: string ]: string} = { };
|
|
10833
|
-
return await this.
|
|
11904
|
+
return await this.deleteEdgeMachineWithOptions(edgeMachineid, request, headers, runtime);
|
|
10834
11905
|
}
|
|
10835
11906
|
|
|
10836
11907
|
async deleteKubernetesTriggerWithOptions(Id: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteKubernetesTriggerResponse> {
|
|
@@ -10851,10 +11922,10 @@ export default class Client extends OpenApi {
|
|
|
10851
11922
|
return $tea.cast<DeleteKubernetesTriggerResponse>(await this.callApi(params, req, runtime), new DeleteKubernetesTriggerResponse({}));
|
|
10852
11923
|
}
|
|
10853
11924
|
|
|
10854
|
-
async
|
|
11925
|
+
async deleteKubernetesTrigger(Id: string): Promise<DeleteKubernetesTriggerResponse> {
|
|
10855
11926
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10856
11927
|
let headers : {[key: string ]: string} = { };
|
|
10857
|
-
return await this.
|
|
11928
|
+
return await this.deleteKubernetesTriggerWithOptions(Id, headers, runtime);
|
|
10858
11929
|
}
|
|
10859
11930
|
|
|
10860
11931
|
async deletePolicyInstanceWithOptions(clusterId: string, policyName: string, request: DeletePolicyInstanceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeletePolicyInstanceResponse> {
|
|
@@ -10882,10 +11953,10 @@ export default class Client extends OpenApi {
|
|
|
10882
11953
|
return $tea.cast<DeletePolicyInstanceResponse>(await this.callApi(params, req, runtime), new DeletePolicyInstanceResponse({}));
|
|
10883
11954
|
}
|
|
10884
11955
|
|
|
10885
|
-
async
|
|
11956
|
+
async deletePolicyInstance(clusterId: string, policyName: string, request: DeletePolicyInstanceRequest): Promise<DeletePolicyInstanceResponse> {
|
|
10886
11957
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10887
11958
|
let headers : {[key: string ]: string} = { };
|
|
10888
|
-
return await this.
|
|
11959
|
+
return await this.deletePolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
|
|
10889
11960
|
}
|
|
10890
11961
|
|
|
10891
11962
|
async deleteTemplateWithOptions(TemplateId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteTemplateResponse> {
|
|
@@ -10906,10 +11977,10 @@ export default class Client extends OpenApi {
|
|
|
10906
11977
|
return $tea.cast<DeleteTemplateResponse>(await this.callApi(params, req, runtime), new DeleteTemplateResponse({}));
|
|
10907
11978
|
}
|
|
10908
11979
|
|
|
10909
|
-
async
|
|
11980
|
+
async deleteTemplate(TemplateId: string): Promise<DeleteTemplateResponse> {
|
|
10910
11981
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10911
11982
|
let headers : {[key: string ]: string} = { };
|
|
10912
|
-
return await this.
|
|
11983
|
+
return await this.deleteTemplateWithOptions(TemplateId, headers, runtime);
|
|
10913
11984
|
}
|
|
10914
11985
|
|
|
10915
11986
|
async deleteTriggerWithOptions(clusterId: string, Id: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeleteTriggerResponse> {
|
|
@@ -10930,10 +12001,10 @@ export default class Client extends OpenApi {
|
|
|
10930
12001
|
return $tea.cast<DeleteTriggerResponse>(await this.callApi(params, req, runtime), new DeleteTriggerResponse({}));
|
|
10931
12002
|
}
|
|
10932
12003
|
|
|
10933
|
-
async
|
|
12004
|
+
async deleteTrigger(clusterId: string, Id: string): Promise<DeleteTriggerResponse> {
|
|
10934
12005
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10935
12006
|
let headers : {[key: string ]: string} = { };
|
|
10936
|
-
return await this.
|
|
12007
|
+
return await this.deleteTriggerWithOptions(clusterId, Id, headers, runtime);
|
|
10937
12008
|
}
|
|
10938
12009
|
|
|
10939
12010
|
async deployPolicyInstanceWithOptions(clusterId: string, policyName: string, request: DeployPolicyInstanceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DeployPolicyInstanceResponse> {
|
|
@@ -10969,10 +12040,10 @@ export default class Client extends OpenApi {
|
|
|
10969
12040
|
return $tea.cast<DeployPolicyInstanceResponse>(await this.callApi(params, req, runtime), new DeployPolicyInstanceResponse({}));
|
|
10970
12041
|
}
|
|
10971
12042
|
|
|
10972
|
-
async
|
|
12043
|
+
async deployPolicyInstance(clusterId: string, policyName: string, request: DeployPolicyInstanceRequest): Promise<DeployPolicyInstanceResponse> {
|
|
10973
12044
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10974
12045
|
let headers : {[key: string ]: string} = { };
|
|
10975
|
-
return await this.
|
|
12046
|
+
return await this.deployPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
|
|
10976
12047
|
}
|
|
10977
12048
|
|
|
10978
12049
|
async descirbeWorkflowWithOptions(workflowName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescirbeWorkflowResponse> {
|
|
@@ -10993,19 +12064,31 @@ export default class Client extends OpenApi {
|
|
|
10993
12064
|
return $tea.cast<DescirbeWorkflowResponse>(await this.callApi(params, req, runtime), new DescirbeWorkflowResponse({}));
|
|
10994
12065
|
}
|
|
10995
12066
|
|
|
10996
|
-
async
|
|
12067
|
+
async descirbeWorkflow(workflowName: string): Promise<DescirbeWorkflowResponse> {
|
|
10997
12068
|
let runtime = new $Util.RuntimeOptions({ });
|
|
10998
12069
|
let headers : {[key: string ]: string} = { };
|
|
10999
|
-
return await this.
|
|
12070
|
+
return await this.descirbeWorkflowWithOptions(workflowName, headers, runtime);
|
|
11000
12071
|
}
|
|
11001
12072
|
|
|
11002
12073
|
async describeAddonsWithOptions(request: DescribeAddonsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeAddonsResponse> {
|
|
11003
12074
|
Util.validateModel(request);
|
|
11004
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
|
+
|
|
11005
12084
|
if (!Util.isUnset(request.clusterType)) {
|
|
11006
12085
|
query["cluster_type"] = request.clusterType;
|
|
11007
12086
|
}
|
|
11008
12087
|
|
|
12088
|
+
if (!Util.isUnset(request.clusterVersion)) {
|
|
12089
|
+
query["cluster_version"] = request.clusterVersion;
|
|
12090
|
+
}
|
|
12091
|
+
|
|
11009
12092
|
if (!Util.isUnset(request.region)) {
|
|
11010
12093
|
query["region"] = request.region;
|
|
11011
12094
|
}
|
|
@@ -11028,10 +12111,34 @@ export default class Client extends OpenApi {
|
|
|
11028
12111
|
return $tea.cast<DescribeAddonsResponse>(await this.callApi(params, req, runtime), new DescribeAddonsResponse({}));
|
|
11029
12112
|
}
|
|
11030
12113
|
|
|
11031
|
-
async
|
|
12114
|
+
async describeAddons(request: DescribeAddonsRequest): Promise<DescribeAddonsResponse> {
|
|
11032
12115
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11033
12116
|
let headers : {[key: string ]: string} = { };
|
|
11034
|
-
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);
|
|
11035
12142
|
}
|
|
11036
12143
|
|
|
11037
12144
|
async describeClusterAddonMetadataWithOptions(clusterId: string, componentId: string, version: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterAddonMetadataResponse> {
|
|
@@ -11052,12 +12159,20 @@ export default class Client extends OpenApi {
|
|
|
11052
12159
|
return $tea.cast<DescribeClusterAddonMetadataResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonMetadataResponse({}));
|
|
11053
12160
|
}
|
|
11054
12161
|
|
|
11055
|
-
async
|
|
12162
|
+
async describeClusterAddonMetadata(clusterId: string, componentId: string, version: string): Promise<DescribeClusterAddonMetadataResponse> {
|
|
11056
12163
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11057
12164
|
let headers : {[key: string ]: string} = { };
|
|
11058
|
-
return await this.
|
|
12165
|
+
return await this.describeClusterAddonMetadataWithOptions(clusterId, componentId, version, headers, runtime);
|
|
11059
12166
|
}
|
|
11060
12167
|
|
|
12168
|
+
/**
|
|
12169
|
+
* @deprecated
|
|
12170
|
+
*
|
|
12171
|
+
* @param headers map
|
|
12172
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
12173
|
+
* @return DescribeClusterAddonUpgradeStatusResponse
|
|
12174
|
+
*/
|
|
12175
|
+
// Deprecated
|
|
11061
12176
|
async describeClusterAddonUpgradeStatusWithOptions(ClusterId: string, ComponentId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterAddonUpgradeStatusResponse> {
|
|
11062
12177
|
let req = new $OpenApi.OpenApiRequest({
|
|
11063
12178
|
headers: headers,
|
|
@@ -11076,10 +12191,16 @@ export default class Client extends OpenApi {
|
|
|
11076
12191
|
return $tea.cast<DescribeClusterAddonUpgradeStatusResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonUpgradeStatusResponse({}));
|
|
11077
12192
|
}
|
|
11078
12193
|
|
|
11079
|
-
|
|
12194
|
+
/**
|
|
12195
|
+
* @deprecated
|
|
12196
|
+
*
|
|
12197
|
+
* @return DescribeClusterAddonUpgradeStatusResponse
|
|
12198
|
+
*/
|
|
12199
|
+
// Deprecated
|
|
12200
|
+
async describeClusterAddonUpgradeStatus(ClusterId: string, ComponentId: string): Promise<DescribeClusterAddonUpgradeStatusResponse> {
|
|
11080
12201
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11081
12202
|
let headers : {[key: string ]: string} = { };
|
|
11082
|
-
return await this.
|
|
12203
|
+
return await this.describeClusterAddonUpgradeStatusWithOptions(ClusterId, ComponentId, headers, runtime);
|
|
11083
12204
|
}
|
|
11084
12205
|
|
|
11085
12206
|
async describeClusterAddonsUpgradeStatusWithOptions(ClusterId: string, tmpReq: DescribeClusterAddonsUpgradeStatusRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterAddonsUpgradeStatusResponse> {
|
|
@@ -11113,10 +12234,10 @@ export default class Client extends OpenApi {
|
|
|
11113
12234
|
return $tea.cast<DescribeClusterAddonsUpgradeStatusResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonsUpgradeStatusResponse({}));
|
|
11114
12235
|
}
|
|
11115
12236
|
|
|
11116
|
-
async
|
|
12237
|
+
async describeClusterAddonsUpgradeStatus(ClusterId: string, request: DescribeClusterAddonsUpgradeStatusRequest): Promise<DescribeClusterAddonsUpgradeStatusResponse> {
|
|
11117
12238
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11118
12239
|
let headers : {[key: string ]: string} = { };
|
|
11119
|
-
return await this.
|
|
12240
|
+
return await this.describeClusterAddonsUpgradeStatusWithOptions(ClusterId, request, headers, runtime);
|
|
11120
12241
|
}
|
|
11121
12242
|
|
|
11122
12243
|
async describeClusterAddonsVersionWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterAddonsVersionResponse> {
|
|
@@ -11137,10 +12258,10 @@ export default class Client extends OpenApi {
|
|
|
11137
12258
|
return $tea.cast<DescribeClusterAddonsVersionResponse>(await this.callApi(params, req, runtime), new DescribeClusterAddonsVersionResponse({}));
|
|
11138
12259
|
}
|
|
11139
12260
|
|
|
11140
|
-
async
|
|
12261
|
+
async describeClusterAddonsVersion(ClusterId: string): Promise<DescribeClusterAddonsVersionResponse> {
|
|
11141
12262
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11142
12263
|
let headers : {[key: string ]: string} = { };
|
|
11143
|
-
return await this.
|
|
12264
|
+
return await this.describeClusterAddonsVersionWithOptions(ClusterId, headers, runtime);
|
|
11144
12265
|
}
|
|
11145
12266
|
|
|
11146
12267
|
async describeClusterAttachScriptsWithOptions(ClusterId: string, request: DescribeClusterAttachScriptsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterAttachScriptsResponse> {
|
|
@@ -11188,10 +12309,10 @@ export default class Client extends OpenApi {
|
|
|
11188
12309
|
return $tea.cast<DescribeClusterAttachScriptsResponse>(await this.callApi(params, req, runtime), new DescribeClusterAttachScriptsResponse({}));
|
|
11189
12310
|
}
|
|
11190
12311
|
|
|
11191
|
-
async
|
|
12312
|
+
async describeClusterAttachScripts(ClusterId: string, request: DescribeClusterAttachScriptsRequest): Promise<DescribeClusterAttachScriptsResponse> {
|
|
11192
12313
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11193
12314
|
let headers : {[key: string ]: string} = { };
|
|
11194
|
-
return await this.
|
|
12315
|
+
return await this.describeClusterAttachScriptsWithOptions(ClusterId, request, headers, runtime);
|
|
11195
12316
|
}
|
|
11196
12317
|
|
|
11197
12318
|
async describeClusterDetailWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterDetailResponse> {
|
|
@@ -11212,10 +12333,10 @@ export default class Client extends OpenApi {
|
|
|
11212
12333
|
return $tea.cast<DescribeClusterDetailResponse>(await this.callApi(params, req, runtime), new DescribeClusterDetailResponse({}));
|
|
11213
12334
|
}
|
|
11214
12335
|
|
|
11215
|
-
async
|
|
12336
|
+
async describeClusterDetail(ClusterId: string): Promise<DescribeClusterDetailResponse> {
|
|
11216
12337
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11217
12338
|
let headers : {[key: string ]: string} = { };
|
|
11218
|
-
return await this.
|
|
12339
|
+
return await this.describeClusterDetailWithOptions(ClusterId, headers, runtime);
|
|
11219
12340
|
}
|
|
11220
12341
|
|
|
11221
12342
|
async describeClusterEventsWithOptions(ClusterId: string, request: DescribeClusterEventsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterEventsResponse> {
|
|
@@ -11251,10 +12372,10 @@ export default class Client extends OpenApi {
|
|
|
11251
12372
|
return $tea.cast<DescribeClusterEventsResponse>(await this.callApi(params, req, runtime), new DescribeClusterEventsResponse({}));
|
|
11252
12373
|
}
|
|
11253
12374
|
|
|
11254
|
-
async
|
|
12375
|
+
async describeClusterEvents(ClusterId: string, request: DescribeClusterEventsRequest): Promise<DescribeClusterEventsResponse> {
|
|
11255
12376
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11256
12377
|
let headers : {[key: string ]: string} = { };
|
|
11257
|
-
return await this.
|
|
12378
|
+
return await this.describeClusterEventsWithOptions(ClusterId, request, headers, runtime);
|
|
11258
12379
|
}
|
|
11259
12380
|
|
|
11260
12381
|
async describeClusterLogsWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterLogsResponse> {
|
|
@@ -11275,10 +12396,10 @@ export default class Client extends OpenApi {
|
|
|
11275
12396
|
return $tea.cast<DescribeClusterLogsResponse>(await this.callApi(params, req, runtime), new DescribeClusterLogsResponse({}));
|
|
11276
12397
|
}
|
|
11277
12398
|
|
|
11278
|
-
async
|
|
12399
|
+
async describeClusterLogs(ClusterId: string): Promise<DescribeClusterLogsResponse> {
|
|
11279
12400
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11280
12401
|
let headers : {[key: string ]: string} = { };
|
|
11281
|
-
return await this.
|
|
12402
|
+
return await this.describeClusterLogsWithOptions(ClusterId, headers, runtime);
|
|
11282
12403
|
}
|
|
11283
12404
|
|
|
11284
12405
|
async describeClusterNodePoolDetailWithOptions(ClusterId: string, NodepoolId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterNodePoolDetailResponse> {
|
|
@@ -11299,10 +12420,10 @@ export default class Client extends OpenApi {
|
|
|
11299
12420
|
return $tea.cast<DescribeClusterNodePoolDetailResponse>(await this.callApi(params, req, runtime), new DescribeClusterNodePoolDetailResponse({}));
|
|
11300
12421
|
}
|
|
11301
12422
|
|
|
11302
|
-
async
|
|
12423
|
+
async describeClusterNodePoolDetail(ClusterId: string, NodepoolId: string): Promise<DescribeClusterNodePoolDetailResponse> {
|
|
11303
12424
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11304
12425
|
let headers : {[key: string ]: string} = { };
|
|
11305
|
-
return await this.
|
|
12426
|
+
return await this.describeClusterNodePoolDetailWithOptions(ClusterId, NodepoolId, headers, runtime);
|
|
11306
12427
|
}
|
|
11307
12428
|
|
|
11308
12429
|
async describeClusterNodePoolsWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterNodePoolsResponse> {
|
|
@@ -11323,10 +12444,10 @@ export default class Client extends OpenApi {
|
|
|
11323
12444
|
return $tea.cast<DescribeClusterNodePoolsResponse>(await this.callApi(params, req, runtime), new DescribeClusterNodePoolsResponse({}));
|
|
11324
12445
|
}
|
|
11325
12446
|
|
|
11326
|
-
async
|
|
12447
|
+
async describeClusterNodePools(ClusterId: string): Promise<DescribeClusterNodePoolsResponse> {
|
|
11327
12448
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11328
12449
|
let headers : {[key: string ]: string} = { };
|
|
11329
|
-
return await this.
|
|
12450
|
+
return await this.describeClusterNodePoolsWithOptions(ClusterId, headers, runtime);
|
|
11330
12451
|
}
|
|
11331
12452
|
|
|
11332
12453
|
async describeClusterNodesWithOptions(ClusterId: string, request: DescribeClusterNodesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterNodesResponse> {
|
|
@@ -11370,10 +12491,10 @@ export default class Client extends OpenApi {
|
|
|
11370
12491
|
return $tea.cast<DescribeClusterNodesResponse>(await this.callApi(params, req, runtime), new DescribeClusterNodesResponse({}));
|
|
11371
12492
|
}
|
|
11372
12493
|
|
|
11373
|
-
async
|
|
12494
|
+
async describeClusterNodes(ClusterId: string, request: DescribeClusterNodesRequest): Promise<DescribeClusterNodesResponse> {
|
|
11374
12495
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11375
12496
|
let headers : {[key: string ]: string} = { };
|
|
11376
|
-
return await this.
|
|
12497
|
+
return await this.describeClusterNodesWithOptions(ClusterId, request, headers, runtime);
|
|
11377
12498
|
}
|
|
11378
12499
|
|
|
11379
12500
|
async describeClusterResourcesWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterResourcesResponse> {
|
|
@@ -11394,10 +12515,10 @@ export default class Client extends OpenApi {
|
|
|
11394
12515
|
return $tea.cast<DescribeClusterResourcesResponse>(await this.callApi(params, req, runtime), new DescribeClusterResourcesResponse({}));
|
|
11395
12516
|
}
|
|
11396
12517
|
|
|
11397
|
-
async
|
|
12518
|
+
async describeClusterResources(ClusterId: string): Promise<DescribeClusterResourcesResponse> {
|
|
11398
12519
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11399
12520
|
let headers : {[key: string ]: string} = { };
|
|
11400
|
-
return await this.
|
|
12521
|
+
return await this.describeClusterResourcesWithOptions(ClusterId, headers, runtime);
|
|
11401
12522
|
}
|
|
11402
12523
|
|
|
11403
12524
|
async describeClusterTasksWithOptions(clusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterTasksResponse> {
|
|
@@ -11418,10 +12539,10 @@ export default class Client extends OpenApi {
|
|
|
11418
12539
|
return $tea.cast<DescribeClusterTasksResponse>(await this.callApi(params, req, runtime), new DescribeClusterTasksResponse({}));
|
|
11419
12540
|
}
|
|
11420
12541
|
|
|
11421
|
-
async
|
|
12542
|
+
async describeClusterTasks(clusterId: string): Promise<DescribeClusterTasksResponse> {
|
|
11422
12543
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11423
12544
|
let headers : {[key: string ]: string} = { };
|
|
11424
|
-
return await this.
|
|
12545
|
+
return await this.describeClusterTasksWithOptions(clusterId, headers, runtime);
|
|
11425
12546
|
}
|
|
11426
12547
|
|
|
11427
12548
|
async describeClusterUserKubeconfigWithOptions(ClusterId: string, request: DescribeClusterUserKubeconfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterUserKubeconfigResponse> {
|
|
@@ -11453,12 +12574,21 @@ export default class Client extends OpenApi {
|
|
|
11453
12574
|
return $tea.cast<DescribeClusterUserKubeconfigResponse>(await this.callApi(params, req, runtime), new DescribeClusterUserKubeconfigResponse({}));
|
|
11454
12575
|
}
|
|
11455
12576
|
|
|
11456
|
-
async
|
|
12577
|
+
async describeClusterUserKubeconfig(ClusterId: string, request: DescribeClusterUserKubeconfigRequest): Promise<DescribeClusterUserKubeconfigResponse> {
|
|
11457
12578
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11458
12579
|
let headers : {[key: string ]: string} = { };
|
|
11459
|
-
return await this.
|
|
12580
|
+
return await this.describeClusterUserKubeconfigWithOptions(ClusterId, request, headers, runtime);
|
|
11460
12581
|
}
|
|
11461
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
|
|
11462
12592
|
async describeClusterV2UserKubeconfigWithOptions(ClusterId: string, request: DescribeClusterV2UserKubeconfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClusterV2UserKubeconfigResponse> {
|
|
11463
12593
|
Util.validateModel(request);
|
|
11464
12594
|
let query : {[key: string ]: any} = { };
|
|
@@ -11484,12 +12614,52 @@ export default class Client extends OpenApi {
|
|
|
11484
12614
|
return $tea.cast<DescribeClusterV2UserKubeconfigResponse>(await this.callApi(params, req, runtime), new DescribeClusterV2UserKubeconfigResponse({}));
|
|
11485
12615
|
}
|
|
11486
12616
|
|
|
11487
|
-
|
|
12617
|
+
/**
|
|
12618
|
+
* @deprecated
|
|
12619
|
+
*
|
|
12620
|
+
* @param request DescribeClusterV2UserKubeconfigRequest
|
|
12621
|
+
* @return DescribeClusterV2UserKubeconfigResponse
|
|
12622
|
+
*/
|
|
12623
|
+
// Deprecated
|
|
12624
|
+
async describeClusterV2UserKubeconfig(ClusterId: string, request: DescribeClusterV2UserKubeconfigRequest): Promise<DescribeClusterV2UserKubeconfigResponse> {
|
|
11488
12625
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11489
12626
|
let headers : {[key: string ]: string} = { };
|
|
11490
|
-
return await this.
|
|
12627
|
+
return await this.describeClusterV2UserKubeconfigWithOptions(ClusterId, request, headers, runtime);
|
|
12628
|
+
}
|
|
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({}));
|
|
11491
12646
|
}
|
|
11492
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
|
|
11493
12663
|
async describeClustersWithOptions(request: DescribeClustersRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClustersResponse> {
|
|
11494
12664
|
Util.validateModel(request);
|
|
11495
12665
|
let query : {[key: string ]: any} = { };
|
|
@@ -11519,10 +12689,17 @@ export default class Client extends OpenApi {
|
|
|
11519
12689
|
return $tea.cast<DescribeClustersResponse>(await this.callApi(params, req, runtime), new DescribeClustersResponse({}));
|
|
11520
12690
|
}
|
|
11521
12691
|
|
|
11522
|
-
|
|
12692
|
+
/**
|
|
12693
|
+
* @deprecated
|
|
12694
|
+
*
|
|
12695
|
+
* @param request DescribeClustersRequest
|
|
12696
|
+
* @return DescribeClustersResponse
|
|
12697
|
+
*/
|
|
12698
|
+
// Deprecated
|
|
12699
|
+
async describeClusters(request: DescribeClustersRequest): Promise<DescribeClustersResponse> {
|
|
11523
12700
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11524
12701
|
let headers : {[key: string ]: string} = { };
|
|
11525
|
-
return await this.
|
|
12702
|
+
return await this.describeClustersWithOptions(request, headers, runtime);
|
|
11526
12703
|
}
|
|
11527
12704
|
|
|
11528
12705
|
async describeClustersV1WithOptions(request: DescribeClustersV1Request, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeClustersV1Response> {
|
|
@@ -11574,10 +12751,10 @@ export default class Client extends OpenApi {
|
|
|
11574
12751
|
return $tea.cast<DescribeClustersV1Response>(await this.callApi(params, req, runtime), new DescribeClustersV1Response({}));
|
|
11575
12752
|
}
|
|
11576
12753
|
|
|
11577
|
-
async
|
|
12754
|
+
async describeClustersV1(request: DescribeClustersV1Request): Promise<DescribeClustersV1Response> {
|
|
11578
12755
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11579
12756
|
let headers : {[key: string ]: string} = { };
|
|
11580
|
-
return await this.
|
|
12757
|
+
return await this.describeClustersV1WithOptions(request, headers, runtime);
|
|
11581
12758
|
}
|
|
11582
12759
|
|
|
11583
12760
|
async describeEdgeMachineActiveProcessWithOptions(edgeMachineid: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeEdgeMachineActiveProcessResponse> {
|
|
@@ -11598,10 +12775,10 @@ export default class Client extends OpenApi {
|
|
|
11598
12775
|
return $tea.cast<DescribeEdgeMachineActiveProcessResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachineActiveProcessResponse({}));
|
|
11599
12776
|
}
|
|
11600
12777
|
|
|
11601
|
-
async
|
|
12778
|
+
async describeEdgeMachineActiveProcess(edgeMachineid: string): Promise<DescribeEdgeMachineActiveProcessResponse> {
|
|
11602
12779
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11603
12780
|
let headers : {[key: string ]: string} = { };
|
|
11604
|
-
return await this.
|
|
12781
|
+
return await this.describeEdgeMachineActiveProcessWithOptions(edgeMachineid, headers, runtime);
|
|
11605
12782
|
}
|
|
11606
12783
|
|
|
11607
12784
|
async describeEdgeMachineModelsWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeEdgeMachineModelsResponse> {
|
|
@@ -11622,10 +12799,10 @@ export default class Client extends OpenApi {
|
|
|
11622
12799
|
return $tea.cast<DescribeEdgeMachineModelsResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachineModelsResponse({}));
|
|
11623
12800
|
}
|
|
11624
12801
|
|
|
11625
|
-
async
|
|
12802
|
+
async describeEdgeMachineModels(): Promise<DescribeEdgeMachineModelsResponse> {
|
|
11626
12803
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11627
12804
|
let headers : {[key: string ]: string} = { };
|
|
11628
|
-
return await this.
|
|
12805
|
+
return await this.describeEdgeMachineModelsWithOptions(headers, runtime);
|
|
11629
12806
|
}
|
|
11630
12807
|
|
|
11631
12808
|
async describeEdgeMachineTunnelConfigDetailWithOptions(edgeMachineid: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeEdgeMachineTunnelConfigDetailResponse> {
|
|
@@ -11646,10 +12823,10 @@ export default class Client extends OpenApi {
|
|
|
11646
12823
|
return $tea.cast<DescribeEdgeMachineTunnelConfigDetailResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachineTunnelConfigDetailResponse({}));
|
|
11647
12824
|
}
|
|
11648
12825
|
|
|
11649
|
-
async
|
|
12826
|
+
async describeEdgeMachineTunnelConfigDetail(edgeMachineid: string): Promise<DescribeEdgeMachineTunnelConfigDetailResponse> {
|
|
11650
12827
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11651
12828
|
let headers : {[key: string ]: string} = { };
|
|
11652
|
-
return await this.
|
|
12829
|
+
return await this.describeEdgeMachineTunnelConfigDetailWithOptions(edgeMachineid, headers, runtime);
|
|
11653
12830
|
}
|
|
11654
12831
|
|
|
11655
12832
|
async describeEdgeMachinesWithOptions(request: DescribeEdgeMachinesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeEdgeMachinesResponse> {
|
|
@@ -11697,10 +12874,10 @@ export default class Client extends OpenApi {
|
|
|
11697
12874
|
return $tea.cast<DescribeEdgeMachinesResponse>(await this.callApi(params, req, runtime), new DescribeEdgeMachinesResponse({}));
|
|
11698
12875
|
}
|
|
11699
12876
|
|
|
11700
|
-
async
|
|
12877
|
+
async describeEdgeMachines(request: DescribeEdgeMachinesRequest): Promise<DescribeEdgeMachinesResponse> {
|
|
11701
12878
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11702
12879
|
let headers : {[key: string ]: string} = { };
|
|
11703
|
-
return await this.
|
|
12880
|
+
return await this.describeEdgeMachinesWithOptions(request, headers, runtime);
|
|
11704
12881
|
}
|
|
11705
12882
|
|
|
11706
12883
|
async describeEventsWithOptions(request: DescribeEventsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeEventsResponse> {
|
|
@@ -11740,12 +12917,20 @@ export default class Client extends OpenApi {
|
|
|
11740
12917
|
return $tea.cast<DescribeEventsResponse>(await this.callApi(params, req, runtime), new DescribeEventsResponse({}));
|
|
11741
12918
|
}
|
|
11742
12919
|
|
|
11743
|
-
async
|
|
12920
|
+
async describeEvents(request: DescribeEventsRequest): Promise<DescribeEventsResponse> {
|
|
11744
12921
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11745
12922
|
let headers : {[key: string ]: string} = { };
|
|
11746
|
-
return await this.
|
|
12923
|
+
return await this.describeEventsWithOptions(request, headers, runtime);
|
|
11747
12924
|
}
|
|
11748
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
|
+
*/
|
|
11749
12934
|
async describeExternalAgentWithOptions(ClusterId: string, request: DescribeExternalAgentRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeExternalAgentResponse> {
|
|
11750
12935
|
Util.validateModel(request);
|
|
11751
12936
|
let query : {[key: string ]: any} = { };
|
|
@@ -11771,10 +12956,16 @@ export default class Client extends OpenApi {
|
|
|
11771
12956
|
return $tea.cast<DescribeExternalAgentResponse>(await this.callApi(params, req, runtime), new DescribeExternalAgentResponse({}));
|
|
11772
12957
|
}
|
|
11773
12958
|
|
|
11774
|
-
|
|
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> {
|
|
11775
12966
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11776
12967
|
let headers : {[key: string ]: string} = { };
|
|
11777
|
-
return await this.
|
|
12968
|
+
return await this.describeExternalAgentWithOptions(ClusterId, request, headers, runtime);
|
|
11778
12969
|
}
|
|
11779
12970
|
|
|
11780
12971
|
async describeKubernetesVersionMetadataWithOptions(request: DescribeKubernetesVersionMetadataRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeKubernetesVersionMetadataResponse> {
|
|
@@ -11788,6 +12979,10 @@ export default class Client extends OpenApi {
|
|
|
11788
12979
|
query["KubernetesVersion"] = request.kubernetesVersion;
|
|
11789
12980
|
}
|
|
11790
12981
|
|
|
12982
|
+
if (!Util.isUnset(request.mode)) {
|
|
12983
|
+
query["Mode"] = request.mode;
|
|
12984
|
+
}
|
|
12985
|
+
|
|
11791
12986
|
if (!Util.isUnset(request.profile)) {
|
|
11792
12987
|
query["Profile"] = request.profile;
|
|
11793
12988
|
}
|
|
@@ -11818,15 +13013,22 @@ export default class Client extends OpenApi {
|
|
|
11818
13013
|
return $tea.cast<DescribeKubernetesVersionMetadataResponse>(await this.callApi(params, req, runtime), new DescribeKubernetesVersionMetadataResponse({}));
|
|
11819
13014
|
}
|
|
11820
13015
|
|
|
11821
|
-
async
|
|
13016
|
+
async describeKubernetesVersionMetadata(request: DescribeKubernetesVersionMetadataRequest): Promise<DescribeKubernetesVersionMetadataResponse> {
|
|
11822
13017
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11823
13018
|
let headers : {[key: string ]: string} = { };
|
|
11824
|
-
return await this.
|
|
13019
|
+
return await this.describeKubernetesVersionMetadataWithOptions(request, headers, runtime);
|
|
11825
13020
|
}
|
|
11826
13021
|
|
|
11827
|
-
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
|
+
|
|
11828
13029
|
let req = new $OpenApi.OpenApiRequest({
|
|
11829
13030
|
headers: headers,
|
|
13031
|
+
query: OpenApiUtil.query(query),
|
|
11830
13032
|
});
|
|
11831
13033
|
let params = new $OpenApi.Params({
|
|
11832
13034
|
action: "DescribeNodePoolVuls",
|
|
@@ -11842,10 +13044,10 @@ export default class Client extends OpenApi {
|
|
|
11842
13044
|
return $tea.cast<DescribeNodePoolVulsResponse>(await this.callApi(params, req, runtime), new DescribeNodePoolVulsResponse({}));
|
|
11843
13045
|
}
|
|
11844
13046
|
|
|
11845
|
-
async
|
|
13047
|
+
async describeNodePoolVuls(clusterId: string, nodepoolId: string, request: DescribeNodePoolVulsRequest): Promise<DescribeNodePoolVulsResponse> {
|
|
11846
13048
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11847
13049
|
let headers : {[key: string ]: string} = { };
|
|
11848
|
-
return await this.
|
|
13050
|
+
return await this.describeNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime);
|
|
11849
13051
|
}
|
|
11850
13052
|
|
|
11851
13053
|
async describePoliciesWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribePoliciesResponse> {
|
|
@@ -11866,10 +13068,10 @@ export default class Client extends OpenApi {
|
|
|
11866
13068
|
return $tea.cast<DescribePoliciesResponse>(await this.callApi(params, req, runtime), new DescribePoliciesResponse({}));
|
|
11867
13069
|
}
|
|
11868
13070
|
|
|
11869
|
-
async
|
|
13071
|
+
async describePolicies(): Promise<DescribePoliciesResponse> {
|
|
11870
13072
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11871
13073
|
let headers : {[key: string ]: string} = { };
|
|
11872
|
-
return await this.
|
|
13074
|
+
return await this.describePoliciesWithOptions(headers, runtime);
|
|
11873
13075
|
}
|
|
11874
13076
|
|
|
11875
13077
|
async describePolicyDetailsWithOptions(policyName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribePolicyDetailsResponse> {
|
|
@@ -11890,10 +13092,10 @@ export default class Client extends OpenApi {
|
|
|
11890
13092
|
return $tea.cast<DescribePolicyDetailsResponse>(await this.callApi(params, req, runtime), new DescribePolicyDetailsResponse({}));
|
|
11891
13093
|
}
|
|
11892
13094
|
|
|
11893
|
-
async
|
|
13095
|
+
async describePolicyDetails(policyName: string): Promise<DescribePolicyDetailsResponse> {
|
|
11894
13096
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11895
13097
|
let headers : {[key: string ]: string} = { };
|
|
11896
|
-
return await this.
|
|
13098
|
+
return await this.describePolicyDetailsWithOptions(policyName, headers, runtime);
|
|
11897
13099
|
}
|
|
11898
13100
|
|
|
11899
13101
|
async describePolicyGovernanceInClusterWithOptions(clusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribePolicyGovernanceInClusterResponse> {
|
|
@@ -11914,10 +13116,10 @@ export default class Client extends OpenApi {
|
|
|
11914
13116
|
return $tea.cast<DescribePolicyGovernanceInClusterResponse>(await this.callApi(params, req, runtime), new DescribePolicyGovernanceInClusterResponse({}));
|
|
11915
13117
|
}
|
|
11916
13118
|
|
|
11917
|
-
async
|
|
13119
|
+
async describePolicyGovernanceInCluster(clusterId: string): Promise<DescribePolicyGovernanceInClusterResponse> {
|
|
11918
13120
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11919
13121
|
let headers : {[key: string ]: string} = { };
|
|
11920
|
-
return await this.
|
|
13122
|
+
return await this.describePolicyGovernanceInClusterWithOptions(clusterId, headers, runtime);
|
|
11921
13123
|
}
|
|
11922
13124
|
|
|
11923
13125
|
async describePolicyInstancesWithOptions(clusterId: string, request: DescribePolicyInstancesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribePolicyInstancesResponse> {
|
|
@@ -11949,10 +13151,10 @@ export default class Client extends OpenApi {
|
|
|
11949
13151
|
return $tea.cast<DescribePolicyInstancesResponse>(await this.callApi(params, req, runtime), new DescribePolicyInstancesResponse({}));
|
|
11950
13152
|
}
|
|
11951
13153
|
|
|
11952
|
-
async
|
|
13154
|
+
async describePolicyInstances(clusterId: string, request: DescribePolicyInstancesRequest): Promise<DescribePolicyInstancesResponse> {
|
|
11953
13155
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11954
13156
|
let headers : {[key: string ]: string} = { };
|
|
11955
|
-
return await this.
|
|
13157
|
+
return await this.describePolicyInstancesWithOptions(clusterId, request, headers, runtime);
|
|
11956
13158
|
}
|
|
11957
13159
|
|
|
11958
13160
|
async describePolicyInstancesStatusWithOptions(clusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribePolicyInstancesStatusResponse> {
|
|
@@ -11973,10 +13175,59 @@ export default class Client extends OpenApi {
|
|
|
11973
13175
|
return $tea.cast<DescribePolicyInstancesStatusResponse>(await this.callApi(params, req, runtime), new DescribePolicyInstancesStatusResponse({}));
|
|
11974
13176
|
}
|
|
11975
13177
|
|
|
11976
|
-
async
|
|
13178
|
+
async describePolicyInstancesStatus(clusterId: string): Promise<DescribePolicyInstancesStatusResponse> {
|
|
11977
13179
|
let runtime = new $Util.RuntimeOptions({ });
|
|
11978
13180
|
let headers : {[key: string ]: string} = { };
|
|
11979
|
-
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);
|
|
11980
13231
|
}
|
|
11981
13232
|
|
|
11982
13233
|
async describeTaskInfoWithOptions(taskId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeTaskInfoResponse> {
|
|
@@ -11997,10 +13248,10 @@ export default class Client extends OpenApi {
|
|
|
11997
13248
|
return $tea.cast<DescribeTaskInfoResponse>(await this.callApi(params, req, runtime), new DescribeTaskInfoResponse({}));
|
|
11998
13249
|
}
|
|
11999
13250
|
|
|
12000
|
-
async
|
|
13251
|
+
async describeTaskInfo(taskId: string): Promise<DescribeTaskInfoResponse> {
|
|
12001
13252
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12002
13253
|
let headers : {[key: string ]: string} = { };
|
|
12003
|
-
return await this.
|
|
13254
|
+
return await this.describeTaskInfoWithOptions(taskId, headers, runtime);
|
|
12004
13255
|
}
|
|
12005
13256
|
|
|
12006
13257
|
async describeTemplateAttributeWithOptions(TemplateId: string, request: DescribeTemplateAttributeRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeTemplateAttributeResponse> {
|
|
@@ -12028,10 +13279,10 @@ export default class Client extends OpenApi {
|
|
|
12028
13279
|
return $tea.cast<DescribeTemplateAttributeResponse>(await this.callApi(params, req, runtime), new DescribeTemplateAttributeResponse({}));
|
|
12029
13280
|
}
|
|
12030
13281
|
|
|
12031
|
-
async
|
|
13282
|
+
async describeTemplateAttribute(TemplateId: string, request: DescribeTemplateAttributeRequest): Promise<DescribeTemplateAttributeResponse> {
|
|
12032
13283
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12033
13284
|
let headers : {[key: string ]: string} = { };
|
|
12034
|
-
return await this.
|
|
13285
|
+
return await this.describeTemplateAttributeWithOptions(TemplateId, request, headers, runtime);
|
|
12035
13286
|
}
|
|
12036
13287
|
|
|
12037
13288
|
async describeTemplatesWithOptions(request: DescribeTemplatesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeTemplatesResponse> {
|
|
@@ -12067,10 +13318,10 @@ export default class Client extends OpenApi {
|
|
|
12067
13318
|
return $tea.cast<DescribeTemplatesResponse>(await this.callApi(params, req, runtime), new DescribeTemplatesResponse({}));
|
|
12068
13319
|
}
|
|
12069
13320
|
|
|
12070
|
-
async
|
|
13321
|
+
async describeTemplates(request: DescribeTemplatesRequest): Promise<DescribeTemplatesResponse> {
|
|
12071
13322
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12072
13323
|
let headers : {[key: string ]: string} = { };
|
|
12073
|
-
return await this.
|
|
13324
|
+
return await this.describeTemplatesWithOptions(request, headers, runtime);
|
|
12074
13325
|
}
|
|
12075
13326
|
|
|
12076
13327
|
async describeTriggerWithOptions(clusterId: string, request: DescribeTriggerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeTriggerResponse> {
|
|
@@ -12100,7 +13351,7 @@ export default class Client extends OpenApi {
|
|
|
12100
13351
|
action: "DescribeTrigger",
|
|
12101
13352
|
version: "2015-12-15",
|
|
12102
13353
|
protocol: "HTTPS",
|
|
12103
|
-
pathname: `/clusters
|
|
13354
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(clusterId)}/triggers`,
|
|
12104
13355
|
method: "GET",
|
|
12105
13356
|
authType: "AK",
|
|
12106
13357
|
style: "ROA",
|
|
@@ -12110,10 +13361,34 @@ export default class Client extends OpenApi {
|
|
|
12110
13361
|
return $tea.cast<DescribeTriggerResponse>(await this.callApi(params, req, runtime), new DescribeTriggerResponse({}));
|
|
12111
13362
|
}
|
|
12112
13363
|
|
|
12113
|
-
async
|
|
13364
|
+
async describeTrigger(clusterId: string, request: DescribeTriggerRequest): Promise<DescribeTriggerResponse> {
|
|
12114
13365
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12115
13366
|
let headers : {[key: string ]: string} = { };
|
|
12116
|
-
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);
|
|
12117
13392
|
}
|
|
12118
13393
|
|
|
12119
13394
|
async describeUserPermissionWithOptions(uid: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeUserPermissionResponse> {
|
|
@@ -12134,10 +13409,10 @@ export default class Client extends OpenApi {
|
|
|
12134
13409
|
return $tea.cast<DescribeUserPermissionResponse>(await this.callApi(params, req, runtime), new DescribeUserPermissionResponse({}));
|
|
12135
13410
|
}
|
|
12136
13411
|
|
|
12137
|
-
async
|
|
13412
|
+
async describeUserPermission(uid: string): Promise<DescribeUserPermissionResponse> {
|
|
12138
13413
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12139
13414
|
let headers : {[key: string ]: string} = { };
|
|
12140
|
-
return await this.
|
|
13415
|
+
return await this.describeUserPermissionWithOptions(uid, headers, runtime);
|
|
12141
13416
|
}
|
|
12142
13417
|
|
|
12143
13418
|
async describeUserQuotaWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeUserQuotaResponse> {
|
|
@@ -12158,10 +13433,10 @@ export default class Client extends OpenApi {
|
|
|
12158
13433
|
return $tea.cast<DescribeUserQuotaResponse>(await this.callApi(params, req, runtime), new DescribeUserQuotaResponse({}));
|
|
12159
13434
|
}
|
|
12160
13435
|
|
|
12161
|
-
async
|
|
13436
|
+
async describeUserQuota(): Promise<DescribeUserQuotaResponse> {
|
|
12162
13437
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12163
13438
|
let headers : {[key: string ]: string} = { };
|
|
12164
|
-
return await this.
|
|
13439
|
+
return await this.describeUserQuotaWithOptions(headers, runtime);
|
|
12165
13440
|
}
|
|
12166
13441
|
|
|
12167
13442
|
async describeWorkflowsWithOptions(headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<DescribeWorkflowsResponse> {
|
|
@@ -12182,10 +13457,10 @@ export default class Client extends OpenApi {
|
|
|
12182
13457
|
return $tea.cast<DescribeWorkflowsResponse>(await this.callApi(params, req, runtime), new DescribeWorkflowsResponse({}));
|
|
12183
13458
|
}
|
|
12184
13459
|
|
|
12185
|
-
async
|
|
13460
|
+
async describeWorkflows(): Promise<DescribeWorkflowsResponse> {
|
|
12186
13461
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12187
13462
|
let headers : {[key: string ]: string} = { };
|
|
12188
|
-
return await this.
|
|
13463
|
+
return await this.describeWorkflowsWithOptions(headers, runtime);
|
|
12189
13464
|
}
|
|
12190
13465
|
|
|
12191
13466
|
async edgeClusterAddEdgeMachineWithOptions(clusterid: string, edgeMachineid: string, request: EdgeClusterAddEdgeMachineRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<EdgeClusterAddEdgeMachineResponse> {
|
|
@@ -12221,10 +13496,10 @@ export default class Client extends OpenApi {
|
|
|
12221
13496
|
return $tea.cast<EdgeClusterAddEdgeMachineResponse>(await this.callApi(params, req, runtime), new EdgeClusterAddEdgeMachineResponse({}));
|
|
12222
13497
|
}
|
|
12223
13498
|
|
|
12224
|
-
async
|
|
13499
|
+
async edgeClusterAddEdgeMachine(clusterid: string, edgeMachineid: string, request: EdgeClusterAddEdgeMachineRequest): Promise<EdgeClusterAddEdgeMachineResponse> {
|
|
12225
13500
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12226
13501
|
let headers : {[key: string ]: string} = { };
|
|
12227
|
-
return await this.
|
|
13502
|
+
return await this.edgeClusterAddEdgeMachineWithOptions(clusterid, edgeMachineid, request, headers, runtime);
|
|
12228
13503
|
}
|
|
12229
13504
|
|
|
12230
13505
|
async fixNodePoolVulsWithOptions(clusterId: string, nodepoolId: string, request: FixNodePoolVulsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<FixNodePoolVulsResponse> {
|
|
@@ -12234,12 +13509,12 @@ export default class Client extends OpenApi {
|
|
|
12234
13509
|
body["nodes"] = request.nodes;
|
|
12235
13510
|
}
|
|
12236
13511
|
|
|
12237
|
-
if (!Util.isUnset(
|
|
13512
|
+
if (!Util.isUnset(request.rolloutPolicy)) {
|
|
12238
13513
|
body["rollout_policy"] = request.rolloutPolicy;
|
|
12239
13514
|
}
|
|
12240
13515
|
|
|
12241
|
-
if (!Util.isUnset(request.
|
|
12242
|
-
body["
|
|
13516
|
+
if (!Util.isUnset(request.vuls)) {
|
|
13517
|
+
body["vuls"] = request.vuls;
|
|
12243
13518
|
}
|
|
12244
13519
|
|
|
12245
13520
|
let req = new $OpenApi.OpenApiRequest({
|
|
@@ -12260,10 +13535,10 @@ export default class Client extends OpenApi {
|
|
|
12260
13535
|
return $tea.cast<FixNodePoolVulsResponse>(await this.callApi(params, req, runtime), new FixNodePoolVulsResponse({}));
|
|
12261
13536
|
}
|
|
12262
13537
|
|
|
12263
|
-
async
|
|
13538
|
+
async fixNodePoolVuls(clusterId: string, nodepoolId: string, request: FixNodePoolVulsRequest): Promise<FixNodePoolVulsResponse> {
|
|
12264
13539
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12265
13540
|
let headers : {[key: string ]: string} = { };
|
|
12266
|
-
return await this.
|
|
13541
|
+
return await this.fixNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime);
|
|
12267
13542
|
}
|
|
12268
13543
|
|
|
12269
13544
|
async getKubernetesTriggerWithOptions(ClusterId: string, request: GetKubernetesTriggerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetKubernetesTriggerResponse> {
|
|
@@ -12303,10 +13578,10 @@ export default class Client extends OpenApi {
|
|
|
12303
13578
|
return $tea.cast<GetKubernetesTriggerResponse>(await this.callApi(params, req, runtime), new GetKubernetesTriggerResponse({}));
|
|
12304
13579
|
}
|
|
12305
13580
|
|
|
12306
|
-
async
|
|
13581
|
+
async getKubernetesTrigger(ClusterId: string, request: GetKubernetesTriggerRequest): Promise<GetKubernetesTriggerResponse> {
|
|
12307
13582
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12308
13583
|
let headers : {[key: string ]: string} = { };
|
|
12309
|
-
return await this.
|
|
13584
|
+
return await this.getKubernetesTriggerWithOptions(ClusterId, request, headers, runtime);
|
|
12310
13585
|
}
|
|
12311
13586
|
|
|
12312
13587
|
async getUpgradeStatusWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetUpgradeStatusResponse> {
|
|
@@ -12327,12 +13602,24 @@ export default class Client extends OpenApi {
|
|
|
12327
13602
|
return $tea.cast<GetUpgradeStatusResponse>(await this.callApi(params, req, runtime), new GetUpgradeStatusResponse({}));
|
|
12328
13603
|
}
|
|
12329
13604
|
|
|
12330
|
-
async
|
|
13605
|
+
async getUpgradeStatus(ClusterId: string): Promise<GetUpgradeStatusResponse> {
|
|
12331
13606
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12332
13607
|
let headers : {[key: string ]: string} = { };
|
|
12333
|
-
return await this.
|
|
13608
|
+
return await this.getUpgradeStatusWithOptions(ClusterId, headers, runtime);
|
|
12334
13609
|
}
|
|
12335
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
|
+
*/
|
|
12336
13623
|
async grantPermissionsWithOptions(uid: string, request: GrantPermissionsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GrantPermissionsResponse> {
|
|
12337
13624
|
Util.validateModel(request);
|
|
12338
13625
|
let req = new $OpenApi.OpenApiRequest({
|
|
@@ -12353,10 +13640,20 @@ export default class Client extends OpenApi {
|
|
|
12353
13640
|
return $tea.cast<GrantPermissionsResponse>(await this.callApi(params, req, runtime), new GrantPermissionsResponse({}));
|
|
12354
13641
|
}
|
|
12355
13642
|
|
|
12356
|
-
|
|
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> {
|
|
12357
13654
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12358
13655
|
let headers : {[key: string ]: string} = { };
|
|
12359
|
-
return await this.
|
|
13656
|
+
return await this.grantPermissionsWithOptions(uid, request, headers, runtime);
|
|
12360
13657
|
}
|
|
12361
13658
|
|
|
12362
13659
|
async installClusterAddonsWithOptions(ClusterId: string, request: InstallClusterAddonsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<InstallClusterAddonsResponse> {
|
|
@@ -12379,10 +13676,10 @@ export default class Client extends OpenApi {
|
|
|
12379
13676
|
return $tea.cast<InstallClusterAddonsResponse>(await this.callApi(params, req, runtime), new InstallClusterAddonsResponse({}));
|
|
12380
13677
|
}
|
|
12381
13678
|
|
|
12382
|
-
async
|
|
13679
|
+
async installClusterAddons(ClusterId: string, request: InstallClusterAddonsRequest): Promise<InstallClusterAddonsResponse> {
|
|
12383
13680
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12384
13681
|
let headers : {[key: string ]: string} = { };
|
|
12385
|
-
return await this.
|
|
13682
|
+
return await this.installClusterAddonsWithOptions(ClusterId, request, headers, runtime);
|
|
12386
13683
|
}
|
|
12387
13684
|
|
|
12388
13685
|
async listTagResourcesWithOptions(tmpReq: ListTagResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListTagResourcesResponse> {
|
|
@@ -12436,10 +13733,10 @@ export default class Client extends OpenApi {
|
|
|
12436
13733
|
return $tea.cast<ListTagResourcesResponse>(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
|
|
12437
13734
|
}
|
|
12438
13735
|
|
|
12439
|
-
async
|
|
13736
|
+
async listTagResources(request: ListTagResourcesRequest): Promise<ListTagResourcesResponse> {
|
|
12440
13737
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12441
13738
|
let headers : {[key: string ]: string} = { };
|
|
12442
|
-
return await this.
|
|
13739
|
+
return await this.listTagResourcesWithOptions(request, headers, runtime);
|
|
12443
13740
|
}
|
|
12444
13741
|
|
|
12445
13742
|
async migrateClusterWithOptions(clusterId: string, request: MigrateClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<MigrateClusterResponse> {
|
|
@@ -12471,10 +13768,10 @@ export default class Client extends OpenApi {
|
|
|
12471
13768
|
return $tea.cast<MigrateClusterResponse>(await this.callApi(params, req, runtime), new MigrateClusterResponse({}));
|
|
12472
13769
|
}
|
|
12473
13770
|
|
|
12474
|
-
async
|
|
13771
|
+
async migrateCluster(clusterId: string, request: MigrateClusterRequest): Promise<MigrateClusterResponse> {
|
|
12475
13772
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12476
13773
|
let headers : {[key: string ]: string} = { };
|
|
12477
|
-
return await this.
|
|
13774
|
+
return await this.migrateClusterWithOptions(clusterId, request, headers, runtime);
|
|
12478
13775
|
}
|
|
12479
13776
|
|
|
12480
13777
|
async modifyClusterWithOptions(ClusterId: string, request: ModifyClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyClusterResponse> {
|
|
@@ -12508,7 +13805,7 @@ export default class Client extends OpenApi {
|
|
|
12508
13805
|
body["instance_deletion_protection"] = request.instanceDeletionProtection;
|
|
12509
13806
|
}
|
|
12510
13807
|
|
|
12511
|
-
if (!Util.isUnset(
|
|
13808
|
+
if (!Util.isUnset(request.maintenanceWindow)) {
|
|
12512
13809
|
body["maintenance_window"] = request.maintenanceWindow;
|
|
12513
13810
|
}
|
|
12514
13811
|
|
|
@@ -12534,12 +13831,23 @@ export default class Client extends OpenApi {
|
|
|
12534
13831
|
return $tea.cast<ModifyClusterResponse>(await this.callApi(params, req, runtime), new ModifyClusterResponse({}));
|
|
12535
13832
|
}
|
|
12536
13833
|
|
|
12537
|
-
async
|
|
13834
|
+
async modifyCluster(ClusterId: string, request: ModifyClusterRequest): Promise<ModifyClusterResponse> {
|
|
12538
13835
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12539
13836
|
let headers : {[key: string ]: string} = { };
|
|
12540
|
-
return await this.
|
|
13837
|
+
return await this.modifyClusterWithOptions(ClusterId, request, headers, runtime);
|
|
12541
13838
|
}
|
|
12542
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
|
+
*/
|
|
12543
13851
|
async modifyClusterAddonWithOptions(clusterId: string, componentId: string, request: ModifyClusterAddonRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyClusterAddonResponse> {
|
|
12544
13852
|
Util.validateModel(request);
|
|
12545
13853
|
let body : {[key: string ]: any} = { };
|
|
@@ -12565,10 +13873,19 @@ export default class Client extends OpenApi {
|
|
|
12565
13873
|
return $tea.cast<ModifyClusterAddonResponse>(await this.callApi(params, req, runtime), new ModifyClusterAddonResponse({}));
|
|
12566
13874
|
}
|
|
12567
13875
|
|
|
12568
|
-
|
|
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> {
|
|
12569
13886
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12570
13887
|
let headers : {[key: string ]: string} = { };
|
|
12571
|
-
return await this.
|
|
13888
|
+
return await this.modifyClusterAddonWithOptions(clusterId, componentId, request, headers, runtime);
|
|
12572
13889
|
}
|
|
12573
13890
|
|
|
12574
13891
|
async modifyClusterConfigurationWithOptions(ClusterId: string, request: ModifyClusterConfigurationRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyClusterConfigurationResponse> {
|
|
@@ -12596,36 +13913,36 @@ export default class Client extends OpenApi {
|
|
|
12596
13913
|
return $tea.cast<ModifyClusterConfigurationResponse>(await this.callApi(params, req, runtime), new ModifyClusterConfigurationResponse({}));
|
|
12597
13914
|
}
|
|
12598
13915
|
|
|
12599
|
-
async
|
|
13916
|
+
async modifyClusterConfiguration(ClusterId: string, request: ModifyClusterConfigurationRequest): Promise<ModifyClusterConfigurationResponse> {
|
|
12600
13917
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12601
13918
|
let headers : {[key: string ]: string} = { };
|
|
12602
|
-
return await this.
|
|
13919
|
+
return await this.modifyClusterConfigurationWithOptions(ClusterId, request, headers, runtime);
|
|
12603
13920
|
}
|
|
12604
13921
|
|
|
12605
13922
|
async modifyClusterNodePoolWithOptions(ClusterId: string, NodepoolId: string, request: ModifyClusterNodePoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyClusterNodePoolResponse> {
|
|
12606
13923
|
Util.validateModel(request);
|
|
12607
13924
|
let body : {[key: string ]: any} = { };
|
|
12608
|
-
if (!Util.isUnset(
|
|
13925
|
+
if (!Util.isUnset(request.autoScaling)) {
|
|
12609
13926
|
body["auto_scaling"] = request.autoScaling;
|
|
12610
13927
|
}
|
|
12611
13928
|
|
|
12612
|
-
if (!Util.isUnset(
|
|
13929
|
+
if (!Util.isUnset(request.kubernetesConfig)) {
|
|
12613
13930
|
body["kubernetes_config"] = request.kubernetesConfig;
|
|
12614
13931
|
}
|
|
12615
13932
|
|
|
12616
|
-
if (!Util.isUnset(
|
|
13933
|
+
if (!Util.isUnset(request.management)) {
|
|
12617
13934
|
body["management"] = request.management;
|
|
12618
13935
|
}
|
|
12619
13936
|
|
|
12620
|
-
if (!Util.isUnset(
|
|
13937
|
+
if (!Util.isUnset(request.nodepoolInfo)) {
|
|
12621
13938
|
body["nodepool_info"] = request.nodepoolInfo;
|
|
12622
13939
|
}
|
|
12623
13940
|
|
|
12624
|
-
if (!Util.isUnset(
|
|
13941
|
+
if (!Util.isUnset(request.scalingGroup)) {
|
|
12625
13942
|
body["scaling_group"] = request.scalingGroup;
|
|
12626
13943
|
}
|
|
12627
13944
|
|
|
12628
|
-
if (!Util.isUnset(
|
|
13945
|
+
if (!Util.isUnset(request.teeConfig)) {
|
|
12629
13946
|
body["tee_config"] = request.teeConfig;
|
|
12630
13947
|
}
|
|
12631
13948
|
|
|
@@ -12651,10 +13968,10 @@ export default class Client extends OpenApi {
|
|
|
12651
13968
|
return $tea.cast<ModifyClusterNodePoolResponse>(await this.callApi(params, req, runtime), new ModifyClusterNodePoolResponse({}));
|
|
12652
13969
|
}
|
|
12653
13970
|
|
|
12654
|
-
async
|
|
13971
|
+
async modifyClusterNodePool(ClusterId: string, NodepoolId: string, request: ModifyClusterNodePoolRequest): Promise<ModifyClusterNodePoolResponse> {
|
|
12655
13972
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12656
13973
|
let headers : {[key: string ]: string} = { };
|
|
12657
|
-
return await this.
|
|
13974
|
+
return await this.modifyClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
12658
13975
|
}
|
|
12659
13976
|
|
|
12660
13977
|
async modifyClusterTagsWithOptions(ClusterId: string, request: ModifyClusterTagsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyClusterTagsResponse> {
|
|
@@ -12677,20 +13994,20 @@ export default class Client extends OpenApi {
|
|
|
12677
13994
|
return $tea.cast<ModifyClusterTagsResponse>(await this.callApi(params, req, runtime), new ModifyClusterTagsResponse({}));
|
|
12678
13995
|
}
|
|
12679
13996
|
|
|
12680
|
-
async
|
|
13997
|
+
async modifyClusterTags(ClusterId: string, request: ModifyClusterTagsRequest): Promise<ModifyClusterTagsResponse> {
|
|
12681
13998
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12682
13999
|
let headers : {[key: string ]: string} = { };
|
|
12683
|
-
return await this.
|
|
14000
|
+
return await this.modifyClusterTagsWithOptions(ClusterId, request, headers, runtime);
|
|
12684
14001
|
}
|
|
12685
14002
|
|
|
12686
14003
|
async modifyNodePoolNodeConfigWithOptions(ClusterId: string, NodepoolId: string, request: ModifyNodePoolNodeConfigRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyNodePoolNodeConfigResponse> {
|
|
12687
14004
|
Util.validateModel(request);
|
|
12688
14005
|
let body : {[key: string ]: any} = { };
|
|
12689
|
-
if (!Util.isUnset(
|
|
14006
|
+
if (!Util.isUnset(request.kubeletConfig)) {
|
|
12690
14007
|
body["kubelet_config"] = request.kubeletConfig;
|
|
12691
14008
|
}
|
|
12692
14009
|
|
|
12693
|
-
if (!Util.isUnset(
|
|
14010
|
+
if (!Util.isUnset(request.rollingPolicy)) {
|
|
12694
14011
|
body["rolling_policy"] = request.rollingPolicy;
|
|
12695
14012
|
}
|
|
12696
14013
|
|
|
@@ -12712,10 +14029,10 @@ export default class Client extends OpenApi {
|
|
|
12712
14029
|
return $tea.cast<ModifyNodePoolNodeConfigResponse>(await this.callApi(params, req, runtime), new ModifyNodePoolNodeConfigResponse({}));
|
|
12713
14030
|
}
|
|
12714
14031
|
|
|
12715
|
-
async
|
|
14032
|
+
async modifyNodePoolNodeConfig(ClusterId: string, NodepoolId: string, request: ModifyNodePoolNodeConfigRequest): Promise<ModifyNodePoolNodeConfigResponse> {
|
|
12716
14033
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12717
14034
|
let headers : {[key: string ]: string} = { };
|
|
12718
|
-
return await this.
|
|
14035
|
+
return await this.modifyNodePoolNodeConfigWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
12719
14036
|
}
|
|
12720
14037
|
|
|
12721
14038
|
async modifyPolicyInstanceWithOptions(clusterId: string, policyName: string, request: ModifyPolicyInstanceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ModifyPolicyInstanceResponse> {
|
|
@@ -12755,12 +14072,20 @@ export default class Client extends OpenApi {
|
|
|
12755
14072
|
return $tea.cast<ModifyPolicyInstanceResponse>(await this.callApi(params, req, runtime), new ModifyPolicyInstanceResponse({}));
|
|
12756
14073
|
}
|
|
12757
14074
|
|
|
12758
|
-
async
|
|
14075
|
+
async modifyPolicyInstance(clusterId: string, policyName: string, request: ModifyPolicyInstanceRequest): Promise<ModifyPolicyInstanceResponse> {
|
|
12759
14076
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12760
14077
|
let headers : {[key: string ]: string} = { };
|
|
12761
|
-
return await this.
|
|
14078
|
+
return await this.modifyPolicyInstanceWithOptions(clusterId, policyName, request, headers, runtime);
|
|
12762
14079
|
}
|
|
12763
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
|
+
*/
|
|
12764
14089
|
async openAckServiceWithOptions(request: OpenAckServiceRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<OpenAckServiceResponse> {
|
|
12765
14090
|
Util.validateModel(request);
|
|
12766
14091
|
let query : {[key: string ]: any} = { };
|
|
@@ -12786,10 +14111,16 @@ export default class Client extends OpenApi {
|
|
|
12786
14111
|
return $tea.cast<OpenAckServiceResponse>(await this.callApi(params, req, runtime), new OpenAckServiceResponse({}));
|
|
12787
14112
|
}
|
|
12788
14113
|
|
|
12789
|
-
|
|
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> {
|
|
12790
14121
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12791
14122
|
let headers : {[key: string ]: string} = { };
|
|
12792
|
-
return await this.
|
|
14123
|
+
return await this.openAckServiceWithOptions(request, headers, runtime);
|
|
12793
14124
|
}
|
|
12794
14125
|
|
|
12795
14126
|
async pauseClusterUpgradeWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PauseClusterUpgradeResponse> {
|
|
@@ -12810,10 +14141,10 @@ export default class Client extends OpenApi {
|
|
|
12810
14141
|
return $tea.cast<PauseClusterUpgradeResponse>(await this.callApi(params, req, runtime), new PauseClusterUpgradeResponse({}));
|
|
12811
14142
|
}
|
|
12812
14143
|
|
|
12813
|
-
async
|
|
14144
|
+
async pauseClusterUpgrade(ClusterId: string): Promise<PauseClusterUpgradeResponse> {
|
|
12814
14145
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12815
14146
|
let headers : {[key: string ]: string} = { };
|
|
12816
|
-
return await this.
|
|
14147
|
+
return await this.pauseClusterUpgradeWithOptions(ClusterId, headers, runtime);
|
|
12817
14148
|
}
|
|
12818
14149
|
|
|
12819
14150
|
async pauseComponentUpgradeWithOptions(clusterid: string, componentid: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PauseComponentUpgradeResponse> {
|
|
@@ -12834,10 +14165,10 @@ export default class Client extends OpenApi {
|
|
|
12834
14165
|
return $tea.cast<PauseComponentUpgradeResponse>(await this.callApi(params, req, runtime), new PauseComponentUpgradeResponse({}));
|
|
12835
14166
|
}
|
|
12836
14167
|
|
|
12837
|
-
async
|
|
14168
|
+
async pauseComponentUpgrade(clusterid: string, componentid: string): Promise<PauseComponentUpgradeResponse> {
|
|
12838
14169
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12839
14170
|
let headers : {[key: string ]: string} = { };
|
|
12840
|
-
return await this.
|
|
14171
|
+
return await this.pauseComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
|
|
12841
14172
|
}
|
|
12842
14173
|
|
|
12843
14174
|
async pauseTaskWithOptions(taskId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<PauseTaskResponse> {
|
|
@@ -12858,12 +14189,21 @@ export default class Client extends OpenApi {
|
|
|
12858
14189
|
return $tea.cast<PauseTaskResponse>(await this.callApi(params, req, runtime), new PauseTaskResponse({}));
|
|
12859
14190
|
}
|
|
12860
14191
|
|
|
12861
|
-
async
|
|
14192
|
+
async pauseTask(taskId: string): Promise<PauseTaskResponse> {
|
|
12862
14193
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12863
14194
|
let headers : {[key: string ]: string} = { };
|
|
12864
|
-
return await this.
|
|
14195
|
+
return await this.pauseTaskWithOptions(taskId, headers, runtime);
|
|
12865
14196
|
}
|
|
12866
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
|
|
12867
14207
|
async removeClusterNodesWithOptions(ClusterId: string, request: RemoveClusterNodesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RemoveClusterNodesResponse> {
|
|
12868
14208
|
Util.validateModel(request);
|
|
12869
14209
|
let body : {[key: string ]: any} = { };
|
|
@@ -12897,16 +14237,39 @@ export default class Client extends OpenApi {
|
|
|
12897
14237
|
return $tea.cast<RemoveClusterNodesResponse>(await this.callApi(params, req, runtime), new RemoveClusterNodesResponse({}));
|
|
12898
14238
|
}
|
|
12899
14239
|
|
|
12900
|
-
|
|
14240
|
+
/**
|
|
14241
|
+
* @deprecated
|
|
14242
|
+
*
|
|
14243
|
+
* @param request RemoveClusterNodesRequest
|
|
14244
|
+
* @return RemoveClusterNodesResponse
|
|
14245
|
+
*/
|
|
14246
|
+
// Deprecated
|
|
14247
|
+
async removeClusterNodes(ClusterId: string, request: RemoveClusterNodesRequest): Promise<RemoveClusterNodesResponse> {
|
|
12901
14248
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12902
14249
|
let headers : {[key: string ]: string} = { };
|
|
12903
|
-
return await this.
|
|
14250
|
+
return await this.removeClusterNodesWithOptions(ClusterId, request, headers, runtime);
|
|
12904
14251
|
}
|
|
12905
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
|
+
*/
|
|
12906
14265
|
async removeNodePoolNodesWithOptions(ClusterId: string, NodepoolId: string, tmpReq: RemoveNodePoolNodesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RemoveNodePoolNodesResponse> {
|
|
12907
14266
|
Util.validateModel(tmpReq);
|
|
12908
14267
|
let request = new RemoveNodePoolNodesShrinkRequest({ });
|
|
12909
14268
|
OpenApiUtil.convert(tmpReq, request);
|
|
14269
|
+
if (!Util.isUnset(tmpReq.instanceIds)) {
|
|
14270
|
+
request.instanceIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.instanceIds, "instance_ids", "json");
|
|
14271
|
+
}
|
|
14272
|
+
|
|
12910
14273
|
if (!Util.isUnset(tmpReq.nodes)) {
|
|
12911
14274
|
request.nodesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.nodes, "nodes", "json");
|
|
12912
14275
|
}
|
|
@@ -12916,6 +14279,10 @@ export default class Client extends OpenApi {
|
|
|
12916
14279
|
query["drain_node"] = request.drainNode;
|
|
12917
14280
|
}
|
|
12918
14281
|
|
|
14282
|
+
if (!Util.isUnset(request.instanceIdsShrink)) {
|
|
14283
|
+
query["instance_ids"] = request.instanceIdsShrink;
|
|
14284
|
+
}
|
|
14285
|
+
|
|
12919
14286
|
if (!Util.isUnset(request.nodesShrink)) {
|
|
12920
14287
|
query["nodes"] = request.nodesShrink;
|
|
12921
14288
|
}
|
|
@@ -12942,10 +14309,20 @@ export default class Client extends OpenApi {
|
|
|
12942
14309
|
return $tea.cast<RemoveNodePoolNodesResponse>(await this.callApi(params, req, runtime), new RemoveNodePoolNodesResponse({}));
|
|
12943
14310
|
}
|
|
12944
14311
|
|
|
12945
|
-
|
|
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> {
|
|
12946
14323
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12947
14324
|
let headers : {[key: string ]: string} = { };
|
|
12948
|
-
return await this.
|
|
14325
|
+
return await this.removeNodePoolNodesWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
12949
14326
|
}
|
|
12950
14327
|
|
|
12951
14328
|
async removeWorkflowWithOptions(workflowName: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RemoveWorkflowResponse> {
|
|
@@ -12966,10 +14343,10 @@ export default class Client extends OpenApi {
|
|
|
12966
14343
|
return $tea.cast<RemoveWorkflowResponse>(await this.callApi(params, req, runtime), new RemoveWorkflowResponse({}));
|
|
12967
14344
|
}
|
|
12968
14345
|
|
|
12969
|
-
async
|
|
14346
|
+
async removeWorkflow(workflowName: string): Promise<RemoveWorkflowResponse> {
|
|
12970
14347
|
let runtime = new $Util.RuntimeOptions({ });
|
|
12971
14348
|
let headers : {[key: string ]: string} = { };
|
|
12972
|
-
return await this.
|
|
14349
|
+
return await this.removeWorkflowWithOptions(workflowName, headers, runtime);
|
|
12973
14350
|
}
|
|
12974
14351
|
|
|
12975
14352
|
async repairClusterNodePoolWithOptions(clusterId: string, nodepoolId: string, request: RepairClusterNodePoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RepairClusterNodePoolResponse> {
|
|
@@ -12997,10 +14374,10 @@ export default class Client extends OpenApi {
|
|
|
12997
14374
|
return $tea.cast<RepairClusterNodePoolResponse>(await this.callApi(params, req, runtime), new RepairClusterNodePoolResponse({}));
|
|
12998
14375
|
}
|
|
12999
14376
|
|
|
13000
|
-
async
|
|
14377
|
+
async repairClusterNodePool(clusterId: string, nodepoolId: string, request: RepairClusterNodePoolRequest): Promise<RepairClusterNodePoolResponse> {
|
|
13001
14378
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13002
14379
|
let headers : {[key: string ]: string} = { };
|
|
13003
|
-
return await this.
|
|
14380
|
+
return await this.repairClusterNodePoolWithOptions(clusterId, nodepoolId, request, headers, runtime);
|
|
13004
14381
|
}
|
|
13005
14382
|
|
|
13006
14383
|
async resumeComponentUpgradeWithOptions(clusterid: string, componentid: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ResumeComponentUpgradeResponse> {
|
|
@@ -13021,10 +14398,10 @@ export default class Client extends OpenApi {
|
|
|
13021
14398
|
return $tea.cast<ResumeComponentUpgradeResponse>(await this.callApi(params, req, runtime), new ResumeComponentUpgradeResponse({}));
|
|
13022
14399
|
}
|
|
13023
14400
|
|
|
13024
|
-
async
|
|
14401
|
+
async resumeComponentUpgrade(clusterid: string, componentid: string): Promise<ResumeComponentUpgradeResponse> {
|
|
13025
14402
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13026
14403
|
let headers : {[key: string ]: string} = { };
|
|
13027
|
-
return await this.
|
|
14404
|
+
return await this.resumeComponentUpgradeWithOptions(clusterid, componentid, headers, runtime);
|
|
13028
14405
|
}
|
|
13029
14406
|
|
|
13030
14407
|
async resumeTaskWithOptions(taskId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ResumeTaskResponse> {
|
|
@@ -13045,10 +14422,10 @@ export default class Client extends OpenApi {
|
|
|
13045
14422
|
return $tea.cast<ResumeTaskResponse>(await this.callApi(params, req, runtime), new ResumeTaskResponse({}));
|
|
13046
14423
|
}
|
|
13047
14424
|
|
|
13048
|
-
async
|
|
14425
|
+
async resumeTask(taskId: string): Promise<ResumeTaskResponse> {
|
|
13049
14426
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13050
14427
|
let headers : {[key: string ]: string} = { };
|
|
13051
|
-
return await this.
|
|
14428
|
+
return await this.resumeTaskWithOptions(taskId, headers, runtime);
|
|
13052
14429
|
}
|
|
13053
14430
|
|
|
13054
14431
|
async resumeUpgradeClusterWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ResumeUpgradeClusterResponse> {
|
|
@@ -13069,12 +14446,21 @@ export default class Client extends OpenApi {
|
|
|
13069
14446
|
return $tea.cast<ResumeUpgradeClusterResponse>(await this.callApi(params, req, runtime), new ResumeUpgradeClusterResponse({}));
|
|
13070
14447
|
}
|
|
13071
14448
|
|
|
13072
|
-
async
|
|
14449
|
+
async resumeUpgradeCluster(ClusterId: string): Promise<ResumeUpgradeClusterResponse> {
|
|
13073
14450
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13074
14451
|
let headers : {[key: string ]: string} = { };
|
|
13075
|
-
return await this.
|
|
14452
|
+
return await this.resumeUpgradeClusterWithOptions(ClusterId, headers, runtime);
|
|
13076
14453
|
}
|
|
13077
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
|
|
13078
14464
|
async scaleClusterWithOptions(ClusterId: string, request: ScaleClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ScaleClusterResponse> {
|
|
13079
14465
|
Util.validateModel(request);
|
|
13080
14466
|
let body : {[key: string ]: any} = { };
|
|
@@ -13172,10 +14558,17 @@ export default class Client extends OpenApi {
|
|
|
13172
14558
|
return $tea.cast<ScaleClusterResponse>(await this.callApi(params, req, runtime), new ScaleClusterResponse({}));
|
|
13173
14559
|
}
|
|
13174
14560
|
|
|
13175
|
-
|
|
14561
|
+
/**
|
|
14562
|
+
* @deprecated
|
|
14563
|
+
*
|
|
14564
|
+
* @param request ScaleClusterRequest
|
|
14565
|
+
* @return ScaleClusterResponse
|
|
14566
|
+
*/
|
|
14567
|
+
// Deprecated
|
|
14568
|
+
async scaleCluster(ClusterId: string, request: ScaleClusterRequest): Promise<ScaleClusterResponse> {
|
|
13176
14569
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13177
14570
|
let headers : {[key: string ]: string} = { };
|
|
13178
|
-
return await this.
|
|
14571
|
+
return await this.scaleClusterWithOptions(ClusterId, request, headers, runtime);
|
|
13179
14572
|
}
|
|
13180
14573
|
|
|
13181
14574
|
async scaleClusterNodePoolWithOptions(ClusterId: string, NodepoolId: string, request: ScaleClusterNodePoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ScaleClusterNodePoolResponse> {
|
|
@@ -13203,12 +14596,20 @@ export default class Client extends OpenApi {
|
|
|
13203
14596
|
return $tea.cast<ScaleClusterNodePoolResponse>(await this.callApi(params, req, runtime), new ScaleClusterNodePoolResponse({}));
|
|
13204
14597
|
}
|
|
13205
14598
|
|
|
13206
|
-
async
|
|
14599
|
+
async scaleClusterNodePool(ClusterId: string, NodepoolId: string, request: ScaleClusterNodePoolRequest): Promise<ScaleClusterNodePoolResponse> {
|
|
13207
14600
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13208
14601
|
let headers : {[key: string ]: string} = { };
|
|
13209
|
-
return await this.
|
|
14602
|
+
return await this.scaleClusterNodePoolWithOptions(ClusterId, NodepoolId, request, headers, runtime);
|
|
13210
14603
|
}
|
|
13211
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
|
+
*/
|
|
13212
14613
|
async scaleOutClusterWithOptions(ClusterId: string, request: ScaleOutClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ScaleOutClusterResponse> {
|
|
13213
14614
|
Util.validateModel(request);
|
|
13214
14615
|
let body : {[key: string ]: any} = { };
|
|
@@ -13240,7 +14641,7 @@ export default class Client extends OpenApi {
|
|
|
13240
14641
|
body["rds_instances"] = request.rdsInstances;
|
|
13241
14642
|
}
|
|
13242
14643
|
|
|
13243
|
-
if (!Util.isUnset(
|
|
14644
|
+
if (!Util.isUnset(request.runtime)) {
|
|
13244
14645
|
body["runtime"] = request.runtime;
|
|
13245
14646
|
}
|
|
13246
14647
|
|
|
@@ -13314,10 +14715,64 @@ export default class Client extends OpenApi {
|
|
|
13314
14715
|
return $tea.cast<ScaleOutClusterResponse>(await this.callApi(params, req, runtime), new ScaleOutClusterResponse({}));
|
|
13315
14716
|
}
|
|
13316
14717
|
|
|
13317
|
-
|
|
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> {
|
|
13318
14725
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13319
14726
|
let headers : {[key: string ]: string} = { };
|
|
13320
|
-
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);
|
|
13321
14776
|
}
|
|
13322
14777
|
|
|
13323
14778
|
async startWorkflowWithOptions(request: StartWorkflowRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<StartWorkflowResponse> {
|
|
@@ -13417,10 +14872,58 @@ export default class Client extends OpenApi {
|
|
|
13417
14872
|
return $tea.cast<StartWorkflowResponse>(await this.callApi(params, req, runtime), new StartWorkflowResponse({}));
|
|
13418
14873
|
}
|
|
13419
14874
|
|
|
13420
|
-
async
|
|
14875
|
+
async startWorkflow(request: StartWorkflowRequest): Promise<StartWorkflowResponse> {
|
|
13421
14876
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13422
14877
|
let headers : {[key: string ]: string} = { };
|
|
13423
|
-
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);
|
|
13424
14927
|
}
|
|
13425
14928
|
|
|
13426
14929
|
async tagResourcesWithOptions(request: TagResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<TagResourcesResponse> {
|
|
@@ -13460,10 +14963,10 @@ export default class Client extends OpenApi {
|
|
|
13460
14963
|
return $tea.cast<TagResourcesResponse>(await this.callApi(params, req, runtime), new TagResourcesResponse({}));
|
|
13461
14964
|
}
|
|
13462
14965
|
|
|
13463
|
-
async
|
|
14966
|
+
async tagResources(request: TagResourcesRequest): Promise<TagResourcesResponse> {
|
|
13464
14967
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13465
14968
|
let headers : {[key: string ]: string} = { };
|
|
13466
|
-
return await this.
|
|
14969
|
+
return await this.tagResourcesWithOptions(request, headers, runtime);
|
|
13467
14970
|
}
|
|
13468
14971
|
|
|
13469
14972
|
async unInstallClusterAddonsWithOptions(ClusterId: string, request: UnInstallClusterAddonsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UnInstallClusterAddonsResponse> {
|
|
@@ -13486,14 +14989,24 @@ export default class Client extends OpenApi {
|
|
|
13486
14989
|
return $tea.cast<UnInstallClusterAddonsResponse>(await this.callApi(params, req, runtime), new UnInstallClusterAddonsResponse({}));
|
|
13487
14990
|
}
|
|
13488
14991
|
|
|
13489
|
-
async
|
|
14992
|
+
async unInstallClusterAddons(ClusterId: string, request: UnInstallClusterAddonsRequest): Promise<UnInstallClusterAddonsResponse> {
|
|
13490
14993
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13491
14994
|
let headers : {[key: string ]: string} = { };
|
|
13492
|
-
return await this.
|
|
14995
|
+
return await this.unInstallClusterAddonsWithOptions(ClusterId, request, headers, runtime);
|
|
13493
14996
|
}
|
|
13494
14997
|
|
|
13495
|
-
async untagResourcesWithOptions(
|
|
13496
|
-
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
|
+
|
|
13497
15010
|
let query : {[key: string ]: any} = { };
|
|
13498
15011
|
if (!Util.isUnset(request.all)) {
|
|
13499
15012
|
query["all"] = request.all;
|
|
@@ -13503,16 +15016,16 @@ export default class Client extends OpenApi {
|
|
|
13503
15016
|
query["region_id"] = request.regionId;
|
|
13504
15017
|
}
|
|
13505
15018
|
|
|
13506
|
-
if (!Util.isUnset(request.
|
|
13507
|
-
query["resource_ids"] = request.
|
|
15019
|
+
if (!Util.isUnset(request.resourceIdsShrink)) {
|
|
15020
|
+
query["resource_ids"] = request.resourceIdsShrink;
|
|
13508
15021
|
}
|
|
13509
15022
|
|
|
13510
15023
|
if (!Util.isUnset(request.resourceType)) {
|
|
13511
15024
|
query["resource_type"] = request.resourceType;
|
|
13512
15025
|
}
|
|
13513
15026
|
|
|
13514
|
-
if (!Util.isUnset(request.
|
|
13515
|
-
query["tag_keys"] = request.
|
|
15027
|
+
if (!Util.isUnset(request.tagKeysShrink)) {
|
|
15028
|
+
query["tag_keys"] = request.tagKeysShrink;
|
|
13516
15029
|
}
|
|
13517
15030
|
|
|
13518
15031
|
let req = new $OpenApi.OpenApiRequest({
|
|
@@ -13533,10 +15046,10 @@ export default class Client extends OpenApi {
|
|
|
13533
15046
|
return $tea.cast<UntagResourcesResponse>(await this.callApi(params, req, runtime), new UntagResourcesResponse({}));
|
|
13534
15047
|
}
|
|
13535
15048
|
|
|
13536
|
-
async
|
|
15049
|
+
async untagResources(request: UntagResourcesRequest): Promise<UntagResourcesResponse> {
|
|
13537
15050
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13538
15051
|
let headers : {[key: string ]: string} = { };
|
|
13539
|
-
return await this.
|
|
15052
|
+
return await this.untagResourcesWithOptions(request, headers, runtime);
|
|
13540
15053
|
}
|
|
13541
15054
|
|
|
13542
15055
|
async updateContactGroupForAlertWithOptions(ClusterId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateContactGroupForAlertResponse> {
|
|
@@ -13557,12 +15070,65 @@ export default class Client extends OpenApi {
|
|
|
13557
15070
|
return $tea.cast<UpdateContactGroupForAlertResponse>(await this.callApi(params, req, runtime), new UpdateContactGroupForAlertResponse({}));
|
|
13558
15071
|
}
|
|
13559
15072
|
|
|
13560
|
-
async
|
|
15073
|
+
async updateContactGroupForAlert(ClusterId: string): Promise<UpdateContactGroupForAlertResponse> {
|
|
13561
15074
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13562
15075
|
let headers : {[key: string ]: string} = { };
|
|
13563
|
-
return await this.
|
|
15076
|
+
return await this.updateContactGroupForAlertWithOptions(ClusterId, headers, runtime);
|
|
15077
|
+
}
|
|
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({}));
|
|
13564
15114
|
}
|
|
13565
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
|
+
*/
|
|
13566
15132
|
async updateK8sClusterUserConfigExpireWithOptions(ClusterId: string, request: UpdateK8sClusterUserConfigExpireRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateK8sClusterUserConfigExpireResponse> {
|
|
13567
15133
|
Util.validateModel(request);
|
|
13568
15134
|
let body : {[key: string ]: any} = { };
|
|
@@ -13592,10 +15158,18 @@ export default class Client extends OpenApi {
|
|
|
13592
15158
|
return $tea.cast<UpdateK8sClusterUserConfigExpireResponse>(await this.callApi(params, req, runtime), new UpdateK8sClusterUserConfigExpireResponse({}));
|
|
13593
15159
|
}
|
|
13594
15160
|
|
|
13595
|
-
|
|
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> {
|
|
13596
15170
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13597
15171
|
let headers : {[key: string ]: string} = { };
|
|
13598
|
-
return await this.
|
|
15172
|
+
return await this.updateK8sClusterUserConfigExpireWithOptions(ClusterId, request, headers, runtime);
|
|
13599
15173
|
}
|
|
13600
15174
|
|
|
13601
15175
|
async updateTemplateWithOptions(TemplateId: string, request: UpdateTemplateRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpdateTemplateResponse> {
|
|
@@ -13639,10 +15213,10 @@ export default class Client extends OpenApi {
|
|
|
13639
15213
|
return $tea.cast<UpdateTemplateResponse>(await this.callApi(params, req, runtime), new UpdateTemplateResponse({}));
|
|
13640
15214
|
}
|
|
13641
15215
|
|
|
13642
|
-
async
|
|
15216
|
+
async updateTemplate(TemplateId: string, request: UpdateTemplateRequest): Promise<UpdateTemplateResponse> {
|
|
13643
15217
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13644
15218
|
let headers : {[key: string ]: string} = { };
|
|
13645
|
-
return await this.
|
|
15219
|
+
return await this.updateTemplateWithOptions(TemplateId, request, headers, runtime);
|
|
13646
15220
|
}
|
|
13647
15221
|
|
|
13648
15222
|
async upgradeClusterWithOptions(ClusterId: string, request: UpgradeClusterRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpgradeClusterResponse> {
|
|
@@ -13652,6 +15226,10 @@ export default class Client extends OpenApi {
|
|
|
13652
15226
|
body["component_name"] = request.componentName;
|
|
13653
15227
|
}
|
|
13654
15228
|
|
|
15229
|
+
if (!Util.isUnset(request.masterOnly)) {
|
|
15230
|
+
body["master_only"] = request.masterOnly;
|
|
15231
|
+
}
|
|
15232
|
+
|
|
13655
15233
|
if (!Util.isUnset(request.nextVersion)) {
|
|
13656
15234
|
body["next_version"] = request.nextVersion;
|
|
13657
15235
|
}
|
|
@@ -13678,10 +15256,10 @@ export default class Client extends OpenApi {
|
|
|
13678
15256
|
return $tea.cast<UpgradeClusterResponse>(await this.callApi(params, req, runtime), new UpgradeClusterResponse({}));
|
|
13679
15257
|
}
|
|
13680
15258
|
|
|
13681
|
-
async
|
|
15259
|
+
async upgradeCluster(ClusterId: string, request: UpgradeClusterRequest): Promise<UpgradeClusterResponse> {
|
|
13682
15260
|
let runtime = new $Util.RuntimeOptions({ });
|
|
13683
15261
|
let headers : {[key: string ]: string} = { };
|
|
13684
|
-
return await this.
|
|
15262
|
+
return await this.upgradeClusterWithOptions(ClusterId, request, headers, runtime);
|
|
13685
15263
|
}
|
|
13686
15264
|
|
|
13687
15265
|
async upgradeClusterAddonsWithOptions(ClusterId: string, request: UpgradeClusterAddonsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpgradeClusterAddonsResponse> {
|
|
@@ -13704,4 +15282,67 @@ export default class Client extends OpenApi {
|
|
|
13704
15282
|
return $tea.cast<UpgradeClusterAddonsResponse>(await this.callApi(params, req, runtime), new UpgradeClusterAddonsResponse({}));
|
|
13705
15283
|
}
|
|
13706
15284
|
|
|
15285
|
+
async upgradeClusterAddons(ClusterId: string, request: UpgradeClusterAddonsRequest): Promise<UpgradeClusterAddonsResponse> {
|
|
15286
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
15287
|
+
let headers : {[key: string ]: string} = { };
|
|
15288
|
+
return await this.upgradeClusterAddonsWithOptions(ClusterId, request, headers, runtime);
|
|
15289
|
+
}
|
|
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
|
+
*/
|
|
15299
|
+
async upgradeClusterNodepoolWithOptions(ClusterId: string, NodepoolId: string, request: UpgradeClusterNodepoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<UpgradeClusterNodepoolResponse> {
|
|
15300
|
+
Util.validateModel(request);
|
|
15301
|
+
let body : {[key: string ]: any} = { };
|
|
15302
|
+
if (!Util.isUnset(request.imageId)) {
|
|
15303
|
+
body["image_id"] = request.imageId;
|
|
15304
|
+
}
|
|
15305
|
+
|
|
15306
|
+
if (!Util.isUnset(request.kubernetesVersion)) {
|
|
15307
|
+
body["kubernetes_version"] = request.kubernetesVersion;
|
|
15308
|
+
}
|
|
15309
|
+
|
|
15310
|
+
if (!Util.isUnset(request.runtimeType)) {
|
|
15311
|
+
body["runtime_type"] = request.runtimeType;
|
|
15312
|
+
}
|
|
15313
|
+
|
|
15314
|
+
if (!Util.isUnset(request.runtimeVersion)) {
|
|
15315
|
+
body["runtime_version"] = request.runtimeVersion;
|
|
15316
|
+
}
|
|
15317
|
+
|
|
15318
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
15319
|
+
headers: headers,
|
|
15320
|
+
body: OpenApiUtil.parseToMap(body),
|
|
15321
|
+
});
|
|
15322
|
+
let params = new $OpenApi.Params({
|
|
15323
|
+
action: "UpgradeClusterNodepool",
|
|
15324
|
+
version: "2015-12-15",
|
|
15325
|
+
protocol: "HTTPS",
|
|
15326
|
+
pathname: `/clusters/${OpenApiUtil.getEncodeParam(ClusterId)}/nodepools/${OpenApiUtil.getEncodeParam(NodepoolId)}/upgrade`,
|
|
15327
|
+
method: "POST",
|
|
15328
|
+
authType: "AK",
|
|
15329
|
+
style: "ROA",
|
|
15330
|
+
reqBodyType: "json",
|
|
15331
|
+
bodyType: "json",
|
|
15332
|
+
});
|
|
15333
|
+
return $tea.cast<UpgradeClusterNodepoolResponse>(await this.callApi(params, req, runtime), new UpgradeClusterNodepoolResponse({}));
|
|
15334
|
+
}
|
|
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
|
+
|
|
13707
15348
|
}
|