tencentcloud-sdk-mqtt 3.0.1115 → 3.0.1127
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20240516/client.rb +120 -0
- data/lib/v20240516/models.rb +346 -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: 5b200fef1f67243fa132aebfe64db8bf1c9b4a32
|
4
|
+
data.tar.gz: 2ae7ce5b07578b6cb97c405bec055538dc820d69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0fd8d244029692b710432349649b3b8855723bb8eeba1829ef833dbd41b362f21072b22faf51680ee43f23eeb7f92b2e4dabdca0732861dbfc89294062144529
|
7
|
+
data.tar.gz: e9354a61f18545508d6ed2e81ef8414e8f708ca1c4067bb9e1881587df21042135565f1978887f71d27f9815f675b9c1c07b94b04c161ecfedceb44962ca01f7
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1127
|
data/lib/v20240516/client.rb
CHANGED
@@ -125,6 +125,30 @@ module TencentCloud
|
|
125
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
126
126
|
end
|
127
127
|
|
128
|
+
# 创建一机一密设备签名
|
129
|
+
|
130
|
+
# @param request: Request instance for CreateDeviceIdentity.
|
131
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::CreateDeviceIdentityRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::CreateDeviceIdentityResponse`
|
133
|
+
def CreateDeviceIdentity(request)
|
134
|
+
body = send_request('CreateDeviceIdentity', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = CreateDeviceIdentityResponse.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
|
+
|
128
152
|
# 创建一个HTTP的认证器
|
129
153
|
|
130
154
|
# @param request: Request instance for CreateHttpAuthenticator.
|
@@ -437,6 +461,30 @@ module TencentCloud
|
|
437
461
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
438
462
|
end
|
439
463
|
|
464
|
+
# 删除一机一密设备签名
|
465
|
+
|
466
|
+
# @param request: Request instance for DeleteDeviceIdentity.
|
467
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::DeleteDeviceIdentityRequest`
|
468
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::DeleteDeviceIdentityResponse`
|
469
|
+
def DeleteDeviceIdentity(request)
|
470
|
+
body = send_request('DeleteDeviceIdentity', request.serialize)
|
471
|
+
response = JSON.parse(body)
|
472
|
+
if response['Response'].key?('Error') == false
|
473
|
+
model = DeleteDeviceIdentityResponse.new
|
474
|
+
model.deserialize(response['Response'])
|
475
|
+
model
|
476
|
+
else
|
477
|
+
code = response['Response']['Error']['Code']
|
478
|
+
message = response['Response']['Error']['Message']
|
479
|
+
reqid = response['Response']['RequestId']
|
480
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
481
|
+
end
|
482
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
483
|
+
raise e
|
484
|
+
rescue StandardError => e
|
485
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
486
|
+
end
|
487
|
+
|
440
488
|
# 删除MQTT实例的公网接入点
|
441
489
|
|
442
490
|
# @param request: Request instance for DeleteInsPublicEndpoint.
|
@@ -701,6 +749,54 @@ module TencentCloud
|
|
701
749
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
702
750
|
end
|
703
751
|
|
752
|
+
# 查询集群下设备标识列表
|
753
|
+
|
754
|
+
# @param request: Request instance for DescribeDeviceIdentities.
|
755
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::DescribeDeviceIdentitiesRequest`
|
756
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::DescribeDeviceIdentitiesResponse`
|
757
|
+
def DescribeDeviceIdentities(request)
|
758
|
+
body = send_request('DescribeDeviceIdentities', request.serialize)
|
759
|
+
response = JSON.parse(body)
|
760
|
+
if response['Response'].key?('Error') == false
|
761
|
+
model = DescribeDeviceIdentitiesResponse.new
|
762
|
+
model.deserialize(response['Response'])
|
763
|
+
model
|
764
|
+
else
|
765
|
+
code = response['Response']['Error']['Code']
|
766
|
+
message = response['Response']['Error']['Message']
|
767
|
+
reqid = response['Response']['RequestId']
|
768
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
769
|
+
end
|
770
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
771
|
+
raise e
|
772
|
+
rescue StandardError => e
|
773
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
774
|
+
end
|
775
|
+
|
776
|
+
# 查询设备一机一密标识
|
777
|
+
|
778
|
+
# @param request: Request instance for DescribeDeviceIdentity.
|
779
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::DescribeDeviceIdentityRequest`
|
780
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::DescribeDeviceIdentityResponse`
|
781
|
+
def DescribeDeviceIdentity(request)
|
782
|
+
body = send_request('DescribeDeviceIdentity', request.serialize)
|
783
|
+
response = JSON.parse(body)
|
784
|
+
if response['Response'].key?('Error') == false
|
785
|
+
model = DescribeDeviceIdentityResponse.new
|
786
|
+
model.deserialize(response['Response'])
|
787
|
+
model
|
788
|
+
else
|
789
|
+
code = response['Response']['Error']['Code']
|
790
|
+
message = response['Response']['Error']['Message']
|
791
|
+
reqid = response['Response']['RequestId']
|
792
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
793
|
+
end
|
794
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
795
|
+
raise e
|
796
|
+
rescue StandardError => e
|
797
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
798
|
+
end
|
799
|
+
|
704
800
|
# 查询MQTT实例公网接入点
|
705
801
|
|
706
802
|
# @param request: Request instance for DescribeInsPublicEndpoints.
|
@@ -1023,6 +1119,30 @@ module TencentCloud
|
|
1023
1119
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1024
1120
|
end
|
1025
1121
|
|
1122
|
+
# 修改一机一密设备签名
|
1123
|
+
|
1124
|
+
# @param request: Request instance for ModifyDeviceIdentity.
|
1125
|
+
# @type request: :class:`Tencentcloud::mqtt::V20240516::ModifyDeviceIdentityRequest`
|
1126
|
+
# @rtype: :class:`Tencentcloud::mqtt::V20240516::ModifyDeviceIdentityResponse`
|
1127
|
+
def ModifyDeviceIdentity(request)
|
1128
|
+
body = send_request('ModifyDeviceIdentity', request.serialize)
|
1129
|
+
response = JSON.parse(body)
|
1130
|
+
if response['Response'].key?('Error') == false
|
1131
|
+
model = ModifyDeviceIdentityResponse.new
|
1132
|
+
model.deserialize(response['Response'])
|
1133
|
+
model
|
1134
|
+
else
|
1135
|
+
code = response['Response']['Error']['Code']
|
1136
|
+
message = response['Response']['Error']['Message']
|
1137
|
+
reqid = response['Response']['RequestId']
|
1138
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1139
|
+
end
|
1140
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1141
|
+
raise e
|
1142
|
+
rescue StandardError => e
|
1143
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1144
|
+
end
|
1145
|
+
|
1026
1146
|
# 修改MQTT HTTP 认证器
|
1027
1147
|
|
1028
1148
|
# @param request: Request instance for ModifyHttpAuthenticator.
|
data/lib/v20240516/models.rb
CHANGED
@@ -424,6 +424,66 @@ module TencentCloud
|
|
424
424
|
end
|
425
425
|
end
|
426
426
|
|
427
|
+
# CreateDeviceIdentity请求参数结构体
|
428
|
+
class CreateDeviceIdentityRequest < TencentCloud::Common::AbstractModel
|
429
|
+
# @param InstanceId: 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
430
|
+
# @type InstanceId: String
|
431
|
+
# @param DeviceId: 设备id
|
432
|
+
# @type DeviceId: String
|
433
|
+
# @param Status: 1:ENABLED-可用(默认)
|
434
|
+
# 2:DISABLE-不可用
|
435
|
+
# @type Status: String
|
436
|
+
# @param PrimaryKey: 主要签名key,不传则由系统自动生成,需要base64编码。
|
437
|
+
# @type PrimaryKey: String
|
438
|
+
# @param SecondaryKey: 次要签名key,不传则油系统自动生成,需要base64编码。
|
439
|
+
# @type SecondaryKey: String
|
440
|
+
# @param PropagatingProperties: 该设备id的传播属性设置
|
441
|
+
# @type PropagatingProperties: Array
|
442
|
+
|
443
|
+
attr_accessor :InstanceId, :DeviceId, :Status, :PrimaryKey, :SecondaryKey, :PropagatingProperties
|
444
|
+
|
445
|
+
def initialize(instanceid=nil, deviceid=nil, status=nil, primarykey=nil, secondarykey=nil, propagatingproperties=nil)
|
446
|
+
@InstanceId = instanceid
|
447
|
+
@DeviceId = deviceid
|
448
|
+
@Status = status
|
449
|
+
@PrimaryKey = primarykey
|
450
|
+
@SecondaryKey = secondarykey
|
451
|
+
@PropagatingProperties = propagatingproperties
|
452
|
+
end
|
453
|
+
|
454
|
+
def deserialize(params)
|
455
|
+
@InstanceId = params['InstanceId']
|
456
|
+
@DeviceId = params['DeviceId']
|
457
|
+
@Status = params['Status']
|
458
|
+
@PrimaryKey = params['PrimaryKey']
|
459
|
+
@SecondaryKey = params['SecondaryKey']
|
460
|
+
unless params['PropagatingProperties'].nil?
|
461
|
+
@PropagatingProperties = []
|
462
|
+
params['PropagatingProperties'].each do |i|
|
463
|
+
propagatingproperty_tmp = PropagatingProperty.new
|
464
|
+
propagatingproperty_tmp.deserialize(i)
|
465
|
+
@PropagatingProperties << propagatingproperty_tmp
|
466
|
+
end
|
467
|
+
end
|
468
|
+
end
|
469
|
+
end
|
470
|
+
|
471
|
+
# CreateDeviceIdentity返回参数结构体
|
472
|
+
class CreateDeviceIdentityResponse < TencentCloud::Common::AbstractModel
|
473
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
474
|
+
# @type RequestId: String
|
475
|
+
|
476
|
+
attr_accessor :RequestId
|
477
|
+
|
478
|
+
def initialize(requestid=nil)
|
479
|
+
@RequestId = requestid
|
480
|
+
end
|
481
|
+
|
482
|
+
def deserialize(params)
|
483
|
+
@RequestId = params['RequestId']
|
484
|
+
end
|
485
|
+
end
|
486
|
+
|
427
487
|
# CreateHttpAuthenticator请求参数结构体
|
428
488
|
class CreateHttpAuthenticatorRequest < TencentCloud::Common::AbstractModel
|
429
489
|
# @param InstanceId: 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
@@ -1087,6 +1147,42 @@ module TencentCloud
|
|
1087
1147
|
end
|
1088
1148
|
end
|
1089
1149
|
|
1150
|
+
# DeleteDeviceIdentity请求参数结构体
|
1151
|
+
class DeleteDeviceIdentityRequest < TencentCloud::Common::AbstractModel
|
1152
|
+
# @param InstanceId: 集群id
|
1153
|
+
# @type InstanceId: String
|
1154
|
+
# @param DeviceId: 设备id
|
1155
|
+
# @type DeviceId: String
|
1156
|
+
|
1157
|
+
attr_accessor :InstanceId, :DeviceId
|
1158
|
+
|
1159
|
+
def initialize(instanceid=nil, deviceid=nil)
|
1160
|
+
@InstanceId = instanceid
|
1161
|
+
@DeviceId = deviceid
|
1162
|
+
end
|
1163
|
+
|
1164
|
+
def deserialize(params)
|
1165
|
+
@InstanceId = params['InstanceId']
|
1166
|
+
@DeviceId = params['DeviceId']
|
1167
|
+
end
|
1168
|
+
end
|
1169
|
+
|
1170
|
+
# DeleteDeviceIdentity返回参数结构体
|
1171
|
+
class DeleteDeviceIdentityResponse < TencentCloud::Common::AbstractModel
|
1172
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1173
|
+
# @type RequestId: String
|
1174
|
+
|
1175
|
+
attr_accessor :RequestId
|
1176
|
+
|
1177
|
+
def initialize(requestid=nil)
|
1178
|
+
@RequestId = requestid
|
1179
|
+
end
|
1180
|
+
|
1181
|
+
def deserialize(params)
|
1182
|
+
@RequestId = params['RequestId']
|
1183
|
+
end
|
1184
|
+
end
|
1185
|
+
|
1090
1186
|
# DeleteInsPublicEndpoint请求参数结构体
|
1091
1187
|
class DeleteInsPublicEndpointRequest < TencentCloud::Common::AbstractModel
|
1092
1188
|
# @param InstanceId: 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
@@ -1680,6 +1776,129 @@ module TencentCloud
|
|
1680
1776
|
end
|
1681
1777
|
end
|
1682
1778
|
|
1779
|
+
# DescribeDeviceIdentities请求参数结构体
|
1780
|
+
class DescribeDeviceIdentitiesRequest < TencentCloud::Common::AbstractModel
|
1781
|
+
# @param InstanceId: 集群id
|
1782
|
+
# @type InstanceId: String
|
1783
|
+
# @param Offset: 查询起始位置
|
1784
|
+
# @type Offset: Integer
|
1785
|
+
# @param Limit: 查询结果限制数量
|
1786
|
+
# @type Limit: Integer
|
1787
|
+
|
1788
|
+
attr_accessor :InstanceId, :Offset, :Limit
|
1789
|
+
|
1790
|
+
def initialize(instanceid=nil, offset=nil, limit=nil)
|
1791
|
+
@InstanceId = instanceid
|
1792
|
+
@Offset = offset
|
1793
|
+
@Limit = limit
|
1794
|
+
end
|
1795
|
+
|
1796
|
+
def deserialize(params)
|
1797
|
+
@InstanceId = params['InstanceId']
|
1798
|
+
@Offset = params['Offset']
|
1799
|
+
@Limit = params['Limit']
|
1800
|
+
end
|
1801
|
+
end
|
1802
|
+
|
1803
|
+
# DescribeDeviceIdentities返回参数结构体
|
1804
|
+
class DescribeDeviceIdentitiesResponse < TencentCloud::Common::AbstractModel
|
1805
|
+
# @param Data: 返回的设备标识列表
|
1806
|
+
# @type Data: Array
|
1807
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1808
|
+
# @type RequestId: String
|
1809
|
+
|
1810
|
+
attr_accessor :Data, :RequestId
|
1811
|
+
|
1812
|
+
def initialize(data=nil, requestid=nil)
|
1813
|
+
@Data = data
|
1814
|
+
@RequestId = requestid
|
1815
|
+
end
|
1816
|
+
|
1817
|
+
def deserialize(params)
|
1818
|
+
unless params['Data'].nil?
|
1819
|
+
@Data = []
|
1820
|
+
params['Data'].each do |i|
|
1821
|
+
deviceidentityitem_tmp = DeviceIdentityItem.new
|
1822
|
+
deviceidentityitem_tmp.deserialize(i)
|
1823
|
+
@Data << deviceidentityitem_tmp
|
1824
|
+
end
|
1825
|
+
end
|
1826
|
+
@RequestId = params['RequestId']
|
1827
|
+
end
|
1828
|
+
end
|
1829
|
+
|
1830
|
+
# DescribeDeviceIdentity请求参数结构体
|
1831
|
+
class DescribeDeviceIdentityRequest < TencentCloud::Common::AbstractModel
|
1832
|
+
# @param InstanceId: 集群id
|
1833
|
+
# @type InstanceId: String
|
1834
|
+
# @param DeviceId: 设备id
|
1835
|
+
# @type DeviceId: String
|
1836
|
+
|
1837
|
+
attr_accessor :InstanceId, :DeviceId
|
1838
|
+
|
1839
|
+
def initialize(instanceid=nil, deviceid=nil)
|
1840
|
+
@InstanceId = instanceid
|
1841
|
+
@DeviceId = deviceid
|
1842
|
+
end
|
1843
|
+
|
1844
|
+
def deserialize(params)
|
1845
|
+
@InstanceId = params['InstanceId']
|
1846
|
+
@DeviceId = params['DeviceId']
|
1847
|
+
end
|
1848
|
+
end
|
1849
|
+
|
1850
|
+
# DescribeDeviceIdentity返回参数结构体
|
1851
|
+
class DescribeDeviceIdentityResponse < TencentCloud::Common::AbstractModel
|
1852
|
+
# @param InstanceId: 集群id
|
1853
|
+
# @type InstanceId: String
|
1854
|
+
# @param DeviceId: 设备id
|
1855
|
+
# @type DeviceId: String
|
1856
|
+
# @param Status: 1:ENABLED-可用
|
1857
|
+
# 2:DISABLE-不可用
|
1858
|
+
# @type Status: Integer
|
1859
|
+
# @param PrimaryKey: 主要签名key
|
1860
|
+
# @type PrimaryKey: String
|
1861
|
+
# @param SecondaryKey: 次要签名key
|
1862
|
+
# @type SecondaryKey: String
|
1863
|
+
# @param CreatedTime: 创建时间
|
1864
|
+
# @type CreatedTime: Integer
|
1865
|
+
# @param PropagatingProperties: 该设备id的传播属性
|
1866
|
+
# @type PropagatingProperties: Array
|
1867
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1868
|
+
# @type RequestId: String
|
1869
|
+
|
1870
|
+
attr_accessor :InstanceId, :DeviceId, :Status, :PrimaryKey, :SecondaryKey, :CreatedTime, :PropagatingProperties, :RequestId
|
1871
|
+
|
1872
|
+
def initialize(instanceid=nil, deviceid=nil, status=nil, primarykey=nil, secondarykey=nil, createdtime=nil, propagatingproperties=nil, requestid=nil)
|
1873
|
+
@InstanceId = instanceid
|
1874
|
+
@DeviceId = deviceid
|
1875
|
+
@Status = status
|
1876
|
+
@PrimaryKey = primarykey
|
1877
|
+
@SecondaryKey = secondarykey
|
1878
|
+
@CreatedTime = createdtime
|
1879
|
+
@PropagatingProperties = propagatingproperties
|
1880
|
+
@RequestId = requestid
|
1881
|
+
end
|
1882
|
+
|
1883
|
+
def deserialize(params)
|
1884
|
+
@InstanceId = params['InstanceId']
|
1885
|
+
@DeviceId = params['DeviceId']
|
1886
|
+
@Status = params['Status']
|
1887
|
+
@PrimaryKey = params['PrimaryKey']
|
1888
|
+
@SecondaryKey = params['SecondaryKey']
|
1889
|
+
@CreatedTime = params['CreatedTime']
|
1890
|
+
unless params['PropagatingProperties'].nil?
|
1891
|
+
@PropagatingProperties = []
|
1892
|
+
params['PropagatingProperties'].each do |i|
|
1893
|
+
propagatingproperty_tmp = PropagatingProperty.new
|
1894
|
+
propagatingproperty_tmp.deserialize(i)
|
1895
|
+
@PropagatingProperties << propagatingproperty_tmp
|
1896
|
+
end
|
1897
|
+
end
|
1898
|
+
@RequestId = params['RequestId']
|
1899
|
+
end
|
1900
|
+
end
|
1901
|
+
|
1683
1902
|
# DescribeInsPublicEndpoints请求参数结构体
|
1684
1903
|
class DescribeInsPublicEndpointsRequest < TencentCloud::Common::AbstractModel
|
1685
1904
|
# @param InstanceId: 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
@@ -2583,6 +2802,53 @@ module TencentCloud
|
|
2583
2802
|
end
|
2584
2803
|
end
|
2585
2804
|
|
2805
|
+
# 设备标识列表
|
2806
|
+
class DeviceIdentityItem < TencentCloud::Common::AbstractModel
|
2807
|
+
# @param InstanceId: 集群id
|
2808
|
+
# @type InstanceId: String
|
2809
|
+
# @param DeviceId: 设备id
|
2810
|
+
# @type DeviceId: String
|
2811
|
+
# @param Status: 1:ENABLED-可用2:DISABLE-不可用
|
2812
|
+
# @type Status: Integer
|
2813
|
+
# @param PrimaryKey: 主要签名key,不传则由系统自动生成
|
2814
|
+
# @type PrimaryKey: String
|
2815
|
+
# @param SecondaryKey: 次要签名key,不传则由系统自动生成
|
2816
|
+
# @type SecondaryKey: String
|
2817
|
+
# @param CreatedTime: 创建时间
|
2818
|
+
# @type CreatedTime: Integer
|
2819
|
+
# @param PropagatingProperties: 传播属性列表
|
2820
|
+
# @type PropagatingProperties: Array
|
2821
|
+
|
2822
|
+
attr_accessor :InstanceId, :DeviceId, :Status, :PrimaryKey, :SecondaryKey, :CreatedTime, :PropagatingProperties
|
2823
|
+
|
2824
|
+
def initialize(instanceid=nil, deviceid=nil, status=nil, primarykey=nil, secondarykey=nil, createdtime=nil, propagatingproperties=nil)
|
2825
|
+
@InstanceId = instanceid
|
2826
|
+
@DeviceId = deviceid
|
2827
|
+
@Status = status
|
2828
|
+
@PrimaryKey = primarykey
|
2829
|
+
@SecondaryKey = secondarykey
|
2830
|
+
@CreatedTime = createdtime
|
2831
|
+
@PropagatingProperties = propagatingproperties
|
2832
|
+
end
|
2833
|
+
|
2834
|
+
def deserialize(params)
|
2835
|
+
@InstanceId = params['InstanceId']
|
2836
|
+
@DeviceId = params['DeviceId']
|
2837
|
+
@Status = params['Status']
|
2838
|
+
@PrimaryKey = params['PrimaryKey']
|
2839
|
+
@SecondaryKey = params['SecondaryKey']
|
2840
|
+
@CreatedTime = params['CreatedTime']
|
2841
|
+
unless params['PropagatingProperties'].nil?
|
2842
|
+
@PropagatingProperties = []
|
2843
|
+
params['PropagatingProperties'].each do |i|
|
2844
|
+
propagatingproperty_tmp = PropagatingProperty.new
|
2845
|
+
propagatingproperty_tmp.deserialize(i)
|
2846
|
+
@PropagatingProperties << propagatingproperty_tmp
|
2847
|
+
end
|
2848
|
+
end
|
2849
|
+
end
|
2850
|
+
end
|
2851
|
+
|
2586
2852
|
# 查询过滤器
|
2587
2853
|
class Filter < TencentCloud::Common::AbstractModel
|
2588
2854
|
# @param Name: 过滤条件名
|
@@ -3216,6 +3482,66 @@ module TencentCloud
|
|
3216
3482
|
end
|
3217
3483
|
end
|
3218
3484
|
|
3485
|
+
# ModifyDeviceIdentity请求参数结构体
|
3486
|
+
class ModifyDeviceIdentityRequest < TencentCloud::Common::AbstractModel
|
3487
|
+
# @param InstanceId: 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
3488
|
+
# @type InstanceId: String
|
3489
|
+
# @param DeviceId: 设备id
|
3490
|
+
# @type DeviceId: String
|
3491
|
+
# @param Status: 1:ENABLED-可用
|
3492
|
+
# 2:DISABLE-不可用
|
3493
|
+
# @type Status: String
|
3494
|
+
# @param PrimaryKey: 主要签名key,需要Base64编码。
|
3495
|
+
# @type PrimaryKey: String
|
3496
|
+
# @param SecondaryKey: 次要签名key,需要Base64编码。
|
3497
|
+
# @type SecondaryKey: String
|
3498
|
+
# @param PropagatingProperties: 该设备id的传播属性设置
|
3499
|
+
# @type PropagatingProperties: Array
|
3500
|
+
|
3501
|
+
attr_accessor :InstanceId, :DeviceId, :Status, :PrimaryKey, :SecondaryKey, :PropagatingProperties
|
3502
|
+
|
3503
|
+
def initialize(instanceid=nil, deviceid=nil, status=nil, primarykey=nil, secondarykey=nil, propagatingproperties=nil)
|
3504
|
+
@InstanceId = instanceid
|
3505
|
+
@DeviceId = deviceid
|
3506
|
+
@Status = status
|
3507
|
+
@PrimaryKey = primarykey
|
3508
|
+
@SecondaryKey = secondarykey
|
3509
|
+
@PropagatingProperties = propagatingproperties
|
3510
|
+
end
|
3511
|
+
|
3512
|
+
def deserialize(params)
|
3513
|
+
@InstanceId = params['InstanceId']
|
3514
|
+
@DeviceId = params['DeviceId']
|
3515
|
+
@Status = params['Status']
|
3516
|
+
@PrimaryKey = params['PrimaryKey']
|
3517
|
+
@SecondaryKey = params['SecondaryKey']
|
3518
|
+
unless params['PropagatingProperties'].nil?
|
3519
|
+
@PropagatingProperties = []
|
3520
|
+
params['PropagatingProperties'].each do |i|
|
3521
|
+
propagatingproperty_tmp = PropagatingProperty.new
|
3522
|
+
propagatingproperty_tmp.deserialize(i)
|
3523
|
+
@PropagatingProperties << propagatingproperty_tmp
|
3524
|
+
end
|
3525
|
+
end
|
3526
|
+
end
|
3527
|
+
end
|
3528
|
+
|
3529
|
+
# ModifyDeviceIdentity返回参数结构体
|
3530
|
+
class ModifyDeviceIdentityResponse < TencentCloud::Common::AbstractModel
|
3531
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3532
|
+
# @type RequestId: String
|
3533
|
+
|
3534
|
+
attr_accessor :RequestId
|
3535
|
+
|
3536
|
+
def initialize(requestid=nil)
|
3537
|
+
@RequestId = requestid
|
3538
|
+
end
|
3539
|
+
|
3540
|
+
def deserialize(params)
|
3541
|
+
@RequestId = params['RequestId']
|
3542
|
+
end
|
3543
|
+
end
|
3544
|
+
|
3219
3545
|
# ModifyHttpAuthenticator请求参数结构体
|
3220
3546
|
class ModifyHttpAuthenticatorRequest < TencentCloud::Common::AbstractModel
|
3221
3547
|
# @param InstanceId: 腾讯云MQTT实例ID,从 [DescribeInstanceList](https://cloud.tencent.com/document/api/1778/111029)接口或控制台获得。
|
@@ -3769,6 +4095,26 @@ module TencentCloud
|
|
3769
4095
|
end
|
3770
4096
|
end
|
3771
4097
|
|
4098
|
+
# 传播属性结构
|
4099
|
+
class PropagatingProperty < TencentCloud::Common::AbstractModel
|
4100
|
+
# @param Key: 传播属性key
|
4101
|
+
# @type Key: String
|
4102
|
+
# @param Value: 传播属性value
|
4103
|
+
# @type Value: String
|
4104
|
+
|
4105
|
+
attr_accessor :Key, :Value
|
4106
|
+
|
4107
|
+
def initialize(key=nil, value=nil)
|
4108
|
+
@Key = key
|
4109
|
+
@Value = value
|
4110
|
+
end
|
4111
|
+
|
4112
|
+
def deserialize(params)
|
4113
|
+
@Key = params['Key']
|
4114
|
+
@Value = params['Value']
|
4115
|
+
end
|
4116
|
+
end
|
4117
|
+
|
3772
4118
|
# 公网访问安全规则
|
3773
4119
|
class PublicAccessRule < TencentCloud::Common::AbstractModel
|
3774
4120
|
# @param IpRule: ip网段信息
|
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.1127
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08-
|
11
|
+
date: 2025-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|