tencentcloud-sdk-nodejs 4.0.388 → 4.0.389
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 +233 -0
- package/SERVICE_CHANGELOG.md +385 -112
- package/package.json +1 -1
- package/products.md +14 -12
- package/src/common/sdk_version.ts +1 -1
- package/src/services/antiddos/v20200309/antiddos_models.ts +42 -0
- package/src/services/bma/index.ts +5 -0
- package/src/services/bma/v20210624/bma_client.ts +79 -0
- package/src/services/bma/v20210624/bma_models.ts +316 -0
- package/src/services/bma/v20210624/index.ts +6 -0
- package/src/services/cfw/v20190904/cfw_client.ts +1 -1
- package/src/services/clb/v20180317/clb_models.ts +1 -1
- package/src/services/cpdp/v20190820/cpdp_models.ts +6 -0
- package/src/services/dataintegration/index.ts +5 -0
- package/src/services/dataintegration/v20220613/dataintegration_client.ts +40 -0
- package/src/services/dataintegration/v20220613/dataintegration_models.ts +61 -0
- package/src/services/dataintegration/v20220613/index.ts +6 -0
- package/src/services/dbdc/v20201029/dbdc_models.ts +31 -4
- package/src/services/ess/v20201111/ess_models.ts +93 -93
- package/src/services/gaap/v20180529/gaap_models.ts +195 -20
- package/src/services/index.ts +2 -0
- package/src/services/mariadb/v20170312/mariadb_models.ts +10 -0
- package/src/services/redis/v20180412/redis_client.ts +85 -61
- package/src/services/redis/v20180412/redis_models.ts +71 -6
- package/src/services/tdmq/v20200217/tdmq_client.ts +1 -1
- package/src/services/tdmq/v20200217/tdmq_models.ts +1 -1
- package/src/services/trp/v20210515/trp_models.ts +21 -1
- package/src/services/tsf/v20180326/tsf_models.ts +6 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +34 -0
- package/tencentcloud/services/bma/index.d.ts +6 -0
- package/tencentcloud/services/bma/index.js +7 -0
- package/tencentcloud/services/bma/v20210624/bma_client.d.ts +26 -0
- package/tencentcloud/services/bma/v20210624/bma_client.js +55 -0
- package/tencentcloud/services/bma/v20210624/bma_models.d.ts +248 -0
- package/tencentcloud/services/bma/v20210624/bma_models.js +18 -0
- package/tencentcloud/services/bma/v20210624/index.d.ts +6 -0
- package/tencentcloud/services/bma/v20210624/index.js +9 -0
- package/tencentcloud/services/cfw/v20190904/cfw_client.d.ts +1 -1
- package/tencentcloud/services/cfw/v20190904/cfw_client.js +1 -1
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +1 -1
- package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +5 -0
- package/tencentcloud/services/dataintegration/index.d.ts +6 -0
- package/tencentcloud/services/dataintegration/index.js +7 -0
- package/tencentcloud/services/dataintegration/v20220613/dataintegration_client.d.ts +14 -0
- package/tencentcloud/services/dataintegration/v20220613/dataintegration_client.js +37 -0
- package/tencentcloud/services/dataintegration/v20220613/dataintegration_models.d.ts +39 -0
- package/tencentcloud/services/dataintegration/v20220613/dataintegration_models.js +18 -0
- package/tencentcloud/services/dataintegration/v20220613/index.d.ts +6 -0
- package/tencentcloud/services/dataintegration/v20220613/index.js +9 -0
- package/tencentcloud/services/dbdc/v20201029/dbdc_models.d.ts +26 -4
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +81 -81
- package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +159 -18
- package/tencentcloud/services/index.d.ts +2 -0
- package/tencentcloud/services/index.js +4 -0
- package/tencentcloud/services/mariadb/v20170312/mariadb_models.d.ts +8 -0
- package/tencentcloud/services/redis/v20180412/redis_client.d.ts +29 -21
- package/tencentcloud/services/redis/v20180412/redis_client.js +42 -30
- package/tencentcloud/services/redis/v20180412/redis_models.d.ts +62 -6
- package/tencentcloud/services/tdmq/v20200217/tdmq_client.d.ts +1 -1
- package/tencentcloud/services/tdmq/v20200217/tdmq_client.js +1 -1
- package/tencentcloud/services/tdmq/v20200217/tdmq_models.d.ts +1 -1
- package/tencentcloud/services/trp/v20210515/trp_models.d.ts +17 -1
- package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +5 -1
- package/test/bma.v20210624.test.js +61 -0
- package/test/dataintegration.v20220613.test.js +31 -0
- package/test/redis.v20180412.test.js +40 -20
|
@@ -1261,6 +1261,19 @@ export interface DescribeInstanceDTSInfoResponse {
|
|
|
1261
1261
|
*/
|
|
1262
1262
|
RequestId?: string;
|
|
1263
1263
|
}
|
|
1264
|
+
/**
|
|
1265
|
+
* ChangeMasterInstance返回参数结构体
|
|
1266
|
+
*/
|
|
1267
|
+
export interface ChangeMasterInstanceResponse {
|
|
1268
|
+
/**
|
|
1269
|
+
* 异步流程ID
|
|
1270
|
+
*/
|
|
1271
|
+
TaskId: number;
|
|
1272
|
+
/**
|
|
1273
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1274
|
+
*/
|
|
1275
|
+
RequestId?: string;
|
|
1276
|
+
}
|
|
1264
1277
|
/**
|
|
1265
1278
|
* AddReplicationInstance返回参数结构体
|
|
1266
1279
|
*/
|
|
@@ -1432,17 +1445,17 @@ export interface ModifyDBInstanceSecurityGroupsResponse {
|
|
|
1432
1445
|
RequestId?: string;
|
|
1433
1446
|
}
|
|
1434
1447
|
/**
|
|
1435
|
-
*
|
|
1448
|
+
* ChangeMasterInstance请求参数结构体
|
|
1436
1449
|
*/
|
|
1437
|
-
export interface
|
|
1450
|
+
export interface ChangeMasterInstanceRequest {
|
|
1438
1451
|
/**
|
|
1439
|
-
*
|
|
1452
|
+
* 复制组ID
|
|
1440
1453
|
*/
|
|
1441
|
-
|
|
1454
|
+
GroupId: string;
|
|
1442
1455
|
/**
|
|
1443
|
-
*
|
|
1456
|
+
* 实例ID
|
|
1444
1457
|
*/
|
|
1445
|
-
|
|
1458
|
+
InstanceId: string;
|
|
1446
1459
|
}
|
|
1447
1460
|
/**
|
|
1448
1461
|
* DescribeInstanceDTSInfo请求参数结构体
|
|
@@ -3157,6 +3170,23 @@ export interface DestroyPostpaidInstanceRequest {
|
|
|
3157
3170
|
*/
|
|
3158
3171
|
InstanceId: string;
|
|
3159
3172
|
}
|
|
3173
|
+
/**
|
|
3174
|
+
* ChangeInstanceRole请求参数结构体
|
|
3175
|
+
*/
|
|
3176
|
+
export interface ChangeInstanceRoleRequest {
|
|
3177
|
+
/**
|
|
3178
|
+
* 复制组ID
|
|
3179
|
+
*/
|
|
3180
|
+
GroupId: string;
|
|
3181
|
+
/**
|
|
3182
|
+
* 实例ID
|
|
3183
|
+
*/
|
|
3184
|
+
InstanceId: string;
|
|
3185
|
+
/**
|
|
3186
|
+
* 实例角色,rw可读写,r只读
|
|
3187
|
+
*/
|
|
3188
|
+
InstanceRole: string;
|
|
3189
|
+
}
|
|
3160
3190
|
/**
|
|
3161
3191
|
* DeleteInstanceAccount请求参数结构体
|
|
3162
3192
|
*/
|
|
@@ -3170,6 +3200,19 @@ export interface DeleteInstanceAccountRequest {
|
|
|
3170
3200
|
*/
|
|
3171
3201
|
AccountName: string;
|
|
3172
3202
|
}
|
|
3203
|
+
/**
|
|
3204
|
+
* DescribeInstanceMonitorHotKey请求参数结构体
|
|
3205
|
+
*/
|
|
3206
|
+
export interface DescribeInstanceMonitorHotKeyRequest {
|
|
3207
|
+
/**
|
|
3208
|
+
* 实例Id
|
|
3209
|
+
*/
|
|
3210
|
+
InstanceId: string;
|
|
3211
|
+
/**
|
|
3212
|
+
* 时间范围:1——实时,2——近30分钟,3——近6小时,4——近24小时
|
|
3213
|
+
*/
|
|
3214
|
+
SpanType: number;
|
|
3215
|
+
}
|
|
3173
3216
|
/**
|
|
3174
3217
|
* UpgradeInstance返回参数结构体
|
|
3175
3218
|
*/
|
|
@@ -4272,6 +4315,19 @@ export interface TendisSlowLogDetail {
|
|
|
4272
4315
|
*/
|
|
4273
4316
|
Node: string;
|
|
4274
4317
|
}
|
|
4318
|
+
/**
|
|
4319
|
+
* ChangeInstanceRole返回参数结构体
|
|
4320
|
+
*/
|
|
4321
|
+
export interface ChangeInstanceRoleResponse {
|
|
4322
|
+
/**
|
|
4323
|
+
* 异步流程ID
|
|
4324
|
+
*/
|
|
4325
|
+
TaskId: number;
|
|
4326
|
+
/**
|
|
4327
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
4328
|
+
*/
|
|
4329
|
+
RequestId?: string;
|
|
4330
|
+
}
|
|
4275
4331
|
/**
|
|
4276
4332
|
* UpgradeProxyVersion请求参数结构体
|
|
4277
4333
|
*/
|
|
@@ -276,7 +276,7 @@ export declare class Client extends AbstractClient {
|
|
|
276
276
|
*/
|
|
277
277
|
DescribeAMQPExchanges(req: DescribeAMQPExchangesRequest, cb?: (error: string, rep: DescribeAMQPExchangesResponse) => void): Promise<DescribeAMQPExchangesResponse>;
|
|
278
278
|
/**
|
|
279
|
-
*
|
|
279
|
+
* 当前 ReceiveMessage 接口只支持 Partitioned 类型的 Topic。该接口用于接收发送到指定 Partitioned Topic 中的消息,当 Partitioned Topic 中没有消息但还去尝试调用该接口时,会抛出 ReceiveTimeout 的异常。
|
|
280
280
|
|
|
281
281
|
如何使用 BatchReceivePolicy:
|
|
282
282
|
|
|
@@ -430,7 +430,7 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
430
430
|
return this.request("DescribeAMQPExchanges", req, cb);
|
|
431
431
|
}
|
|
432
432
|
/**
|
|
433
|
-
*
|
|
433
|
+
* 当前 ReceiveMessage 接口只支持 Partitioned 类型的 Topic。该接口用于接收发送到指定 Partitioned Topic 中的消息,当 Partitioned Topic 中没有消息但还去尝试调用该接口时,会抛出 ReceiveTimeout 的异常。
|
|
434
434
|
|
|
435
435
|
如何使用 BatchReceivePolicy:
|
|
436
436
|
|
|
@@ -2304,7 +2304,7 @@ export interface ReceiveMessageRequest {
|
|
|
2304
2304
|
*/
|
|
2305
2305
|
ReceiverQueueSize?: number;
|
|
2306
2306
|
/**
|
|
2307
|
-
* 默认值为:
|
|
2307
|
+
* 默认值为:Earliest。用作判定consumer初始接收消息的位置,可选参数为:Earliest, Latest
|
|
2308
2308
|
*/
|
|
2309
2309
|
SubInitialPosition?: string;
|
|
2310
2310
|
/**
|
|
@@ -73,7 +73,7 @@ export interface CodeBatch {
|
|
|
73
73
|
*/
|
|
74
74
|
ProductName: string;
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* 未使用
|
|
77
77
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
78
78
|
*/
|
|
79
79
|
Ext: Ext;
|
|
@@ -116,6 +116,18 @@ export interface ModifyCodeBatchRequest {
|
|
|
116
116
|
* 模板ID
|
|
117
117
|
*/
|
|
118
118
|
MpTpl?: string;
|
|
119
|
+
/**
|
|
120
|
+
* 商户ID
|
|
121
|
+
*/
|
|
122
|
+
MerchantId?: string;
|
|
123
|
+
/**
|
|
124
|
+
* 商品ID
|
|
125
|
+
*/
|
|
126
|
+
ProductId?: string;
|
|
127
|
+
/**
|
|
128
|
+
* 备注
|
|
129
|
+
*/
|
|
130
|
+
Remark?: string;
|
|
119
131
|
}
|
|
120
132
|
/**
|
|
121
133
|
* CreateCodeBatch返回参数结构体
|
|
@@ -1278,6 +1290,10 @@ export interface CreateCodeBatchRequest {
|
|
|
1278
1290
|
* 备注
|
|
1279
1291
|
*/
|
|
1280
1292
|
Remark?: string;
|
|
1293
|
+
/**
|
|
1294
|
+
* 活动ID
|
|
1295
|
+
*/
|
|
1296
|
+
MpTpl?: string;
|
|
1281
1297
|
}
|
|
1282
1298
|
/**
|
|
1283
1299
|
* ModifyCodeBatch返回参数结构体
|
|
@@ -3420,6 +3420,10 @@ export interface DescribeMicroserviceRequest {
|
|
|
3420
3420
|
* 可选,根据部署组ID进行过滤
|
|
3421
3421
|
*/
|
|
3422
3422
|
GroupIds?: Array<string>;
|
|
3423
|
+
/**
|
|
3424
|
+
* 过滤条件。多个 filter 之间是与关系,单个 filter 多个 value 之间是或关系。filter name 取值有:id(实例id)、name(实例名)、lan-ip(内网ip)、node-ip(所在节点ip)
|
|
3425
|
+
*/
|
|
3426
|
+
Filters?: Array<Filter>;
|
|
3423
3427
|
}
|
|
3424
3428
|
/**
|
|
3425
3429
|
* Tsf分页集群对象
|
|
@@ -9731,7 +9735,7 @@ export interface DescribeClusterInstancesResponse {
|
|
|
9731
9735
|
* 集群机器实例分页信息
|
|
9732
9736
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
9733
9737
|
*/
|
|
9734
|
-
Result
|
|
9738
|
+
Result: TsfPageInstance;
|
|
9735
9739
|
/**
|
|
9736
9740
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
9737
9741
|
*/
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.bma.v20210624.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("bma.v20210624.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("bma.v20210624.DescribeCRWorkInfo", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DescribeCRWorkInfo({})
|
|
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("bma.v20210624.CreateCRRight", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.CreateCRRight({})
|
|
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("bma.v20210624.CreateCRBlock", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.CreateCRBlock({})
|
|
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("bma.v20210624.CreateCRCompanyVerify", async function () {
|
|
52
|
+
try {
|
|
53
|
+
const data = await client.CreateCRCompanyVerify({})
|
|
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
|
+
})
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.dataintegration.v20220613.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("dataintegration.v20220613.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("dataintegration.v20220613.SendMessage", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.SendMessage({})
|
|
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
|
+
})
|
|
@@ -158,9 +158,9 @@ it("redis.v20180412.DescribeParamTemplateInfo", async function () {
|
|
|
158
158
|
}
|
|
159
159
|
})
|
|
160
160
|
|
|
161
|
-
it("redis.v20180412.
|
|
161
|
+
it("redis.v20180412.DescribeInstanceBackups", async function () {
|
|
162
162
|
try {
|
|
163
|
-
const data = await client.
|
|
163
|
+
const data = await client.DescribeInstanceBackups({})
|
|
164
164
|
expect(data).to.be.ok
|
|
165
165
|
} catch(error) {
|
|
166
166
|
expect(error.requestId).to.be.ok
|
|
@@ -168,9 +168,9 @@ it("redis.v20180412.DescribeInstanceAccount", async function () {
|
|
|
168
168
|
}
|
|
169
169
|
})
|
|
170
170
|
|
|
171
|
-
it("redis.v20180412.
|
|
171
|
+
it("redis.v20180412.DescribeInstanceDTSInfo", async function () {
|
|
172
172
|
try {
|
|
173
|
-
const data = await client.
|
|
173
|
+
const data = await client.DescribeInstanceDTSInfo({})
|
|
174
174
|
expect(data).to.be.ok
|
|
175
175
|
} catch(error) {
|
|
176
176
|
expect(error.requestId).to.be.ok
|
|
@@ -308,9 +308,9 @@ it("redis.v20180412.DisableReplicaReadonly", async function () {
|
|
|
308
308
|
}
|
|
309
309
|
})
|
|
310
310
|
|
|
311
|
-
it("redis.v20180412.
|
|
311
|
+
it("redis.v20180412.DescribeAutoBackupConfig", async function () {
|
|
312
312
|
try {
|
|
313
|
-
const data = await client.
|
|
313
|
+
const data = await client.DescribeAutoBackupConfig({})
|
|
314
314
|
expect(data).to.be.ok
|
|
315
315
|
} catch(error) {
|
|
316
316
|
expect(error.requestId).to.be.ok
|
|
@@ -348,9 +348,9 @@ it("redis.v20180412.DescribeInstanceMonitorSIP", async function () {
|
|
|
348
348
|
}
|
|
349
349
|
})
|
|
350
350
|
|
|
351
|
-
it("redis.v20180412.
|
|
351
|
+
it("redis.v20180412.ClearInstance", async function () {
|
|
352
352
|
try {
|
|
353
|
-
const data = await client.
|
|
353
|
+
const data = await client.ClearInstance({})
|
|
354
354
|
expect(data).to.be.ok
|
|
355
355
|
} catch(error) {
|
|
356
356
|
expect(error.requestId).to.be.ok
|
|
@@ -428,9 +428,9 @@ it("redis.v20180412.DescribeTaskInfo", async function () {
|
|
|
428
428
|
}
|
|
429
429
|
})
|
|
430
430
|
|
|
431
|
-
it("redis.v20180412.
|
|
431
|
+
it("redis.v20180412.DescribeBackupUrl", async function () {
|
|
432
432
|
try {
|
|
433
|
-
const data = await client.
|
|
433
|
+
const data = await client.DescribeBackupUrl({})
|
|
434
434
|
expect(data).to.be.ok
|
|
435
435
|
} catch(error) {
|
|
436
436
|
expect(error.requestId).to.be.ok
|
|
@@ -478,6 +478,16 @@ it("redis.v20180412.AssociateSecurityGroups", async function () {
|
|
|
478
478
|
}
|
|
479
479
|
})
|
|
480
480
|
|
|
481
|
+
it("redis.v20180412.UpgradeProxyVersion", async function () {
|
|
482
|
+
try {
|
|
483
|
+
const data = await client.UpgradeProxyVersion({})
|
|
484
|
+
expect(data).to.be.ok
|
|
485
|
+
} catch(error) {
|
|
486
|
+
expect(error.requestId).to.be.ok
|
|
487
|
+
expect(error.code).to.be.ok
|
|
488
|
+
}
|
|
489
|
+
})
|
|
490
|
+
|
|
481
491
|
it("redis.v20180412.ModifyInstanceParams", async function () {
|
|
482
492
|
try {
|
|
483
493
|
const data = await client.ModifyInstanceParams({})
|
|
@@ -488,9 +498,9 @@ it("redis.v20180412.ModifyInstanceParams", async function () {
|
|
|
488
498
|
}
|
|
489
499
|
})
|
|
490
500
|
|
|
491
|
-
it("redis.v20180412.
|
|
501
|
+
it("redis.v20180412.DescribeInstanceDealDetail", async function () {
|
|
492
502
|
try {
|
|
493
|
-
const data = await client.
|
|
503
|
+
const data = await client.DescribeInstanceDealDetail({})
|
|
494
504
|
expect(data).to.be.ok
|
|
495
505
|
} catch(error) {
|
|
496
506
|
expect(error.requestId).to.be.ok
|
|
@@ -578,6 +588,16 @@ it("redis.v20180412.DescribeInstanceMonitorBigKeyTypeDist", async function () {
|
|
|
578
588
|
}
|
|
579
589
|
})
|
|
580
590
|
|
|
591
|
+
it("redis.v20180412.ChangeMasterInstance", async function () {
|
|
592
|
+
try {
|
|
593
|
+
const data = await client.ChangeMasterInstance({})
|
|
594
|
+
expect(data).to.be.ok
|
|
595
|
+
} catch(error) {
|
|
596
|
+
expect(error.requestId).to.be.ok
|
|
597
|
+
expect(error.code).to.be.ok
|
|
598
|
+
}
|
|
599
|
+
})
|
|
600
|
+
|
|
581
601
|
it("redis.v20180412.ResetPassword", async function () {
|
|
582
602
|
try {
|
|
583
603
|
const data = await client.ResetPassword({})
|
|
@@ -728,9 +748,9 @@ it("redis.v20180412.DescribeInstanceParamRecords", async function () {
|
|
|
728
748
|
}
|
|
729
749
|
})
|
|
730
750
|
|
|
731
|
-
it("redis.v20180412.
|
|
751
|
+
it("redis.v20180412.CreateInstances", async function () {
|
|
732
752
|
try {
|
|
733
|
-
const data = await client.
|
|
753
|
+
const data = await client.CreateInstances({})
|
|
734
754
|
expect(data).to.be.ok
|
|
735
755
|
} catch(error) {
|
|
736
756
|
expect(error.requestId).to.be.ok
|
|
@@ -748,9 +768,9 @@ it("redis.v20180412.DescribeInstanceZoneInfo", async function () {
|
|
|
748
768
|
}
|
|
749
769
|
})
|
|
750
770
|
|
|
751
|
-
it("redis.v20180412.
|
|
771
|
+
it("redis.v20180412.AllocateWanAddress", async function () {
|
|
752
772
|
try {
|
|
753
|
-
const data = await client.
|
|
773
|
+
const data = await client.AllocateWanAddress({})
|
|
754
774
|
expect(data).to.be.ok
|
|
755
775
|
} catch(error) {
|
|
756
776
|
expect(error.requestId).to.be.ok
|
|
@@ -768,9 +788,9 @@ it("redis.v20180412.DeleteInstanceAccount", async function () {
|
|
|
768
788
|
}
|
|
769
789
|
})
|
|
770
790
|
|
|
771
|
-
it("redis.v20180412.
|
|
791
|
+
it("redis.v20180412.DescribeInstanceAccount", async function () {
|
|
772
792
|
try {
|
|
773
|
-
const data = await client.
|
|
793
|
+
const data = await client.DescribeInstanceAccount({})
|
|
774
794
|
expect(data).to.be.ok
|
|
775
795
|
} catch(error) {
|
|
776
796
|
expect(error.requestId).to.be.ok
|
|
@@ -818,9 +838,9 @@ it("redis.v20180412.DescribeInstanceMonitorTookDist", async function () {
|
|
|
818
838
|
}
|
|
819
839
|
})
|
|
820
840
|
|
|
821
|
-
it("redis.v20180412.
|
|
841
|
+
it("redis.v20180412.ChangeInstanceRole", async function () {
|
|
822
842
|
try {
|
|
823
|
-
const data = await client.
|
|
843
|
+
const data = await client.ChangeInstanceRole({})
|
|
824
844
|
expect(data).to.be.ok
|
|
825
845
|
} catch(error) {
|
|
826
846
|
expect(error.requestId).to.be.ok
|