@alicloud/cs20151215 3.0.26 → 3.1.0

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
@@ -28,6 +28,7 @@ class Addon extends $tea.Model {
28
28
  config: 'config',
29
29
  disabled: 'disabled',
30
30
  name: 'name',
31
+ version: 'version',
31
32
  };
32
33
  }
33
34
  static types() {
@@ -35,6 +36,7 @@ class Addon extends $tea.Model {
35
36
  config: 'string',
36
37
  disabled: 'boolean',
37
38
  name: 'string',
39
+ version: 'string',
38
40
  };
39
41
  }
40
42
  }
@@ -45,10 +47,13 @@ class DataDisk extends $tea.Model {
45
47
  }
46
48
  static names() {
47
49
  return {
50
+ autoFormat: 'auto_format',
48
51
  autoSnapshotPolicyId: 'auto_snapshot_policy_id',
49
52
  burstingEnabled: 'bursting_enabled',
50
53
  category: 'category',
51
54
  encrypted: 'encrypted',
55
+ fileSystem: 'file_system',
56
+ mountTarget: 'mount_target',
52
57
  performanceLevel: 'performance_level',
53
58
  provisionedIops: 'provisioned_iops',
54
59
  size: 'size',
@@ -56,10 +61,13 @@ class DataDisk extends $tea.Model {
56
61
  }
57
62
  static types() {
58
63
  return {
64
+ autoFormat: 'boolean',
59
65
  autoSnapshotPolicyId: 'string',
60
66
  burstingEnabled: 'boolean',
61
67
  category: 'string',
62
68
  encrypted: 'string',
69
+ fileSystem: 'string',
70
+ mountTarget: 'string',
63
71
  performanceLevel: 'string',
64
72
  provisionedIops: 'number',
65
73
  size: 'number',
@@ -3587,6 +3595,7 @@ class FixNodePoolVulsRequest extends $tea.Model {
3587
3595
  }
3588
3596
  static names() {
3589
3597
  return {
3598
+ autoRestart: 'auto_restart',
3590
3599
  nodes: 'nodes',
3591
3600
  rolloutPolicy: 'rollout_policy',
3592
3601
  vuls: 'vuls',
@@ -3594,6 +3603,7 @@ class FixNodePoolVulsRequest extends $tea.Model {
3594
3603
  }
3595
3604
  static types() {
3596
3605
  return {
3606
+ autoRestart: 'boolean',
3597
3607
  nodes: { 'type': 'array', 'itemType': 'string' },
3598
3608
  rolloutPolicy: FixNodePoolVulsRequestRolloutPolicy,
3599
3609
  vuls: { 'type': 'array', 'itemType': 'string' },
@@ -3637,6 +3647,54 @@ class FixNodePoolVulsResponse extends $tea.Model {
3637
3647
  }
3638
3648
  }
3639
3649
  exports.FixNodePoolVulsResponse = FixNodePoolVulsResponse;
3650
+ class GetClusterCheckResponseBody extends $tea.Model {
3651
+ constructor(map) {
3652
+ super(map);
3653
+ }
3654
+ static names() {
3655
+ return {
3656
+ checkId: 'check_id',
3657
+ checkItems: 'check_items',
3658
+ createdAt: 'created_at',
3659
+ finishedAt: 'finished_at',
3660
+ message: 'message',
3661
+ status: 'status',
3662
+ type: 'type',
3663
+ };
3664
+ }
3665
+ static types() {
3666
+ return {
3667
+ checkId: 'string',
3668
+ checkItems: { 'type': 'map', 'keyType': 'string', 'valueType': { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } } },
3669
+ createdAt: 'string',
3670
+ finishedAt: 'string',
3671
+ message: 'string',
3672
+ status: 'string',
3673
+ type: 'string',
3674
+ };
3675
+ }
3676
+ }
3677
+ exports.GetClusterCheckResponseBody = GetClusterCheckResponseBody;
3678
+ class GetClusterCheckResponse extends $tea.Model {
3679
+ constructor(map) {
3680
+ super(map);
3681
+ }
3682
+ static names() {
3683
+ return {
3684
+ headers: 'headers',
3685
+ statusCode: 'statusCode',
3686
+ body: 'body',
3687
+ };
3688
+ }
3689
+ static types() {
3690
+ return {
3691
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3692
+ statusCode: 'number',
3693
+ body: GetClusterCheckResponseBody,
3694
+ };
3695
+ }
3696
+ }
3697
+ exports.GetClusterCheckResponse = GetClusterCheckResponse;
3640
3698
  class GetKubernetesTriggerRequest extends $tea.Model {
3641
3699
  constructor(map) {
3642
3700
  super(map);
@@ -3791,6 +3849,58 @@ class InstallClusterAddonsResponse extends $tea.Model {
3791
3849
  }
3792
3850
  }
3793
3851
  exports.InstallClusterAddonsResponse = InstallClusterAddonsResponse;
3852
+ class ListClusterChecksRequest extends $tea.Model {
3853
+ constructor(map) {
3854
+ super(map);
3855
+ }
3856
+ static names() {
3857
+ return {
3858
+ type: 'type',
3859
+ };
3860
+ }
3861
+ static types() {
3862
+ return {
3863
+ type: 'string',
3864
+ };
3865
+ }
3866
+ }
3867
+ exports.ListClusterChecksRequest = ListClusterChecksRequest;
3868
+ class ListClusterChecksResponseBody extends $tea.Model {
3869
+ constructor(map) {
3870
+ super(map);
3871
+ }
3872
+ static names() {
3873
+ return {
3874
+ checks: 'checks',
3875
+ };
3876
+ }
3877
+ static types() {
3878
+ return {
3879
+ checks: { 'type': 'array', 'itemType': ListClusterChecksResponseBodyChecks },
3880
+ };
3881
+ }
3882
+ }
3883
+ exports.ListClusterChecksResponseBody = ListClusterChecksResponseBody;
3884
+ class ListClusterChecksResponse extends $tea.Model {
3885
+ constructor(map) {
3886
+ super(map);
3887
+ }
3888
+ static names() {
3889
+ return {
3890
+ headers: 'headers',
3891
+ statusCode: 'statusCode',
3892
+ body: 'body',
3893
+ };
3894
+ }
3895
+ static types() {
3896
+ return {
3897
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
3898
+ statusCode: 'number',
3899
+ body: ListClusterChecksResponseBody,
3900
+ };
3901
+ }
3902
+ }
3903
+ exports.ListClusterChecksResponse = ListClusterChecksResponse;
3794
3904
  class ListTagResourcesRequest extends $tea.Model {
3795
3905
  constructor(map) {
3796
3906
  super(map);
@@ -3954,6 +4064,7 @@ class ModifyClusterRequest extends $tea.Model {
3954
4064
  instanceDeletionProtection: 'instance_deletion_protection',
3955
4065
  maintenanceWindow: 'maintenance_window',
3956
4066
  resourceGroupId: 'resource_group_id',
4067
+ systemEventsLogging: 'system_events_logging',
3957
4068
  };
3958
4069
  }
3959
4070
  static types() {
@@ -3969,6 +4080,7 @@ class ModifyClusterRequest extends $tea.Model {
3969
4080
  instanceDeletionProtection: 'boolean',
3970
4081
  maintenanceWindow: MaintenanceWindow,
3971
4082
  resourceGroupId: 'string',
4083
+ systemEventsLogging: ModifyClusterRequestSystemEventsLogging,
3972
4084
  };
3973
4085
  }
3974
4086
  }
@@ -4549,11 +4661,13 @@ class RepairClusterNodePoolRequest extends $tea.Model {
4549
4661
  }
4550
4662
  static names() {
4551
4663
  return {
4664
+ autoRestart: 'auto_restart',
4552
4665
  nodes: 'nodes',
4553
4666
  };
4554
4667
  }
4555
4668
  static types() {
4556
4669
  return {
4670
+ autoRestart: 'boolean',
4557
4671
  nodes: { 'type': 'array', 'itemType': 'string' },
4558
4672
  };
4559
4673
  }
@@ -4651,6 +4765,62 @@ class ResumeUpgradeClusterResponse extends $tea.Model {
4651
4765
  }
4652
4766
  }
4653
4767
  exports.ResumeUpgradeClusterResponse = ResumeUpgradeClusterResponse;
4768
+ class RunClusterCheckRequest extends $tea.Model {
4769
+ constructor(map) {
4770
+ super(map);
4771
+ }
4772
+ static names() {
4773
+ return {
4774
+ options: 'options',
4775
+ type: 'type',
4776
+ };
4777
+ }
4778
+ static types() {
4779
+ return {
4780
+ options: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4781
+ type: 'string',
4782
+ };
4783
+ }
4784
+ }
4785
+ exports.RunClusterCheckRequest = RunClusterCheckRequest;
4786
+ class RunClusterCheckResponseBody extends $tea.Model {
4787
+ constructor(map) {
4788
+ super(map);
4789
+ }
4790
+ static names() {
4791
+ return {
4792
+ checkId: 'check_id',
4793
+ requestId: 'request_id',
4794
+ };
4795
+ }
4796
+ static types() {
4797
+ return {
4798
+ checkId: 'string',
4799
+ requestId: 'string',
4800
+ };
4801
+ }
4802
+ }
4803
+ exports.RunClusterCheckResponseBody = RunClusterCheckResponseBody;
4804
+ class RunClusterCheckResponse extends $tea.Model {
4805
+ constructor(map) {
4806
+ super(map);
4807
+ }
4808
+ static names() {
4809
+ return {
4810
+ headers: 'headers',
4811
+ statusCode: 'statusCode',
4812
+ body: 'body',
4813
+ };
4814
+ }
4815
+ static types() {
4816
+ return {
4817
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4818
+ statusCode: 'number',
4819
+ body: RunClusterCheckResponseBody,
4820
+ };
4821
+ }
4822
+ }
4823
+ exports.RunClusterCheckResponse = RunClusterCheckResponse;
4654
4824
  class ScaleClusterRequest extends $tea.Model {
4655
4825
  constructor(map) {
4656
4826
  super(map);
@@ -5999,6 +6169,56 @@ class CreateClusterNodePoolRequestKubernetesConfig extends $tea.Model {
5999
6169
  }
6000
6170
  }
6001
6171
  exports.CreateClusterNodePoolRequestKubernetesConfig = CreateClusterNodePoolRequestKubernetesConfig;
6172
+ class CreateClusterNodePoolRequestManagementAutoRepairPolicy extends $tea.Model {
6173
+ constructor(map) {
6174
+ super(map);
6175
+ }
6176
+ static names() {
6177
+ return {
6178
+ restartNode: 'restart_node',
6179
+ };
6180
+ }
6181
+ static types() {
6182
+ return {
6183
+ restartNode: 'boolean',
6184
+ };
6185
+ }
6186
+ }
6187
+ exports.CreateClusterNodePoolRequestManagementAutoRepairPolicy = CreateClusterNodePoolRequestManagementAutoRepairPolicy;
6188
+ class CreateClusterNodePoolRequestManagementAutoUpgradePolicy extends $tea.Model {
6189
+ constructor(map) {
6190
+ super(map);
6191
+ }
6192
+ static names() {
6193
+ return {
6194
+ autoUpgradeKubelet: 'auto_upgrade_kubelet',
6195
+ };
6196
+ }
6197
+ static types() {
6198
+ return {
6199
+ autoUpgradeKubelet: 'boolean',
6200
+ };
6201
+ }
6202
+ }
6203
+ exports.CreateClusterNodePoolRequestManagementAutoUpgradePolicy = CreateClusterNodePoolRequestManagementAutoUpgradePolicy;
6204
+ class CreateClusterNodePoolRequestManagementAutoVulFixPolicy extends $tea.Model {
6205
+ constructor(map) {
6206
+ super(map);
6207
+ }
6208
+ static names() {
6209
+ return {
6210
+ restartNode: 'restart_node',
6211
+ vulLevel: 'vul_level',
6212
+ };
6213
+ }
6214
+ static types() {
6215
+ return {
6216
+ restartNode: 'boolean',
6217
+ vulLevel: 'string',
6218
+ };
6219
+ }
6220
+ }
6221
+ exports.CreateClusterNodePoolRequestManagementAutoVulFixPolicy = CreateClusterNodePoolRequestManagementAutoVulFixPolicy;
6002
6222
  class CreateClusterNodePoolRequestManagementUpgradeConfig extends $tea.Model {
6003
6223
  constructor(map) {
6004
6224
  super(map);
@@ -6028,6 +6248,11 @@ class CreateClusterNodePoolRequestManagement extends $tea.Model {
6028
6248
  static names() {
6029
6249
  return {
6030
6250
  autoRepair: 'auto_repair',
6251
+ autoRepairPolicy: 'auto_repair_policy',
6252
+ autoUpgrade: 'auto_upgrade',
6253
+ autoUpgradePolicy: 'auto_upgrade_policy',
6254
+ autoVulFix: 'auto_vul_fix',
6255
+ autoVulFixPolicy: 'auto_vul_fix_policy',
6031
6256
  enable: 'enable',
6032
6257
  upgradeConfig: 'upgrade_config',
6033
6258
  };
@@ -6035,6 +6260,11 @@ class CreateClusterNodePoolRequestManagement extends $tea.Model {
6035
6260
  static types() {
6036
6261
  return {
6037
6262
  autoRepair: 'boolean',
6263
+ autoRepairPolicy: CreateClusterNodePoolRequestManagementAutoRepairPolicy,
6264
+ autoUpgrade: 'boolean',
6265
+ autoUpgradePolicy: CreateClusterNodePoolRequestManagementAutoUpgradePolicy,
6266
+ autoVulFix: 'boolean',
6267
+ autoVulFixPolicy: CreateClusterNodePoolRequestManagementAutoVulFixPolicy,
6038
6268
  enable: 'boolean',
6039
6269
  upgradeConfig: CreateClusterNodePoolRequestManagementUpgradeConfig,
6040
6270
  };
@@ -6425,6 +6655,56 @@ class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $tea.Mod
6425
6655
  }
6426
6656
  }
6427
6657
  exports.DescribeClusterNodePoolDetailResponseBodyKubernetesConfig = DescribeClusterNodePoolDetailResponseBodyKubernetesConfig;
6658
+ class DescribeClusterNodePoolDetailResponseBodyManagementAutoRepairPolicy extends $tea.Model {
6659
+ constructor(map) {
6660
+ super(map);
6661
+ }
6662
+ static names() {
6663
+ return {
6664
+ restartNode: 'restart_node',
6665
+ };
6666
+ }
6667
+ static types() {
6668
+ return {
6669
+ restartNode: 'boolean',
6670
+ };
6671
+ }
6672
+ }
6673
+ exports.DescribeClusterNodePoolDetailResponseBodyManagementAutoRepairPolicy = DescribeClusterNodePoolDetailResponseBodyManagementAutoRepairPolicy;
6674
+ class DescribeClusterNodePoolDetailResponseBodyManagementAutoUpgradePolicy extends $tea.Model {
6675
+ constructor(map) {
6676
+ super(map);
6677
+ }
6678
+ static names() {
6679
+ return {
6680
+ autoUpgradeKubelet: 'auto_upgrade_kubelet',
6681
+ };
6682
+ }
6683
+ static types() {
6684
+ return {
6685
+ autoUpgradeKubelet: 'boolean',
6686
+ };
6687
+ }
6688
+ }
6689
+ exports.DescribeClusterNodePoolDetailResponseBodyManagementAutoUpgradePolicy = DescribeClusterNodePoolDetailResponseBodyManagementAutoUpgradePolicy;
6690
+ class DescribeClusterNodePoolDetailResponseBodyManagementAutoVulFixPolicy extends $tea.Model {
6691
+ constructor(map) {
6692
+ super(map);
6693
+ }
6694
+ static names() {
6695
+ return {
6696
+ restartNode: 'restart_node',
6697
+ vulLevel: 'vul_level',
6698
+ };
6699
+ }
6700
+ static types() {
6701
+ return {
6702
+ restartNode: 'boolean',
6703
+ vulLevel: 'string',
6704
+ };
6705
+ }
6706
+ }
6707
+ exports.DescribeClusterNodePoolDetailResponseBodyManagementAutoVulFixPolicy = DescribeClusterNodePoolDetailResponseBodyManagementAutoVulFixPolicy;
6428
6708
  class DescribeClusterNodePoolDetailResponseBodyManagementUpgradeConfig extends $tea.Model {
6429
6709
  constructor(map) {
6430
6710
  super(map);
@@ -6454,6 +6734,11 @@ class DescribeClusterNodePoolDetailResponseBodyManagement extends $tea.Model {
6454
6734
  static names() {
6455
6735
  return {
6456
6736
  autoRepair: 'auto_repair',
6737
+ autoRepairPolicy: 'auto_repair_policy',
6738
+ autoUpgrade: 'auto_upgrade',
6739
+ autoUpgradePolicy: 'auto_upgrade_policy',
6740
+ autoVulFix: 'auto_vul_fix',
6741
+ autoVulFixPolicy: 'auto_vul_fix_policy',
6457
6742
  enable: 'enable',
6458
6743
  upgradeConfig: 'upgrade_config',
6459
6744
  };
@@ -6461,6 +6746,11 @@ class DescribeClusterNodePoolDetailResponseBodyManagement extends $tea.Model {
6461
6746
  static types() {
6462
6747
  return {
6463
6748
  autoRepair: 'boolean',
6749
+ autoRepairPolicy: DescribeClusterNodePoolDetailResponseBodyManagementAutoRepairPolicy,
6750
+ autoUpgrade: 'boolean',
6751
+ autoUpgradePolicy: DescribeClusterNodePoolDetailResponseBodyManagementAutoUpgradePolicy,
6752
+ autoVulFix: 'boolean',
6753
+ autoVulFixPolicy: DescribeClusterNodePoolDetailResponseBodyManagementAutoVulFixPolicy,
6464
6754
  enable: 'boolean',
6465
6755
  upgradeConfig: DescribeClusterNodePoolDetailResponseBodyManagementUpgradeConfig,
6466
6756
  };
@@ -6761,6 +7051,56 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig extends $tea
6761
7051
  }
6762
7052
  }
6763
7053
  exports.DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig = DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig;
7054
+ class DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoRepairPolicy extends $tea.Model {
7055
+ constructor(map) {
7056
+ super(map);
7057
+ }
7058
+ static names() {
7059
+ return {
7060
+ restartNode: 'restart_node',
7061
+ };
7062
+ }
7063
+ static types() {
7064
+ return {
7065
+ restartNode: 'boolean',
7066
+ };
7067
+ }
7068
+ }
7069
+ exports.DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoRepairPolicy = DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoRepairPolicy;
7070
+ class DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoUpgradePolicy extends $tea.Model {
7071
+ constructor(map) {
7072
+ super(map);
7073
+ }
7074
+ static names() {
7075
+ return {
7076
+ autoUpgradeKubelet: 'auto_upgrade_kubelet',
7077
+ };
7078
+ }
7079
+ static types() {
7080
+ return {
7081
+ autoUpgradeKubelet: 'boolean',
7082
+ };
7083
+ }
7084
+ }
7085
+ exports.DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoUpgradePolicy = DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoUpgradePolicy;
7086
+ class DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoVulFixPolicy extends $tea.Model {
7087
+ constructor(map) {
7088
+ super(map);
7089
+ }
7090
+ static names() {
7091
+ return {
7092
+ restartNode: 'restart_node',
7093
+ vulLevel: 'vul_level',
7094
+ };
7095
+ }
7096
+ static types() {
7097
+ return {
7098
+ restartNode: 'boolean',
7099
+ vulLevel: 'string',
7100
+ };
7101
+ }
7102
+ }
7103
+ exports.DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoVulFixPolicy = DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoVulFixPolicy;
6764
7104
  class DescribeClusterNodePoolsResponseBodyNodepoolsManagementUpgradeConfig extends $tea.Model {
6765
7105
  constructor(map) {
6766
7106
  super(map);
@@ -6790,6 +7130,11 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsManagement extends $tea.Model
6790
7130
  static names() {
6791
7131
  return {
6792
7132
  autoRepair: 'auto_repair',
7133
+ autoRepairPolicy: 'auto_repair_policy',
7134
+ autoUpgrade: 'auto_upgrade',
7135
+ autoUpgradePolicy: 'auto_upgrade_policy',
7136
+ autoVulFix: 'auto_vul_fix',
7137
+ autoVulFixPolicy: 'auto_vul_fix_policy',
6793
7138
  enable: 'enable',
6794
7139
  upgradeConfig: 'upgrade_config',
6795
7140
  };
@@ -6797,6 +7142,11 @@ class DescribeClusterNodePoolsResponseBodyNodepoolsManagement extends $tea.Model
6797
7142
  static types() {
6798
7143
  return {
6799
7144
  autoRepair: 'boolean',
7145
+ autoRepairPolicy: DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoRepairPolicy,
7146
+ autoUpgrade: 'boolean',
7147
+ autoUpgradePolicy: DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoUpgradePolicy,
7148
+ autoVulFix: 'boolean',
7149
+ autoVulFixPolicy: DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoVulFixPolicy,
6800
7150
  enable: 'boolean',
6801
7151
  upgradeConfig: DescribeClusterNodePoolsResponseBodyNodepoolsManagementUpgradeConfig,
6802
7152
  };
@@ -7170,7 +7520,7 @@ class DescribeClusterResourcesResponseBody extends $tea.Model {
7170
7520
  resourceType: 'string',
7171
7521
  state: 'string',
7172
7522
  autoCreate: 'number',
7173
- dependencies: DescribeClusterResourcesResponseBodyDependencies,
7523
+ dependencies: { 'type': 'array', 'itemType': DescribeClusterResourcesResponseBodyDependencies },
7174
7524
  };
7175
7525
  }
7176
7526
  }
@@ -8339,6 +8689,32 @@ class InstallClusterAddonsRequestBody extends $tea.Model {
8339
8689
  }
8340
8690
  }
8341
8691
  exports.InstallClusterAddonsRequestBody = InstallClusterAddonsRequestBody;
8692
+ class ListClusterChecksResponseBodyChecks extends $tea.Model {
8693
+ constructor(map) {
8694
+ super(map);
8695
+ }
8696
+ static names() {
8697
+ return {
8698
+ checkId: 'check_id',
8699
+ createdAt: 'created_at',
8700
+ finishedAt: 'finished_at',
8701
+ message: 'message',
8702
+ status: 'status',
8703
+ type: 'type',
8704
+ };
8705
+ }
8706
+ static types() {
8707
+ return {
8708
+ checkId: 'string',
8709
+ createdAt: 'string',
8710
+ finishedAt: 'string',
8711
+ message: 'string',
8712
+ status: 'string',
8713
+ type: 'string',
8714
+ };
8715
+ }
8716
+ }
8717
+ exports.ListClusterChecksResponseBodyChecks = ListClusterChecksResponseBodyChecks;
8342
8718
  class ListTagResourcesResponseBodyTagResourcesTagResource extends $tea.Model {
8343
8719
  constructor(map) {
8344
8720
  super(map);
@@ -8377,6 +8753,24 @@ class ListTagResourcesResponseBodyTagResources extends $tea.Model {
8377
8753
  }
8378
8754
  }
8379
8755
  exports.ListTagResourcesResponseBodyTagResources = ListTagResourcesResponseBodyTagResources;
8756
+ class ModifyClusterRequestSystemEventsLogging extends $tea.Model {
8757
+ constructor(map) {
8758
+ super(map);
8759
+ }
8760
+ static names() {
8761
+ return {
8762
+ enabled: 'enabled',
8763
+ loggingProject: 'logging_project',
8764
+ };
8765
+ }
8766
+ static types() {
8767
+ return {
8768
+ enabled: 'boolean',
8769
+ loggingProject: 'string',
8770
+ };
8771
+ }
8772
+ }
8773
+ exports.ModifyClusterRequestSystemEventsLogging = ModifyClusterRequestSystemEventsLogging;
8380
8774
  class ModifyClusterConfigurationRequestCustomizeConfigConfigs extends $tea.Model {
8381
8775
  constructor(map) {
8382
8776
  super(map);
@@ -8469,6 +8863,56 @@ class ModifyClusterNodePoolRequestKubernetesConfig extends $tea.Model {
8469
8863
  }
8470
8864
  }
8471
8865
  exports.ModifyClusterNodePoolRequestKubernetesConfig = ModifyClusterNodePoolRequestKubernetesConfig;
8866
+ class ModifyClusterNodePoolRequestManagementAutoRepairPolicy extends $tea.Model {
8867
+ constructor(map) {
8868
+ super(map);
8869
+ }
8870
+ static names() {
8871
+ return {
8872
+ restartNode: 'restart_node',
8873
+ };
8874
+ }
8875
+ static types() {
8876
+ return {
8877
+ restartNode: 'boolean',
8878
+ };
8879
+ }
8880
+ }
8881
+ exports.ModifyClusterNodePoolRequestManagementAutoRepairPolicy = ModifyClusterNodePoolRequestManagementAutoRepairPolicy;
8882
+ class ModifyClusterNodePoolRequestManagementAutoUpgradePolicy extends $tea.Model {
8883
+ constructor(map) {
8884
+ super(map);
8885
+ }
8886
+ static names() {
8887
+ return {
8888
+ autoUpgradeKubelet: 'auto_upgrade_kubelet',
8889
+ };
8890
+ }
8891
+ static types() {
8892
+ return {
8893
+ autoUpgradeKubelet: 'boolean',
8894
+ };
8895
+ }
8896
+ }
8897
+ exports.ModifyClusterNodePoolRequestManagementAutoUpgradePolicy = ModifyClusterNodePoolRequestManagementAutoUpgradePolicy;
8898
+ class ModifyClusterNodePoolRequestManagementAutoVulFixPolicy extends $tea.Model {
8899
+ constructor(map) {
8900
+ super(map);
8901
+ }
8902
+ static names() {
8903
+ return {
8904
+ restartNode: 'restart_node',
8905
+ vulLevel: 'vul_level',
8906
+ };
8907
+ }
8908
+ static types() {
8909
+ return {
8910
+ restartNode: 'boolean',
8911
+ vulLevel: 'string',
8912
+ };
8913
+ }
8914
+ }
8915
+ exports.ModifyClusterNodePoolRequestManagementAutoVulFixPolicy = ModifyClusterNodePoolRequestManagementAutoVulFixPolicy;
8472
8916
  class ModifyClusterNodePoolRequestManagementUpgradeConfig extends $tea.Model {
8473
8917
  constructor(map) {
8474
8918
  super(map);
@@ -8498,6 +8942,11 @@ class ModifyClusterNodePoolRequestManagement extends $tea.Model {
8498
8942
  static names() {
8499
8943
  return {
8500
8944
  autoRepair: 'auto_repair',
8945
+ autoRepairPolicy: 'auto_repair_policy',
8946
+ autoUpgrade: 'auto_upgrade',
8947
+ autoUpgradePolicy: 'auto_upgrade_policy',
8948
+ autoVulFix: 'auto_vul_fix',
8949
+ autoVulFixPolicy: 'auto_vul_fix_policy',
8501
8950
  enable: 'enable',
8502
8951
  upgradeConfig: 'upgrade_config',
8503
8952
  };
@@ -8505,6 +8954,11 @@ class ModifyClusterNodePoolRequestManagement extends $tea.Model {
8505
8954
  static types() {
8506
8955
  return {
8507
8956
  autoRepair: 'boolean',
8957
+ autoRepairPolicy: ModifyClusterNodePoolRequestManagementAutoRepairPolicy,
8958
+ autoUpgrade: 'boolean',
8959
+ autoUpgradePolicy: ModifyClusterNodePoolRequestManagementAutoUpgradePolicy,
8960
+ autoVulFix: 'boolean',
8961
+ autoVulFixPolicy: ModifyClusterNodePoolRequestManagementAutoVulFixPolicy,
8508
8962
  enable: 'boolean',
8509
8963
  upgradeConfig: ModifyClusterNodePoolRequestManagementUpgradeConfig,
8510
8964
  };
@@ -11246,9 +11700,23 @@ class Client extends openapi_client_1.default {
11246
11700
  let headers = {};
11247
11701
  return await this.edgeClusterAddEdgeMachineWithOptions(clusterid, edgeMachineid, request, headers, runtime);
11248
11702
  }
11703
+ /**
11704
+ * 1. The Common Vulnerabilities and Exposures (CVE) patching feature is developed based on Security Center. To use this feature, you must purchase the Security Center Ultimate Edition that supports Container Service for Kubernetes (ACK).
11705
+ * 2. ACK may need to restart nodes to patch certain vulnerabilities. ACK drains a node before the node restarts. Make sure that the ACK cluster has sufficient idle nodes to host the pods evicted from the trained nodes. For example, you can scale out a node pool before you patch vulnerabilities for the nodes in the node pool.
11706
+ * 3. Security Center ensures the compatibility of CVE patches. We recommend that you check the compatibility of a CVE patch with your application before you install the patch. You can pause or cancel a CVE patching task anytime.
11707
+ * 4. CVE patching is a progressive task that consists of multiple batches. After you pause or cancel a CVE patching task, ACK continues to process the dispatched batches. Only the batches that have not been dispatched are paused or canceled.
11708
+ *
11709
+ * @param request FixNodePoolVulsRequest
11710
+ * @param headers map
11711
+ * @param runtime runtime options for this request RuntimeOptions
11712
+ * @return FixNodePoolVulsResponse
11713
+ */
11249
11714
  async fixNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime) {
11250
11715
  tea_util_1.default.validateModel(request);
11251
11716
  let body = {};
11717
+ if (!tea_util_1.default.isUnset(request.autoRestart)) {
11718
+ body["auto_restart"] = request.autoRestart;
11719
+ }
11252
11720
  if (!tea_util_1.default.isUnset(request.nodes)) {
11253
11721
  body["nodes"] = request.nodes;
11254
11722
  }
@@ -11275,11 +11743,42 @@ class Client extends openapi_client_1.default {
11275
11743
  });
11276
11744
  return $tea.cast(await this.callApi(params, req, runtime), new FixNodePoolVulsResponse({}));
11277
11745
  }
11746
+ /**
11747
+ * 1. The Common Vulnerabilities and Exposures (CVE) patching feature is developed based on Security Center. To use this feature, you must purchase the Security Center Ultimate Edition that supports Container Service for Kubernetes (ACK).
11748
+ * 2. ACK may need to restart nodes to patch certain vulnerabilities. ACK drains a node before the node restarts. Make sure that the ACK cluster has sufficient idle nodes to host the pods evicted from the trained nodes. For example, you can scale out a node pool before you patch vulnerabilities for the nodes in the node pool.
11749
+ * 3. Security Center ensures the compatibility of CVE patches. We recommend that you check the compatibility of a CVE patch with your application before you install the patch. You can pause or cancel a CVE patching task anytime.
11750
+ * 4. CVE patching is a progressive task that consists of multiple batches. After you pause or cancel a CVE patching task, ACK continues to process the dispatched batches. Only the batches that have not been dispatched are paused or canceled.
11751
+ *
11752
+ * @param request FixNodePoolVulsRequest
11753
+ * @return FixNodePoolVulsResponse
11754
+ */
11278
11755
  async fixNodePoolVuls(clusterId, nodepoolId, request) {
11279
11756
  let runtime = new $Util.RuntimeOptions({});
11280
11757
  let headers = {};
11281
11758
  return await this.fixNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime);
11282
11759
  }
11760
+ async getClusterCheckWithOptions(clusterId, checkId, headers, runtime) {
11761
+ let req = new $OpenApi.OpenApiRequest({
11762
+ headers: headers,
11763
+ });
11764
+ let params = new $OpenApi.Params({
11765
+ action: "GetClusterCheck",
11766
+ version: "2015-12-15",
11767
+ protocol: "HTTPS",
11768
+ pathname: `/clusters/%5Bcluster_id%5D/checks/%5Bcheck_id%5D`,
11769
+ method: "GET",
11770
+ authType: "AK",
11771
+ style: "ROA",
11772
+ reqBodyType: "json",
11773
+ bodyType: "json",
11774
+ });
11775
+ return $tea.cast(await this.callApi(params, req, runtime), new GetClusterCheckResponse({}));
11776
+ }
11777
+ async getClusterCheck(clusterId, checkId) {
11778
+ let runtime = new $Util.RuntimeOptions({});
11779
+ let headers = {};
11780
+ return await this.getClusterCheckWithOptions(clusterId, checkId, headers, runtime);
11781
+ }
11283
11782
  async getKubernetesTriggerWithOptions(ClusterId, request, headers, runtime) {
11284
11783
  tea_util_1.default.validateModel(request);
11285
11784
  let query = {};
@@ -11407,6 +11906,34 @@ class Client extends openapi_client_1.default {
11407
11906
  let headers = {};
11408
11907
  return await this.installClusterAddonsWithOptions(ClusterId, request, headers, runtime);
11409
11908
  }
11909
+ async listClusterChecksWithOptions(clusterId, request, headers, runtime) {
11910
+ tea_util_1.default.validateModel(request);
11911
+ let query = {};
11912
+ if (!tea_util_1.default.isUnset(request.type)) {
11913
+ query["type"] = request.type;
11914
+ }
11915
+ let req = new $OpenApi.OpenApiRequest({
11916
+ headers: headers,
11917
+ query: openapi_util_1.default.query(query),
11918
+ });
11919
+ let params = new $OpenApi.Params({
11920
+ action: "ListClusterChecks",
11921
+ version: "2015-12-15",
11922
+ protocol: "HTTPS",
11923
+ pathname: `/clusters/%5Bcluster_id%5D/checks`,
11924
+ method: "GET",
11925
+ authType: "AK",
11926
+ style: "ROA",
11927
+ reqBodyType: "json",
11928
+ bodyType: "json",
11929
+ });
11930
+ return $tea.cast(await this.callApi(params, req, runtime), new ListClusterChecksResponse({}));
11931
+ }
11932
+ async listClusterChecks(clusterId, request) {
11933
+ let runtime = new $Util.RuntimeOptions({});
11934
+ let headers = {};
11935
+ return await this.listClusterChecksWithOptions(clusterId, request, headers, runtime);
11936
+ }
11410
11937
  async listTagResourcesWithOptions(tmpReq, headers, runtime) {
11411
11938
  tea_util_1.default.validateModel(tmpReq);
11412
11939
  let request = new ListTagResourcesShrinkRequest({});
@@ -11522,6 +12049,9 @@ class Client extends openapi_client_1.default {
11522
12049
  if (!tea_util_1.default.isUnset(request.resourceGroupId)) {
11523
12050
  body["resource_group_id"] = request.resourceGroupId;
11524
12051
  }
12052
+ if (!tea_util_1.default.isUnset(request.systemEventsLogging)) {
12053
+ body["system_events_logging"] = request.systemEventsLogging;
12054
+ }
11525
12055
  let req = new $OpenApi.OpenApiRequest({
11526
12056
  headers: headers,
11527
12057
  body: openapi_util_1.default.parseToMap(body),
@@ -11884,6 +12414,11 @@ class Client extends openapi_client_1.default {
11884
12414
  }
11885
12415
  /**
11886
12416
  * @deprecated
12417
+ * ****
12418
+ * * 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.
12419
+ * * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
12420
+ * * Nodes remain in the Unschedulable state when they are being removed.
12421
+ * * You can remove only worker nodes. You cannot remove master nodes.
11887
12422
  *
11888
12423
  * @param request RemoveClusterNodesRequest
11889
12424
  * @param headers map
@@ -11922,6 +12457,11 @@ class Client extends openapi_client_1.default {
11922
12457
  }
11923
12458
  /**
11924
12459
  * @deprecated
12460
+ * ****
12461
+ * * 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.
12462
+ * * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
12463
+ * * Nodes remain in the Unschedulable state when they are being removed.
12464
+ * * You can remove only worker nodes. You cannot remove master nodes.
11925
12465
  *
11926
12466
  * @param request RemoveClusterNodesRequest
11927
12467
  * @return RemoveClusterNodesResponse
@@ -12020,6 +12560,9 @@ class Client extends openapi_client_1.default {
12020
12560
  async repairClusterNodePoolWithOptions(clusterId, nodepoolId, request, headers, runtime) {
12021
12561
  tea_util_1.default.validateModel(request);
12022
12562
  let body = {};
12563
+ if (!tea_util_1.default.isUnset(request.autoRestart)) {
12564
+ body["auto_restart"] = request.autoRestart;
12565
+ }
12023
12566
  if (!tea_util_1.default.isUnset(request.nodes)) {
12024
12567
  body["nodes"] = request.nodes;
12025
12568
  }
@@ -12111,6 +12654,37 @@ class Client extends openapi_client_1.default {
12111
12654
  let headers = {};
12112
12655
  return await this.resumeUpgradeClusterWithOptions(ClusterId, headers, runtime);
12113
12656
  }
12657
+ async runClusterCheckWithOptions(clusterId, request, headers, runtime) {
12658
+ tea_util_1.default.validateModel(request);
12659
+ let body = {};
12660
+ if (!tea_util_1.default.isUnset(request.options)) {
12661
+ body["options"] = request.options;
12662
+ }
12663
+ if (!tea_util_1.default.isUnset(request.type)) {
12664
+ body["type"] = request.type;
12665
+ }
12666
+ let req = new $OpenApi.OpenApiRequest({
12667
+ headers: headers,
12668
+ body: openapi_util_1.default.parseToMap(body),
12669
+ });
12670
+ let params = new $OpenApi.Params({
12671
+ action: "RunClusterCheck",
12672
+ version: "2015-12-15",
12673
+ protocol: "HTTPS",
12674
+ pathname: `/clusters/%5Bcluster_id%5D/checks`,
12675
+ method: "POST",
12676
+ authType: "AK",
12677
+ style: "ROA",
12678
+ reqBodyType: "json",
12679
+ bodyType: "json",
12680
+ });
12681
+ return $tea.cast(await this.callApi(params, req, runtime), new RunClusterCheckResponse({}));
12682
+ }
12683
+ async runClusterCheck(clusterId, request) {
12684
+ let runtime = new $Util.RuntimeOptions({});
12685
+ let headers = {};
12686
+ return await this.runClusterCheckWithOptions(clusterId, request, headers, runtime);
12687
+ }
12114
12688
  /**
12115
12689
  * @deprecated
12116
12690
  *