tencentcloud-sdk-nodejs 4.0.623 → 4.0.624
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 +118 -0
- package/SERVICE_CHANGELOG.md +208 -28
- package/package.json +1 -1
- package/products.md +11 -11
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cdb/v20170320/cdb_models.ts +2 -2
- package/src/services/cdn/v20180606/cdn_client.ts +2 -1
- package/src/services/cloudstudio/index.ts +2 -0
- package/src/services/cloudstudio/v20230508/cloudstudio_client.ts +145 -0
- package/src/services/cloudstudio/v20230508/cloudstudio_models.ts +424 -0
- package/src/services/cloudstudio/v20230508/index.ts +6 -0
- package/src/services/cls/v20201016/cls_client.ts +1 -0
- package/src/services/cls/v20201016/cls_models.ts +22 -1
- package/src/services/cpdp/v20190820/cpdp_models.ts +30 -0
- package/src/services/cynosdb/v20190107/cynosdb_client.ts +139 -11
- package/src/services/cynosdb/v20190107/cynosdb_models.ts +943 -140
- package/src/services/ess/v20201111/ess_client.ts +12 -0
- package/src/services/ess/v20201111/ess_models.ts +89 -4
- package/src/services/oceanus/v20190422/oceanus_client.ts +23 -8
- package/src/services/oceanus/v20190422/oceanus_models.ts +268 -21
- package/src/services/redis/v20180412/redis_client.ts +1 -1
- package/src/services/redis/v20180412/redis_models.ts +11 -4
- package/src/services/tsf/v20180326/tsf_client.ts +1 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +2 -2
- package/tencentcloud/services/cdn/v20180606/cdn_client.d.ts +2 -1
- package/tencentcloud/services/cdn/v20180606/cdn_client.js +2 -1
- package/tencentcloud/services/cloudstudio/index.d.ts +4 -0
- package/tencentcloud/services/cloudstudio/index.js +2 -0
- package/tencentcloud/services/cloudstudio/v20230508/cloudstudio_client.d.ts +46 -0
- package/tencentcloud/services/cloudstudio/v20230508/cloudstudio_client.js +85 -0
- package/tencentcloud/services/cloudstudio/v20230508/cloudstudio_models.d.ts +384 -0
- package/tencentcloud/services/cloudstudio/v20230508/cloudstudio_models.js +18 -0
- package/tencentcloud/services/cloudstudio/v20230508/index.d.ts +6 -0
- package/tencentcloud/services/cloudstudio/v20230508/index.js +9 -0
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +21 -1
- package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +30 -0
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.d.ts +41 -1
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_client.js +60 -0
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +880 -105
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +5 -1
- package/tencentcloud/services/ess/v20201111/ess_client.js +6 -0
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +87 -4
- package/tencentcloud/services/oceanus/v20190422/oceanus_client.d.ts +7 -3
- package/tencentcloud/services/oceanus/v20190422/oceanus_client.js +9 -3
- package/tencentcloud/services/oceanus/v20190422/oceanus_models.d.ts +263 -21
- package/tencentcloud/services/redis/v20180412/redis_client.d.ts +1 -1
- package/tencentcloud/services/redis/v20180412/redis_client.js +1 -1
- package/tencentcloud/services/redis/v20180412/redis_models.d.ts +11 -4
- package/tencentcloud/services/tsf/v20180326/tsf_client.d.ts +1 -1
- package/tencentcloud/services/tsf/v20180326/tsf_client.js +1 -1
- package/test/cloudstudio.v20230508.test.js +111 -0
- package/test/cynosdb.v20190107.test.js +100 -0
- package/test/ess.v20201111.test.js +10 -0
- package/test/oceanus.v20190422.test.js +12 -2
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.cloudstudio.v20230508.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.v20230508.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("cloudstudio.v20230508.DescribeConfig", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DescribeConfig({})
|
|
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.v20230508.ModifyWorkspace", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.ModifyWorkspace({})
|
|
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.v20230508.DescribeWorkspaces", async function () {
|
|
42
|
+
try {
|
|
43
|
+
const data = await client.DescribeWorkspaces({})
|
|
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.v20230508.DescribeImages", async function () {
|
|
52
|
+
try {
|
|
53
|
+
const data = await client.DescribeImages({})
|
|
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.v20230508.CreateWorkspace", async function () {
|
|
62
|
+
try {
|
|
63
|
+
const data = await client.CreateWorkspace({})
|
|
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.v20230508.CreateWorkspaceToken", async function () {
|
|
72
|
+
try {
|
|
73
|
+
const data = await client.CreateWorkspaceToken({})
|
|
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.v20230508.RemoveWorkspace", async function () {
|
|
82
|
+
try {
|
|
83
|
+
const data = await client.RemoveWorkspace({})
|
|
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.v20230508.StopWorkspace", async function () {
|
|
92
|
+
try {
|
|
93
|
+
const data = await client.StopWorkspace({})
|
|
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.v20230508.RunWorkspace", async function () {
|
|
102
|
+
try {
|
|
103
|
+
const data = await client.RunWorkspace({})
|
|
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
|
+
})
|
|
@@ -28,6 +28,16 @@ it("cynosdb.v20190107.ResumeServerless", async function () {
|
|
|
28
28
|
}
|
|
29
29
|
})
|
|
30
30
|
|
|
31
|
+
it("cynosdb.v20190107.UpgradeProxyVersion", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.UpgradeProxyVersion({})
|
|
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
|
+
|
|
31
41
|
it("cynosdb.v20190107.DescribeBackupConfig", async function () {
|
|
32
42
|
try {
|
|
33
43
|
const data = await client.DescribeBackupConfig({})
|
|
@@ -38,6 +48,16 @@ it("cynosdb.v20190107.DescribeBackupConfig", async function () {
|
|
|
38
48
|
}
|
|
39
49
|
})
|
|
40
50
|
|
|
51
|
+
it("cynosdb.v20190107.CreateProxyEndPoint", async function () {
|
|
52
|
+
try {
|
|
53
|
+
const data = await client.CreateProxyEndPoint({})
|
|
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
|
+
|
|
41
61
|
it("cynosdb.v20190107.ModifyResourcePackageClusters", async function () {
|
|
42
62
|
try {
|
|
43
63
|
const data = await client.ModifyResourcePackageClusters({})
|
|
@@ -128,6 +148,16 @@ it("cynosdb.v20190107.SwitchClusterVpc", async function () {
|
|
|
128
148
|
}
|
|
129
149
|
})
|
|
130
150
|
|
|
151
|
+
it("cynosdb.v20190107.CloseProxy", async function () {
|
|
152
|
+
try {
|
|
153
|
+
const data = await client.CloseProxy({})
|
|
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
|
+
|
|
131
161
|
it("cynosdb.v20190107.DescribeClusterDetail", async function () {
|
|
132
162
|
try {
|
|
133
163
|
const data = await client.DescribeClusterDetail({})
|
|
@@ -188,6 +218,16 @@ it("cynosdb.v20190107.ActivateInstance", async function () {
|
|
|
188
218
|
}
|
|
189
219
|
})
|
|
190
220
|
|
|
221
|
+
it("cynosdb.v20190107.DescribeProxyNodes", async function () {
|
|
222
|
+
try {
|
|
223
|
+
const data = await client.DescribeProxyNodes({})
|
|
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
|
+
|
|
191
231
|
it("cynosdb.v20190107.DisassociateSecurityGroups", async function () {
|
|
192
232
|
try {
|
|
193
233
|
const data = await client.DisassociateSecurityGroups({})
|
|
@@ -278,6 +318,16 @@ it("cynosdb.v20190107.ModifyClusterName", async function () {
|
|
|
278
318
|
}
|
|
279
319
|
})
|
|
280
320
|
|
|
321
|
+
it("cynosdb.v20190107.ModifyProxyRwSplit", async function () {
|
|
322
|
+
try {
|
|
323
|
+
const data = await client.ModifyProxyRwSplit({})
|
|
324
|
+
expect(data).to.be.ok
|
|
325
|
+
} catch(error) {
|
|
326
|
+
expect(error.requestId).to.be.ok
|
|
327
|
+
expect(error.code).to.be.ok
|
|
328
|
+
}
|
|
329
|
+
})
|
|
330
|
+
|
|
281
331
|
it("cynosdb.v20190107.ModifyVipVport", async function () {
|
|
282
332
|
try {
|
|
283
333
|
const data = await client.ModifyVipVport({})
|
|
@@ -298,6 +348,16 @@ it("cynosdb.v20190107.DeleteAuditRuleTemplates", async function () {
|
|
|
298
348
|
}
|
|
299
349
|
})
|
|
300
350
|
|
|
351
|
+
it("cynosdb.v20190107.ModifyProxyDesc", async function () {
|
|
352
|
+
try {
|
|
353
|
+
const data = await client.ModifyProxyDesc({})
|
|
354
|
+
expect(data).to.be.ok
|
|
355
|
+
} catch(error) {
|
|
356
|
+
expect(error.requestId).to.be.ok
|
|
357
|
+
expect(error.code).to.be.ok
|
|
358
|
+
}
|
|
359
|
+
})
|
|
360
|
+
|
|
301
361
|
it("cynosdb.v20190107.CreateParamTemplate", async function () {
|
|
302
362
|
try {
|
|
303
363
|
const data = await client.CreateParamTemplate({})
|
|
@@ -378,6 +438,16 @@ it("cynosdb.v20190107.RestartInstance", async function () {
|
|
|
378
438
|
}
|
|
379
439
|
})
|
|
380
440
|
|
|
441
|
+
it("cynosdb.v20190107.UpgradeProxy", async function () {
|
|
442
|
+
try {
|
|
443
|
+
const data = await client.UpgradeProxy({})
|
|
444
|
+
expect(data).to.be.ok
|
|
445
|
+
} catch(error) {
|
|
446
|
+
expect(error.requestId).to.be.ok
|
|
447
|
+
expect(error.code).to.be.ok
|
|
448
|
+
}
|
|
449
|
+
})
|
|
450
|
+
|
|
381
451
|
it("cynosdb.v20190107.DescribeClusters", async function () {
|
|
382
452
|
try {
|
|
383
453
|
const data = await client.DescribeClusters({})
|
|
@@ -678,6 +748,16 @@ it("cynosdb.v20190107.UnbindClusterResourcePackages", async function () {
|
|
|
678
748
|
}
|
|
679
749
|
})
|
|
680
750
|
|
|
751
|
+
it("cynosdb.v20190107.DescribeProxies", async function () {
|
|
752
|
+
try {
|
|
753
|
+
const data = await client.DescribeProxies({})
|
|
754
|
+
expect(data).to.be.ok
|
|
755
|
+
} catch(error) {
|
|
756
|
+
expect(error.requestId).to.be.ok
|
|
757
|
+
expect(error.code).to.be.ok
|
|
758
|
+
}
|
|
759
|
+
})
|
|
760
|
+
|
|
681
761
|
it("cynosdb.v20190107.OpenWan", async function () {
|
|
682
762
|
try {
|
|
683
763
|
const data = await client.OpenWan({})
|
|
@@ -798,6 +878,16 @@ it("cynosdb.v20190107.InquirePriceRenew", async function () {
|
|
|
798
878
|
}
|
|
799
879
|
})
|
|
800
880
|
|
|
881
|
+
it("cynosdb.v20190107.ReloadBalanceProxyNode", async function () {
|
|
882
|
+
try {
|
|
883
|
+
const data = await client.ReloadBalanceProxyNode({})
|
|
884
|
+
expect(data).to.be.ok
|
|
885
|
+
} catch(error) {
|
|
886
|
+
expect(error.requestId).to.be.ok
|
|
887
|
+
expect(error.code).to.be.ok
|
|
888
|
+
}
|
|
889
|
+
})
|
|
890
|
+
|
|
801
891
|
it("cynosdb.v20190107.SearchClusterDatabases", async function () {
|
|
802
892
|
try {
|
|
803
893
|
const data = await client.SearchClusterDatabases({})
|
|
@@ -1018,6 +1108,16 @@ it("cynosdb.v20190107.DescribeBackupDownloadUrl", async function () {
|
|
|
1018
1108
|
}
|
|
1019
1109
|
})
|
|
1020
1110
|
|
|
1111
|
+
it("cynosdb.v20190107.CreateProxy", async function () {
|
|
1112
|
+
try {
|
|
1113
|
+
const data = await client.CreateProxy({})
|
|
1114
|
+
expect(data).to.be.ok
|
|
1115
|
+
} catch(error) {
|
|
1116
|
+
expect(error.requestId).to.be.ok
|
|
1117
|
+
expect(error.code).to.be.ok
|
|
1118
|
+
}
|
|
1119
|
+
})
|
|
1120
|
+
|
|
1021
1121
|
it("cynosdb.v20190107.ModifyDBInstanceSecurityGroups", async function () {
|
|
1022
1122
|
try {
|
|
1023
1123
|
const data = await client.ModifyDBInstanceSecurityGroups({})
|
|
@@ -328,6 +328,16 @@ it("ess.v20201111.CreateFlowByFiles", async function () {
|
|
|
328
328
|
}
|
|
329
329
|
})
|
|
330
330
|
|
|
331
|
+
it("ess.v20201111.CreateSeal", async function () {
|
|
332
|
+
try {
|
|
333
|
+
const data = await client.CreateSeal({})
|
|
334
|
+
expect(data).to.be.ok
|
|
335
|
+
} catch(error) {
|
|
336
|
+
expect(error.requestId).to.be.ok
|
|
337
|
+
expect(error.code).to.be.ok
|
|
338
|
+
}
|
|
339
|
+
})
|
|
340
|
+
|
|
331
341
|
it("ess.v20201111.DescribeIntegrationRoles", async function () {
|
|
332
342
|
try {
|
|
333
343
|
const data = await client.DescribeIntegrationRoles({})
|
|
@@ -118,6 +118,16 @@ it("oceanus.v20190422.DescribeClusters", async function () {
|
|
|
118
118
|
}
|
|
119
119
|
})
|
|
120
120
|
|
|
121
|
+
it("oceanus.v20190422.DeleteJobs", async function () {
|
|
122
|
+
try {
|
|
123
|
+
const data = await client.DeleteJobs({})
|
|
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
|
+
|
|
121
131
|
it("oceanus.v20190422.CreateJob", async function () {
|
|
122
132
|
try {
|
|
123
133
|
const data = await client.CreateJob({})
|
|
@@ -148,9 +158,9 @@ it("oceanus.v20190422.RunJobs", async function () {
|
|
|
148
158
|
}
|
|
149
159
|
})
|
|
150
160
|
|
|
151
|
-
it("oceanus.v20190422.
|
|
161
|
+
it("oceanus.v20190422.DescribeWorkSpaces", async function () {
|
|
152
162
|
try {
|
|
153
|
-
const data = await client.
|
|
163
|
+
const data = await client.DescribeWorkSpaces({})
|
|
154
164
|
expect(data).to.be.ok
|
|
155
165
|
} catch(error) {
|
|
156
166
|
expect(error.requestId).to.be.ok
|