tencentcloud-sdk-trocket 3.0.753 → 3.0.754

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c01027907129f38d1b2271271b49f02baa4517dc
4
- data.tar.gz: 5a046fb4e3c7b3e0fee627359f4761d637ab2e88
3
+ metadata.gz: a93bc6dc0a19a48a96956e717c9b75db95137747
4
+ data.tar.gz: 4ff8ed002fa22cf0b84f4ad8367ff5628e08e043
5
5
  SHA512:
6
- metadata.gz: 8a48e537118a1faa5e8127f0bcc9f71d04f6d35533b60a7c3922f262e8f136467d6b08e985986db8dc6385a7f450becb8a5a63bc449044055aa50fee99549501
7
- data.tar.gz: 49a8e4339029d75369ab2f7bfcccdc2d3bd1ce1dad2efa8444e28ba789dbfd6b27e4edc84f444e5d31ad2f8bcd926cf462ed97cdff052fd94c50028c27cab1ad
6
+ metadata.gz: e647ca07c21b23a13848565e0b400588a64535b00527fcbace58e59ffa9d62577307726995f2e1938f04e0920e126dda5be1df607fd40c7758e7e2d3a28bbd9d
7
+ data.tar.gz: 198386580a0f2e176a4ec0a742738d5512101b8ce87ec9b1f1809acf61896588fcd3e7223910bc3f0802d660a0fde00cad0965995deaf7a17f3321adf8bf57a6
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.753
1
+ 3.0.754
@@ -77,6 +77,30 @@ module TencentCloud
77
77
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
78
  end
79
79
 
80
+ # 为MQTT实例创建公网接入点
81
+
82
+ # @param request: Request instance for CreateMQTTInsPublicEndpoint.
83
+ # @type request: :class:`Tencentcloud::trocket::V20230308::CreateMQTTInsPublicEndpointRequest`
84
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::CreateMQTTInsPublicEndpointResponse`
85
+ def CreateMQTTInsPublicEndpoint(request)
86
+ body = send_request('CreateMQTTInsPublicEndpoint', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = CreateMQTTInsPublicEndpointResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
80
104
  # 购买新的MQTT实例
81
105
 
82
106
  # @param request: Request instance for CreateMQTTInstance.
@@ -101,6 +125,54 @@ module TencentCloud
101
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
126
  end
103
127
 
128
+ # 创建主题
129
+
130
+ # @param request: Request instance for CreateMQTTTopic.
131
+ # @type request: :class:`Tencentcloud::trocket::V20230308::CreateMQTTTopicRequest`
132
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::CreateMQTTTopicResponse`
133
+ def CreateMQTTTopic(request)
134
+ body = send_request('CreateMQTTTopic', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = CreateMQTTTopicResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
152
+ # 添加mqtt角色
153
+
154
+ # @param request: Request instance for CreateMQTTUser.
155
+ # @type request: :class:`Tencentcloud::trocket::V20230308::CreateMQTTUserRequest`
156
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::CreateMQTTUserResponse`
157
+ def CreateMQTTUser(request)
158
+ body = send_request('CreateMQTTUser', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = CreateMQTTUserResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
104
176
  # 添加角色
105
177
 
106
178
  # @param request: Request instance for CreateRole.
@@ -197,6 +269,102 @@ module TencentCloud
197
269
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
270
  end
199
271
 
272
+ # 删除MQTT实例的公网接入点
273
+
274
+ # @param request: Request instance for DeleteMQTTInsPublicEndpoint.
275
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DeleteMQTTInsPublicEndpointRequest`
276
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DeleteMQTTInsPublicEndpointResponse`
277
+ def DeleteMQTTInsPublicEndpoint(request)
278
+ body = send_request('DeleteMQTTInsPublicEndpoint', request.serialize)
279
+ response = JSON.parse(body)
280
+ if response['Response'].key?('Error') == false
281
+ model = DeleteMQTTInsPublicEndpointResponse.new
282
+ model.deserialize(response['Response'])
283
+ model
284
+ else
285
+ code = response['Response']['Error']['Code']
286
+ message = response['Response']['Error']['Message']
287
+ reqid = response['Response']['RequestId']
288
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
289
+ end
290
+ rescue TencentCloud::Common::TencentCloudSDKException => e
291
+ raise e
292
+ rescue StandardError => e
293
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
+ end
295
+
296
+ # 删除实例
297
+
298
+ # @param request: Request instance for DeleteMQTTInstance.
299
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DeleteMQTTInstanceRequest`
300
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DeleteMQTTInstanceResponse`
301
+ def DeleteMQTTInstance(request)
302
+ body = send_request('DeleteMQTTInstance', request.serialize)
303
+ response = JSON.parse(body)
304
+ if response['Response'].key?('Error') == false
305
+ model = DeleteMQTTInstanceResponse.new
306
+ model.deserialize(response['Response'])
307
+ model
308
+ else
309
+ code = response['Response']['Error']['Code']
310
+ message = response['Response']['Error']['Message']
311
+ reqid = response['Response']['RequestId']
312
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
313
+ end
314
+ rescue TencentCloud::Common::TencentCloudSDKException => e
315
+ raise e
316
+ rescue StandardError => e
317
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
+ end
319
+
320
+ # 删除主题
321
+
322
+ # @param request: Request instance for DeleteMQTTTopic.
323
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DeleteMQTTTopicRequest`
324
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DeleteMQTTTopicResponse`
325
+ def DeleteMQTTTopic(request)
326
+ body = send_request('DeleteMQTTTopic', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = DeleteMQTTTopicResponse.new
330
+ model.deserialize(response['Response'])
331
+ model
332
+ else
333
+ code = response['Response']['Error']['Code']
334
+ message = response['Response']['Error']['Message']
335
+ reqid = response['Response']['RequestId']
336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
337
+ end
338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
339
+ raise e
340
+ rescue StandardError => e
341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
+ end
343
+
344
+ # 删除MQTT访问用户
345
+
346
+ # @param request: Request instance for DeleteMQTTUser.
347
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DeleteMQTTUserRequest`
348
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DeleteMQTTUserResponse`
349
+ def DeleteMQTTUser(request)
350
+ body = send_request('DeleteMQTTUser', request.serialize)
351
+ response = JSON.parse(body)
352
+ if response['Response'].key?('Error') == false
353
+ model = DeleteMQTTUserResponse.new
354
+ model.deserialize(response['Response'])
355
+ model
356
+ else
357
+ code = response['Response']['Error']['Code']
358
+ message = response['Response']['Error']['Message']
359
+ reqid = response['Response']['RequestId']
360
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
361
+ end
362
+ rescue TencentCloud::Common::TencentCloudSDKException => e
363
+ raise e
364
+ rescue StandardError => e
365
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
+ end
367
+
200
368
  # 删除角色
201
369
 
202
370
  # @param request: Request instance for DeleteRole.
@@ -350,6 +518,126 @@ module TencentCloud
350
518
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
351
519
  end
352
520
 
521
+ # 查询 MQTT 客户端详情
522
+
523
+ # @param request: Request instance for DescribeMQTTClient.
524
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DescribeMQTTClientRequest`
525
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeMQTTClientResponse`
526
+ def DescribeMQTTClient(request)
527
+ body = send_request('DescribeMQTTClient', request.serialize)
528
+ response = JSON.parse(body)
529
+ if response['Response'].key?('Error') == false
530
+ model = DescribeMQTTClientResponse.new
531
+ model.deserialize(response['Response'])
532
+ model
533
+ else
534
+ code = response['Response']['Error']['Code']
535
+ message = response['Response']['Error']['Message']
536
+ reqid = response['Response']['RequestId']
537
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
538
+ end
539
+ rescue TencentCloud::Common::TencentCloudSDKException => e
540
+ raise e
541
+ rescue StandardError => e
542
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
543
+ end
544
+
545
+ # 查询MQTT实例公网接入点
546
+
547
+ # @param request: Request instance for DescribeMQTTInsPublicEndpoints.
548
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DescribeMQTTInsPublicEndpointsRequest`
549
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeMQTTInsPublicEndpointsResponse`
550
+ def DescribeMQTTInsPublicEndpoints(request)
551
+ body = send_request('DescribeMQTTInsPublicEndpoints', request.serialize)
552
+ response = JSON.parse(body)
553
+ if response['Response'].key?('Error') == false
554
+ model = DescribeMQTTInsPublicEndpointsResponse.new
555
+ model.deserialize(response['Response'])
556
+ model
557
+ else
558
+ code = response['Response']['Error']['Code']
559
+ message = response['Response']['Error']['Message']
560
+ reqid = response['Response']['RequestId']
561
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
562
+ end
563
+ rescue TencentCloud::Common::TencentCloudSDKException => e
564
+ raise e
565
+ rescue StandardError => e
566
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
567
+ end
568
+
569
+ # 查询MQTT实例公网接入点
570
+
571
+ # @param request: Request instance for DescribeMQTTInsVPCEndpoints.
572
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DescribeMQTTInsVPCEndpointsRequest`
573
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeMQTTInsVPCEndpointsResponse`
574
+ def DescribeMQTTInsVPCEndpoints(request)
575
+ body = send_request('DescribeMQTTInsVPCEndpoints', request.serialize)
576
+ response = JSON.parse(body)
577
+ if response['Response'].key?('Error') == false
578
+ model = DescribeMQTTInsVPCEndpointsResponse.new
579
+ model.deserialize(response['Response'])
580
+ model
581
+ else
582
+ code = response['Response']['Error']['Code']
583
+ message = response['Response']['Error']['Message']
584
+ reqid = response['Response']['RequestId']
585
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
586
+ end
587
+ rescue TencentCloud::Common::TencentCloudSDKException => e
588
+ raise e
589
+ rescue StandardError => e
590
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
591
+ end
592
+
593
+ # 查询实例信息
594
+
595
+ # @param request: Request instance for DescribeMQTTInstance.
596
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DescribeMQTTInstanceRequest`
597
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeMQTTInstanceResponse`
598
+ def DescribeMQTTInstance(request)
599
+ body = send_request('DescribeMQTTInstance', request.serialize)
600
+ response = JSON.parse(body)
601
+ if response['Response'].key?('Error') == false
602
+ model = DescribeMQTTInstanceResponse.new
603
+ model.deserialize(response['Response'])
604
+ model
605
+ else
606
+ code = response['Response']['Error']['Code']
607
+ message = response['Response']['Error']['Message']
608
+ reqid = response['Response']['RequestId']
609
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
610
+ end
611
+ rescue TencentCloud::Common::TencentCloudSDKException => e
612
+ raise e
613
+ rescue StandardError => e
614
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
615
+ end
616
+
617
+ # 查询MQTT集群证书列表
618
+
619
+ # @param request: Request instance for DescribeMQTTInstanceCert.
620
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DescribeMQTTInstanceCertRequest`
621
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeMQTTInstanceCertResponse`
622
+ def DescribeMQTTInstanceCert(request)
623
+ body = send_request('DescribeMQTTInstanceCert', request.serialize)
624
+ response = JSON.parse(body)
625
+ if response['Response'].key?('Error') == false
626
+ model = DescribeMQTTInstanceCertResponse.new
627
+ model.deserialize(response['Response'])
628
+ model
629
+ else
630
+ code = response['Response']['Error']['Code']
631
+ message = response['Response']['Error']['Message']
632
+ reqid = response['Response']['RequestId']
633
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
634
+ end
635
+ rescue TencentCloud::Common::TencentCloudSDKException => e
636
+ raise e
637
+ rescue StandardError => e
638
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
639
+ end
640
+
353
641
  # 获取实例列表,Filters参数使用说明如下:
354
642
  # 1. InstanceName, 名称模糊查询
355
643
  # 2. InstanceId,实例ID查询
@@ -380,6 +668,54 @@ module TencentCloud
380
668
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
381
669
  end
382
670
 
671
+ # 查询MQTT消息详情
672
+
673
+ # @param request: Request instance for DescribeMQTTMessage.
674
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DescribeMQTTMessageRequest`
675
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeMQTTMessageResponse`
676
+ def DescribeMQTTMessage(request)
677
+ body = send_request('DescribeMQTTMessage', request.serialize)
678
+ response = JSON.parse(body)
679
+ if response['Response'].key?('Error') == false
680
+ model = DescribeMQTTMessageResponse.new
681
+ model.deserialize(response['Response'])
682
+ model
683
+ else
684
+ code = response['Response']['Error']['Code']
685
+ message = response['Response']['Error']['Message']
686
+ reqid = response['Response']['RequestId']
687
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
688
+ end
689
+ rescue TencentCloud::Common::TencentCloudSDKException => e
690
+ raise e
691
+ rescue StandardError => e
692
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
693
+ end
694
+
695
+ # 查询消息列表,如查询死信,请设置ConsumerGroup参数
696
+
697
+ # @param request: Request instance for DescribeMQTTMessageList.
698
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DescribeMQTTMessageListRequest`
699
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeMQTTMessageListResponse`
700
+ def DescribeMQTTMessageList(request)
701
+ body = send_request('DescribeMQTTMessageList', request.serialize)
702
+ response = JSON.parse(body)
703
+ if response['Response'].key?('Error') == false
704
+ model = DescribeMQTTMessageListResponse.new
705
+ model.deserialize(response['Response'])
706
+ model
707
+ else
708
+ code = response['Response']['Error']['Code']
709
+ message = response['Response']['Error']['Message']
710
+ reqid = response['Response']['RequestId']
711
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
712
+ end
713
+ rescue TencentCloud::Common::TencentCloudSDKException => e
714
+ raise e
715
+ rescue StandardError => e
716
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
717
+ end
718
+
383
719
  # 非对外接口,获取产品售卖规格
384
720
 
385
721
  # @param request: Request instance for DescribeMQTTProductSKUList.
@@ -404,6 +740,83 @@ module TencentCloud
404
740
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
405
741
  end
406
742
 
743
+ # 查询mqtt主题详情
744
+
745
+ # @param request: Request instance for DescribeMQTTTopic.
746
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DescribeMQTTTopicRequest`
747
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeMQTTTopicResponse`
748
+ def DescribeMQTTTopic(request)
749
+ body = send_request('DescribeMQTTTopic', request.serialize)
750
+ response = JSON.parse(body)
751
+ if response['Response'].key?('Error') == false
752
+ model = DescribeMQTTTopicResponse.new
753
+ model.deserialize(response['Response'])
754
+ model
755
+ else
756
+ code = response['Response']['Error']['Code']
757
+ message = response['Response']['Error']['Message']
758
+ reqid = response['Response']['RequestId']
759
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
760
+ end
761
+ rescue TencentCloud::Common::TencentCloudSDKException => e
762
+ raise e
763
+ rescue StandardError => e
764
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
765
+ end
766
+
767
+ # 获取主题列表,Filter参数使用说明如下:
768
+
769
+ # 1. TopicName,主题名称模糊搜索
770
+ # 2. TopicType,主题类型查询,支持多选,可选值:Normal,Order,Transaction,DelayScheduled
771
+
772
+ # @param request: Request instance for DescribeMQTTTopicList.
773
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DescribeMQTTTopicListRequest`
774
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeMQTTTopicListResponse`
775
+ def DescribeMQTTTopicList(request)
776
+ body = send_request('DescribeMQTTTopicList', request.serialize)
777
+ response = JSON.parse(body)
778
+ if response['Response'].key?('Error') == false
779
+ model = DescribeMQTTTopicListResponse.new
780
+ model.deserialize(response['Response'])
781
+ model
782
+ else
783
+ code = response['Response']['Error']['Code']
784
+ message = response['Response']['Error']['Message']
785
+ reqid = response['Response']['RequestId']
786
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
787
+ end
788
+ rescue TencentCloud::Common::TencentCloudSDKException => e
789
+ raise e
790
+ rescue StandardError => e
791
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
792
+ end
793
+
794
+ # 查询用户列表,Filter参数使用说明如下:
795
+
796
+ # 1. Username,用户名称模糊搜索
797
+
798
+ # @param request: Request instance for DescribeMQTTUserList.
799
+ # @type request: :class:`Tencentcloud::trocket::V20230308::DescribeMQTTUserListRequest`
800
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::DescribeMQTTUserListResponse`
801
+ def DescribeMQTTUserList(request)
802
+ body = send_request('DescribeMQTTUserList', request.serialize)
803
+ response = JSON.parse(body)
804
+ if response['Response'].key?('Error') == false
805
+ model = DescribeMQTTUserListResponse.new
806
+ model.deserialize(response['Response'])
807
+ model
808
+ else
809
+ code = response['Response']['Error']['Code']
810
+ message = response['Response']['Error']['Message']
811
+ reqid = response['Response']['RequestId']
812
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
813
+ end
814
+ rescue TencentCloud::Common::TencentCloudSDKException => e
815
+ raise e
816
+ rescue StandardError => e
817
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
818
+ end
819
+
407
820
  # 查询角色列表,Filter参数使用说明如下:
408
821
 
409
822
  # 1. RoleName,角色名称模糊搜索
@@ -603,6 +1016,127 @@ module TencentCloud
603
1016
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
604
1017
  end
605
1018
 
1019
+ # 为MQTT实例创建公网接入点
1020
+
1021
+ # @param request: Request instance for ModifyMQTTInsPublicEndpoint.
1022
+ # @type request: :class:`Tencentcloud::trocket::V20230308::ModifyMQTTInsPublicEndpointRequest`
1023
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::ModifyMQTTInsPublicEndpointResponse`
1024
+ def ModifyMQTTInsPublicEndpoint(request)
1025
+ body = send_request('ModifyMQTTInsPublicEndpoint', request.serialize)
1026
+ response = JSON.parse(body)
1027
+ if response['Response'].key?('Error') == false
1028
+ model = ModifyMQTTInsPublicEndpointResponse.new
1029
+ model.deserialize(response['Response'])
1030
+ model
1031
+ else
1032
+ code = response['Response']['Error']['Code']
1033
+ message = response['Response']['Error']['Message']
1034
+ reqid = response['Response']['RequestId']
1035
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1036
+ end
1037
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1038
+ raise e
1039
+ rescue StandardError => e
1040
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1041
+ end
1042
+
1043
+ # 修改实例属性
1044
+
1045
+ # @param request: Request instance for ModifyMQTTInstance.
1046
+ # @type request: :class:`Tencentcloud::trocket::V20230308::ModifyMQTTInstanceRequest`
1047
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::ModifyMQTTInstanceResponse`
1048
+ def ModifyMQTTInstance(request)
1049
+ body = send_request('ModifyMQTTInstance', request.serialize)
1050
+ response = JSON.parse(body)
1051
+ if response['Response'].key?('Error') == false
1052
+ model = ModifyMQTTInstanceResponse.new
1053
+ model.deserialize(response['Response'])
1054
+ model
1055
+ else
1056
+ code = response['Response']['Error']['Code']
1057
+ message = response['Response']['Error']['Message']
1058
+ reqid = response['Response']['RequestId']
1059
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1060
+ end
1061
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1062
+ raise e
1063
+ rescue StandardError => e
1064
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1065
+ end
1066
+
1067
+ # 更新MQTT集群绑定证书
1068
+ # 参数传空,则为删除证书
1069
+
1070
+ # @param request: Request instance for ModifyMQTTInstanceCertBinding.
1071
+ # @type request: :class:`Tencentcloud::trocket::V20230308::ModifyMQTTInstanceCertBindingRequest`
1072
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::ModifyMQTTInstanceCertBindingResponse`
1073
+ def ModifyMQTTInstanceCertBinding(request)
1074
+ body = send_request('ModifyMQTTInstanceCertBinding', request.serialize)
1075
+ response = JSON.parse(body)
1076
+ if response['Response'].key?('Error') == false
1077
+ model = ModifyMQTTInstanceCertBindingResponse.new
1078
+ model.deserialize(response['Response'])
1079
+ model
1080
+ else
1081
+ code = response['Response']['Error']['Code']
1082
+ message = response['Response']['Error']['Message']
1083
+ reqid = response['Response']['RequestId']
1084
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1085
+ end
1086
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1087
+ raise e
1088
+ rescue StandardError => e
1089
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1090
+ end
1091
+
1092
+ # 修改主题属性
1093
+
1094
+ # @param request: Request instance for ModifyMQTTTopic.
1095
+ # @type request: :class:`Tencentcloud::trocket::V20230308::ModifyMQTTTopicRequest`
1096
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::ModifyMQTTTopicResponse`
1097
+ def ModifyMQTTTopic(request)
1098
+ body = send_request('ModifyMQTTTopic', request.serialize)
1099
+ response = JSON.parse(body)
1100
+ if response['Response'].key?('Error') == false
1101
+ model = ModifyMQTTTopicResponse.new
1102
+ model.deserialize(response['Response'])
1103
+ model
1104
+ else
1105
+ code = response['Response']['Error']['Code']
1106
+ message = response['Response']['Error']['Message']
1107
+ reqid = response['Response']['RequestId']
1108
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1109
+ end
1110
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1111
+ raise e
1112
+ rescue StandardError => e
1113
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1114
+ end
1115
+
1116
+ # 修改MQTT角色
1117
+
1118
+ # @param request: Request instance for ModifyMQTTUser.
1119
+ # @type request: :class:`Tencentcloud::trocket::V20230308::ModifyMQTTUserRequest`
1120
+ # @rtype: :class:`Tencentcloud::trocket::V20230308::ModifyMQTTUserResponse`
1121
+ def ModifyMQTTUser(request)
1122
+ body = send_request('ModifyMQTTUser', request.serialize)
1123
+ response = JSON.parse(body)
1124
+ if response['Response'].key?('Error') == false
1125
+ model = ModifyMQTTUserResponse.new
1126
+ model.deserialize(response['Response'])
1127
+ model
1128
+ else
1129
+ code = response['Response']['Error']['Code']
1130
+ message = response['Response']['Error']['Message']
1131
+ reqid = response['Response']['RequestId']
1132
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1133
+ end
1134
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1135
+ raise e
1136
+ rescue StandardError => e
1137
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1138
+ end
1139
+
606
1140
  # 修改角色
607
1141
 
608
1142
  # @param request: Request instance for ModifyRole.