tencentcloud-sdk-nodejs 4.0.326 → 4.0.327

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 (46) hide show
  1. package/CHANGELOG.md +147 -0
  2. package/SERVICE_CHANGELOG.md +219 -69
  3. package/package.json +1 -1
  4. package/products.md +9 -9
  5. package/src/common/abstract_client.ts +9 -6
  6. package/src/common/http/http_connection.ts +7 -3
  7. package/src/common/interface.ts +6 -0
  8. package/src/common/sdk_version.ts +1 -1
  9. package/src/services/antiddos/v20200309/antiddos_models.ts +55 -45
  10. package/src/services/cdb/v20170320/cdb_models.ts +66 -6
  11. package/src/services/cdn/v20180606/cdn_models.ts +12 -0
  12. package/src/services/ckafka/v20190819/ckafka_models.ts +6 -5
  13. package/src/services/cls/v20201016/cls_client.ts +1 -1
  14. package/src/services/iotexplorer/v20190423/iotexplorer_client.ts +13 -1
  15. package/src/services/iotexplorer/v20190423/iotexplorer_models.ts +46 -6
  16. package/src/services/ssa/v20180608/ssa_client.ts +15 -1
  17. package/src/services/ssa/v20180608/ssa_models.ts +181 -44
  18. package/src/services/thpc/v20211109/thpc_models.ts +2 -2
  19. package/src/services/waf/v20180125/waf_client.ts +271 -80
  20. package/src/services/waf/v20180125/waf_models.ts +973 -103
  21. package/tencentcloud/common/abstract_client.d.ts +3 -3
  22. package/tencentcloud/common/abstract_client.js +5 -3
  23. package/tencentcloud/common/http/http_connection.d.ts +4 -2
  24. package/tencentcloud/common/http/http_connection.js +5 -5
  25. package/tencentcloud/common/interface.d.ts +6 -0
  26. package/tencentcloud/common/sdk_version.d.ts +1 -1
  27. package/tencentcloud/common/sdk_version.js +1 -1
  28. package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +52 -44
  29. package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +54 -6
  30. package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +10 -0
  31. package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +5 -4
  32. package/tencentcloud/services/cls/v20201016/cls_client.d.ts +1 -1
  33. package/tencentcloud/services/cls/v20201016/cls_client.js +1 -1
  34. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.d.ts +5 -1
  35. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.js +6 -0
  36. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +40 -6
  37. package/tencentcloud/services/ssa/v20180608/ssa_client.d.ts +5 -1
  38. package/tencentcloud/services/ssa/v20180608/ssa_client.js +6 -0
  39. package/tencentcloud/services/ssa/v20180608/ssa_models.d.ts +152 -38
  40. package/tencentcloud/services/thpc/v20211109/thpc_models.d.ts +2 -2
  41. package/tencentcloud/services/waf/v20180125/waf_client.d.ts +91 -27
  42. package/tencentcloud/services/waf/v20180125/waf_client.js +133 -39
  43. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +810 -77
  44. package/test/iotexplorer.v20190423.test.js +10 -0
  45. package/test/ssa.v20180608.test.js +10 -0
  46. package/test/waf.v20180125.test.js +176 -26
package/products.md CHANGED
@@ -7,7 +7,7 @@
7
7
  | afc | [定制建模](https://cloud.tencent.com/document/product/1029) | 2022-04-04 06:03:11 |
8
8
  | ame | [正版曲库直通车](https://cloud.tencent.com/document/product/1155) | 2022-04-15 06:01:25 |
9
9
  | ams | [音频内容检测](https://cloud.tencent.com/document/product/1219) | 2022-04-04 06:03:33 |
10
- | antiddos | [DDoS 防护](https://cloud.tencent.com/document/product/1021) | 2022-04-08 06:01:17 |
10
+ | antiddos | [DDoS 防护](https://cloud.tencent.com/document/product/1021) | 2022-04-18 06:05:37 |
11
11
  | apcas | [汽车精准获客服务](https://cloud.tencent.com/document/product/1244) | 2022-04-04 06:05:36 |
12
12
  | ape | [正版图库直通车](https://cloud.tencent.com/document/product/1181) | 2022-04-04 06:05:40 |
13
13
  | api | [云 API](https://cloud.tencent.com/document/product/1278) | 2022-04-08 06:01:32 |
@@ -34,8 +34,8 @@
34
34
  | cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2022-04-04 06:11:56 |
35
35
  | cbs | [云硬盘](https://cloud.tencent.com/document/product/362) | 2022-04-13 06:12:00 |
36
36
  | ccc | [云呼叫中心](https://cloud.tencent.com/document/product/679) | 2022-04-15 06:03:13 |
37
- | cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2022-04-14 06:07:55 |
38
- | cdn | [内容分发网络](https://cloud.tencent.com/document/product/228) | 2022-04-14 06:08:21 |
37
+ | cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2022-04-18 06:07:35 |
38
+ | cdn | [内容分发网络](https://cloud.tencent.com/document/product/228) | 2022-04-18 06:07:58 |
39
39
  | cds | [数据安全审计](https://cloud.tencent.com/document/product/856) | 2022-04-04 06:17:07 |
40
40
  | cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2022-04-04 06:17:11 |
41
41
  | cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2022-04-04 06:17:16 |
@@ -44,11 +44,11 @@
44
44
  | cii | [智能保险助手](https://cloud.tencent.com/document/product/1368) | 2022-04-04 06:18:39 |
45
45
  | cim | [](https://cloud.tencent.com/document/product) | 2019-05-16 17:21:18 |
46
46
  | cis | [](https://cloud.tencent.com/document/product) | 2018-06-07 15:01:42 |
47
- | ckafka | [消息队列 Ckafka](https://cloud.tencent.com/document/product/597) | 2022-04-13 06:18:36 |
47
+ | ckafka | [消息队列 Ckafka](https://cloud.tencent.com/document/product/597) | 2022-04-18 06:08:40 |
48
48
  | clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2022-04-08 06:04:17 |
49
49
  | cloudaudit | [云审计](https://cloud.tencent.com/document/product/629) | 2022-04-04 06:21:08 |
50
50
  | cloudhsm | [云加密机](https://cloud.tencent.com/document/product/639) | 2022-04-04 06:21:17 |
51
- | cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2022-04-12 06:09:41 |
51
+ | cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2022-04-18 06:09:09 |
52
52
  | cme | [多媒体创作引擎](https://cloud.tencent.com/document/product/1156) | 2022-04-04 06:22:26 |
53
53
  | cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2022-04-04 06:23:04 |
54
54
  | cms | [内容安全](https://cloud.tencent.com/document/product) | 2020-10-29 08:03:08 |
@@ -99,7 +99,7 @@
99
99
  | ims | [图片内容检测](https://cloud.tencent.com/document/product/1125) | 2022-04-04 06:48:07 |
100
100
  | iot | [加速物联网套件](https://cloud.tencent.com/document/product/568) | 2022-04-04 06:48:08 |
101
101
  | iotcloud | [物联网通信](https://cloud.tencent.com/document/product/634) | 2022-04-01 15:20:13 |
102
- | iotexplorer | [物联网开发平台](https://cloud.tencent.com/document/product/1081) | 2022-04-13 06:48:26 |
102
+ | iotexplorer | [物联网开发平台](https://cloud.tencent.com/document/product/1081) | 2022-04-18 06:13:51 |
103
103
  | iottid | [物联网设备身份认证](https://cloud.tencent.com/document/product/1086) | 2022-04-04 06:49:46 |
104
104
  | iotvideo | [物联网智能视频服务](https://cloud.tencent.com/document/product/1131) | 2022-04-04 06:49:51 |
105
105
  | iotvideoindustry | [物联网智能视频服务(行业版)](https://cloud.tencent.com/document/product/1361) | 2022-04-04 06:51:27 |
@@ -143,7 +143,7 @@
143
143
  | soe | [智聆口语评测](https://cloud.tencent.com/document/product/884) | 2022-04-04 07:05:55 |
144
144
  | solar | [智汇零售](https://cloud.tencent.com/document/product) | 2020-03-19 08:01:59 |
145
145
  | sqlserver | [云数据库 SQL Server](https://cloud.tencent.com/document/product/238) | 2022-04-04 07:05:59 |
146
- | ssa | [安全运营中心](https://cloud.tencent.com/document/product/664) | 2022-04-14 06:16:47 |
146
+ | ssa | [安全运营中心](https://cloud.tencent.com/document/product/664) | 2022-04-18 06:17:42 |
147
147
  | ssl | [证书](https://cloud.tencent.com/document/product/400) | 2022-04-04 07:07:38 |
148
148
  | sslpod | [SSL 证书监控](https://cloud.tencent.com/document/product/1084) | 2022-04-04 07:07:55 |
149
149
  | ssm | [凭据管理系统](https://cloud.tencent.com/document/product/1140) | 2022-04-04 07:08:00 |
@@ -172,7 +172,7 @@
172
172
  | ticm | [智能鉴黄](https://cloud.tencent.com/document/product/864) | 2021-01-07 08:08:15 |
173
173
  | tics | [威胁情报云查服务](https://cloud.tencent.com/document/product/1013) | 2022-04-04 07:16:59 |
174
174
  | tiems | [腾讯云 TI 平台 TI-EMS ](https://cloud.tencent.com/document/product/1120) | 2022-04-04 07:17:01 |
175
- | tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2022-04-15 06:14:09 |
175
+ | tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2022-04-18 06:19:48 |
176
176
  | tione | [腾讯云 TI 平台 TI-ONE](https://cloud.tencent.com/document/product/851) | 2022-04-04 07:17:26 |
177
177
  | tiw | [互动白板](https://cloud.tencent.com/document/product/1137) | 2022-04-04 07:17:39 |
178
178
  | tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2022-04-08 06:14:29 |
@@ -189,7 +189,7 @@
189
189
  | vms | [语音消息](https://cloud.tencent.com/document/product/1128) | 2022-04-04 07:22:54 |
190
190
  | vod | [云点播](https://cloud.tencent.com/document/product/266) | 2022-04-13 07:24:51 |
191
191
  | vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2022-04-14 06:20:04 |
192
- | waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2022-04-08 06:16:21 |
192
+ | waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2022-04-18 06:22:13 |
193
193
  | wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2022-04-04 07:39:05 |
194
194
  | wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
195
195
  | youmall | [](https://cloud.tencent.com/document/product) | 2019-01-11 11:24:15 |
@@ -5,10 +5,11 @@ import { HttpConnection } from "./http/http_connection"
5
5
  import TencentCloudSDKHttpException from "./exception/tencent_cloud_sdk_exception"
6
6
  import { Response } from "node-fetch"
7
7
 
8
- type ResponseCallback = (error: string, rep: any) => void
9
- interface RequestOptions {
10
- multipart: boolean
8
+ export type ResponseCallback<TReuslt = any> = (error: string, rep: TReuslt) => void
9
+ export interface RequestOptions extends Pick<ClientProfile["httpProfile"], "headers"> {
10
+ multipart?: boolean
11
11
  }
12
+
12
13
  interface RequestData {
13
14
  Action: string
14
15
  RequestClient: string
@@ -109,7 +110,7 @@ export class AbstractClient {
109
110
  options = {} as RequestOptions
110
111
  }
111
112
  try {
112
- const result = await this.doRequest(action, req, options as RequestOptions)
113
+ const result = await this.doRequest(action, req ?? {}, options as RequestOptions)
113
114
  cb && cb(null, result)
114
115
  return result
115
116
  } catch (e) {
@@ -124,7 +125,7 @@ export class AbstractClient {
124
125
  private async doRequest(
125
126
  action: string,
126
127
  req: any,
127
- options?: RequestOptions
128
+ options: RequestOptions = {}
128
129
  ): Promise<ResponseData> {
129
130
  if (this.profile.signMethod === "TC3-HMAC-SHA256") {
130
131
  return this.doRequestWithSign3(action, req, options)
@@ -138,6 +139,7 @@ export class AbstractClient {
138
139
  url: this.profile.httpProfile.protocol + this.endpoint + this.path,
139
140
  data: params,
140
141
  timeout: this.profile.httpProfile.reqTimeout * 1000,
142
+ headers: Object.assign({}, this.profile.httpProfile.headers, options.headers),
141
143
  })
142
144
  } catch (error) {
143
145
  throw new TencentCloudSDKHttpException(error.message)
@@ -151,7 +153,7 @@ export class AbstractClient {
151
153
  private async doRequestWithSign3(
152
154
  action: string,
153
155
  params: any,
154
- options?: RequestOptions
156
+ options: RequestOptions = {}
155
157
  ): Promise<ResponseData> {
156
158
  let res
157
159
  try {
@@ -170,6 +172,7 @@ export class AbstractClient {
170
172
  token: this.credential.token,
171
173
  requestClient: this.sdkVersion,
172
174
  language: this.profile.language,
175
+ headers: Object.assign({}, this.profile.httpProfile.headers, options.headers),
173
176
  })
174
177
  } catch (e) {
175
178
  throw new TencentCloudSDKHttpException(e.message)
@@ -16,11 +16,13 @@ export class HttpConnection {
16
16
  url,
17
17
  data,
18
18
  timeout,
19
+ headers = {},
19
20
  }: {
20
21
  method: string
21
22
  url: string
22
23
  data: any
23
24
  timeout: number
25
+ headers?: Record<string, string>
24
26
  }): Promise<Response> {
25
27
  const config: {
26
28
  method: string
@@ -31,7 +33,7 @@ export class HttpConnection {
31
33
  body?: string
32
34
  } = {
33
35
  method: method,
34
- headers: {},
36
+ headers: Object.assign({}, headers),
35
37
  timeout,
36
38
  }
37
39
  if (method === "GET") {
@@ -58,6 +60,7 @@ export class HttpConnection {
58
60
  token,
59
61
  requestClient,
60
62
  language,
63
+ headers = {},
61
64
  }: {
62
65
  method: string
63
66
  url: string
@@ -73,6 +76,7 @@ export class HttpConnection {
73
76
  token: string
74
77
  requestClient: string
75
78
  language: string
79
+ headers?: Record<string, string>
76
80
  }): Promise<Response> {
77
81
  // data 中可能带有 readStream,由于需要计算整个 body 的 hash,
78
82
  // 所以这里把 readStream 转为 Buffer
@@ -104,7 +108,7 @@ export class HttpConnection {
104
108
  } = {
105
109
  method,
106
110
  timeout,
107
- headers: {
111
+ headers: Object.assign({}, headers, {
108
112
  Host: new URL(url).host,
109
113
  "X-TC-Action": action,
110
114
  "X-TC-Region": region,
@@ -112,7 +116,7 @@ export class HttpConnection {
112
116
  "X-TC-Version": version,
113
117
  "X-TC-Token": token,
114
118
  "X-TC-RequestClient": requestClient,
115
- },
119
+ }),
116
120
  }
117
121
 
118
122
  if (token === null) {
@@ -59,6 +59,12 @@ export interface ClientProfile {
59
59
  * 非必选
60
60
  */
61
61
  reqTimeout?: number
62
+ /**
63
+ * 自定义请求头,例如 { "X-TC-TraceId": "ffe0c072-8a5d-4e17-8887-a8a60252abca" }
64
+ * @type {Record<string, string>}
65
+ * 非必选
66
+ */
67
+ headers?: Record<string, string>
62
68
  }
63
69
  /**
64
70
  * api请求时附带的 language 字段
@@ -1 +1 @@
1
- export const sdkVersion = "4.0.326"
1
+ export const sdkVersion = "4.0.327"
@@ -3948,19 +3948,19 @@ export interface DescribeBizTrendResponse {
3948
3948
  */
3949
3949
  export interface NewL7RuleEntry {
3950
3950
  /**
3951
- * 会话保持时间,单位秒
3951
+ * 转发协议,取值[http, https]
3952
3952
  */
3953
- KeepTime: number
3953
+ Protocol: string
3954
3954
 
3955
3955
  /**
3956
- * 负载均衡方式,取值[1(加权轮询)]
3956
+ * 转发域名
3957
3957
  */
3958
- LbType: number
3958
+ Domain: string
3959
3959
 
3960
3960
  /**
3961
- * 回源列表
3961
+ * 负载均衡方式,取值[1(加权轮询)]
3962
3962
  */
3963
- SourceList: Array<L4RuleSource>
3963
+ LbType: number
3964
3964
 
3965
3965
  /**
3966
3966
  * 会话保持开关,取值[0(会话保持关闭),1(会话保持开启)]
@@ -3968,54 +3968,54 @@ export interface NewL7RuleEntry {
3968
3968
  KeepEnable: number
3969
3969
 
3970
3970
  /**
3971
- * 转发域名
3971
+ * 会话保持时间,单位秒
3972
3972
  */
3973
- Domain: string
3973
+ KeepTime: number
3974
3974
 
3975
3975
  /**
3976
- * 转发协议,取值[http, https]
3976
+ * 回源方式,取值[1(域名回源),2(IP回源)]
3977
3977
  */
3978
- Protocol: string
3978
+ SourceType: number
3979
3979
 
3980
3980
  /**
3981
- * 回源方式,取值[1(域名回源),2(IP回源)]
3981
+ * 回源列表
3982
3982
  */
3983
- SourceType: number
3983
+ SourceList: Array<L4RuleSource>
3984
3984
 
3985
3985
  /**
3986
- * 是否开启Https协议使用Http回源,取值[0(关闭), 1(开启)],不填写默认是关闭
3986
+ * 区域码
3987
3987
  */
3988
- HttpsToHttpEnable?: number
3988
+ Region?: number
3989
3989
 
3990
3990
  /**
3991
- * 规则状态,取值[0(规则配置成功),1(规则配置生效中),2(规则配置失败),3(规则删除生效中),5(规则删除失败),6(规则等待配置),7(规则等待删除),8(规则待配置证书)]
3991
+ * 资源Id
3992
3992
  */
3993
- Status?: number
3993
+ Id?: string
3994
3994
 
3995
3995
  /**
3996
- * HTTPS协议的CC防护等级
3996
+ * 资源Ip
3997
3997
  */
3998
- CCLevel?: string
3998
+ Ip?: string
3999
3999
 
4000
4000
  /**
4001
- * HTTPS协议的CC防护状态,取值[0(关闭), 1(开启)]
4001
+ * 规则ID,当添加新规则时可以不用填写此字段;当修改或者删除规则时需要填写此字段;
4002
4002
  */
4003
- CCEnable?: number
4003
+ RuleId?: string
4004
4004
 
4005
4005
  /**
4006
- * HTTPS协议的CC防护阈值
4006
+ * 规则描述
4007
4007
  */
4008
- CCThreshold?: number
4008
+ RuleName?: string
4009
4009
 
4010
4010
  /**
4011
- * 区域码
4011
+ * 证书来源,当转发协议为https时必须填,取值[2(腾讯云托管证书)],当转发协议为http时也可以填0
4012
4012
  */
4013
- Region?: number
4013
+ CertType?: number
4014
4014
 
4015
4015
  /**
4016
- * 规则描述
4016
+ * 当证书来源为腾讯云托管证书时,此字段必须填写托管证书ID
4017
4017
  */
4018
- RuleName?: string
4018
+ SSLId?: string
4019
4019
 
4020
4020
  /**
4021
4021
  * 当证书来源为自有证书时,此字段必须填写证书内容;(因已不再支持自有证书,此字段已弃用,请不用填写此字段)
@@ -4023,29 +4023,44 @@ export interface NewL7RuleEntry {
4023
4023
  Cert?: string
4024
4024
 
4025
4025
  /**
4026
- * 修改时间
4026
+ * 当证书来源为自有证书时,此字段必须填写证书密钥;(因已不再支持自有证书,此字段已弃用,请不用填写此字段)
4027
4027
  */
4028
- ModifyTime?: string
4028
+ PrivateKey?: string
4029
4029
 
4030
4030
  /**
4031
- * 规则ID,当添加新规则时可以不用填写此字段;当修改或者删除规则时需要填写此字段;
4031
+ * 规则状态,取值[0(规则配置成功),1(规则配置生效中),2(规则配置失败),3(规则删除生效中),5(规则删除失败),6(规则等待配置),7(规则等待删除),8(规则待配置证书)]
4032
4032
  */
4033
- RuleId?: string
4033
+ Status?: number
4034
4034
 
4035
4035
  /**
4036
- * 资源Ip
4036
+ * cc防护状态,取值[0(关闭), 1(开启)]
4037
4037
  */
4038
- Ip?: string
4038
+ CCStatus?: number
4039
4039
 
4040
4040
  /**
4041
- * 当证书来源为自有证书时,此字段必须填写证书密钥;(因已不再支持自有证书,此字段已弃用,请不用填写此字段)
4041
+ * HTTPS协议的CC防护状态,取值[0(关闭), 1(开启)]
4042
4042
  */
4043
- PrivateKey?: string
4043
+ CCEnable?: number
4044
4044
 
4045
4045
  /**
4046
- * 证书来源,当转发协议为https时必须填,取值[2(腾讯云托管证书)],当转发协议为http时也可以填0
4046
+ * HTTPS协议的CC防护阈值
4047
4047
  */
4048
- CertType?: number
4048
+ CCThreshold?: number
4049
+
4050
+ /**
4051
+ * HTTPS协议的CC防护等级
4052
+ */
4053
+ CCLevel?: string
4054
+
4055
+ /**
4056
+ * 修改时间
4057
+ */
4058
+ ModifyTime?: string
4059
+
4060
+ /**
4061
+ * 是否开启Https协议使用Http回源,取值[0(关闭), 1(开启)],不填写默认是关闭
4062
+ */
4063
+ HttpsToHttpEnable?: number
4049
4064
 
4050
4065
  /**
4051
4066
  * 接入端口值
@@ -4054,19 +4069,14 @@ export interface NewL7RuleEntry {
4054
4069
  VirtualPort?: number
4055
4070
 
4056
4071
  /**
4057
- * cc防护状态,取值[0(关闭), 1(开启)]
4058
- */
4059
- CCStatus?: number
4060
-
4061
- /**
4062
- * 当证书来源为腾讯云托管证书时,此字段必须填写托管证书ID
4072
+ * http强制跳转https,1表示打开,0表示关闭
4063
4073
  */
4064
- SSLId?: string
4074
+ RewriteHttps?: number
4065
4075
 
4066
4076
  /**
4067
- * 资源Id
4077
+ * 规则配置失败时的详细错误原因(仅当Status=2时有效),1001证书不存在,1002证书获取失败,1003证书上传失败,1004证书已过期
4068
4078
  */
4069
- Id?: string
4079
+ ErrCode?: number
4070
4080
  }
4071
4081
 
4072
4082
  /**
@@ -3156,32 +3156,57 @@ export interface DescribeBackupConfigResponse {
3156
3156
  /**
3157
3157
  * 自动备份开始的最早时间点,单位为时刻。例如,2 - 凌晨 2:00。(该字段已废弃,建议使用 BackupTimeWindow 字段)
3158
3158
  */
3159
- StartTimeMin?: number
3159
+ StartTimeMin: number
3160
3160
 
3161
3161
  /**
3162
3162
  * 自动备份开始的最晚时间点,单位为时刻。例如,6 - 凌晨 6:00。(该字段已废弃,建议使用 BackupTimeWindow 字段)
3163
3163
  */
3164
- StartTimeMax?: number
3164
+ StartTimeMax: number
3165
3165
 
3166
3166
  /**
3167
3167
  * 备份文件保留时间,单位为天。
3168
3168
  */
3169
- BackupExpireDays?: number
3169
+ BackupExpireDays: number
3170
3170
 
3171
3171
  /**
3172
3172
  * 备份方式,可能的值为:physical - 物理备份,logical - 逻辑备份。
3173
3173
  */
3174
- BackupMethod?: string
3174
+ BackupMethod: string
3175
3175
 
3176
3176
  /**
3177
3177
  * Binlog 文件保留时间,单位为天。
3178
3178
  */
3179
- BinlogExpireDays?: number
3179
+ BinlogExpireDays: number
3180
3180
 
3181
3181
  /**
3182
3182
  * 实例自动备份的时间窗。
3183
3183
  */
3184
- BackupTimeWindow?: CommonTimeWindow
3184
+ BackupTimeWindow: CommonTimeWindow
3185
+
3186
+ /**
3187
+ * 定期保留开关,off - 不开启定期保留策略,on - 开启定期保留策略,默认为off
3188
+ */
3189
+ EnableBackupPeriodSave: string
3190
+
3191
+ /**
3192
+ * 定期保留最长天数,最小值:90,最大值:3650,默认值:1080
3193
+ */
3194
+ BackupPeriodSaveDays: number
3195
+
3196
+ /**
3197
+ * 定期保留策略周期,可取值:weekly - 周,monthly - 月, quarterly - 季度,yearly - 年,默认为monthly
3198
+ */
3199
+ BackupPeriodSaveInterval: string
3200
+
3201
+ /**
3202
+ * 定期保留的备份数量,最小值为1,最大值不超过定期保留策略周期内常规备份个数,默认值为1
3203
+ */
3204
+ BackupPeriodSaveCount: number
3205
+
3206
+ /**
3207
+ * 定期保留策略周期起始日期,格式:YYYY-MM-dd HH:mm:ss
3208
+ */
3209
+ StartBackupPeriodSaveDate: string
3185
3210
 
3186
3211
  /**
3187
3212
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -4028,6 +4053,36 @@ export interface ModifyBackupConfigRequest {
4028
4053
  * 备份时间窗,比如要设置每周二和周日 10:00-14:00之间备份,该参数如下:{"Monday": "", "Tuesday": "10:00-14:00", "Wednesday": "", "Thursday": "", "Friday": "", "Saturday": "", "Sunday": "10:00-14:00"} (注:可以设置一周的某几天备份,但是每天的备份时间需要设置为相同的时间段。 如果设置了该字段,将忽略StartTime字段的设置)
4029
4054
  */
4030
4055
  BackupTimeWindow?: CommonTimeWindow
4056
+
4057
+ /**
4058
+ * 定期保留开关,off - 不开启定期保留策略,on - 开启定期保留策略,默认为off
4059
+ */
4060
+ EnableBackupPeriodSave?: string
4061
+
4062
+ /**
4063
+ * 长期保留开关,该字段功能暂未上线,可忽略。off - 不开启长期保留策略,on - 开启长期保留策略,默认为off,如果开启,则BackupPeriodSaveDays,BackupPeriodSaveInterval,BackupPeriodSaveCount参数无效
4064
+ */
4065
+ EnableBackupPeriodLongTermSave?: string
4066
+
4067
+ /**
4068
+ * 定期保留最长天数,最小值:90,最大值:3650,默认值:1080
4069
+ */
4070
+ BackupPeriodSaveDays?: number
4071
+
4072
+ /**
4073
+ * 定期保留策略周期,可取值:weekly - 周,monthly - 月, quarterly - 季度,yearly - 年,默认为monthly
4074
+ */
4075
+ BackupPeriodSaveInterval?: string
4076
+
4077
+ /**
4078
+ * 定期保留的备份数量,最小值为1,最大值不超过定期保留策略周期内常规备份个数,默认值为1
4079
+ */
4080
+ BackupPeriodSaveCount?: number
4081
+
4082
+ /**
4083
+ * 定期保留策略周期起始日期,格式:YYYY-MM-dd HH:mm:ss
4084
+ */
4085
+ StartBackupPeriodSaveDate?: string
4031
4086
  }
4032
4087
 
4033
4088
  /**
@@ -5417,6 +5472,11 @@ export interface BackupInfo {
5417
5472
  * 手动备份别名
5418
5473
  */
5419
5474
  ManualBackupName: string
5475
+
5476
+ /**
5477
+ * 备份保留类型,save_mode_regular - 常规保存备份,save_mode_period - 定期保存备份
5478
+ */
5479
+ SaveMode: string
5420
5480
  }
5421
5481
 
5422
5482
  /**
@@ -3750,6 +3750,18 @@ export interface OverseaConfig {
3750
3750
  注意:此字段可能返回 null,表示取不到有效值。
3751
3751
  */
3752
3752
  OssPrivateAccess?: OssPrivateAccess
3753
+
3754
+ /**
3755
+ * 华为云对象存储鉴权
3756
+ 注意:此字段可能返回 null,表示取不到有效值。
3757
+ */
3758
+ HwPrivateAccess?: HwPrivateAccess
3759
+
3760
+ /**
3761
+ * 七牛云对象存储鉴权
3762
+ 注意:此字段可能返回 null,表示取不到有效值。
3763
+ */
3764
+ QnPrivateAccess?: QnPrivateAccess
3753
3765
  }
3754
3766
 
3755
3767
  /**
@@ -3616,7 +3616,7 @@ export interface ModifyTopicAttributesRequest {
3616
3616
  SegmentMs?: number
3617
3617
 
3618
3618
  /**
3619
- * 主题消息最大值,单位为 Byte,最大值为8388608Byte(即8MB)。
3619
+ * 主题消息最大值,单位为 Byte,最大值为12582912Byte(即12MB)。
3620
3620
  */
3621
3621
  MaxMessageBytes?: number
3622
3622
 
@@ -3696,8 +3696,9 @@ export interface CreateInstancePreRequest {
3696
3696
  Period: string
3697
3697
 
3698
3698
  /**
3699
- * 实例规格,专业版默认填写1。1:入门型 ,2: 标准型,3 :进阶型,4 :容量型,5: 高阶型1,6:高阶性2, 7: 高阶型3,8: 高阶型4, 9 :独占型。
3700
- */
3699
+ * 实例规格说明 专业版实例[所有规格]填写1.
3700
+ 标准版实例 ([入门型]填写1,[标准型]填写2,[进阶型]填写3,[容量型]填写4,[高阶型1]填写5,[高阶性2]填写6,[高阶型3]填写7,[高阶型4]填写8,[独占型]填写9。
3701
+ */
3701
3702
  InstanceType: number
3702
3703
 
3703
3704
  /**
@@ -3726,12 +3727,12 @@ export interface CreateInstancePreRequest {
3726
3727
  RenewFlag?: number
3727
3728
 
3728
3729
  /**
3729
- * 支持指定版本Kafka版本(0.10.2/1.1.1/2.4.1 。指定专业版参数specificationsType=pro
3730
+ * CKafka版本号[0.10.21.1.12.4.1], 默认是1.1.1
3730
3731
  */
3731
3732
  KafkaVersion?: string
3732
3733
 
3733
3734
  /**
3734
- * 专业版必须填写 (专业版:profession、标准版:standard 默认是standard。专业版填profession
3735
+ * 实例类型: [标准版实例]填写 standard(默认), [专业版实例]填写 profession
3735
3736
  */
3736
3737
  SpecificationsType?: string
3737
3738
 
@@ -600,7 +600,7 @@ export class Client extends AbstractClient {
600
600
  }
601
601
 
602
602
  /**
603
- * 打开kafka协议消费
603
+ * 打开Kafka协议消费功能
604
604
  */
605
605
  async OpenKafkaConsumer(
606
606
  req: OpenKafkaConsumerRequest,
@@ -120,6 +120,7 @@ import {
120
120
  DescribeStudioProductResponse,
121
121
  CreateFenceBindRequest,
122
122
  DescribeDeviceResponse,
123
+ PublishBroadcastMessageRequest,
123
124
  ListFirmwaresRequest,
124
125
  GetStudioProductListResponse,
125
126
  PublishMessageRequest,
@@ -146,7 +147,7 @@ import {
146
147
  CreateFenceBindResponse,
147
148
  DescribeTopicRuleResponse,
148
149
  CreatePositionFenceResponse,
149
- TopicItem,
150
+ PublishBroadcastMessageResponse,
150
151
  DescribeFenceBindListRequest,
151
152
  DescribeBindedProductsResponse,
152
153
  DeviceSignatureInfo,
@@ -158,6 +159,7 @@ import {
158
159
  DescribeBatchProductionRequest,
159
160
  CreateTopicPolicyRequest,
160
161
  DirectBindDeviceInFamilyRequest,
162
+ TopicItem,
161
163
  GetFamilyDeviceUserListRequest,
162
164
  DescribeBindedProductsRequest,
163
165
  DescribeLoRaFrequencyResponse,
@@ -650,6 +652,16 @@ export class Client extends AbstractClient {
650
652
  return this.request("DescribeTopicRule", req, cb)
651
653
  }
652
654
 
655
+ /**
656
+ * 发布广播消息
657
+ */
658
+ async PublishBroadcastMessage(
659
+ req: PublishBroadcastMessageRequest,
660
+ cb?: (error: string, rep: PublishBroadcastMessageResponse) => void
661
+ ): Promise<PublishBroadcastMessageResponse> {
662
+ return this.request("PublishBroadcastMessage", req, cb)
663
+ }
664
+
653
665
  /**
654
666
  * 批量解绑子产品
655
667
  */