tencentcloud-sdk-nodejs 4.0.568 → 4.0.570
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/CHANGELOG.md +391 -0
- package/SERVICE_CHANGELOG.md +417 -91
- package/package.json +1 -1
- package/products.md +190 -190
- package/src/common/sdk_version.ts +1 -1
- package/src/services/billing/v20180709/billing_models.ts +4 -4
- package/src/services/bma/v20221115/bma_models.ts +5 -0
- package/src/services/cdn/v20180606/cdn_models.ts +7 -7
- package/src/services/cfs/v20190719/cfs_models.ts +9 -3
- package/src/services/ckafka/v20190819/ckafka_client.ts +18 -6
- package/src/services/ckafka/v20190819/ckafka_models.ts +46 -1
- package/src/services/cwp/v20180228/cwp_client.ts +26 -13
- package/src/services/cwp/v20180228/cwp_models.ts +261 -72
- package/src/services/dcdb/v20180411/dcdb_models.ts +55 -49
- package/src/services/ess/v20201111/ess_client.ts +2 -1
- package/src/services/ess/v20201111/ess_models.ts +34 -4
- package/src/services/live/v20180801/live_models.ts +1 -1
- package/src/services/mariadb/v20170312/mariadb_models.ts +60 -54
- package/src/services/mongodb/v20190725/mongodb_client.ts +1 -1
- package/src/services/mongodb/v20190725/mongodb_models.ts +7 -7
- package/src/services/monitor/v20180724/monitor_client.ts +3 -1
- package/src/services/ocr/v20181119/ocr_models.ts +11 -1
- package/src/services/region/v20220627/region_models.ts +14 -4
- package/src/services/ssl/v20191205/ssl_models.ts +52 -47
- package/src/services/tcb/v20180608/tcb_models.ts +57 -47
- package/src/services/tcr/v20190924/tcr_client.ts +8 -4
- package/src/services/tdmq/v20200217/tdmq_models.ts +1 -1
- package/src/services/thpc/index.ts +2 -0
- package/src/services/thpc/v20230321/index.ts +6 -0
- package/src/services/thpc/v20230321/thpc_client.ts +250 -0
- package/src/services/thpc/v20230321/thpc_models.ts +1558 -0
- package/src/services/tiw/v20190919/tiw_client.ts +31 -17
- package/src/services/tiw/v20190919/tiw_models.ts +151 -21
- package/src/services/trtc/v20190722/trtc_client.ts +3 -3
- package/src/services/trtc/v20190722/trtc_models.ts +1 -1
- package/src/services/tse/v20201207/tse_models.ts +30 -0
- package/src/services/tts/v20190823/tts_models.ts +10 -4
- package/src/services/vod/v20180717/vod_client.ts +2 -0
- package/src/services/vod/v20180717/vod_models.ts +22 -2
- package/src/services/vpc/v20170312/vpc_client.ts +1 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +4 -4
- package/tencentcloud/services/bma/v20221115/bma_models.d.ts +4 -0
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +7 -7
- package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +8 -2
- package/tencentcloud/services/ckafka/v20190819/ckafka_client.d.ts +7 -3
- package/tencentcloud/services/ckafka/v20190819/ckafka_client.js +9 -3
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +39 -1
- package/tencentcloud/services/cwp/v20180228/cwp_client.d.ts +9 -5
- package/tencentcloud/services/cwp/v20180228/cwp_client.js +12 -6
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +228 -72
- package/tencentcloud/services/dcdb/v20180411/dcdb_models.d.ts +54 -49
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +1 -1
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +30 -4
- package/tencentcloud/services/live/v20180801/live_models.d.ts +1 -1
- package/tencentcloud/services/mariadb/v20170312/mariadb_models.d.ts +59 -54
- package/tencentcloud/services/mongodb/v20190725/mongodb_client.d.ts +1 -1
- package/tencentcloud/services/mongodb/v20190725/mongodb_client.js +1 -1
- package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +7 -7
- package/tencentcloud/services/monitor/v20180724/monitor_client.d.ts +3 -1
- package/tencentcloud/services/monitor/v20180724/monitor_client.js +3 -1
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +10 -1
- package/tencentcloud/services/region/v20220627/region_models.d.ts +12 -4
- package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +51 -47
- package/tencentcloud/services/tcb/v20180608/tcb_models.d.ts +55 -47
- package/tencentcloud/services/tcr/v20190924/tcr_client.d.ts +6 -2
- package/tencentcloud/services/tcr/v20190924/tcr_client.js +6 -2
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +1 -1
- package/tencentcloud/services/thpc/index.d.ts +4 -0
- package/tencentcloud/services/thpc/index.js +2 -0
- package/tencentcloud/services/thpc/v20230321/index.d.ts +6 -0
- package/tencentcloud/services/thpc/v20230321/index.js +9 -0
- package/tencentcloud/services/thpc/v20230321/thpc_client.d.ts +77 -0
- package/tencentcloud/services/thpc/v20230321/thpc_client.js +128 -0
- package/tencentcloud/services/thpc/v20230321/thpc_models.d.ts +1314 -0
- package/tencentcloud/services/thpc/v20230321/thpc_models.js +18 -0
- package/tencentcloud/services/tiw/v20190919/tiw_client.d.ts +11 -7
- package/tencentcloud/services/tiw/v20190919/tiw_client.js +15 -9
- package/tencentcloud/services/tiw/v20190919/tiw_models.d.ts +127 -19
- package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +3 -3
- package/tencentcloud/services/trtc/v20190722/trtc_client.js +3 -3
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +1 -1
- package/tencentcloud/services/tse/v20201207/tse_models.d.ts +25 -0
- package/tencentcloud/services/tts/v20190823/tts_models.d.ts +9 -4
- package/tencentcloud/services/vod/v20180717/vod_client.d.ts +2 -0
- package/tencentcloud/services/vod/v20180717/vod_client.js +2 -0
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +20 -2
- package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +1 -1
- package/tencentcloud/services/vpc/v20170312/vpc_client.js +1 -1
- package/test/ckafka.v20190819.test.js +12 -2
- package/test/cwp.v20180228.test.js +14 -4
- package/test/thpc.v20230321.test.js +171 -0
- package/test/tiw.v20190919.test.js +22 -12
|
@@ -250,17 +250,17 @@ export interface RollUpdateCloudBaseRunServerVersionResponse {
|
|
|
250
250
|
/**
|
|
251
251
|
* succ为成功
|
|
252
252
|
*/
|
|
253
|
-
Result
|
|
253
|
+
Result?: string;
|
|
254
254
|
/**
|
|
255
255
|
* 滚动更新的VersionName
|
|
256
256
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
257
257
|
*/
|
|
258
|
-
VersionName
|
|
258
|
+
VersionName?: string;
|
|
259
259
|
/**
|
|
260
260
|
* 操作记录id
|
|
261
261
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
262
262
|
*/
|
|
263
|
-
RunId
|
|
263
|
+
RunId?: string;
|
|
264
264
|
/**
|
|
265
265
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
266
266
|
*/
|
|
@@ -822,6 +822,14 @@ export interface CreatePostpayPackageRequest {
|
|
|
822
822
|
<li>Activity:活动来源</li>
|
|
823
823
|
*/
|
|
824
824
|
Flag?: string;
|
|
825
|
+
/**
|
|
826
|
+
* 环境别名,无字符类型限制
|
|
827
|
+
*/
|
|
828
|
+
EnvAlias?: string;
|
|
829
|
+
/**
|
|
830
|
+
* 附加字段,用于透传额外的自定义信息
|
|
831
|
+
*/
|
|
832
|
+
Extra?: string;
|
|
825
833
|
}
|
|
826
834
|
/**
|
|
827
835
|
* DescribeWxCloudBaseRunSubNets请求参数结构体
|
|
@@ -1203,189 +1211,189 @@ export interface DescribeCloudBaseRunServerVersionResponse {
|
|
|
1203
1211
|
/**
|
|
1204
1212
|
* 版本名称
|
|
1205
1213
|
*/
|
|
1206
|
-
VersionName
|
|
1214
|
+
VersionName?: string;
|
|
1207
1215
|
/**
|
|
1208
1216
|
* 备注
|
|
1209
1217
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1210
1218
|
*/
|
|
1211
|
-
Remark
|
|
1219
|
+
Remark?: string;
|
|
1212
1220
|
/**
|
|
1213
1221
|
* Dockefile的路径
|
|
1214
1222
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1215
1223
|
*/
|
|
1216
|
-
DockerfilePath
|
|
1224
|
+
DockerfilePath?: string;
|
|
1217
1225
|
/**
|
|
1218
1226
|
* DockerBuild的目录
|
|
1219
1227
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1220
1228
|
*/
|
|
1221
|
-
BuildDir
|
|
1229
|
+
BuildDir?: string;
|
|
1222
1230
|
/**
|
|
1223
1231
|
* 请使用CPUSize
|
|
1224
1232
|
*/
|
|
1225
|
-
Cpu
|
|
1233
|
+
Cpu?: number;
|
|
1226
1234
|
/**
|
|
1227
1235
|
* 请使用MemSize
|
|
1228
1236
|
*/
|
|
1229
|
-
Mem
|
|
1237
|
+
Mem?: number;
|
|
1230
1238
|
/**
|
|
1231
1239
|
* 副本最小值
|
|
1232
1240
|
*/
|
|
1233
|
-
MinNum
|
|
1241
|
+
MinNum?: number;
|
|
1234
1242
|
/**
|
|
1235
1243
|
* 副本最大值
|
|
1236
1244
|
*/
|
|
1237
|
-
MaxNum
|
|
1245
|
+
MaxNum?: number;
|
|
1238
1246
|
/**
|
|
1239
1247
|
* 策略类型
|
|
1240
1248
|
*/
|
|
1241
|
-
PolicyType
|
|
1249
|
+
PolicyType?: string;
|
|
1242
1250
|
/**
|
|
1243
1251
|
* 策略阈值
|
|
1244
1252
|
*/
|
|
1245
|
-
PolicyThreshold
|
|
1253
|
+
PolicyThreshold?: number;
|
|
1246
1254
|
/**
|
|
1247
1255
|
* 环境变量
|
|
1248
1256
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1249
1257
|
*/
|
|
1250
|
-
EnvParams
|
|
1258
|
+
EnvParams?: string;
|
|
1251
1259
|
/**
|
|
1252
1260
|
* 创建时间
|
|
1253
1261
|
*/
|
|
1254
|
-
CreatedTime
|
|
1262
|
+
CreatedTime?: string;
|
|
1255
1263
|
/**
|
|
1256
1264
|
* 更新时间
|
|
1257
1265
|
*/
|
|
1258
|
-
UpdatedTime
|
|
1266
|
+
UpdatedTime?: string;
|
|
1259
1267
|
/**
|
|
1260
1268
|
* 版本的IP
|
|
1261
1269
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1262
1270
|
*/
|
|
1263
|
-
VersionIP
|
|
1271
|
+
VersionIP?: string;
|
|
1264
1272
|
/**
|
|
1265
1273
|
* 版本的端口号
|
|
1266
1274
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1267
1275
|
*/
|
|
1268
|
-
VersionPort
|
|
1276
|
+
VersionPort?: number;
|
|
1269
1277
|
/**
|
|
1270
1278
|
* 版本状态
|
|
1271
1279
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1272
1280
|
*/
|
|
1273
|
-
Status
|
|
1281
|
+
Status?: string;
|
|
1274
1282
|
/**
|
|
1275
1283
|
* 代码包的名字
|
|
1276
1284
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1277
1285
|
*/
|
|
1278
|
-
PackageName
|
|
1286
|
+
PackageName?: string;
|
|
1279
1287
|
/**
|
|
1280
1288
|
* 代码版本的名字
|
|
1281
1289
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1282
1290
|
*/
|
|
1283
|
-
PackageVersion
|
|
1291
|
+
PackageVersion?: string;
|
|
1284
1292
|
/**
|
|
1285
1293
|
* 枚举(package/repository/image)
|
|
1286
1294
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1287
1295
|
*/
|
|
1288
|
-
UploadType
|
|
1296
|
+
UploadType?: string;
|
|
1289
1297
|
/**
|
|
1290
1298
|
* Repo的类型(gitlab/github/coding)
|
|
1291
1299
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1292
1300
|
*/
|
|
1293
|
-
RepoType
|
|
1301
|
+
RepoType?: string;
|
|
1294
1302
|
/**
|
|
1295
1303
|
* 地址
|
|
1296
1304
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1297
1305
|
*/
|
|
1298
|
-
Repo
|
|
1306
|
+
Repo?: string;
|
|
1299
1307
|
/**
|
|
1300
1308
|
* 分支
|
|
1301
1309
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1302
1310
|
*/
|
|
1303
|
-
Branch
|
|
1311
|
+
Branch?: string;
|
|
1304
1312
|
/**
|
|
1305
1313
|
* 服务名字
|
|
1306
1314
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1307
1315
|
*/
|
|
1308
|
-
ServerName
|
|
1316
|
+
ServerName?: string;
|
|
1309
1317
|
/**
|
|
1310
1318
|
* 是否对于外网开放
|
|
1311
1319
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1312
1320
|
*/
|
|
1313
|
-
IsPublic
|
|
1321
|
+
IsPublic?: boolean;
|
|
1314
1322
|
/**
|
|
1315
1323
|
* vpc id
|
|
1316
1324
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1317
1325
|
*/
|
|
1318
|
-
VpcId
|
|
1326
|
+
VpcId?: string;
|
|
1319
1327
|
/**
|
|
1320
1328
|
* 子网实例id
|
|
1321
1329
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1322
1330
|
*/
|
|
1323
|
-
SubnetIds
|
|
1331
|
+
SubnetIds?: Array<string>;
|
|
1324
1332
|
/**
|
|
1325
1333
|
* 日志采集路径
|
|
1326
1334
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1327
1335
|
*/
|
|
1328
|
-
CustomLogs
|
|
1336
|
+
CustomLogs?: string;
|
|
1329
1337
|
/**
|
|
1330
1338
|
* 监听端口
|
|
1331
1339
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1332
1340
|
*/
|
|
1333
|
-
ContainerPort
|
|
1341
|
+
ContainerPort?: number;
|
|
1334
1342
|
/**
|
|
1335
1343
|
* 延迟多长时间开始健康检查(单位s)
|
|
1336
1344
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1337
1345
|
*/
|
|
1338
|
-
InitialDelaySeconds
|
|
1346
|
+
InitialDelaySeconds?: number;
|
|
1339
1347
|
/**
|
|
1340
1348
|
* 镜像地址
|
|
1341
1349
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1342
1350
|
*/
|
|
1343
|
-
ImageUrl
|
|
1351
|
+
ImageUrl?: string;
|
|
1344
1352
|
/**
|
|
1345
1353
|
* CPU 大小
|
|
1346
1354
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1347
1355
|
*/
|
|
1348
|
-
CpuSize
|
|
1356
|
+
CpuSize?: number;
|
|
1349
1357
|
/**
|
|
1350
1358
|
* MEM 大小
|
|
1351
1359
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1352
1360
|
*/
|
|
1353
|
-
MemSize
|
|
1361
|
+
MemSize?: number;
|
|
1354
1362
|
/**
|
|
1355
1363
|
* 是否有Dockerfile:0-default has, 1-has, 2-has not
|
|
1356
1364
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1357
1365
|
*/
|
|
1358
|
-
HasDockerfile
|
|
1366
|
+
HasDockerfile?: number;
|
|
1359
1367
|
/**
|
|
1360
1368
|
* 基础镜像
|
|
1361
1369
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1362
1370
|
*/
|
|
1363
|
-
BaseImage
|
|
1371
|
+
BaseImage?: string;
|
|
1364
1372
|
/**
|
|
1365
1373
|
* 容器启动入口命令
|
|
1366
1374
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1367
1375
|
*/
|
|
1368
|
-
EntryPoint
|
|
1376
|
+
EntryPoint?: string;
|
|
1369
1377
|
/**
|
|
1370
1378
|
* 仓库语言
|
|
1371
1379
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1372
1380
|
*/
|
|
1373
|
-
RepoLanguage
|
|
1381
|
+
RepoLanguage?: string;
|
|
1374
1382
|
/**
|
|
1375
1383
|
* 自动扩缩容策略组
|
|
1376
1384
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1377
1385
|
*/
|
|
1378
|
-
PolicyDetail
|
|
1386
|
+
PolicyDetail?: Array<HpaPolicy>;
|
|
1379
1387
|
/**
|
|
1380
1388
|
* Tke集群信息
|
|
1381
1389
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1382
1390
|
*/
|
|
1383
|
-
TkeClusterInfo
|
|
1391
|
+
TkeClusterInfo?: TkeClusterInfo;
|
|
1384
1392
|
/**
|
|
1385
1393
|
* 版本工作负载类型;deployment/deamonset
|
|
1386
1394
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1387
1395
|
*/
|
|
1388
|
-
TkeWorkloadType
|
|
1396
|
+
TkeWorkloadType?: string;
|
|
1389
1397
|
/**
|
|
1390
1398
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1391
1399
|
*/
|
|
@@ -3049,12 +3057,12 @@ export interface CreatePostpayPackageResponse {
|
|
|
3049
3057
|
/**
|
|
3050
3058
|
* 后付费订单号
|
|
3051
3059
|
*/
|
|
3052
|
-
TranId
|
|
3060
|
+
TranId?: string;
|
|
3053
3061
|
/**
|
|
3054
3062
|
* 环境ID
|
|
3055
3063
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3056
3064
|
*/
|
|
3057
|
-
EnvId
|
|
3065
|
+
EnvId?: string;
|
|
3058
3066
|
/**
|
|
3059
3067
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3060
3068
|
*/
|
|
@@ -3743,17 +3751,17 @@ export interface CreateCloudBaseRunServerVersionResponse {
|
|
|
3743
3751
|
* 状态(creating/succ)
|
|
3744
3752
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3745
3753
|
*/
|
|
3746
|
-
Result
|
|
3754
|
+
Result?: string;
|
|
3747
3755
|
/**
|
|
3748
3756
|
* 版本名称(只有Result为succ的时候,才会返回VersionName)
|
|
3749
3757
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3750
3758
|
*/
|
|
3751
|
-
VersionName
|
|
3759
|
+
VersionName?: string;
|
|
3752
3760
|
/**
|
|
3753
3761
|
* 操作记录id
|
|
3754
3762
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3755
3763
|
*/
|
|
3756
|
-
RunId
|
|
3764
|
+
RunId?: string;
|
|
3757
3765
|
/**
|
|
3758
3766
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3759
3767
|
*/
|
|
@@ -12,7 +12,9 @@ export declare class Client extends AbstractClient {
|
|
|
12
12
|
*/
|
|
13
13
|
DescribeImageLifecycleGlobalPersonal(req?: DescribeImageLifecycleGlobalPersonalRequest, cb?: (error: string, rep: DescribeImageLifecycleGlobalPersonalResponse) => void): Promise<DescribeImageLifecycleGlobalPersonalResponse>;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* 前端与现有逻辑均不再使用,可下线
|
|
16
|
+
|
|
17
|
+
用于在个人版中创建清理策略
|
|
16
18
|
*/
|
|
17
19
|
CreateImageLifecyclePersonal(req: CreateImageLifecyclePersonalRequest, cb?: (error: string, rep: CreateImageLifecyclePersonalResponse) => void): Promise<CreateImageLifecyclePersonalResponse>;
|
|
18
20
|
/**
|
|
@@ -128,7 +130,9 @@ export declare class Client extends AbstractClient {
|
|
|
128
130
|
*/
|
|
129
131
|
ModifyRepositoryAccessPersonal(req: ModifyRepositoryAccessPersonalRequest, cb?: (error: string, rep: ModifyRepositoryAccessPersonalResponse) => void): Promise<ModifyRepositoryAccessPersonalResponse>;
|
|
130
132
|
/**
|
|
131
|
-
*
|
|
133
|
+
* 前端与后端目前现有逻辑均不再使用,可下线
|
|
134
|
+
|
|
135
|
+
用于在个人版镜像仓库中删除仓库Tag自动清理策略
|
|
132
136
|
*/
|
|
133
137
|
DeleteImageLifecyclePersonal(req: DeleteImageLifecyclePersonalRequest, cb?: (error: string, rep: DeleteImageLifecyclePersonalResponse) => void): Promise<DeleteImageLifecyclePersonalResponse>;
|
|
134
138
|
/**
|
|
@@ -34,7 +34,9 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
34
34
|
return this.request("DescribeImageLifecycleGlobalPersonal", req, cb);
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* 前端与现有逻辑均不再使用,可下线
|
|
38
|
+
|
|
39
|
+
用于在个人版中创建清理策略
|
|
38
40
|
*/
|
|
39
41
|
async CreateImageLifecyclePersonal(req, cb) {
|
|
40
42
|
return this.request("CreateImageLifecyclePersonal", req, cb);
|
|
@@ -208,7 +210,9 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
208
210
|
return this.request("ModifyRepositoryAccessPersonal", req, cb);
|
|
209
211
|
}
|
|
210
212
|
/**
|
|
211
|
-
*
|
|
213
|
+
* 前端与后端目前现有逻辑均不再使用,可下线
|
|
214
|
+
|
|
215
|
+
用于在个人版镜像仓库中删除仓库Tag自动清理策略
|
|
212
216
|
*/
|
|
213
217
|
async DeleteImageLifecyclePersonal(req, cb) {
|
|
214
218
|
return this.request("DeleteImageLifecyclePersonal", req, cb);
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export declare const thpc: {
|
|
2
|
+
v20230321: {
|
|
3
|
+
Client: typeof import("./v20230321/thpc_client").Client;
|
|
4
|
+
Models: typeof import("./v20230321/thpc_models");
|
|
5
|
+
};
|
|
2
6
|
v20211109: {
|
|
3
7
|
Client: typeof import("./v20211109/thpc_client").Client;
|
|
4
8
|
Models: typeof import("./v20211109/thpc_models");
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.thpc = void 0;
|
|
4
|
+
const v20230321_1 = require("./v20230321");
|
|
4
5
|
const v20211109_1 = require("./v20211109");
|
|
5
6
|
const v20220401_1 = require("./v20220401");
|
|
6
7
|
exports.thpc = {
|
|
8
|
+
v20230321: v20230321_1.v20230321,
|
|
7
9
|
v20211109: v20211109_1.v20211109,
|
|
8
10
|
v20220401: v20220401_1.v20220401,
|
|
9
11
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.v20230321 = void 0;
|
|
4
|
+
const Models = require("./thpc_models");
|
|
5
|
+
const thpc_client_1 = require("./thpc_client");
|
|
6
|
+
exports.v20230321 = {
|
|
7
|
+
Client: thpc_client_1.Client,
|
|
8
|
+
Models: Models
|
|
9
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
|
+
import { ClientConfig } from "../../../common/interface";
|
|
3
|
+
import { DescribeAutoScalingConfigurationResponse, DescribeClusterStorageOptionRequest, DescribeClustersRequest, SetAutoScalingConfigurationRequest, DescribeNodesRequest, DeleteNodesResponse, AddClusterStorageOptionResponse, DeleteClusterResponse, AddQueueRequest, CreateClusterResponse, DescribeQueuesRequest, SetAutoScalingConfigurationResponse, CreateClusterRequest, AddQueueResponse, DescribeClusterStorageOptionResponse, DescribeQueuesResponse, DeleteClusterRequest, DescribeClusterActivitiesRequest, DeleteQueueRequest, AddNodesRequest, DeleteClusterStorageOptionRequest, AddClusterStorageOptionRequest, DescribeAutoScalingConfigurationRequest, DeleteNodesRequest, DescribeClustersResponse, DeleteClusterStorageOptionResponse, DescribeNodesResponse, DescribeClusterActivitiesResponse, DeleteQueueResponse, AddNodesResponse } from "./thpc_models";
|
|
4
|
+
/**
|
|
5
|
+
* thpc client
|
|
6
|
+
* @class
|
|
7
|
+
*/
|
|
8
|
+
export declare class Client extends AbstractClient {
|
|
9
|
+
constructor(clientConfig: ClientConfig);
|
|
10
|
+
/**
|
|
11
|
+
* 本接口 (DescribeClusterStorageOption) 用于查询集群存储选项信息。
|
|
12
|
+
*/
|
|
13
|
+
DescribeClusterStorageOption(req: DescribeClusterStorageOptionRequest, cb?: (error: string, rep: DescribeClusterStorageOptionResponse) => void): Promise<DescribeClusterStorageOptionResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* 本接口(DeleteNodes)用于删除指定集群中一个或者多个计算节点或者登录节点。
|
|
16
|
+
*/
|
|
17
|
+
DeleteNodes(req: DeleteNodesRequest, cb?: (error: string, rep: DeleteNodesResponse) => void): Promise<DeleteNodesResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* 本接口 (CreateCluster) 用于创建并启动集群。
|
|
20
|
+
|
|
21
|
+
* 本接口为异步接口, 当创建集群请求下发成功后会返回一个集群`ID`和一个`RequestId`,此时创建集群操作并未立即完成。在此期间集群的状态将会处于“PENDING”或者“INITING”,集群创建结果可以通过调用 [DescribeClusters](https://cloud.tencent.com/document/product/1527/72100) 接口查询,如果集群状态(ClusterStatus)变为“RUNNING(运行中)”,则代表集群创建成功,“ INIT_FAILED”代表集群创建失败。
|
|
22
|
+
*/
|
|
23
|
+
CreateCluster(req: CreateClusterRequest, cb?: (error: string, rep: CreateClusterResponse) => void): Promise<CreateClusterResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* 本接口(AddClusterStorageOption)用于添加集群存储选项信息。
|
|
26
|
+
*/
|
|
27
|
+
AddClusterStorageOption(req: AddClusterStorageOptionRequest, cb?: (error: string, rep: AddClusterStorageOptionResponse) => void): Promise<AddClusterStorageOptionResponse>;
|
|
28
|
+
/**
|
|
29
|
+
* 本接口(SetAutoScalingConfiguration)用于为集群设置集群弹性伸缩配置信息。
|
|
30
|
+
*/
|
|
31
|
+
SetAutoScalingConfiguration(req: SetAutoScalingConfigurationRequest, cb?: (error: string, rep: SetAutoScalingConfigurationResponse) => void): Promise<SetAutoScalingConfigurationResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* 本接口(AddQueue)用于添加队列到指定集群。
|
|
34
|
+
* 本接口为目前只支持SchedulerType为SLURM的集群。
|
|
35
|
+
* 单个集群中队列数量上限为10个。
|
|
36
|
+
*/
|
|
37
|
+
AddQueue(req: AddQueueRequest, cb?: (error: string, rep: AddQueueResponse) => void): Promise<AddQueueResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* 本接口 (DescribeNodes) 用于查询指定集群节点概览信息列表。
|
|
40
|
+
*/
|
|
41
|
+
DescribeNodes(req: DescribeNodesRequest, cb?: (error: string, rep: DescribeNodesResponse) => void): Promise<DescribeNodesResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* 本接口(DeleteQueue)用于从指定集群删除队列。
|
|
44
|
+
* 本接口为目前只支持SchedulerType为SLURM的集群。
|
|
45
|
+
|
|
46
|
+
* 删除队列时,需要保证队列内不存在节点。
|
|
47
|
+
*/
|
|
48
|
+
DeleteQueue(req: DeleteQueueRequest, cb?: (error: string, rep: DeleteQueueResponse) => void): Promise<DeleteQueueResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* 本接口 (DeleteClusterStorageOption) 用于删除集群存储选项信息。
|
|
51
|
+
*/
|
|
52
|
+
DeleteClusterStorageOption(req: DeleteClusterStorageOptionRequest, cb?: (error: string, rep: DeleteClusterStorageOptionResponse) => void): Promise<DeleteClusterStorageOptionResponse>;
|
|
53
|
+
/**
|
|
54
|
+
* 本接口(AddNodes)用于添加一个或者多个计算节点或者登录节点到指定集群。
|
|
55
|
+
*/
|
|
56
|
+
AddNodes(req: AddNodesRequest, cb?: (error: string, rep: AddNodesResponse) => void): Promise<AddNodesResponse>;
|
|
57
|
+
/**
|
|
58
|
+
* 本接口(DescribeAutoScalingConfiguration)用于查询集群弹性伸缩配置信息。本接口仅适用于弹性伸缩类型为THPC_AS的集群。
|
|
59
|
+
*/
|
|
60
|
+
DescribeAutoScalingConfiguration(req: DescribeAutoScalingConfigurationRequest, cb?: (error: string, rep: DescribeAutoScalingConfigurationResponse) => void): Promise<DescribeAutoScalingConfigurationResponse>;
|
|
61
|
+
/**
|
|
62
|
+
* 本接口(DescribeClusters)用于查询集群列表。
|
|
63
|
+
*/
|
|
64
|
+
DescribeClusters(req: DescribeClustersRequest, cb?: (error: string, rep: DescribeClustersResponse) => void): Promise<DescribeClustersResponse>;
|
|
65
|
+
/**
|
|
66
|
+
* 本接口(DeleteCluster)用于删除一个指定的集群。
|
|
67
|
+
*/
|
|
68
|
+
DeleteCluster(req: DeleteClusterRequest, cb?: (error: string, rep: DeleteClusterResponse) => void): Promise<DeleteClusterResponse>;
|
|
69
|
+
/**
|
|
70
|
+
* 本接口(DescribeClusterActivities)用于查询集群活动历史记录列表。
|
|
71
|
+
*/
|
|
72
|
+
DescribeClusterActivities(req: DescribeClusterActivitiesRequest, cb?: (error: string, rep: DescribeClusterActivitiesResponse) => void): Promise<DescribeClusterActivitiesResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* 本接口(DescribeQueues)用于查询指定集群队列概览信息列表。
|
|
75
|
+
*/
|
|
76
|
+
DescribeQueues(req: DescribeQueuesRequest, cb?: (error: string, rep: DescribeQueuesResponse) => void): Promise<DescribeQueuesResponse>;
|
|
77
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Client = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing,
|
|
15
|
+
* software distributed under the License is distributed on an
|
|
16
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
17
|
+
* KIND, either express or implied. See the License for the
|
|
18
|
+
* specific language governing permissions and limitations
|
|
19
|
+
* under the License.
|
|
20
|
+
*/
|
|
21
|
+
const abstract_client_1 = require("../../../common/abstract_client");
|
|
22
|
+
/**
|
|
23
|
+
* thpc client
|
|
24
|
+
* @class
|
|
25
|
+
*/
|
|
26
|
+
class Client extends abstract_client_1.AbstractClient {
|
|
27
|
+
constructor(clientConfig) {
|
|
28
|
+
super("thpc.tencentcloudapi.com", "2023-03-21", clientConfig);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 本接口 (DescribeClusterStorageOption) 用于查询集群存储选项信息。
|
|
32
|
+
*/
|
|
33
|
+
async DescribeClusterStorageOption(req, cb) {
|
|
34
|
+
return this.request("DescribeClusterStorageOption", req, cb);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* 本接口(DeleteNodes)用于删除指定集群中一个或者多个计算节点或者登录节点。
|
|
38
|
+
*/
|
|
39
|
+
async DeleteNodes(req, cb) {
|
|
40
|
+
return this.request("DeleteNodes", req, cb);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* 本接口 (CreateCluster) 用于创建并启动集群。
|
|
44
|
+
|
|
45
|
+
* 本接口为异步接口, 当创建集群请求下发成功后会返回一个集群`ID`和一个`RequestId`,此时创建集群操作并未立即完成。在此期间集群的状态将会处于“PENDING”或者“INITING”,集群创建结果可以通过调用 [DescribeClusters](https://cloud.tencent.com/document/product/1527/72100) 接口查询,如果集群状态(ClusterStatus)变为“RUNNING(运行中)”,则代表集群创建成功,“ INIT_FAILED”代表集群创建失败。
|
|
46
|
+
*/
|
|
47
|
+
async CreateCluster(req, cb) {
|
|
48
|
+
return this.request("CreateCluster", req, cb);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* 本接口(AddClusterStorageOption)用于添加集群存储选项信息。
|
|
52
|
+
*/
|
|
53
|
+
async AddClusterStorageOption(req, cb) {
|
|
54
|
+
return this.request("AddClusterStorageOption", req, cb);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* 本接口(SetAutoScalingConfiguration)用于为集群设置集群弹性伸缩配置信息。
|
|
58
|
+
*/
|
|
59
|
+
async SetAutoScalingConfiguration(req, cb) {
|
|
60
|
+
return this.request("SetAutoScalingConfiguration", req, cb);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* 本接口(AddQueue)用于添加队列到指定集群。
|
|
64
|
+
* 本接口为目前只支持SchedulerType为SLURM的集群。
|
|
65
|
+
* 单个集群中队列数量上限为10个。
|
|
66
|
+
*/
|
|
67
|
+
async AddQueue(req, cb) {
|
|
68
|
+
return this.request("AddQueue", req, cb);
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* 本接口 (DescribeNodes) 用于查询指定集群节点概览信息列表。
|
|
72
|
+
*/
|
|
73
|
+
async DescribeNodes(req, cb) {
|
|
74
|
+
return this.request("DescribeNodes", req, cb);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* 本接口(DeleteQueue)用于从指定集群删除队列。
|
|
78
|
+
* 本接口为目前只支持SchedulerType为SLURM的集群。
|
|
79
|
+
|
|
80
|
+
* 删除队列时,需要保证队列内不存在节点。
|
|
81
|
+
*/
|
|
82
|
+
async DeleteQueue(req, cb) {
|
|
83
|
+
return this.request("DeleteQueue", req, cb);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* 本接口 (DeleteClusterStorageOption) 用于删除集群存储选项信息。
|
|
87
|
+
*/
|
|
88
|
+
async DeleteClusterStorageOption(req, cb) {
|
|
89
|
+
return this.request("DeleteClusterStorageOption", req, cb);
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* 本接口(AddNodes)用于添加一个或者多个计算节点或者登录节点到指定集群。
|
|
93
|
+
*/
|
|
94
|
+
async AddNodes(req, cb) {
|
|
95
|
+
return this.request("AddNodes", req, cb);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* 本接口(DescribeAutoScalingConfiguration)用于查询集群弹性伸缩配置信息。本接口仅适用于弹性伸缩类型为THPC_AS的集群。
|
|
99
|
+
*/
|
|
100
|
+
async DescribeAutoScalingConfiguration(req, cb) {
|
|
101
|
+
return this.request("DescribeAutoScalingConfiguration", req, cb);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* 本接口(DescribeClusters)用于查询集群列表。
|
|
105
|
+
*/
|
|
106
|
+
async DescribeClusters(req, cb) {
|
|
107
|
+
return this.request("DescribeClusters", req, cb);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* 本接口(DeleteCluster)用于删除一个指定的集群。
|
|
111
|
+
*/
|
|
112
|
+
async DeleteCluster(req, cb) {
|
|
113
|
+
return this.request("DeleteCluster", req, cb);
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* 本接口(DescribeClusterActivities)用于查询集群活动历史记录列表。
|
|
117
|
+
*/
|
|
118
|
+
async DescribeClusterActivities(req, cb) {
|
|
119
|
+
return this.request("DescribeClusterActivities", req, cb);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* 本接口(DescribeQueues)用于查询指定集群队列概览信息列表。
|
|
123
|
+
*/
|
|
124
|
+
async DescribeQueues(req, cb) {
|
|
125
|
+
return this.request("DescribeQueues", req, cb);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
exports.Client = Client;
|