tencentcloud-sdk-nodejs-tke 4.0.1052 → 4.1.1
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/README.md +18 -4
- package/es/index.js +1 -0
- package/es/services/index.js +1 -0
- package/es/services/tke/index.js +6 -0
- package/es/services/tke/v20180525/index.js +6 -0
- package/es/services/tke/v20180525/tke_client.js +690 -0
- package/es/services/tke/v20180525/tke_models.js +0 -0
- package/es/services/tke/v20220501/index.js +6 -0
- package/es/services/tke/v20220501/tke_client.js +48 -0
- package/es/services/tke/v20220501/tke_models.js +0 -0
- package/package.json +24 -8
- package/tencentcloud/services/tke/v20180525/index.js +2 -1
- package/tencentcloud/services/tke/v20180525/tke_client.js +2 -1
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +0 -27
- package/tencentcloud/services/tke/v20220501/index.js +2 -1
- package/tencentcloud/services/tke/v20220501/tke_client.js +2 -1
- package/tencentcloud/services/tke/v20220501/tke_models.d.ts +0 -17
- package/index.d.ts +0 -2
- package/index.js +0 -6
- package/prettier.config.js +0 -38
- package/src/index.ts +0 -1
- package/src/services/index.ts +0 -1
- package/src/services/tke/index.ts +0 -7
- package/src/services/tke/v20180525/index.ts +0 -6
- package/src/services/tke/v20180525/tke_client.ts +0 -2943
- package/src/services/tke/v20180525/tke_models.ts +0 -13572
- package/src/services/tke/v20220501/index.ts +0 -6
- package/src/services/tke/v20220501/tke_client.ts +0 -251
- package/src/services/tke/v20220501/tke_models.ts +0 -1899
- package/tsconfig.json +0 -33
- package/typings/index.d.ts +0 -2
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing,
|
|
12
|
-
* software distributed under the License is distributed on an
|
|
13
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
* KIND, either express or implied. See the License for the
|
|
15
|
-
* specific language governing permissions and limitations
|
|
16
|
-
* under the License.
|
|
17
|
-
*/
|
|
18
|
-
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
|
|
19
|
-
import {
|
|
20
|
-
StartMachinesResponse,
|
|
21
|
-
NativeNodeInfo,
|
|
22
|
-
HealthCheckTemplateRule,
|
|
23
|
-
GPUConfig,
|
|
24
|
-
HealthCheckPolicyRule,
|
|
25
|
-
DeleteHealthCheckPolicyRequest,
|
|
26
|
-
CreateNodePoolResponse,
|
|
27
|
-
TagSpecification,
|
|
28
|
-
CreateNativeNodePoolParam,
|
|
29
|
-
DescribeNodePoolsResponse,
|
|
30
|
-
ExternalNodeInfo,
|
|
31
|
-
DescribeClusterInstancesResponse,
|
|
32
|
-
AutoUpgradeOptions,
|
|
33
|
-
AutoscalingAdded,
|
|
34
|
-
Instance,
|
|
35
|
-
DescribeHealthCheckPolicyBindingsRequest,
|
|
36
|
-
NodeCountSummary,
|
|
37
|
-
SuperNodePoolInfo,
|
|
38
|
-
RuntimeConfig,
|
|
39
|
-
Label,
|
|
40
|
-
HealthCheckPolicyBinding,
|
|
41
|
-
CreateHealthCheckPolicyRequest,
|
|
42
|
-
InstanceExtraArgs,
|
|
43
|
-
MachineUpgradeSettings,
|
|
44
|
-
StartMachinesRequest,
|
|
45
|
-
RebootMachinesResponse,
|
|
46
|
-
InstanceChargePrepaid,
|
|
47
|
-
DeleteNodePoolResponse,
|
|
48
|
-
Tag,
|
|
49
|
-
MachineSetScaling,
|
|
50
|
-
ModifyNodePoolRequest,
|
|
51
|
-
UpdateNativeNodePoolParam,
|
|
52
|
-
Annotation,
|
|
53
|
-
DescribeClusterInstancesRequest,
|
|
54
|
-
DeleteHealthCheckPolicyResponse,
|
|
55
|
-
GPUParams,
|
|
56
|
-
LifecycleConfig,
|
|
57
|
-
RebootMachinesRequest,
|
|
58
|
-
ModifyNodePoolResponse,
|
|
59
|
-
RegularNodePoolInfo,
|
|
60
|
-
StopMachinesRequest,
|
|
61
|
-
Taint,
|
|
62
|
-
Filter,
|
|
63
|
-
DescribeHealthCheckPoliciesRequest,
|
|
64
|
-
DescribeHealthCheckTemplateResponse,
|
|
65
|
-
CreateNodePoolRequest,
|
|
66
|
-
RegularNodeInfo,
|
|
67
|
-
DescribeHealthCheckPolicyBindingsResponse,
|
|
68
|
-
NativeNodePoolInfo,
|
|
69
|
-
DescribeNodePoolsRequest,
|
|
70
|
-
NodePool,
|
|
71
|
-
DeleteNodePoolRequest,
|
|
72
|
-
InstanceAdvancedSettings,
|
|
73
|
-
IntOrString,
|
|
74
|
-
ExternalNodePoolInfo,
|
|
75
|
-
StopMachinesResponse,
|
|
76
|
-
DescribeHealthCheckTemplateRequest,
|
|
77
|
-
DescribeHealthCheckPoliciesResponse,
|
|
78
|
-
HealthCheckTemplate,
|
|
79
|
-
InternetAccessible,
|
|
80
|
-
ModifyHealthCheckPolicyRequest,
|
|
81
|
-
SuperNodeInfo,
|
|
82
|
-
ManuallyAdded,
|
|
83
|
-
ManagementConfig,
|
|
84
|
-
ModifyHealthCheckPolicyResponse,
|
|
85
|
-
SortBy,
|
|
86
|
-
HealthCheckPolicy,
|
|
87
|
-
Disk,
|
|
88
|
-
CreateHealthCheckPolicyResponse,
|
|
89
|
-
DataDisk,
|
|
90
|
-
} from "./tke_models"
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* tke client
|
|
94
|
-
* @class
|
|
95
|
-
*/
|
|
96
|
-
export class Client extends TencentCloudCommon.AbstractClient {
|
|
97
|
-
constructor(clientConfig: TencentCloudCommon.ClientConfig) {
|
|
98
|
-
super("tke.tencentcloudapi.com", "2022-05-01", clientConfig)
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* 查询 TKE 节点池列表
|
|
103
|
-
*/
|
|
104
|
-
async DescribeNodePools(
|
|
105
|
-
req: DescribeNodePoolsRequest,
|
|
106
|
-
cb?: (error: string, rep: DescribeNodePoolsResponse) => void
|
|
107
|
-
): Promise<DescribeNodePoolsResponse> {
|
|
108
|
-
return this.request("DescribeNodePools", req, cb)
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* 更新 TKE 节点池
|
|
113
|
-
*/
|
|
114
|
-
async ModifyNodePool(
|
|
115
|
-
req: ModifyNodePoolRequest,
|
|
116
|
-
cb?: (error: string, rep: ModifyNodePoolResponse) => void
|
|
117
|
-
): Promise<ModifyNodePoolResponse> {
|
|
118
|
-
return this.request("ModifyNodePool", req, cb)
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* 重启原生节点实例
|
|
123
|
-
*/
|
|
124
|
-
async RebootMachines(
|
|
125
|
-
req: RebootMachinesRequest,
|
|
126
|
-
cb?: (error: string, rep: RebootMachinesResponse) => void
|
|
127
|
-
): Promise<RebootMachinesResponse> {
|
|
128
|
-
return this.request("RebootMachines", req, cb)
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* 删除健康检测策略
|
|
133
|
-
*/
|
|
134
|
-
async DeleteHealthCheckPolicy(
|
|
135
|
-
req: DeleteHealthCheckPolicyRequest,
|
|
136
|
-
cb?: (error: string, rep: DeleteHealthCheckPolicyResponse) => void
|
|
137
|
-
): Promise<DeleteHealthCheckPolicyResponse> {
|
|
138
|
-
return this.request("DeleteHealthCheckPolicy", req, cb)
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* 删除 TKE 节点池
|
|
143
|
-
*/
|
|
144
|
-
async DeleteNodePool(
|
|
145
|
-
req: DeleteNodePoolRequest,
|
|
146
|
-
cb?: (error: string, rep: DeleteNodePoolResponse) => void
|
|
147
|
-
): Promise<DeleteNodePoolResponse> {
|
|
148
|
-
return this.request("DeleteNodePool", req, cb)
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* 查询健康检测策略
|
|
153
|
-
*/
|
|
154
|
-
async DescribeHealthCheckPolicies(
|
|
155
|
-
req: DescribeHealthCheckPoliciesRequest,
|
|
156
|
-
cb?: (error: string, rep: DescribeHealthCheckPoliciesResponse) => void
|
|
157
|
-
): Promise<DescribeHealthCheckPoliciesResponse> {
|
|
158
|
-
return this.request("DescribeHealthCheckPolicies", req, cb)
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* 修改健康检测策略
|
|
163
|
-
*/
|
|
164
|
-
async ModifyHealthCheckPolicy(
|
|
165
|
-
req: ModifyHealthCheckPolicyRequest,
|
|
166
|
-
cb?: (error: string, rep: ModifyHealthCheckPolicyResponse) => void
|
|
167
|
-
): Promise<ModifyHealthCheckPolicyResponse> {
|
|
168
|
-
return this.request("ModifyHealthCheckPolicy", req, cb)
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* 本接口 (StopMachines) 用于关闭一个或多个原生节点实例。
|
|
173
|
-
|
|
174
|
-
只有状态为 Running 的实例才可以进行此操作。
|
|
175
|
-
接口调用成功时,实例会进入 Stopping 状态;关闭实例成功时,实例会进入 Stopped 状态。
|
|
176
|
-
支持强制关闭。强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常关机时使用。
|
|
177
|
-
支持批量操作。每次请求批量实例的上限为 100。
|
|
178
|
-
本接口为同步接口,关闭实例请求发送成功后会返回一个RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeClusterInstances 接口查询,如果实例的状态为stopped_with_charging,则代表关闭实例操作成功。
|
|
179
|
-
*/
|
|
180
|
-
async StopMachines(
|
|
181
|
-
req: StopMachinesRequest,
|
|
182
|
-
cb?: (error: string, rep: StopMachinesResponse) => void
|
|
183
|
-
): Promise<StopMachinesResponse> {
|
|
184
|
-
return this.request("StopMachines", req, cb)
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* 创建 TKE 节点池
|
|
189
|
-
*/
|
|
190
|
-
async CreateNodePool(
|
|
191
|
-
req: CreateNodePoolRequest,
|
|
192
|
-
cb?: (error: string, rep: CreateNodePoolResponse) => void
|
|
193
|
-
): Promise<CreateNodePoolResponse> {
|
|
194
|
-
return this.request("CreateNodePool", req, cb)
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* 查询健康检测策略模板
|
|
199
|
-
*/
|
|
200
|
-
async DescribeHealthCheckTemplate(
|
|
201
|
-
req?: DescribeHealthCheckTemplateRequest,
|
|
202
|
-
cb?: (error: string, rep: DescribeHealthCheckTemplateResponse) => void
|
|
203
|
-
): Promise<DescribeHealthCheckTemplateResponse> {
|
|
204
|
-
return this.request("DescribeHealthCheckTemplate", req, cb)
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* 查询健康检测策略绑定关系
|
|
209
|
-
*/
|
|
210
|
-
async DescribeHealthCheckPolicyBindings(
|
|
211
|
-
req: DescribeHealthCheckPolicyBindingsRequest,
|
|
212
|
-
cb?: (error: string, rep: DescribeHealthCheckPolicyBindingsResponse) => void
|
|
213
|
-
): Promise<DescribeHealthCheckPolicyBindingsResponse> {
|
|
214
|
-
return this.request("DescribeHealthCheckPolicyBindings", req, cb)
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* 创建健康检测策略
|
|
219
|
-
*/
|
|
220
|
-
async CreateHealthCheckPolicy(
|
|
221
|
-
req: CreateHealthCheckPolicyRequest,
|
|
222
|
-
cb?: (error: string, rep: CreateHealthCheckPolicyResponse) => void
|
|
223
|
-
): Promise<CreateHealthCheckPolicyResponse> {
|
|
224
|
-
return this.request("CreateHealthCheckPolicy", req, cb)
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* 本接口 (StartMachines) 用于启动一个或多个原生节点实例。
|
|
229
|
-
|
|
230
|
-
只有状态为 Stopped 的实例才可以进行此操作。
|
|
231
|
-
接口调用成功后,等待一分钟左右,实例会进入 Running 状态。
|
|
232
|
-
支持批量操作。每次请求批量实例的上限为100。
|
|
233
|
-
本接口为同步接口,启动实例请求发送成功后会返回一个RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeClusterInstances 接口查询,如果实例的状态为 Running,则代表启动实例操作成功。
|
|
234
|
-
*/
|
|
235
|
-
async StartMachines(
|
|
236
|
-
req: StartMachinesRequest,
|
|
237
|
-
cb?: (error: string, rep: StartMachinesResponse) => void
|
|
238
|
-
): Promise<StartMachinesResponse> {
|
|
239
|
-
return this.request("StartMachines", req, cb)
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* 查询集群下节点实例信息
|
|
244
|
-
*/
|
|
245
|
-
async DescribeClusterInstances(
|
|
246
|
-
req: DescribeClusterInstancesRequest,
|
|
247
|
-
cb?: (error: string, rep: DescribeClusterInstancesResponse) => void
|
|
248
|
-
): Promise<DescribeClusterInstancesResponse> {
|
|
249
|
-
return this.request("DescribeClusterInstances", req, cb)
|
|
250
|
-
}
|
|
251
|
-
}
|