tencentcloud-sdk-nodejs-mqtt 4.0.1035 → 4.0.1046

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-mqtt",
3
- "version": "4.0.1035",
3
+ "version": "4.0.1046",
4
4
  "description": "Tencent Cloud API NODEJS SDK",
5
5
  "main": "tencentcloud/index.js",
6
6
  "scripts": {
@@ -17,6 +17,7 @@
17
17
  */
18
18
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
19
19
  import {
20
+ UpdateAuthorizationPolicyPriorityResponse,
20
21
  DeleteUserRequest,
21
22
  ModifyJWTAuthenticatorResponse,
22
23
  CaCertificateItem,
@@ -26,7 +27,7 @@ import {
26
27
  ApplyRegistrationCodeRequest,
27
28
  ModifyJWTAuthenticatorRequest,
28
29
  AuthorizationPolicyPriority,
29
- ModifyInstanceRequest,
30
+ DescribeInsPublicEndpointsResponse,
30
31
  DeleteTopicRequest,
31
32
  ModifyUserResponse,
32
33
  DescribeCaCertificateResponse,
@@ -38,10 +39,11 @@ import {
38
39
  ProductSkuItem,
39
40
  ModifyJWKSAuthenticatorRequest,
40
41
  RegisterCaCertificateResponse,
42
+ DeleteInstanceRequest,
43
+ ModifyInstanceRequest,
41
44
  RegisterDeviceCertificateResponse,
42
45
  MQTTAuthenticatorItem,
43
46
  Tag,
44
- DescribeDeviceCertificateRequest,
45
47
  MQTTInstanceItem,
46
48
  DescribeInstanceListResponse,
47
49
  ApplyRegistrationCodeResponse,
@@ -51,6 +53,7 @@ import {
51
53
  CreateInsPublicEndpointResponse,
52
54
  CreateUserResponse,
53
55
  CreateAuthorizationPolicyRequest,
56
+ PublishMessageResponse,
54
57
  DescribeAuthenticatorResponse,
55
58
  DeactivateCaCertificateResponse,
56
59
  DeleteCaCertificateRequest,
@@ -75,10 +78,11 @@ import {
75
78
  ActivateCaCertificateRequest,
76
79
  ActivateDeviceCertificateResponse,
77
80
  DescribeTopicRequest,
78
- UpdateAuthorizationPolicyPriorityResponse,
81
+ PublishMessageRequest,
79
82
  CreateTopicResponse,
80
83
  DeleteInsPublicEndpointResponse,
81
84
  MQTTEndpointItem,
85
+ DescribeInsVPCEndpointsRequest,
82
86
  DescribeTopicListRequest,
83
87
  AuthorizationPolicyItem,
84
88
  RevokedDeviceCertificateRequest,
@@ -95,8 +99,8 @@ import {
95
99
  CreateUserRequest,
96
100
  DescribeInstanceResponse,
97
101
  ModifyInstanceCertBindingResponse,
98
- DeleteInstanceRequest,
99
- DescribeInsPublicEndpointsResponse,
102
+ DescribeInsVPCEndpointsResponse,
103
+ DescribeDeviceCertificateRequest,
100
104
  ModifyInsPublicEndpointRequest,
101
105
  DeleteInsPublicEndpointRequest,
102
106
  DescribeUserListRequest,
@@ -237,6 +241,16 @@ export class Client extends TencentCloudCommon.AbstractClient {
237
241
  return this.request("DeleteInstance", req, cb)
238
242
  }
239
243
 
244
+ /**
245
+ * 发布 MQTT 消息到消息主题或客户端
246
+ */
247
+ async PublishMessage(
248
+ req: PublishMessageRequest,
249
+ cb?: (error: string, rep: PublishMessageResponse) => void
250
+ ): Promise<PublishMessageResponse> {
251
+ return this.request("PublishMessage", req, cb)
252
+ }
253
+
240
254
  /**
241
255
  * 修改MQTT JWKS 认证器
242
256
  */
@@ -318,6 +332,16 @@ export class Client extends TencentCloudCommon.AbstractClient {
318
332
  return this.request("ModifyInstanceCertBinding", req, cb)
319
333
  }
320
334
 
335
+ /**
336
+ * 查询MQTT实例公网接入点
337
+ */
338
+ async DescribeInsVPCEndpoints(
339
+ req: DescribeInsVPCEndpointsRequest,
340
+ cb?: (error: string, rep: DescribeInsVPCEndpointsResponse) => void
341
+ ): Promise<DescribeInsVPCEndpointsResponse> {
342
+ return this.request("DescribeInsVPCEndpoints", req, cb)
343
+ }
344
+
321
345
  /**
322
346
  * 获取产品售卖规格
323
347
  */
@@ -15,6 +15,16 @@
15
15
  * under the License.
16
16
  */
17
17
 
18
+ /**
19
+ * UpdateAuthorizationPolicyPriority返回参数结构体
20
+ */
21
+ export interface UpdateAuthorizationPolicyPriorityResponse {
22
+ /**
23
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
24
+ */
25
+ RequestId?: string
26
+ }
27
+
18
28
  /**
19
29
  * DeleteUser请求参数结构体
20
30
  */
@@ -206,35 +216,38 @@ export interface AuthorizationPolicyPriority {
206
216
  }
207
217
 
208
218
  /**
209
- * ModifyInstance请求参数结构体
219
+ * DescribeInsPublicEndpoints返回参数结构体
210
220
  */
211
- export interface ModifyInstanceRequest {
221
+ export interface DescribeInsPublicEndpointsResponse {
212
222
  /**
213
- * 实例ID
223
+ * 接入点
214
224
  */
215
- InstanceId: string
225
+ Endpoints?: Array<MQTTEndpointItem>
216
226
  /**
217
- * 要修改实例名称
227
+ * 实例id
218
228
  */
219
- Name?: string
229
+ InstanceId?: string
220
230
  /**
221
- * 要修改的备注信息
231
+ * 带宽
222
232
  */
223
- Remark?: string
233
+ Bandwidth?: number
224
234
  /**
225
- * 要变更的配置规格
235
+ * 公网访问规则
226
236
  */
227
- SkuCode?: string
237
+ Rules?: Array<PublicAccessRule>
228
238
  /**
229
- * 客户端证书注册方式:
230
- JITP:自动注册
231
- API:手动通过API注册
239
+ * 公网状态:
240
+ NORMAL-正常
241
+ CLOSING-关闭中
242
+ MODIFYING-修改中
243
+ CREATING-开启中
244
+ CLOSE-关闭
232
245
  */
233
- DeviceCertificateProvisionType?: string
246
+ Status?: string
234
247
  /**
235
- * 自动注册证书是否自动激活
248
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
236
249
  */
237
- AutomaticActivation?: boolean
250
+ RequestId?: string
238
251
  }
239
252
 
240
253
  /**
@@ -508,6 +521,48 @@ export interface RegisterCaCertificateResponse {
508
521
  RequestId?: string
509
522
  }
510
523
 
524
+ /**
525
+ * DeleteInstance请求参数结构体
526
+ */
527
+ export interface DeleteInstanceRequest {
528
+ /**
529
+ * 实例ID
530
+ */
531
+ InstanceId: string
532
+ }
533
+
534
+ /**
535
+ * ModifyInstance请求参数结构体
536
+ */
537
+ export interface ModifyInstanceRequest {
538
+ /**
539
+ * 实例ID
540
+ */
541
+ InstanceId: string
542
+ /**
543
+ * 要修改实例名称
544
+ */
545
+ Name?: string
546
+ /**
547
+ * 要修改的备注信息
548
+ */
549
+ Remark?: string
550
+ /**
551
+ * 要变更的配置规格
552
+ */
553
+ SkuCode?: string
554
+ /**
555
+ * 客户端证书注册方式:
556
+ JITP:自动注册
557
+ API:手动通过API注册
558
+ */
559
+ DeviceCertificateProvisionType?: string
560
+ /**
561
+ * 自动注册证书是否自动激活
562
+ */
563
+ AutomaticActivation?: boolean
564
+ }
565
+
511
566
  /**
512
567
  * RegisterDeviceCertificate返回参数结构体
513
568
  */
@@ -565,20 +620,6 @@ export interface Tag {
565
620
  TagValue: string
566
621
  }
567
622
 
568
- /**
569
- * DescribeDeviceCertificate请求参数结构体
570
- */
571
- export interface DescribeDeviceCertificateRequest {
572
- /**
573
- * 设备证书sn
574
- */
575
- DeviceCertificateSn: string
576
- /**
577
- * 集群id
578
- */
579
- InstanceId: string
580
- }
581
-
582
623
  /**
583
624
  * MQTT 实例信息
584
625
  */
@@ -836,6 +877,16 @@ export interface CreateAuthorizationPolicyRequest {
836
877
  Remark?: string
837
878
  }
838
879
 
880
+ /**
881
+ * PublishMessage返回参数结构体
882
+ */
883
+ export interface PublishMessageResponse {
884
+ /**
885
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
886
+ */
887
+ RequestId?: string
888
+ }
889
+
839
890
  /**
840
891
  * DescribeAuthenticator返回参数结构体
841
892
  */
@@ -1190,13 +1241,37 @@ export interface DescribeTopicRequest {
1190
1241
  }
1191
1242
 
1192
1243
  /**
1193
- * UpdateAuthorizationPolicyPriority返回参数结构体
1244
+ * PublishMessage请求参数结构体
1194
1245
  */
1195
- export interface UpdateAuthorizationPolicyPriorityResponse {
1246
+ export interface PublishMessageRequest {
1196
1247
  /**
1197
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1248
+ * 实例ID
1198
1249
  */
1199
- RequestId?: string
1250
+ InstanceId: string
1251
+ /**
1252
+ * 消息 payload,需要按 encoding 指定的编码方式进行编码
1253
+ */
1254
+ Payload: string
1255
+ /**
1256
+ * 消息目的主题,该参数与 TargetClientId 二选一
1257
+ */
1258
+ TargetTopic?: string
1259
+ /**
1260
+ * 消息目的客户端 ID,该参数与 TargetTopic 二选一
1261
+ */
1262
+ TargetClientId?: string
1263
+ /**
1264
+ * 消息 payload 编码,可选 plain 或 base64,默认为 plain(即不编码)
1265
+ */
1266
+ Encoding?: string
1267
+ /**
1268
+ * 消息的服务质量等级,默认为 1
1269
+ */
1270
+ Qos?: number
1271
+ /**
1272
+ * 是否为保留消息,默认为 false,且仅支持发布到主题的消息设置为 true
1273
+ */
1274
+ Retain?: boolean
1200
1275
  }
1201
1276
 
1202
1277
  /**
@@ -1268,6 +1343,16 @@ export interface MQTTEndpointItem {
1268
1343
  Ip?: string
1269
1344
  }
1270
1345
 
1346
+ /**
1347
+ * DescribeInsVPCEndpoints请求参数结构体
1348
+ */
1349
+ export interface DescribeInsVPCEndpointsRequest {
1350
+ /**
1351
+ * 实例ID
1352
+ */
1353
+ InstanceId: string
1354
+ }
1355
+
1271
1356
  /**
1272
1357
  * DescribeTopicList请求参数结构体
1273
1358
  */
@@ -1750,48 +1835,31 @@ export interface ModifyInstanceCertBindingResponse {
1750
1835
  }
1751
1836
 
1752
1837
  /**
1753
- * DeleteInstance请求参数结构体
1754
- */
1755
- export interface DeleteInstanceRequest {
1756
- /**
1757
- * 实例ID
1758
- */
1759
- InstanceId: string
1760
- }
1761
-
1762
- /**
1763
- * DescribeInsPublicEndpoints返回参数结构体
1838
+ * DescribeInsVPCEndpoints返回参数结构体
1764
1839
  */
1765
- export interface DescribeInsPublicEndpointsResponse {
1840
+ export interface DescribeInsVPCEndpointsResponse {
1766
1841
  /**
1767
1842
  * 接入点
1768
1843
  */
1769
1844
  Endpoints?: Array<MQTTEndpointItem>
1770
1845
  /**
1771
- * 实例id
1772
- */
1773
- InstanceId?: string
1774
- /**
1775
- * 带宽
1776
- */
1777
- Bandwidth?: number
1778
- /**
1779
- * 公网访问规则
1846
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1780
1847
  */
1781
- Rules?: Array<PublicAccessRule>
1848
+ RequestId?: string
1849
+ }
1850
+
1851
+ /**
1852
+ * DescribeDeviceCertificate请求参数结构体
1853
+ */
1854
+ export interface DescribeDeviceCertificateRequest {
1782
1855
  /**
1783
- * 公网状态:
1784
- NORMAL-正常
1785
- CLOSING-关闭中
1786
- MODIFYING-修改中
1787
- CREATING-开启中
1788
- CLOSE-关闭
1856
+ * 设备证书sn
1789
1857
  */
1790
- Status?: string
1858
+ DeviceCertificateSn: string
1791
1859
  /**
1792
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1860
+ * 集群id
1793
1861
  */
1794
- RequestId?: string
1862
+ InstanceId: string
1795
1863
  }
1796
1864
 
1797
1865
  /**
@@ -1,5 +1,5 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { DeleteUserRequest, ModifyJWTAuthenticatorResponse, ModifyAuthorizationPolicyResponse, ActivateDeviceCertificateRequest, CreateInstanceResponse, ApplyRegistrationCodeRequest, ModifyJWTAuthenticatorRequest, ModifyInstanceRequest, DeleteTopicRequest, ModifyUserResponse, DescribeCaCertificateResponse, DescribeDeviceCertificatesRequest, DeleteAuthenticatorRequest, DeleteAuthorizationPolicyResponse, ModifyJWKSAuthenticatorRequest, RegisterCaCertificateResponse, RegisterDeviceCertificateResponse, DescribeDeviceCertificateRequest, DescribeInstanceListResponse, ApplyRegistrationCodeResponse, ModifyInstanceResponse, ModifyInsPublicEndpointResponse, ModifyJWKSAuthenticatorResponse, CreateInsPublicEndpointResponse, CreateUserResponse, CreateAuthorizationPolicyRequest, DescribeAuthenticatorResponse, DeactivateCaCertificateResponse, DeleteCaCertificateRequest, DeleteDeviceCertificateRequest, DescribeInsPublicEndpointsRequest, DeleteUserResponse, ActivateCaCertificateResponse, DeleteDeviceCertificateResponse, DeleteInstanceResponse, DescribeProductSKUListResponse, CreateJWKSAuthenticatorRequest, DescribeTopicResponse, CreateJWKSAuthenticatorResponse, DescribeAuthorizationPoliciesResponse, CreateTopicRequest, DeleteCaCertificateResponse, DescribeUserListResponse, ModifyTopicResponse, DeactivateDeviceCertificateResponse, ActivateCaCertificateRequest, ActivateDeviceCertificateResponse, DescribeTopicRequest, UpdateAuthorizationPolicyPriorityResponse, CreateTopicResponse, DeleteInsPublicEndpointResponse, DescribeTopicListRequest, RevokedDeviceCertificateRequest, CreateAuthorizationPolicyResponse, DescribeAuthenticatorRequest, RegisterCaCertificateRequest, CreateInstanceRequest, CreateInsPublicEndpointRequest, RegisterDeviceCertificateRequest, DeactivateDeviceCertificateRequest, DescribeDeviceCertificatesResponse, ModifyTopicRequest, CreateUserRequest, DescribeInstanceResponse, ModifyInstanceCertBindingResponse, DeleteInstanceRequest, DescribeInsPublicEndpointsResponse, ModifyInsPublicEndpointRequest, DeleteInsPublicEndpointRequest, DescribeUserListRequest, DescribeCaCertificateRequest, UpdateAuthorizationPolicyPriorityRequest, CreateJWTAuthenticatorResponse, DeleteAuthorizationPolicyRequest, DescribeAuthorizationPoliciesRequest, DescribeProductSKUListRequest, DescribeTopicListResponse, DescribeDeviceCertificateResponse, DescribeInstanceListRequest, DeactivateCaCertificateRequest, CreateJWTAuthenticatorRequest, DescribeCaCertificatesRequest, ModifyAuthorizationPolicyRequest, RevokedDeviceCertificateResponse, DeleteTopicResponse, ModifyInstanceCertBindingRequest, DescribeInstanceRequest, DescribeCaCertificatesResponse, ModifyUserRequest, DeleteAuthenticatorResponse } from "./mqtt_models";
2
+ import { UpdateAuthorizationPolicyPriorityResponse, DeleteUserRequest, ModifyJWTAuthenticatorResponse, ModifyAuthorizationPolicyResponse, ActivateDeviceCertificateRequest, CreateInstanceResponse, ApplyRegistrationCodeRequest, ModifyJWTAuthenticatorRequest, DescribeInsPublicEndpointsResponse, DeleteTopicRequest, ModifyUserResponse, DescribeCaCertificateResponse, DescribeDeviceCertificatesRequest, DeleteAuthenticatorRequest, DeleteAuthorizationPolicyResponse, ModifyJWKSAuthenticatorRequest, RegisterCaCertificateResponse, DeleteInstanceRequest, ModifyInstanceRequest, RegisterDeviceCertificateResponse, DescribeInstanceListResponse, ApplyRegistrationCodeResponse, ModifyInstanceResponse, ModifyInsPublicEndpointResponse, ModifyJWKSAuthenticatorResponse, CreateInsPublicEndpointResponse, CreateUserResponse, CreateAuthorizationPolicyRequest, PublishMessageResponse, DescribeAuthenticatorResponse, DeactivateCaCertificateResponse, DeleteCaCertificateRequest, DeleteDeviceCertificateRequest, DescribeInsPublicEndpointsRequest, DeleteUserResponse, ActivateCaCertificateResponse, DeleteDeviceCertificateResponse, DeleteInstanceResponse, DescribeProductSKUListResponse, CreateJWKSAuthenticatorRequest, DescribeTopicResponse, CreateJWKSAuthenticatorResponse, DescribeAuthorizationPoliciesResponse, CreateTopicRequest, DeleteCaCertificateResponse, DescribeUserListResponse, ModifyTopicResponse, DeactivateDeviceCertificateResponse, ActivateCaCertificateRequest, ActivateDeviceCertificateResponse, DescribeTopicRequest, PublishMessageRequest, CreateTopicResponse, DeleteInsPublicEndpointResponse, DescribeInsVPCEndpointsRequest, DescribeTopicListRequest, RevokedDeviceCertificateRequest, CreateAuthorizationPolicyResponse, DescribeAuthenticatorRequest, RegisterCaCertificateRequest, CreateInstanceRequest, CreateInsPublicEndpointRequest, RegisterDeviceCertificateRequest, DeactivateDeviceCertificateRequest, DescribeDeviceCertificatesResponse, ModifyTopicRequest, CreateUserRequest, DescribeInstanceResponse, ModifyInstanceCertBindingResponse, DescribeInsVPCEndpointsResponse, DescribeDeviceCertificateRequest, ModifyInsPublicEndpointRequest, DeleteInsPublicEndpointRequest, DescribeUserListRequest, DescribeCaCertificateRequest, UpdateAuthorizationPolicyPriorityRequest, CreateJWTAuthenticatorResponse, DeleteAuthorizationPolicyRequest, DescribeAuthorizationPoliciesRequest, DescribeProductSKUListRequest, DescribeTopicListResponse, DescribeDeviceCertificateResponse, DescribeInstanceListRequest, DeactivateCaCertificateRequest, CreateJWTAuthenticatorRequest, DescribeCaCertificatesRequest, ModifyAuthorizationPolicyRequest, RevokedDeviceCertificateResponse, DeleteTopicResponse, ModifyInstanceCertBindingRequest, DescribeInstanceRequest, DescribeCaCertificatesResponse, ModifyUserRequest, DeleteAuthenticatorResponse } from "./mqtt_models";
3
3
  /**
4
4
  * mqtt client
5
5
  * @class
@@ -48,6 +48,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
48
48
  * 删除MQTT实例
49
49
  */
50
50
  DeleteInstance(req: DeleteInstanceRequest, cb?: (error: string, rep: DeleteInstanceResponse) => void): Promise<DeleteInstanceResponse>;
51
+ /**
52
+ * 发布 MQTT 消息到消息主题或客户端
53
+ */
54
+ PublishMessage(req: PublishMessageRequest, cb?: (error: string, rep: PublishMessageResponse) => void): Promise<PublishMessageResponse>;
51
55
  /**
52
56
  * 修改MQTT JWKS 认证器
53
57
  */
@@ -81,6 +85,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
81
85
  参数传空,则为删除证书
82
86
  */
83
87
  ModifyInstanceCertBinding(req: ModifyInstanceCertBindingRequest, cb?: (error: string, rep: ModifyInstanceCertBindingResponse) => void): Promise<ModifyInstanceCertBindingResponse>;
88
+ /**
89
+ * 查询MQTT实例公网接入点
90
+ */
91
+ DescribeInsVPCEndpoints(req: DescribeInsVPCEndpointsRequest, cb?: (error: string, rep: DescribeInsVPCEndpointsResponse) => void): Promise<DescribeInsVPCEndpointsResponse>;
84
92
  /**
85
93
  * 获取产品售卖规格
86
94
  */
@@ -89,6 +89,12 @@ class Client extends TencentCloudCommon.AbstractClient {
89
89
  async DeleteInstance(req, cb) {
90
90
  return this.request("DeleteInstance", req, cb);
91
91
  }
92
+ /**
93
+ * 发布 MQTT 消息到消息主题或客户端
94
+ */
95
+ async PublishMessage(req, cb) {
96
+ return this.request("PublishMessage", req, cb);
97
+ }
92
98
  /**
93
99
  * 修改MQTT JWKS 认证器
94
100
  */
@@ -138,6 +144,12 @@ class Client extends TencentCloudCommon.AbstractClient {
138
144
  async ModifyInstanceCertBinding(req, cb) {
139
145
  return this.request("ModifyInstanceCertBinding", req, cb);
140
146
  }
147
+ /**
148
+ * 查询MQTT实例公网接入点
149
+ */
150
+ async DescribeInsVPCEndpoints(req, cb) {
151
+ return this.request("DescribeInsVPCEndpoints", req, cb);
152
+ }
141
153
  /**
142
154
  * 获取产品售卖规格
143
155
  */
@@ -1,3 +1,12 @@
1
+ /**
2
+ * UpdateAuthorizationPolicyPriority返回参数结构体
3
+ */
4
+ export interface UpdateAuthorizationPolicyPriorityResponse {
5
+ /**
6
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7
+ */
8
+ RequestId?: string;
9
+ }
1
10
  /**
2
11
  * DeleteUser请求参数结构体
3
12
  */
@@ -180,35 +189,38 @@ export interface AuthorizationPolicyPriority {
180
189
  Priority: number;
181
190
  }
182
191
  /**
183
- * ModifyInstance请求参数结构体
192
+ * DescribeInsPublicEndpoints返回参数结构体
184
193
  */
185
- export interface ModifyInstanceRequest {
194
+ export interface DescribeInsPublicEndpointsResponse {
186
195
  /**
187
- * 实例ID
196
+ * 接入点
188
197
  */
189
- InstanceId: string;
198
+ Endpoints?: Array<MQTTEndpointItem>;
190
199
  /**
191
- * 要修改实例名称
200
+ * 实例id
192
201
  */
193
- Name?: string;
202
+ InstanceId?: string;
194
203
  /**
195
- * 要修改的备注信息
204
+ * 带宽
196
205
  */
197
- Remark?: string;
206
+ Bandwidth?: number;
198
207
  /**
199
- * 要变更的配置规格
208
+ * 公网访问规则
200
209
  */
201
- SkuCode?: string;
210
+ Rules?: Array<PublicAccessRule>;
202
211
  /**
203
- * 客户端证书注册方式:
204
- JITP:自动注册
205
- API:手动通过API注册
212
+ * 公网状态:
213
+ NORMAL-正常
214
+ CLOSING-关闭中
215
+ MODIFYING-修改中
216
+ CREATING-开启中
217
+ CLOSE-关闭
206
218
  */
207
- DeviceCertificateProvisionType?: string;
219
+ Status?: string;
208
220
  /**
209
- * 自动注册证书是否自动激活
221
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
210
222
  */
211
- AutomaticActivation?: boolean;
223
+ RequestId?: string;
212
224
  }
213
225
  /**
214
226
  * DeleteTopic请求参数结构体
@@ -470,6 +482,46 @@ export interface RegisterCaCertificateResponse {
470
482
  */
471
483
  RequestId?: string;
472
484
  }
485
+ /**
486
+ * DeleteInstance请求参数结构体
487
+ */
488
+ export interface DeleteInstanceRequest {
489
+ /**
490
+ * 实例ID
491
+ */
492
+ InstanceId: string;
493
+ }
494
+ /**
495
+ * ModifyInstance请求参数结构体
496
+ */
497
+ export interface ModifyInstanceRequest {
498
+ /**
499
+ * 实例ID
500
+ */
501
+ InstanceId: string;
502
+ /**
503
+ * 要修改实例名称
504
+ */
505
+ Name?: string;
506
+ /**
507
+ * 要修改的备注信息
508
+ */
509
+ Remark?: string;
510
+ /**
511
+ * 要变更的配置规格
512
+ */
513
+ SkuCode?: string;
514
+ /**
515
+ * 客户端证书注册方式:
516
+ JITP:自动注册
517
+ API:手动通过API注册
518
+ */
519
+ DeviceCertificateProvisionType?: string;
520
+ /**
521
+ * 自动注册证书是否自动激活
522
+ */
523
+ AutomaticActivation?: boolean;
524
+ }
473
525
  /**
474
526
  * RegisterDeviceCertificate返回参数结构体
475
527
  */
@@ -524,19 +576,6 @@ export interface Tag {
524
576
  */
525
577
  TagValue: string;
526
578
  }
527
- /**
528
- * DescribeDeviceCertificate请求参数结构体
529
- */
530
- export interface DescribeDeviceCertificateRequest {
531
- /**
532
- * 设备证书sn
533
- */
534
- DeviceCertificateSn: string;
535
- /**
536
- * 集群id
537
- */
538
- InstanceId: string;
539
- }
540
579
  /**
541
580
  * MQTT 实例信息
542
581
  */
@@ -785,6 +824,15 @@ export interface CreateAuthorizationPolicyRequest {
785
824
  */
786
825
  Remark?: string;
787
826
  }
827
+ /**
828
+ * PublishMessage返回参数结构体
829
+ */
830
+ export interface PublishMessageResponse {
831
+ /**
832
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
833
+ */
834
+ RequestId?: string;
835
+ }
788
836
  /**
789
837
  * DescribeAuthenticator返回参数结构体
790
838
  */
@@ -1115,13 +1163,37 @@ export interface DescribeTopicRequest {
1115
1163
  Topic: string;
1116
1164
  }
1117
1165
  /**
1118
- * UpdateAuthorizationPolicyPriority返回参数结构体
1166
+ * PublishMessage请求参数结构体
1119
1167
  */
1120
- export interface UpdateAuthorizationPolicyPriorityResponse {
1168
+ export interface PublishMessageRequest {
1121
1169
  /**
1122
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1170
+ * 实例ID
1123
1171
  */
1124
- RequestId?: string;
1172
+ InstanceId: string;
1173
+ /**
1174
+ * 消息 payload,需要按 encoding 指定的编码方式进行编码
1175
+ */
1176
+ Payload: string;
1177
+ /**
1178
+ * 消息目的主题,该参数与 TargetClientId 二选一
1179
+ */
1180
+ TargetTopic?: string;
1181
+ /**
1182
+ * 消息目的客户端 ID,该参数与 TargetTopic 二选一
1183
+ */
1184
+ TargetClientId?: string;
1185
+ /**
1186
+ * 消息 payload 编码,可选 plain 或 base64,默认为 plain(即不编码)
1187
+ */
1188
+ Encoding?: string;
1189
+ /**
1190
+ * 消息的服务质量等级,默认为 1
1191
+ */
1192
+ Qos?: number;
1193
+ /**
1194
+ * 是否为保留消息,默认为 false,且仅支持发布到主题的消息设置为 true
1195
+ */
1196
+ Retain?: boolean;
1125
1197
  }
1126
1198
  /**
1127
1199
  * CreateTopic返回参数结构体
@@ -1189,6 +1261,15 @@ export interface MQTTEndpointItem {
1189
1261
  */
1190
1262
  Ip?: string;
1191
1263
  }
1264
+ /**
1265
+ * DescribeInsVPCEndpoints请求参数结构体
1266
+ */
1267
+ export interface DescribeInsVPCEndpointsRequest {
1268
+ /**
1269
+ * 实例ID
1270
+ */
1271
+ InstanceId: string;
1272
+ }
1192
1273
  /**
1193
1274
  * DescribeTopicList请求参数结构体
1194
1275
  */
@@ -1655,47 +1736,30 @@ export interface ModifyInstanceCertBindingResponse {
1655
1736
  RequestId?: string;
1656
1737
  }
1657
1738
  /**
1658
- * DeleteInstance请求参数结构体
1739
+ * DescribeInsVPCEndpoints返回参数结构体
1659
1740
  */
1660
- export interface DeleteInstanceRequest {
1661
- /**
1662
- * 实例ID
1663
- */
1664
- InstanceId: string;
1665
- }
1666
- /**
1667
- * DescribeInsPublicEndpoints返回参数结构体
1668
- */
1669
- export interface DescribeInsPublicEndpointsResponse {
1741
+ export interface DescribeInsVPCEndpointsResponse {
1670
1742
  /**
1671
1743
  * 接入点
1672
1744
  */
1673
1745
  Endpoints?: Array<MQTTEndpointItem>;
1674
1746
  /**
1675
- * 实例id
1676
- */
1677
- InstanceId?: string;
1678
- /**
1679
- * 带宽
1680
- */
1681
- Bandwidth?: number;
1682
- /**
1683
- * 公网访问规则
1747
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1684
1748
  */
1685
- Rules?: Array<PublicAccessRule>;
1749
+ RequestId?: string;
1750
+ }
1751
+ /**
1752
+ * DescribeDeviceCertificate请求参数结构体
1753
+ */
1754
+ export interface DescribeDeviceCertificateRequest {
1686
1755
  /**
1687
- * 公网状态:
1688
- NORMAL-正常
1689
- CLOSING-关闭中
1690
- MODIFYING-修改中
1691
- CREATING-开启中
1692
- CLOSE-关闭
1756
+ * 设备证书sn
1693
1757
  */
1694
- Status?: string;
1758
+ DeviceCertificateSn: string;
1695
1759
  /**
1696
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1760
+ * 集群id
1697
1761
  */
1698
- RequestId?: string;
1762
+ InstanceId: string;
1699
1763
  }
1700
1764
  /**
1701
1765
  * ModifyInsPublicEndpoint请求参数结构体