tencentcloud-sdk-nodejs 4.0.355 → 4.0.358
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 +927 -0
- package/SERVICE_CHANGELOG.md +893 -130
- package/package.json +1 -1
- package/products.md +34 -31
- package/src/common/sdk_version.ts +1 -1
- package/src/services/acp/index.ts +5 -0
- package/src/services/acp/v20220105/acp_client.ts +106 -0
- package/src/services/acp/v20220105/acp_models.ts +605 -0
- package/src/services/acp/v20220105/index.ts +6 -0
- package/src/services/advisor/v20200721/advisor_models.ts +16 -0
- package/src/services/ams/v20201229/ams_client.ts +2 -0
- package/src/services/ams/v20201229/ams_models.ts +54 -0
- package/src/services/asr/v20190614/asr_models.ts +2 -2
- package/src/services/billing/v20180709/billing_models.ts +70 -8
- package/src/services/bsca/v20210811/bsca_client.ts +12 -0
- package/src/services/bsca/v20210811/bsca_models.ts +25 -0
- package/src/services/cdb/v20170320/cdb_models.ts +6 -0
- package/src/services/cls/v20201016/cls_models.ts +7 -1
- package/src/services/cme/v20191029/cme_client.ts +2 -0
- package/src/services/cme/v20191029/cme_models.ts +47 -1
- package/src/services/cwp/v20180228/cwp_models.ts +51 -1
- package/src/services/ecm/v20190719/ecm_models.ts +10 -2
- package/src/services/emr/v20190103/emr_client.ts +8 -4
- package/src/services/emr/v20190103/emr_models.ts +96 -0
- package/src/services/index.ts +3 -0
- package/src/services/live/v20180801/live_client.ts +9 -9
- package/src/services/live/v20180801/live_models.ts +40 -6
- package/src/services/mmps/index.ts +5 -0
- package/src/services/mmps/v20200710/index.ts +6 -0
- package/src/services/mmps/v20200710/mmps_client.ts +167 -0
- package/src/services/mmps/v20200710/mmps_models.ts +846 -0
- package/src/services/mrs/v20200910/mrs_models.ts +6 -0
- package/src/services/oceanus/v20190422/oceanus_client.ts +12 -0
- package/src/services/oceanus/v20190422/oceanus_models.ts +53 -0
- package/src/services/ocr/v20181119/ocr_client.ts +39 -2
- package/src/services/ocr/v20181119/ocr_models.ts +339 -10
- package/src/services/organization/v20210331/organization_models.ts +21 -0
- package/src/services/tcm/v20210413/tcm_client.ts +1 -0
- package/src/services/tcm/v20210413/tcm_models.ts +56 -0
- package/src/services/tcss/v20201101/tcss_models.ts +16 -1
- package/src/services/tem/v20210701/tem_models.ts +22 -12
- package/src/services/teo/v20220106/teo_client.ts +288 -51
- package/src/services/teo/v20220106/teo_models.ts +2232 -362
- package/src/services/tiia/v20190529/tiia_client.ts +17 -2
- package/src/services/tiia/v20190529/tiia_models.ts +74 -35
- package/src/services/tione/index.ts +2 -0
- package/src/services/tione/v20211111/index.ts +6 -0
- package/src/services/tione/v20211111/tione_client.ts +388 -0
- package/src/services/tione/v20211111/tione_models.ts +3004 -0
- package/src/services/tke/v20180525/tke_client.ts +1 -0
- package/src/services/tke/v20180525/tke_models.ts +20 -0
- package/src/services/trp/index.ts +5 -0
- package/src/services/trp/v20210515/index.ts +6 -0
- package/src/services/trp/v20210515/trp_client.ts +377 -0
- package/src/services/trp/v20210515/trp_models.ts +1708 -0
- package/src/services/tse/v20201207/tse_client.ts +31 -4
- package/src/services/tse/v20201207/tse_models.ts +310 -74
- package/src/services/vm/v20201229/vm_client.ts +2 -0
- package/src/services/vm/v20201229/vm_models.ts +54 -0
- package/src/services/vod/v20180717/vod_client.ts +1 -0
- package/src/services/vod/v20180717/vod_models.ts +6 -6
- package/src/services/vpc/v20170312/vpc_models.ts +16 -0
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/acp/index.d.ts +6 -0
- package/tencentcloud/services/acp/index.js +7 -0
- package/tencentcloud/services/acp/v20220105/acp_client.d.ts +34 -0
- package/tencentcloud/services/acp/v20220105/acp_client.js +67 -0
- package/tencentcloud/services/acp/v20220105/acp_models.d.ts +491 -0
- package/tencentcloud/services/acp/v20220105/acp_models.js +18 -0
- package/tencentcloud/services/acp/v20220105/index.d.ts +6 -0
- package/tencentcloud/services/acp/v20220105/index.js +9 -0
- package/tencentcloud/services/advisor/v20200721/advisor_models.d.ts +13 -0
- package/tencentcloud/services/ams/v20201229/ams_models.d.ts +47 -0
- package/tencentcloud/services/asr/v20190614/asr_models.d.ts +2 -2
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +59 -8
- package/tencentcloud/services/bsca/v20210811/bsca_client.d.ts +5 -1
- package/tencentcloud/services/bsca/v20210811/bsca_client.js +6 -0
- package/tencentcloud/services/bsca/v20210811/bsca_models.d.ts +22 -0
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +5 -0
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +6 -1
- package/tencentcloud/services/cme/v20191029/cme_models.d.ts +41 -1
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +41 -1
- package/tencentcloud/services/ecm/v20190719/ecm_models.d.ts +9 -2
- package/tencentcloud/services/emr/v20190103/emr_client.d.ts +4 -2
- package/tencentcloud/services/emr/v20190103/emr_client.js +4 -2
- package/tencentcloud/services/emr/v20190103/emr_models.d.ts +80 -0
- package/tencentcloud/services/index.d.ts +3 -0
- package/tencentcloud/services/index.js +6 -0
- package/tencentcloud/services/live/v20180801/live_client.d.ts +8 -9
- package/tencentcloud/services/live/v20180801/live_client.js +7 -8
- package/tencentcloud/services/live/v20180801/live_models.d.ts +35 -6
- package/tencentcloud/services/mmps/index.d.ts +6 -0
- package/tencentcloud/services/mmps/index.js +7 -0
- package/tencentcloud/services/mmps/v20200710/index.d.ts +6 -0
- package/tencentcloud/services/mmps/v20200710/index.js +9 -0
- package/tencentcloud/services/mmps/v20200710/mmps_client.d.ts +54 -0
- package/tencentcloud/services/mmps/v20200710/mmps_client.js +97 -0
- package/tencentcloud/services/mmps/v20200710/mmps_models.d.ts +695 -0
- package/tencentcloud/services/mmps/v20200710/mmps_models.js +18 -0
- package/tencentcloud/services/mrs/v20200910/mrs_models.d.ts +5 -0
- package/tencentcloud/services/oceanus/v20190422/oceanus_client.d.ts +5 -1
- package/tencentcloud/services/oceanus/v20190422/oceanus_client.js +6 -0
- package/tencentcloud/services/oceanus/v20190422/oceanus_models.d.ts +45 -0
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +14 -2
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +19 -1
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +284 -8
- package/tencentcloud/services/organization/v20210331/organization_models.d.ts +17 -0
- package/tencentcloud/services/tcm/v20210413/tcm_models.d.ts +46 -0
- package/tencentcloud/services/tcss/v20201101/tcss_models.d.ts +14 -1
- package/tencentcloud/services/tem/v20210701/tem_models.d.ts +20 -12
- package/tencentcloud/services/teo/v20220106/teo_client.d.ts +79 -11
- package/tencentcloud/services/teo/v20220106/teo_client.js +117 -15
- package/tencentcloud/services/teo/v20220106/teo_models.d.ts +1890 -309
- package/tencentcloud/services/tiia/v20190529/tiia_client.d.ts +8 -1
- package/tencentcloud/services/tiia/v20190529/tiia_client.js +9 -0
- package/tencentcloud/services/tiia/v20190529/tiia_models.d.ts +64 -29
- package/tencentcloud/services/tione/index.d.ts +4 -0
- package/tencentcloud/services/tione/index.js +2 -0
- package/tencentcloud/services/tione/v20211111/index.d.ts +6 -0
- package/tencentcloud/services/tione/v20211111/index.js +9 -0
- package/tencentcloud/services/tione/v20211111/tione_client.d.ts +114 -0
- package/tencentcloud/services/tione/v20211111/tione_client.js +187 -0
- package/tencentcloud/services/tione/v20211111/tione_models.d.ts +2545 -0
- package/tencentcloud/services/tione/v20211111/tione_models.js +18 -0
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +17 -0
- package/tencentcloud/services/trp/index.d.ts +6 -0
- package/tencentcloud/services/trp/index.js +7 -0
- package/tencentcloud/services/trp/v20210515/index.d.ts +6 -0
- package/tencentcloud/services/trp/v20210515/index.js +9 -0
- package/tencentcloud/services/trp/v20210515/trp_client.d.ts +122 -0
- package/tencentcloud/services/trp/v20210515/trp_client.js +199 -0
- package/tencentcloud/services/trp/v20210515/trp_models.d.ts +1431 -0
- package/tencentcloud/services/trp/v20210515/trp_models.js +18 -0
- package/tencentcloud/services/tse/v20201207/tse_client.d.ts +9 -1
- package/tencentcloud/services/tse/v20201207/tse_client.js +12 -0
- package/tencentcloud/services/tse/v20201207/tse_models.d.ts +273 -67
- package/tencentcloud/services/vm/v20201229/vm_models.d.ts +47 -0
- package/tencentcloud/services/vod/v20180717/vod_client.d.ts +1 -0
- package/tencentcloud/services/vod/v20180717/vod_client.js +1 -0
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +5 -5
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +13 -0
- package/test/acp.v20220105.test.js +81 -0
- package/test/bsca.v20210811.test.js +10 -0
- package/test/mmps.v20200710.test.js +131 -0
- package/test/oceanus.v20190422.test.js +10 -0
- package/test/ocr.v20181119.test.js +30 -0
- package/test/teo.v20220106.test.js +180 -10
- package/test/tiia.v20190529.test.js +10 -0
- package/test/tione.v20211111.test.js +281 -0
- package/test/trp.v20210515.test.js +301 -0
- package/test/tse.v20201207.test.js +20 -0
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.tione.v20211111.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("tione.v20211111.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("tione.v20211111.DescribeTrainingModelVersion", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DescribeTrainingModelVersion({})
|
|
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("tione.v20211111.DeleteDataset", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.DeleteDataset({})
|
|
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("tione.v20211111.DescribeBillingSpecsPrice", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.DescribeBillingSpecsPrice({})
|
|
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("tione.v20211111.DescribeTrainingTasks", async function () {
|
|
52
|
+
try {
|
|
53
|
+
const data = await client.DescribeTrainingTasks({})
|
|
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("tione.v20211111.DescribeTrainingFrameworks", async function () {
|
|
62
|
+
try {
|
|
63
|
+
const data = await client.DescribeTrainingFrameworks({})
|
|
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("tione.v20211111.CreateTrainingModel", async function () {
|
|
72
|
+
try {
|
|
73
|
+
const data = await client.CreateTrainingModel({})
|
|
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("tione.v20211111.CreateTrainingTask", async function () {
|
|
82
|
+
try {
|
|
83
|
+
const data = await client.CreateTrainingTask({})
|
|
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("tione.v20211111.DescribeDatasetDetailUnstructured", async function () {
|
|
92
|
+
try {
|
|
93
|
+
const data = await client.DescribeDatasetDetailUnstructured({})
|
|
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("tione.v20211111.DescribeTrainingModels", async function () {
|
|
102
|
+
try {
|
|
103
|
+
const data = await client.DescribeTrainingModels({})
|
|
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("tione.v20211111.DescribeTrainingTaskPods", async function () {
|
|
112
|
+
try {
|
|
113
|
+
const data = await client.DescribeTrainingTaskPods({})
|
|
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("tione.v20211111.DescribeTrainingMetrics", async function () {
|
|
122
|
+
try {
|
|
123
|
+
const data = await client.DescribeTrainingMetrics({})
|
|
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("tione.v20211111.DeleteTrainingModel", async function () {
|
|
132
|
+
try {
|
|
133
|
+
const data = await client.DeleteTrainingModel({})
|
|
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("tione.v20211111.StartTrainingTask", async function () {
|
|
142
|
+
try {
|
|
143
|
+
const data = await client.StartTrainingTask({})
|
|
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("tione.v20211111.CreateDataset", async function () {
|
|
152
|
+
try {
|
|
153
|
+
const data = await client.CreateDataset({})
|
|
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("tione.v20211111.PushTrainingMetrics", async function () {
|
|
162
|
+
try {
|
|
163
|
+
const data = await client.PushTrainingMetrics({})
|
|
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("tione.v20211111.StopTrainingTask", async function () {
|
|
172
|
+
try {
|
|
173
|
+
const data = await client.StopTrainingTask({})
|
|
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("tione.v20211111.DescribeTrainingModelVersions", async function () {
|
|
182
|
+
try {
|
|
183
|
+
const data = await client.DescribeTrainingModelVersions({})
|
|
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("tione.v20211111.DescribeDatasetDetailStructured", async function () {
|
|
192
|
+
try {
|
|
193
|
+
const data = await client.DescribeDatasetDetailStructured({})
|
|
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("tione.v20211111.DescribeLogs", async function () {
|
|
202
|
+
try {
|
|
203
|
+
const data = await client.DescribeLogs({})
|
|
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("tione.v20211111.DescribeDatasets", async function () {
|
|
212
|
+
try {
|
|
213
|
+
const data = await client.DescribeDatasets({})
|
|
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
|
+
it("tione.v20211111.DescribeTrainingTask", async function () {
|
|
222
|
+
try {
|
|
223
|
+
const data = await client.DescribeTrainingTask({})
|
|
224
|
+
expect(data).to.be.ok
|
|
225
|
+
} catch(error) {
|
|
226
|
+
expect(error.requestId).to.be.ok
|
|
227
|
+
expect(error.code).to.be.ok
|
|
228
|
+
}
|
|
229
|
+
})
|
|
230
|
+
|
|
231
|
+
it("tione.v20211111.DeleteTrainingTask", async function () {
|
|
232
|
+
try {
|
|
233
|
+
const data = await client.DeleteTrainingTask({})
|
|
234
|
+
expect(data).to.be.ok
|
|
235
|
+
} catch(error) {
|
|
236
|
+
expect(error.requestId).to.be.ok
|
|
237
|
+
expect(error.code).to.be.ok
|
|
238
|
+
}
|
|
239
|
+
})
|
|
240
|
+
|
|
241
|
+
it("tione.v20211111.DescribeLatestTrainingMetrics", async function () {
|
|
242
|
+
try {
|
|
243
|
+
const data = await client.DescribeLatestTrainingMetrics({})
|
|
244
|
+
expect(data).to.be.ok
|
|
245
|
+
} catch(error) {
|
|
246
|
+
expect(error.requestId).to.be.ok
|
|
247
|
+
expect(error.code).to.be.ok
|
|
248
|
+
}
|
|
249
|
+
})
|
|
250
|
+
|
|
251
|
+
it("tione.v20211111.DeleteTrainingModelVersion", async function () {
|
|
252
|
+
try {
|
|
253
|
+
const data = await client.DeleteTrainingModelVersion({})
|
|
254
|
+
expect(data).to.be.ok
|
|
255
|
+
} catch(error) {
|
|
256
|
+
expect(error.requestId).to.be.ok
|
|
257
|
+
expect(error.code).to.be.ok
|
|
258
|
+
}
|
|
259
|
+
})
|
|
260
|
+
|
|
261
|
+
it("tione.v20211111.DescribeBillingResourceGroups", async function () {
|
|
262
|
+
try {
|
|
263
|
+
const data = await client.DescribeBillingResourceGroups({})
|
|
264
|
+
expect(data).to.be.ok
|
|
265
|
+
} catch(error) {
|
|
266
|
+
expect(error.requestId).to.be.ok
|
|
267
|
+
expect(error.code).to.be.ok
|
|
268
|
+
}
|
|
269
|
+
})
|
|
270
|
+
|
|
271
|
+
it("tione.v20211111.DescribeInferTemplates", async function () {
|
|
272
|
+
try {
|
|
273
|
+
const data = await client.DescribeInferTemplates({})
|
|
274
|
+
expect(data).to.be.ok
|
|
275
|
+
} catch(error) {
|
|
276
|
+
expect(error.requestId).to.be.ok
|
|
277
|
+
expect(error.code).to.be.ok
|
|
278
|
+
}
|
|
279
|
+
})
|
|
280
|
+
|
|
281
|
+
})
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.trp.v20210515.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("trp.v20210515.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("trp.v20210515.DescribeTraceCodeById", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DescribeTraceCodeById({})
|
|
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("trp.v20210515.ModifyTraceDataRanks", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.ModifyTraceDataRanks({})
|
|
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("trp.v20210515.ModifyProduct", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.ModifyProduct({})
|
|
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("trp.v20210515.DescribeCodeBatchById", async function () {
|
|
52
|
+
try {
|
|
53
|
+
const data = await client.DescribeCodeBatchById({})
|
|
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("trp.v20210515.DescribeTraceCodes", async function () {
|
|
62
|
+
try {
|
|
63
|
+
const data = await client.DescribeTraceCodes({})
|
|
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("trp.v20210515.DescribeCodesByPack", async function () {
|
|
72
|
+
try {
|
|
73
|
+
const data = await client.DescribeCodesByPack({})
|
|
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("trp.v20210515.DescribeMerchantById", async function () {
|
|
82
|
+
try {
|
|
83
|
+
const data = await client.DescribeMerchantById({})
|
|
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("trp.v20210515.CreateProduct", async function () {
|
|
92
|
+
try {
|
|
93
|
+
const data = await client.CreateProduct({})
|
|
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("trp.v20210515.DescribeProducts", async function () {
|
|
102
|
+
try {
|
|
103
|
+
const data = await client.DescribeProducts({})
|
|
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("trp.v20210515.ModifyTraceData", async function () {
|
|
112
|
+
try {
|
|
113
|
+
const data = await client.ModifyTraceData({})
|
|
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("trp.v20210515.DescribeProductById", async function () {
|
|
122
|
+
try {
|
|
123
|
+
const data = await client.DescribeProductById({})
|
|
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("trp.v20210515.CreateTraceCodes", async function () {
|
|
132
|
+
try {
|
|
133
|
+
const data = await client.CreateTraceCodes({})
|
|
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("trp.v20210515.DeleteProduct", async function () {
|
|
142
|
+
try {
|
|
143
|
+
const data = await client.DeleteProduct({})
|
|
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("trp.v20210515.CreateTraceChain", async function () {
|
|
152
|
+
try {
|
|
153
|
+
const data = await client.CreateTraceChain({})
|
|
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("trp.v20210515.DeleteMerchant", async function () {
|
|
162
|
+
try {
|
|
163
|
+
const data = await client.DeleteMerchant({})
|
|
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("trp.v20210515.DescribeCodeBatchs", async function () {
|
|
172
|
+
try {
|
|
173
|
+
const data = await client.DescribeCodeBatchs({})
|
|
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("trp.v20210515.ModifyMerchant", async function () {
|
|
182
|
+
try {
|
|
183
|
+
const data = await client.ModifyMerchant({})
|
|
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("trp.v20210515.CreateCodeBatch", async function () {
|
|
192
|
+
try {
|
|
193
|
+
const data = await client.CreateCodeBatch({})
|
|
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("trp.v20210515.DeleteCodeBatch", async function () {
|
|
202
|
+
try {
|
|
203
|
+
const data = await client.DeleteCodeBatch({})
|
|
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("trp.v20210515.DescribeTraceDataList", async function () {
|
|
212
|
+
try {
|
|
213
|
+
const data = await client.DescribeTraceDataList({})
|
|
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
|
+
it("trp.v20210515.CreateTraceData", async function () {
|
|
222
|
+
try {
|
|
223
|
+
const data = await client.CreateTraceData({})
|
|
224
|
+
expect(data).to.be.ok
|
|
225
|
+
} catch(error) {
|
|
226
|
+
expect(error.requestId).to.be.ok
|
|
227
|
+
expect(error.code).to.be.ok
|
|
228
|
+
}
|
|
229
|
+
})
|
|
230
|
+
|
|
231
|
+
it("trp.v20210515.CreateMerchant", async function () {
|
|
232
|
+
try {
|
|
233
|
+
const data = await client.CreateMerchant({})
|
|
234
|
+
expect(data).to.be.ok
|
|
235
|
+
} catch(error) {
|
|
236
|
+
expect(error.requestId).to.be.ok
|
|
237
|
+
expect(error.code).to.be.ok
|
|
238
|
+
}
|
|
239
|
+
})
|
|
240
|
+
|
|
241
|
+
it("trp.v20210515.DeleteTraceData", async function () {
|
|
242
|
+
try {
|
|
243
|
+
const data = await client.DeleteTraceData({})
|
|
244
|
+
expect(data).to.be.ok
|
|
245
|
+
} catch(error) {
|
|
246
|
+
expect(error.requestId).to.be.ok
|
|
247
|
+
expect(error.code).to.be.ok
|
|
248
|
+
}
|
|
249
|
+
})
|
|
250
|
+
|
|
251
|
+
it("trp.v20210515.ModifyTraceCode", async function () {
|
|
252
|
+
try {
|
|
253
|
+
const data = await client.ModifyTraceCode({})
|
|
254
|
+
expect(data).to.be.ok
|
|
255
|
+
} catch(error) {
|
|
256
|
+
expect(error.requestId).to.be.ok
|
|
257
|
+
expect(error.code).to.be.ok
|
|
258
|
+
}
|
|
259
|
+
})
|
|
260
|
+
|
|
261
|
+
it("trp.v20210515.DescribeCodePacks", async function () {
|
|
262
|
+
try {
|
|
263
|
+
const data = await client.DescribeCodePacks({})
|
|
264
|
+
expect(data).to.be.ok
|
|
265
|
+
} catch(error) {
|
|
266
|
+
expect(error.requestId).to.be.ok
|
|
267
|
+
expect(error.code).to.be.ok
|
|
268
|
+
}
|
|
269
|
+
})
|
|
270
|
+
|
|
271
|
+
it("trp.v20210515.ModifyCodeBatch", async function () {
|
|
272
|
+
try {
|
|
273
|
+
const data = await client.ModifyCodeBatch({})
|
|
274
|
+
expect(data).to.be.ok
|
|
275
|
+
} catch(error) {
|
|
276
|
+
expect(error.requestId).to.be.ok
|
|
277
|
+
expect(error.code).to.be.ok
|
|
278
|
+
}
|
|
279
|
+
})
|
|
280
|
+
|
|
281
|
+
it("trp.v20210515.DescribeMerchants", async function () {
|
|
282
|
+
try {
|
|
283
|
+
const data = await client.DescribeMerchants({})
|
|
284
|
+
expect(data).to.be.ok
|
|
285
|
+
} catch(error) {
|
|
286
|
+
expect(error.requestId).to.be.ok
|
|
287
|
+
expect(error.code).to.be.ok
|
|
288
|
+
}
|
|
289
|
+
})
|
|
290
|
+
|
|
291
|
+
it("trp.v20210515.CreateCodePack", async function () {
|
|
292
|
+
try {
|
|
293
|
+
const data = await client.CreateCodePack({})
|
|
294
|
+
expect(data).to.be.ok
|
|
295
|
+
} catch(error) {
|
|
296
|
+
expect(error.requestId).to.be.ok
|
|
297
|
+
expect(error.code).to.be.ok
|
|
298
|
+
}
|
|
299
|
+
})
|
|
300
|
+
|
|
301
|
+
})
|
|
@@ -18,6 +18,16 @@ const client = new tencentcloud.tse.v20201207.Client({
|
|
|
18
18
|
})
|
|
19
19
|
describe("tse.v20201207.test.js", function () {
|
|
20
20
|
|
|
21
|
+
it("tse.v20201207.DeleteEngine", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DeleteEngine({})
|
|
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("tse.v20201207.DescribeSREInstanceAccessAddress", async function () {
|
|
22
32
|
try {
|
|
23
33
|
const data = await client.DescribeSREInstanceAccessAddress({})
|
|
@@ -28,6 +38,16 @@ it("tse.v20201207.DescribeSREInstanceAccessAddress", async function () {
|
|
|
28
38
|
}
|
|
29
39
|
})
|
|
30
40
|
|
|
41
|
+
it("tse.v20201207.CreateEngine", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.CreateEngine({})
|
|
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
|
+
|
|
31
51
|
it("tse.v20201207.DescribeSREInstances", async function () {
|
|
32
52
|
try {
|
|
33
53
|
const data = await client.DescribeSREInstances({})
|