tencentcloud-sdk-mqtt 3.0.954 → 3.0.956
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 +48 -1
- data/lib/v20240516/models.rb +199 -3
- 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: 25ac234cd4b457b11f69c377d82912add71d7fbf
|
4
|
+
data.tar.gz: fe254ec74b25625152bb780e13e8edbe9c353b76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f9a9f6ff9dd4f9b0b65b5099d8d17a75c8d108fc5264cae60aac526e832c45ab98fbc1a04084325a8d75427ad277d7b7e30891f8e105a000392b296161e0b8c
|
7
|
+
data.tar.gz: 6a827eeefb5372ead9a56a9797c92da8797bdbe7e52a45ff5dbece6d0a6802d962098536d497a37de27df8bca5d31e80e8866d2d619334686728b2faf1416e8c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.956
|
data/lib/v20240516/client.rb
CHANGED
@@ -29,6 +29,30 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 生效设备证书
|
33
|
+
|
34
|
+
# @param request: Request instance for ActivateDeviceCertificate.
|
35
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::ActivateDeviceCertificateRequest`
|
36
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::ActivateDeviceCertificateResponse`
|
37
|
+
def ActivateDeviceCertificate(request)
|
38
|
+
body = send_request('ActivateDeviceCertificate', request.serialize)
|
39
|
+
response = JSON.parse(body)
|
40
|
+
if response['Response'].key?('Error') == false
|
41
|
+
model = ActivateDeviceCertificateResponse.new
|
42
|
+
model.deserialize(response['Response'])
|
43
|
+
model
|
44
|
+
else
|
45
|
+
code = response['Response']['Error']['Code']
|
46
|
+
message = response['Response']['Error']['Message']
|
47
|
+
reqid = response['Response']['RequestId']
|
48
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
49
|
+
end
|
50
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
51
|
+
raise e
|
52
|
+
rescue StandardError => e
|
53
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
|
+
end
|
55
|
+
|
32
56
|
# 创建MQTT实例的性能测试任务
|
33
57
|
|
34
58
|
# @param request: Request instance for CreateAuthorizationPolicy.
|
@@ -245,6 +269,30 @@ module TencentCloud
|
|
245
269
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
270
|
end
|
247
271
|
|
272
|
+
# 分页查询设备证书
|
273
|
+
|
274
|
+
# @param request: Request instance for DescribeDeviceCertificates.
|
275
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::DescribeDeviceCertificatesRequest`
|
276
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::DescribeDeviceCertificatesResponse`
|
277
|
+
def DescribeDeviceCertificates(request)
|
278
|
+
body = send_request('DescribeDeviceCertificates', request.serialize)
|
279
|
+
response = JSON.parse(body)
|
280
|
+
if response['Response'].key?('Error') == false
|
281
|
+
model = DescribeDeviceCertificatesResponse.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
|
+
|
248
296
|
# 查询实例信息
|
249
297
|
|
250
298
|
# @param request: Request instance for DescribeInstance.
|
@@ -272,7 +320,6 @@ module TencentCloud
|
|
272
320
|
# 获取实例列表,Filters参数使用说明如下:
|
273
321
|
# 1. InstanceName, 名称模糊查询
|
274
322
|
# 2. InstanceId,实例ID查询
|
275
|
-
# 3. InstanceType, 实例类型查询,支持多选
|
276
323
|
# 3. InstanceStatus,实例状态查询,支持多选
|
277
324
|
|
278
325
|
# 当使用TagFilters查询时,Filters参数失效。
|
data/lib/v20240516/models.rb
CHANGED
@@ -17,6 +17,42 @@
|
|
17
17
|
module TencentCloud
|
18
18
|
module Mqtt
|
19
19
|
module V20240516
|
20
|
+
# ActivateDeviceCertificate请求参数结构体
|
21
|
+
class ActivateDeviceCertificateRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param InstanceId: 集群id
|
23
|
+
# @type InstanceId: String
|
24
|
+
# @param DeviceCertificateSn: 设备证书序列号
|
25
|
+
# @type DeviceCertificateSn: String
|
26
|
+
|
27
|
+
attr_accessor :InstanceId, :DeviceCertificateSn
|
28
|
+
|
29
|
+
def initialize(instanceid=nil, devicecertificatesn=nil)
|
30
|
+
@InstanceId = instanceid
|
31
|
+
@DeviceCertificateSn = devicecertificatesn
|
32
|
+
end
|
33
|
+
|
34
|
+
def deserialize(params)
|
35
|
+
@InstanceId = params['InstanceId']
|
36
|
+
@DeviceCertificateSn = params['DeviceCertificateSn']
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# ActivateDeviceCertificate返回参数结构体
|
41
|
+
class ActivateDeviceCertificateResponse < TencentCloud::Common::AbstractModel
|
42
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
43
|
+
# @type RequestId: String
|
44
|
+
|
45
|
+
attr_accessor :RequestId
|
46
|
+
|
47
|
+
def initialize(requestid=nil)
|
48
|
+
@RequestId = requestid
|
49
|
+
end
|
50
|
+
|
51
|
+
def deserialize(params)
|
52
|
+
@RequestId = params['RequestId']
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
20
56
|
# AuthorizationPolicyItem
|
21
57
|
class AuthorizationPolicyItem < TencentCloud::Common::AbstractModel
|
22
58
|
# @param Id: 规则ID
|
@@ -567,9 +603,85 @@ module TencentCloud
|
|
567
603
|
end
|
568
604
|
end
|
569
605
|
|
606
|
+
# DescribeDeviceCertificates请求参数结构体
|
607
|
+
class DescribeDeviceCertificatesRequest < TencentCloud::Common::AbstractModel
|
608
|
+
# @param InstanceId: 集群ID
|
609
|
+
# @type InstanceId: String
|
610
|
+
# @param Filters: 过滤器支持ClientId、CaSn、DeviceCertificateSn、Status搜索
|
611
|
+
# @type Filters: Array
|
612
|
+
# @param Limit: 分页limit
|
613
|
+
# @type Limit: Integer
|
614
|
+
# @param Offset: 分页偏移量
|
615
|
+
# @type Offset: Integer
|
616
|
+
# @param OrderBy: CREATE_TIME_DESC, 创建时间降序
|
617
|
+
# CREATE_TIME_ASC,创建时间升序
|
618
|
+
# UPDATE_TIME_DESC,更新时间降序
|
619
|
+
# UPDATE_TIME_ASC,更新时间升序
|
620
|
+
# @type OrderBy: String
|
621
|
+
|
622
|
+
attr_accessor :InstanceId, :Filters, :Limit, :Offset, :OrderBy
|
623
|
+
|
624
|
+
def initialize(instanceid=nil, filters=nil, limit=nil, offset=nil, orderby=nil)
|
625
|
+
@InstanceId = instanceid
|
626
|
+
@Filters = filters
|
627
|
+
@Limit = limit
|
628
|
+
@Offset = offset
|
629
|
+
@OrderBy = orderby
|
630
|
+
end
|
631
|
+
|
632
|
+
def deserialize(params)
|
633
|
+
@InstanceId = params['InstanceId']
|
634
|
+
unless params['Filters'].nil?
|
635
|
+
@Filters = []
|
636
|
+
params['Filters'].each do |i|
|
637
|
+
filter_tmp = Filter.new
|
638
|
+
filter_tmp.deserialize(i)
|
639
|
+
@Filters << filter_tmp
|
640
|
+
end
|
641
|
+
end
|
642
|
+
@Limit = params['Limit']
|
643
|
+
@Offset = params['Offset']
|
644
|
+
@OrderBy = params['OrderBy']
|
645
|
+
end
|
646
|
+
end
|
647
|
+
|
648
|
+
# DescribeDeviceCertificates返回参数结构体
|
649
|
+
class DescribeDeviceCertificatesResponse < TencentCloud::Common::AbstractModel
|
650
|
+
# @param TotalCount: 总数
|
651
|
+
# @type TotalCount: Integer
|
652
|
+
# @param Data: 设备证书
|
653
|
+
# @type Data: Array
|
654
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
655
|
+
# @type RequestId: String
|
656
|
+
|
657
|
+
attr_accessor :TotalCount, :Data, :RequestId
|
658
|
+
|
659
|
+
def initialize(totalcount=nil, data=nil, requestid=nil)
|
660
|
+
@TotalCount = totalcount
|
661
|
+
@Data = data
|
662
|
+
@RequestId = requestid
|
663
|
+
end
|
664
|
+
|
665
|
+
def deserialize(params)
|
666
|
+
@TotalCount = params['TotalCount']
|
667
|
+
unless params['Data'].nil?
|
668
|
+
@Data = []
|
669
|
+
params['Data'].each do |i|
|
670
|
+
devicecertificateitem_tmp = DeviceCertificateItem.new
|
671
|
+
devicecertificateitem_tmp.deserialize(i)
|
672
|
+
@Data << devicecertificateitem_tmp
|
673
|
+
end
|
674
|
+
end
|
675
|
+
@RequestId = params['RequestId']
|
676
|
+
end
|
677
|
+
end
|
678
|
+
|
570
679
|
# DescribeInstanceList请求参数结构体
|
571
680
|
class DescribeInstanceListRequest < TencentCloud::Common::AbstractModel
|
572
|
-
# @param Filters:
|
681
|
+
# @param Filters: 查询条件列表,支持以下子弹
|
682
|
+
# InstanceName:集群名模糊搜索
|
683
|
+
# InstanceId:集群id精确搜索
|
684
|
+
# InstanceStatus:集群状态搜索
|
573
685
|
# @type Filters: Array
|
574
686
|
# @param Offset: 查询起始位置
|
575
687
|
# @type Offset: Integer
|
@@ -775,7 +887,8 @@ module TencentCloud
|
|
775
887
|
class DescribeTopicListRequest < TencentCloud::Common::AbstractModel
|
776
888
|
# @param InstanceId: 实例ID
|
777
889
|
# @type InstanceId: String
|
778
|
-
# @param Filters:
|
890
|
+
# @param Filters: 查询条件列表:
|
891
|
+
# 支持TopicName模糊查询
|
779
892
|
# @type Filters: Array
|
780
893
|
# @param Offset: 查询起始位置
|
781
894
|
# @type Offset: Integer
|
@@ -890,6 +1003,87 @@ module TencentCloud
|
|
890
1003
|
end
|
891
1004
|
end
|
892
1005
|
|
1006
|
+
# 设备证书信息
|
1007
|
+
class DeviceCertificateItem < TencentCloud::Common::AbstractModel
|
1008
|
+
# @param ClientId: 客户端id
|
1009
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1010
|
+
# @type ClientId: String
|
1011
|
+
# @param DeviceCertificate: 设备证书
|
1012
|
+
# @type DeviceCertificate: String
|
1013
|
+
# @param DeviceCertificateSn: 设备证书Sn
|
1014
|
+
# @type DeviceCertificateSn: String
|
1015
|
+
# @param DeviceCertificateCn: 设备证书Cn
|
1016
|
+
# @type DeviceCertificateCn: String
|
1017
|
+
# @param CaSn: 签发ca的序列号
|
1018
|
+
# @type CaSn: String
|
1019
|
+
# @param Format: 证书格式
|
1020
|
+
# @type Format: String
|
1021
|
+
# @param Status: 证书状态
|
1022
|
+
# ACTIVE,//激活
|
1023
|
+
# INACTIVE,//未激活
|
1024
|
+
# REVOKED,//吊销
|
1025
|
+
# PENDING_ACTIVATION,//注册待激活
|
1026
|
+
# @type Status: String
|
1027
|
+
# @param LastActivationTime: 上次激活时间
|
1028
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1029
|
+
# @type LastActivationTime: Integer
|
1030
|
+
# @param LastInactivationTime: 上次取消激活时间
|
1031
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1032
|
+
# @type LastInactivationTime: Integer
|
1033
|
+
# @param CreatedTime: 创建时间
|
1034
|
+
# @type CreatedTime: Integer
|
1035
|
+
# @param UpdateTime: 预销毁时间
|
1036
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1037
|
+
# @type UpdateTime: Integer
|
1038
|
+
# @param CertificateSource: 证书来源:
|
1039
|
+
# API, 手动注册
|
1040
|
+
# JITP 自动注册
|
1041
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1042
|
+
# @type CertificateSource: String
|
1043
|
+
# @param NotAfterTime: 证书失效日期
|
1044
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1045
|
+
# @type NotAfterTime: Integer
|
1046
|
+
# @param NotBeforeTime: 证书生效开始日期
|
1047
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1048
|
+
# @type NotBeforeTime: Integer
|
1049
|
+
|
1050
|
+
attr_accessor :ClientId, :DeviceCertificate, :DeviceCertificateSn, :DeviceCertificateCn, :CaSn, :Format, :Status, :LastActivationTime, :LastInactivationTime, :CreatedTime, :UpdateTime, :CertificateSource, :NotAfterTime, :NotBeforeTime
|
1051
|
+
|
1052
|
+
def initialize(clientid=nil, devicecertificate=nil, devicecertificatesn=nil, devicecertificatecn=nil, casn=nil, format=nil, status=nil, lastactivationtime=nil, lastinactivationtime=nil, createdtime=nil, updatetime=nil, certificatesource=nil, notaftertime=nil, notbeforetime=nil)
|
1053
|
+
@ClientId = clientid
|
1054
|
+
@DeviceCertificate = devicecertificate
|
1055
|
+
@DeviceCertificateSn = devicecertificatesn
|
1056
|
+
@DeviceCertificateCn = devicecertificatecn
|
1057
|
+
@CaSn = casn
|
1058
|
+
@Format = format
|
1059
|
+
@Status = status
|
1060
|
+
@LastActivationTime = lastactivationtime
|
1061
|
+
@LastInactivationTime = lastinactivationtime
|
1062
|
+
@CreatedTime = createdtime
|
1063
|
+
@UpdateTime = updatetime
|
1064
|
+
@CertificateSource = certificatesource
|
1065
|
+
@NotAfterTime = notaftertime
|
1066
|
+
@NotBeforeTime = notbeforetime
|
1067
|
+
end
|
1068
|
+
|
1069
|
+
def deserialize(params)
|
1070
|
+
@ClientId = params['ClientId']
|
1071
|
+
@DeviceCertificate = params['DeviceCertificate']
|
1072
|
+
@DeviceCertificateSn = params['DeviceCertificateSn']
|
1073
|
+
@DeviceCertificateCn = params['DeviceCertificateCn']
|
1074
|
+
@CaSn = params['CaSn']
|
1075
|
+
@Format = params['Format']
|
1076
|
+
@Status = params['Status']
|
1077
|
+
@LastActivationTime = params['LastActivationTime']
|
1078
|
+
@LastInactivationTime = params['LastInactivationTime']
|
1079
|
+
@CreatedTime = params['CreatedTime']
|
1080
|
+
@UpdateTime = params['UpdateTime']
|
1081
|
+
@CertificateSource = params['CertificateSource']
|
1082
|
+
@NotAfterTime = params['NotAfterTime']
|
1083
|
+
@NotBeforeTime = params['NotBeforeTime']
|
1084
|
+
end
|
1085
|
+
end
|
1086
|
+
|
893
1087
|
# 查询过滤器
|
894
1088
|
class Filter < TencentCloud::Common::AbstractModel
|
895
1089
|
# @param Name: 过滤条件名
|
@@ -1236,7 +1430,9 @@ module TencentCloud
|
|
1236
1430
|
# @type InstanceId: String
|
1237
1431
|
# @param Algorithm: 算法:hmac-based,public-key
|
1238
1432
|
# @type Algorithm: String
|
1239
|
-
# @param From: 设备连接时传递jwt的key;
|
1433
|
+
# @param From: 设备连接时传递jwt的key;
|
1434
|
+
# username-使用用户名字段传递;
|
1435
|
+
# password-使用密码字段传递
|
1240
1436
|
# @type From: String
|
1241
1437
|
# @param Secret: 密码
|
1242
1438
|
# @type Secret: String
|
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.956
|
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-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|