tencentcloud-sdk-nodejs 4.0.940 → 4.0.941

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 CHANGED
@@ -1,3 +1,28 @@
1
+ # Release 4.0.941
2
+
3
+ ## 消息队列 MQTT 版(mqtt) 版本:2024-05-16
4
+
5
+ ### 第 1 次发布
6
+
7
+ 发布时间:2024-09-19 14:22:10
8
+
9
+ 本次发布包含了以下内容:
10
+
11
+ 改善已有的文档。
12
+
13
+ 新增接口:
14
+
15
+ * [DescribeInstance](https://cloud.tencent.com/document/api/1778/111030)
16
+ * [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)
17
+
18
+ 新增数据结构:
19
+
20
+ * [Filter](https://cloud.tencent.com/document/api/1778/111031#Filter)
21
+ * [MQTTInstanceItem](https://cloud.tencent.com/document/api/1778/111031#MQTTInstanceItem)
22
+ * [TagFilter](https://cloud.tencent.com/document/api/1778/111031#TagFilter)
23
+
24
+
25
+
1
26
  # Release 4.0.940
2
27
 
3
28
  ## 云数据库 MySQL(cdb) 版本:2017-03-20
@@ -1,49 +1,10 @@
1
1
  # 本版本更新包含以下内容:
2
2
 
3
- ## 云数据库 MySQL(cdb) 版本:2017-03-20
4
-
5
- ### 第 167 次发布
6
-
7
- 发布时间:2024-09-19 01:11:20
8
-
9
- 本次发布包含了以下内容:
10
-
11
- 改善已有的文档。
12
-
13
- 修改接口:
14
-
15
- * [CloseWanService](https://cloud.tencent.com/document/api/236/15863)
16
-
17
- * 新增入参:OpResourceId
18
-
19
- * [ModifyDBInstanceSecurityGroups](https://cloud.tencent.com/document/api/236/15853)
20
-
21
- * 新增入参:OpResourceId
22
-
23
- * [ModifyDBInstanceVipVport](https://cloud.tencent.com/document/api/236/15867)
24
-
25
- * 新增入参:OpResourceId
26
-
27
- * [OpenWanService](https://cloud.tencent.com/document/api/236/15875)
28
-
29
- * 新增入参:OpResourceId
3
+ ## 消息队列 MQTT 版(mqtt) 版本:2024-05-16
30
4
 
31
- * [SwitchDBInstanceMasterSlave](https://cloud.tencent.com/document/api/236/52171)
32
-
33
- * 新增入参:DstNodeId
34
-
35
-
36
-
37
-
38
- ## 容器服务(tke) 版本:2022-05-01
39
-
40
-
41
-
42
- ## 容器服务(tke) 版本:2018-05-25
43
-
44
- ### 第 179 次发布
5
+ ### 第 1 次发布
45
6
 
46
- 发布时间:2024-09-19 02:21:23
7
+ 发布时间:2024-09-19 14:22:10
47
8
 
48
9
  本次发布包含了以下内容:
49
10
 
@@ -51,51 +12,14 @@
51
12
 
52
13
  新增接口:
53
14
 
54
- * [DescribeOpenPolicyList](https://cloud.tencent.com/document/api/457/111011)
55
- * [ModifyOpenPolicyList](https://cloud.tencent.com/document/api/457/111010)
56
-
57
- 修改接口:
58
-
59
- * [DescribeExternalNodeSupportConfig](https://cloud.tencent.com/document/api/457/101767)
60
-
61
- * 新增出参:PublicCustomDomain
62
-
15
+ * [DescribeInstance](https://cloud.tencent.com/document/api/1778/111030)
16
+ * [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)
63
17
 
64
18
  新增数据结构:
65
19
 
66
- * [OpenConstraintInfo](https://cloud.tencent.com/document/api/457/31866#OpenConstraintInfo)
67
- * [OpenPolicyInfo](https://cloud.tencent.com/document/api/457/31866#OpenPolicyInfo)
68
- * [OpenPolicySwitch](https://cloud.tencent.com/document/api/457/31866#OpenPolicySwitch)
69
-
70
- 修改数据结构:
71
-
72
- * [Cluster](https://cloud.tencent.com/document/api/457/31866#Cluster)
73
-
74
- * 新增成员:CdcId
75
-
76
- * [ClusterNetworkSettings](https://cloud.tencent.com/document/api/457/31866#ClusterNetworkSettings)
77
-
78
- * <font color="#dd0000">**修改成员**:</font>IgnoreClusterCIDRConflict, MaxNodePodNum, MaxClusterServiceNum, Ipvs, VpcId, Cni
79
-
80
-
81
-
82
-
83
- ## 私有网络(vpc) 版本:2017-03-12
84
-
85
- ### 第 205 次发布
86
-
87
- 发布时间:2024-09-19 02:31:07
88
-
89
- 本次发布包含了以下内容:
90
-
91
- 改善已有的文档。
92
-
93
- 修改接口:
94
-
95
- * [CreateVpcEndPoint](https://cloud.tencent.com/document/api/215/54685)
96
-
97
- * 新增入参:Tags
98
-
20
+ * [Filter](https://cloud.tencent.com/document/api/1778/111031#Filter)
21
+ * [MQTTInstanceItem](https://cloud.tencent.com/document/api/1778/111031#MQTTInstanceItem)
22
+ * [TagFilter](https://cloud.tencent.com/document/api/1778/111031#TagFilter)
99
23
 
100
24
 
101
25
 
@@ -100694,6 +100618,30 @@
100694
100618
 
100695
100619
 
100696
100620
 
100621
+ ## 消息队列 MQTT 版(mqtt) 版本:2024-05-16
100622
+
100623
+ ### 第 1 次发布
100624
+
100625
+ 发布时间:2024-09-19 14:22:10
100626
+
100627
+ 本次发布包含了以下内容:
100628
+
100629
+ 改善已有的文档。
100630
+
100631
+ 新增接口:
100632
+
100633
+ * [[DescribeInstance](https://cloud.tencent.com/document/api/1778/111030)](https://cloud.tencent.com/document/api/#/#)
100634
+ * [[DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)](https://cloud.tencent.com/document/api/#/#)
100635
+
100636
+ 新增数据结构:
100637
+
100638
+ * [[Filter](https://cloud.tencent.com/document/api/1778/111031#Filter)](https://cloud.tencent.com/document/api/1778/111031#[Filter](https://cloud.tencent.com/document/api/1778/111031#Filter))
100639
+ * [[MQTTInstanceItem](https://cloud.tencent.com/document/api/1778/111031#MQTTInstanceItem)](https://cloud.tencent.com/document/api/1778/111031#[MQTTInstanceItem](https://cloud.tencent.com/document/api/1778/111031#MQTTInstanceItem))
100640
+ * [[TagFilter](https://cloud.tencent.com/document/api/1778/111031#TagFilter)](https://cloud.tencent.com/document/api/1778/111031#[TagFilter](https://cloud.tencent.com/document/api/1778/111031#TagFilter))
100641
+
100642
+
100643
+
100644
+
100697
100645
  ## 医疗报告结构化(mrs) 版本:2020-09-10
100698
100646
 
100699
100647
  ### 第 26 次发布
@@ -140446,8 +140394,8 @@
140446
140394
 
140447
140395
  新增接口:
140448
140396
 
140449
- * [[DescribeOpenPolicyList](https://cloud.tencent.com/document/api/457/111011)](https://cloud.tencent.com/document/api/#/#)
140450
- * [[ModifyOpenPolicyList](https://cloud.tencent.com/document/api/457/111010)](https://cloud.tencent.com/document/api/#/#)
140397
+ * [DescribeOpenPolicyList](https://cloud.tencent.com/document/api/457/111011)
140398
+ * [ModifyOpenPolicyList](https://cloud.tencent.com/document/api/457/111010)
140451
140399
 
140452
140400
  修改接口:
140453
140401
 
@@ -140458,9 +140406,9 @@
140458
140406
 
140459
140407
  新增数据结构:
140460
140408
 
140461
- * [[OpenConstraintInfo](https://cloud.tencent.com/document/api/457/31866#OpenConstraintInfo)](https://cloud.tencent.com/document/api/457/31866#[OpenConstraintInfo](https://cloud.tencent.com/document/api/457/31866#OpenConstraintInfo))
140462
- * [[OpenPolicyInfo](https://cloud.tencent.com/document/api/457/31866#OpenPolicyInfo)](https://cloud.tencent.com/document/api/457/31866#[OpenPolicyInfo](https://cloud.tencent.com/document/api/457/31866#OpenPolicyInfo))
140463
- * [[OpenPolicySwitch](https://cloud.tencent.com/document/api/457/31866#OpenPolicySwitch)](https://cloud.tencent.com/document/api/457/31866#[OpenPolicySwitch](https://cloud.tencent.com/document/api/457/31866#OpenPolicySwitch))
140409
+ * [OpenConstraintInfo](https://cloud.tencent.com/document/api/457/31866#OpenConstraintInfo)
140410
+ * [OpenPolicyInfo](https://cloud.tencent.com/document/api/457/31866#OpenPolicyInfo)
140411
+ * [OpenPolicySwitch](https://cloud.tencent.com/document/api/457/31866#OpenPolicySwitch)
140464
140412
 
140465
140413
  修改数据结构:
140466
140414
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs",
3
- "version": "4.0.940",
3
+ "version": "4.0.941",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "tencentcloud/index.js",
6
6
  "scripts": {
package/products.md CHANGED
@@ -151,6 +151,7 @@
151
151
  | mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2024-08-28 02:04:37 |
152
152
  | monitor | [腾讯云可观测平台](https://cloud.tencent.com/document/product/248) | 2024-08-28 02:05:12 |
153
153
  | mps | [媒体处理](https://cloud.tencent.com/document/product/862) | 2024-09-13 01:54:23 |
154
+ | mqtt | [消息队列 MQTT 版](https://cloud.tencent.com/document/product/1778) | 2024-09-19 14:22:10 |
154
155
  | mrs | [医疗报告结构化](https://cloud.tencent.com/document/product/1314) | 2024-09-12 02:00:38 |
155
156
  | ms | [移动应用安全](https://cloud.tencent.com/document/product/283) | 2024-08-16 02:04:04 |
156
157
  | msp | [迁移服务平台](https://cloud.tencent.com/document/product/659) | 2024-04-17 14:48:31 |
@@ -1 +1 @@
1
- export const sdkVersion = "4.0.940"
1
+ export const sdkVersion = "4.0.941"
@@ -149,6 +149,7 @@ export { mna } from "./mna"
149
149
  export { mongodb } from "./mongodb"
150
150
  export { monitor } from "./monitor"
151
151
  export { mps } from "./mps"
152
+ export { mqtt } from "./mqtt"
152
153
  export { mrs } from "./mrs"
153
154
  export { ms } from "./ms"
154
155
  export { msp } from "./msp"
@@ -0,0 +1,5 @@
1
+ import { v20240516 } from "./v20240516"
2
+
3
+ export const mqtt = {
4
+ v20240516: v20240516,
5
+ }
@@ -0,0 +1,6 @@
1
+ import * as Models from "./mqtt_models"
2
+ import { Client } from "./mqtt_client"
3
+ export const v20240516 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ }
@@ -0,0 +1,64 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
2
+ /*
3
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ import { AbstractClient } from "../../../common/abstract_client"
19
+ import { ClientConfig } from "../../../common/interface"
20
+ import {
21
+ DescribeInstanceListResponse,
22
+ DescribeInstanceRequest,
23
+ TagFilter,
24
+ Filter,
25
+ MQTTInstanceItem,
26
+ DescribeInstanceResponse,
27
+ DescribeInstanceListRequest,
28
+ } from "./mqtt_models"
29
+
30
+ /**
31
+ * mqtt client
32
+ * @class
33
+ */
34
+ export class Client extends AbstractClient {
35
+ constructor(clientConfig: ClientConfig) {
36
+ super("mqtt.tencentcloudapi.com", "2024-05-16", clientConfig)
37
+ }
38
+
39
+ /**
40
+ * 查询实例信息
41
+ */
42
+ async DescribeInstance(
43
+ req: DescribeInstanceRequest,
44
+ cb?: (error: string, rep: DescribeInstanceResponse) => void
45
+ ): Promise<DescribeInstanceResponse> {
46
+ return this.request("DescribeInstance", req, cb)
47
+ }
48
+
49
+ /**
50
+ * 获取实例列表,Filters参数使用说明如下:
51
+ 1. InstanceName, 名称模糊查询
52
+ 2. InstanceId,实例ID查询
53
+ 3. InstanceType, 实例类型查询,支持多选
54
+ 3. InstanceStatus,实例状态查询,支持多选
55
+
56
+ 当使用TagFilters查询时,Filters参数失效。
57
+ */
58
+ async DescribeInstanceList(
59
+ req: DescribeInstanceListRequest,
60
+ cb?: (error: string, rep: DescribeInstanceListResponse) => void
61
+ ): Promise<DescribeInstanceListResponse> {
62
+ return this.request("DescribeInstanceList", req, cb)
63
+ }
64
+ }
@@ -0,0 +1,315 @@
1
+ /*
2
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing,
11
+ * software distributed under the License is distributed on an
12
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
13
+ * KIND, either express or implied. See the License for the
14
+ * specific language governing permissions and limitations
15
+ * under the License.
16
+ */
17
+
18
+ /**
19
+ * DescribeInstanceList返回参数结构体
20
+ */
21
+ export interface DescribeInstanceListResponse {
22
+ /**
23
+ * 查询总数
24
+ 注意:此字段可能返回 null,表示取不到有效值。
25
+ */
26
+ TotalCount?: number
27
+ /**
28
+ * 实例列表
29
+ */
30
+ Data?: Array<MQTTInstanceItem>
31
+ /**
32
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
33
+ */
34
+ RequestId?: string
35
+ }
36
+
37
+ /**
38
+ * DescribeInstance请求参数结构体
39
+ */
40
+ export interface DescribeInstanceRequest {
41
+ /**
42
+ * 实例ID
43
+ */
44
+ InstanceId: string
45
+ }
46
+
47
+ /**
48
+ * 标签过滤器
49
+ */
50
+ export interface TagFilter {
51
+ /**
52
+ * 标签键名称
53
+ */
54
+ TagKey?: string
55
+ /**
56
+ * 标签键名称
57
+ */
58
+ TagValues?: Array<string>
59
+ }
60
+
61
+ /**
62
+ * 查询过滤器
63
+ */
64
+ export interface Filter {
65
+ /**
66
+ * 过滤条件名
67
+ */
68
+ Name: string
69
+ /**
70
+ * 过滤条件的值
71
+ */
72
+ Values: Array<string>
73
+ }
74
+
75
+ /**
76
+ * MQTT 实例信息
77
+ */
78
+ export interface MQTTInstanceItem {
79
+ /**
80
+ * 实例ID
81
+ */
82
+ InstanceId?: string
83
+ /**
84
+ * 实例名称
85
+ */
86
+ InstanceName?: string
87
+ /**
88
+ * 实例版本
89
+ */
90
+ Version?: string
91
+ /**
92
+ * 实例类型,
93
+ EXPERIMENT,体验版
94
+ BASIC,基础版
95
+ PRO,专业版
96
+ PLATINUM,铂金版
97
+ */
98
+ InstanceType?: string
99
+ /**
100
+ * 实例状态,
101
+ RUNNING, 运行中
102
+ MAINTAINING,维护中
103
+ ABNORMAL,异常
104
+ OVERDUE,欠费
105
+ DESTROYED,已删除
106
+ CREATING,创建中
107
+ MODIFYING,变配中
108
+ CREATE_FAILURE,创建失败
109
+ MODIFY_FAILURE,变配失败
110
+ DELETING,删除中
111
+ */
112
+ InstanceStatus?: string
113
+ /**
114
+ * 实例主题数上限
115
+ */
116
+ TopicNumLimit?: number
117
+ /**
118
+ * 备注信息
119
+ 注意:此字段可能返回 null,表示取不到有效值。
120
+ */
121
+ Remark?: string
122
+ /**
123
+ * 主题数量
124
+ */
125
+ TopicNum?: number
126
+ /**
127
+ * 商品规格
128
+ */
129
+ SkuCode?: string
130
+ /**
131
+ * 弹性TPS限流值
132
+ 注意:此字段可能返回 null,表示取不到有效值。
133
+ */
134
+ TpsLimit?: number
135
+ /**
136
+ * 创建时间
137
+ 注意:此字段可能返回 null,表示取不到有效值。
138
+ */
139
+ CreateTime?: number
140
+ /**
141
+ * 单客户端最大订阅数量
142
+ 注意:此字段可能返回 null,表示取不到有效值。
143
+ */
144
+ MaxSubscriptionPerClient?: number
145
+ /**
146
+ * 客户端连接数上线
147
+ 注意:此字段可能返回 null,表示取不到有效值。
148
+ */
149
+ ClientNumLimit?: number
150
+ /**
151
+ * 是否自动续费
152
+ 注意:此字段可能返回 null,表示取不到有效值。
153
+ */
154
+ RenewFlag?: number
155
+ /**
156
+ * 计费模式, POSTPAID,按量计费 PREPAID,包年包月
157
+ 注意:此字段可能返回 null,表示取不到有效值。
158
+ */
159
+ PayMode?: string
160
+ /**
161
+ * 到期时间,秒为单位
162
+ 注意:此字段可能返回 null,表示取不到有效值。
163
+ */
164
+ ExpiryTime?: number
165
+ /**
166
+ * 预销毁时间
167
+ 注意:此字段可能返回 null,表示取不到有效值。
168
+ */
169
+ DestroyTime?: number
170
+ /**
171
+ * 授权规则条数限制
172
+ 注意:此字段可能返回 null,表示取不到有效值。
173
+ */
174
+ AuthorizationPolicyLimit?: number
175
+ /**
176
+ * 最大ca配额
177
+ 注意:此字段可能返回 null,表示取不到有效值。
178
+ */
179
+ MaxCaNum?: number
180
+ /**
181
+ * 最大订阅数
182
+ 注意:此字段可能返回 null,表示取不到有效值。
183
+ */
184
+ MaxSubscription?: number
185
+ }
186
+
187
+ /**
188
+ * DescribeInstance返回参数结构体
189
+ */
190
+ export interface DescribeInstanceResponse {
191
+ /**
192
+ * 实例类型,
193
+ EXPERIMENT 体验版
194
+ BASIC 基础版
195
+ PRO 专业版
196
+ PLATINUM 铂金版
197
+ */
198
+ InstanceType?: string
199
+ /**
200
+ * 实例ID
201
+ */
202
+ InstanceId?: string
203
+ /**
204
+ * 实例名称
205
+ */
206
+ InstanceName?: string
207
+ /**
208
+ * 主题数量
209
+ */
210
+ TopicNum?: number
211
+ /**
212
+ * 实例最大主题数量
213
+ */
214
+ TopicNumLimit?: number
215
+ /**
216
+ * TPS限流值
217
+ */
218
+ TpsLimit?: number
219
+ /**
220
+ * 创建时间,秒为单位
221
+ */
222
+ CreatedTime?: number
223
+ /**
224
+ * 备注信息
225
+ */
226
+ Remark?: string
227
+ /**
228
+ * 实例状态
229
+ */
230
+ InstanceStatus?: string
231
+ /**
232
+ * 实例规格
233
+ */
234
+ SkuCode?: string
235
+ /**
236
+ * 单客户端最大订阅数
237
+ */
238
+ MaxSubscriptionPerClient?: number
239
+ /**
240
+ * 授权规则条数
241
+ */
242
+ AuthorizationPolicyLimit?: number
243
+ /**
244
+ * 客户端数量上限
245
+ */
246
+ ClientNumLimit?: number
247
+ /**
248
+ * 客户端证书注册方式:JITP,API
249
+ */
250
+ DeviceCertificateProvisionType?: string
251
+ /**
252
+ * 自动注册设备证书时是否自动激活
253
+ */
254
+ AutomaticActivation?: boolean
255
+ /**
256
+ * 是否自动续费
257
+ */
258
+ RenewFlag?: number
259
+ /**
260
+ * 计费模式, POSTPAID,按量计费 PREPAID,包年包月
261
+ */
262
+ PayMode?: string
263
+ /**
264
+ * 到期时间,秒为单位
265
+ */
266
+ ExpiryTime?: number
267
+ /**
268
+ * 预销毁时间
269
+ */
270
+ DestroyTime?: number
271
+ /**
272
+ * TLS,单向认证
273
+ mTLS,双向认证
274
+ BYOC;一机一证
275
+ */
276
+ X509Mode?: string
277
+ /**
278
+ * 最大Ca配额
279
+ */
280
+ MaxCaNum?: number
281
+ /**
282
+ * 证书注册码
283
+ */
284
+ RegistrationCode?: string
285
+ /**
286
+ * 集群最大订阅数
287
+ */
288
+ MaxSubscription?: number
289
+ /**
290
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
291
+ */
292
+ RequestId?: string
293
+ }
294
+
295
+ /**
296
+ * DescribeInstanceList请求参数结构体
297
+ */
298
+ export interface DescribeInstanceListRequest {
299
+ /**
300
+ * 查询条件列表
301
+ */
302
+ Filters?: Array<Filter>
303
+ /**
304
+ * 查询起始位置
305
+ */
306
+ Offset?: number
307
+ /**
308
+ * 查询结果限制数量
309
+ */
310
+ Limit?: number
311
+ /**
312
+ * 标签过滤器
313
+ */
314
+ TagFilters?: Array<TagFilter>
315
+ }
@@ -1 +1 @@
1
- export declare const sdkVersion = "4.0.940";
1
+ export declare const sdkVersion = "4.0.941";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sdkVersion = void 0;
4
- exports.sdkVersion = "4.0.940";
4
+ exports.sdkVersion = "4.0.941";
@@ -149,6 +149,7 @@ export { mna } from "./mna";
149
149
  export { mongodb } from "./mongodb";
150
150
  export { monitor } from "./monitor";
151
151
  export { mps } from "./mps";
152
+ export { mqtt } from "./mqtt";
152
153
  export { mrs } from "./mrs";
153
154
  export { ms } from "./ms";
154
155
  export { msp } from "./msp";
@@ -302,6 +302,8 @@ var monitor_1 = require("./monitor");
302
302
  Object.defineProperty(exports, "monitor", { enumerable: true, get: function () { return monitor_1.monitor; } });
303
303
  var mps_1 = require("./mps");
304
304
  Object.defineProperty(exports, "mps", { enumerable: true, get: function () { return mps_1.mps; } });
305
+ var mqtt_1 = require("./mqtt");
306
+ Object.defineProperty(exports, "mqtt", { enumerable: true, get: function () { return mqtt_1.mqtt; } });
305
307
  var mrs_1 = require("./mrs");
306
308
  Object.defineProperty(exports, "mrs", { enumerable: true, get: function () { return mrs_1.mrs; } });
307
309
  var ms_1 = require("./ms");
@@ -0,0 +1,6 @@
1
+ export declare const mqtt: {
2
+ v20240516: {
3
+ Client: typeof import("./v20240516/mqtt_client").Client;
4
+ Models: typeof import("./v20240516/mqtt_models");
5
+ };
6
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mqtt = void 0;
4
+ const v20240516_1 = require("./v20240516");
5
+ exports.mqtt = {
6
+ v20240516: v20240516_1.v20240516,
7
+ };
@@ -0,0 +1,6 @@
1
+ import * as Models from "./mqtt_models";
2
+ import { Client } from "./mqtt_client";
3
+ export declare const v20240516: {
4
+ Client: typeof Client;
5
+ Models: typeof Models;
6
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.v20240516 = void 0;
4
+ const Models = require("./mqtt_models");
5
+ const mqtt_client_1 = require("./mqtt_client");
6
+ exports.v20240516 = {
7
+ Client: mqtt_client_1.Client,
8
+ Models: Models
9
+ };
@@ -0,0 +1,24 @@
1
+ import { AbstractClient } from "../../../common/abstract_client";
2
+ import { ClientConfig } from "../../../common/interface";
3
+ import { DescribeInstanceListResponse, DescribeInstanceRequest, DescribeInstanceResponse, DescribeInstanceListRequest } from "./mqtt_models";
4
+ /**
5
+ * mqtt client
6
+ * @class
7
+ */
8
+ export declare class Client extends AbstractClient {
9
+ constructor(clientConfig: ClientConfig);
10
+ /**
11
+ * 查询实例信息
12
+ */
13
+ DescribeInstance(req: DescribeInstanceRequest, cb?: (error: string, rep: DescribeInstanceResponse) => void): Promise<DescribeInstanceResponse>;
14
+ /**
15
+ * 获取实例列表,Filters参数使用说明如下:
16
+ 1. InstanceName, 名称模糊查询
17
+ 2. InstanceId,实例ID查询
18
+ 3. InstanceType, 实例类型查询,支持多选
19
+ 3. InstanceStatus,实例状态查询,支持多选
20
+
21
+ 当使用TagFilters查询时,Filters参数失效。
22
+ */
23
+ DescribeInstanceList(req: DescribeInstanceListRequest, cb?: (error: string, rep: DescribeInstanceListResponse) => void): Promise<DescribeInstanceListResponse>;
24
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Client = void 0;
4
+ /* eslint-disable @typescript-eslint/no-unused-vars */
5
+ /*
6
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
7
+ *
8
+ * Licensed under the Apache License, Version 2.0 (the "License");
9
+ * you may not use this file except in compliance with the License.
10
+ * You may obtain a copy of the License at
11
+ *
12
+ * http://www.apache.org/licenses/LICENSE-2.0
13
+ *
14
+ * Unless required by applicable law or agreed to in writing,
15
+ * software distributed under the License is distributed on an
16
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
+ * KIND, either express or implied. See the License for the
18
+ * specific language governing permissions and limitations
19
+ * under the License.
20
+ */
21
+ const abstract_client_1 = require("../../../common/abstract_client");
22
+ /**
23
+ * mqtt client
24
+ * @class
25
+ */
26
+ class Client extends abstract_client_1.AbstractClient {
27
+ constructor(clientConfig) {
28
+ super("mqtt.tencentcloudapi.com", "2024-05-16", clientConfig);
29
+ }
30
+ /**
31
+ * 查询实例信息
32
+ */
33
+ async DescribeInstance(req, cb) {
34
+ return this.request("DescribeInstance", req, cb);
35
+ }
36
+ /**
37
+ * 获取实例列表,Filters参数使用说明如下:
38
+ 1. InstanceName, 名称模糊查询
39
+ 2. InstanceId,实例ID查询
40
+ 3. InstanceType, 实例类型查询,支持多选
41
+ 3. InstanceStatus,实例状态查询,支持多选
42
+
43
+ 当使用TagFilters查询时,Filters参数失效。
44
+ */
45
+ async DescribeInstanceList(req, cb) {
46
+ return this.request("DescribeInstanceList", req, cb);
47
+ }
48
+ }
49
+ exports.Client = Client;
@@ -0,0 +1,292 @@
1
+ /**
2
+ * DescribeInstanceList返回参数结构体
3
+ */
4
+ export interface DescribeInstanceListResponse {
5
+ /**
6
+ * 查询总数
7
+ 注意:此字段可能返回 null,表示取不到有效值。
8
+ */
9
+ TotalCount?: number;
10
+ /**
11
+ * 实例列表
12
+ */
13
+ Data?: Array<MQTTInstanceItem>;
14
+ /**
15
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
16
+ */
17
+ RequestId?: string;
18
+ }
19
+ /**
20
+ * DescribeInstance请求参数结构体
21
+ */
22
+ export interface DescribeInstanceRequest {
23
+ /**
24
+ * 实例ID
25
+ */
26
+ InstanceId: string;
27
+ }
28
+ /**
29
+ * 标签过滤器
30
+ */
31
+ export interface TagFilter {
32
+ /**
33
+ * 标签键名称
34
+ */
35
+ TagKey?: string;
36
+ /**
37
+ * 标签键名称
38
+ */
39
+ TagValues?: Array<string>;
40
+ }
41
+ /**
42
+ * 查询过滤器
43
+ */
44
+ export interface Filter {
45
+ /**
46
+ * 过滤条件名
47
+ */
48
+ Name: string;
49
+ /**
50
+ * 过滤条件的值
51
+ */
52
+ Values: Array<string>;
53
+ }
54
+ /**
55
+ * MQTT 实例信息
56
+ */
57
+ export interface MQTTInstanceItem {
58
+ /**
59
+ * 实例ID
60
+ */
61
+ InstanceId?: string;
62
+ /**
63
+ * 实例名称
64
+ */
65
+ InstanceName?: string;
66
+ /**
67
+ * 实例版本
68
+ */
69
+ Version?: string;
70
+ /**
71
+ * 实例类型,
72
+ EXPERIMENT,体验版
73
+ BASIC,基础版
74
+ PRO,专业版
75
+ PLATINUM,铂金版
76
+ */
77
+ InstanceType?: string;
78
+ /**
79
+ * 实例状态,
80
+ RUNNING, 运行中
81
+ MAINTAINING,维护中
82
+ ABNORMAL,异常
83
+ OVERDUE,欠费
84
+ DESTROYED,已删除
85
+ CREATING,创建中
86
+ MODIFYING,变配中
87
+ CREATE_FAILURE,创建失败
88
+ MODIFY_FAILURE,变配失败
89
+ DELETING,删除中
90
+ */
91
+ InstanceStatus?: string;
92
+ /**
93
+ * 实例主题数上限
94
+ */
95
+ TopicNumLimit?: number;
96
+ /**
97
+ * 备注信息
98
+ 注意:此字段可能返回 null,表示取不到有效值。
99
+ */
100
+ Remark?: string;
101
+ /**
102
+ * 主题数量
103
+ */
104
+ TopicNum?: number;
105
+ /**
106
+ * 商品规格
107
+ */
108
+ SkuCode?: string;
109
+ /**
110
+ * 弹性TPS限流值
111
+ 注意:此字段可能返回 null,表示取不到有效值。
112
+ */
113
+ TpsLimit?: number;
114
+ /**
115
+ * 创建时间
116
+ 注意:此字段可能返回 null,表示取不到有效值。
117
+ */
118
+ CreateTime?: number;
119
+ /**
120
+ * 单客户端最大订阅数量
121
+ 注意:此字段可能返回 null,表示取不到有效值。
122
+ */
123
+ MaxSubscriptionPerClient?: number;
124
+ /**
125
+ * 客户端连接数上线
126
+ 注意:此字段可能返回 null,表示取不到有效值。
127
+ */
128
+ ClientNumLimit?: number;
129
+ /**
130
+ * 是否自动续费
131
+ 注意:此字段可能返回 null,表示取不到有效值。
132
+ */
133
+ RenewFlag?: number;
134
+ /**
135
+ * 计费模式, POSTPAID,按量计费 PREPAID,包年包月
136
+ 注意:此字段可能返回 null,表示取不到有效值。
137
+ */
138
+ PayMode?: string;
139
+ /**
140
+ * 到期时间,秒为单位
141
+ 注意:此字段可能返回 null,表示取不到有效值。
142
+ */
143
+ ExpiryTime?: number;
144
+ /**
145
+ * 预销毁时间
146
+ 注意:此字段可能返回 null,表示取不到有效值。
147
+ */
148
+ DestroyTime?: number;
149
+ /**
150
+ * 授权规则条数限制
151
+ 注意:此字段可能返回 null,表示取不到有效值。
152
+ */
153
+ AuthorizationPolicyLimit?: number;
154
+ /**
155
+ * 最大ca配额
156
+ 注意:此字段可能返回 null,表示取不到有效值。
157
+ */
158
+ MaxCaNum?: number;
159
+ /**
160
+ * 最大订阅数
161
+ 注意:此字段可能返回 null,表示取不到有效值。
162
+ */
163
+ MaxSubscription?: number;
164
+ }
165
+ /**
166
+ * DescribeInstance返回参数结构体
167
+ */
168
+ export interface DescribeInstanceResponse {
169
+ /**
170
+ * 实例类型,
171
+ EXPERIMENT 体验版
172
+ BASIC 基础版
173
+ PRO 专业版
174
+ PLATINUM 铂金版
175
+ */
176
+ InstanceType?: string;
177
+ /**
178
+ * 实例ID
179
+ */
180
+ InstanceId?: string;
181
+ /**
182
+ * 实例名称
183
+ */
184
+ InstanceName?: string;
185
+ /**
186
+ * 主题数量
187
+ */
188
+ TopicNum?: number;
189
+ /**
190
+ * 实例最大主题数量
191
+ */
192
+ TopicNumLimit?: number;
193
+ /**
194
+ * TPS限流值
195
+ */
196
+ TpsLimit?: number;
197
+ /**
198
+ * 创建时间,秒为单位
199
+ */
200
+ CreatedTime?: number;
201
+ /**
202
+ * 备注信息
203
+ */
204
+ Remark?: string;
205
+ /**
206
+ * 实例状态
207
+ */
208
+ InstanceStatus?: string;
209
+ /**
210
+ * 实例规格
211
+ */
212
+ SkuCode?: string;
213
+ /**
214
+ * 单客户端最大订阅数
215
+ */
216
+ MaxSubscriptionPerClient?: number;
217
+ /**
218
+ * 授权规则条数
219
+ */
220
+ AuthorizationPolicyLimit?: number;
221
+ /**
222
+ * 客户端数量上限
223
+ */
224
+ ClientNumLimit?: number;
225
+ /**
226
+ * 客户端证书注册方式:JITP,API
227
+ */
228
+ DeviceCertificateProvisionType?: string;
229
+ /**
230
+ * 自动注册设备证书时是否自动激活
231
+ */
232
+ AutomaticActivation?: boolean;
233
+ /**
234
+ * 是否自动续费
235
+ */
236
+ RenewFlag?: number;
237
+ /**
238
+ * 计费模式, POSTPAID,按量计费 PREPAID,包年包月
239
+ */
240
+ PayMode?: string;
241
+ /**
242
+ * 到期时间,秒为单位
243
+ */
244
+ ExpiryTime?: number;
245
+ /**
246
+ * 预销毁时间
247
+ */
248
+ DestroyTime?: number;
249
+ /**
250
+ * TLS,单向认证
251
+ mTLS,双向认证
252
+ BYOC;一机一证
253
+ */
254
+ X509Mode?: string;
255
+ /**
256
+ * 最大Ca配额
257
+ */
258
+ MaxCaNum?: number;
259
+ /**
260
+ * 证书注册码
261
+ */
262
+ RegistrationCode?: string;
263
+ /**
264
+ * 集群最大订阅数
265
+ */
266
+ MaxSubscription?: number;
267
+ /**
268
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
269
+ */
270
+ RequestId?: string;
271
+ }
272
+ /**
273
+ * DescribeInstanceList请求参数结构体
274
+ */
275
+ export interface DescribeInstanceListRequest {
276
+ /**
277
+ * 查询条件列表
278
+ */
279
+ Filters?: Array<Filter>;
280
+ /**
281
+ * 查询起始位置
282
+ */
283
+ Offset?: number;
284
+ /**
285
+ * 查询结果限制数量
286
+ */
287
+ Limit?: number;
288
+ /**
289
+ * 标签过滤器
290
+ */
291
+ TagFilters?: Array<TagFilter>;
292
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ *
5
+ * Licensed under the Apache License, Version 2.0 (the "License");
6
+ * you may not use this file except in compliance with the License.
7
+ * You may obtain a copy of the License at
8
+ *
9
+ * http://www.apache.org/licenses/LICENSE-2.0
10
+ *
11
+ * Unless required by applicable law or agreed to in writing,
12
+ * software distributed under the License is distributed on an
13
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14
+ * KIND, either express or implied. See the License for the
15
+ * specific language governing permissions and limitations
16
+ * under the License.
17
+ */
18
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,41 @@
1
+
2
+ const expect = require("chai").expect
3
+ const tencentcloud = require("../../tencentcloud-sdk-nodejs")
4
+ const client = new tencentcloud.mqtt.v20240516.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("mqtt.v20240516.test.js", function () {
20
+
21
+ it("mqtt.v20240516.DescribeInstance", async function () {
22
+ try {
23
+ const data = await client.DescribeInstance({})
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("mqtt.v20240516.DescribeInstanceList", async function () {
32
+ try {
33
+ const data = await client.DescribeInstanceList({})
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
+ })