tencentcloud-sdk-nodejs 4.0.647 → 4.0.648

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +185 -0
  2. package/SERVICE_CHANGELOG.md +469 -332
  3. package/package.json +1 -1
  4. package/products.md +13 -13
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/cbs/v20170312/cbs_client.ts +20 -51
  7. package/src/services/cbs/v20170312/cbs_models.ts +16 -165
  8. package/src/services/cdb/v20170320/cdb_client.ts +4 -84
  9. package/src/services/cdb/v20170320/cdb_models.ts +41 -568
  10. package/src/services/cloudstudio/v20230508/cloudstudio_models.ts +4 -0
  11. package/src/services/domain/v20180808/domain_client.ts +13 -1
  12. package/src/services/domain/v20180808/domain_models.ts +40 -20
  13. package/src/services/ess/v20201111/ess_client.ts +6 -5
  14. package/src/services/ess/v20201111/ess_models.ts +47 -2
  15. package/src/services/ocr/v20181119/ocr_models.ts +8 -8
  16. package/src/services/tdid/v20210519/tdid_client.ts +9 -39
  17. package/src/services/tdid/v20210519/tdid_models.ts +24 -102
  18. package/src/services/teo/v20220901/teo_models.ts +1 -1
  19. package/src/services/tiw/v20190919/tiw_client.ts +17 -5
  20. package/src/services/tiw/v20190919/tiw_models.ts +105 -65
  21. package/src/services/trtc/v20190722/trtc_client.ts +1 -1
  22. package/tencentcloud/common/sdk_version.d.ts +1 -1
  23. package/tencentcloud/common/sdk_version.js +1 -1
  24. package/tencentcloud/services/cbs/v20170312/cbs_client.d.ts +10 -23
  25. package/tencentcloud/services/cbs/v20170312/cbs_client.js +11 -28
  26. package/tencentcloud/services/cbs/v20170312/cbs_models.d.ts +16 -159
  27. package/tencentcloud/services/cdb/v20170320/cdb_client.d.ts +1 -31
  28. package/tencentcloud/services/cdb/v20170320/cdb_client.js +0 -40
  29. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +41 -548
  30. package/tencentcloud/services/cloudstudio/v20230508/cloudstudio_models.d.ts +4 -0
  31. package/tencentcloud/services/domain/v20180808/domain_client.d.ts +5 -1
  32. package/tencentcloud/services/domain/v20180808/domain_client.js +6 -0
  33. package/tencentcloud/services/domain/v20180808/domain_models.d.ts +38 -20
  34. package/tencentcloud/services/ess/v20201111/ess_client.d.ts +6 -5
  35. package/tencentcloud/services/ess/v20201111/ess_client.js +6 -5
  36. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +47 -2
  37. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +8 -8
  38. package/tencentcloud/services/tdid/v20210519/tdid_client.d.ts +4 -17
  39. package/tencentcloud/services/tdid/v20210519/tdid_client.js +4 -21
  40. package/tencentcloud/services/tdid/v20210519/tdid_models.d.ts +23 -96
  41. package/tencentcloud/services/teo/v20220901/teo_models.d.ts +1 -1
  42. package/tencentcloud/services/tiw/v20190919/tiw_client.d.ts +5 -1
  43. package/tencentcloud/services/tiw/v20190919/tiw_client.js +6 -0
  44. package/tencentcloud/services/tiw/v20190919/tiw_models.d.ts +103 -65
  45. package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +1 -1
  46. package/tencentcloud/services/trtc/v20190722/trtc_client.js +1 -1
  47. package/test/cbs.v20170312.test.js +4 -24
  48. package/test/cdb.v20170320.test.js +0 -50
  49. package/test/domain.v20180808.test.js +10 -0
  50. package/test/tdid.v20210519.test.js +2 -22
  51. package/test/tiw.v20190919.test.js +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs",
3
- "version": "4.0.647",
3
+ "version": "4.0.648",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "tencentcloud/index.js",
6
6
  "scripts": {
package/products.md CHANGED
@@ -10,7 +10,7 @@
10
10
  | ame | [正版曲库直通车](https://cloud.tencent.com/document/product/1155) | 2023-05-26 01:01:42 |
11
11
  | ams | [音频内容安全](https://cloud.tencent.com/document/product/1219) | 2023-05-18 01:01:48 |
12
12
  | anicloud | [动效素材服务](https://cloud.tencent.com/document/product/1641) | 2023-05-18 01:01:53 |
13
- | antiddos | [T-Sec-DDoS防护(Anti-DDoS)](https://cloud.tencent.com/document/product/1021) | 2023-07-20 01:06:15 |
13
+ | antiddos | [T-Sec-DDoS防护(Anti-DDoS)](https://cloud.tencent.com/document/product/297) | 2023-07-24 01:06:33 |
14
14
  | apcas | [汽车精准获客服务](https://cloud.tencent.com/document/product/1244) | 2022-04-04 06:05:36 |
15
15
  | ape | [正版图库直通车](https://cloud.tencent.com/document/product/1181) | 2022-04-04 06:05:40 |
16
16
  | api | [云 API](https://cloud.tencent.com/document/product/1278) | 2023-01-05 01:02:52 |
@@ -39,9 +39,9 @@
39
39
  | car | [应用云渲染](https://cloud.tencent.com/document/product/1547) | 2023-05-31 01:09:58 |
40
40
  | casb | [云访问安全代理](https://cloud.tencent.com/document/product/1303) | 2022-12-26 10:53:16 |
41
41
  | cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2023-05-18 01:07:39 |
42
- | cbs | [云硬盘](https://cloud.tencent.com/document/product/362) | 2023-07-03 01:06:30 |
42
+ | cbs | [云硬盘](https://cloud.tencent.com/document/product/362) | 2023-07-24 01:12:51 |
43
43
  | ccc | [云呼叫中心](https://cloud.tencent.com/document/product/679) | 2023-06-30 01:11:07 |
44
- | cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2023-07-20 01:13:27 |
44
+ | cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2023-07-24 01:13:25 |
45
45
  | cdc | [本地专用集群](https://cloud.tencent.com/document/product/1346) | 2023-06-08 01:10:03 |
46
46
  | cdn | [内容分发网络 CDN](https://cloud.tencent.com/document/product/228) | 2023-07-21 01:11:26 |
47
47
  | cds | [T-Sec-数据安全审计(DSA)](https://cloud.tencent.com/document/product/856) | 2023-05-18 01:10:41 |
@@ -58,7 +58,7 @@
58
58
  | clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2023-07-04 01:15:49 |
59
59
  | cloudaudit | [云审计](https://cloud.tencent.com/document/product/629) | 2023-05-18 01:13:28 |
60
60
  | cloudhsm | [云加密机](https://cloud.tencent.com/document/product/639) | 2023-05-18 01:13:36 |
61
- | cloudstudio | [Cloud Studio(云端 IDE)](https://cloud.tencent.com/document/product/1039) | 2023-07-20 01:17:13 |
61
+ | cloudstudio | [Cloud Studio(云端 IDE)](https://cloud.tencent.com/document/product/1039) | 2023-07-24 01:17:40 |
62
62
  | cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2023-07-20 01:17:22 |
63
63
  | cme | [多媒体创作引擎](https://cloud.tencent.com/document/product/1156) | 2023-07-21 01:14:51 |
64
64
  | cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2023-05-18 01:14:51 |
@@ -80,7 +80,7 @@
80
80
  | dcdb | [TDSQL MySQL 版](https://cloud.tencent.com/document/product/557) | 2023-06-28 01:18:44 |
81
81
  | dlc | [数据湖计算 DLC](https://cloud.tencent.com/document/product/1342) | 2023-07-21 01:20:29 |
82
82
  | dnspod | [DNSPod](https://cloud.tencent.com/document/product/1427) | 2023-07-10 01:22:33 |
83
- | domain | [域名注册](https://cloud.tencent.com/document/product/242) | 2023-07-18 01:27:10 |
83
+ | domain | [域名注册](https://cloud.tencent.com/document/product/242) | 2023-07-24 01:25:15 |
84
84
  | drm | [数字版权管理](https://cloud.tencent.com/document/product/1000) | 2023-05-18 01:23:31 |
85
85
  | ds | [文档服务](https://cloud.tencent.com/document/product/869) | 2023-05-18 01:23:36 |
86
86
  | dtf | [分布式事务](https://cloud.tencent.com/document/product/1224) | 2022-04-04 06:38:57 |
@@ -93,7 +93,7 @@
93
93
  | eis | [数据连接器](https://cloud.tencent.com/document/product/1270) | 2023-05-18 01:25:58 |
94
94
  | emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2023-07-17 01:18:45 |
95
95
  | es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2023-07-12 01:24:00 |
96
- | ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2023-07-21 01:23:30 |
96
+ | ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2023-07-24 01:28:01 |
97
97
  | essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2023-07-21 01:23:53 |
98
98
  | facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2023-07-11 01:24:18 |
99
99
  | faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2023-07-21 01:24:16 |
@@ -147,7 +147,7 @@
147
147
  | nlp | [NLP 服务](https://cloud.tencent.com/document/product/271) | 2023-07-18 01:40:17 |
148
148
  | npp | [号码保护](https://cloud.tencent.com/document/product) | 2020-04-22 08:00:22 |
149
149
  | oceanus | [流计算 Oceanus](https://cloud.tencent.com/document/product/849) | 2023-07-17 01:29:44 |
150
- | ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2023-07-19 01:34:27 |
150
+ | ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2023-07-24 01:39:33 |
151
151
  | omics | [腾讯健康组学平台](https://cloud.tencent.com/document/product/1643) | 2023-07-20 01:37:20 |
152
152
  | organization | [集团账号管理](https://cloud.tencent.com/document/product/850) | 2023-06-30 01:38:16 |
153
153
  | partners | [渠道合作伙伴](https://cloud.tencent.com/document/product/563) | 2023-07-20 18:40:49 |
@@ -180,7 +180,7 @@
180
180
  | tan | [碳引擎](https://cloud.tencent.com/document/product/1498) | 2023-05-18 01:50:16 |
181
181
  | tat | [自动化助手](https://cloud.tencent.com/document/product/1340) | 2023-06-15 01:34:24 |
182
182
  | tav | [文件检测](https://cloud.tencent.com/document/product) | 2019-11-28 22:10:04 |
183
- | tbaas | [腾讯云区块链服务平台 TBaaS](https://cloud.tencent.com/document/product/663) | 2023-07-20 01:41:44 |
183
+ | tbaas | [腾讯云区块链服务平台 TBaaS](https://cloud.tencent.com/document/product/663) | 2023-07-24 01:45:22 |
184
184
  | tbm | [](https://cloud.tencent.com/document/product) | 2019-03-29 14:49:11 |
185
185
  | tbp | [腾讯智能对话平台](https://cloud.tencent.com/document/product/1060) | 2023-06-06 01:55:04 |
186
186
  | tcaplusdb | [游戏数据库 TcaplusDB](https://cloud.tencent.com/document/product/596) | 2023-06-20 01:48:17 |
@@ -193,11 +193,11 @@
193
193
  | tcr | [容器镜像服务](https://cloud.tencent.com/document/product/1141) | 2023-07-07 01:50:00 |
194
194
  | tcss | [容器安全服务](https://cloud.tencent.com/document/product/1285) | 2023-07-06 01:44:39 |
195
195
  | tdcpg | [TDSQL-C PostgreSQL 版](https://cloud.tencent.com/document/product/1556) | 2023-06-21 01:36:25 |
196
- | tdid | [分布式身份](https://cloud.tencent.com/document/product/1439) | 2023-07-21 01:42:20 |
196
+ | tdid | [分布式身份](https://cloud.tencent.com/document/product/1439) | 2023-07-24 01:49:20 |
197
197
  | tdmq | [消息队列 TDMQ](https://cloud.tencent.com/document/product/1179) | 2023-07-17 01:38:17 |
198
198
  | tds | [设备安全](https://cloud.tencent.com/document/product/1628) | 2023-05-18 01:55:50 |
199
199
  | tem | [弹性微服务](https://cloud.tencent.com/document/product/1371) | 2023-05-22 02:01:01 |
200
- | teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2023-07-17 01:39:10 |
200
+ | teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2023-07-24 01:50:27 |
201
201
  | thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2023-07-07 01:53:45 |
202
202
  | tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
203
203
  | tic | [资源编排 TIC](https://cloud.tencent.com/document/product/1213) | 2023-05-18 01:58:19 |
@@ -206,7 +206,7 @@
206
206
  | tiems | [腾讯云 TI 平台 TI-EMS ](https://cloud.tencent.com/document/product/1120) | 2022-07-19 06:19:39 |
207
207
  | tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2023-07-10 01:48:50 |
208
208
  | tione | [TI-ONE 训练平台](https://cloud.tencent.com/document/product/851) | 2023-07-20 01:46:59 |
209
- | tiw | [互动白板](https://cloud.tencent.com/document/product/1137) | 2023-07-21 01:44:39 |
209
+ | tiw | [互动白板](https://cloud.tencent.com/document/product/1137) | 2023-07-24 01:52:09 |
210
210
  | tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2023-07-21 01:45:01 |
211
211
  | tkgdq | [腾讯知识图谱数据查询](https://cloud.tencent.com/document/product) | 2020-03-10 00:51:44 |
212
212
  | tms | [文本内容安全](https://cloud.tencent.com/document/product/1124) | 2023-05-18 02:01:07 |
@@ -215,7 +215,7 @@
215
215
  | trdp | [流量风险决策平台](https://cloud.tencent.com/document/product/1604) | 2023-05-18 02:01:19 |
216
216
  | trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2023-07-10 01:51:20 |
217
217
  | trro | [远程实时操控](https://cloud.tencent.com/document/product/1584) | 2023-07-18 01:53:24 |
218
- | trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2023-07-21 01:46:31 |
218
+ | trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2023-07-24 01:54:12 |
219
219
  | tse | [微服务引擎 TSE](https://cloud.tencent.com/document/product/1364) | 2023-07-19 01:46:53 |
220
220
  | tsf | [微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2023-06-19 01:42:54 |
221
221
  | tsw | [微服务观测平台 TSW](https://cloud.tencent.com/document/product/1311) | 2023-05-18 02:04:00 |
@@ -223,7 +223,7 @@
223
223
  | ump | [客流数字化平台](https://cloud.tencent.com/document/product/1320) | 2023-05-18 02:04:06 |
224
224
  | vm | [视频内容安全](https://cloud.tencent.com/document/product/1265) | 2023-05-18 02:04:19 |
225
225
  | vms | [语音消息](https://cloud.tencent.com/document/product/1128) | 2023-05-18 02:04:23 |
226
- | vod | [云点播](https://cloud.tencent.com/document/product/266) | 2023-07-20 01:50:53 |
226
+ | vod | [云点播](https://cloud.tencent.com/document/product/266) | 2023-07-24 01:56:16 |
227
227
  | vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2023-07-21 01:49:21 |
228
228
  | vrs | [声音复刻](https://cloud.tencent.com/document/product/1283) | 2023-07-18 01:58:58 |
229
229
  | waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2023-07-21 01:50:55 |
@@ -1 +1 @@
1
- export const sdkVersion = "4.0.647"
1
+ export const sdkVersion = "4.0.648"
@@ -18,14 +18,12 @@
18
18
  import { AbstractClient } from "../../../common/abstract_client"
19
19
  import { ClientConfig } from "../../../common/interface"
20
20
  import {
21
- SnapshotOperationLog,
22
21
  ModifyDiskExtraPerformanceRequest,
23
22
  ModifyDiskAttributesResponse,
24
23
  DescribeDiskBackupsRequest,
25
24
  AutoSnapshotPolicy,
26
25
  DetailPrice,
27
- DescribeSnapshotOperationLogsRequest,
28
- ModifySnapshotsSharePermissionRequest,
26
+ CreateDiskBackupRequest,
29
27
  CopySnapshotCrossRegionsResponse,
30
28
  ModifyAutoSnapshotPolicyAttributeResponse,
31
29
  ModifyDiskBackupQuotaRequest,
@@ -36,7 +34,6 @@ import {
36
34
  ModifySnapshotsSharePermissionResponse,
37
35
  DeleteDiskBackupsRequest,
38
36
  InitializeDisksResponse,
39
- DeleteDiskBackupsResponse,
40
37
  DescribeDiskStoragePoolRequest,
41
38
  DescribeDiskBackupsResponse,
42
39
  SnapshotCopyResult,
@@ -65,7 +62,7 @@ import {
65
62
  InquiryPriceRenewDisksRequest,
66
63
  DescribeSnapshotSharePermissionRequest,
67
64
  InquirePriceModifyDiskBackupQuotaRequest,
68
- DescribeSnapshotOperationLogsResponse,
65
+ DeleteDiskBackupsResponse,
69
66
  DeleteSnapshotsRequest,
70
67
  ModifyDisksRenewFlagResponse,
71
68
  DeleteAutoSnapshotPoliciesResponse,
@@ -80,7 +77,6 @@ import {
80
77
  TerminateDisksRequest,
81
78
  CdcSize,
82
79
  DescribeInstancesDiskNumResponse,
83
- DescribeDiskOperationLogsResponse,
84
80
  ResizeDiskRequest,
85
81
  ApplyDiskBackupRequest,
86
82
  ModifyDisksChargeTypeRequest,
@@ -99,10 +95,8 @@ import {
99
95
  Snapshot,
100
96
  CreateDisksResponse,
101
97
  AttachDisksResponse,
102
- CreateDiskBackupRequest,
103
- DiskOperationLog,
98
+ ModifySnapshotsSharePermissionRequest,
104
99
  BindAutoSnapshotPolicyResponse,
105
- DescribeDiskOperationLogsRequest,
106
100
  DiskBackup,
107
101
  DescribeDisksRequest,
108
102
  DetachDisksResponse,
@@ -316,18 +310,6 @@ export class Client extends AbstractClient {
316
310
  return this.request("DescribeDiskBackups", req, cb)
317
311
  }
318
312
 
319
- /**
320
- * 接口已废弃,切换至云审计接口。见https://tapd.woa.com/pro/prong/stories/view/1010114221880719007
321
-
322
- 查询云盘操作日志功能已迁移至LookUpEvents接口(https://cloud.tencent.com/document/product/629/12359),本接口(DescribeDiskOperationLogs)即将下线,后续不再提供调用,请知悉。
323
- */
324
- async DescribeDiskOperationLogs(
325
- req: DescribeDiskOperationLogsRequest,
326
- cb?: (error: string, rep: DescribeDiskOperationLogsResponse) => void
327
- ): Promise<DescribeDiskOperationLogsResponse> {
328
- return this.request("DescribeDiskOperationLogs", req, cb)
329
- }
330
-
331
313
  /**
332
314
  * 本接口(DeleteAutoSnapshotPolicies)用于删除定期快照策略。
333
315
 
@@ -575,19 +557,6 @@ export class Client extends AbstractClient {
575
557
  return this.request("ApplySnapshot", req, cb)
576
558
  }
577
559
 
578
- /**
579
- * 接口已废弃,切换至云审计接口。见https://tapd.woa.com/pro/prong/stories/view/1010114221880719007
580
-
581
- 查询快照操作日志功能已迁移至LookUpEvents接口(https://cloud.tencent.com/document/product/629/12359),本接口(DescribeSnapshotOperationLogs)即将下线,后续不再提供调用,请知悉。
582
-
583
- */
584
- async DescribeSnapshotOperationLogs(
585
- req: DescribeSnapshotOperationLogsRequest,
586
- cb?: (error: string, rep: DescribeSnapshotOperationLogsResponse) => void
587
- ): Promise<DescribeSnapshotOperationLogsResponse> {
588
- return this.request("DescribeSnapshotOperationLogs", req, cb)
589
- }
590
-
591
560
  /**
592
561
  * 本接口(ModifySnapshotsSharePermission)用于修改快照分享信息。
593
562
 
@@ -605,16 +574,17 @@ export class Client extends AbstractClient {
605
574
  }
606
575
 
607
576
  /**
608
- * 本接口(DetachDisks)用于卸载云硬盘。
577
+ * 本接口(CreateSnapshot)用于对指定云盘创建快照。
609
578
 
610
- * 支持批量操作,卸载挂载在同一主机上的多块云盘。如果多块云盘中存在不允许卸载的云盘,则操作不执行,返回特定的错误码。
611
- * 本接口为异步接口,当请求成功返回时,云盘并未立即从主机卸载,可通过接口[DescribeDisks](/document/product/362/16315)来查询对应云盘的状态,如果云盘的状态由“ATTACHED”变为“UNATTACHED”,则为卸载成功。
579
+ * 只有具有快照能力的云硬盘才能创建快照。云硬盘是否具有快照能力可由[DescribeDisks](/document/product/362/16315)接口查询,见SnapshotAbility字段。
580
+ * 可创建快照数量限制见[产品使用限制](https://cloud.tencent.com/doc/product/362/5145)
581
+ * 当前支持将备份点转化为普通快照,转化之后可能会收取快照使用费用,备份点不保留,其占用的备份点配额也将被释放。
612
582
  */
613
- async DetachDisks(
614
- req: DetachDisksRequest,
615
- cb?: (error: string, rep: DetachDisksResponse) => void
616
- ): Promise<DetachDisksResponse> {
617
- return this.request("DetachDisks", req, cb)
583
+ async CreateSnapshot(
584
+ req: CreateSnapshotRequest,
585
+ cb?: (error: string, rep: CreateSnapshotResponse) => void
586
+ ): Promise<CreateSnapshotResponse> {
587
+ return this.request("CreateSnapshot", req, cb)
618
588
  }
619
589
 
620
590
  /**
@@ -641,17 +611,16 @@ export class Client extends AbstractClient {
641
611
  }
642
612
 
643
613
  /**
644
- * 本接口(CreateSnapshot)用于对指定云盘创建快照。
614
+ * 本接口(DetachDisks)用于卸载云硬盘。
645
615
 
646
- * 只有具有快照能力的云硬盘才能创建快照。云硬盘是否具有快照能力可由[DescribeDisks](/document/product/362/16315)接口查询,见SnapshotAbility字段。
647
- * 可创建快照数量限制见[产品使用限制](https://cloud.tencent.com/doc/product/362/5145)
648
- * 当前支持将备份点转化为普通快照,转化之后可能会收取快照使用费用,备份点不保留,其占用的备份点配额也将被释放。
616
+ * 支持批量操作,卸载挂载在同一主机上的多块云盘。如果多块云盘中存在不允许卸载的云盘,则操作不执行,返回特定的错误码。
617
+ * 本接口为异步接口,当请求成功返回时,云盘并未立即从主机卸载,可通过接口[DescribeDisks](/document/product/362/16315)来查询对应云盘的状态,如果云盘的状态由“ATTACHED”变为“UNATTACHED”,则为卸载成功。
649
618
  */
650
- async CreateSnapshot(
651
- req: CreateSnapshotRequest,
652
- cb?: (error: string, rep: CreateSnapshotResponse) => void
653
- ): Promise<CreateSnapshotResponse> {
654
- return this.request("CreateSnapshot", req, cb)
619
+ async DetachDisks(
620
+ req: DetachDisksRequest,
621
+ cb?: (error: string, rep: DetachDisksResponse) => void
622
+ ): Promise<DetachDisksResponse> {
623
+ return this.request("DetachDisks", req, cb)
655
624
  }
656
625
 
657
626
  /**
@@ -15,47 +15,6 @@
15
15
  * under the License.
16
16
  */
17
17
 
18
- /**
19
- * 快照操作日志,已废弃。
20
- */
21
- export interface SnapshotOperationLog {
22
- /**
23
- * 操作的状态。取值范围:
24
- SUCCESS :表示操作成功
25
- FAILED :表示操作失败
26
- PROCESSING :表示操作中。
27
- */
28
- OperationState: string
29
- /**
30
- * 开始时间。
31
- */
32
- StartTime: string
33
- /**
34
- * 操作者的UIN。
35
- 注意:此字段可能返回 null,表示取不到有效值。
36
- */
37
- Operator: string
38
- /**
39
- * 操作的快照ID。
40
- */
41
- SnapshotId: string
42
- /**
43
- * 操作类型。取值范围:
44
- SNAP_OPERATION_DELETE:删除快照
45
- SNAP_OPERATION_ROLLBACK:回滚快照
46
- SNAP_OPERATION_MODIFY:修改快照属性
47
- SNAP_OPERATION_CREATE:创建快照
48
- SNAP_OPERATION_COPY:跨地域复制快照
49
- ASP_OPERATION_CREATE_SNAP:由定期快照策略创建快照
50
- ASP_OPERATION_DELETE_SNAP:由定期快照策略删除快照
51
- */
52
- Operation: string
53
- /**
54
- * 结束时间。
55
- */
56
- EndTime: string
57
- }
58
-
59
18
  /**
60
19
  * ModifyDiskExtraPerformance请求参数结构体
61
20
  */
@@ -259,40 +218,17 @@ export interface DetailPrice {
259
218
  }
260
219
 
261
220
  /**
262
- * DescribeSnapshotOperationLogs请求参数结构体
263
- */
264
- export interface DescribeSnapshotOperationLogsRequest {
265
- /**
266
- * 过滤条件。支持以下条件:
267
- <li>snapshot-id - Array of String - 是否必填:是 - 按快照ID过滤,每个请求最多可指定10个快照ID。
268
- */
269
- Filters: Array<Filter>
270
- /**
271
- * 要查询的操作日志的截止时间,例如:“2019-11-22 23:59:59"
272
- */
273
- EndTime?: string
274
- /**
275
- * 要查询的操作日志的起始时间,例如:“2019-11-22 00:00:00"
276
- */
277
- BeginTime?: string
278
- }
279
-
280
- /**
281
- * ModifySnapshotsSharePermission请求参数结构体
221
+ * CreateDiskBackup请求参数结构体
282
222
  */
283
- export interface ModifySnapshotsSharePermissionRequest {
284
- /**
285
- * 快照ID, 可通过[DescribeSnapshots](https://cloud.tencent.com/document/api/362/15647)查询获取。
286
- */
287
- SnapshotIds: Array<string>
223
+ export interface CreateDiskBackupRequest {
288
224
  /**
289
- * 接收分享快照的账号Id列表,array型参数的格式可以参考[API简介](https://cloud.tencent.com/document/api/213/568)。帐号ID不同于QQ号,查询用户帐号ID请查看[帐号信息](https://console.cloud.tencent.com/developer)中的帐号ID栏。
225
+ * 要创建备份点的云硬盘名称。
290
226
  */
291
- AccountIds: Array<string>
227
+ DiskId: string
292
228
  /**
293
- * 操作,包括 SHARE,CANCEL。其中SHARE代表分享操作,CANCEL代表取消分享操作。
229
+ * 云硬盘备份点名称。长度不能超过100个字符。
294
230
  */
295
- Permission: string
231
+ DiskBackupName?: string
296
232
  }
297
233
 
298
234
  /**
@@ -436,16 +372,6 @@ export interface InitializeDisksResponse {
436
372
  RequestId?: string
437
373
  }
438
374
 
439
- /**
440
- * DeleteDiskBackups返回参数结构体
441
- */
442
- export interface DeleteDiskBackupsResponse {
443
- /**
444
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
445
- */
446
- RequestId?: string
447
- }
448
-
449
375
  /**
450
376
  * DescribeDiskStoragePool请求参数结构体
451
377
  */
@@ -1133,13 +1059,9 @@ export interface InquirePriceModifyDiskBackupQuotaRequest {
1133
1059
  }
1134
1060
 
1135
1061
  /**
1136
- * DescribeSnapshotOperationLogs返回参数结构体
1062
+ * DeleteDiskBackups返回参数结构体
1137
1063
  */
1138
- export interface DescribeSnapshotOperationLogsResponse {
1139
- /**
1140
- * 快照操作日志列表。
1141
- */
1142
- SnapshotOperationLogSet: Array<SnapshotOperationLog>
1064
+ export interface DeleteDiskBackupsResponse {
1143
1065
  /**
1144
1066
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1145
1067
  */
@@ -1365,20 +1287,6 @@ export interface DescribeInstancesDiskNumResponse {
1365
1287
  RequestId?: string
1366
1288
  }
1367
1289
 
1368
- /**
1369
- * DescribeDiskOperationLogs返回参数结构体
1370
- */
1371
- export interface DescribeDiskOperationLogsResponse {
1372
- /**
1373
- * 云盘的操作日志列表。
1374
- */
1375
- DiskOperationLogSet: Array<DiskOperationLog>
1376
- /**
1377
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1378
- */
1379
- RequestId?: string
1380
- }
1381
-
1382
1290
  /**
1383
1291
  * ResizeDisk请求参数结构体
1384
1292
  */
@@ -1786,59 +1694,21 @@ export interface AttachDisksResponse {
1786
1694
  }
1787
1695
 
1788
1696
  /**
1789
- * CreateDiskBackup请求参数结构体
1790
- */
1791
- export interface CreateDiskBackupRequest {
1792
- /**
1793
- * 要创建备份点的云硬盘名称。
1794
- */
1795
- DiskId: string
1796
- /**
1797
- * 云硬盘备份点名称。长度不能超过100个字符。
1798
- */
1799
- DiskBackupName?: string
1800
- }
1801
-
1802
- /**
1803
- * 云盘操作日志。
1697
+ * ModifySnapshotsSharePermission请求参数结构体
1804
1698
  */
1805
- export interface DiskOperationLog {
1806
- /**
1807
- * 操作的状态。取值范围:
1808
- SUCCESS :表示操作成功
1809
- FAILED :表示操作失败
1810
- PROCESSING :表示操作中。
1811
- */
1812
- OperationState: string
1813
- /**
1814
- * 开始时间。
1815
- */
1816
- StartTime: string
1817
- /**
1818
- * 操作者的UIN。
1819
- */
1820
- Operator: string
1699
+ export interface ModifySnapshotsSharePermissionRequest {
1821
1700
  /**
1822
- * 操作类型。取值范围:
1823
- CBS_OPERATION_ATTACH:挂载云硬盘
1824
- CBS_OPERATION_DETACH:解挂云硬盘
1825
- CBS_OPERATION_RENEW:续费
1826
- CBS_OPERATION_EXPAND:扩容
1827
- CBS_OPERATION_CREATE:创建
1828
- CBS_OPERATION_ISOLATE:隔离
1829
- CBS_OPERATION_MODIFY:修改云硬盘属性
1830
- ASP_OPERATION_BIND:关联定期快照策略
1831
- ASP_OPERATION_UNBIND:取消关联定期快照策略
1701
+ * 快照ID, 可通过[DescribeSnapshots](https://cloud.tencent.com/document/api/362/15647)查询获取。
1832
1702
  */
1833
- Operation: string
1703
+ SnapshotIds: Array<string>
1834
1704
  /**
1835
- * 结束时间。
1705
+ * 接收分享快照的账号Id列表,array型参数的格式可以参考[API简介](https://cloud.tencent.com/document/api/213/568)。帐号ID不同于QQ号,查询用户帐号ID请查看[帐号信息](https://console.cloud.tencent.com/developer)中的帐号ID栏。
1836
1706
  */
1837
- EndTime: string
1707
+ AccountIds: Array<string>
1838
1708
  /**
1839
- * 操作的云盘ID。
1709
+ * 操作,包括 SHARE,CANCEL。其中SHARE代表分享操作,CANCEL代表取消分享操作。
1840
1710
  */
1841
- DiskId: string
1711
+ Permission: string
1842
1712
  }
1843
1713
 
1844
1714
  /**
@@ -1851,25 +1721,6 @@ export interface BindAutoSnapshotPolicyResponse {
1851
1721
  RequestId?: string
1852
1722
  }
1853
1723
 
1854
- /**
1855
- * DescribeDiskOperationLogs请求参数结构体
1856
- */
1857
- export interface DescribeDiskOperationLogsRequest {
1858
- /**
1859
- * 过滤条件。支持以下条件:
1860
- <li>disk-id - Array of String - 是否必填:是 - 按云盘ID过滤,每个请求最多可指定10个云盘ID。
1861
- */
1862
- Filters: Array<Filter>
1863
- /**
1864
- * 要查询的操作日志的截止时间,例如:“2019-11-22 23:59:59"
1865
- */
1866
- EndTime?: string
1867
- /**
1868
- * 要查询的操作日志的起始时间,例如:“2019-11-22 00:00:00"
1869
- */
1870
- BeginTime?: string
1871
- }
1872
-
1873
1724
  /**
1874
1725
  * 云硬盘备份点。
1875
1726
  */