@alicloud/cs20151215 3.0.13 → 3.0.14
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 +264 -2
- package/dist/client.js +435 -4
- package/dist/client.js.map +1 -1
- package/package.json +3 -3
- package/src/client.ts +544 -4
package/dist/client.js
CHANGED
|
@@ -361,6 +361,7 @@ class CreateClusterRequest extends $tea.Model {
|
|
|
361
361
|
return {
|
|
362
362
|
addons: 'addons',
|
|
363
363
|
apiAudiences: 'api_audiences',
|
|
364
|
+
chargeType: 'charge_type',
|
|
364
365
|
cisEnabled: 'cis_enabled',
|
|
365
366
|
cloudMonitorFlags: 'cloud_monitor_flags',
|
|
366
367
|
clusterDomain: 'cluster_domain',
|
|
@@ -407,6 +408,8 @@ class CreateClusterRequest extends $tea.Model {
|
|
|
407
408
|
nodePortRange: 'node_port_range',
|
|
408
409
|
numOfNodes: 'num_of_nodes',
|
|
409
410
|
osType: 'os_type',
|
|
411
|
+
period: 'period',
|
|
412
|
+
periodUnit: 'period_unit',
|
|
410
413
|
platform: 'platform',
|
|
411
414
|
podVswitchIds: 'pod_vswitch_ids',
|
|
412
415
|
profile: 'profile',
|
|
@@ -449,6 +452,7 @@ class CreateClusterRequest extends $tea.Model {
|
|
|
449
452
|
return {
|
|
450
453
|
addons: { 'type': 'array', 'itemType': Addon },
|
|
451
454
|
apiAudiences: 'string',
|
|
455
|
+
chargeType: 'string',
|
|
452
456
|
cisEnabled: 'boolean',
|
|
453
457
|
cloudMonitorFlags: 'boolean',
|
|
454
458
|
clusterDomain: 'string',
|
|
@@ -495,6 +499,8 @@ class CreateClusterRequest extends $tea.Model {
|
|
|
495
499
|
nodePortRange: 'string',
|
|
496
500
|
numOfNodes: 'number',
|
|
497
501
|
osType: 'string',
|
|
502
|
+
period: 'number',
|
|
503
|
+
periodUnit: 'string',
|
|
498
504
|
platform: 'string',
|
|
499
505
|
podVswitchIds: { 'type': 'array', 'itemType': 'string' },
|
|
500
506
|
profile: 'string',
|
|
@@ -1679,6 +1685,64 @@ class DescribeClusterDetailResponse extends $tea.Model {
|
|
|
1679
1685
|
}
|
|
1680
1686
|
}
|
|
1681
1687
|
exports.DescribeClusterDetailResponse = DescribeClusterDetailResponse;
|
|
1688
|
+
class DescribeClusterEventsRequest extends $tea.Model {
|
|
1689
|
+
constructor(map) {
|
|
1690
|
+
super(map);
|
|
1691
|
+
}
|
|
1692
|
+
static names() {
|
|
1693
|
+
return {
|
|
1694
|
+
pageNumber: 'page_number',
|
|
1695
|
+
pageSize: 'page_size',
|
|
1696
|
+
taskId: 'task_id',
|
|
1697
|
+
};
|
|
1698
|
+
}
|
|
1699
|
+
static types() {
|
|
1700
|
+
return {
|
|
1701
|
+
pageNumber: 'number',
|
|
1702
|
+
pageSize: 'number',
|
|
1703
|
+
taskId: 'number',
|
|
1704
|
+
};
|
|
1705
|
+
}
|
|
1706
|
+
}
|
|
1707
|
+
exports.DescribeClusterEventsRequest = DescribeClusterEventsRequest;
|
|
1708
|
+
class DescribeClusterEventsResponseBody extends $tea.Model {
|
|
1709
|
+
constructor(map) {
|
|
1710
|
+
super(map);
|
|
1711
|
+
}
|
|
1712
|
+
static names() {
|
|
1713
|
+
return {
|
|
1714
|
+
events: 'events',
|
|
1715
|
+
pageInfo: 'page_info',
|
|
1716
|
+
};
|
|
1717
|
+
}
|
|
1718
|
+
static types() {
|
|
1719
|
+
return {
|
|
1720
|
+
events: { 'type': 'array', 'itemType': DescribeClusterEventsResponseBodyEvents },
|
|
1721
|
+
pageInfo: DescribeClusterEventsResponseBodyPageInfo,
|
|
1722
|
+
};
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
exports.DescribeClusterEventsResponseBody = DescribeClusterEventsResponseBody;
|
|
1726
|
+
class DescribeClusterEventsResponse extends $tea.Model {
|
|
1727
|
+
constructor(map) {
|
|
1728
|
+
super(map);
|
|
1729
|
+
}
|
|
1730
|
+
static names() {
|
|
1731
|
+
return {
|
|
1732
|
+
headers: 'headers',
|
|
1733
|
+
statusCode: 'statusCode',
|
|
1734
|
+
body: 'body',
|
|
1735
|
+
};
|
|
1736
|
+
}
|
|
1737
|
+
static types() {
|
|
1738
|
+
return {
|
|
1739
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1740
|
+
statusCode: 'number',
|
|
1741
|
+
body: DescribeClusterEventsResponseBody,
|
|
1742
|
+
};
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1745
|
+
exports.DescribeClusterEventsResponse = DescribeClusterEventsResponse;
|
|
1682
1746
|
class DescribeClusterLogsResponse extends $tea.Model {
|
|
1683
1747
|
constructor(map) {
|
|
1684
1748
|
super(map);
|
|
@@ -1871,6 +1935,46 @@ class DescribeClusterResourcesResponse extends $tea.Model {
|
|
|
1871
1935
|
}
|
|
1872
1936
|
}
|
|
1873
1937
|
exports.DescribeClusterResourcesResponse = DescribeClusterResourcesResponse;
|
|
1938
|
+
class DescribeClusterTasksResponseBody extends $tea.Model {
|
|
1939
|
+
constructor(map) {
|
|
1940
|
+
super(map);
|
|
1941
|
+
}
|
|
1942
|
+
static names() {
|
|
1943
|
+
return {
|
|
1944
|
+
pageInfo: 'page_info',
|
|
1945
|
+
requestId: 'requestId',
|
|
1946
|
+
tasks: 'tasks',
|
|
1947
|
+
};
|
|
1948
|
+
}
|
|
1949
|
+
static types() {
|
|
1950
|
+
return {
|
|
1951
|
+
pageInfo: DescribeClusterTasksResponseBodyPageInfo,
|
|
1952
|
+
requestId: 'string',
|
|
1953
|
+
tasks: { 'type': 'array', 'itemType': DescribeClusterTasksResponseBodyTasks },
|
|
1954
|
+
};
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
exports.DescribeClusterTasksResponseBody = DescribeClusterTasksResponseBody;
|
|
1958
|
+
class DescribeClusterTasksResponse extends $tea.Model {
|
|
1959
|
+
constructor(map) {
|
|
1960
|
+
super(map);
|
|
1961
|
+
}
|
|
1962
|
+
static names() {
|
|
1963
|
+
return {
|
|
1964
|
+
headers: 'headers',
|
|
1965
|
+
statusCode: 'statusCode',
|
|
1966
|
+
body: 'body',
|
|
1967
|
+
};
|
|
1968
|
+
}
|
|
1969
|
+
static types() {
|
|
1970
|
+
return {
|
|
1971
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
1972
|
+
statusCode: 'number',
|
|
1973
|
+
body: DescribeClusterTasksResponseBody,
|
|
1974
|
+
};
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
exports.DescribeClusterTasksResponse = DescribeClusterTasksResponse;
|
|
1874
1978
|
class DescribeClusterUserKubeconfigRequest extends $tea.Model {
|
|
1875
1979
|
constructor(map) {
|
|
1876
1980
|
super(map);
|
|
@@ -3295,6 +3399,44 @@ class ListTagResourcesResponse extends $tea.Model {
|
|
|
3295
3399
|
}
|
|
3296
3400
|
}
|
|
3297
3401
|
exports.ListTagResourcesResponse = ListTagResourcesResponse;
|
|
3402
|
+
class MigrateClusterRequest extends $tea.Model {
|
|
3403
|
+
constructor(map) {
|
|
3404
|
+
super(map);
|
|
3405
|
+
}
|
|
3406
|
+
static names() {
|
|
3407
|
+
return {
|
|
3408
|
+
ossBucketEndpoint: 'oss_bucket_endpoint',
|
|
3409
|
+
ossBucketName: 'oss_bucket_name',
|
|
3410
|
+
};
|
|
3411
|
+
}
|
|
3412
|
+
static types() {
|
|
3413
|
+
return {
|
|
3414
|
+
ossBucketEndpoint: 'string',
|
|
3415
|
+
ossBucketName: 'string',
|
|
3416
|
+
};
|
|
3417
|
+
}
|
|
3418
|
+
}
|
|
3419
|
+
exports.MigrateClusterRequest = MigrateClusterRequest;
|
|
3420
|
+
class MigrateClusterResponseBody extends $tea.Model {
|
|
3421
|
+
constructor(map) {
|
|
3422
|
+
super(map);
|
|
3423
|
+
}
|
|
3424
|
+
static names() {
|
|
3425
|
+
return {
|
|
3426
|
+
clusterId: 'cluster_id',
|
|
3427
|
+
requestId: 'request_id',
|
|
3428
|
+
taskId: 'task_id',
|
|
3429
|
+
};
|
|
3430
|
+
}
|
|
3431
|
+
static types() {
|
|
3432
|
+
return {
|
|
3433
|
+
clusterId: 'string',
|
|
3434
|
+
requestId: 'string',
|
|
3435
|
+
taskId: 'string',
|
|
3436
|
+
};
|
|
3437
|
+
}
|
|
3438
|
+
}
|
|
3439
|
+
exports.MigrateClusterResponseBody = MigrateClusterResponseBody;
|
|
3298
3440
|
class MigrateClusterResponse extends $tea.Model {
|
|
3299
3441
|
constructor(map) {
|
|
3300
3442
|
super(map);
|
|
@@ -3303,12 +3445,14 @@ class MigrateClusterResponse extends $tea.Model {
|
|
|
3303
3445
|
return {
|
|
3304
3446
|
headers: 'headers',
|
|
3305
3447
|
statusCode: 'statusCode',
|
|
3448
|
+
body: 'body',
|
|
3306
3449
|
};
|
|
3307
3450
|
}
|
|
3308
3451
|
static types() {
|
|
3309
3452
|
return {
|
|
3310
3453
|
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
3311
3454
|
statusCode: 'number',
|
|
3455
|
+
body: MigrateClusterResponseBody,
|
|
3312
3456
|
};
|
|
3313
3457
|
}
|
|
3314
3458
|
}
|
|
@@ -3462,6 +3606,7 @@ class ModifyClusterNodePoolRequest extends $tea.Model {
|
|
|
3462
3606
|
autoScaling: 'auto_scaling',
|
|
3463
3607
|
kubernetesConfig: 'kubernetes_config',
|
|
3464
3608
|
management: 'management',
|
|
3609
|
+
nodeConfig: 'node_config',
|
|
3465
3610
|
nodepoolInfo: 'nodepool_info',
|
|
3466
3611
|
scalingGroup: 'scaling_group',
|
|
3467
3612
|
teeConfig: 'tee_config',
|
|
@@ -3473,6 +3618,7 @@ class ModifyClusterNodePoolRequest extends $tea.Model {
|
|
|
3473
3618
|
autoScaling: ModifyClusterNodePoolRequestAutoScaling,
|
|
3474
3619
|
kubernetesConfig: ModifyClusterNodePoolRequestKubernetesConfig,
|
|
3475
3620
|
management: ModifyClusterNodePoolRequestManagement,
|
|
3621
|
+
nodeConfig: ModifyClusterNodePoolRequestNodeConfig,
|
|
3476
3622
|
nodepoolInfo: ModifyClusterNodePoolRequestNodepoolInfo,
|
|
3477
3623
|
scalingGroup: ModifyClusterNodePoolRequestScalingGroup,
|
|
3478
3624
|
teeConfig: ModifyClusterNodePoolRequestTeeConfig,
|
|
@@ -4907,6 +5053,74 @@ class DescribeAddonsResponseBodyComponentGroups extends $tea.Model {
|
|
|
4907
5053
|
}
|
|
4908
5054
|
}
|
|
4909
5055
|
exports.DescribeAddonsResponseBodyComponentGroups = DescribeAddonsResponseBodyComponentGroups;
|
|
5056
|
+
class DescribeClusterEventsResponseBodyEventsData extends $tea.Model {
|
|
5057
|
+
constructor(map) {
|
|
5058
|
+
super(map);
|
|
5059
|
+
}
|
|
5060
|
+
static names() {
|
|
5061
|
+
return {
|
|
5062
|
+
level: 'level',
|
|
5063
|
+
message: 'message',
|
|
5064
|
+
reason: 'reason',
|
|
5065
|
+
};
|
|
5066
|
+
}
|
|
5067
|
+
static types() {
|
|
5068
|
+
return {
|
|
5069
|
+
level: 'string',
|
|
5070
|
+
message: 'string',
|
|
5071
|
+
reason: 'string',
|
|
5072
|
+
};
|
|
5073
|
+
}
|
|
5074
|
+
}
|
|
5075
|
+
exports.DescribeClusterEventsResponseBodyEventsData = DescribeClusterEventsResponseBodyEventsData;
|
|
5076
|
+
class DescribeClusterEventsResponseBodyEvents extends $tea.Model {
|
|
5077
|
+
constructor(map) {
|
|
5078
|
+
super(map);
|
|
5079
|
+
}
|
|
5080
|
+
static names() {
|
|
5081
|
+
return {
|
|
5082
|
+
clusterId: 'cluster_id',
|
|
5083
|
+
data: 'data',
|
|
5084
|
+
eventId: 'event_id',
|
|
5085
|
+
source: 'source',
|
|
5086
|
+
subject: 'subject',
|
|
5087
|
+
time: 'time',
|
|
5088
|
+
type: 'type',
|
|
5089
|
+
};
|
|
5090
|
+
}
|
|
5091
|
+
static types() {
|
|
5092
|
+
return {
|
|
5093
|
+
clusterId: 'string',
|
|
5094
|
+
data: DescribeClusterEventsResponseBodyEventsData,
|
|
5095
|
+
eventId: 'string',
|
|
5096
|
+
source: 'string',
|
|
5097
|
+
subject: 'string',
|
|
5098
|
+
time: 'string',
|
|
5099
|
+
type: 'string',
|
|
5100
|
+
};
|
|
5101
|
+
}
|
|
5102
|
+
}
|
|
5103
|
+
exports.DescribeClusterEventsResponseBodyEvents = DescribeClusterEventsResponseBodyEvents;
|
|
5104
|
+
class DescribeClusterEventsResponseBodyPageInfo extends $tea.Model {
|
|
5105
|
+
constructor(map) {
|
|
5106
|
+
super(map);
|
|
5107
|
+
}
|
|
5108
|
+
static names() {
|
|
5109
|
+
return {
|
|
5110
|
+
pageNumber: 'page_number',
|
|
5111
|
+
pageSize: 'page_size',
|
|
5112
|
+
totalCount: 'total_count',
|
|
5113
|
+
};
|
|
5114
|
+
}
|
|
5115
|
+
static types() {
|
|
5116
|
+
return {
|
|
5117
|
+
pageNumber: 'number',
|
|
5118
|
+
pageSize: 'number',
|
|
5119
|
+
totalCount: 'number',
|
|
5120
|
+
};
|
|
5121
|
+
}
|
|
5122
|
+
}
|
|
5123
|
+
exports.DescribeClusterEventsResponseBodyPageInfo = DescribeClusterEventsResponseBodyPageInfo;
|
|
4910
5124
|
class DescribeClusterLogsResponseBody extends $tea.Model {
|
|
4911
5125
|
constructor(map) {
|
|
4912
5126
|
super(map);
|
|
@@ -5667,6 +5881,70 @@ class DescribeClusterResourcesResponseBody extends $tea.Model {
|
|
|
5667
5881
|
}
|
|
5668
5882
|
}
|
|
5669
5883
|
exports.DescribeClusterResourcesResponseBody = DescribeClusterResourcesResponseBody;
|
|
5884
|
+
class DescribeClusterTasksResponseBodyPageInfo extends $tea.Model {
|
|
5885
|
+
constructor(map) {
|
|
5886
|
+
super(map);
|
|
5887
|
+
}
|
|
5888
|
+
static names() {
|
|
5889
|
+
return {
|
|
5890
|
+
pageNumber: 'page_number',
|
|
5891
|
+
pageSize: 'page_size',
|
|
5892
|
+
totalCount: 'total_count',
|
|
5893
|
+
};
|
|
5894
|
+
}
|
|
5895
|
+
static types() {
|
|
5896
|
+
return {
|
|
5897
|
+
pageNumber: 'number',
|
|
5898
|
+
pageSize: 'number',
|
|
5899
|
+
totalCount: 'number',
|
|
5900
|
+
};
|
|
5901
|
+
}
|
|
5902
|
+
}
|
|
5903
|
+
exports.DescribeClusterTasksResponseBodyPageInfo = DescribeClusterTasksResponseBodyPageInfo;
|
|
5904
|
+
class DescribeClusterTasksResponseBodyTasksError extends $tea.Model {
|
|
5905
|
+
constructor(map) {
|
|
5906
|
+
super(map);
|
|
5907
|
+
}
|
|
5908
|
+
static names() {
|
|
5909
|
+
return {
|
|
5910
|
+
code: 'code',
|
|
5911
|
+
message: 'message',
|
|
5912
|
+
};
|
|
5913
|
+
}
|
|
5914
|
+
static types() {
|
|
5915
|
+
return {
|
|
5916
|
+
code: 'string',
|
|
5917
|
+
message: 'string',
|
|
5918
|
+
};
|
|
5919
|
+
}
|
|
5920
|
+
}
|
|
5921
|
+
exports.DescribeClusterTasksResponseBodyTasksError = DescribeClusterTasksResponseBodyTasksError;
|
|
5922
|
+
class DescribeClusterTasksResponseBodyTasks extends $tea.Model {
|
|
5923
|
+
constructor(map) {
|
|
5924
|
+
super(map);
|
|
5925
|
+
}
|
|
5926
|
+
static names() {
|
|
5927
|
+
return {
|
|
5928
|
+
created: 'created',
|
|
5929
|
+
error: 'error',
|
|
5930
|
+
state: 'state',
|
|
5931
|
+
taskId: 'task_id',
|
|
5932
|
+
taskType: 'task_type',
|
|
5933
|
+
updated: 'updated',
|
|
5934
|
+
};
|
|
5935
|
+
}
|
|
5936
|
+
static types() {
|
|
5937
|
+
return {
|
|
5938
|
+
created: 'string',
|
|
5939
|
+
error: DescribeClusterTasksResponseBodyTasksError,
|
|
5940
|
+
state: 'string',
|
|
5941
|
+
taskId: 'string',
|
|
5942
|
+
taskType: 'string',
|
|
5943
|
+
updated: 'string',
|
|
5944
|
+
};
|
|
5945
|
+
}
|
|
5946
|
+
}
|
|
5947
|
+
exports.DescribeClusterTasksResponseBodyTasks = DescribeClusterTasksResponseBodyTasks;
|
|
5670
5948
|
class DescribeClustersResponseBodyTags extends $tea.Model {
|
|
5671
5949
|
constructor(map) {
|
|
5672
5950
|
super(map);
|
|
@@ -6795,6 +7073,80 @@ class ModifyClusterNodePoolRequestManagement extends $tea.Model {
|
|
|
6795
7073
|
}
|
|
6796
7074
|
}
|
|
6797
7075
|
exports.ModifyClusterNodePoolRequestManagement = ModifyClusterNodePoolRequestManagement;
|
|
7076
|
+
class ModifyClusterNodePoolRequestNodeConfigKubeletConfiguration extends $tea.Model {
|
|
7077
|
+
constructor(map) {
|
|
7078
|
+
super(map);
|
|
7079
|
+
}
|
|
7080
|
+
static names() {
|
|
7081
|
+
return {
|
|
7082
|
+
cpuManagerPolicy: 'cpuManagerPolicy',
|
|
7083
|
+
eventBurst: 'eventBurst',
|
|
7084
|
+
eventRecordQPS: 'eventRecordQPS',
|
|
7085
|
+
evictionHard: 'evictionHard',
|
|
7086
|
+
evictionSoft: 'evictionSoft',
|
|
7087
|
+
evictionSoftGracePeriod: 'evictionSoftGracePeriod',
|
|
7088
|
+
kubeAPIBurst: 'kubeAPIBurst',
|
|
7089
|
+
kubeAPIQPS: 'kubeAPIQPS',
|
|
7090
|
+
kubeReserved: 'kubeReserved',
|
|
7091
|
+
registryBurst: 'registryBurst',
|
|
7092
|
+
registryPullQPS: 'registryPullQPS',
|
|
7093
|
+
serializeImagePulls: 'serializeImagePulls',
|
|
7094
|
+
systemReserved: 'systemReserved',
|
|
7095
|
+
};
|
|
7096
|
+
}
|
|
7097
|
+
static types() {
|
|
7098
|
+
return {
|
|
7099
|
+
cpuManagerPolicy: 'string',
|
|
7100
|
+
eventBurst: 'number',
|
|
7101
|
+
eventRecordQPS: 'number',
|
|
7102
|
+
evictionHard: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
7103
|
+
evictionSoft: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
7104
|
+
evictionSoftGracePeriod: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
7105
|
+
kubeAPIBurst: 'number',
|
|
7106
|
+
kubeAPIQPS: 'number',
|
|
7107
|
+
kubeReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
7108
|
+
registryBurst: 'number',
|
|
7109
|
+
registryPullQPS: 'number',
|
|
7110
|
+
serializeImagePulls: 'boolean',
|
|
7111
|
+
systemReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
|
|
7112
|
+
};
|
|
7113
|
+
}
|
|
7114
|
+
}
|
|
7115
|
+
exports.ModifyClusterNodePoolRequestNodeConfigKubeletConfiguration = ModifyClusterNodePoolRequestNodeConfigKubeletConfiguration;
|
|
7116
|
+
class ModifyClusterNodePoolRequestNodeConfigRolloutPolicy extends $tea.Model {
|
|
7117
|
+
constructor(map) {
|
|
7118
|
+
super(map);
|
|
7119
|
+
}
|
|
7120
|
+
static names() {
|
|
7121
|
+
return {
|
|
7122
|
+
maxUnavailable: 'max_unavailable',
|
|
7123
|
+
};
|
|
7124
|
+
}
|
|
7125
|
+
static types() {
|
|
7126
|
+
return {
|
|
7127
|
+
maxUnavailable: 'number',
|
|
7128
|
+
};
|
|
7129
|
+
}
|
|
7130
|
+
}
|
|
7131
|
+
exports.ModifyClusterNodePoolRequestNodeConfigRolloutPolicy = ModifyClusterNodePoolRequestNodeConfigRolloutPolicy;
|
|
7132
|
+
class ModifyClusterNodePoolRequestNodeConfig extends $tea.Model {
|
|
7133
|
+
constructor(map) {
|
|
7134
|
+
super(map);
|
|
7135
|
+
}
|
|
7136
|
+
static names() {
|
|
7137
|
+
return {
|
|
7138
|
+
kubeletConfiguration: 'kubelet_configuration',
|
|
7139
|
+
rolloutPolicy: 'rollout_policy',
|
|
7140
|
+
};
|
|
7141
|
+
}
|
|
7142
|
+
static types() {
|
|
7143
|
+
return {
|
|
7144
|
+
kubeletConfiguration: ModifyClusterNodePoolRequestNodeConfigKubeletConfiguration,
|
|
7145
|
+
rolloutPolicy: ModifyClusterNodePoolRequestNodeConfigRolloutPolicy,
|
|
7146
|
+
};
|
|
7147
|
+
}
|
|
7148
|
+
}
|
|
7149
|
+
exports.ModifyClusterNodePoolRequestNodeConfig = ModifyClusterNodePoolRequestNodeConfig;
|
|
6798
7150
|
class ModifyClusterNodePoolRequestNodepoolInfo extends $tea.Model {
|
|
6799
7151
|
constructor(map) {
|
|
6800
7152
|
super(map);
|
|
@@ -7313,6 +7665,9 @@ class Client extends openapi_client_1.default {
|
|
|
7313
7665
|
if (!tea_util_1.default.isUnset(request.apiAudiences)) {
|
|
7314
7666
|
body["api_audiences"] = request.apiAudiences;
|
|
7315
7667
|
}
|
|
7668
|
+
if (!tea_util_1.default.isUnset(request.chargeType)) {
|
|
7669
|
+
body["charge_type"] = request.chargeType;
|
|
7670
|
+
}
|
|
7316
7671
|
if (!tea_util_1.default.isUnset(request.cisEnabled)) {
|
|
7317
7672
|
body["cis_enabled"] = request.cisEnabled;
|
|
7318
7673
|
}
|
|
@@ -7451,6 +7806,12 @@ class Client extends openapi_client_1.default {
|
|
|
7451
7806
|
if (!tea_util_1.default.isUnset(request.osType)) {
|
|
7452
7807
|
body["os_type"] = request.osType;
|
|
7453
7808
|
}
|
|
7809
|
+
if (!tea_util_1.default.isUnset(request.period)) {
|
|
7810
|
+
body["period"] = request.period;
|
|
7811
|
+
}
|
|
7812
|
+
if (!tea_util_1.default.isUnset(request.periodUnit)) {
|
|
7813
|
+
body["period_unit"] = request.periodUnit;
|
|
7814
|
+
}
|
|
7454
7815
|
if (!tea_util_1.default.isUnset(request.platform)) {
|
|
7455
7816
|
body["platform"] = request.platform;
|
|
7456
7817
|
}
|
|
@@ -8322,6 +8683,41 @@ class Client extends openapi_client_1.default {
|
|
|
8322
8683
|
});
|
|
8323
8684
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterDetailResponse({}));
|
|
8324
8685
|
}
|
|
8686
|
+
async describeClusterEvents(ClusterId, request) {
|
|
8687
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
8688
|
+
let headers = {};
|
|
8689
|
+
return await this.describeClusterEventsWithOptions(ClusterId, request, headers, runtime);
|
|
8690
|
+
}
|
|
8691
|
+
async describeClusterEventsWithOptions(ClusterId, request, headers, runtime) {
|
|
8692
|
+
tea_util_1.default.validateModel(request);
|
|
8693
|
+
ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
|
|
8694
|
+
let query = {};
|
|
8695
|
+
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
8696
|
+
query["page_number"] = request.pageNumber;
|
|
8697
|
+
}
|
|
8698
|
+
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
8699
|
+
query["page_size"] = request.pageSize;
|
|
8700
|
+
}
|
|
8701
|
+
if (!tea_util_1.default.isUnset(request.taskId)) {
|
|
8702
|
+
query["task_id"] = request.taskId;
|
|
8703
|
+
}
|
|
8704
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
8705
|
+
headers: headers,
|
|
8706
|
+
query: openapi_util_1.default.query(query),
|
|
8707
|
+
});
|
|
8708
|
+
let params = new $OpenApi.Params({
|
|
8709
|
+
action: "DescribeClusterEvents",
|
|
8710
|
+
version: "2015-12-15",
|
|
8711
|
+
protocol: "HTTPS",
|
|
8712
|
+
pathname: `/clusters/${ClusterId}/events`,
|
|
8713
|
+
method: "GET",
|
|
8714
|
+
authType: "AK",
|
|
8715
|
+
style: "ROA",
|
|
8716
|
+
reqBodyType: "json",
|
|
8717
|
+
bodyType: "json",
|
|
8718
|
+
});
|
|
8719
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterEventsResponse({}));
|
|
8720
|
+
}
|
|
8325
8721
|
async describeClusterLogs(ClusterId) {
|
|
8326
8722
|
let runtime = new $Util.RuntimeOptions({});
|
|
8327
8723
|
let headers = {};
|
|
@@ -8456,6 +8852,29 @@ class Client extends openapi_client_1.default {
|
|
|
8456
8852
|
});
|
|
8457
8853
|
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterResourcesResponse({}));
|
|
8458
8854
|
}
|
|
8855
|
+
async describeClusterTasks(clusterId) {
|
|
8856
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
8857
|
+
let headers = {};
|
|
8858
|
+
return await this.describeClusterTasksWithOptions(clusterId, headers, runtime);
|
|
8859
|
+
}
|
|
8860
|
+
async describeClusterTasksWithOptions(clusterId, headers, runtime) {
|
|
8861
|
+
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
8862
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
8863
|
+
headers: headers,
|
|
8864
|
+
});
|
|
8865
|
+
let params = new $OpenApi.Params({
|
|
8866
|
+
action: "DescribeClusterTasks",
|
|
8867
|
+
version: "2015-12-15",
|
|
8868
|
+
protocol: "HTTPS",
|
|
8869
|
+
pathname: `/clusters/${clusterId}/tasks`,
|
|
8870
|
+
method: "GET",
|
|
8871
|
+
authType: "AK",
|
|
8872
|
+
style: "ROA",
|
|
8873
|
+
reqBodyType: "json",
|
|
8874
|
+
bodyType: "json",
|
|
8875
|
+
});
|
|
8876
|
+
return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterTasksResponse({}));
|
|
8877
|
+
}
|
|
8459
8878
|
async describeClusterUserKubeconfig(ClusterId, request) {
|
|
8460
8879
|
let runtime = new $Util.RuntimeOptions({});
|
|
8461
8880
|
let headers = {};
|
|
@@ -9380,15 +9799,24 @@ class Client extends openapi_client_1.default {
|
|
|
9380
9799
|
});
|
|
9381
9800
|
return $tea.cast(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
|
|
9382
9801
|
}
|
|
9383
|
-
async migrateCluster(clusterId) {
|
|
9802
|
+
async migrateCluster(clusterId, request) {
|
|
9384
9803
|
let runtime = new $Util.RuntimeOptions({});
|
|
9385
9804
|
let headers = {};
|
|
9386
|
-
return await this.migrateClusterWithOptions(clusterId, headers, runtime);
|
|
9805
|
+
return await this.migrateClusterWithOptions(clusterId, request, headers, runtime);
|
|
9387
9806
|
}
|
|
9388
|
-
async migrateClusterWithOptions(clusterId, headers, runtime) {
|
|
9807
|
+
async migrateClusterWithOptions(clusterId, request, headers, runtime) {
|
|
9808
|
+
tea_util_1.default.validateModel(request);
|
|
9389
9809
|
clusterId = openapi_util_1.default.getEncodeParam(clusterId);
|
|
9810
|
+
let body = {};
|
|
9811
|
+
if (!tea_util_1.default.isUnset(request.ossBucketEndpoint)) {
|
|
9812
|
+
body["oss_bucket_endpoint"] = request.ossBucketEndpoint;
|
|
9813
|
+
}
|
|
9814
|
+
if (!tea_util_1.default.isUnset(request.ossBucketName)) {
|
|
9815
|
+
body["oss_bucket_name"] = request.ossBucketName;
|
|
9816
|
+
}
|
|
9390
9817
|
let req = new $OpenApi.OpenApiRequest({
|
|
9391
9818
|
headers: headers,
|
|
9819
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
9392
9820
|
});
|
|
9393
9821
|
let params = new $OpenApi.Params({
|
|
9394
9822
|
action: "MigrateCluster",
|
|
@@ -9399,7 +9827,7 @@ class Client extends openapi_client_1.default {
|
|
|
9399
9827
|
authType: "AK",
|
|
9400
9828
|
style: "ROA",
|
|
9401
9829
|
reqBodyType: "json",
|
|
9402
|
-
bodyType: "
|
|
9830
|
+
bodyType: "json",
|
|
9403
9831
|
});
|
|
9404
9832
|
return $tea.cast(await this.callApi(params, req, runtime), new MigrateClusterResponse({}));
|
|
9405
9833
|
}
|
|
@@ -9534,6 +9962,9 @@ class Client extends openapi_client_1.default {
|
|
|
9534
9962
|
if (!tea_util_1.default.isUnset($tea.toMap(request.management))) {
|
|
9535
9963
|
body["management"] = request.management;
|
|
9536
9964
|
}
|
|
9965
|
+
if (!tea_util_1.default.isUnset($tea.toMap(request.nodeConfig))) {
|
|
9966
|
+
body["node_config"] = request.nodeConfig;
|
|
9967
|
+
}
|
|
9537
9968
|
if (!tea_util_1.default.isUnset($tea.toMap(request.nodepoolInfo))) {
|
|
9538
9969
|
body["nodepool_info"] = request.nodepoolInfo;
|
|
9539
9970
|
}
|