tencentcloud-sdk-nodejs 4.0.247 → 4.0.248
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 +139 -117
- package/package.json +1 -1
- package/products.md +7 -6
- package/src/common/sdk_version.ts +1 -1
- package/src/services/apigateway/v20180808/apigateway_client.ts +1 -1
- package/src/services/apm/v20210622/apm_client.ts +19 -1
- package/src/services/apm/v20210622/apm_models.ts +172 -10
- package/src/services/cfw/v20190904/cfw_models.ts +1 -1
- package/src/services/index.ts +1 -0
- package/src/services/ivld/index.ts +5 -0
- package/src/services/ivld/v20210903/index.ts +6 -0
- package/src/services/ivld/v20210903/ivld_client.ts +170 -0
- package/src/services/ivld/v20210903/ivld_models.ts +973 -0
- package/src/services/lighthouse/v20200324/lighthouse_client.ts +0 -1
- package/src/services/lighthouse/v20200324/lighthouse_models.ts +6 -35
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/apigateway/v20180808/apigateway_client.d.ts +1 -1
- package/tencentcloud/services/apigateway/v20180808/apigateway_client.js +1 -1
- package/tencentcloud/services/apm/v20210622/apm_client.d.ts +5 -1
- package/tencentcloud/services/apm/v20210622/apm_client.js +6 -0
- package/tencentcloud/services/apm/v20210622/apm_models.d.ts +145 -8
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +1 -1
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/ivld/index.d.ts +6 -0
- package/tencentcloud/services/ivld/index.js +7 -0
- package/tencentcloud/services/ivld/v20210903/index.d.ts +6 -0
- package/tencentcloud/services/ivld/v20210903/index.js +9 -0
- package/tencentcloud/services/ivld/v20210903/ivld_client.d.ts +66 -0
- package/tencentcloud/services/ivld/v20210903/ivld_client.js +103 -0
- package/tencentcloud/services/ivld/v20210903/ivld_models.d.ts +831 -0
- package/tencentcloud/services/ivld/v20210903/ivld_models.js +18 -0
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +6 -29
- package/test/apm.v20210622.test.js +10 -0
- package/test/ivld.v20210903.test.js +101 -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 });
|
|
@@ -874,31 +874,6 @@ export interface DisassociateInstancesKeyPairsRequest {
|
|
|
874
874
|
*/
|
|
875
875
|
InstanceIds: Array<string>;
|
|
876
876
|
}
|
|
877
|
-
/**
|
|
878
|
-
* 数据盘价格
|
|
879
|
-
*/
|
|
880
|
-
export interface DataDiskPrice {
|
|
881
|
-
/**
|
|
882
|
-
* 磁盘ID
|
|
883
|
-
*/
|
|
884
|
-
DiskId: string;
|
|
885
|
-
/**
|
|
886
|
-
* 磁盘单价
|
|
887
|
-
*/
|
|
888
|
-
OriginalDiskPrice: number;
|
|
889
|
-
/**
|
|
890
|
-
* 磁盘总价
|
|
891
|
-
*/
|
|
892
|
-
OriginalPrice: number;
|
|
893
|
-
/**
|
|
894
|
-
* 折扣
|
|
895
|
-
*/
|
|
896
|
-
Discount: number;
|
|
897
|
-
/**
|
|
898
|
-
* 折后总价
|
|
899
|
-
*/
|
|
900
|
-
DiscountPrice: number;
|
|
901
|
-
}
|
|
902
877
|
/**
|
|
903
878
|
* ImportKeyPair请求参数结构体
|
|
904
879
|
*/
|
|
@@ -1556,6 +1531,12 @@ export interface DescribeInstancesRequest {
|
|
|
1556
1531
|
<li>public-ip-address</li>按照【实例主网卡的公网 IP】进行过滤。
|
|
1557
1532
|
类型:String
|
|
1558
1533
|
必选:否
|
|
1534
|
+
<li>zone</li>按照【可用区】进行过滤。
|
|
1535
|
+
类型:String
|
|
1536
|
+
必选:否
|
|
1537
|
+
<li>instance-state</li>按照【实例状态】进行过滤。
|
|
1538
|
+
类型:String
|
|
1539
|
+
必选:否
|
|
1559
1540
|
每次请求的 Filters 的上限为 10,Filter.Values 的上限为 5。参数不支持同时指定 InstanceIds 和 Filters。
|
|
1560
1541
|
*/
|
|
1561
1542
|
Filters?: Array<Filter>;
|
|
@@ -2020,10 +2001,6 @@ export interface Price {
|
|
|
2020
2001
|
* 实例价格。
|
|
2021
2002
|
*/
|
|
2022
2003
|
InstancePrice: InstancePrice;
|
|
2023
|
-
/**
|
|
2024
|
-
* 数据盘价格。
|
|
2025
|
-
*/
|
|
2026
|
-
DataDiskPrices: Array<DataDiskPrice>;
|
|
2027
2004
|
}
|
|
2028
2005
|
/**
|
|
2029
2006
|
* BlueprintPrice 自定义镜像的价格参数。
|
|
@@ -18,6 +18,16 @@ const client = new tencentcloud.apm.v20210622.Client({
|
|
|
18
18
|
})
|
|
19
19
|
describe("apm.v20210622.test.js", function () {
|
|
20
20
|
|
|
21
|
+
it("apm.v20210622.DescribeApmInstances", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DescribeApmInstances({})
|
|
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
|
+
|
|
21
31
|
it("apm.v20210622.DescribeApmAgent", async function () {
|
|
22
32
|
try {
|
|
23
33
|
const data = await client.DescribeApmAgent({})
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.ivld.v20210903.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("ivld.v20210903.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("ivld.v20210903.CreateTask", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.CreateTask({})
|
|
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("ivld.v20210903.ImportMedia", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.ImportMedia({})
|
|
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("ivld.v20210903.DescribeMedias", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.DescribeMedias({})
|
|
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("ivld.v20210903.DescribeMedia", async function () {
|
|
52
|
+
try {
|
|
53
|
+
const data = await client.DescribeMedia({})
|
|
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("ivld.v20210903.DescribeTaskDetail", async function () {
|
|
62
|
+
try {
|
|
63
|
+
const data = await client.DescribeTaskDetail({})
|
|
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("ivld.v20210903.DescribeTask", async function () {
|
|
72
|
+
try {
|
|
73
|
+
const data = await client.DescribeTask({})
|
|
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("ivld.v20210903.DescribeTasks", async function () {
|
|
82
|
+
try {
|
|
83
|
+
const data = await client.DescribeTasks({})
|
|
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("ivld.v20210903.DeleteMedia", async function () {
|
|
92
|
+
try {
|
|
93
|
+
const data = await client.DeleteMedia({})
|
|
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
|
+
})
|