tencentcloud-sdk-mqtt 3.0.957 → 3.0.958
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20240516/client.rb +96 -0
- data/lib/v20240516/models.rb +202 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 882de1c68ab4f2179b82cffd9533875e849e2d29
|
4
|
+
data.tar.gz: 1102bc042bf9bb7182385020732e401add65d749
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af2d0a134dc54b9f922804b79857266764bbb49eb648d3bc46193d5b72cf95a005fff99ffb1cd9b4004354fa0f126a5bdee2bb8c9b6181b4202deec76ccefff9
|
7
|
+
data.tar.gz: b14eed8c055766afbc60460e7f2d101dee4cdaae1c2214c6d3a1732af9b6e1d93155c7cf661c6b4c684944c46196687ce1d54fe62d1388eaa39631e0ca7edb78
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.958
|
data/lib/v20240516/client.rb
CHANGED
@@ -149,6 +149,30 @@ module TencentCloud
|
|
149
149
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
150
|
end
|
151
151
|
|
152
|
+
# 失效Ca证书
|
153
|
+
|
154
|
+
# @param request: Request instance for DeactivateDeviceCertificate.
|
155
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::DeactivateDeviceCertificateRequest`
|
156
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::DeactivateDeviceCertificateResponse`
|
157
|
+
def DeactivateDeviceCertificate(request)
|
158
|
+
body = send_request('DeactivateDeviceCertificate', request.serialize)
|
159
|
+
response = JSON.parse(body)
|
160
|
+
if response['Response'].key?('Error') == false
|
161
|
+
model = DeactivateDeviceCertificateResponse.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
|
+
|
152
176
|
# 根据认证器类型删除一个MQTT认证器
|
153
177
|
|
154
178
|
# @param request: Request instance for DeleteAuthenticator.
|
@@ -197,6 +221,30 @@ module TencentCloud
|
|
197
221
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
198
222
|
end
|
199
223
|
|
224
|
+
# 删除设备证书
|
225
|
+
|
226
|
+
# @param request: Request instance for DeleteDeviceCertificate.
|
227
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::DeleteDeviceCertificateRequest`
|
228
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::DeleteDeviceCertificateResponse`
|
229
|
+
def DeleteDeviceCertificate(request)
|
230
|
+
body = send_request('DeleteDeviceCertificate', request.serialize)
|
231
|
+
response = JSON.parse(body)
|
232
|
+
if response['Response'].key?('Error') == false
|
233
|
+
model = DeleteDeviceCertificateResponse.new
|
234
|
+
model.deserialize(response['Response'])
|
235
|
+
model
|
236
|
+
else
|
237
|
+
code = response['Response']['Error']['Code']
|
238
|
+
message = response['Response']['Error']['Message']
|
239
|
+
reqid = response['Response']['RequestId']
|
240
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
241
|
+
end
|
242
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
243
|
+
raise e
|
244
|
+
rescue StandardError => e
|
245
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
|
+
end
|
247
|
+
|
200
248
|
# 删除MQTT主题
|
201
249
|
|
202
250
|
# @param request: Request instance for DeleteTopic.
|
@@ -269,6 +317,30 @@ module TencentCloud
|
|
269
317
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
318
|
end
|
271
319
|
|
320
|
+
# 查询设备证书详情接口
|
321
|
+
|
322
|
+
# @param request: Request instance for DescribeDeviceCertificate.
|
323
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::DescribeDeviceCertificateRequest`
|
324
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::DescribeDeviceCertificateResponse`
|
325
|
+
def DescribeDeviceCertificate(request)
|
326
|
+
body = send_request('DescribeDeviceCertificate', request.serialize)
|
327
|
+
response = JSON.parse(body)
|
328
|
+
if response['Response'].key?('Error') == false
|
329
|
+
model = DescribeDeviceCertificateResponse.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
|
+
|
272
344
|
# 分页查询设备证书
|
273
345
|
|
274
346
|
# @param request: Request instance for DescribeDeviceCertificates.
|
@@ -517,6 +589,30 @@ module TencentCloud
|
|
517
589
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
518
590
|
end
|
519
591
|
|
592
|
+
# 吊销设备证书
|
593
|
+
|
594
|
+
# @param request: Request instance for RevokedDeviceCertificate.
|
595
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::RevokedDeviceCertificateRequest`
|
596
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::RevokedDeviceCertificateResponse`
|
597
|
+
def RevokedDeviceCertificate(request)
|
598
|
+
body = send_request('RevokedDeviceCertificate', request.serialize)
|
599
|
+
response = JSON.parse(body)
|
600
|
+
if response['Response'].key?('Error') == false
|
601
|
+
model = RevokedDeviceCertificateResponse.new
|
602
|
+
model.deserialize(response['Response'])
|
603
|
+
model
|
604
|
+
else
|
605
|
+
code = response['Response']['Error']['Code']
|
606
|
+
message = response['Response']['Error']['Message']
|
607
|
+
reqid = response['Response']['RequestId']
|
608
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
609
|
+
end
|
610
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
611
|
+
raise e
|
612
|
+
rescue StandardError => e
|
613
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
614
|
+
end
|
615
|
+
|
520
616
|
# 修改策略规则优先级
|
521
617
|
|
522
618
|
# @param request: Request instance for UpdateAuthorizationPolicyPriority.
|
data/lib/v20240516/models.rb
CHANGED
@@ -405,6 +405,42 @@ module TencentCloud
|
|
405
405
|
end
|
406
406
|
end
|
407
407
|
|
408
|
+
# DeactivateDeviceCertificate请求参数结构体
|
409
|
+
class DeactivateDeviceCertificateRequest < TencentCloud::Common::AbstractModel
|
410
|
+
# @param InstanceId: 集群id
|
411
|
+
# @type InstanceId: String
|
412
|
+
# @param DeviceCertificateSn: 设备证书序列号
|
413
|
+
# @type DeviceCertificateSn: String
|
414
|
+
|
415
|
+
attr_accessor :InstanceId, :DeviceCertificateSn
|
416
|
+
|
417
|
+
def initialize(instanceid=nil, devicecertificatesn=nil)
|
418
|
+
@InstanceId = instanceid
|
419
|
+
@DeviceCertificateSn = devicecertificatesn
|
420
|
+
end
|
421
|
+
|
422
|
+
def deserialize(params)
|
423
|
+
@InstanceId = params['InstanceId']
|
424
|
+
@DeviceCertificateSn = params['DeviceCertificateSn']
|
425
|
+
end
|
426
|
+
end
|
427
|
+
|
428
|
+
# DeactivateDeviceCertificate返回参数结构体
|
429
|
+
class DeactivateDeviceCertificateResponse < TencentCloud::Common::AbstractModel
|
430
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
431
|
+
# @type RequestId: String
|
432
|
+
|
433
|
+
attr_accessor :RequestId
|
434
|
+
|
435
|
+
def initialize(requestid=nil)
|
436
|
+
@RequestId = requestid
|
437
|
+
end
|
438
|
+
|
439
|
+
def deserialize(params)
|
440
|
+
@RequestId = params['RequestId']
|
441
|
+
end
|
442
|
+
end
|
443
|
+
|
408
444
|
# DeleteAuthenticator请求参数结构体
|
409
445
|
class DeleteAuthenticatorRequest < TencentCloud::Common::AbstractModel
|
410
446
|
# @param InstanceId: 实例ID
|
@@ -477,6 +513,42 @@ module TencentCloud
|
|
477
513
|
end
|
478
514
|
end
|
479
515
|
|
516
|
+
# DeleteDeviceCertificate请求参数结构体
|
517
|
+
class DeleteDeviceCertificateRequest < TencentCloud::Common::AbstractModel
|
518
|
+
# @param InstanceId: 集群id
|
519
|
+
# @type InstanceId: String
|
520
|
+
# @param DeviceCertificateSn: 设备证书序列号
|
521
|
+
# @type DeviceCertificateSn: String
|
522
|
+
|
523
|
+
attr_accessor :InstanceId, :DeviceCertificateSn
|
524
|
+
|
525
|
+
def initialize(instanceid=nil, devicecertificatesn=nil)
|
526
|
+
@InstanceId = instanceid
|
527
|
+
@DeviceCertificateSn = devicecertificatesn
|
528
|
+
end
|
529
|
+
|
530
|
+
def deserialize(params)
|
531
|
+
@InstanceId = params['InstanceId']
|
532
|
+
@DeviceCertificateSn = params['DeviceCertificateSn']
|
533
|
+
end
|
534
|
+
end
|
535
|
+
|
536
|
+
# DeleteDeviceCertificate返回参数结构体
|
537
|
+
class DeleteDeviceCertificateResponse < TencentCloud::Common::AbstractModel
|
538
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
539
|
+
# @type RequestId: String
|
540
|
+
|
541
|
+
attr_accessor :RequestId
|
542
|
+
|
543
|
+
def initialize(requestid=nil)
|
544
|
+
@RequestId = requestid
|
545
|
+
end
|
546
|
+
|
547
|
+
def deserialize(params)
|
548
|
+
@RequestId = params['RequestId']
|
549
|
+
end
|
550
|
+
end
|
551
|
+
|
480
552
|
# DeleteTopic请求参数结构体
|
481
553
|
class DeleteTopicRequest < TencentCloud::Common::AbstractModel
|
482
554
|
# @param InstanceId: 实例ID
|
@@ -603,6 +675,100 @@ module TencentCloud
|
|
603
675
|
end
|
604
676
|
end
|
605
677
|
|
678
|
+
# DescribeDeviceCertificate请求参数结构体
|
679
|
+
class DescribeDeviceCertificateRequest < TencentCloud::Common::AbstractModel
|
680
|
+
# @param DeviceCertificateSn: 设备证书sn
|
681
|
+
# @type DeviceCertificateSn: String
|
682
|
+
# @param InstanceId: 集群id
|
683
|
+
# @type InstanceId: String
|
684
|
+
|
685
|
+
attr_accessor :DeviceCertificateSn, :InstanceId
|
686
|
+
|
687
|
+
def initialize(devicecertificatesn=nil, instanceid=nil)
|
688
|
+
@DeviceCertificateSn = devicecertificatesn
|
689
|
+
@InstanceId = instanceid
|
690
|
+
end
|
691
|
+
|
692
|
+
def deserialize(params)
|
693
|
+
@DeviceCertificateSn = params['DeviceCertificateSn']
|
694
|
+
@InstanceId = params['InstanceId']
|
695
|
+
end
|
696
|
+
end
|
697
|
+
|
698
|
+
# DescribeDeviceCertificate返回参数结构体
|
699
|
+
class DescribeDeviceCertificateResponse < TencentCloud::Common::AbstractModel
|
700
|
+
# @param CreatedTime: 创建时间
|
701
|
+
# @type CreatedTime: Integer
|
702
|
+
# @param UpdateTime: 上次更新时间
|
703
|
+
# @type UpdateTime: Integer
|
704
|
+
# @param NotAfterTime: 证书失效日期
|
705
|
+
# @type NotAfterTime: Integer
|
706
|
+
# @param LastActivationTime: 上次激活时间
|
707
|
+
# @type LastActivationTime: Integer
|
708
|
+
# @param LastInactivationTime: 上次取消激活时间
|
709
|
+
# @type LastInactivationTime: Integer
|
710
|
+
# @param Status: 证书状态
|
711
|
+
# @type Status: String
|
712
|
+
# @param CaSn: 证书序列号
|
713
|
+
# @type CaSn: String
|
714
|
+
# @param DeviceCertificateSn: 设备证书sn
|
715
|
+
# @type DeviceCertificateSn: String
|
716
|
+
# @param DeviceCertificate: 证书内容
|
717
|
+
# @type DeviceCertificate: String
|
718
|
+
# @param DeviceCertificateCn: 设备证书cn
|
719
|
+
# @type DeviceCertificateCn: String
|
720
|
+
# @param Format: 证书格式
|
721
|
+
# @type Format: String
|
722
|
+
# @param ClientId: 客户端id
|
723
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
724
|
+
# @type ClientId: String
|
725
|
+
# @param CertificateSource: API, 手动注册
|
726
|
+
# JITP 自动注册
|
727
|
+
# @type CertificateSource: String
|
728
|
+
# @param NotBeforeTime: 证书生效开始时间
|
729
|
+
# @type NotBeforeTime: Integer
|
730
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
731
|
+
# @type RequestId: String
|
732
|
+
|
733
|
+
attr_accessor :CreatedTime, :UpdateTime, :NotAfterTime, :LastActivationTime, :LastInactivationTime, :Status, :CaSn, :DeviceCertificateSn, :DeviceCertificate, :DeviceCertificateCn, :Format, :ClientId, :CertificateSource, :NotBeforeTime, :RequestId
|
734
|
+
|
735
|
+
def initialize(createdtime=nil, updatetime=nil, notaftertime=nil, lastactivationtime=nil, lastinactivationtime=nil, status=nil, casn=nil, devicecertificatesn=nil, devicecertificate=nil, devicecertificatecn=nil, format=nil, clientid=nil, certificatesource=nil, notbeforetime=nil, requestid=nil)
|
736
|
+
@CreatedTime = createdtime
|
737
|
+
@UpdateTime = updatetime
|
738
|
+
@NotAfterTime = notaftertime
|
739
|
+
@LastActivationTime = lastactivationtime
|
740
|
+
@LastInactivationTime = lastinactivationtime
|
741
|
+
@Status = status
|
742
|
+
@CaSn = casn
|
743
|
+
@DeviceCertificateSn = devicecertificatesn
|
744
|
+
@DeviceCertificate = devicecertificate
|
745
|
+
@DeviceCertificateCn = devicecertificatecn
|
746
|
+
@Format = format
|
747
|
+
@ClientId = clientid
|
748
|
+
@CertificateSource = certificatesource
|
749
|
+
@NotBeforeTime = notbeforetime
|
750
|
+
@RequestId = requestid
|
751
|
+
end
|
752
|
+
|
753
|
+
def deserialize(params)
|
754
|
+
@CreatedTime = params['CreatedTime']
|
755
|
+
@UpdateTime = params['UpdateTime']
|
756
|
+
@NotAfterTime = params['NotAfterTime']
|
757
|
+
@LastActivationTime = params['LastActivationTime']
|
758
|
+
@LastInactivationTime = params['LastInactivationTime']
|
759
|
+
@Status = params['Status']
|
760
|
+
@CaSn = params['CaSn']
|
761
|
+
@DeviceCertificateSn = params['DeviceCertificateSn']
|
762
|
+
@DeviceCertificate = params['DeviceCertificate']
|
763
|
+
@DeviceCertificateCn = params['DeviceCertificateCn']
|
764
|
+
@Format = params['Format']
|
765
|
+
@ClientId = params['ClientId']
|
766
|
+
@CertificateSource = params['CertificateSource']
|
767
|
+
@NotBeforeTime = params['NotBeforeTime']
|
768
|
+
@RequestId = params['RequestId']
|
769
|
+
end
|
770
|
+
end
|
771
|
+
|
606
772
|
# DescribeDeviceCertificates请求参数结构体
|
607
773
|
class DescribeDeviceCertificatesRequest < TencentCloud::Common::AbstractModel
|
608
774
|
# @param InstanceId: 集群ID
|
@@ -1574,6 +1740,42 @@ module TencentCloud
|
|
1574
1740
|
end
|
1575
1741
|
end
|
1576
1742
|
|
1743
|
+
# RevokedDeviceCertificate请求参数结构体
|
1744
|
+
class RevokedDeviceCertificateRequest < TencentCloud::Common::AbstractModel
|
1745
|
+
# @param InstanceId: 集群id
|
1746
|
+
# @type InstanceId: String
|
1747
|
+
# @param DeviceCertificateSn: 设备证书序列号
|
1748
|
+
# @type DeviceCertificateSn: String
|
1749
|
+
|
1750
|
+
attr_accessor :InstanceId, :DeviceCertificateSn
|
1751
|
+
|
1752
|
+
def initialize(instanceid=nil, devicecertificatesn=nil)
|
1753
|
+
@InstanceId = instanceid
|
1754
|
+
@DeviceCertificateSn = devicecertificatesn
|
1755
|
+
end
|
1756
|
+
|
1757
|
+
def deserialize(params)
|
1758
|
+
@InstanceId = params['InstanceId']
|
1759
|
+
@DeviceCertificateSn = params['DeviceCertificateSn']
|
1760
|
+
end
|
1761
|
+
end
|
1762
|
+
|
1763
|
+
# RevokedDeviceCertificate返回参数结构体
|
1764
|
+
class RevokedDeviceCertificateResponse < TencentCloud::Common::AbstractModel
|
1765
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1766
|
+
# @type RequestId: String
|
1767
|
+
|
1768
|
+
attr_accessor :RequestId
|
1769
|
+
|
1770
|
+
def initialize(requestid=nil)
|
1771
|
+
@RequestId = requestid
|
1772
|
+
end
|
1773
|
+
|
1774
|
+
def deserialize(params)
|
1775
|
+
@RequestId = params['RequestId']
|
1776
|
+
end
|
1777
|
+
end
|
1778
|
+
|
1577
1779
|
# 标签过滤器
|
1578
1780
|
class TagFilter < TencentCloud::Common::AbstractModel
|
1579
1781
|
# @param TagKey: 标签键名称
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-mqtt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.958
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|