@alicloud/cs20151215 3.0.13 → 3.0.16

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.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);
@@ -2438,11 +2542,13 @@ class DescribeNodePoolVulsResponseBody extends $tea.Model {
2438
2542
  static names() {
2439
2543
  return {
2440
2544
  vulRecords: 'vul_records',
2545
+ vulsFixServicePurchased: 'vuls_fix_service_purchased',
2441
2546
  };
2442
2547
  }
2443
2548
  static types() {
2444
2549
  return {
2445
2550
  vulRecords: { 'type': 'array', 'itemType': DescribeNodePoolVulsResponseBodyVulRecords },
2551
+ vulsFixServicePurchased: 'boolean',
2446
2552
  };
2447
2553
  }
2448
2554
  }
@@ -2663,7 +2769,13 @@ class DescribeTaskInfoResponseBody extends $tea.Model {
2663
2769
  return {
2664
2770
  clusterId: 'cluster_id',
2665
2771
  created: 'created',
2772
+ currentStage: 'current_stage',
2773
+ error: 'error',
2774
+ events: 'events',
2775
+ parameters: 'parameters',
2776
+ stages: 'stages',
2666
2777
  state: 'state',
2778
+ target: 'target',
2667
2779
  taskId: 'task_id',
2668
2780
  taskResult: 'task_result',
2669
2781
  taskType: 'task_type',
@@ -2674,7 +2786,13 @@ class DescribeTaskInfoResponseBody extends $tea.Model {
2674
2786
  return {
2675
2787
  clusterId: 'string',
2676
2788
  created: 'string',
2789
+ currentStage: 'string',
2790
+ error: DescribeTaskInfoResponseBodyError,
2791
+ events: { 'type': 'array', 'itemType': DescribeTaskInfoResponseBodyEvents },
2792
+ parameters: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
2793
+ stages: { 'type': 'array', 'itemType': DescribeTaskInfoResponseBodyStages },
2677
2794
  state: 'string',
2795
+ target: DescribeTaskInfoResponseBodyTarget,
2678
2796
  taskId: 'string',
2679
2797
  taskResult: { 'type': 'array', 'itemType': DescribeTaskInfoResponseBodyTaskResult },
2680
2798
  taskType: 'string',
@@ -3295,6 +3413,44 @@ class ListTagResourcesResponse extends $tea.Model {
3295
3413
  }
3296
3414
  }
3297
3415
  exports.ListTagResourcesResponse = ListTagResourcesResponse;
3416
+ class MigrateClusterRequest extends $tea.Model {
3417
+ constructor(map) {
3418
+ super(map);
3419
+ }
3420
+ static names() {
3421
+ return {
3422
+ ossBucketEndpoint: 'oss_bucket_endpoint',
3423
+ ossBucketName: 'oss_bucket_name',
3424
+ };
3425
+ }
3426
+ static types() {
3427
+ return {
3428
+ ossBucketEndpoint: 'string',
3429
+ ossBucketName: 'string',
3430
+ };
3431
+ }
3432
+ }
3433
+ exports.MigrateClusterRequest = MigrateClusterRequest;
3434
+ class MigrateClusterResponseBody extends $tea.Model {
3435
+ constructor(map) {
3436
+ super(map);
3437
+ }
3438
+ static names() {
3439
+ return {
3440
+ clusterId: 'cluster_id',
3441
+ requestId: 'request_id',
3442
+ taskId: 'task_id',
3443
+ };
3444
+ }
3445
+ static types() {
3446
+ return {
3447
+ clusterId: 'string',
3448
+ requestId: 'string',
3449
+ taskId: 'string',
3450
+ };
3451
+ }
3452
+ }
3453
+ exports.MigrateClusterResponseBody = MigrateClusterResponseBody;
3298
3454
  class MigrateClusterResponse extends $tea.Model {
3299
3455
  constructor(map) {
3300
3456
  super(map);
@@ -3303,12 +3459,14 @@ class MigrateClusterResponse extends $tea.Model {
3303
3459
  return {
3304
3460
  headers: 'headers',
3305
3461
  statusCode: 'statusCode',
3462
+ body: 'body',
3306
3463
  };
3307
3464
  }
3308
3465
  static types() {
3309
3466
  return {
3310
3467
  headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3311
3468
  statusCode: 'number',
3469
+ body: MigrateClusterResponseBody,
3312
3470
  };
3313
3471
  }
3314
3472
  }
@@ -3553,6 +3711,64 @@ class ModifyClusterTagsResponse extends $tea.Model {
3553
3711
  }
3554
3712
  }
3555
3713
  exports.ModifyClusterTagsResponse = ModifyClusterTagsResponse;
3714
+ class ModifyNodePoolNodeConfigRequest extends $tea.Model {
3715
+ constructor(map) {
3716
+ super(map);
3717
+ }
3718
+ static names() {
3719
+ return {
3720
+ kubeletConfig: 'kubelet_config',
3721
+ rollingPolicy: 'rolling_policy',
3722
+ };
3723
+ }
3724
+ static types() {
3725
+ return {
3726
+ kubeletConfig: ModifyNodePoolNodeConfigRequestKubeletConfig,
3727
+ rollingPolicy: ModifyNodePoolNodeConfigRequestRollingPolicy,
3728
+ };
3729
+ }
3730
+ }
3731
+ exports.ModifyNodePoolNodeConfigRequest = ModifyNodePoolNodeConfigRequest;
3732
+ class ModifyNodePoolNodeConfigResponseBody extends $tea.Model {
3733
+ constructor(map) {
3734
+ super(map);
3735
+ }
3736
+ static names() {
3737
+ return {
3738
+ nodepoolId: 'nodepool_id',
3739
+ requestId: 'request_id',
3740
+ taskId: 'task_id',
3741
+ };
3742
+ }
3743
+ static types() {
3744
+ return {
3745
+ nodepoolId: 'string',
3746
+ requestId: 'string',
3747
+ taskId: 'string',
3748
+ };
3749
+ }
3750
+ }
3751
+ exports.ModifyNodePoolNodeConfigResponseBody = ModifyNodePoolNodeConfigResponseBody;
3752
+ class ModifyNodePoolNodeConfigResponse extends $tea.Model {
3753
+ constructor(map) {
3754
+ super(map);
3755
+ }
3756
+ static names() {
3757
+ return {
3758
+ headers: 'headers',
3759
+ statusCode: 'statusCode',
3760
+ body: 'body',
3761
+ };
3762
+ }
3763
+ static types() {
3764
+ return {
3765
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3766
+ statusCode: 'number',
3767
+ body: ModifyNodePoolNodeConfigResponseBody,
3768
+ };
3769
+ }
3770
+ }
3771
+ exports.ModifyNodePoolNodeConfigResponse = ModifyNodePoolNodeConfigResponse;
3556
3772
  class ModifyPolicyInstanceRequest extends $tea.Model {
3557
3773
  constructor(map) {
3558
3774
  super(map);
@@ -4907,6 +5123,74 @@ class DescribeAddonsResponseBodyComponentGroups extends $tea.Model {
4907
5123
  }
4908
5124
  }
4909
5125
  exports.DescribeAddonsResponseBodyComponentGroups = DescribeAddonsResponseBodyComponentGroups;
5126
+ class DescribeClusterEventsResponseBodyEventsData extends $tea.Model {
5127
+ constructor(map) {
5128
+ super(map);
5129
+ }
5130
+ static names() {
5131
+ return {
5132
+ level: 'level',
5133
+ message: 'message',
5134
+ reason: 'reason',
5135
+ };
5136
+ }
5137
+ static types() {
5138
+ return {
5139
+ level: 'string',
5140
+ message: 'string',
5141
+ reason: 'string',
5142
+ };
5143
+ }
5144
+ }
5145
+ exports.DescribeClusterEventsResponseBodyEventsData = DescribeClusterEventsResponseBodyEventsData;
5146
+ class DescribeClusterEventsResponseBodyEvents extends $tea.Model {
5147
+ constructor(map) {
5148
+ super(map);
5149
+ }
5150
+ static names() {
5151
+ return {
5152
+ clusterId: 'cluster_id',
5153
+ data: 'data',
5154
+ eventId: 'event_id',
5155
+ source: 'source',
5156
+ subject: 'subject',
5157
+ time: 'time',
5158
+ type: 'type',
5159
+ };
5160
+ }
5161
+ static types() {
5162
+ return {
5163
+ clusterId: 'string',
5164
+ data: DescribeClusterEventsResponseBodyEventsData,
5165
+ eventId: 'string',
5166
+ source: 'string',
5167
+ subject: 'string',
5168
+ time: 'string',
5169
+ type: 'string',
5170
+ };
5171
+ }
5172
+ }
5173
+ exports.DescribeClusterEventsResponseBodyEvents = DescribeClusterEventsResponseBodyEvents;
5174
+ class DescribeClusterEventsResponseBodyPageInfo extends $tea.Model {
5175
+ constructor(map) {
5176
+ super(map);
5177
+ }
5178
+ static names() {
5179
+ return {
5180
+ pageNumber: 'page_number',
5181
+ pageSize: 'page_size',
5182
+ totalCount: 'total_count',
5183
+ };
5184
+ }
5185
+ static types() {
5186
+ return {
5187
+ pageNumber: 'number',
5188
+ pageSize: 'number',
5189
+ totalCount: 'number',
5190
+ };
5191
+ }
5192
+ }
5193
+ exports.DescribeClusterEventsResponseBodyPageInfo = DescribeClusterEventsResponseBodyPageInfo;
4910
5194
  class DescribeClusterLogsResponseBody extends $tea.Model {
4911
5195
  constructor(map) {
4912
5196
  super(map);
@@ -5667,6 +5951,70 @@ class DescribeClusterResourcesResponseBody extends $tea.Model {
5667
5951
  }
5668
5952
  }
5669
5953
  exports.DescribeClusterResourcesResponseBody = DescribeClusterResourcesResponseBody;
5954
+ class DescribeClusterTasksResponseBodyPageInfo extends $tea.Model {
5955
+ constructor(map) {
5956
+ super(map);
5957
+ }
5958
+ static names() {
5959
+ return {
5960
+ pageNumber: 'page_number',
5961
+ pageSize: 'page_size',
5962
+ totalCount: 'total_count',
5963
+ };
5964
+ }
5965
+ static types() {
5966
+ return {
5967
+ pageNumber: 'number',
5968
+ pageSize: 'number',
5969
+ totalCount: 'number',
5970
+ };
5971
+ }
5972
+ }
5973
+ exports.DescribeClusterTasksResponseBodyPageInfo = DescribeClusterTasksResponseBodyPageInfo;
5974
+ class DescribeClusterTasksResponseBodyTasksError extends $tea.Model {
5975
+ constructor(map) {
5976
+ super(map);
5977
+ }
5978
+ static names() {
5979
+ return {
5980
+ code: 'code',
5981
+ message: 'message',
5982
+ };
5983
+ }
5984
+ static types() {
5985
+ return {
5986
+ code: 'string',
5987
+ message: 'string',
5988
+ };
5989
+ }
5990
+ }
5991
+ exports.DescribeClusterTasksResponseBodyTasksError = DescribeClusterTasksResponseBodyTasksError;
5992
+ class DescribeClusterTasksResponseBodyTasks extends $tea.Model {
5993
+ constructor(map) {
5994
+ super(map);
5995
+ }
5996
+ static names() {
5997
+ return {
5998
+ created: 'created',
5999
+ error: 'error',
6000
+ state: 'state',
6001
+ taskId: 'task_id',
6002
+ taskType: 'task_type',
6003
+ updated: 'updated',
6004
+ };
6005
+ }
6006
+ static types() {
6007
+ return {
6008
+ created: 'string',
6009
+ error: DescribeClusterTasksResponseBodyTasksError,
6010
+ state: 'string',
6011
+ taskId: 'string',
6012
+ taskType: 'string',
6013
+ updated: 'string',
6014
+ };
6015
+ }
6016
+ }
6017
+ exports.DescribeClusterTasksResponseBodyTasks = DescribeClusterTasksResponseBodyTasks;
5670
6018
  class DescribeClustersResponseBodyTags extends $tea.Model {
5671
6019
  constructor(map) {
5672
6020
  super(map);
@@ -6335,6 +6683,92 @@ class DescribePolicyInstancesStatusResponseBodyPolicyInstances extends $tea.Mode
6335
6683
  }
6336
6684
  }
6337
6685
  exports.DescribePolicyInstancesStatusResponseBodyPolicyInstances = DescribePolicyInstancesStatusResponseBodyPolicyInstances;
6686
+ class DescribeTaskInfoResponseBodyError extends $tea.Model {
6687
+ constructor(map) {
6688
+ super(map);
6689
+ }
6690
+ static names() {
6691
+ return {
6692
+ code: 'code',
6693
+ message: 'message',
6694
+ };
6695
+ }
6696
+ static types() {
6697
+ return {
6698
+ code: 'string',
6699
+ message: 'string',
6700
+ };
6701
+ }
6702
+ }
6703
+ exports.DescribeTaskInfoResponseBodyError = DescribeTaskInfoResponseBodyError;
6704
+ class DescribeTaskInfoResponseBodyEvents extends $tea.Model {
6705
+ constructor(map) {
6706
+ super(map);
6707
+ }
6708
+ static names() {
6709
+ return {
6710
+ action: 'action',
6711
+ level: 'level',
6712
+ message: 'message',
6713
+ reason: 'reason',
6714
+ source: 'source',
6715
+ timestamp: 'timestamp',
6716
+ };
6717
+ }
6718
+ static types() {
6719
+ return {
6720
+ action: 'string',
6721
+ level: 'string',
6722
+ message: 'string',
6723
+ reason: 'string',
6724
+ source: 'string',
6725
+ timestamp: 'string',
6726
+ };
6727
+ }
6728
+ }
6729
+ exports.DescribeTaskInfoResponseBodyEvents = DescribeTaskInfoResponseBodyEvents;
6730
+ class DescribeTaskInfoResponseBodyStages extends $tea.Model {
6731
+ constructor(map) {
6732
+ super(map);
6733
+ }
6734
+ static names() {
6735
+ return {
6736
+ endTime: 'end_time',
6737
+ message: 'message',
6738
+ outputs: 'outputs',
6739
+ startTime: 'start_time',
6740
+ state: 'state',
6741
+ };
6742
+ }
6743
+ static types() {
6744
+ return {
6745
+ endTime: 'string',
6746
+ message: 'string',
6747
+ outputs: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
6748
+ startTime: 'string',
6749
+ state: 'string',
6750
+ };
6751
+ }
6752
+ }
6753
+ exports.DescribeTaskInfoResponseBodyStages = DescribeTaskInfoResponseBodyStages;
6754
+ class DescribeTaskInfoResponseBodyTarget extends $tea.Model {
6755
+ constructor(map) {
6756
+ super(map);
6757
+ }
6758
+ static names() {
6759
+ return {
6760
+ id: 'id',
6761
+ type: 'type',
6762
+ };
6763
+ }
6764
+ static types() {
6765
+ return {
6766
+ id: 'string',
6767
+ type: 'string',
6768
+ };
6769
+ }
6770
+ }
6771
+ exports.DescribeTaskInfoResponseBodyTarget = DescribeTaskInfoResponseBodyTarget;
6338
6772
  class DescribeTaskInfoResponseBodyTaskResult extends $tea.Model {
6339
6773
  constructor(map) {
6340
6774
  super(map);
@@ -6919,6 +7353,62 @@ class ModifyClusterNodePoolRequestTeeConfig extends $tea.Model {
6919
7353
  }
6920
7354
  }
6921
7355
  exports.ModifyClusterNodePoolRequestTeeConfig = ModifyClusterNodePoolRequestTeeConfig;
7356
+ class ModifyNodePoolNodeConfigRequestKubeletConfig extends $tea.Model {
7357
+ constructor(map) {
7358
+ super(map);
7359
+ }
7360
+ static names() {
7361
+ return {
7362
+ cpuManagerPolicy: 'cpuManagerPolicy',
7363
+ eventBurst: 'eventBurst',
7364
+ eventRecordQPS: 'eventRecordQPS',
7365
+ evictionHard: 'evictionHard',
7366
+ evictionSoft: 'evictionSoft',
7367
+ evictionSoftGracePeriod: 'evictionSoftGracePeriod',
7368
+ kubeAPIBurst: 'kubeAPIBurst',
7369
+ kubeAPIQPS: 'kubeAPIQPS',
7370
+ kubeReserved: 'kubeReserved',
7371
+ registryBurst: 'registryBurst',
7372
+ registryPullQPS: 'registryPullQPS',
7373
+ serializeImagePulls: 'serializeImagePulls',
7374
+ systemReserved: 'systemReserved',
7375
+ };
7376
+ }
7377
+ static types() {
7378
+ return {
7379
+ cpuManagerPolicy: 'string',
7380
+ eventBurst: 'number',
7381
+ eventRecordQPS: 'number',
7382
+ evictionHard: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
7383
+ evictionSoft: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
7384
+ evictionSoftGracePeriod: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
7385
+ kubeAPIBurst: 'number',
7386
+ kubeAPIQPS: 'number',
7387
+ kubeReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
7388
+ registryBurst: 'number',
7389
+ registryPullQPS: 'number',
7390
+ serializeImagePulls: 'boolean',
7391
+ systemReserved: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
7392
+ };
7393
+ }
7394
+ }
7395
+ exports.ModifyNodePoolNodeConfigRequestKubeletConfig = ModifyNodePoolNodeConfigRequestKubeletConfig;
7396
+ class ModifyNodePoolNodeConfigRequestRollingPolicy extends $tea.Model {
7397
+ constructor(map) {
7398
+ super(map);
7399
+ }
7400
+ static names() {
7401
+ return {
7402
+ maxParallelism: 'max_parallelism',
7403
+ };
7404
+ }
7405
+ static types() {
7406
+ return {
7407
+ maxParallelism: 'number',
7408
+ };
7409
+ }
7410
+ }
7411
+ exports.ModifyNodePoolNodeConfigRequestRollingPolicy = ModifyNodePoolNodeConfigRequestRollingPolicy;
6922
7412
  class ScaleClusterRequestTags extends $tea.Model {
6923
7413
  constructor(map) {
6924
7414
  super(map);
@@ -7038,10 +7528,10 @@ exports.UpgradeClusterAddonsRequestBody = UpgradeClusterAddonsRequestBody;
7038
7528
  class Client extends openapi_client_1.default {
7039
7529
  constructor(config) {
7040
7530
  super(config);
7531
+ this._signatureAlgorithm = "v2";
7041
7532
  this._endpointRule = "regional";
7042
7533
  this._endpointMap = {
7043
7534
  'ap-northeast-2-pop': "cs.aliyuncs.com",
7044
- 'cn-beijing-finance-1': "cs.aliyuncs.com",
7045
7535
  'cn-beijing-finance-pop': "cs.aliyuncs.com",
7046
7536
  'cn-beijing-gov-1': "cs.aliyuncs.com",
7047
7537
  'cn-beijing-nu16-b01': "cs.aliyuncs.com",
@@ -7049,21 +7539,17 @@ class Client extends openapi_client_1.default {
7049
7539
  'cn-fujian': "cs.aliyuncs.com",
7050
7540
  'cn-haidian-cm12-c01': "cs.aliyuncs.com",
7051
7541
  'cn-hangzhou-bj-b01': "cs.aliyuncs.com",
7052
- 'cn-hangzhou-finance': "cs-vpc.cn-hangzhou-finance.aliyuncs.com",
7053
7542
  'cn-hangzhou-internal-prod-1': "cs.aliyuncs.com",
7054
7543
  'cn-hangzhou-internal-test-1': "cs.aliyuncs.com",
7055
7544
  'cn-hangzhou-internal-test-2': "cs.aliyuncs.com",
7056
7545
  'cn-hangzhou-internal-test-3': "cs.aliyuncs.com",
7057
7546
  'cn-hangzhou-test-306': "cs.aliyuncs.com",
7058
7547
  'cn-hongkong-finance-pop': "cs.aliyuncs.com",
7059
- 'cn-huhehaote-nebula-1': "cs.aliyuncs.com",
7060
7548
  'cn-qingdao-nebula': "cs.aliyuncs.com",
7061
7549
  'cn-shanghai-et15-b01': "cs.aliyuncs.com",
7062
7550
  'cn-shanghai-et2-b01': "cs.aliyuncs.com",
7063
- 'cn-shanghai-finance-1': "cs-vpc.cn-shanghai-finance-1.aliyuncs.com",
7064
7551
  'cn-shanghai-inner': "cs.aliyuncs.com",
7065
7552
  'cn-shanghai-internal-test-1': "cs.aliyuncs.com",
7066
- 'cn-shenzhen-finance-1': "cs-vpc.cn-shenzhen-finance-1.aliyuncs.com",
7067
7553
  'cn-shenzhen-inner': "cs.aliyuncs.com",
7068
7554
  'cn-shenzhen-st4-d01': "cs.aliyuncs.com",
7069
7555
  'cn-shenzhen-su18-b01': "cs.aliyuncs.com",
@@ -7313,6 +7799,9 @@ class Client extends openapi_client_1.default {
7313
7799
  if (!tea_util_1.default.isUnset(request.apiAudiences)) {
7314
7800
  body["api_audiences"] = request.apiAudiences;
7315
7801
  }
7802
+ if (!tea_util_1.default.isUnset(request.chargeType)) {
7803
+ body["charge_type"] = request.chargeType;
7804
+ }
7316
7805
  if (!tea_util_1.default.isUnset(request.cisEnabled)) {
7317
7806
  body["cis_enabled"] = request.cisEnabled;
7318
7807
  }
@@ -7451,6 +7940,12 @@ class Client extends openapi_client_1.default {
7451
7940
  if (!tea_util_1.default.isUnset(request.osType)) {
7452
7941
  body["os_type"] = request.osType;
7453
7942
  }
7943
+ if (!tea_util_1.default.isUnset(request.period)) {
7944
+ body["period"] = request.period;
7945
+ }
7946
+ if (!tea_util_1.default.isUnset(request.periodUnit)) {
7947
+ body["period_unit"] = request.periodUnit;
7948
+ }
7454
7949
  if (!tea_util_1.default.isUnset(request.platform)) {
7455
7950
  body["platform"] = request.platform;
7456
7951
  }
@@ -8322,6 +8817,41 @@ class Client extends openapi_client_1.default {
8322
8817
  });
8323
8818
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterDetailResponse({}));
8324
8819
  }
8820
+ async describeClusterEvents(ClusterId, request) {
8821
+ let runtime = new $Util.RuntimeOptions({});
8822
+ let headers = {};
8823
+ return await this.describeClusterEventsWithOptions(ClusterId, request, headers, runtime);
8824
+ }
8825
+ async describeClusterEventsWithOptions(ClusterId, request, headers, runtime) {
8826
+ tea_util_1.default.validateModel(request);
8827
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
8828
+ let query = {};
8829
+ if (!tea_util_1.default.isUnset(request.pageNumber)) {
8830
+ query["page_number"] = request.pageNumber;
8831
+ }
8832
+ if (!tea_util_1.default.isUnset(request.pageSize)) {
8833
+ query["page_size"] = request.pageSize;
8834
+ }
8835
+ if (!tea_util_1.default.isUnset(request.taskId)) {
8836
+ query["task_id"] = request.taskId;
8837
+ }
8838
+ let req = new $OpenApi.OpenApiRequest({
8839
+ headers: headers,
8840
+ query: openapi_util_1.default.query(query),
8841
+ });
8842
+ let params = new $OpenApi.Params({
8843
+ action: "DescribeClusterEvents",
8844
+ version: "2015-12-15",
8845
+ protocol: "HTTPS",
8846
+ pathname: `/clusters/${ClusterId}/events`,
8847
+ method: "GET",
8848
+ authType: "AK",
8849
+ style: "ROA",
8850
+ reqBodyType: "json",
8851
+ bodyType: "json",
8852
+ });
8853
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterEventsResponse({}));
8854
+ }
8325
8855
  async describeClusterLogs(ClusterId) {
8326
8856
  let runtime = new $Util.RuntimeOptions({});
8327
8857
  let headers = {};
@@ -8456,6 +8986,29 @@ class Client extends openapi_client_1.default {
8456
8986
  });
8457
8987
  return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterResourcesResponse({}));
8458
8988
  }
8989
+ async describeClusterTasks(clusterId) {
8990
+ let runtime = new $Util.RuntimeOptions({});
8991
+ let headers = {};
8992
+ return await this.describeClusterTasksWithOptions(clusterId, headers, runtime);
8993
+ }
8994
+ async describeClusterTasksWithOptions(clusterId, headers, runtime) {
8995
+ clusterId = openapi_util_1.default.getEncodeParam(clusterId);
8996
+ let req = new $OpenApi.OpenApiRequest({
8997
+ headers: headers,
8998
+ });
8999
+ let params = new $OpenApi.Params({
9000
+ action: "DescribeClusterTasks",
9001
+ version: "2015-12-15",
9002
+ protocol: "HTTPS",
9003
+ pathname: `/clusters/${clusterId}/tasks`,
9004
+ method: "GET",
9005
+ authType: "AK",
9006
+ style: "ROA",
9007
+ reqBodyType: "json",
9008
+ bodyType: "json",
9009
+ });
9010
+ return $tea.cast(await this.callApi(params, req, runtime), new DescribeClusterTasksResponse({}));
9011
+ }
8459
9012
  async describeClusterUserKubeconfig(ClusterId, request) {
8460
9013
  let runtime = new $Util.RuntimeOptions({});
8461
9014
  let headers = {};
@@ -9380,15 +9933,24 @@ class Client extends openapi_client_1.default {
9380
9933
  });
9381
9934
  return $tea.cast(await this.callApi(params, req, runtime), new ListTagResourcesResponse({}));
9382
9935
  }
9383
- async migrateCluster(clusterId) {
9936
+ async migrateCluster(clusterId, request) {
9384
9937
  let runtime = new $Util.RuntimeOptions({});
9385
9938
  let headers = {};
9386
- return await this.migrateClusterWithOptions(clusterId, headers, runtime);
9939
+ return await this.migrateClusterWithOptions(clusterId, request, headers, runtime);
9387
9940
  }
9388
- async migrateClusterWithOptions(clusterId, headers, runtime) {
9941
+ async migrateClusterWithOptions(clusterId, request, headers, runtime) {
9942
+ tea_util_1.default.validateModel(request);
9389
9943
  clusterId = openapi_util_1.default.getEncodeParam(clusterId);
9944
+ let body = {};
9945
+ if (!tea_util_1.default.isUnset(request.ossBucketEndpoint)) {
9946
+ body["oss_bucket_endpoint"] = request.ossBucketEndpoint;
9947
+ }
9948
+ if (!tea_util_1.default.isUnset(request.ossBucketName)) {
9949
+ body["oss_bucket_name"] = request.ossBucketName;
9950
+ }
9390
9951
  let req = new $OpenApi.OpenApiRequest({
9391
9952
  headers: headers,
9953
+ body: openapi_util_1.default.parseToMap(body),
9392
9954
  });
9393
9955
  let params = new $OpenApi.Params({
9394
9956
  action: "MigrateCluster",
@@ -9399,7 +9961,7 @@ class Client extends openapi_client_1.default {
9399
9961
  authType: "AK",
9400
9962
  style: "ROA",
9401
9963
  reqBodyType: "json",
9402
- bodyType: "none",
9964
+ bodyType: "json",
9403
9965
  });
9404
9966
  return $tea.cast(await this.callApi(params, req, runtime), new MigrateClusterResponse({}));
9405
9967
  }
@@ -9588,6 +10150,39 @@ class Client extends openapi_client_1.default {
9588
10150
  });
9589
10151
  return $tea.cast(await this.callApi(params, req, runtime), new ModifyClusterTagsResponse({}));
9590
10152
  }
10153
+ async modifyNodePoolNodeConfig(ClusterId, NodepoolId, request) {
10154
+ let runtime = new $Util.RuntimeOptions({});
10155
+ let headers = {};
10156
+ return await this.modifyNodePoolNodeConfigWithOptions(ClusterId, NodepoolId, request, headers, runtime);
10157
+ }
10158
+ async modifyNodePoolNodeConfigWithOptions(ClusterId, NodepoolId, request, headers, runtime) {
10159
+ tea_util_1.default.validateModel(request);
10160
+ ClusterId = openapi_util_1.default.getEncodeParam(ClusterId);
10161
+ NodepoolId = openapi_util_1.default.getEncodeParam(NodepoolId);
10162
+ let body = {};
10163
+ if (!tea_util_1.default.isUnset($tea.toMap(request.kubeletConfig))) {
10164
+ body["kubelet_config"] = request.kubeletConfig;
10165
+ }
10166
+ if (!tea_util_1.default.isUnset($tea.toMap(request.rollingPolicy))) {
10167
+ body["rolling_policy"] = request.rollingPolicy;
10168
+ }
10169
+ let req = new $OpenApi.OpenApiRequest({
10170
+ headers: headers,
10171
+ body: openapi_util_1.default.parseToMap(body),
10172
+ });
10173
+ let params = new $OpenApi.Params({
10174
+ action: "ModifyNodePoolNodeConfig",
10175
+ version: "2015-12-15",
10176
+ protocol: "HTTPS",
10177
+ pathname: `/clusters/${ClusterId}/nodepools/${NodepoolId}/node_config`,
10178
+ method: "PUT",
10179
+ authType: "AK",
10180
+ style: "ROA",
10181
+ reqBodyType: "json",
10182
+ bodyType: "json",
10183
+ });
10184
+ return $tea.cast(await this.callApi(params, req, runtime), new ModifyNodePoolNodeConfigResponse({}));
10185
+ }
9591
10186
  async modifyPolicyInstance(clusterId, policyName, request) {
9592
10187
  let runtime = new $Util.RuntimeOptions({});
9593
10188
  let headers = {};