tencentcloud-sdk-nodejs 4.0.509 → 4.0.510
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 +46 -0
- package/README.md +2 -2
- package/SERVICE_CHANGELOG.md +50 -175
- package/examples/cvm_role.js +4 -3
- package/examples/cvm_role.ts +28 -0
- package/package.json +1 -1
- package/products.md +6 -6
- package/src/common/abstract_client.ts +11 -4
- package/src/common/cvm_role_credential.ts +2 -2
- package/src/common/http/http_connection.ts +2 -2
- package/src/common/sdk_version.ts +1 -1
- package/src/services/as/v20180419/as_models.ts +1 -1
- package/src/services/cfg/v20210820/cfg_client.ts +1 -0
- package/src/services/cfg/v20210820/cfg_models.ts +43 -0
- package/src/services/dts/v20211206/dts_models.ts +2 -2
- package/src/services/teo/v20220901/teo_client.ts +27 -3
- package/src/services/teo/v20220901/teo_models.ts +284 -129
- package/src/services/trp/v20210515/trp_models.ts +3 -3
- package/tencentcloud/common/abstract_client.js +10 -5
- package/tencentcloud/common/cvm_role_credential.d.ts +2 -2
- package/tencentcloud/common/http/http_connection.js +2 -2
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/as/v20180419/as_models.d.ts +1 -1
- package/tencentcloud/services/cfg/v20210820/cfg_models.d.ts +36 -0
- package/tencentcloud/services/dts/v20211206/dts_models.d.ts +2 -2
- package/tencentcloud/services/teo/v20220901/teo_client.d.ts +9 -1
- package/tencentcloud/services/teo/v20220901/teo_client.js +12 -0
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +254 -119
- package/tencentcloud/services/trp/v20210515/trp_models.d.ts +3 -3
- package/test/teo.v20220901.test.js +20 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,49 @@
|
|
|
1
|
+
# Release 4.0.510
|
|
2
|
+
|
|
3
|
+
## 混沌演练平台(cfg) 版本:2021-08-20
|
|
4
|
+
|
|
5
|
+
### 第 5 次发布
|
|
6
|
+
|
|
7
|
+
发布时间:2022-12-26 01:15:15
|
|
8
|
+
|
|
9
|
+
本次发布包含了以下内容:
|
|
10
|
+
|
|
11
|
+
改善已有的文档。
|
|
12
|
+
|
|
13
|
+
修改接口:
|
|
14
|
+
|
|
15
|
+
* [DescribeTask](https://cloud.tencent.com/document/api/1500/71781)
|
|
16
|
+
|
|
17
|
+
* 新增出参:ReportInfo
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
新增数据结构:
|
|
21
|
+
|
|
22
|
+
* [TaskReportInfo](https://cloud.tencent.com/document/api/1500/71784#TaskReportInfo)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## 边缘安全加速平台(teo) 版本:2022-09-01
|
|
27
|
+
|
|
28
|
+
### 第 21 次发布
|
|
29
|
+
|
|
30
|
+
发布时间:2022-12-26 01:58:03
|
|
31
|
+
|
|
32
|
+
本次发布包含了以下内容:
|
|
33
|
+
|
|
34
|
+
改善已有的文档。
|
|
35
|
+
|
|
36
|
+
新增接口:
|
|
37
|
+
|
|
38
|
+
* [DescribeDistributionL4AccessData](https://cloud.tencent.com/document/api/1552/84489)
|
|
39
|
+
* [DescribeTimingL4AccessData](https://cloud.tencent.com/document/api/1552/84488)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
## 边缘安全加速平台(teo) 版本:2022-01-06
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
1
47
|
# Release 4.0.509
|
|
2
48
|
|
|
3
49
|
## 访问管理(cam) 版本:2019-01-16
|
package/README.md
CHANGED
|
@@ -94,10 +94,10 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
|
94
94
|
|
|
95
95
|
除显式传入凭证外,从 `v4.0.506` 起支持 [腾讯云实例角色](https://cloud.tencent.com/document/product/213/47668)
|
|
96
96
|
|
|
97
|
-
在您为实例绑定角色后,您可以在实例中访问相关元数据接口获取临时凭证。用法可参考 [示例代码](./examples/cvm_role.js)
|
|
97
|
+
在您为实例绑定角色后,您可以在实例中访问相关元数据接口获取临时凭证。用法可参考 [js示例代码](./examples/cvm_role.js) 或 [ts示例代码](./examples/cvm_role.ts)
|
|
98
98
|
```javascript
|
|
99
99
|
// ...
|
|
100
|
-
const CvmRoleCredential = tencentcloud.
|
|
100
|
+
const CvmRoleCredential = require("tencentcloud-sdk-nodejs/tencentcloud/common/cvm_role_credential").default
|
|
101
101
|
|
|
102
102
|
new XxxClient({
|
|
103
103
|
// ...
|
package/SERVICE_CHANGELOG.md
CHANGED
|
@@ -1,146 +1,10 @@
|
|
|
1
1
|
# 本版本更新包含以下内容:
|
|
2
2
|
|
|
3
|
-
##
|
|
4
|
-
|
|
5
|
-
### 第 50 次发布
|
|
6
|
-
|
|
7
|
-
发布时间:2022-12-23 01:11:34
|
|
8
|
-
|
|
9
|
-
本次发布包含了以下内容:
|
|
10
|
-
|
|
11
|
-
改善已有的文档。
|
|
12
|
-
|
|
13
|
-
修改数据结构:
|
|
14
|
-
|
|
15
|
-
* [SecretIdLastUsed](https://cloud.tencent.com/document/api/598/33167#SecretIdLastUsed)
|
|
16
|
-
|
|
17
|
-
* 新增成员:LastSecretUsedDate
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## TDSQL-C MySQL 版(cynosdb) 版本:2019-01-07
|
|
23
|
-
|
|
24
|
-
### 第 37 次发布
|
|
25
|
-
|
|
26
|
-
发布时间:2022-12-23 01:24:17
|
|
27
|
-
|
|
28
|
-
本次发布包含了以下内容:
|
|
29
|
-
|
|
30
|
-
改善已有的文档。
|
|
31
|
-
|
|
32
|
-
修改接口:
|
|
33
|
-
|
|
34
|
-
* [CreateClusters](https://cloud.tencent.com/document/api/1003/48087)
|
|
35
|
-
|
|
36
|
-
* 新增入参:InstanceInitInfos
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
新增数据结构:
|
|
40
|
-
|
|
41
|
-
* [InstanceInitInfo](https://cloud.tencent.com/document/api/1003/48097#InstanceInitInfo)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
## 数据传输服务(dts) 版本:2021-12-06
|
|
46
|
-
|
|
47
|
-
### 第 4 次发布
|
|
48
|
-
|
|
49
|
-
发布时间:2022-12-23 01:28:44
|
|
50
|
-
|
|
51
|
-
本次发布包含了以下内容:
|
|
52
|
-
|
|
53
|
-
改善已有的文档。
|
|
54
|
-
|
|
55
|
-
修改接口:
|
|
56
|
-
|
|
57
|
-
* [ConfigureSyncJob](https://cloud.tencent.com/document/api/571/82107)
|
|
58
|
-
|
|
59
|
-
* 新增入参:JobMode, AutoRetryTimeRangeMinutes
|
|
60
|
-
|
|
61
|
-
* <font color="#dd0000">**修改入参**:</font>SrcInfo, DstInfo
|
|
62
|
-
|
|
63
|
-
* [ModifyMigrationJob](https://cloud.tencent.com/document/api/571/82077)
|
|
64
|
-
|
|
65
|
-
* 新增入参:AutoRetryTimeRangeMinutes
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
新增数据结构:
|
|
69
|
-
|
|
70
|
-
* [OnlineDDL](https://cloud.tencent.com/document/api/571/82108#OnlineDDL)
|
|
71
|
-
|
|
72
|
-
修改数据结构:
|
|
73
|
-
|
|
74
|
-
* [Database](https://cloud.tencent.com/document/api/571/82108#Database)
|
|
75
|
-
|
|
76
|
-
* 新增成员:TriggerMode, Triggers, EventMode, Events
|
|
77
|
-
|
|
78
|
-
* [Endpoint](https://cloud.tencent.com/document/api/571/82108#Endpoint)
|
|
79
|
-
|
|
80
|
-
* 新增成员:Role, EncryptConn
|
|
81
|
-
|
|
82
|
-
* [JobItem](https://cloud.tencent.com/document/api/571/82108#JobItem)
|
|
83
|
-
|
|
84
|
-
* 新增成员:AutoRetryTimeRangeMinutes
|
|
85
|
-
|
|
86
|
-
* [Objects](https://cloud.tencent.com/document/api/571/82108#Objects)
|
|
87
|
-
|
|
88
|
-
* 新增成员:OnlineDDL
|
|
89
|
-
|
|
90
|
-
* [SyncJobInfo](https://cloud.tencent.com/document/api/571/82108#SyncJobInfo)
|
|
91
|
-
|
|
92
|
-
* 新增成员:AutoRetryTimeRangeMinutes
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
## 数据传输服务(dts) 版本:2018-03-30
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
## 轻量应用服务器(lighthouse) 版本:2020-03-24
|
|
102
|
-
|
|
103
|
-
### 第 41 次发布
|
|
104
|
-
|
|
105
|
-
发布时间:2022-12-23 01:40:27
|
|
106
|
-
|
|
107
|
-
本次发布包含了以下内容:
|
|
108
|
-
|
|
109
|
-
改善已有的文档。
|
|
110
|
-
|
|
111
|
-
修改数据结构:
|
|
112
|
-
|
|
113
|
-
* [PolicyDetail](https://cloud.tencent.com/document/api/1207/47576#PolicyDetail)
|
|
114
|
-
|
|
115
|
-
* 新增成员:ActivityDiscount, DiscountType
|
|
116
|
-
|
|
117
|
-
* <font color="#dd0000">**修改成员**:</font>UserDiscount, CommonDiscount, FinalDiscount
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
## 前端性能监控(rum) 版本:2021-06-22
|
|
123
|
-
|
|
124
|
-
### 第 20 次发布
|
|
125
|
-
|
|
126
|
-
发布时间:2022-12-23 01:49:31
|
|
127
|
-
|
|
128
|
-
本次发布包含了以下内容:
|
|
129
|
-
|
|
130
|
-
改善已有的文档。
|
|
131
|
-
|
|
132
|
-
新增接口:
|
|
133
|
-
|
|
134
|
-
* [DescribeRumLogList](https://cloud.tencent.com/document/api/1464/84474)
|
|
135
|
-
* [DescribeRumStatsLogList](https://cloud.tencent.com/document/api/1464/84473)
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
## 云开发 CloudBase(tcb) 版本:2018-06-08
|
|
3
|
+
## 混沌演练平台(cfg) 版本:2021-08-20
|
|
140
4
|
|
|
141
|
-
### 第
|
|
5
|
+
### 第 5 次发布
|
|
142
6
|
|
|
143
|
-
发布时间:2022-12-
|
|
7
|
+
发布时间:2022-12-26 01:15:15
|
|
144
8
|
|
|
145
9
|
本次发布包含了以下内容:
|
|
146
10
|
|
|
@@ -148,52 +12,31 @@
|
|
|
148
12
|
|
|
149
13
|
修改接口:
|
|
150
14
|
|
|
151
|
-
* [
|
|
15
|
+
* [DescribeTask](https://cloud.tencent.com/document/api/1500/71781)
|
|
152
16
|
|
|
153
|
-
* 新增出参:
|
|
17
|
+
* 新增出参:ReportInfo
|
|
154
18
|
|
|
155
19
|
|
|
156
20
|
新增数据结构:
|
|
157
21
|
|
|
158
|
-
* [
|
|
159
|
-
* [TkeClusterInfo](https://cloud.tencent.com/document/api/876/34822#TkeClusterInfo)
|
|
160
|
-
|
|
161
|
-
修改数据结构:
|
|
162
|
-
|
|
163
|
-
* [CloudRunServiceVolume](https://cloud.tencent.com/document/api/876/34822#CloudRunServiceVolume)
|
|
164
|
-
|
|
165
|
-
* 新增成员:HostPath
|
|
166
|
-
|
|
22
|
+
* [TaskReportInfo](https://cloud.tencent.com/document/api/1500/71784#TaskReportInfo)
|
|
167
23
|
|
|
168
24
|
|
|
169
25
|
|
|
170
26
|
## 边缘安全加速平台(teo) 版本:2022-09-01
|
|
171
27
|
|
|
172
|
-
### 第
|
|
28
|
+
### 第 21 次发布
|
|
173
29
|
|
|
174
|
-
发布时间:2022-12-
|
|
30
|
+
发布时间:2022-12-26 01:58:03
|
|
175
31
|
|
|
176
32
|
本次发布包含了以下内容:
|
|
177
33
|
|
|
178
34
|
改善已有的文档。
|
|
179
35
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
* [ModifyZoneSetting](https://cloud.tencent.com/document/api/1552/80614)
|
|
183
|
-
|
|
184
|
-
* 新增入参:Grpc
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
新增数据结构:
|
|
188
|
-
|
|
189
|
-
* [Grpc](https://cloud.tencent.com/document/api/1552/80721#Grpc)
|
|
190
|
-
|
|
191
|
-
修改数据结构:
|
|
192
|
-
|
|
193
|
-
* [ZoneSetting](https://cloud.tencent.com/document/api/1552/80721#ZoneSetting)
|
|
194
|
-
|
|
195
|
-
* 新增成员:Grpc
|
|
36
|
+
新增接口:
|
|
196
37
|
|
|
38
|
+
* [DescribeDistributionL4AccessData](https://cloud.tencent.com/document/api/1552/84489)
|
|
39
|
+
* [DescribeTimingL4AccessData](https://cloud.tencent.com/document/api/1552/84488)
|
|
197
40
|
|
|
198
41
|
|
|
199
42
|
|
|
@@ -17499,6 +17342,25 @@
|
|
|
17499
17342
|
|
|
17500
17343
|
## 混沌演练平台(cfg) 版本:2021-08-20
|
|
17501
17344
|
|
|
17345
|
+
### 第 5 次发布
|
|
17346
|
+
|
|
17347
|
+
发布时间:2022-12-26 01:15:15
|
|
17348
|
+
|
|
17349
|
+
本次发布包含了以下内容:
|
|
17350
|
+
|
|
17351
|
+
改善已有的文档。
|
|
17352
|
+
|
|
17353
|
+
修改接口:
|
|
17354
|
+
|
|
17355
|
+
* [DescribeTask](https://cloud.tencent.com/document/api/1500/71781)
|
|
17356
|
+
|
|
17357
|
+
* 新增出参:ReportInfo
|
|
17358
|
+
|
|
17359
|
+
|
|
17360
|
+
新增数据结构:
|
|
17361
|
+
|
|
17362
|
+
* [[TaskReportInfo](https://cloud.tencent.com/document/api/1500/71784#TaskReportInfo)](https://cloud.tencent.com/document/api/1500/71784#[TaskReportInfo](https://cloud.tencent.com/document/api/1500/71784#TaskReportInfo))
|
|
17363
|
+
|
|
17502
17364
|
### 第 4 次发布
|
|
17503
17365
|
|
|
17504
17366
|
发布时间:2022-09-26 06:16:02
|
|
@@ -31656,7 +31518,7 @@
|
|
|
31656
31518
|
|
|
31657
31519
|
新增数据结构:
|
|
31658
31520
|
|
|
31659
|
-
* [
|
|
31521
|
+
* [InstanceInitInfo](https://cloud.tencent.com/document/api/1003/48097#InstanceInitInfo)
|
|
31660
31522
|
|
|
31661
31523
|
### 第 36 次发布
|
|
31662
31524
|
|
|
@@ -37223,7 +37085,7 @@
|
|
|
37223
37085
|
|
|
37224
37086
|
新增数据结构:
|
|
37225
37087
|
|
|
37226
|
-
* [
|
|
37088
|
+
* [OnlineDDL](https://cloud.tencent.com/document/api/571/82108#OnlineDDL)
|
|
37227
37089
|
|
|
37228
37090
|
修改数据结构:
|
|
37229
37091
|
|
|
@@ -68442,8 +68304,8 @@
|
|
|
68442
68304
|
|
|
68443
68305
|
新增接口:
|
|
68444
68306
|
|
|
68445
|
-
* [
|
|
68446
|
-
* [
|
|
68307
|
+
* [DescribeRumLogList](https://cloud.tencent.com/document/api/1464/84474)
|
|
68308
|
+
* [DescribeRumStatsLogList](https://cloud.tencent.com/document/api/1464/84473)
|
|
68447
68309
|
|
|
68448
68310
|
### 第 19 次发布
|
|
68449
68311
|
|
|
@@ -74980,8 +74842,8 @@
|
|
|
74980
74842
|
|
|
74981
74843
|
新增数据结构:
|
|
74982
74844
|
|
|
74983
|
-
* [
|
|
74984
|
-
* [
|
|
74845
|
+
* [CloudBaseRunServiceVolumeHostPath](https://cloud.tencent.com/document/api/876/34822#CloudBaseRunServiceVolumeHostPath)
|
|
74846
|
+
* [TkeClusterInfo](https://cloud.tencent.com/document/api/876/34822#TkeClusterInfo)
|
|
74985
74847
|
|
|
74986
74848
|
修改数据结构:
|
|
74987
74849
|
|
|
@@ -82865,6 +82727,19 @@
|
|
|
82865
82727
|
|
|
82866
82728
|
## 边缘安全加速平台(teo) 版本:2022-09-01
|
|
82867
82729
|
|
|
82730
|
+
### 第 21 次发布
|
|
82731
|
+
|
|
82732
|
+
发布时间:2022-12-26 01:58:03
|
|
82733
|
+
|
|
82734
|
+
本次发布包含了以下内容:
|
|
82735
|
+
|
|
82736
|
+
改善已有的文档。
|
|
82737
|
+
|
|
82738
|
+
新增接口:
|
|
82739
|
+
|
|
82740
|
+
* [[DescribeDistributionL4AccessData](https://cloud.tencent.com/document/api/1552/84489)](https://cloud.tencent.com/document/api/#/#)
|
|
82741
|
+
* [[DescribeTimingL4AccessData](https://cloud.tencent.com/document/api/1552/84488)](https://cloud.tencent.com/document/api/#/#)
|
|
82742
|
+
|
|
82868
82743
|
### 第 20 次发布
|
|
82869
82744
|
|
|
82870
82745
|
发布时间:2022-12-23 02:00:21
|
|
@@ -82882,7 +82757,7 @@
|
|
|
82882
82757
|
|
|
82883
82758
|
新增数据结构:
|
|
82884
82759
|
|
|
82885
|
-
* [
|
|
82760
|
+
* [Grpc](https://cloud.tencent.com/document/api/1552/80721#Grpc)
|
|
82886
82761
|
|
|
82887
82762
|
修改数据结构:
|
|
82888
82763
|
|
package/examples/cvm_role.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
// const tencentcloud = require("tencentcloud-sdk-nodejs")
|
|
3
|
+
const CvmRoleCredential = require("../../tencentcloud-sdk-nodejs/tencentcloud/common/cvm_role_credential").default
|
|
4
|
+
// const CvmRoleCredential = require("tencentcloud-sdk-nodejs/tencentcloud/common/cvm_role_credential").default
|
|
4
5
|
|
|
5
6
|
async function main() {
|
|
6
7
|
// 导入对应产品模块的client models。
|
|
7
8
|
const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
8
9
|
// 实例化要请求产品的client对象
|
|
9
10
|
const client = new CvmClient({
|
|
10
|
-
credential: new
|
|
11
|
+
credential: new CvmRoleCredential(),
|
|
11
12
|
region: "ap-shanghai",
|
|
12
13
|
})
|
|
13
14
|
// 通过client对象调用想要访问的接口,需要传入请求对象以及响应回调函数
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as tencentcloud from "../../tencentcloud-sdk-nodejs"
|
|
2
|
+
// import * as tencentcloud from "tencentcloud-sdk-nodejs"
|
|
3
|
+
import CvmRoleCredential from "../../tencentcloud-sdk-nodejs/tencentcloud/common/cvm_role_credential"
|
|
4
|
+
// import CvmRoleCredential from "tencentcloud-sdk-nodejs/tencentcloud/common/cvm_role_credential"
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
async function main() {
|
|
8
|
+
// 导入对应产品模块的client models。
|
|
9
|
+
const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
10
|
+
// 实例化要请求产品的client对象
|
|
11
|
+
const client = new CvmClient({
|
|
12
|
+
credential: new CvmRoleCredential(),
|
|
13
|
+
region: "ap-shanghai",
|
|
14
|
+
})
|
|
15
|
+
// 通过client对象调用想要访问的接口,需要传入请求对象以及响应回调函数
|
|
16
|
+
client.DescribeZones(null, function (err, response) {
|
|
17
|
+
// 请求异常返回,打印异常信息
|
|
18
|
+
if (err) {
|
|
19
|
+
console.log(err)
|
|
20
|
+
return
|
|
21
|
+
}
|
|
22
|
+
// 请求正常返回,打印response对象
|
|
23
|
+
console.log(response)
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
main().catch(console.error)
|
package/package.json
CHANGED
package/products.md
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
| api | [云 API](https://cloud.tencent.com/document/product/1278) | 2022-06-07 06:00:45 |
|
|
16
16
|
| apigateway | [API 网关](https://cloud.tencent.com/document/product/628) | 2022-11-09 06:09:16 |
|
|
17
17
|
| apm | [应用性能观测](https://cloud.tencent.com/document/product/1463) | 2022-12-06 06:16:29 |
|
|
18
|
-
| as | [弹性伸缩](https://cloud.tencent.com/document/product/377) | 2022-
|
|
19
|
-
| asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2022-
|
|
18
|
+
| as | [弹性伸缩](https://cloud.tencent.com/document/product/377) | 2022-12-26 01:08:11 |
|
|
19
|
+
| asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2022-12-26 01:08:40 |
|
|
20
20
|
| asw | [应用与服务编排工作流](https://cloud.tencent.com/document/product/1272) | 2022-04-04 06:08:40 |
|
|
21
21
|
| ba | [网站备案](https://cloud.tencent.com/document/product/243) | 2022-04-04 06:08:45 |
|
|
22
22
|
| batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2022-12-09 01:11:02 |
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
| cdn | [内容分发网络 CDN](https://cloud.tencent.com/document/product/228) | 2022-12-22 01:22:01 |
|
|
46
46
|
| cds | [T-Sec-数据安全审计(DSA)](https://cloud.tencent.com/document/product/856) | 2022-10-31 06:15:53 |
|
|
47
47
|
| cdwch | [云数据仓库 ClickHouse](https://cloud.tencent.com/document/product/1299) | 2022-12-20 14:06:27 |
|
|
48
|
-
| cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2022-12-
|
|
48
|
+
| cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2022-12-26 01:15:15 |
|
|
49
49
|
| cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2022-12-19 01:23:20 |
|
|
50
50
|
| cfw | [云防火墙](https://cloud.tencent.com/document/product/1132) | 2022-12-16 01:12:46 |
|
|
51
51
|
| chdfs | [云 HDFS](https://cloud.tencent.com/document/product/1105) | 2022-07-04 06:04:36 |
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
| drm | [数字版权管理](https://cloud.tencent.com/document/product/1000) | 2022-04-04 06:38:48 |
|
|
82
82
|
| ds | [文档服务](https://cloud.tencent.com/document/product/869) | 2022-10-31 06:27:09 |
|
|
83
83
|
| dtf | [分布式事务](https://cloud.tencent.com/document/product/1224) | 2022-04-04 06:38:57 |
|
|
84
|
-
| dts | [数据传输服务](https://cloud.tencent.com/document/product/571) | 2022-12-
|
|
84
|
+
| dts | [数据传输服务](https://cloud.tencent.com/document/product/571) | 2022-12-26 01:27:57 |
|
|
85
85
|
| eb | [事件总线](https://cloud.tencent.com/document/product/1359) | 2022-08-23 06:27:55 |
|
|
86
86
|
| ecc | [英文作文批改](https://cloud.tencent.com/document/product/1076) | 2022-04-04 06:39:27 |
|
|
87
87
|
| ecdn | [全站加速网络](https://cloud.tencent.com/document/product/570) | 2022-04-08 06:06:57 |
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
| tdmq | [消息队列 TDMQ](https://cloud.tencent.com/document/product/1179) | 2022-11-25 07:03:54 |
|
|
188
188
|
| tds | [设备安全](https://cloud.tencent.com/document/product/1628) | 2022-12-06 07:10:10 |
|
|
189
189
|
| tem | [弹性微服务 TEM](https://cloud.tencent.com/document/product/1371) | 2022-12-15 01:49:45 |
|
|
190
|
-
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2022-12-
|
|
190
|
+
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2022-12-26 01:58:03 |
|
|
191
191
|
| thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2022-12-21 02:09:45 |
|
|
192
192
|
| tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
|
|
193
193
|
| tic | [资源编排 TIC](https://cloud.tencent.com/document/product/1213) | 2022-10-31 06:55:14 |
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
| tms | [文本内容安全](https://cloud.tencent.com/document/product/1124) | 2022-11-18 06:55:59 |
|
|
203
203
|
| tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2022-12-09 02:09:44 |
|
|
204
204
|
| trdp | [流量风险决策平台](https://cloud.tencent.com/document/product/1604) | 2022-12-07 07:14:03 |
|
|
205
|
-
| trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2022-12-
|
|
205
|
+
| trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2022-12-26 02:03:33 |
|
|
206
206
|
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2022-12-19 02:11:18 |
|
|
207
207
|
| tse | [微服务引擎 TSE](https://cloud.tencent.com/document/product/1364) | 2022-10-31 06:58:14 |
|
|
208
208
|
| tsf | [微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2022-12-16 01:48:54 |
|
|
@@ -65,10 +65,17 @@ export class AbstractClient {
|
|
|
65
65
|
/**
|
|
66
66
|
* 认证信息实例
|
|
67
67
|
*/
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
if (credential && "getCredential" in credential) {
|
|
69
|
+
this.credential = credential
|
|
70
|
+
} else {
|
|
71
|
+
this.credential = Object.assign(
|
|
72
|
+
{
|
|
73
|
+
secretId: null,
|
|
74
|
+
secretKey: null,
|
|
75
|
+
token: null,
|
|
76
|
+
},
|
|
77
|
+
credential
|
|
78
|
+
)
|
|
72
79
|
}
|
|
73
80
|
|
|
74
81
|
/**
|
|
@@ -14,8 +14,8 @@ interface CvmRoleCredentialResult {
|
|
|
14
14
|
Code: string
|
|
15
15
|
}
|
|
16
16
|
export default class CvmRoleCredential implements DynamicCredential {
|
|
17
|
-
protected roleNameTask: Promise<string>
|
|
18
|
-
protected credentialTask: Promise<CvmRoleCredentialResult>
|
|
17
|
+
protected roleNameTask: Promise<string> | null
|
|
18
|
+
protected credentialTask: Promise<CvmRoleCredentialResult> | null
|
|
19
19
|
protected async getRoleName() {
|
|
20
20
|
const response = await fetch(ROLE_URL, {})
|
|
21
21
|
if (!response.ok) {
|
|
@@ -123,10 +123,10 @@ export class HttpConnection {
|
|
|
123
123
|
signal,
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
if (token === null) {
|
|
126
|
+
if (token === null || token === undefined) {
|
|
127
127
|
delete config.headers["X-TC-Token"]
|
|
128
128
|
}
|
|
129
|
-
if (region === null) {
|
|
129
|
+
if (region === null || region === undefined) {
|
|
130
130
|
delete config.headers["X-TC-Region"]
|
|
131
131
|
}
|
|
132
132
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const sdkVersion = "4.0.
|
|
1
|
+
export const sdkVersion = "4.0.510"
|
|
@@ -2624,7 +2624,7 @@ export interface IPv6InternetAccessible {
|
|
|
2624
2624
|
InternetChargeType?: string
|
|
2625
2625
|
|
|
2626
2626
|
/**
|
|
2627
|
-
* 公网出带宽上限,单位:Mbps。<br>默认值:
|
|
2627
|
+
* 公网出带宽上限,单位:Mbps。<br>默认值:0,此时不为IPv6分配公网带宽。不同机型、可用区、计费模式的带宽上限范围不一致,具体限制详见[公网带宽上限](https://cloud.tencent.com/document/product/213/12523)。
|
|
2628
2628
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2629
2629
|
*/
|
|
2630
2630
|
InternetMaxBandwidthOut?: number
|
|
@@ -431,6 +431,12 @@ export interface DescribeTaskResponse {
|
|
|
431
431
|
*/
|
|
432
432
|
Task: Task
|
|
433
433
|
|
|
434
|
+
/**
|
|
435
|
+
* 任务对应的演练报告信息,null表示未导出报告
|
|
436
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
437
|
+
*/
|
|
438
|
+
ReportInfo: TaskReportInfo
|
|
439
|
+
|
|
434
440
|
/**
|
|
435
441
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
436
442
|
*/
|
|
@@ -917,6 +923,43 @@ export interface Task {
|
|
|
917
923
|
Tags?: Array<TagWithDescribe>
|
|
918
924
|
}
|
|
919
925
|
|
|
926
|
+
/**
|
|
927
|
+
* 演练报告状态信息
|
|
928
|
+
*/
|
|
929
|
+
export interface TaskReportInfo {
|
|
930
|
+
/**
|
|
931
|
+
* 0--未开始,1--正在导出,2--导出成功,3--导出失败
|
|
932
|
+
*/
|
|
933
|
+
Stage: number
|
|
934
|
+
|
|
935
|
+
/**
|
|
936
|
+
* 创建时间
|
|
937
|
+
*/
|
|
938
|
+
CreateTime: string
|
|
939
|
+
|
|
940
|
+
/**
|
|
941
|
+
* 有效期截止时间
|
|
942
|
+
*/
|
|
943
|
+
ExpirationTime: string
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* 是否有效
|
|
947
|
+
*/
|
|
948
|
+
Expired: boolean
|
|
949
|
+
|
|
950
|
+
/**
|
|
951
|
+
* 演练报告cos文件地址
|
|
952
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
953
|
+
*/
|
|
954
|
+
CosUrl: string
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* 演练报告导出日志
|
|
958
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
959
|
+
*/
|
|
960
|
+
Log: string
|
|
961
|
+
}
|
|
962
|
+
|
|
920
963
|
/**
|
|
921
964
|
* CreateTaskFromTemplate请求参数结构体
|
|
922
965
|
*/
|
|
@@ -299,7 +299,7 @@ export interface StopMigrateJobResponse {
|
|
|
299
299
|
*/
|
|
300
300
|
export interface TableItem {
|
|
301
301
|
/**
|
|
302
|
-
*
|
|
302
|
+
* 迁移的表名,大小写敏感
|
|
303
303
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
304
304
|
*/
|
|
305
305
|
TableName?: string
|
|
@@ -2937,7 +2937,7 @@ export interface RecoverMigrateJobResponse {
|
|
|
2937
2937
|
}
|
|
2938
2938
|
|
|
2939
2939
|
/**
|
|
2940
|
-
*
|
|
2940
|
+
* 迁移对象信息,在配置库表视图等对象信息时大小写敏感
|
|
2941
2941
|
*/
|
|
2942
2942
|
export interface DBItem {
|
|
2943
2943
|
/**
|