@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.d.ts +370 -1
- package/dist/client.js +575 -1
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +705 -2
package/src/client.ts
CHANGED
|
@@ -12,11 +12,13 @@ export class Addon extends $tea.Model {
|
|
|
12
12
|
config?: string;
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
name?: string;
|
|
15
|
+
version?: string;
|
|
15
16
|
static names(): { [key: string]: string } {
|
|
16
17
|
return {
|
|
17
18
|
config: 'config',
|
|
18
19
|
disabled: 'disabled',
|
|
19
20
|
name: 'name',
|
|
21
|
+
version: 'version',
|
|
20
22
|
};
|
|
21
23
|
}
|
|
22
24
|
|
|
@@ -25,6 +27,7 @@ export class Addon extends $tea.Model {
|
|
|
25
27
|
config: 'string',
|
|
26
28
|
disabled: 'boolean',
|
|
27
29
|
name: 'string',
|
|
30
|
+
version: 'string',
|
|
28
31
|
};
|
|
29
32
|
}
|
|
30
33
|
|
|
@@ -34,19 +37,25 @@ export class Addon extends $tea.Model {
|
|
|
34
37
|
}
|
|
35
38
|
|
|
36
39
|
export class DataDisk extends $tea.Model {
|
|
40
|
+
autoFormat?: boolean;
|
|
37
41
|
autoSnapshotPolicyId?: string;
|
|
38
42
|
burstingEnabled?: boolean;
|
|
39
43
|
category?: string;
|
|
40
44
|
encrypted?: string;
|
|
45
|
+
fileSystem?: string;
|
|
46
|
+
mountTarget?: string;
|
|
41
47
|
performanceLevel?: string;
|
|
42
48
|
provisionedIops?: number;
|
|
43
49
|
size?: number;
|
|
44
50
|
static names(): { [key: string]: string } {
|
|
45
51
|
return {
|
|
52
|
+
autoFormat: 'auto_format',
|
|
46
53
|
autoSnapshotPolicyId: 'auto_snapshot_policy_id',
|
|
47
54
|
burstingEnabled: 'bursting_enabled',
|
|
48
55
|
category: 'category',
|
|
49
56
|
encrypted: 'encrypted',
|
|
57
|
+
fileSystem: 'file_system',
|
|
58
|
+
mountTarget: 'mount_target',
|
|
50
59
|
performanceLevel: 'performance_level',
|
|
51
60
|
provisionedIops: 'provisioned_iops',
|
|
52
61
|
size: 'size',
|
|
@@ -55,10 +64,13 @@ export class DataDisk extends $tea.Model {
|
|
|
55
64
|
|
|
56
65
|
static types(): { [key: string]: any } {
|
|
57
66
|
return {
|
|
67
|
+
autoFormat: 'boolean',
|
|
58
68
|
autoSnapshotPolicyId: 'string',
|
|
59
69
|
burstingEnabled: 'boolean',
|
|
60
70
|
category: 'string',
|
|
61
71
|
encrypted: 'string',
|
|
72
|
+
fileSystem: 'string',
|
|
73
|
+
mountTarget: 'string',
|
|
62
74
|
performanceLevel: 'string',
|
|
63
75
|
provisionedIops: 'number',
|
|
64
76
|
size: 'number',
|
|
@@ -4547,11 +4559,13 @@ export class EdgeClusterAddEdgeMachineResponse extends $tea.Model {
|
|
|
4547
4559
|
}
|
|
4548
4560
|
|
|
4549
4561
|
export class FixNodePoolVulsRequest extends $tea.Model {
|
|
4562
|
+
autoRestart?: boolean;
|
|
4550
4563
|
nodes?: string[];
|
|
4551
4564
|
rolloutPolicy?: FixNodePoolVulsRequestRolloutPolicy;
|
|
4552
4565
|
vuls?: string[];
|
|
4553
4566
|
static names(): { [key: string]: string } {
|
|
4554
4567
|
return {
|
|
4568
|
+
autoRestart: 'auto_restart',
|
|
4555
4569
|
nodes: 'nodes',
|
|
4556
4570
|
rolloutPolicy: 'rollout_policy',
|
|
4557
4571
|
vuls: 'vuls',
|
|
@@ -4560,6 +4574,7 @@ export class FixNodePoolVulsRequest extends $tea.Model {
|
|
|
4560
4574
|
|
|
4561
4575
|
static types(): { [key: string]: any } {
|
|
4562
4576
|
return {
|
|
4577
|
+
autoRestart: 'boolean',
|
|
4563
4578
|
nodes: { 'type': 'array', 'itemType': 'string' },
|
|
4564
4579
|
rolloutPolicy: FixNodePoolVulsRequestRolloutPolicy,
|
|
4565
4580
|
vuls: { 'type': 'array', 'itemType': 'string' },
|
|
@@ -4615,6 +4630,68 @@ export class FixNodePoolVulsResponse extends $tea.Model {
|
|
|
4615
4630
|
}
|
|
4616
4631
|
}
|
|
4617
4632
|
|
|
4633
|
+
export class GetClusterCheckResponseBody extends $tea.Model {
|
|
4634
|
+
checkId?: string;
|
|
4635
|
+
checkItems?: { [key: string]: {[key: string ]: any}[] };
|
|
4636
|
+
createdAt?: string;
|
|
4637
|
+
finishedAt?: string;
|
|
4638
|
+
message?: string;
|
|
4639
|
+
status?: string;
|
|
4640
|
+
type?: string;
|
|
4641
|
+
static names(): { [key: string]: string } {
|
|
4642
|
+
return {
|
|
4643
|
+
checkId: 'check_id',
|
|
4644
|
+
checkItems: 'check_items',
|
|
4645
|
+
createdAt: 'created_at',
|
|
4646
|
+
finishedAt: 'finished_at',
|
|
4647
|
+
message: 'message',
|
|
4648
|
+
status: 'status',
|
|
4649
|
+
type: 'type',
|
|
4650
|
+
};
|
|
4651
|
+
}
|
|
4652
|
+
|
|
4653
|
+
static types(): { [key: string]: any } {
|
|
4654
|
+
return {
|
|
4655
|
+
checkId: 'string',
|
|
4656
|
+
checkItems: { 'type': 'map', 'keyType': 'string', 'valueType': { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } } },
|
|
4657
|
+
createdAt: 'string',
|
|
4658
|
+
finishedAt: 'string',
|
|
4659
|
+
message: 'string',
|
|
4660
|
+
status: 'string',
|
|
4661
|
+
type: 'string',
|
|
4662
|
+
};
|
|
4663
|
+
}
|
|
4664
|
+
|
|
4665
|
+
constructor(map?: { [key: string]: any }) {
|
|
4666
|
+
super(map);
|
|
4667
|
+
}
|
|
4668
|
+
}
|
|
4669
|
+
|
|
4670
|
+
export class GetClusterCheckResponse extends $tea.Model {
|
|
4671
|
+
headers: { [key: string]: string };
|
|
4672
|
+
statusCode: number;
|
|
4673
|
+
body: GetClusterCheckResponseBody;
|
|
4674
|
+
static names(): { [key: string]: string } {
|
|
4675
|
+
return {
|
|
4676
|
+
headers: 'headers',
|
|
4677
|
+
statusCode: 'statusCode',
|
|
4678
|
+
body: 'body',
|
|
4679
|
+
};
|
|
4680
|
+
}
|
|
4681
|
+
|
|
4682
|
+
static types(): { [key: string]: any } {
|
|
4683
|
+
return {
|
|
4684
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4685
|
+
statusCode: 'number',
|
|
4686
|
+
body: GetClusterCheckResponseBody,
|
|
4687
|
+
};
|
|
4688
|
+
}
|
|
4689
|
+
|
|
4690
|
+
constructor(map?: { [key: string]: any }) {
|
|
4691
|
+
super(map);
|
|
4692
|
+
}
|
|
4693
|
+
}
|
|
4694
|
+
|
|
4618
4695
|
export class GetKubernetesTriggerRequest extends $tea.Model {
|
|
4619
4696
|
name?: string;
|
|
4620
4697
|
namespace?: string;
|
|
@@ -4806,6 +4883,69 @@ export class InstallClusterAddonsResponse extends $tea.Model {
|
|
|
4806
4883
|
}
|
|
4807
4884
|
}
|
|
4808
4885
|
|
|
4886
|
+
export class ListClusterChecksRequest extends $tea.Model {
|
|
4887
|
+
type?: string;
|
|
4888
|
+
static names(): { [key: string]: string } {
|
|
4889
|
+
return {
|
|
4890
|
+
type: 'type',
|
|
4891
|
+
};
|
|
4892
|
+
}
|
|
4893
|
+
|
|
4894
|
+
static types(): { [key: string]: any } {
|
|
4895
|
+
return {
|
|
4896
|
+
type: 'string',
|
|
4897
|
+
};
|
|
4898
|
+
}
|
|
4899
|
+
|
|
4900
|
+
constructor(map?: { [key: string]: any }) {
|
|
4901
|
+
super(map);
|
|
4902
|
+
}
|
|
4903
|
+
}
|
|
4904
|
+
|
|
4905
|
+
export class ListClusterChecksResponseBody extends $tea.Model {
|
|
4906
|
+
checks?: ListClusterChecksResponseBodyChecks[];
|
|
4907
|
+
static names(): { [key: string]: string } {
|
|
4908
|
+
return {
|
|
4909
|
+
checks: 'checks',
|
|
4910
|
+
};
|
|
4911
|
+
}
|
|
4912
|
+
|
|
4913
|
+
static types(): { [key: string]: any } {
|
|
4914
|
+
return {
|
|
4915
|
+
checks: { 'type': 'array', 'itemType': ListClusterChecksResponseBodyChecks },
|
|
4916
|
+
};
|
|
4917
|
+
}
|
|
4918
|
+
|
|
4919
|
+
constructor(map?: { [key: string]: any }) {
|
|
4920
|
+
super(map);
|
|
4921
|
+
}
|
|
4922
|
+
}
|
|
4923
|
+
|
|
4924
|
+
export class ListClusterChecksResponse extends $tea.Model {
|
|
4925
|
+
headers: { [key: string]: string };
|
|
4926
|
+
statusCode: number;
|
|
4927
|
+
body: ListClusterChecksResponseBody;
|
|
4928
|
+
static names(): { [key: string]: string } {
|
|
4929
|
+
return {
|
|
4930
|
+
headers: 'headers',
|
|
4931
|
+
statusCode: 'statusCode',
|
|
4932
|
+
body: 'body',
|
|
4933
|
+
};
|
|
4934
|
+
}
|
|
4935
|
+
|
|
4936
|
+
static types(): { [key: string]: any } {
|
|
4937
|
+
return {
|
|
4938
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
4939
|
+
statusCode: 'number',
|
|
4940
|
+
body: ListClusterChecksResponseBody,
|
|
4941
|
+
};
|
|
4942
|
+
}
|
|
4943
|
+
|
|
4944
|
+
constructor(map?: { [key: string]: any }) {
|
|
4945
|
+
super(map);
|
|
4946
|
+
}
|
|
4947
|
+
}
|
|
4948
|
+
|
|
4809
4949
|
export class ListTagResourcesRequest extends $tea.Model {
|
|
4810
4950
|
nextToken?: string;
|
|
4811
4951
|
regionId?: string;
|
|
@@ -5002,6 +5142,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
5002
5142
|
instanceDeletionProtection?: boolean;
|
|
5003
5143
|
maintenanceWindow?: MaintenanceWindow;
|
|
5004
5144
|
resourceGroupId?: string;
|
|
5145
|
+
systemEventsLogging?: ModifyClusterRequestSystemEventsLogging;
|
|
5005
5146
|
static names(): { [key: string]: string } {
|
|
5006
5147
|
return {
|
|
5007
5148
|
accessControlList: 'access_control_list',
|
|
@@ -5015,6 +5156,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
5015
5156
|
instanceDeletionProtection: 'instance_deletion_protection',
|
|
5016
5157
|
maintenanceWindow: 'maintenance_window',
|
|
5017
5158
|
resourceGroupId: 'resource_group_id',
|
|
5159
|
+
systemEventsLogging: 'system_events_logging',
|
|
5018
5160
|
};
|
|
5019
5161
|
}
|
|
5020
5162
|
|
|
@@ -5031,6 +5173,7 @@ export class ModifyClusterRequest extends $tea.Model {
|
|
|
5031
5173
|
instanceDeletionProtection: 'boolean',
|
|
5032
5174
|
maintenanceWindow: MaintenanceWindow,
|
|
5033
5175
|
resourceGroupId: 'string',
|
|
5176
|
+
systemEventsLogging: ModifyClusterRequestSystemEventsLogging,
|
|
5034
5177
|
};
|
|
5035
5178
|
}
|
|
5036
5179
|
|
|
@@ -5745,15 +5888,18 @@ export class RemoveWorkflowResponse extends $tea.Model {
|
|
|
5745
5888
|
}
|
|
5746
5889
|
|
|
5747
5890
|
export class RepairClusterNodePoolRequest extends $tea.Model {
|
|
5891
|
+
autoRestart?: boolean;
|
|
5748
5892
|
nodes?: string[];
|
|
5749
5893
|
static names(): { [key: string]: string } {
|
|
5750
5894
|
return {
|
|
5895
|
+
autoRestart: 'auto_restart',
|
|
5751
5896
|
nodes: 'nodes',
|
|
5752
5897
|
};
|
|
5753
5898
|
}
|
|
5754
5899
|
|
|
5755
5900
|
static types(): { [key: string]: any } {
|
|
5756
5901
|
return {
|
|
5902
|
+
autoRestart: 'boolean',
|
|
5757
5903
|
nodes: { 'type': 'array', 'itemType': 'string' },
|
|
5758
5904
|
};
|
|
5759
5905
|
}
|
|
@@ -5876,6 +6022,75 @@ export class ResumeUpgradeClusterResponse extends $tea.Model {
|
|
|
5876
6022
|
}
|
|
5877
6023
|
}
|
|
5878
6024
|
|
|
6025
|
+
export class RunClusterCheckRequest extends $tea.Model {
|
|
6026
|
+
options?: { [key: string]: string };
|
|
6027
|
+
type?: string;
|
|
6028
|
+
static names(): { [key: string]: string } {
|
|
6029
|
+
return {
|
|
6030
|
+
options: 'options',
|
|
6031
|
+
type: 'type',
|
|
6032
|
+
};
|
|
6033
|
+
}
|
|
6034
|
+
|
|
6035
|
+
static types(): { [key: string]: any } {
|
|
6036
|
+
return {
|
|
6037
|
+
options: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6038
|
+
type: 'string',
|
|
6039
|
+
};
|
|
6040
|
+
}
|
|
6041
|
+
|
|
6042
|
+
constructor(map?: { [key: string]: any }) {
|
|
6043
|
+
super(map);
|
|
6044
|
+
}
|
|
6045
|
+
}
|
|
6046
|
+
|
|
6047
|
+
export class RunClusterCheckResponseBody extends $tea.Model {
|
|
6048
|
+
checkId?: string;
|
|
6049
|
+
requestId?: string;
|
|
6050
|
+
static names(): { [key: string]: string } {
|
|
6051
|
+
return {
|
|
6052
|
+
checkId: 'check_id',
|
|
6053
|
+
requestId: 'request_id',
|
|
6054
|
+
};
|
|
6055
|
+
}
|
|
6056
|
+
|
|
6057
|
+
static types(): { [key: string]: any } {
|
|
6058
|
+
return {
|
|
6059
|
+
checkId: 'string',
|
|
6060
|
+
requestId: 'string',
|
|
6061
|
+
};
|
|
6062
|
+
}
|
|
6063
|
+
|
|
6064
|
+
constructor(map?: { [key: string]: any }) {
|
|
6065
|
+
super(map);
|
|
6066
|
+
}
|
|
6067
|
+
}
|
|
6068
|
+
|
|
6069
|
+
export class RunClusterCheckResponse extends $tea.Model {
|
|
6070
|
+
headers: { [key: string]: string };
|
|
6071
|
+
statusCode: number;
|
|
6072
|
+
body: RunClusterCheckResponseBody;
|
|
6073
|
+
static names(): { [key: string]: string } {
|
|
6074
|
+
return {
|
|
6075
|
+
headers: 'headers',
|
|
6076
|
+
statusCode: 'statusCode',
|
|
6077
|
+
body: 'body',
|
|
6078
|
+
};
|
|
6079
|
+
}
|
|
6080
|
+
|
|
6081
|
+
static types(): { [key: string]: any } {
|
|
6082
|
+
return {
|
|
6083
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
6084
|
+
statusCode: 'number',
|
|
6085
|
+
body: RunClusterCheckResponseBody,
|
|
6086
|
+
};
|
|
6087
|
+
}
|
|
6088
|
+
|
|
6089
|
+
constructor(map?: { [key: string]: any }) {
|
|
6090
|
+
super(map);
|
|
6091
|
+
}
|
|
6092
|
+
}
|
|
6093
|
+
|
|
5879
6094
|
export class ScaleClusterRequest extends $tea.Model {
|
|
5880
6095
|
cloudMonitorFlags?: boolean;
|
|
5881
6096
|
count?: number;
|
|
@@ -7603,6 +7818,66 @@ export class CreateClusterNodePoolRequestKubernetesConfig extends $tea.Model {
|
|
|
7603
7818
|
}
|
|
7604
7819
|
}
|
|
7605
7820
|
|
|
7821
|
+
export class CreateClusterNodePoolRequestManagementAutoRepairPolicy extends $tea.Model {
|
|
7822
|
+
restartNode?: boolean;
|
|
7823
|
+
static names(): { [key: string]: string } {
|
|
7824
|
+
return {
|
|
7825
|
+
restartNode: 'restart_node',
|
|
7826
|
+
};
|
|
7827
|
+
}
|
|
7828
|
+
|
|
7829
|
+
static types(): { [key: string]: any } {
|
|
7830
|
+
return {
|
|
7831
|
+
restartNode: 'boolean',
|
|
7832
|
+
};
|
|
7833
|
+
}
|
|
7834
|
+
|
|
7835
|
+
constructor(map?: { [key: string]: any }) {
|
|
7836
|
+
super(map);
|
|
7837
|
+
}
|
|
7838
|
+
}
|
|
7839
|
+
|
|
7840
|
+
export class CreateClusterNodePoolRequestManagementAutoUpgradePolicy extends $tea.Model {
|
|
7841
|
+
autoUpgradeKubelet?: boolean;
|
|
7842
|
+
static names(): { [key: string]: string } {
|
|
7843
|
+
return {
|
|
7844
|
+
autoUpgradeKubelet: 'auto_upgrade_kubelet',
|
|
7845
|
+
};
|
|
7846
|
+
}
|
|
7847
|
+
|
|
7848
|
+
static types(): { [key: string]: any } {
|
|
7849
|
+
return {
|
|
7850
|
+
autoUpgradeKubelet: 'boolean',
|
|
7851
|
+
};
|
|
7852
|
+
}
|
|
7853
|
+
|
|
7854
|
+
constructor(map?: { [key: string]: any }) {
|
|
7855
|
+
super(map);
|
|
7856
|
+
}
|
|
7857
|
+
}
|
|
7858
|
+
|
|
7859
|
+
export class CreateClusterNodePoolRequestManagementAutoVulFixPolicy extends $tea.Model {
|
|
7860
|
+
restartNode?: boolean;
|
|
7861
|
+
vulLevel?: string;
|
|
7862
|
+
static names(): { [key: string]: string } {
|
|
7863
|
+
return {
|
|
7864
|
+
restartNode: 'restart_node',
|
|
7865
|
+
vulLevel: 'vul_level',
|
|
7866
|
+
};
|
|
7867
|
+
}
|
|
7868
|
+
|
|
7869
|
+
static types(): { [key: string]: any } {
|
|
7870
|
+
return {
|
|
7871
|
+
restartNode: 'boolean',
|
|
7872
|
+
vulLevel: 'string',
|
|
7873
|
+
};
|
|
7874
|
+
}
|
|
7875
|
+
|
|
7876
|
+
constructor(map?: { [key: string]: any }) {
|
|
7877
|
+
super(map);
|
|
7878
|
+
}
|
|
7879
|
+
}
|
|
7880
|
+
|
|
7606
7881
|
export class CreateClusterNodePoolRequestManagementUpgradeConfig extends $tea.Model {
|
|
7607
7882
|
autoUpgrade?: boolean;
|
|
7608
7883
|
maxUnavailable?: number;
|
|
@@ -7633,11 +7908,21 @@ export class CreateClusterNodePoolRequestManagementUpgradeConfig extends $tea.Mo
|
|
|
7633
7908
|
|
|
7634
7909
|
export class CreateClusterNodePoolRequestManagement extends $tea.Model {
|
|
7635
7910
|
autoRepair?: boolean;
|
|
7911
|
+
autoRepairPolicy?: CreateClusterNodePoolRequestManagementAutoRepairPolicy;
|
|
7912
|
+
autoUpgrade?: boolean;
|
|
7913
|
+
autoUpgradePolicy?: CreateClusterNodePoolRequestManagementAutoUpgradePolicy;
|
|
7914
|
+
autoVulFix?: boolean;
|
|
7915
|
+
autoVulFixPolicy?: CreateClusterNodePoolRequestManagementAutoVulFixPolicy;
|
|
7636
7916
|
enable?: boolean;
|
|
7637
7917
|
upgradeConfig?: CreateClusterNodePoolRequestManagementUpgradeConfig;
|
|
7638
7918
|
static names(): { [key: string]: string } {
|
|
7639
7919
|
return {
|
|
7640
7920
|
autoRepair: 'auto_repair',
|
|
7921
|
+
autoRepairPolicy: 'auto_repair_policy',
|
|
7922
|
+
autoUpgrade: 'auto_upgrade',
|
|
7923
|
+
autoUpgradePolicy: 'auto_upgrade_policy',
|
|
7924
|
+
autoVulFix: 'auto_vul_fix',
|
|
7925
|
+
autoVulFixPolicy: 'auto_vul_fix_policy',
|
|
7641
7926
|
enable: 'enable',
|
|
7642
7927
|
upgradeConfig: 'upgrade_config',
|
|
7643
7928
|
};
|
|
@@ -7646,6 +7931,11 @@ export class CreateClusterNodePoolRequestManagement extends $tea.Model {
|
|
|
7646
7931
|
static types(): { [key: string]: any } {
|
|
7647
7932
|
return {
|
|
7648
7933
|
autoRepair: 'boolean',
|
|
7934
|
+
autoRepairPolicy: CreateClusterNodePoolRequestManagementAutoRepairPolicy,
|
|
7935
|
+
autoUpgrade: 'boolean',
|
|
7936
|
+
autoUpgradePolicy: CreateClusterNodePoolRequestManagementAutoUpgradePolicy,
|
|
7937
|
+
autoVulFix: 'boolean',
|
|
7938
|
+
autoVulFixPolicy: CreateClusterNodePoolRequestManagementAutoVulFixPolicy,
|
|
7649
7939
|
enable: 'boolean',
|
|
7650
7940
|
upgradeConfig: CreateClusterNodePoolRequestManagementUpgradeConfig,
|
|
7651
7941
|
};
|
|
@@ -8157,6 +8447,66 @@ export class DescribeClusterNodePoolDetailResponseBodyKubernetesConfig extends $
|
|
|
8157
8447
|
}
|
|
8158
8448
|
}
|
|
8159
8449
|
|
|
8450
|
+
export class DescribeClusterNodePoolDetailResponseBodyManagementAutoRepairPolicy extends $tea.Model {
|
|
8451
|
+
restartNode?: boolean;
|
|
8452
|
+
static names(): { [key: string]: string } {
|
|
8453
|
+
return {
|
|
8454
|
+
restartNode: 'restart_node',
|
|
8455
|
+
};
|
|
8456
|
+
}
|
|
8457
|
+
|
|
8458
|
+
static types(): { [key: string]: any } {
|
|
8459
|
+
return {
|
|
8460
|
+
restartNode: 'boolean',
|
|
8461
|
+
};
|
|
8462
|
+
}
|
|
8463
|
+
|
|
8464
|
+
constructor(map?: { [key: string]: any }) {
|
|
8465
|
+
super(map);
|
|
8466
|
+
}
|
|
8467
|
+
}
|
|
8468
|
+
|
|
8469
|
+
export class DescribeClusterNodePoolDetailResponseBodyManagementAutoUpgradePolicy extends $tea.Model {
|
|
8470
|
+
autoUpgradeKubelet?: boolean;
|
|
8471
|
+
static names(): { [key: string]: string } {
|
|
8472
|
+
return {
|
|
8473
|
+
autoUpgradeKubelet: 'auto_upgrade_kubelet',
|
|
8474
|
+
};
|
|
8475
|
+
}
|
|
8476
|
+
|
|
8477
|
+
static types(): { [key: string]: any } {
|
|
8478
|
+
return {
|
|
8479
|
+
autoUpgradeKubelet: 'boolean',
|
|
8480
|
+
};
|
|
8481
|
+
}
|
|
8482
|
+
|
|
8483
|
+
constructor(map?: { [key: string]: any }) {
|
|
8484
|
+
super(map);
|
|
8485
|
+
}
|
|
8486
|
+
}
|
|
8487
|
+
|
|
8488
|
+
export class DescribeClusterNodePoolDetailResponseBodyManagementAutoVulFixPolicy extends $tea.Model {
|
|
8489
|
+
restartNode?: boolean;
|
|
8490
|
+
vulLevel?: string;
|
|
8491
|
+
static names(): { [key: string]: string } {
|
|
8492
|
+
return {
|
|
8493
|
+
restartNode: 'restart_node',
|
|
8494
|
+
vulLevel: 'vul_level',
|
|
8495
|
+
};
|
|
8496
|
+
}
|
|
8497
|
+
|
|
8498
|
+
static types(): { [key: string]: any } {
|
|
8499
|
+
return {
|
|
8500
|
+
restartNode: 'boolean',
|
|
8501
|
+
vulLevel: 'string',
|
|
8502
|
+
};
|
|
8503
|
+
}
|
|
8504
|
+
|
|
8505
|
+
constructor(map?: { [key: string]: any }) {
|
|
8506
|
+
super(map);
|
|
8507
|
+
}
|
|
8508
|
+
}
|
|
8509
|
+
|
|
8160
8510
|
export class DescribeClusterNodePoolDetailResponseBodyManagementUpgradeConfig extends $tea.Model {
|
|
8161
8511
|
autoUpgrade?: boolean;
|
|
8162
8512
|
maxUnavailable?: number;
|
|
@@ -8187,11 +8537,21 @@ export class DescribeClusterNodePoolDetailResponseBodyManagementUpgradeConfig ex
|
|
|
8187
8537
|
|
|
8188
8538
|
export class DescribeClusterNodePoolDetailResponseBodyManagement extends $tea.Model {
|
|
8189
8539
|
autoRepair?: boolean;
|
|
8540
|
+
autoRepairPolicy?: DescribeClusterNodePoolDetailResponseBodyManagementAutoRepairPolicy;
|
|
8541
|
+
autoUpgrade?: boolean;
|
|
8542
|
+
autoUpgradePolicy?: DescribeClusterNodePoolDetailResponseBodyManagementAutoUpgradePolicy;
|
|
8543
|
+
autoVulFix?: boolean;
|
|
8544
|
+
autoVulFixPolicy?: DescribeClusterNodePoolDetailResponseBodyManagementAutoVulFixPolicy;
|
|
8190
8545
|
enable?: boolean;
|
|
8191
8546
|
upgradeConfig?: DescribeClusterNodePoolDetailResponseBodyManagementUpgradeConfig;
|
|
8192
8547
|
static names(): { [key: string]: string } {
|
|
8193
8548
|
return {
|
|
8194
8549
|
autoRepair: 'auto_repair',
|
|
8550
|
+
autoRepairPolicy: 'auto_repair_policy',
|
|
8551
|
+
autoUpgrade: 'auto_upgrade',
|
|
8552
|
+
autoUpgradePolicy: 'auto_upgrade_policy',
|
|
8553
|
+
autoVulFix: 'auto_vul_fix',
|
|
8554
|
+
autoVulFixPolicy: 'auto_vul_fix_policy',
|
|
8195
8555
|
enable: 'enable',
|
|
8196
8556
|
upgradeConfig: 'upgrade_config',
|
|
8197
8557
|
};
|
|
@@ -8200,6 +8560,11 @@ export class DescribeClusterNodePoolDetailResponseBodyManagement extends $tea.Mo
|
|
|
8200
8560
|
static types(): { [key: string]: any } {
|
|
8201
8561
|
return {
|
|
8202
8562
|
autoRepair: 'boolean',
|
|
8563
|
+
autoRepairPolicy: DescribeClusterNodePoolDetailResponseBodyManagementAutoRepairPolicy,
|
|
8564
|
+
autoUpgrade: 'boolean',
|
|
8565
|
+
autoUpgradePolicy: DescribeClusterNodePoolDetailResponseBodyManagementAutoUpgradePolicy,
|
|
8566
|
+
autoVulFix: 'boolean',
|
|
8567
|
+
autoVulFixPolicy: DescribeClusterNodePoolDetailResponseBodyManagementAutoVulFixPolicy,
|
|
8203
8568
|
enable: 'boolean',
|
|
8204
8569
|
upgradeConfig: DescribeClusterNodePoolDetailResponseBodyManagementUpgradeConfig,
|
|
8205
8570
|
};
|
|
@@ -8601,6 +8966,66 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsKubernetesConfig exten
|
|
|
8601
8966
|
}
|
|
8602
8967
|
}
|
|
8603
8968
|
|
|
8969
|
+
export class DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoRepairPolicy extends $tea.Model {
|
|
8970
|
+
restartNode?: boolean;
|
|
8971
|
+
static names(): { [key: string]: string } {
|
|
8972
|
+
return {
|
|
8973
|
+
restartNode: 'restart_node',
|
|
8974
|
+
};
|
|
8975
|
+
}
|
|
8976
|
+
|
|
8977
|
+
static types(): { [key: string]: any } {
|
|
8978
|
+
return {
|
|
8979
|
+
restartNode: 'boolean',
|
|
8980
|
+
};
|
|
8981
|
+
}
|
|
8982
|
+
|
|
8983
|
+
constructor(map?: { [key: string]: any }) {
|
|
8984
|
+
super(map);
|
|
8985
|
+
}
|
|
8986
|
+
}
|
|
8987
|
+
|
|
8988
|
+
export class DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoUpgradePolicy extends $tea.Model {
|
|
8989
|
+
autoUpgradeKubelet?: boolean;
|
|
8990
|
+
static names(): { [key: string]: string } {
|
|
8991
|
+
return {
|
|
8992
|
+
autoUpgradeKubelet: 'auto_upgrade_kubelet',
|
|
8993
|
+
};
|
|
8994
|
+
}
|
|
8995
|
+
|
|
8996
|
+
static types(): { [key: string]: any } {
|
|
8997
|
+
return {
|
|
8998
|
+
autoUpgradeKubelet: 'boolean',
|
|
8999
|
+
};
|
|
9000
|
+
}
|
|
9001
|
+
|
|
9002
|
+
constructor(map?: { [key: string]: any }) {
|
|
9003
|
+
super(map);
|
|
9004
|
+
}
|
|
9005
|
+
}
|
|
9006
|
+
|
|
9007
|
+
export class DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoVulFixPolicy extends $tea.Model {
|
|
9008
|
+
restartNode?: boolean;
|
|
9009
|
+
vulLevel?: string;
|
|
9010
|
+
static names(): { [key: string]: string } {
|
|
9011
|
+
return {
|
|
9012
|
+
restartNode: 'restart_node',
|
|
9013
|
+
vulLevel: 'vul_level',
|
|
9014
|
+
};
|
|
9015
|
+
}
|
|
9016
|
+
|
|
9017
|
+
static types(): { [key: string]: any } {
|
|
9018
|
+
return {
|
|
9019
|
+
restartNode: 'boolean',
|
|
9020
|
+
vulLevel: 'string',
|
|
9021
|
+
};
|
|
9022
|
+
}
|
|
9023
|
+
|
|
9024
|
+
constructor(map?: { [key: string]: any }) {
|
|
9025
|
+
super(map);
|
|
9026
|
+
}
|
|
9027
|
+
}
|
|
9028
|
+
|
|
8604
9029
|
export class DescribeClusterNodePoolsResponseBodyNodepoolsManagementUpgradeConfig extends $tea.Model {
|
|
8605
9030
|
autoUpgrade?: boolean;
|
|
8606
9031
|
maxUnavailable?: number;
|
|
@@ -8631,11 +9056,21 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsManagementUpgradeConfi
|
|
|
8631
9056
|
|
|
8632
9057
|
export class DescribeClusterNodePoolsResponseBodyNodepoolsManagement extends $tea.Model {
|
|
8633
9058
|
autoRepair?: boolean;
|
|
9059
|
+
autoRepairPolicy?: DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoRepairPolicy;
|
|
9060
|
+
autoUpgrade?: boolean;
|
|
9061
|
+
autoUpgradePolicy?: DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoUpgradePolicy;
|
|
9062
|
+
autoVulFix?: boolean;
|
|
9063
|
+
autoVulFixPolicy?: DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoVulFixPolicy;
|
|
8634
9064
|
enable?: boolean;
|
|
8635
9065
|
upgradeConfig?: DescribeClusterNodePoolsResponseBodyNodepoolsManagementUpgradeConfig;
|
|
8636
9066
|
static names(): { [key: string]: string } {
|
|
8637
9067
|
return {
|
|
8638
9068
|
autoRepair: 'auto_repair',
|
|
9069
|
+
autoRepairPolicy: 'auto_repair_policy',
|
|
9070
|
+
autoUpgrade: 'auto_upgrade',
|
|
9071
|
+
autoUpgradePolicy: 'auto_upgrade_policy',
|
|
9072
|
+
autoVulFix: 'auto_vul_fix',
|
|
9073
|
+
autoVulFixPolicy: 'auto_vul_fix_policy',
|
|
8639
9074
|
enable: 'enable',
|
|
8640
9075
|
upgradeConfig: 'upgrade_config',
|
|
8641
9076
|
};
|
|
@@ -8644,6 +9079,11 @@ export class DescribeClusterNodePoolsResponseBodyNodepoolsManagement extends $te
|
|
|
8644
9079
|
static types(): { [key: string]: any } {
|
|
8645
9080
|
return {
|
|
8646
9081
|
autoRepair: 'boolean',
|
|
9082
|
+
autoRepairPolicy: DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoRepairPolicy,
|
|
9083
|
+
autoUpgrade: 'boolean',
|
|
9084
|
+
autoUpgradePolicy: DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoUpgradePolicy,
|
|
9085
|
+
autoVulFix: 'boolean',
|
|
9086
|
+
autoVulFixPolicy: DescribeClusterNodePoolsResponseBodyNodepoolsManagementAutoVulFixPolicy,
|
|
8647
9087
|
enable: 'boolean',
|
|
8648
9088
|
upgradeConfig: DescribeClusterNodePoolsResponseBodyNodepoolsManagementUpgradeConfig,
|
|
8649
9089
|
};
|
|
@@ -9120,7 +9560,7 @@ export class DescribeClusterResourcesResponseBody extends $tea.Model {
|
|
|
9120
9560
|
resourceType?: string;
|
|
9121
9561
|
state?: string;
|
|
9122
9562
|
autoCreate?: number;
|
|
9123
|
-
dependencies?: DescribeClusterResourcesResponseBodyDependencies;
|
|
9563
|
+
dependencies?: DescribeClusterResourcesResponseBodyDependencies[];
|
|
9124
9564
|
static names(): { [key: string]: string } {
|
|
9125
9565
|
return {
|
|
9126
9566
|
clusterId: 'cluster_id',
|
|
@@ -9143,7 +9583,7 @@ export class DescribeClusterResourcesResponseBody extends $tea.Model {
|
|
|
9143
9583
|
resourceType: 'string',
|
|
9144
9584
|
state: 'string',
|
|
9145
9585
|
autoCreate: 'number',
|
|
9146
|
-
dependencies: DescribeClusterResourcesResponseBodyDependencies,
|
|
9586
|
+
dependencies: { 'type': 'array', 'itemType': DescribeClusterResourcesResponseBodyDependencies },
|
|
9147
9587
|
};
|
|
9148
9588
|
}
|
|
9149
9589
|
|
|
@@ -10668,6 +11108,40 @@ export class InstallClusterAddonsRequestBody extends $tea.Model {
|
|
|
10668
11108
|
}
|
|
10669
11109
|
}
|
|
10670
11110
|
|
|
11111
|
+
export class ListClusterChecksResponseBodyChecks extends $tea.Model {
|
|
11112
|
+
checkId?: string;
|
|
11113
|
+
createdAt?: string;
|
|
11114
|
+
finishedAt?: string;
|
|
11115
|
+
message?: string;
|
|
11116
|
+
status?: string;
|
|
11117
|
+
type?: string;
|
|
11118
|
+
static names(): { [key: string]: string } {
|
|
11119
|
+
return {
|
|
11120
|
+
checkId: 'check_id',
|
|
11121
|
+
createdAt: 'created_at',
|
|
11122
|
+
finishedAt: 'finished_at',
|
|
11123
|
+
message: 'message',
|
|
11124
|
+
status: 'status',
|
|
11125
|
+
type: 'type',
|
|
11126
|
+
};
|
|
11127
|
+
}
|
|
11128
|
+
|
|
11129
|
+
static types(): { [key: string]: any } {
|
|
11130
|
+
return {
|
|
11131
|
+
checkId: 'string',
|
|
11132
|
+
createdAt: 'string',
|
|
11133
|
+
finishedAt: 'string',
|
|
11134
|
+
message: 'string',
|
|
11135
|
+
status: 'string',
|
|
11136
|
+
type: 'string',
|
|
11137
|
+
};
|
|
11138
|
+
}
|
|
11139
|
+
|
|
11140
|
+
constructor(map?: { [key: string]: any }) {
|
|
11141
|
+
super(map);
|
|
11142
|
+
}
|
|
11143
|
+
}
|
|
11144
|
+
|
|
10671
11145
|
export class ListTagResourcesResponseBodyTagResourcesTagResource extends $tea.Model {
|
|
10672
11146
|
resourceId?: string;
|
|
10673
11147
|
resourceType?: string;
|
|
@@ -10715,6 +11189,28 @@ export class ListTagResourcesResponseBodyTagResources extends $tea.Model {
|
|
|
10715
11189
|
}
|
|
10716
11190
|
}
|
|
10717
11191
|
|
|
11192
|
+
export class ModifyClusterRequestSystemEventsLogging extends $tea.Model {
|
|
11193
|
+
enabled?: boolean;
|
|
11194
|
+
loggingProject?: string;
|
|
11195
|
+
static names(): { [key: string]: string } {
|
|
11196
|
+
return {
|
|
11197
|
+
enabled: 'enabled',
|
|
11198
|
+
loggingProject: 'logging_project',
|
|
11199
|
+
};
|
|
11200
|
+
}
|
|
11201
|
+
|
|
11202
|
+
static types(): { [key: string]: any } {
|
|
11203
|
+
return {
|
|
11204
|
+
enabled: 'boolean',
|
|
11205
|
+
loggingProject: 'string',
|
|
11206
|
+
};
|
|
11207
|
+
}
|
|
11208
|
+
|
|
11209
|
+
constructor(map?: { [key: string]: any }) {
|
|
11210
|
+
super(map);
|
|
11211
|
+
}
|
|
11212
|
+
}
|
|
11213
|
+
|
|
10718
11214
|
export class ModifyClusterConfigurationRequestCustomizeConfigConfigs extends $tea.Model {
|
|
10719
11215
|
key?: string;
|
|
10720
11216
|
value?: string;
|
|
@@ -10833,6 +11329,66 @@ export class ModifyClusterNodePoolRequestKubernetesConfig extends $tea.Model {
|
|
|
10833
11329
|
}
|
|
10834
11330
|
}
|
|
10835
11331
|
|
|
11332
|
+
export class ModifyClusterNodePoolRequestManagementAutoRepairPolicy extends $tea.Model {
|
|
11333
|
+
restartNode?: boolean;
|
|
11334
|
+
static names(): { [key: string]: string } {
|
|
11335
|
+
return {
|
|
11336
|
+
restartNode: 'restart_node',
|
|
11337
|
+
};
|
|
11338
|
+
}
|
|
11339
|
+
|
|
11340
|
+
static types(): { [key: string]: any } {
|
|
11341
|
+
return {
|
|
11342
|
+
restartNode: 'boolean',
|
|
11343
|
+
};
|
|
11344
|
+
}
|
|
11345
|
+
|
|
11346
|
+
constructor(map?: { [key: string]: any }) {
|
|
11347
|
+
super(map);
|
|
11348
|
+
}
|
|
11349
|
+
}
|
|
11350
|
+
|
|
11351
|
+
export class ModifyClusterNodePoolRequestManagementAutoUpgradePolicy extends $tea.Model {
|
|
11352
|
+
autoUpgradeKubelet?: boolean;
|
|
11353
|
+
static names(): { [key: string]: string } {
|
|
11354
|
+
return {
|
|
11355
|
+
autoUpgradeKubelet: 'auto_upgrade_kubelet',
|
|
11356
|
+
};
|
|
11357
|
+
}
|
|
11358
|
+
|
|
11359
|
+
static types(): { [key: string]: any } {
|
|
11360
|
+
return {
|
|
11361
|
+
autoUpgradeKubelet: 'boolean',
|
|
11362
|
+
};
|
|
11363
|
+
}
|
|
11364
|
+
|
|
11365
|
+
constructor(map?: { [key: string]: any }) {
|
|
11366
|
+
super(map);
|
|
11367
|
+
}
|
|
11368
|
+
}
|
|
11369
|
+
|
|
11370
|
+
export class ModifyClusterNodePoolRequestManagementAutoVulFixPolicy extends $tea.Model {
|
|
11371
|
+
restartNode?: boolean;
|
|
11372
|
+
vulLevel?: string;
|
|
11373
|
+
static names(): { [key: string]: string } {
|
|
11374
|
+
return {
|
|
11375
|
+
restartNode: 'restart_node',
|
|
11376
|
+
vulLevel: 'vul_level',
|
|
11377
|
+
};
|
|
11378
|
+
}
|
|
11379
|
+
|
|
11380
|
+
static types(): { [key: string]: any } {
|
|
11381
|
+
return {
|
|
11382
|
+
restartNode: 'boolean',
|
|
11383
|
+
vulLevel: 'string',
|
|
11384
|
+
};
|
|
11385
|
+
}
|
|
11386
|
+
|
|
11387
|
+
constructor(map?: { [key: string]: any }) {
|
|
11388
|
+
super(map);
|
|
11389
|
+
}
|
|
11390
|
+
}
|
|
11391
|
+
|
|
10836
11392
|
export class ModifyClusterNodePoolRequestManagementUpgradeConfig extends $tea.Model {
|
|
10837
11393
|
autoUpgrade?: boolean;
|
|
10838
11394
|
maxUnavailable?: number;
|
|
@@ -10863,11 +11419,21 @@ export class ModifyClusterNodePoolRequestManagementUpgradeConfig extends $tea.Mo
|
|
|
10863
11419
|
|
|
10864
11420
|
export class ModifyClusterNodePoolRequestManagement extends $tea.Model {
|
|
10865
11421
|
autoRepair?: boolean;
|
|
11422
|
+
autoRepairPolicy?: ModifyClusterNodePoolRequestManagementAutoRepairPolicy;
|
|
11423
|
+
autoUpgrade?: boolean;
|
|
11424
|
+
autoUpgradePolicy?: ModifyClusterNodePoolRequestManagementAutoUpgradePolicy;
|
|
11425
|
+
autoVulFix?: boolean;
|
|
11426
|
+
autoVulFixPolicy?: ModifyClusterNodePoolRequestManagementAutoVulFixPolicy;
|
|
10866
11427
|
enable?: boolean;
|
|
10867
11428
|
upgradeConfig?: ModifyClusterNodePoolRequestManagementUpgradeConfig;
|
|
10868
11429
|
static names(): { [key: string]: string } {
|
|
10869
11430
|
return {
|
|
10870
11431
|
autoRepair: 'auto_repair',
|
|
11432
|
+
autoRepairPolicy: 'auto_repair_policy',
|
|
11433
|
+
autoUpgrade: 'auto_upgrade',
|
|
11434
|
+
autoUpgradePolicy: 'auto_upgrade_policy',
|
|
11435
|
+
autoVulFix: 'auto_vul_fix',
|
|
11436
|
+
autoVulFixPolicy: 'auto_vul_fix_policy',
|
|
10871
11437
|
enable: 'enable',
|
|
10872
11438
|
upgradeConfig: 'upgrade_config',
|
|
10873
11439
|
};
|
|
@@ -10876,6 +11442,11 @@ export class ModifyClusterNodePoolRequestManagement extends $tea.Model {
|
|
|
10876
11442
|
static types(): { [key: string]: any } {
|
|
10877
11443
|
return {
|
|
10878
11444
|
autoRepair: 'boolean',
|
|
11445
|
+
autoRepairPolicy: ModifyClusterNodePoolRequestManagementAutoRepairPolicy,
|
|
11446
|
+
autoUpgrade: 'boolean',
|
|
11447
|
+
autoUpgradePolicy: ModifyClusterNodePoolRequestManagementAutoUpgradePolicy,
|
|
11448
|
+
autoVulFix: 'boolean',
|
|
11449
|
+
autoVulFixPolicy: ModifyClusterNodePoolRequestManagementAutoVulFixPolicy,
|
|
10879
11450
|
enable: 'boolean',
|
|
10880
11451
|
upgradeConfig: ModifyClusterNodePoolRequestManagementUpgradeConfig,
|
|
10881
11452
|
};
|
|
@@ -14074,9 +14645,24 @@ export default class Client extends OpenApi {
|
|
|
14074
14645
|
return await this.edgeClusterAddEdgeMachineWithOptions(clusterid, edgeMachineid, request, headers, runtime);
|
|
14075
14646
|
}
|
|
14076
14647
|
|
|
14648
|
+
/**
|
|
14649
|
+
* 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).
|
|
14650
|
+
* 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.
|
|
14651
|
+
* 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.
|
|
14652
|
+
* 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.
|
|
14653
|
+
*
|
|
14654
|
+
* @param request FixNodePoolVulsRequest
|
|
14655
|
+
* @param headers map
|
|
14656
|
+
* @param runtime runtime options for this request RuntimeOptions
|
|
14657
|
+
* @return FixNodePoolVulsResponse
|
|
14658
|
+
*/
|
|
14077
14659
|
async fixNodePoolVulsWithOptions(clusterId: string, nodepoolId: string, request: FixNodePoolVulsRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<FixNodePoolVulsResponse> {
|
|
14078
14660
|
Util.validateModel(request);
|
|
14079
14661
|
let body : {[key: string ]: any} = { };
|
|
14662
|
+
if (!Util.isUnset(request.autoRestart)) {
|
|
14663
|
+
body["auto_restart"] = request.autoRestart;
|
|
14664
|
+
}
|
|
14665
|
+
|
|
14080
14666
|
if (!Util.isUnset(request.nodes)) {
|
|
14081
14667
|
body["nodes"] = request.nodes;
|
|
14082
14668
|
}
|
|
@@ -14107,12 +14693,45 @@ export default class Client extends OpenApi {
|
|
|
14107
14693
|
return $tea.cast<FixNodePoolVulsResponse>(await this.callApi(params, req, runtime), new FixNodePoolVulsResponse({}));
|
|
14108
14694
|
}
|
|
14109
14695
|
|
|
14696
|
+
/**
|
|
14697
|
+
* 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).
|
|
14698
|
+
* 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.
|
|
14699
|
+
* 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.
|
|
14700
|
+
* 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.
|
|
14701
|
+
*
|
|
14702
|
+
* @param request FixNodePoolVulsRequest
|
|
14703
|
+
* @return FixNodePoolVulsResponse
|
|
14704
|
+
*/
|
|
14110
14705
|
async fixNodePoolVuls(clusterId: string, nodepoolId: string, request: FixNodePoolVulsRequest): Promise<FixNodePoolVulsResponse> {
|
|
14111
14706
|
let runtime = new $Util.RuntimeOptions({ });
|
|
14112
14707
|
let headers : {[key: string ]: string} = { };
|
|
14113
14708
|
return await this.fixNodePoolVulsWithOptions(clusterId, nodepoolId, request, headers, runtime);
|
|
14114
14709
|
}
|
|
14115
14710
|
|
|
14711
|
+
async getClusterCheckWithOptions(clusterId: string, checkId: string, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetClusterCheckResponse> {
|
|
14712
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
14713
|
+
headers: headers,
|
|
14714
|
+
});
|
|
14715
|
+
let params = new $OpenApi.Params({
|
|
14716
|
+
action: "GetClusterCheck",
|
|
14717
|
+
version: "2015-12-15",
|
|
14718
|
+
protocol: "HTTPS",
|
|
14719
|
+
pathname: `/clusters/%5Bcluster_id%5D/checks/%5Bcheck_id%5D`,
|
|
14720
|
+
method: "GET",
|
|
14721
|
+
authType: "AK",
|
|
14722
|
+
style: "ROA",
|
|
14723
|
+
reqBodyType: "json",
|
|
14724
|
+
bodyType: "json",
|
|
14725
|
+
});
|
|
14726
|
+
return $tea.cast<GetClusterCheckResponse>(await this.callApi(params, req, runtime), new GetClusterCheckResponse({}));
|
|
14727
|
+
}
|
|
14728
|
+
|
|
14729
|
+
async getClusterCheck(clusterId: string, checkId: string): Promise<GetClusterCheckResponse> {
|
|
14730
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
14731
|
+
let headers : {[key: string ]: string} = { };
|
|
14732
|
+
return await this.getClusterCheckWithOptions(clusterId, checkId, headers, runtime);
|
|
14733
|
+
}
|
|
14734
|
+
|
|
14116
14735
|
async getKubernetesTriggerWithOptions(ClusterId: string, request: GetKubernetesTriggerRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<GetKubernetesTriggerResponse> {
|
|
14117
14736
|
Util.validateModel(request);
|
|
14118
14737
|
let query : {[key: string ]: any} = { };
|
|
@@ -14252,6 +14871,37 @@ export default class Client extends OpenApi {
|
|
|
14252
14871
|
return await this.installClusterAddonsWithOptions(ClusterId, request, headers, runtime);
|
|
14253
14872
|
}
|
|
14254
14873
|
|
|
14874
|
+
async listClusterChecksWithOptions(clusterId: string, request: ListClusterChecksRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListClusterChecksResponse> {
|
|
14875
|
+
Util.validateModel(request);
|
|
14876
|
+
let query : {[key: string ]: any} = { };
|
|
14877
|
+
if (!Util.isUnset(request.type)) {
|
|
14878
|
+
query["type"] = request.type;
|
|
14879
|
+
}
|
|
14880
|
+
|
|
14881
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
14882
|
+
headers: headers,
|
|
14883
|
+
query: OpenApiUtil.query(query),
|
|
14884
|
+
});
|
|
14885
|
+
let params = new $OpenApi.Params({
|
|
14886
|
+
action: "ListClusterChecks",
|
|
14887
|
+
version: "2015-12-15",
|
|
14888
|
+
protocol: "HTTPS",
|
|
14889
|
+
pathname: `/clusters/%5Bcluster_id%5D/checks`,
|
|
14890
|
+
method: "GET",
|
|
14891
|
+
authType: "AK",
|
|
14892
|
+
style: "ROA",
|
|
14893
|
+
reqBodyType: "json",
|
|
14894
|
+
bodyType: "json",
|
|
14895
|
+
});
|
|
14896
|
+
return $tea.cast<ListClusterChecksResponse>(await this.callApi(params, req, runtime), new ListClusterChecksResponse({}));
|
|
14897
|
+
}
|
|
14898
|
+
|
|
14899
|
+
async listClusterChecks(clusterId: string, request: ListClusterChecksRequest): Promise<ListClusterChecksResponse> {
|
|
14900
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
14901
|
+
let headers : {[key: string ]: string} = { };
|
|
14902
|
+
return await this.listClusterChecksWithOptions(clusterId, request, headers, runtime);
|
|
14903
|
+
}
|
|
14904
|
+
|
|
14255
14905
|
async listTagResourcesWithOptions(tmpReq: ListTagResourcesRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<ListTagResourcesResponse> {
|
|
14256
14906
|
Util.validateModel(tmpReq);
|
|
14257
14907
|
let request = new ListTagResourcesShrinkRequest({ });
|
|
@@ -14391,6 +15041,10 @@ export default class Client extends OpenApi {
|
|
|
14391
15041
|
body["resource_group_id"] = request.resourceGroupId;
|
|
14392
15042
|
}
|
|
14393
15043
|
|
|
15044
|
+
if (!Util.isUnset(request.systemEventsLogging)) {
|
|
15045
|
+
body["system_events_logging"] = request.systemEventsLogging;
|
|
15046
|
+
}
|
|
15047
|
+
|
|
14394
15048
|
let req = new $OpenApi.OpenApiRequest({
|
|
14395
15049
|
headers: headers,
|
|
14396
15050
|
body: OpenApiUtil.parseToMap(body),
|
|
@@ -14791,6 +15445,11 @@ export default class Client extends OpenApi {
|
|
|
14791
15445
|
|
|
14792
15446
|
/**
|
|
14793
15447
|
* @deprecated
|
|
15448
|
+
* ****
|
|
15449
|
+
* * 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.
|
|
15450
|
+
* * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
|
|
15451
|
+
* * Nodes remain in the Unschedulable state when they are being removed.
|
|
15452
|
+
* * You can remove only worker nodes. You cannot remove master nodes.
|
|
14794
15453
|
*
|
|
14795
15454
|
* @param request RemoveClusterNodesRequest
|
|
14796
15455
|
* @param headers map
|
|
@@ -14833,6 +15492,11 @@ export default class Client extends OpenApi {
|
|
|
14833
15492
|
|
|
14834
15493
|
/**
|
|
14835
15494
|
* @deprecated
|
|
15495
|
+
* ****
|
|
15496
|
+
* * 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.
|
|
15497
|
+
* * Unknown errors may occur when you remove nodes. Before you remove nodes, back up the data on the nodes.
|
|
15498
|
+
* * Nodes remain in the Unschedulable state when they are being removed.
|
|
15499
|
+
* * You can remove only worker nodes. You cannot remove master nodes.
|
|
14836
15500
|
*
|
|
14837
15501
|
* @param request RemoveClusterNodesRequest
|
|
14838
15502
|
* @return RemoveClusterNodesResponse
|
|
@@ -14942,6 +15606,10 @@ export default class Client extends OpenApi {
|
|
|
14942
15606
|
async repairClusterNodePoolWithOptions(clusterId: string, nodepoolId: string, request: RepairClusterNodePoolRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RepairClusterNodePoolResponse> {
|
|
14943
15607
|
Util.validateModel(request);
|
|
14944
15608
|
let body : {[key: string ]: any} = { };
|
|
15609
|
+
if (!Util.isUnset(request.autoRestart)) {
|
|
15610
|
+
body["auto_restart"] = request.autoRestart;
|
|
15611
|
+
}
|
|
15612
|
+
|
|
14945
15613
|
if (!Util.isUnset(request.nodes)) {
|
|
14946
15614
|
body["nodes"] = request.nodes;
|
|
14947
15615
|
}
|
|
@@ -15042,6 +15710,41 @@ export default class Client extends OpenApi {
|
|
|
15042
15710
|
return await this.resumeUpgradeClusterWithOptions(ClusterId, headers, runtime);
|
|
15043
15711
|
}
|
|
15044
15712
|
|
|
15713
|
+
async runClusterCheckWithOptions(clusterId: string, request: RunClusterCheckRequest, headers: {[key: string ]: string}, runtime: $Util.RuntimeOptions): Promise<RunClusterCheckResponse> {
|
|
15714
|
+
Util.validateModel(request);
|
|
15715
|
+
let body : {[key: string ]: any} = { };
|
|
15716
|
+
if (!Util.isUnset(request.options)) {
|
|
15717
|
+
body["options"] = request.options;
|
|
15718
|
+
}
|
|
15719
|
+
|
|
15720
|
+
if (!Util.isUnset(request.type)) {
|
|
15721
|
+
body["type"] = request.type;
|
|
15722
|
+
}
|
|
15723
|
+
|
|
15724
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
15725
|
+
headers: headers,
|
|
15726
|
+
body: OpenApiUtil.parseToMap(body),
|
|
15727
|
+
});
|
|
15728
|
+
let params = new $OpenApi.Params({
|
|
15729
|
+
action: "RunClusterCheck",
|
|
15730
|
+
version: "2015-12-15",
|
|
15731
|
+
protocol: "HTTPS",
|
|
15732
|
+
pathname: `/clusters/%5Bcluster_id%5D/checks`,
|
|
15733
|
+
method: "POST",
|
|
15734
|
+
authType: "AK",
|
|
15735
|
+
style: "ROA",
|
|
15736
|
+
reqBodyType: "json",
|
|
15737
|
+
bodyType: "json",
|
|
15738
|
+
});
|
|
15739
|
+
return $tea.cast<RunClusterCheckResponse>(await this.callApi(params, req, runtime), new RunClusterCheckResponse({}));
|
|
15740
|
+
}
|
|
15741
|
+
|
|
15742
|
+
async runClusterCheck(clusterId: string, request: RunClusterCheckRequest): Promise<RunClusterCheckResponse> {
|
|
15743
|
+
let runtime = new $Util.RuntimeOptions({ });
|
|
15744
|
+
let headers : {[key: string ]: string} = { };
|
|
15745
|
+
return await this.runClusterCheckWithOptions(clusterId, request, headers, runtime);
|
|
15746
|
+
}
|
|
15747
|
+
|
|
15045
15748
|
/**
|
|
15046
15749
|
* @deprecated
|
|
15047
15750
|
*
|