tencentcloud-sdk-nodejs 4.0.443 → 4.0.445
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 +226 -0
- package/SERVICE_CHANGELOG.md +229 -247
- package/package.json +1 -1
- package/products.md +14 -13
- package/src/common/sdk_version.ts +1 -1
- package/src/services/acp/v20220105/acp_models.ts +21 -1
- package/src/services/bma/v20210624/bma_models.ts +11 -11
- package/src/services/cdn/v20180606/cdn_client.ts +1 -0
- package/src/services/cdn/v20180606/cdn_models.ts +20 -0
- package/src/services/ckafka/v20190819/ckafka_client.ts +7 -2
- package/src/services/ckafka/v20190819/ckafka_models.ts +306 -62
- package/src/services/cloudstudio/index.ts +5 -0
- package/src/services/cloudstudio/v20210524/cloudstudio_client.ts +286 -0
- package/src/services/cloudstudio/v20210524/cloudstudio_models.ts +1404 -0
- package/src/services/cloudstudio/v20210524/index.ts +6 -0
- package/src/services/ess/v20201111/ess_client.ts +2 -2
- package/src/services/ess/v20201111/ess_models.ts +2 -2
- package/src/services/essbasic/v20210526/essbasic_models.ts +9 -9
- package/src/services/iai/v20180301/iai_models.ts +1 -1
- package/src/services/iai/v20200303/iai_models.ts +1 -1
- package/src/services/index.ts +1 -0
- package/src/services/mongodb/v20190725/mongodb_models.ts +6 -5
- package/src/services/ms/v20180408/ms_models.ts +1 -1
- package/src/services/privatedns/v20201028/privatedns_models.ts +6 -0
- package/src/services/pts/v20210728/pts_client.ts +1 -0
- package/src/services/pts/v20210728/pts_models.ts +173 -2
- package/src/services/redis/v20180412/redis_models.ts +3 -3
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/acp/v20220105/acp_models.d.ts +17 -1
- package/tencentcloud/services/bma/v20210624/bma_models.d.ts +11 -11
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +17 -0
- package/tencentcloud/services/ckafka/v20190819/ckafka_client.d.ts +1 -1
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +254 -49
- package/tencentcloud/services/cloudstudio/index.d.ts +6 -0
- package/tencentcloud/services/cloudstudio/index.js +7 -0
- package/tencentcloud/services/cloudstudio/v20210524/cloudstudio_client.d.ts +91 -0
- package/tencentcloud/services/cloudstudio/v20210524/cloudstudio_client.js +152 -0
- package/tencentcloud/services/cloudstudio/v20210524/cloudstudio_models.d.ts +1178 -0
- package/tencentcloud/services/cloudstudio/v20210524/cloudstudio_models.js +18 -0
- package/tencentcloud/services/cloudstudio/v20210524/index.d.ts +6 -0
- package/tencentcloud/services/cloudstudio/v20210524/index.js +9 -0
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +2 -2
- package/tencentcloud/services/ess/v20201111/ess_client.js +2 -2
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +2 -2
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +8 -8
- package/tencentcloud/services/iai/v20180301/iai_models.d.ts +1 -1
- package/tencentcloud/services/iai/v20200303/iai_models.d.ts +1 -1
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +5 -4
- package/tencentcloud/services/ms/v20180408/ms_models.d.ts +1 -1
- package/tencentcloud/services/privatedns/v20201028/privatedns_models.d.ts +5 -0
- package/tencentcloud/services/pts/v20210728/pts_models.d.ts +143 -0
- package/tencentcloud/services/redis/v20180412/redis_models.d.ts +3 -3
- package/test/cloudstudio.v20210524.test.js +221 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.v20210524 = void 0;
|
|
4
|
+
const Models = require("./cloudstudio_models");
|
|
5
|
+
const cloudstudio_client_1 = require("./cloudstudio_client");
|
|
6
|
+
exports.v20210524 = {
|
|
7
|
+
Client: cloudstudio_client_1.Client,
|
|
8
|
+
Models: Models
|
|
9
|
+
};
|
|
@@ -26,7 +26,7 @@ export declare class Client extends AbstractClient {
|
|
|
26
26
|
/**
|
|
27
27
|
* 提交企业签署流程审批结果
|
|
28
28
|
适用场景:
|
|
29
|
-
在通过接口(CreateFlow 或者CreateFlowByFiles)创建签署流程时,若指定了参数 NeedSignReview 为true
|
|
29
|
+
在通过接口(CreateFlow 或者CreateFlowByFiles)创建签署流程时,若指定了参数 NeedSignReview 为true,且发起方企业作为签署方参与了流程签署,则可以调用此接口提交企业内部签署审批结果。
|
|
30
30
|
若签署流程状态正常,且本企业存在签署方未签署,同一签署流程可以多次提交签署审批结果,签署时的最后一个“审批结果”有效。
|
|
31
31
|
|
|
32
32
|
*/
|
|
@@ -115,7 +115,7 @@ export declare class Client extends AbstractClient {
|
|
|
115
115
|
DescribeFlowBriefs(req: DescribeFlowBriefsRequest, cb?: (error: string, rep: DescribeFlowBriefsResponse) => void): Promise<DescribeFlowBriefsResponse>;
|
|
116
116
|
/**
|
|
117
117
|
* 补充签署流程本企业签署人信息
|
|
118
|
-
|
|
118
|
+
适用场景:在通过模板或者文件发起合同时,若未指定本企业签署人信息,则流程发起后,可以调用此接口补充签署人。
|
|
119
119
|
同一签署人可以补充多个员工作为候选签署人,最终签署人取决于谁先领取合同完成签署。
|
|
120
120
|
|
|
121
121
|
注:目前暂时只支持补充来源于企业微信的员工作为候选签署人
|
|
@@ -52,7 +52,7 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
52
52
|
/**
|
|
53
53
|
* 提交企业签署流程审批结果
|
|
54
54
|
适用场景:
|
|
55
|
-
在通过接口(CreateFlow 或者CreateFlowByFiles)创建签署流程时,若指定了参数 NeedSignReview 为true
|
|
55
|
+
在通过接口(CreateFlow 或者CreateFlowByFiles)创建签署流程时,若指定了参数 NeedSignReview 为true,且发起方企业作为签署方参与了流程签署,则可以调用此接口提交企业内部签署审批结果。
|
|
56
56
|
若签署流程状态正常,且本企业存在签署方未签署,同一签署流程可以多次提交签署审批结果,签署时的最后一个“审批结果”有效。
|
|
57
57
|
|
|
58
58
|
*/
|
|
@@ -171,7 +171,7 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
173
173
|
* 补充签署流程本企业签署人信息
|
|
174
|
-
|
|
174
|
+
适用场景:在通过模板或者文件发起合同时,若未指定本企业签署人信息,则流程发起后,可以调用此接口补充签署人。
|
|
175
175
|
同一签署人可以补充多个员工作为候选签署人,最终签署人取决于谁先领取合同完成签署。
|
|
176
176
|
|
|
177
177
|
注:目前暂时只支持补充来源于企业微信的员工作为候选签署人
|
|
@@ -258,8 +258,8 @@ false:有序签
|
|
|
258
258
|
*/
|
|
259
259
|
CustomShowMap?: string;
|
|
260
260
|
/**
|
|
261
|
-
*
|
|
262
|
-
若设置为true
|
|
261
|
+
* 发起方企业的签署人进行签署操作是否需要企业内部审批。使用此功能需要发起方企业有参与签署。
|
|
262
|
+
若设置为true,审核结果需通过接口 CreateFlowSignReview 通知电子签,审核通过后,发起方企业签署人方可进行签署操作,否则会阻塞其签署操作。
|
|
263
263
|
|
|
264
264
|
注:企业可以通过此功能与企业内部的审批流程进行关联,支持手动、静默签署合同。
|
|
265
265
|
*/
|
|
@@ -410,7 +410,11 @@ export interface CreateSignUrlsRequest {
|
|
|
410
410
|
*/
|
|
411
411
|
FlowIds?: Array<string>;
|
|
412
412
|
/**
|
|
413
|
-
*
|
|
413
|
+
* 合同组编号(备注:该参数和合同(流程)编号数组必须二选一)
|
|
414
|
+
*/
|
|
415
|
+
FlowGroupId?: string;
|
|
416
|
+
/**
|
|
417
|
+
* 签署链接类型:“WEIXINAPP”-短链直接跳小程序;“CHANNEL”-跳转H5页面;“APP”-第三方APP或小程序跳转电子签小程序;"LONGURL2WEIXINAPP"-长链接跳转小程序;默认“WEIXINAPP”类型,即跳转至小程序;
|
|
414
418
|
*/
|
|
415
419
|
Endpoint?: string;
|
|
416
420
|
/**
|
|
@@ -455,10 +459,6 @@ GenerateType为"PERSON"或"FOLLOWER"时必填
|
|
|
455
459
|
* 操作者的信息
|
|
456
460
|
*/
|
|
457
461
|
Operator?: UserInfo;
|
|
458
|
-
/**
|
|
459
|
-
* 合同组编号(备注:该参数和合同(流程)编号数组必须二选一)
|
|
460
|
-
*/
|
|
461
|
-
FlowGroupId?: string;
|
|
462
462
|
}
|
|
463
463
|
/**
|
|
464
464
|
* ChannelCreateMultiFlowSignQRCode请求参数结构体
|
|
@@ -1192,11 +1192,11 @@ export interface DescribeTemplatesRequest {
|
|
|
1192
1192
|
*/
|
|
1193
1193
|
ContentType?: number;
|
|
1194
1194
|
/**
|
|
1195
|
-
* 查询个数,默认20,最大100
|
|
1195
|
+
* 查询个数,默认20,最大100;在查询列表的时候有效
|
|
1196
1196
|
*/
|
|
1197
1197
|
Limit?: number;
|
|
1198
1198
|
/**
|
|
1199
|
-
* 查询偏移位置,默认0
|
|
1199
|
+
* 查询偏移位置,默认0;在查询列表的时候有效
|
|
1200
1200
|
*/
|
|
1201
1201
|
Offset?: number;
|
|
1202
1202
|
/**
|
|
@@ -1208,7 +1208,7 @@ export interface DescribeTemplatesRequest {
|
|
|
1208
1208
|
*/
|
|
1209
1209
|
QueryAllComponents?: boolean;
|
|
1210
1210
|
/**
|
|
1211
|
-
*
|
|
1211
|
+
* 模糊搜索模板名称
|
|
1212
1212
|
*/
|
|
1213
1213
|
TemplateName?: string;
|
|
1214
1214
|
}
|
|
@@ -52,6 +52,7 @@ export { ckafka } from "./ckafka";
|
|
|
52
52
|
export { clb } from "./clb";
|
|
53
53
|
export { cloudaudit } from "./cloudaudit";
|
|
54
54
|
export { cloudhsm } from "./cloudhsm";
|
|
55
|
+
export { cloudstudio } from "./cloudstudio";
|
|
55
56
|
export { cls } from "./cls";
|
|
56
57
|
export { cme } from "./cme";
|
|
57
58
|
export { cmq } from "./cmq";
|
|
@@ -108,6 +108,8 @@ var cloudaudit_1 = require("./cloudaudit");
|
|
|
108
108
|
Object.defineProperty(exports, "cloudaudit", { enumerable: true, get: function () { return cloudaudit_1.cloudaudit; } });
|
|
109
109
|
var cloudhsm_1 = require("./cloudhsm");
|
|
110
110
|
Object.defineProperty(exports, "cloudhsm", { enumerable: true, get: function () { return cloudhsm_1.cloudhsm; } });
|
|
111
|
+
var cloudstudio_1 = require("./cloudstudio");
|
|
112
|
+
Object.defineProperty(exports, "cloudstudio", { enumerable: true, get: function () { return cloudstudio_1.cloudstudio; } });
|
|
111
113
|
var cls_1 = require("./cls");
|
|
112
114
|
Object.defineProperty(exports, "cls", { enumerable: true, get: function () { return cls_1.cls; } });
|
|
113
115
|
var cme_1 = require("./cme");
|
|
@@ -837,13 +837,14 @@ export interface ModifyDBInstanceSpecRequest {
|
|
|
837
837
|
*/
|
|
838
838
|
export interface Auth {
|
|
839
839
|
/**
|
|
840
|
-
*
|
|
840
|
+
* 当前账号具有的权限信息。<ul><li>0:无权限。</li><li>1:只读。</li><li>2:只写。</li><li>3:读写。</li></ul>
|
|
841
841
|
*/
|
|
842
|
-
|
|
842
|
+
Mask: number;
|
|
843
843
|
/**
|
|
844
|
-
*
|
|
844
|
+
* 指具有当前账号权限的数据库名。
|
|
845
|
+
<ul><li>* :表示所有数据库。</li><li>db.name:表示特定name的数据库。</li></ul>
|
|
845
846
|
*/
|
|
846
|
-
|
|
847
|
+
NameSpace: string;
|
|
847
848
|
}
|
|
848
849
|
/**
|
|
849
850
|
* ResetDBInstancePassword请求参数结构体
|
|
@@ -907,7 +907,7 @@ export interface DescribeUrlDetectionResultResponse {
|
|
|
907
907
|
*/
|
|
908
908
|
EvilClass: number;
|
|
909
909
|
/**
|
|
910
|
-
* [查询结果]url恶意类型;枚举值:1-社工欺诈(仿冒、账号钓鱼、中奖诈骗);2-信息诈骗(虚假充值、虚假兼职、虚假金融投资、虚假信用卡代办、网络赌博诈骗;3-虚假销售(男女保健美容减肥产品、电子产品、虚假广告、违法销售);4-恶意文件(病毒文件,木马文件,恶意apk文件的下载链接以及站点,挂马网站);5-博彩网站(博彩网站,在线赌博网站);6-色情网站(涉嫌传播色情内容,提供色情服务的网站;7-风险网站(弱类型,传播垃圾信息的网站,
|
|
910
|
+
* [查询结果]url恶意类型;枚举值:1-社工欺诈(仿冒、账号钓鱼、中奖诈骗);2-信息诈骗(虚假充值、虚假兼职、虚假金融投资、虚假信用卡代办、网络赌博诈骗;3-虚假销售(男女保健美容减肥产品、电子产品、虚假广告、违法销售);4-恶意文件(病毒文件,木马文件,恶意apk文件的下载链接以及站点,挂马网站);5-博彩网站(博彩网站,在线赌博网站);6-色情网站(涉嫌传播色情内容,提供色情服务的网站;7-风险网站(弱类型,传播垃圾信息的网站, 如果客户端有阻断,不建议使用这个数据)
|
|
911
911
|
*/
|
|
912
912
|
EvilType: number;
|
|
913
913
|
/**
|
|
@@ -219,6 +219,21 @@ export interface AlertChannelRecord {
|
|
|
219
219
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
220
220
|
*/
|
|
221
221
|
UpdatedAt?: string;
|
|
222
|
+
/**
|
|
223
|
+
* App ID
|
|
224
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
225
|
+
*/
|
|
226
|
+
AppId?: number;
|
|
227
|
+
/**
|
|
228
|
+
* 主账号
|
|
229
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
230
|
+
*/
|
|
231
|
+
Uin?: string;
|
|
232
|
+
/**
|
|
233
|
+
* 子账号
|
|
234
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
235
|
+
*/
|
|
236
|
+
SubAccountUin?: string;
|
|
222
237
|
}
|
|
223
238
|
/**
|
|
224
239
|
* DescribeAlertRecords请求参数结构体
|
|
@@ -988,6 +1003,21 @@ export interface CronJob {
|
|
|
988
1003
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
989
1004
|
*/
|
|
990
1005
|
JobOwner: string;
|
|
1006
|
+
/**
|
|
1007
|
+
* App ID
|
|
1008
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1009
|
+
*/
|
|
1010
|
+
AppId: number;
|
|
1011
|
+
/**
|
|
1012
|
+
* 主账号
|
|
1013
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1014
|
+
*/
|
|
1015
|
+
Uin: string;
|
|
1016
|
+
/**
|
|
1017
|
+
* 子账号
|
|
1018
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1019
|
+
*/
|
|
1020
|
+
SubAccountUin: string;
|
|
991
1021
|
}
|
|
992
1022
|
/**
|
|
993
1023
|
* DescribeLabelValues返回参数结构体
|
|
@@ -1189,6 +1219,41 @@ JobSelectClusterException:19,JobCreateTaskException:20,JobSyncTaskException:21
|
|
|
1189
1219
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1190
1220
|
*/
|
|
1191
1221
|
CronId?: string;
|
|
1222
|
+
/**
|
|
1223
|
+
* 场景类型
|
|
1224
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1225
|
+
*/
|
|
1226
|
+
Type?: string;
|
|
1227
|
+
/**
|
|
1228
|
+
* 域名绑定配置
|
|
1229
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1230
|
+
*/
|
|
1231
|
+
DomainNameConfig?: DomainNameConfig;
|
|
1232
|
+
/**
|
|
1233
|
+
* false
|
|
1234
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1235
|
+
*/
|
|
1236
|
+
Debug?: boolean;
|
|
1237
|
+
/**
|
|
1238
|
+
* 中断原因
|
|
1239
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1240
|
+
*/
|
|
1241
|
+
AbortReason?: number;
|
|
1242
|
+
/**
|
|
1243
|
+
* 任务的创建时间
|
|
1244
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1245
|
+
*/
|
|
1246
|
+
CreatedAt?: string;
|
|
1247
|
+
/**
|
|
1248
|
+
* 项目ID
|
|
1249
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1250
|
+
*/
|
|
1251
|
+
ProjectId?: string;
|
|
1252
|
+
/**
|
|
1253
|
+
* 通知事件回调
|
|
1254
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1255
|
+
*/
|
|
1256
|
+
NotificationHooks?: Array<NotificationHook>;
|
|
1192
1257
|
}
|
|
1193
1258
|
/**
|
|
1194
1259
|
* DescribeAvailableMetrics请求参数结构体
|
|
@@ -1487,6 +1552,41 @@ export interface AlertRecord {
|
|
|
1487
1552
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1488
1553
|
*/
|
|
1489
1554
|
JobId?: string;
|
|
1555
|
+
/**
|
|
1556
|
+
* App ID
|
|
1557
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1558
|
+
*/
|
|
1559
|
+
AppId?: number;
|
|
1560
|
+
/**
|
|
1561
|
+
* 主账号
|
|
1562
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1563
|
+
*/
|
|
1564
|
+
Uin?: string;
|
|
1565
|
+
/**
|
|
1566
|
+
* 子账号
|
|
1567
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1568
|
+
*/
|
|
1569
|
+
SubAccountUin?: string;
|
|
1570
|
+
/**
|
|
1571
|
+
* 场景名称
|
|
1572
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1573
|
+
*/
|
|
1574
|
+
ScenarioName?: string;
|
|
1575
|
+
/**
|
|
1576
|
+
* 告警对象
|
|
1577
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1578
|
+
*/
|
|
1579
|
+
Target?: string;
|
|
1580
|
+
/**
|
|
1581
|
+
* 告警规则 ID
|
|
1582
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1583
|
+
*/
|
|
1584
|
+
JobSLAId?: string;
|
|
1585
|
+
/**
|
|
1586
|
+
* 告警规则描述
|
|
1587
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1588
|
+
*/
|
|
1589
|
+
JobSLADescription?: string;
|
|
1490
1590
|
}
|
|
1491
1591
|
/**
|
|
1492
1592
|
* RPS模式的施压配置
|
|
@@ -1903,6 +2003,7 @@ export interface DescribeAvailableMetricsResponse {
|
|
|
1903
2003
|
export interface DescribeMetricLabelWithValuesResponse {
|
|
1904
2004
|
/**
|
|
1905
2005
|
* 指标所有的label和values数组
|
|
2006
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1906
2007
|
*/
|
|
1907
2008
|
MetricLabelWithValuesSet: Array<MetricLabelWithValues>;
|
|
1908
2009
|
/**
|
|
@@ -2319,6 +2420,18 @@ export interface RequestSummary {
|
|
|
2319
2420
|
* 请求错误率
|
|
2320
2421
|
*/
|
|
2321
2422
|
ErrorPercentage: number;
|
|
2423
|
+
/**
|
|
2424
|
+
* 请求p99耗时,单位秒
|
|
2425
|
+
*/
|
|
2426
|
+
P99: number;
|
|
2427
|
+
/**
|
|
2428
|
+
* 响应状态码
|
|
2429
|
+
*/
|
|
2430
|
+
Status: string;
|
|
2431
|
+
/**
|
|
2432
|
+
* 响应详情
|
|
2433
|
+
*/
|
|
2434
|
+
Result: string;
|
|
2322
2435
|
}
|
|
2323
2436
|
/**
|
|
2324
2437
|
* DeleteCronJobs请求参数结构体
|
|
@@ -2811,6 +2924,11 @@ export interface Scenario {
|
|
|
2811
2924
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2812
2925
|
*/
|
|
2813
2926
|
DomainNameConfig: DomainNameConfig;
|
|
2927
|
+
/**
|
|
2928
|
+
* 通知事件回调
|
|
2929
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2930
|
+
*/
|
|
2931
|
+
NotificationHooks: Array<NotificationHook>;
|
|
2814
2932
|
}
|
|
2815
2933
|
/**
|
|
2816
2934
|
* DescribeProjects返回参数结构体
|
|
@@ -3067,6 +3185,21 @@ export interface CheckSummary {
|
|
|
3067
3185
|
*/
|
|
3068
3186
|
ErrorRate: number;
|
|
3069
3187
|
}
|
|
3188
|
+
/**
|
|
3189
|
+
* 事件通知回调
|
|
3190
|
+
*/
|
|
3191
|
+
export interface NotificationHook {
|
|
3192
|
+
/**
|
|
3193
|
+
* 通知事件
|
|
3194
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3195
|
+
*/
|
|
3196
|
+
Events?: Array<string>;
|
|
3197
|
+
/**
|
|
3198
|
+
* 回调 URL
|
|
3199
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3200
|
+
*/
|
|
3201
|
+
URL?: string;
|
|
3202
|
+
}
|
|
3070
3203
|
/**
|
|
3071
3204
|
* DescribeJobs返回参数结构体
|
|
3072
3205
|
*/
|
|
@@ -3272,6 +3405,16 @@ export interface File {
|
|
|
3272
3405
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3273
3406
|
*/
|
|
3274
3407
|
Status: number;
|
|
3408
|
+
/**
|
|
3409
|
+
* 创建时间
|
|
3410
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3411
|
+
*/
|
|
3412
|
+
CreatedAt: string;
|
|
3413
|
+
/**
|
|
3414
|
+
* 项目 ID
|
|
3415
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3416
|
+
*/
|
|
3417
|
+
ProjectId: string;
|
|
3275
3418
|
}
|
|
3276
3419
|
/**
|
|
3277
3420
|
* DeleteAlertChannel请求参数结构体
|
|
@@ -24,7 +24,7 @@ export interface UpgradeSmallVersionRequest {
|
|
|
24
24
|
*/
|
|
25
25
|
export interface ModifyInstanceParamsResponse {
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* 说明修改参数配置是否成功。<br><li>true:指修改成功;<br><li>false:指修改失败。<br>
|
|
28
28
|
*/
|
|
29
29
|
Changed: boolean;
|
|
30
30
|
/**
|
|
@@ -4583,11 +4583,11 @@ export interface DescribeInstanceMonitorHotKeyResponse {
|
|
|
4583
4583
|
*/
|
|
4584
4584
|
export interface InstanceParam {
|
|
4585
4585
|
/**
|
|
4586
|
-
* 设置参数的名称。例如timeout
|
|
4586
|
+
* 设置参数的名称。例如timeout。当前支持自定义的参数,请参见<a href="https://cloud.tencent.com/document/product/239/49925">参数配置</a>。
|
|
4587
4587
|
*/
|
|
4588
4588
|
Key: string;
|
|
4589
4589
|
/**
|
|
4590
|
-
* 设置参数名称对应的运行值。例如timeout对应运行值可设置为120, 单位为秒(s)。指当客户端连接闲置时间达到120 s
|
|
4590
|
+
* 设置参数名称对应的运行值。例如timeout对应运行值可设置为120, 单位为秒(s)。指当客户端连接闲置时间达到120 s时,将关闭连接。更多参数取值信息,请参见<a href="https://cloud.tencent.com/document/product/239/49925">参数配置</a>。
|
|
4591
4591
|
*/
|
|
4592
4592
|
Value: string;
|
|
4593
4593
|
}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.cloudstudio.v20210524.Client({
|
|
5
|
+
credential: {
|
|
6
|
+
secretId: process.env.secretId,
|
|
7
|
+
secretKey: process.env.secretKey,
|
|
8
|
+
},
|
|
9
|
+
region: "ap-shanghai",
|
|
10
|
+
profile: {
|
|
11
|
+
signMethod: "TC3-HMAC-SHA256",
|
|
12
|
+
httpProfile: {
|
|
13
|
+
reqMethod: "POST",
|
|
14
|
+
reqTimeout: 30,
|
|
15
|
+
endpoint: "cvm.ap-shanghai.tencentcloudapi.com",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
})
|
|
19
|
+
describe("cloudstudio.v20210524.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("cloudstudio.v20210524.DescribeWorkspaceStatus", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DescribeWorkspaceStatus({})
|
|
24
|
+
expect(data).to.be.ok
|
|
25
|
+
} catch(error) {
|
|
26
|
+
expect(error.requestId).to.be.ok
|
|
27
|
+
expect(error.code).to.be.ok
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
it("cloudstudio.v20210524.DescribeCustomizeTemplatesById", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.DescribeCustomizeTemplatesById({})
|
|
34
|
+
expect(data).to.be.ok
|
|
35
|
+
} catch(error) {
|
|
36
|
+
expect(error.requestId).to.be.ok
|
|
37
|
+
expect(error.code).to.be.ok
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
it("cloudstudio.v20210524.CreateWorkspaceByVersionControl", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.CreateWorkspaceByVersionControl({})
|
|
44
|
+
expect(data).to.be.ok
|
|
45
|
+
} catch(error) {
|
|
46
|
+
expect(error.requestId).to.be.ok
|
|
47
|
+
expect(error.code).to.be.ok
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
|
|
51
|
+
it("cloudstudio.v20210524.CreateWorkspaceByTemplate", async function () {
|
|
52
|
+
try {
|
|
53
|
+
const data = await client.CreateWorkspaceByTemplate({})
|
|
54
|
+
expect(data).to.be.ok
|
|
55
|
+
} catch(error) {
|
|
56
|
+
expect(error.requestId).to.be.ok
|
|
57
|
+
expect(error.code).to.be.ok
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
it("cloudstudio.v20210524.ModifyCustomizeTemplateVersionControl", async function () {
|
|
62
|
+
try {
|
|
63
|
+
const data = await client.ModifyCustomizeTemplateVersionControl({})
|
|
64
|
+
expect(data).to.be.ok
|
|
65
|
+
} catch(error) {
|
|
66
|
+
expect(error.requestId).to.be.ok
|
|
67
|
+
expect(error.code).to.be.ok
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
it("cloudstudio.v20210524.RecoverWorkspace", async function () {
|
|
72
|
+
try {
|
|
73
|
+
const data = await client.RecoverWorkspace({})
|
|
74
|
+
expect(data).to.be.ok
|
|
75
|
+
} catch(error) {
|
|
76
|
+
expect(error.requestId).to.be.ok
|
|
77
|
+
expect(error.code).to.be.ok
|
|
78
|
+
}
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
it("cloudstudio.v20210524.DescribeWorkspaceStatusList", async function () {
|
|
82
|
+
try {
|
|
83
|
+
const data = await client.DescribeWorkspaceStatusList({})
|
|
84
|
+
expect(data).to.be.ok
|
|
85
|
+
} catch(error) {
|
|
86
|
+
expect(error.requestId).to.be.ok
|
|
87
|
+
expect(error.code).to.be.ok
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
|
|
91
|
+
it("cloudstudio.v20210524.RemoveWorkspace", async function () {
|
|
92
|
+
try {
|
|
93
|
+
const data = await client.RemoveWorkspace({})
|
|
94
|
+
expect(data).to.be.ok
|
|
95
|
+
} catch(error) {
|
|
96
|
+
expect(error.requestId).to.be.ok
|
|
97
|
+
expect(error.code).to.be.ok
|
|
98
|
+
}
|
|
99
|
+
})
|
|
100
|
+
|
|
101
|
+
it("cloudstudio.v20210524.DescribeWorkspaceNameExist", async function () {
|
|
102
|
+
try {
|
|
103
|
+
const data = await client.DescribeWorkspaceNameExist({})
|
|
104
|
+
expect(data).to.be.ok
|
|
105
|
+
} catch(error) {
|
|
106
|
+
expect(error.requestId).to.be.ok
|
|
107
|
+
expect(error.code).to.be.ok
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
|
|
111
|
+
it("cloudstudio.v20210524.ModifyCustomizeTemplatesFullById", async function () {
|
|
112
|
+
try {
|
|
113
|
+
const data = await client.ModifyCustomizeTemplatesFullById({})
|
|
114
|
+
expect(data).to.be.ok
|
|
115
|
+
} catch(error) {
|
|
116
|
+
expect(error.requestId).to.be.ok
|
|
117
|
+
expect(error.code).to.be.ok
|
|
118
|
+
}
|
|
119
|
+
})
|
|
120
|
+
|
|
121
|
+
it("cloudstudio.v20210524.RunWorkspace", async function () {
|
|
122
|
+
try {
|
|
123
|
+
const data = await client.RunWorkspace({})
|
|
124
|
+
expect(data).to.be.ok
|
|
125
|
+
} catch(error) {
|
|
126
|
+
expect(error.requestId).to.be.ok
|
|
127
|
+
expect(error.code).to.be.ok
|
|
128
|
+
}
|
|
129
|
+
})
|
|
130
|
+
|
|
131
|
+
it("cloudstudio.v20210524.DeleteCustomizeTemplatesById", async function () {
|
|
132
|
+
try {
|
|
133
|
+
const data = await client.DeleteCustomizeTemplatesById({})
|
|
134
|
+
expect(data).to.be.ok
|
|
135
|
+
} catch(error) {
|
|
136
|
+
expect(error.requestId).to.be.ok
|
|
137
|
+
expect(error.code).to.be.ok
|
|
138
|
+
}
|
|
139
|
+
})
|
|
140
|
+
|
|
141
|
+
it("cloudstudio.v20210524.ModifyCustomizeTemplatesPartById", async function () {
|
|
142
|
+
try {
|
|
143
|
+
const data = await client.ModifyCustomizeTemplatesPartById({})
|
|
144
|
+
expect(data).to.be.ok
|
|
145
|
+
} catch(error) {
|
|
146
|
+
expect(error.requestId).to.be.ok
|
|
147
|
+
expect(error.code).to.be.ok
|
|
148
|
+
}
|
|
149
|
+
})
|
|
150
|
+
|
|
151
|
+
it("cloudstudio.v20210524.StopWorkspace", async function () {
|
|
152
|
+
try {
|
|
153
|
+
const data = await client.StopWorkspace({})
|
|
154
|
+
expect(data).to.be.ok
|
|
155
|
+
} catch(error) {
|
|
156
|
+
expect(error.requestId).to.be.ok
|
|
157
|
+
expect(error.code).to.be.ok
|
|
158
|
+
}
|
|
159
|
+
})
|
|
160
|
+
|
|
161
|
+
it("cloudstudio.v20210524.DescribeCustomizeTemplatesPresets", async function () {
|
|
162
|
+
try {
|
|
163
|
+
const data = await client.DescribeCustomizeTemplatesPresets({})
|
|
164
|
+
expect(data).to.be.ok
|
|
165
|
+
} catch(error) {
|
|
166
|
+
expect(error.requestId).to.be.ok
|
|
167
|
+
expect(error.code).to.be.ok
|
|
168
|
+
}
|
|
169
|
+
})
|
|
170
|
+
|
|
171
|
+
it("cloudstudio.v20210524.DescribeWorkspaceEnvList", async function () {
|
|
172
|
+
try {
|
|
173
|
+
const data = await client.DescribeWorkspaceEnvList({})
|
|
174
|
+
expect(data).to.be.ok
|
|
175
|
+
} catch(error) {
|
|
176
|
+
expect(error.requestId).to.be.ok
|
|
177
|
+
expect(error.code).to.be.ok
|
|
178
|
+
}
|
|
179
|
+
})
|
|
180
|
+
|
|
181
|
+
it("cloudstudio.v20210524.ModifyWorkspaceAttributes", async function () {
|
|
182
|
+
try {
|
|
183
|
+
const data = await client.ModifyWorkspaceAttributes({})
|
|
184
|
+
expect(data).to.be.ok
|
|
185
|
+
} catch(error) {
|
|
186
|
+
expect(error.requestId).to.be.ok
|
|
187
|
+
expect(error.code).to.be.ok
|
|
188
|
+
}
|
|
189
|
+
})
|
|
190
|
+
|
|
191
|
+
it("cloudstudio.v20210524.CreateWorkspaceByAgent", async function () {
|
|
192
|
+
try {
|
|
193
|
+
const data = await client.CreateWorkspaceByAgent({})
|
|
194
|
+
expect(data).to.be.ok
|
|
195
|
+
} catch(error) {
|
|
196
|
+
expect(error.requestId).to.be.ok
|
|
197
|
+
expect(error.code).to.be.ok
|
|
198
|
+
}
|
|
199
|
+
})
|
|
200
|
+
|
|
201
|
+
it("cloudstudio.v20210524.CreateCustomizeTemplates", async function () {
|
|
202
|
+
try {
|
|
203
|
+
const data = await client.CreateCustomizeTemplates({})
|
|
204
|
+
expect(data).to.be.ok
|
|
205
|
+
} catch(error) {
|
|
206
|
+
expect(error.requestId).to.be.ok
|
|
207
|
+
expect(error.code).to.be.ok
|
|
208
|
+
}
|
|
209
|
+
})
|
|
210
|
+
|
|
211
|
+
it("cloudstudio.v20210524.DescribeCustomizeTemplates", async function () {
|
|
212
|
+
try {
|
|
213
|
+
const data = await client.DescribeCustomizeTemplates({})
|
|
214
|
+
expect(data).to.be.ok
|
|
215
|
+
} catch(error) {
|
|
216
|
+
expect(error.requestId).to.be.ok
|
|
217
|
+
expect(error.code).to.be.ok
|
|
218
|
+
}
|
|
219
|
+
})
|
|
220
|
+
|
|
221
|
+
})
|