tencentcloud-sdk-iotcloud 1.0.309 → 1.0.310
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/v20210408/client.rb +1141 -85
- data/lib/v20210408/models.rb +3377 -694
- metadata +2 -2
data/lib/v20210408/models.rb
CHANGED
@@ -40,6 +40,158 @@ module TencentCloud
|
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
43
|
+
# BatchUpdateFirmware请求参数结构体
|
44
|
+
class BatchUpdateFirmwareRequest < TencentCloud::Common::AbstractModel
|
45
|
+
# @param ProductId: 产品ID
|
46
|
+
# @type ProductId: String
|
47
|
+
# @param FirmwareVersion: 固件新版本号
|
48
|
+
# @type FirmwareVersion: String
|
49
|
+
# @param FirmwareOriVersion: 固件原版本号,根据文件列表升级固件不需要填写此参数
|
50
|
+
# @type FirmwareOriVersion: String
|
51
|
+
# @param UpgradeMethod: 升级方式,0 静默升级 1 用户确认升级。 不填默认为静默升级方式
|
52
|
+
# @type UpgradeMethod: Integer
|
53
|
+
# @param FileName: 设备列表文件名称,根据文件列表升级固件需要填写此参数
|
54
|
+
# @type FileName: String
|
55
|
+
# @param FileMd5: 设备列表的文件md5值
|
56
|
+
# @type FileMd5: String
|
57
|
+
# @param FileSize: 设备列表的文件大小值
|
58
|
+
# @type FileSize: Integer
|
59
|
+
# @param DeviceNames: 需要升级的设备名称列表
|
60
|
+
# @type DeviceNames: Array
|
61
|
+
# @param TimeoutInterval: 固件升级任务,默认超时时间。 最小取值60秒,最大为3600秒
|
62
|
+
# @type TimeoutInterval: Integer
|
63
|
+
|
64
|
+
attr_accessor :ProductId, :FirmwareVersion, :FirmwareOriVersion, :UpgradeMethod, :FileName, :FileMd5, :FileSize, :DeviceNames, :TimeoutInterval
|
65
|
+
|
66
|
+
def initialize(productid=nil, firmwareversion=nil, firmwareoriversion=nil, upgrademethod=nil, filename=nil, filemd5=nil, filesize=nil, devicenames=nil, timeoutinterval=nil)
|
67
|
+
@ProductId = productid
|
68
|
+
@FirmwareVersion = firmwareversion
|
69
|
+
@FirmwareOriVersion = firmwareoriversion
|
70
|
+
@UpgradeMethod = upgrademethod
|
71
|
+
@FileName = filename
|
72
|
+
@FileMd5 = filemd5
|
73
|
+
@FileSize = filesize
|
74
|
+
@DeviceNames = devicenames
|
75
|
+
@TimeoutInterval = timeoutinterval
|
76
|
+
end
|
77
|
+
|
78
|
+
def deserialize(params)
|
79
|
+
@ProductId = params['ProductId']
|
80
|
+
@FirmwareVersion = params['FirmwareVersion']
|
81
|
+
@FirmwareOriVersion = params['FirmwareOriVersion']
|
82
|
+
@UpgradeMethod = params['UpgradeMethod']
|
83
|
+
@FileName = params['FileName']
|
84
|
+
@FileMd5 = params['FileMd5']
|
85
|
+
@FileSize = params['FileSize']
|
86
|
+
@DeviceNames = params['DeviceNames']
|
87
|
+
@TimeoutInterval = params['TimeoutInterval']
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# BatchUpdateFirmware返回参数结构体
|
92
|
+
class BatchUpdateFirmwareResponse < TencentCloud::Common::AbstractModel
|
93
|
+
# @param TaskId: 任务ID
|
94
|
+
# @type TaskId: Integer
|
95
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
96
|
+
# @type RequestId: String
|
97
|
+
|
98
|
+
attr_accessor :TaskId, :RequestId
|
99
|
+
|
100
|
+
def initialize(taskid=nil, requestid=nil)
|
101
|
+
@TaskId = taskid
|
102
|
+
@RequestId = requestid
|
103
|
+
end
|
104
|
+
|
105
|
+
def deserialize(params)
|
106
|
+
@TaskId = params['TaskId']
|
107
|
+
@RequestId = params['RequestId']
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
# 子设备信息
|
112
|
+
class BindDeviceInfo < TencentCloud::Common::AbstractModel
|
113
|
+
# @param ProductId: 产品ID
|
114
|
+
# @type ProductId: String
|
115
|
+
# @param DeviceName: 设备名
|
116
|
+
# @type DeviceName: String
|
117
|
+
# @param Tags: 设备Tag
|
118
|
+
# @type Tags: Array
|
119
|
+
# @param BindTime: 子设备绑定时间
|
120
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
121
|
+
# @type BindTime: Integer
|
122
|
+
|
123
|
+
attr_accessor :ProductId, :DeviceName, :Tags, :BindTime
|
124
|
+
|
125
|
+
def initialize(productid=nil, devicename=nil, tags=nil, bindtime=nil)
|
126
|
+
@ProductId = productid
|
127
|
+
@DeviceName = devicename
|
128
|
+
@Tags = tags
|
129
|
+
@BindTime = bindtime
|
130
|
+
end
|
131
|
+
|
132
|
+
def deserialize(params)
|
133
|
+
@ProductId = params['ProductId']
|
134
|
+
@DeviceName = params['DeviceName']
|
135
|
+
unless params['Tags'].nil?
|
136
|
+
@Tags = []
|
137
|
+
params['Tags'].each do |i|
|
138
|
+
devicetag_tmp = DeviceTag.new
|
139
|
+
devicetag_tmp.deserialize(i)
|
140
|
+
@Tags << devicetag_tmp
|
141
|
+
end
|
142
|
+
end
|
143
|
+
@BindTime = params['BindTime']
|
144
|
+
end
|
145
|
+
end
|
146
|
+
|
147
|
+
# BindDevices请求参数结构体
|
148
|
+
class BindDevicesRequest < TencentCloud::Common::AbstractModel
|
149
|
+
# @param GatewayProductId: 网关设备的产品ID
|
150
|
+
# @type GatewayProductId: String
|
151
|
+
# @param GatewayDeviceName: 网关设备的设备名
|
152
|
+
# @type GatewayDeviceName: String
|
153
|
+
# @param ProductId: 被绑定设备的产品ID
|
154
|
+
# @type ProductId: String
|
155
|
+
# @param DeviceNames: 被绑定的多个设备名
|
156
|
+
# @type DeviceNames: Array
|
157
|
+
# @param Skey: 中兴CLAA设备的绑定需要skey,普通的设备不需要
|
158
|
+
# @type Skey: String
|
159
|
+
|
160
|
+
attr_accessor :GatewayProductId, :GatewayDeviceName, :ProductId, :DeviceNames, :Skey
|
161
|
+
|
162
|
+
def initialize(gatewayproductid=nil, gatewaydevicename=nil, productid=nil, devicenames=nil, skey=nil)
|
163
|
+
@GatewayProductId = gatewayproductid
|
164
|
+
@GatewayDeviceName = gatewaydevicename
|
165
|
+
@ProductId = productid
|
166
|
+
@DeviceNames = devicenames
|
167
|
+
@Skey = skey
|
168
|
+
end
|
169
|
+
|
170
|
+
def deserialize(params)
|
171
|
+
@GatewayProductId = params['GatewayProductId']
|
172
|
+
@GatewayDeviceName = params['GatewayDeviceName']
|
173
|
+
@ProductId = params['ProductId']
|
174
|
+
@DeviceNames = params['DeviceNames']
|
175
|
+
@Skey = params['Skey']
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
# BindDevices返回参数结构体
|
180
|
+
class BindDevicesResponse < TencentCloud::Common::AbstractModel
|
181
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
182
|
+
# @type RequestId: String
|
183
|
+
|
184
|
+
attr_accessor :RequestId
|
185
|
+
|
186
|
+
def initialize(requestid=nil)
|
187
|
+
@RequestId = requestid
|
188
|
+
end
|
189
|
+
|
190
|
+
def deserialize(params)
|
191
|
+
@RequestId = params['RequestId']
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
43
195
|
# 子产品信息
|
44
196
|
class BindProductInfo < TencentCloud::Common::AbstractModel
|
45
197
|
# @param ProductId: 产品ID
|
@@ -60,6 +212,26 @@ module TencentCloud
|
|
60
212
|
end
|
61
213
|
end
|
62
214
|
|
215
|
+
# 代理订阅信息
|
216
|
+
class BrokerSubscribe < TencentCloud::Common::AbstractModel
|
217
|
+
# @param ProductId: 产品ID
|
218
|
+
# @type ProductId: String
|
219
|
+
# @param DeviceName: 设备名
|
220
|
+
# @type DeviceName: String
|
221
|
+
|
222
|
+
attr_accessor :ProductId, :DeviceName
|
223
|
+
|
224
|
+
def initialize(productid=nil, devicename=nil)
|
225
|
+
@ProductId = productid
|
226
|
+
@DeviceName = devicename
|
227
|
+
end
|
228
|
+
|
229
|
+
def deserialize(params)
|
230
|
+
@ProductId = params['ProductId']
|
231
|
+
@DeviceName = params['DeviceName']
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
63
235
|
# CLS日志
|
64
236
|
class CLSLogItem < TencentCloud::Common::AbstractModel
|
65
237
|
# @param Content: 日志内容
|
@@ -104,6 +276,50 @@ module TencentCloud
|
|
104
276
|
end
|
105
277
|
end
|
106
278
|
|
279
|
+
# CancelDeviceFirmwareTask请求参数结构体
|
280
|
+
class CancelDeviceFirmwareTaskRequest < TencentCloud::Common::AbstractModel
|
281
|
+
# @param ProductId: 产品ID
|
282
|
+
# @type ProductId: String
|
283
|
+
# @param DeviceName: 设备名称
|
284
|
+
# @type DeviceName: String
|
285
|
+
# @param FirmwareVersion: 固件版本号
|
286
|
+
# @type FirmwareVersion: String
|
287
|
+
# @param TaskId: 固件升级任务ID
|
288
|
+
# @type TaskId: Integer
|
289
|
+
|
290
|
+
attr_accessor :ProductId, :DeviceName, :FirmwareVersion, :TaskId
|
291
|
+
|
292
|
+
def initialize(productid=nil, devicename=nil, firmwareversion=nil, taskid=nil)
|
293
|
+
@ProductId = productid
|
294
|
+
@DeviceName = devicename
|
295
|
+
@FirmwareVersion = firmwareversion
|
296
|
+
@TaskId = taskid
|
297
|
+
end
|
298
|
+
|
299
|
+
def deserialize(params)
|
300
|
+
@ProductId = params['ProductId']
|
301
|
+
@DeviceName = params['DeviceName']
|
302
|
+
@FirmwareVersion = params['FirmwareVersion']
|
303
|
+
@TaskId = params['TaskId']
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
307
|
+
# CancelDeviceFirmwareTask返回参数结构体
|
308
|
+
class CancelDeviceFirmwareTaskResponse < TencentCloud::Common::AbstractModel
|
309
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
310
|
+
# @type RequestId: String
|
311
|
+
|
312
|
+
attr_accessor :RequestId
|
313
|
+
|
314
|
+
def initialize(requestid=nil)
|
315
|
+
@RequestId = requestid
|
316
|
+
end
|
317
|
+
|
318
|
+
def deserialize(params)
|
319
|
+
@RequestId = params['RequestId']
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
107
323
|
# X509证书信息
|
108
324
|
class CertInfo < TencentCloud::Common::AbstractModel
|
109
325
|
# @param CertName: 证书名称
|
@@ -255,6 +471,62 @@ module TencentCloud
|
|
255
471
|
end
|
256
472
|
end
|
257
473
|
|
474
|
+
# CreateMultiDevicesTask请求参数结构体
|
475
|
+
class CreateMultiDevicesTaskRequest < TencentCloud::Common::AbstractModel
|
476
|
+
# @param ProductId: 产品ID
|
477
|
+
# @type ProductId: String
|
478
|
+
# @param ParametersType: 参数类型 cosfile-文件上传 random-随机创建
|
479
|
+
# @type ParametersType: String
|
480
|
+
# @param FileName: 文件上传类型时文件名
|
481
|
+
# @type FileName: String
|
482
|
+
# @param FileSize: 文件上传类型时文件大小
|
483
|
+
# @type FileSize: Integer
|
484
|
+
# @param BatchCount: 随机创建时设备创建个数
|
485
|
+
# @type BatchCount: Integer
|
486
|
+
# @param Hash: 文件上传类型时文件md5值
|
487
|
+
# @type Hash: String
|
488
|
+
|
489
|
+
attr_accessor :ProductId, :ParametersType, :FileName, :FileSize, :BatchCount, :Hash
|
490
|
+
|
491
|
+
def initialize(productid=nil, parameterstype=nil, filename=nil, filesize=nil, batchcount=nil, hash=nil)
|
492
|
+
@ProductId = productid
|
493
|
+
@ParametersType = parameterstype
|
494
|
+
@FileName = filename
|
495
|
+
@FileSize = filesize
|
496
|
+
@BatchCount = batchcount
|
497
|
+
@Hash = hash
|
498
|
+
end
|
499
|
+
|
500
|
+
def deserialize(params)
|
501
|
+
@ProductId = params['ProductId']
|
502
|
+
@ParametersType = params['ParametersType']
|
503
|
+
@FileName = params['FileName']
|
504
|
+
@FileSize = params['FileSize']
|
505
|
+
@BatchCount = params['BatchCount']
|
506
|
+
@Hash = params['Hash']
|
507
|
+
end
|
508
|
+
end
|
509
|
+
|
510
|
+
# CreateMultiDevicesTask返回参数结构体
|
511
|
+
class CreateMultiDevicesTaskResponse < TencentCloud::Common::AbstractModel
|
512
|
+
# @param Id: 任务ID
|
513
|
+
# @type Id: Integer
|
514
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
515
|
+
# @type RequestId: String
|
516
|
+
|
517
|
+
attr_accessor :Id, :RequestId
|
518
|
+
|
519
|
+
def initialize(id=nil, requestid=nil)
|
520
|
+
@Id = id
|
521
|
+
@RequestId = requestid
|
522
|
+
end
|
523
|
+
|
524
|
+
def deserialize(params)
|
525
|
+
@Id = params['Id']
|
526
|
+
@RequestId = params['RequestId']
|
527
|
+
end
|
528
|
+
end
|
529
|
+
|
258
530
|
# CreatePrivateCA请求参数结构体
|
259
531
|
class CreatePrivateCARequest < TencentCloud::Common::AbstractModel
|
260
532
|
# @param CertName: CA证书名称
|
@@ -295,96 +567,137 @@ module TencentCloud
|
|
295
567
|
end
|
296
568
|
end
|
297
569
|
|
298
|
-
#
|
299
|
-
class
|
300
|
-
# @param
|
301
|
-
# @type
|
302
|
-
# @param
|
303
|
-
# @type
|
304
|
-
# @param Skey:
|
570
|
+
# CreateProduct请求参数结构体
|
571
|
+
class CreateProductRequest < TencentCloud::Common::AbstractModel
|
572
|
+
# @param ProductName: 产品名称,名称不能和已经存在的产品名称重复。命名规则:[a-zA-Z0-9:_-]{1,32}
|
573
|
+
# @type ProductName: String
|
574
|
+
# @param ProductProperties: 产品属性
|
575
|
+
# @type ProductProperties: :class:`Tencentcloud::Iotcloud.v20210408.models.ProductProperties`
|
576
|
+
# @param Skey: 创建CLAA产品时,需要Skey
|
305
577
|
# @type Skey: String
|
306
578
|
|
307
|
-
attr_accessor :
|
579
|
+
attr_accessor :ProductName, :ProductProperties, :Skey
|
308
580
|
|
309
|
-
def initialize(
|
310
|
-
@
|
311
|
-
@
|
581
|
+
def initialize(productname=nil, productproperties=nil, skey=nil)
|
582
|
+
@ProductName = productname
|
583
|
+
@ProductProperties = productproperties
|
312
584
|
@Skey = skey
|
313
585
|
end
|
314
586
|
|
315
587
|
def deserialize(params)
|
316
|
-
@
|
317
|
-
|
588
|
+
@ProductName = params['ProductName']
|
589
|
+
unless params['ProductProperties'].nil?
|
590
|
+
@ProductProperties = ProductProperties.new
|
591
|
+
@ProductProperties.deserialize(params['ProductProperties'])
|
592
|
+
end
|
318
593
|
@Skey = params['Skey']
|
319
594
|
end
|
320
595
|
end
|
321
596
|
|
322
|
-
#
|
323
|
-
class
|
597
|
+
# CreateProduct返回参数结构体
|
598
|
+
class CreateProductResponse < TencentCloud::Common::AbstractModel
|
599
|
+
# @param ProductName: 产品名称
|
600
|
+
# @type ProductName: String
|
601
|
+
# @param ProductId: 产品 ID,腾讯云生成全局唯一 ID
|
602
|
+
# @type ProductId: String
|
603
|
+
# @param ProductProperties: 产品属性
|
604
|
+
# @type ProductProperties: :class:`Tencentcloud::Iotcloud.v20210408.models.ProductProperties`
|
324
605
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
325
606
|
# @type RequestId: String
|
326
607
|
|
327
|
-
attr_accessor :RequestId
|
608
|
+
attr_accessor :ProductName, :ProductId, :ProductProperties, :RequestId
|
328
609
|
|
329
|
-
def initialize(requestid=nil)
|
610
|
+
def initialize(productname=nil, productid=nil, productproperties=nil, requestid=nil)
|
611
|
+
@ProductName = productname
|
612
|
+
@ProductId = productid
|
613
|
+
@ProductProperties = productproperties
|
330
614
|
@RequestId = requestid
|
331
615
|
end
|
332
616
|
|
333
617
|
def deserialize(params)
|
618
|
+
@ProductName = params['ProductName']
|
619
|
+
@ProductId = params['ProductId']
|
620
|
+
unless params['ProductProperties'].nil?
|
621
|
+
@ProductProperties = ProductProperties.new
|
622
|
+
@ProductProperties.deserialize(params['ProductProperties'])
|
623
|
+
end
|
334
624
|
@RequestId = params['RequestId']
|
335
625
|
end
|
336
626
|
end
|
337
627
|
|
338
|
-
#
|
339
|
-
class
|
340
|
-
# @param
|
341
|
-
# @type
|
628
|
+
# CreateTaskFileUrl请求参数结构体
|
629
|
+
class CreateTaskFileUrlRequest < TencentCloud::Common::AbstractModel
|
630
|
+
# @param ProductId: 产品ID
|
631
|
+
# @type ProductId: String
|
342
632
|
|
343
|
-
attr_accessor :
|
633
|
+
attr_accessor :ProductId
|
344
634
|
|
345
|
-
def initialize(
|
346
|
-
@
|
635
|
+
def initialize(productid=nil)
|
636
|
+
@ProductId = productid
|
347
637
|
end
|
348
638
|
|
349
639
|
def deserialize(params)
|
350
|
-
@
|
640
|
+
@ProductId = params['ProductId']
|
351
641
|
end
|
352
642
|
end
|
353
643
|
|
354
|
-
#
|
355
|
-
class
|
644
|
+
# CreateTaskFileUrl返回参数结构体
|
645
|
+
class CreateTaskFileUrlResponse < TencentCloud::Common::AbstractModel
|
646
|
+
# @param Url: 任务文件上传链接
|
647
|
+
# @type Url: String
|
648
|
+
# @param FileName: 任务文件名
|
649
|
+
# @type FileName: String
|
356
650
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
357
651
|
# @type RequestId: String
|
358
652
|
|
359
|
-
attr_accessor :RequestId
|
653
|
+
attr_accessor :Url, :FileName, :RequestId
|
360
654
|
|
361
|
-
def initialize(requestid=nil)
|
655
|
+
def initialize(url=nil, filename=nil, requestid=nil)
|
656
|
+
@Url = url
|
657
|
+
@FileName = filename
|
362
658
|
@RequestId = requestid
|
363
659
|
end
|
364
660
|
|
365
661
|
def deserialize(params)
|
662
|
+
@Url = params['Url']
|
663
|
+
@FileName = params['FileName']
|
366
664
|
@RequestId = params['RequestId']
|
367
665
|
end
|
368
666
|
end
|
369
667
|
|
370
|
-
#
|
371
|
-
class
|
372
|
-
# @param ProductId:
|
668
|
+
# CreateTopicPolicy请求参数结构体
|
669
|
+
class CreateTopicPolicyRequest < TencentCloud::Common::AbstractModel
|
670
|
+
# @param ProductId: 产品自身ID
|
373
671
|
# @type ProductId: String
|
374
|
-
|
375
|
-
|
672
|
+
# @param TopicName: Topic名称
|
673
|
+
# @type TopicName: String
|
674
|
+
# @param Privilege: Topic权限,1发布,2订阅,3订阅和发布
|
675
|
+
# @type Privilege: Integer
|
676
|
+
# @param BrokerSubscribe: 代理订阅信息,网关产品为绑定的子产品创建topic时需要填写,内容为子产品的ID和设备信息。
|
677
|
+
# @type BrokerSubscribe: :class:`Tencentcloud::Iotcloud.v20210408.models.BrokerSubscribe`
|
678
|
+
|
679
|
+
attr_accessor :ProductId, :TopicName, :Privilege, :BrokerSubscribe
|
376
680
|
|
377
|
-
def initialize(productid=nil)
|
681
|
+
def initialize(productid=nil, topicname=nil, privilege=nil, brokersubscribe=nil)
|
378
682
|
@ProductId = productid
|
683
|
+
@TopicName = topicname
|
684
|
+
@Privilege = privilege
|
685
|
+
@BrokerSubscribe = brokersubscribe
|
379
686
|
end
|
380
687
|
|
381
688
|
def deserialize(params)
|
382
689
|
@ProductId = params['ProductId']
|
690
|
+
@TopicName = params['TopicName']
|
691
|
+
@Privilege = params['Privilege']
|
692
|
+
unless params['BrokerSubscribe'].nil?
|
693
|
+
@BrokerSubscribe = BrokerSubscribe.new
|
694
|
+
@BrokerSubscribe.deserialize(params['BrokerSubscribe'])
|
695
|
+
end
|
383
696
|
end
|
384
697
|
end
|
385
698
|
|
386
|
-
#
|
387
|
-
class
|
699
|
+
# CreateTopicPolicy返回参数结构体
|
700
|
+
class CreateTopicPolicyResponse < TencentCloud::Common::AbstractModel
|
388
701
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
389
702
|
# @type RequestId: String
|
390
703
|
|
@@ -399,28 +712,31 @@ module TencentCloud
|
|
399
712
|
end
|
400
713
|
end
|
401
714
|
|
402
|
-
#
|
403
|
-
class
|
404
|
-
# @param
|
405
|
-
# @type
|
406
|
-
# @param
|
407
|
-
# @type
|
715
|
+
# CreateTopicRule请求参数结构体
|
716
|
+
class CreateTopicRuleRequest < TencentCloud::Common::AbstractModel
|
717
|
+
# @param RuleName: 规则名称
|
718
|
+
# @type RuleName: String
|
719
|
+
# @param TopicRulePayload: 规则内容
|
720
|
+
# @type TopicRulePayload: :class:`Tencentcloud::Iotcloud.v20210408.models.TopicRulePayload`
|
408
721
|
|
409
|
-
attr_accessor :
|
722
|
+
attr_accessor :RuleName, :TopicRulePayload
|
410
723
|
|
411
|
-
def initialize(
|
412
|
-
@
|
413
|
-
@
|
724
|
+
def initialize(rulename=nil, topicrulepayload=nil)
|
725
|
+
@RuleName = rulename
|
726
|
+
@TopicRulePayload = topicrulepayload
|
414
727
|
end
|
415
728
|
|
416
729
|
def deserialize(params)
|
417
|
-
@
|
418
|
-
|
730
|
+
@RuleName = params['RuleName']
|
731
|
+
unless params['TopicRulePayload'].nil?
|
732
|
+
@TopicRulePayload = TopicRulePayload.new
|
733
|
+
@TopicRulePayload.deserialize(params['TopicRulePayload'])
|
734
|
+
end
|
419
735
|
end
|
420
736
|
end
|
421
737
|
|
422
|
-
#
|
423
|
-
class
|
738
|
+
# CreateTopicRule返回参数结构体
|
739
|
+
class CreateTopicRuleResponse < TencentCloud::Common::AbstractModel
|
424
740
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
425
741
|
# @type RequestId: String
|
426
742
|
|
@@ -435,471 +751,408 @@ module TencentCloud
|
|
435
751
|
end
|
436
752
|
end
|
437
753
|
|
438
|
-
#
|
439
|
-
class
|
440
|
-
# @param ProductId:
|
441
|
-
# @type ProductId: String
|
442
|
-
# @param DeviceName:
|
754
|
+
# DeleteDevice请求参数结构体
|
755
|
+
class DeleteDeviceRequest < TencentCloud::Common::AbstractModel
|
756
|
+
# @param ProductId: 设备所属的产品 ID
|
757
|
+
# @type ProductId: String
|
758
|
+
# @param DeviceName: 需要删除的设备名称
|
443
759
|
# @type DeviceName: String
|
760
|
+
# @param Skey: 删除LoRa设备以及LoRa网关设备需要skey
|
761
|
+
# @type Skey: String
|
444
762
|
|
445
|
-
attr_accessor :ProductId, :DeviceName
|
763
|
+
attr_accessor :ProductId, :DeviceName, :Skey
|
446
764
|
|
447
|
-
def initialize(productid=nil, devicename=nil)
|
765
|
+
def initialize(productid=nil, devicename=nil, skey=nil)
|
448
766
|
@ProductId = productid
|
449
767
|
@DeviceName = devicename
|
768
|
+
@Skey = skey
|
450
769
|
end
|
451
770
|
|
452
771
|
def deserialize(params)
|
453
772
|
@ProductId = params['ProductId']
|
454
773
|
@DeviceName = params['DeviceName']
|
774
|
+
@Skey = params['Skey']
|
455
775
|
end
|
456
776
|
end
|
457
777
|
|
458
|
-
#
|
459
|
-
class
|
460
|
-
# @param
|
778
|
+
# DeleteDeviceResource请求参数结构体
|
779
|
+
class DeleteDeviceResourceRequest < TencentCloud::Common::AbstractModel
|
780
|
+
# @param ProductID: 产品ID
|
781
|
+
# @type ProductID: String
|
782
|
+
# @param Name: 资源名称
|
783
|
+
# @type Name: String
|
784
|
+
# @param DeviceName: 设备名称
|
461
785
|
# @type DeviceName: String
|
462
|
-
# @param Online: 设备是否在线,0不在线,1在线
|
463
|
-
# @type Online: Integer
|
464
|
-
# @param LoginTime: 设备登录时间
|
465
|
-
# @type LoginTime: Integer
|
466
|
-
# @param Version: 设备固件版本
|
467
|
-
# @type Version: String
|
468
|
-
# @param LastUpdateTime: 设备最后更新时间
|
469
|
-
# @type LastUpdateTime: Integer
|
470
|
-
# @param DeviceCert: 设备证书
|
471
|
-
# @type DeviceCert: String
|
472
|
-
# @param DevicePsk: 设备密钥
|
473
|
-
# @type DevicePsk: String
|
474
|
-
# @param Tags: 设备属性
|
475
|
-
# @type Tags: Array
|
476
|
-
# @param DeviceType: 设备类型
|
477
|
-
# @type DeviceType: Integer
|
478
|
-
# @param Imei: 国际移动设备识别码 IMEI
|
479
|
-
# @type Imei: String
|
480
|
-
# @param Isp: 运营商类型
|
481
|
-
# @type Isp: Integer
|
482
|
-
# @param ConnIP: IP地址
|
483
|
-
# @type ConnIP: Integer
|
484
|
-
# @param NbiotDeviceID: NB IoT运营商处的DeviceID
|
485
|
-
# @type NbiotDeviceID: String
|
486
|
-
# @param LoraDevEui: Lora设备的dev eui
|
487
|
-
# @type LoraDevEui: String
|
488
|
-
# @param LoraMoteType: Lora设备的mote type
|
489
|
-
# @type LoraMoteType: Integer
|
490
|
-
# @param LogLevel: 设备的sdk日志等级
|
491
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
492
|
-
# @type LogLevel: Integer
|
493
|
-
# @param FirstOnlineTime: 首次上线时间
|
494
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
495
|
-
# @type FirstOnlineTime: Integer
|
496
|
-
# @param LastOfflineTime: 最近下线时间
|
497
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
498
|
-
# @type LastOfflineTime: Integer
|
499
|
-
# @param CreateTime: 设备创建时间
|
500
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
501
|
-
# @type CreateTime: Integer
|
502
|
-
# @param CertState: 设备证书获取状态,0 未获取过设备密钥, 1 已获取过设备密钥
|
503
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
504
|
-
# @type CertState: Integer
|
505
|
-
# @param EnableState: 设备启用状态
|
506
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
507
|
-
# @type EnableState: Integer
|
508
|
-
# @param Labels: 设备标签
|
509
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
510
|
-
# @type Labels: Array
|
511
|
-
# @param ClientIP: MQTT客户端IP地址
|
512
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
513
|
-
# @type ClientIP: String
|
514
|
-
# @param FirmwareUpdateTime: 设备固件更新时间
|
515
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
516
|
-
# @type FirmwareUpdateTime: Integer
|
517
|
-
# @param CreateUserId: 创建者账号ID
|
518
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
519
|
-
# @type CreateUserId: Integer
|
520
|
-
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
521
|
-
# @type RequestId: String
|
522
786
|
|
523
|
-
attr_accessor :
|
787
|
+
attr_accessor :ProductID, :Name, :DeviceName
|
524
788
|
|
525
|
-
def initialize(
|
789
|
+
def initialize(productid=nil, name=nil, devicename=nil)
|
790
|
+
@ProductID = productid
|
791
|
+
@Name = name
|
526
792
|
@DeviceName = devicename
|
527
|
-
@Online = online
|
528
|
-
@LoginTime = logintime
|
529
|
-
@Version = version
|
530
|
-
@LastUpdateTime = lastupdatetime
|
531
|
-
@DeviceCert = devicecert
|
532
|
-
@DevicePsk = devicepsk
|
533
|
-
@Tags = tags
|
534
|
-
@DeviceType = devicetype
|
535
|
-
@Imei = imei
|
536
|
-
@Isp = isp
|
537
|
-
@ConnIP = connip
|
538
|
-
@NbiotDeviceID = nbiotdeviceid
|
539
|
-
@LoraDevEui = loradeveui
|
540
|
-
@LoraMoteType = loramotetype
|
541
|
-
@LogLevel = loglevel
|
542
|
-
@FirstOnlineTime = firstonlinetime
|
543
|
-
@LastOfflineTime = lastofflinetime
|
544
|
-
@CreateTime = createtime
|
545
|
-
@CertState = certstate
|
546
|
-
@EnableState = enablestate
|
547
|
-
@Labels = labels
|
548
|
-
@ClientIP = clientip
|
549
|
-
@FirmwareUpdateTime = firmwareupdatetime
|
550
|
-
@CreateUserId = createuserid
|
551
|
-
@RequestId = requestid
|
552
793
|
end
|
553
794
|
|
554
795
|
def deserialize(params)
|
796
|
+
@ProductID = params['ProductID']
|
797
|
+
@Name = params['Name']
|
555
798
|
@DeviceName = params['DeviceName']
|
556
|
-
@Online = params['Online']
|
557
|
-
@LoginTime = params['LoginTime']
|
558
|
-
@Version = params['Version']
|
559
|
-
@LastUpdateTime = params['LastUpdateTime']
|
560
|
-
@DeviceCert = params['DeviceCert']
|
561
|
-
@DevicePsk = params['DevicePsk']
|
562
|
-
unless params['Tags'].nil?
|
563
|
-
@Tags = []
|
564
|
-
params['Tags'].each do |i|
|
565
|
-
devicetag_tmp = DeviceTag.new
|
566
|
-
devicetag_tmp.deserialize(i)
|
567
|
-
@Tags << devicetag_tmp
|
568
|
-
end
|
569
|
-
end
|
570
|
-
@DeviceType = params['DeviceType']
|
571
|
-
@Imei = params['Imei']
|
572
|
-
@Isp = params['Isp']
|
573
|
-
@ConnIP = params['ConnIP']
|
574
|
-
@NbiotDeviceID = params['NbiotDeviceID']
|
575
|
-
@LoraDevEui = params['LoraDevEui']
|
576
|
-
@LoraMoteType = params['LoraMoteType']
|
577
|
-
@LogLevel = params['LogLevel']
|
578
|
-
@FirstOnlineTime = params['FirstOnlineTime']
|
579
|
-
@LastOfflineTime = params['LastOfflineTime']
|
580
|
-
@CreateTime = params['CreateTime']
|
581
|
-
@CertState = params['CertState']
|
582
|
-
@EnableState = params['EnableState']
|
583
|
-
unless params['Labels'].nil?
|
584
|
-
@Labels = []
|
585
|
-
params['Labels'].each do |i|
|
586
|
-
devicelabel_tmp = DeviceLabel.new
|
587
|
-
devicelabel_tmp.deserialize(i)
|
588
|
-
@Labels << devicelabel_tmp
|
589
|
-
end
|
590
|
-
end
|
591
|
-
@ClientIP = params['ClientIP']
|
592
|
-
@FirmwareUpdateTime = params['FirmwareUpdateTime']
|
593
|
-
@CreateUserId = params['CreateUserId']
|
594
|
-
@RequestId = params['RequestId']
|
595
799
|
end
|
596
800
|
end
|
597
801
|
|
598
|
-
#
|
599
|
-
class
|
600
|
-
# @param
|
601
|
-
# @type
|
602
|
-
# @param Offset: 偏移量,Offset从0开始
|
603
|
-
# @type Offset: Integer
|
604
|
-
# @param Limit: 分页的大小,数值范围 10-250
|
605
|
-
# @type Limit: Integer
|
606
|
-
# @param FirmwareVersion: 设备固件版本号,若不带此参数会返回所有固件版本的设备。传"None-FirmwareVersion"查询无版本号的设备
|
607
|
-
# @type FirmwareVersion: String
|
608
|
-
# @param DeviceName: 需要过滤的设备名称
|
609
|
-
# @type DeviceName: String
|
610
|
-
# @param EnableState: 设备是否启用,0禁用状态1启用状态,默认不区分
|
611
|
-
# @type EnableState: Integer
|
802
|
+
# DeleteDeviceResource返回参数结构体
|
803
|
+
class DeleteDeviceResourceResponse < TencentCloud::Common::AbstractModel
|
804
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
805
|
+
# @type RequestId: String
|
612
806
|
|
613
|
-
attr_accessor :
|
807
|
+
attr_accessor :RequestId
|
614
808
|
|
615
|
-
def initialize(
|
616
|
-
@
|
617
|
-
@Offset = offset
|
618
|
-
@Limit = limit
|
619
|
-
@FirmwareVersion = firmwareversion
|
620
|
-
@DeviceName = devicename
|
621
|
-
@EnableState = enablestate
|
809
|
+
def initialize(requestid=nil)
|
810
|
+
@RequestId = requestid
|
622
811
|
end
|
623
812
|
|
624
813
|
def deserialize(params)
|
625
|
-
@
|
626
|
-
@Offset = params['Offset']
|
627
|
-
@Limit = params['Limit']
|
628
|
-
@FirmwareVersion = params['FirmwareVersion']
|
629
|
-
@DeviceName = params['DeviceName']
|
630
|
-
@EnableState = params['EnableState']
|
814
|
+
@RequestId = params['RequestId']
|
631
815
|
end
|
632
816
|
end
|
633
817
|
|
634
|
-
#
|
635
|
-
class
|
636
|
-
# @param TotalCount: 设备总数
|
637
|
-
# @type TotalCount: Integer
|
638
|
-
# @param Devices: 设备详细信息列表
|
639
|
-
# @type Devices: Array
|
818
|
+
# DeleteDevice返回参数结构体
|
819
|
+
class DeleteDeviceResponse < TencentCloud::Common::AbstractModel
|
640
820
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
641
821
|
# @type RequestId: String
|
642
822
|
|
643
|
-
attr_accessor :
|
823
|
+
attr_accessor :RequestId
|
644
824
|
|
645
|
-
def initialize(
|
646
|
-
@TotalCount = totalcount
|
647
|
-
@Devices = devices
|
825
|
+
def initialize(requestid=nil)
|
648
826
|
@RequestId = requestid
|
649
827
|
end
|
650
828
|
|
651
829
|
def deserialize(params)
|
652
|
-
@TotalCount = params['TotalCount']
|
653
|
-
unless params['Devices'].nil?
|
654
|
-
@Devices = []
|
655
|
-
params['Devices'].each do |i|
|
656
|
-
deviceinfo_tmp = DeviceInfo.new
|
657
|
-
deviceinfo_tmp.deserialize(i)
|
658
|
-
@Devices << deviceinfo_tmp
|
659
|
-
end
|
660
|
-
end
|
661
830
|
@RequestId = params['RequestId']
|
662
831
|
end
|
663
832
|
end
|
664
833
|
|
665
|
-
#
|
666
|
-
class
|
667
|
-
# @param CertName: 证书名称
|
834
|
+
# DeletePrivateCA请求参数结构体
|
835
|
+
class DeletePrivateCARequest < TencentCloud::Common::AbstractModel
|
836
|
+
# @param CertName: 私有CA证书名称
|
668
837
|
# @type CertName: String
|
669
|
-
# @param Offset: 查询偏移量
|
670
|
-
# @type Offset: Integer
|
671
|
-
# @param Limit: 查询的数据量,默认为20, 最大为200
|
672
|
-
# @type Limit: Integer
|
673
838
|
|
674
|
-
attr_accessor :CertName
|
839
|
+
attr_accessor :CertName
|
675
840
|
|
676
|
-
def initialize(certname=nil
|
841
|
+
def initialize(certname=nil)
|
677
842
|
@CertName = certname
|
678
|
-
@Offset = offset
|
679
|
-
@Limit = limit
|
680
843
|
end
|
681
844
|
|
682
845
|
def deserialize(params)
|
683
846
|
@CertName = params['CertName']
|
684
|
-
@Offset = params['Offset']
|
685
|
-
@Limit = params['Limit']
|
686
847
|
end
|
687
848
|
end
|
688
849
|
|
689
|
-
#
|
690
|
-
class
|
691
|
-
# @param Products: 私有CA绑定的产品列表
|
692
|
-
# @type Products: Array
|
850
|
+
# DeletePrivateCA返回参数结构体
|
851
|
+
class DeletePrivateCAResponse < TencentCloud::Common::AbstractModel
|
693
852
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
694
853
|
# @type RequestId: String
|
695
854
|
|
696
|
-
attr_accessor :
|
855
|
+
attr_accessor :RequestId
|
697
856
|
|
698
|
-
def initialize(
|
699
|
-
@Products = products
|
857
|
+
def initialize(requestid=nil)
|
700
858
|
@RequestId = requestid
|
701
859
|
end
|
702
860
|
|
703
861
|
def deserialize(params)
|
704
|
-
unless params['Products'].nil?
|
705
|
-
@Products = []
|
706
|
-
params['Products'].each do |i|
|
707
|
-
bindproductinfo_tmp = BindProductInfo.new
|
708
|
-
bindproductinfo_tmp.deserialize(i)
|
709
|
-
@Products << bindproductinfo_tmp
|
710
|
-
end
|
711
|
-
end
|
712
862
|
@RequestId = params['RequestId']
|
713
863
|
end
|
714
864
|
end
|
715
865
|
|
716
|
-
#
|
717
|
-
class
|
718
|
-
# @param
|
719
|
-
# @type
|
866
|
+
# DeleteProductPrivateCA请求参数结构体
|
867
|
+
class DeleteProductPrivateCARequest < TencentCloud::Common::AbstractModel
|
868
|
+
# @param ProductId: 产品ID
|
869
|
+
# @type ProductId: String
|
720
870
|
|
721
|
-
attr_accessor :
|
871
|
+
attr_accessor :ProductId
|
722
872
|
|
723
|
-
def initialize(
|
724
|
-
@
|
873
|
+
def initialize(productid=nil)
|
874
|
+
@ProductId = productid
|
725
875
|
end
|
726
876
|
|
727
877
|
def deserialize(params)
|
728
|
-
@
|
878
|
+
@ProductId = params['ProductId']
|
729
879
|
end
|
730
880
|
end
|
731
881
|
|
732
|
-
#
|
733
|
-
class
|
734
|
-
# @param CA: 私有化CA详情
|
735
|
-
# @type CA: :class:`Tencentcloud::Iotcloud.v20210408.models.CertInfo`
|
882
|
+
# DeleteProductPrivateCA返回参数结构体
|
883
|
+
class DeleteProductPrivateCAResponse < TencentCloud::Common::AbstractModel
|
736
884
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
737
885
|
# @type RequestId: String
|
738
886
|
|
739
|
-
attr_accessor :
|
887
|
+
attr_accessor :RequestId
|
740
888
|
|
741
|
-
def initialize(
|
742
|
-
@CA = ca
|
889
|
+
def initialize(requestid=nil)
|
743
890
|
@RequestId = requestid
|
744
891
|
end
|
745
892
|
|
746
893
|
def deserialize(params)
|
747
|
-
unless params['CA'].nil?
|
748
|
-
@CA = CertInfo.new
|
749
|
-
@CA.deserialize(params['CA'])
|
750
|
-
end
|
751
894
|
@RequestId = params['RequestId']
|
752
895
|
end
|
753
896
|
end
|
754
897
|
|
755
|
-
#
|
756
|
-
class
|
898
|
+
# DeleteProduct请求参数结构体
|
899
|
+
class DeleteProductRequest < TencentCloud::Common::AbstractModel
|
900
|
+
# @param ProductId: 需要删除的产品 ID
|
901
|
+
# @type ProductId: String
|
902
|
+
# @param Skey: 删除LoRa产品需要skey
|
903
|
+
# @type Skey: String
|
757
904
|
|
905
|
+
attr_accessor :ProductId, :Skey
|
758
906
|
|
759
|
-
def initialize()
|
907
|
+
def initialize(productid=nil, skey=nil)
|
908
|
+
@ProductId = productid
|
909
|
+
@Skey = skey
|
760
910
|
end
|
761
911
|
|
762
912
|
def deserialize(params)
|
913
|
+
@ProductId = params['ProductId']
|
914
|
+
@Skey = params['Skey']
|
763
915
|
end
|
764
916
|
end
|
765
917
|
|
766
|
-
#
|
767
|
-
class
|
768
|
-
# @param CAs: 私有CA证书列表
|
769
|
-
# @type CAs: Array
|
918
|
+
# DeleteProduct返回参数结构体
|
919
|
+
class DeleteProductResponse < TencentCloud::Common::AbstractModel
|
770
920
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
771
921
|
# @type RequestId: String
|
772
922
|
|
773
|
-
attr_accessor :
|
923
|
+
attr_accessor :RequestId
|
774
924
|
|
775
|
-
def initialize(
|
776
|
-
@CAs = cas
|
925
|
+
def initialize(requestid=nil)
|
777
926
|
@RequestId = requestid
|
778
927
|
end
|
779
928
|
|
780
929
|
def deserialize(params)
|
781
|
-
unless params['CAs'].nil?
|
782
|
-
@CAs = []
|
783
|
-
params['CAs'].each do |i|
|
784
|
-
certinfo_tmp = CertInfo.new
|
785
|
-
certinfo_tmp.deserialize(i)
|
786
|
-
@CAs << certinfo_tmp
|
787
|
-
end
|
788
|
-
end
|
789
930
|
@RequestId = params['RequestId']
|
790
931
|
end
|
791
932
|
end
|
792
933
|
|
793
|
-
#
|
794
|
-
class
|
795
|
-
# @param
|
934
|
+
# DeleteTopicRule请求参数结构体
|
935
|
+
class DeleteTopicRuleRequest < TencentCloud::Common::AbstractModel
|
936
|
+
# @param RuleName: 规则名
|
937
|
+
# @type RuleName: String
|
938
|
+
|
939
|
+
attr_accessor :RuleName
|
940
|
+
|
941
|
+
def initialize(rulename=nil)
|
942
|
+
@RuleName = rulename
|
943
|
+
end
|
944
|
+
|
945
|
+
def deserialize(params)
|
946
|
+
@RuleName = params['RuleName']
|
947
|
+
end
|
948
|
+
end
|
949
|
+
|
950
|
+
# DeleteTopicRule返回参数结构体
|
951
|
+
class DeleteTopicRuleResponse < TencentCloud::Common::AbstractModel
|
952
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
953
|
+
# @type RequestId: String
|
954
|
+
|
955
|
+
attr_accessor :RequestId
|
956
|
+
|
957
|
+
def initialize(requestid=nil)
|
958
|
+
@RequestId = requestid
|
959
|
+
end
|
960
|
+
|
961
|
+
def deserialize(params)
|
962
|
+
@RequestId = params['RequestId']
|
963
|
+
end
|
964
|
+
end
|
965
|
+
|
966
|
+
# DescribeDeviceClientKey请求参数结构体
|
967
|
+
class DescribeDeviceClientKeyRequest < TencentCloud::Common::AbstractModel
|
968
|
+
# @param ProductId: 所属产品的Id
|
796
969
|
# @type ProductId: String
|
970
|
+
# @param DeviceName: 设备名称
|
971
|
+
# @type DeviceName: String
|
797
972
|
|
798
|
-
attr_accessor :ProductId
|
973
|
+
attr_accessor :ProductId, :DeviceName
|
799
974
|
|
800
|
-
def initialize(productid=nil)
|
975
|
+
def initialize(productid=nil, devicename=nil)
|
801
976
|
@ProductId = productid
|
977
|
+
@DeviceName = devicename
|
802
978
|
end
|
803
979
|
|
804
980
|
def deserialize(params)
|
805
981
|
@ProductId = params['ProductId']
|
982
|
+
@DeviceName = params['DeviceName']
|
806
983
|
end
|
807
984
|
end
|
808
985
|
|
809
|
-
#
|
810
|
-
class
|
811
|
-
# @param
|
812
|
-
# @type
|
986
|
+
# DescribeDeviceClientKey返回参数结构体
|
987
|
+
class DescribeDeviceClientKeyResponse < TencentCloud::Common::AbstractModel
|
988
|
+
# @param ClientKey: 设备的私钥
|
989
|
+
# @type ClientKey: String
|
813
990
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
814
991
|
# @type RequestId: String
|
815
992
|
|
816
|
-
attr_accessor :
|
993
|
+
attr_accessor :ClientKey, :RequestId
|
817
994
|
|
818
|
-
def initialize(
|
819
|
-
@
|
995
|
+
def initialize(clientkey=nil, requestid=nil)
|
996
|
+
@ClientKey = clientkey
|
820
997
|
@RequestId = requestid
|
821
998
|
end
|
822
999
|
|
823
1000
|
def deserialize(params)
|
824
|
-
|
825
|
-
@CAs = []
|
826
|
-
params['CAs'].each do |i|
|
827
|
-
certinfo_tmp = CertInfo.new
|
828
|
-
certinfo_tmp.deserialize(i)
|
829
|
-
@CAs << certinfo_tmp
|
830
|
-
end
|
831
|
-
end
|
1001
|
+
@ClientKey = params['ClientKey']
|
832
1002
|
@RequestId = params['RequestId']
|
833
1003
|
end
|
834
1004
|
end
|
835
1005
|
|
836
|
-
#
|
837
|
-
class
|
1006
|
+
# DescribeDevice请求参数结构体
|
1007
|
+
class DescribeDeviceRequest < TencentCloud::Common::AbstractModel
|
838
1008
|
# @param ProductId: 产品ID
|
839
1009
|
# @type ProductId: String
|
1010
|
+
# @param DeviceName: 设备名
|
1011
|
+
# @type DeviceName: String
|
840
1012
|
|
841
|
-
attr_accessor :ProductId
|
1013
|
+
attr_accessor :ProductId, :DeviceName
|
842
1014
|
|
843
|
-
def initialize(productid=nil)
|
1015
|
+
def initialize(productid=nil, devicename=nil)
|
844
1016
|
@ProductId = productid
|
1017
|
+
@DeviceName = devicename
|
845
1018
|
end
|
846
1019
|
|
847
1020
|
def deserialize(params)
|
848
1021
|
@ProductId = params['ProductId']
|
1022
|
+
@DeviceName = params['DeviceName']
|
849
1023
|
end
|
850
1024
|
end
|
851
1025
|
|
852
|
-
#
|
853
|
-
class
|
854
|
-
# @param
|
855
|
-
# @type
|
856
|
-
# @param
|
857
|
-
# @type
|
858
|
-
# @param
|
859
|
-
# @type
|
860
|
-
|
861
|
-
|
1026
|
+
# DescribeDeviceResource请求参数结构体
|
1027
|
+
class DescribeDeviceResourceRequest < TencentCloud::Common::AbstractModel
|
1028
|
+
# @param DeviceName: 设备名称
|
1029
|
+
# @type DeviceName: String
|
1030
|
+
# @param ProductID: 产品ID
|
1031
|
+
# @type ProductID: String
|
1032
|
+
# @param Name: 具体的设备资源名称
|
1033
|
+
# @type Name: String
|
1034
|
+
|
1035
|
+
attr_accessor :DeviceName, :ProductID, :Name
|
1036
|
+
|
1037
|
+
def initialize(devicename=nil, productid=nil, name=nil)
|
1038
|
+
@DeviceName = devicename
|
1039
|
+
@ProductID = productid
|
1040
|
+
@Name = name
|
1041
|
+
end
|
1042
|
+
|
1043
|
+
def deserialize(params)
|
1044
|
+
@DeviceName = params['DeviceName']
|
1045
|
+
@ProductID = params['ProductID']
|
1046
|
+
@Name = params['Name']
|
1047
|
+
end
|
1048
|
+
end
|
1049
|
+
|
1050
|
+
# DescribeDeviceResource返回参数结构体
|
1051
|
+
class DescribeDeviceResourceResponse < TencentCloud::Common::AbstractModel
|
1052
|
+
# @param Result: 设备资源详情
|
1053
|
+
# @type Result: :class:`Tencentcloud::Iotcloud.v20210408.models.DeviceResourceInfo`
|
862
1054
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
863
1055
|
# @type RequestId: String
|
864
1056
|
|
865
|
-
attr_accessor :
|
1057
|
+
attr_accessor :Result, :RequestId
|
866
1058
|
|
867
|
-
def initialize(
|
868
|
-
@
|
869
|
-
@ProductName = productname
|
870
|
-
@ProductMetadata = productmetadata
|
871
|
-
@ProductProperties = productproperties
|
1059
|
+
def initialize(result=nil, requestid=nil)
|
1060
|
+
@Result = result
|
872
1061
|
@RequestId = requestid
|
873
1062
|
end
|
874
1063
|
|
875
1064
|
def deserialize(params)
|
876
|
-
|
877
|
-
|
878
|
-
|
879
|
-
@ProductMetadata = ProductMetadata.new
|
880
|
-
@ProductMetadata.deserialize(params['ProductMetadata'])
|
1065
|
+
unless params['Result'].nil?
|
1066
|
+
@Result = DeviceResourceInfo.new
|
1067
|
+
@Result.deserialize(params['Result'])
|
881
1068
|
end
|
882
|
-
|
883
|
-
|
884
|
-
|
1069
|
+
@RequestId = params['RequestId']
|
1070
|
+
end
|
1071
|
+
end
|
1072
|
+
|
1073
|
+
# DescribeDeviceResources请求参数结构体
|
1074
|
+
class DescribeDeviceResourcesRequest < TencentCloud::Common::AbstractModel
|
1075
|
+
# @param Offset: 偏移量,Offset从0开始
|
1076
|
+
# @type Offset: Integer
|
1077
|
+
# @param Limit: 分页的大小,数值范围 10-250
|
1078
|
+
# @type Limit: Integer
|
1079
|
+
# @param ProductID: 产品ID
|
1080
|
+
# @type ProductID: String
|
1081
|
+
# @param DeviceName: 需要过滤的设备名称
|
1082
|
+
# @type DeviceName: String
|
1083
|
+
# @param StartTime: 资源搜索开始时间
|
1084
|
+
# @type StartTime: String
|
1085
|
+
# @param EndTime: 资源搜索结束时间
|
1086
|
+
# @type EndTime: String
|
1087
|
+
|
1088
|
+
attr_accessor :Offset, :Limit, :ProductID, :DeviceName, :StartTime, :EndTime
|
1089
|
+
|
1090
|
+
def initialize(offset=nil, limit=nil, productid=nil, devicename=nil, starttime=nil, endtime=nil)
|
1091
|
+
@Offset = offset
|
1092
|
+
@Limit = limit
|
1093
|
+
@ProductID = productid
|
1094
|
+
@DeviceName = devicename
|
1095
|
+
@StartTime = starttime
|
1096
|
+
@EndTime = endtime
|
1097
|
+
end
|
1098
|
+
|
1099
|
+
def deserialize(params)
|
1100
|
+
@Offset = params['Offset']
|
1101
|
+
@Limit = params['Limit']
|
1102
|
+
@ProductID = params['ProductID']
|
1103
|
+
@DeviceName = params['DeviceName']
|
1104
|
+
@StartTime = params['StartTime']
|
1105
|
+
@EndTime = params['EndTime']
|
1106
|
+
end
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
# DescribeDeviceResources返回参数结构体
|
1110
|
+
class DescribeDeviceResourcesResponse < TencentCloud::Common::AbstractModel
|
1111
|
+
# @param TotalCount: 资源总数
|
1112
|
+
# @type TotalCount: Integer
|
1113
|
+
# @param Result: 资源列表
|
1114
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1115
|
+
# @type Result: Array
|
1116
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1117
|
+
# @type RequestId: String
|
1118
|
+
|
1119
|
+
attr_accessor :TotalCount, :Result, :RequestId
|
1120
|
+
|
1121
|
+
def initialize(totalcount=nil, result=nil, requestid=nil)
|
1122
|
+
@TotalCount = totalcount
|
1123
|
+
@Result = result
|
1124
|
+
@RequestId = requestid
|
1125
|
+
end
|
1126
|
+
|
1127
|
+
def deserialize(params)
|
1128
|
+
@TotalCount = params['TotalCount']
|
1129
|
+
unless params['Result'].nil?
|
1130
|
+
@Result = []
|
1131
|
+
params['Result'].each do |i|
|
1132
|
+
deviceresourceinfo_tmp = DeviceResourceInfo.new
|
1133
|
+
deviceresourceinfo_tmp.deserialize(i)
|
1134
|
+
@Result << deviceresourceinfo_tmp
|
1135
|
+
end
|
885
1136
|
end
|
886
1137
|
@RequestId = params['RequestId']
|
887
1138
|
end
|
888
1139
|
end
|
889
1140
|
|
890
|
-
#
|
891
|
-
class
|
1141
|
+
# DescribeDevice返回参数结构体
|
1142
|
+
class DescribeDeviceResponse < TencentCloud::Common::AbstractModel
|
892
1143
|
# @param DeviceName: 设备名
|
893
1144
|
# @type DeviceName: String
|
894
1145
|
# @param Online: 设备是否在线,0不在线,1在线
|
895
1146
|
# @type Online: Integer
|
896
1147
|
# @param LoginTime: 设备登录时间
|
897
1148
|
# @type LoginTime: Integer
|
898
|
-
# @param Version:
|
1149
|
+
# @param Version: 设备固件版本
|
899
1150
|
# @type Version: String
|
900
|
-
# @param
|
1151
|
+
# @param LastUpdateTime: 设备最后更新时间
|
1152
|
+
# @type LastUpdateTime: Integer
|
1153
|
+
# @param DeviceCert: 设备证书
|
901
1154
|
# @type DeviceCert: String
|
902
|
-
# @param DevicePsk:
|
1155
|
+
# @param DevicePsk: 设备密钥
|
903
1156
|
# @type DevicePsk: String
|
904
1157
|
# @param Tags: 设备属性
|
905
1158
|
# @type Tags: Array
|
@@ -909,16 +1162,17 @@ module TencentCloud
|
|
909
1162
|
# @type Imei: String
|
910
1163
|
# @param Isp: 运营商类型
|
911
1164
|
# @type Isp: Integer
|
912
|
-
# @param NbiotDeviceID: NB IOT运营商处的DeviceID
|
913
|
-
# @type NbiotDeviceID: String
|
914
1165
|
# @param ConnIP: IP地址
|
915
1166
|
# @type ConnIP: Integer
|
916
|
-
# @param
|
917
|
-
# @type
|
918
|
-
# @param LoraDevEui:
|
1167
|
+
# @param NbiotDeviceID: NB IoT运营商处的DeviceID
|
1168
|
+
# @type NbiotDeviceID: String
|
1169
|
+
# @param LoraDevEui: Lora设备的dev eui
|
919
1170
|
# @type LoraDevEui: String
|
920
|
-
# @param LoraMoteType:
|
1171
|
+
# @param LoraMoteType: Lora设备的mote type
|
921
1172
|
# @type LoraMoteType: Integer
|
1173
|
+
# @param LogLevel: 设备的sdk日志等级
|
1174
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1175
|
+
# @type LogLevel: Integer
|
922
1176
|
# @param FirstOnlineTime: 首次上线时间
|
923
1177
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
924
1178
|
# @type FirstOnlineTime: Integer
|
@@ -928,13 +1182,10 @@ module TencentCloud
|
|
928
1182
|
# @param CreateTime: 设备创建时间
|
929
1183
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
930
1184
|
# @type CreateTime: Integer
|
931
|
-
# @param
|
932
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
933
|
-
# @type LogLevel: Integer
|
934
|
-
# @param CertState: 设备证书获取状态, 1 已获取过设备密钥,0 未获取过设备密钥
|
1185
|
+
# @param CertState: 设备证书获取状态,0 未获取过设备密钥, 1 已获取过设备密钥
|
935
1186
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
936
1187
|
# @type CertState: Integer
|
937
|
-
# @param EnableState:
|
1188
|
+
# @param EnableState: 设备启用状态
|
938
1189
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
939
1190
|
# @type EnableState: Integer
|
940
1191
|
# @param Labels: 设备标签
|
@@ -943,37 +1194,44 @@ module TencentCloud
|
|
943
1194
|
# @param ClientIP: MQTT客户端IP地址
|
944
1195
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
945
1196
|
# @type ClientIP: String
|
946
|
-
# @param FirmwareUpdateTime:
|
1197
|
+
# @param FirmwareUpdateTime: 设备固件更新时间
|
947
1198
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
948
1199
|
# @type FirmwareUpdateTime: Integer
|
1200
|
+
# @param CreateUserId: 创建者账号ID
|
1201
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1202
|
+
# @type CreateUserId: Integer
|
1203
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1204
|
+
# @type RequestId: String
|
949
1205
|
|
950
|
-
attr_accessor :DeviceName, :Online, :LoginTime, :Version, :DeviceCert, :DevicePsk, :Tags, :DeviceType, :Imei, :Isp, :
|
1206
|
+
attr_accessor :DeviceName, :Online, :LoginTime, :Version, :LastUpdateTime, :DeviceCert, :DevicePsk, :Tags, :DeviceType, :Imei, :Isp, :ConnIP, :NbiotDeviceID, :LoraDevEui, :LoraMoteType, :LogLevel, :FirstOnlineTime, :LastOfflineTime, :CreateTime, :CertState, :EnableState, :Labels, :ClientIP, :FirmwareUpdateTime, :CreateUserId, :RequestId
|
951
1207
|
|
952
|
-
def initialize(devicename=nil, online=nil, logintime=nil, version=nil, devicecert=nil, devicepsk=nil, tags=nil, devicetype=nil, imei=nil, isp=nil,
|
1208
|
+
def initialize(devicename=nil, online=nil, logintime=nil, version=nil, lastupdatetime=nil, devicecert=nil, devicepsk=nil, tags=nil, devicetype=nil, imei=nil, isp=nil, connip=nil, nbiotdeviceid=nil, loradeveui=nil, loramotetype=nil, loglevel=nil, firstonlinetime=nil, lastofflinetime=nil, createtime=nil, certstate=nil, enablestate=nil, labels=nil, clientip=nil, firmwareupdatetime=nil, createuserid=nil, requestid=nil)
|
953
1209
|
@DeviceName = devicename
|
954
1210
|
@Online = online
|
955
1211
|
@LoginTime = logintime
|
956
1212
|
@Version = version
|
1213
|
+
@LastUpdateTime = lastupdatetime
|
957
1214
|
@DeviceCert = devicecert
|
958
1215
|
@DevicePsk = devicepsk
|
959
1216
|
@Tags = tags
|
960
1217
|
@DeviceType = devicetype
|
961
1218
|
@Imei = imei
|
962
1219
|
@Isp = isp
|
963
|
-
@NbiotDeviceID = nbiotdeviceid
|
964
1220
|
@ConnIP = connip
|
965
|
-
@
|
1221
|
+
@NbiotDeviceID = nbiotdeviceid
|
966
1222
|
@LoraDevEui = loradeveui
|
967
1223
|
@LoraMoteType = loramotetype
|
1224
|
+
@LogLevel = loglevel
|
968
1225
|
@FirstOnlineTime = firstonlinetime
|
969
1226
|
@LastOfflineTime = lastofflinetime
|
970
1227
|
@CreateTime = createtime
|
971
|
-
@LogLevel = loglevel
|
972
1228
|
@CertState = certstate
|
973
1229
|
@EnableState = enablestate
|
974
1230
|
@Labels = labels
|
975
1231
|
@ClientIP = clientip
|
976
1232
|
@FirmwareUpdateTime = firmwareupdatetime
|
1233
|
+
@CreateUserId = createuserid
|
1234
|
+
@RequestId = requestid
|
977
1235
|
end
|
978
1236
|
|
979
1237
|
def deserialize(params)
|
@@ -981,6 +1239,7 @@ module TencentCloud
|
|
981
1239
|
@Online = params['Online']
|
982
1240
|
@LoginTime = params['LoginTime']
|
983
1241
|
@Version = params['Version']
|
1242
|
+
@LastUpdateTime = params['LastUpdateTime']
|
984
1243
|
@DeviceCert = params['DeviceCert']
|
985
1244
|
@DevicePsk = params['DevicePsk']
|
986
1245
|
unless params['Tags'].nil?
|
@@ -994,15 +1253,14 @@ module TencentCloud
|
|
994
1253
|
@DeviceType = params['DeviceType']
|
995
1254
|
@Imei = params['Imei']
|
996
1255
|
@Isp = params['Isp']
|
997
|
-
@NbiotDeviceID = params['NbiotDeviceID']
|
998
1256
|
@ConnIP = params['ConnIP']
|
999
|
-
@
|
1257
|
+
@NbiotDeviceID = params['NbiotDeviceID']
|
1000
1258
|
@LoraDevEui = params['LoraDevEui']
|
1001
1259
|
@LoraMoteType = params['LoraMoteType']
|
1260
|
+
@LogLevel = params['LogLevel']
|
1002
1261
|
@FirstOnlineTime = params['FirstOnlineTime']
|
1003
1262
|
@LastOfflineTime = params['LastOfflineTime']
|
1004
1263
|
@CreateTime = params['CreateTime']
|
1005
|
-
@LogLevel = params['LogLevel']
|
1006
1264
|
@CertState = params['CertState']
|
1007
1265
|
@EnableState = params['EnableState']
|
1008
1266
|
unless params['Labels'].nil?
|
@@ -1015,458 +1273,2525 @@ module TencentCloud
|
|
1015
1273
|
end
|
1016
1274
|
@ClientIP = params['ClientIP']
|
1017
1275
|
@FirmwareUpdateTime = params['FirmwareUpdateTime']
|
1276
|
+
@CreateUserId = params['CreateUserId']
|
1277
|
+
@RequestId = params['RequestId']
|
1018
1278
|
end
|
1019
1279
|
end
|
1020
1280
|
|
1021
|
-
#
|
1022
|
-
class
|
1023
|
-
# @param
|
1024
|
-
# @type
|
1025
|
-
# @param
|
1026
|
-
# @type
|
1281
|
+
# DescribeDeviceShadow请求参数结构体
|
1282
|
+
class DescribeDeviceShadowRequest < TencentCloud::Common::AbstractModel
|
1283
|
+
# @param ProductId: 产品 ID
|
1284
|
+
# @type ProductId: String
|
1285
|
+
# @param DeviceName: 设备名称。命名规则:[a-zA-Z0-9:_-]{1,60}
|
1286
|
+
# @type DeviceName: String
|
1027
1287
|
|
1028
|
-
attr_accessor :
|
1288
|
+
attr_accessor :ProductId, :DeviceName
|
1289
|
+
|
1290
|
+
def initialize(productid=nil, devicename=nil)
|
1291
|
+
@ProductId = productid
|
1292
|
+
@DeviceName = devicename
|
1293
|
+
end
|
1294
|
+
|
1295
|
+
def deserialize(params)
|
1296
|
+
@ProductId = params['ProductId']
|
1297
|
+
@DeviceName = params['DeviceName']
|
1298
|
+
end
|
1299
|
+
end
|
1300
|
+
|
1301
|
+
# DescribeDeviceShadow返回参数结构体
|
1302
|
+
class DescribeDeviceShadowResponse < TencentCloud::Common::AbstractModel
|
1303
|
+
# @param Data: 设备影子数据
|
1304
|
+
# @type Data: String
|
1305
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1306
|
+
# @type RequestId: String
|
1307
|
+
|
1308
|
+
attr_accessor :Data, :RequestId
|
1309
|
+
|
1310
|
+
def initialize(data=nil, requestid=nil)
|
1311
|
+
@Data = data
|
1312
|
+
@RequestId = requestid
|
1313
|
+
end
|
1314
|
+
|
1315
|
+
def deserialize(params)
|
1316
|
+
@Data = params['Data']
|
1317
|
+
@RequestId = params['RequestId']
|
1318
|
+
end
|
1319
|
+
end
|
1320
|
+
|
1321
|
+
# DescribeDevices请求参数结构体
|
1322
|
+
class DescribeDevicesRequest < TencentCloud::Common::AbstractModel
|
1323
|
+
# @param ProductId: 需要查看设备列表的产品 ID
|
1324
|
+
# @type ProductId: String
|
1325
|
+
# @param Offset: 偏移量,Offset从0开始
|
1326
|
+
# @type Offset: Integer
|
1327
|
+
# @param Limit: 分页的大小,数值范围 10-250
|
1328
|
+
# @type Limit: Integer
|
1329
|
+
# @param FirmwareVersion: 设备固件版本号,若不带此参数会返回所有固件版本的设备。传"None-FirmwareVersion"查询无版本号的设备
|
1330
|
+
# @type FirmwareVersion: String
|
1331
|
+
# @param DeviceName: 需要过滤的设备名称
|
1332
|
+
# @type DeviceName: String
|
1333
|
+
# @param EnableState: 设备是否启用,0禁用状态1启用状态,默认不区分
|
1334
|
+
# @type EnableState: Integer
|
1335
|
+
|
1336
|
+
attr_accessor :ProductId, :Offset, :Limit, :FirmwareVersion, :DeviceName, :EnableState
|
1337
|
+
|
1338
|
+
def initialize(productid=nil, offset=nil, limit=nil, firmwareversion=nil, devicename=nil, enablestate=nil)
|
1339
|
+
@ProductId = productid
|
1340
|
+
@Offset = offset
|
1341
|
+
@Limit = limit
|
1342
|
+
@FirmwareVersion = firmwareversion
|
1343
|
+
@DeviceName = devicename
|
1344
|
+
@EnableState = enablestate
|
1345
|
+
end
|
1346
|
+
|
1347
|
+
def deserialize(params)
|
1348
|
+
@ProductId = params['ProductId']
|
1349
|
+
@Offset = params['Offset']
|
1350
|
+
@Limit = params['Limit']
|
1351
|
+
@FirmwareVersion = params['FirmwareVersion']
|
1352
|
+
@DeviceName = params['DeviceName']
|
1353
|
+
@EnableState = params['EnableState']
|
1354
|
+
end
|
1355
|
+
end
|
1356
|
+
|
1357
|
+
# DescribeDevices返回参数结构体
|
1358
|
+
class DescribeDevicesResponse < TencentCloud::Common::AbstractModel
|
1359
|
+
# @param TotalCount: 设备总数
|
1360
|
+
# @type TotalCount: Integer
|
1361
|
+
# @param Devices: 设备详细信息列表
|
1362
|
+
# @type Devices: Array
|
1363
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1364
|
+
# @type RequestId: String
|
1365
|
+
|
1366
|
+
attr_accessor :TotalCount, :Devices, :RequestId
|
1367
|
+
|
1368
|
+
def initialize(totalcount=nil, devices=nil, requestid=nil)
|
1369
|
+
@TotalCount = totalcount
|
1370
|
+
@Devices = devices
|
1371
|
+
@RequestId = requestid
|
1372
|
+
end
|
1373
|
+
|
1374
|
+
def deserialize(params)
|
1375
|
+
@TotalCount = params['TotalCount']
|
1376
|
+
unless params['Devices'].nil?
|
1377
|
+
@Devices = []
|
1378
|
+
params['Devices'].each do |i|
|
1379
|
+
deviceinfo_tmp = DeviceInfo.new
|
1380
|
+
deviceinfo_tmp.deserialize(i)
|
1381
|
+
@Devices << deviceinfo_tmp
|
1382
|
+
end
|
1383
|
+
end
|
1384
|
+
@RequestId = params['RequestId']
|
1385
|
+
end
|
1386
|
+
end
|
1387
|
+
|
1388
|
+
# DescribeFirmware请求参数结构体
|
1389
|
+
class DescribeFirmwareRequest < TencentCloud::Common::AbstractModel
|
1390
|
+
# @param ProductId: 产品ID
|
1391
|
+
# @type ProductId: String
|
1392
|
+
# @param FirmwareVersion: 固件版本号
|
1393
|
+
# @type FirmwareVersion: String
|
1394
|
+
|
1395
|
+
attr_accessor :ProductId, :FirmwareVersion
|
1396
|
+
|
1397
|
+
def initialize(productid=nil, firmwareversion=nil)
|
1398
|
+
@ProductId = productid
|
1399
|
+
@FirmwareVersion = firmwareversion
|
1400
|
+
end
|
1401
|
+
|
1402
|
+
def deserialize(params)
|
1403
|
+
@ProductId = params['ProductId']
|
1404
|
+
@FirmwareVersion = params['FirmwareVersion']
|
1405
|
+
end
|
1406
|
+
end
|
1407
|
+
|
1408
|
+
# DescribeFirmware返回参数结构体
|
1409
|
+
class DescribeFirmwareResponse < TencentCloud::Common::AbstractModel
|
1410
|
+
# @param Version: 固件版本号
|
1411
|
+
# @type Version: String
|
1412
|
+
# @param ProductId: 产品ID
|
1413
|
+
# @type ProductId: String
|
1414
|
+
# @param Name: 固件名称
|
1415
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1416
|
+
# @type Name: String
|
1417
|
+
# @param Description: 固件描述
|
1418
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1419
|
+
# @type Description: String
|
1420
|
+
# @param Md5sum: 固件Md5值
|
1421
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1422
|
+
# @type Md5sum: String
|
1423
|
+
# @param Createtime: 固件上传的秒级时间戳
|
1424
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1425
|
+
# @type Createtime: Integer
|
1426
|
+
# @param ProductName: 产品名称
|
1427
|
+
# @type ProductName: String
|
1428
|
+
# @param FwType: 固件类型。选项:mcu、module
|
1429
|
+
# @type FwType: String
|
1430
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1431
|
+
# @type RequestId: String
|
1432
|
+
|
1433
|
+
attr_accessor :Version, :ProductId, :Name, :Description, :Md5sum, :Createtime, :ProductName, :FwType, :RequestId
|
1434
|
+
|
1435
|
+
def initialize(version=nil, productid=nil, name=nil, description=nil, md5sum=nil, createtime=nil, productname=nil, fwtype=nil, requestid=nil)
|
1436
|
+
@Version = version
|
1437
|
+
@ProductId = productid
|
1438
|
+
@Name = name
|
1439
|
+
@Description = description
|
1440
|
+
@Md5sum = md5sum
|
1441
|
+
@Createtime = createtime
|
1442
|
+
@ProductName = productname
|
1443
|
+
@FwType = fwtype
|
1444
|
+
@RequestId = requestid
|
1445
|
+
end
|
1446
|
+
|
1447
|
+
def deserialize(params)
|
1448
|
+
@Version = params['Version']
|
1449
|
+
@ProductId = params['ProductId']
|
1450
|
+
@Name = params['Name']
|
1451
|
+
@Description = params['Description']
|
1452
|
+
@Md5sum = params['Md5sum']
|
1453
|
+
@Createtime = params['Createtime']
|
1454
|
+
@ProductName = params['ProductName']
|
1455
|
+
@FwType = params['FwType']
|
1456
|
+
@RequestId = params['RequestId']
|
1457
|
+
end
|
1458
|
+
end
|
1459
|
+
|
1460
|
+
# DescribeFirmwareTaskDevices请求参数结构体
|
1461
|
+
class DescribeFirmwareTaskDevicesRequest < TencentCloud::Common::AbstractModel
|
1462
|
+
# @param ProductId: 产品ID
|
1463
|
+
# @type ProductId: String
|
1464
|
+
# @param FirmwareVersion: 固件版本
|
1465
|
+
# @type FirmwareVersion: String
|
1466
|
+
# @param Filters: 筛选条件
|
1467
|
+
# @type Filters: Array
|
1468
|
+
# @param Offset: 查询偏移量
|
1469
|
+
# @type Offset: Integer
|
1470
|
+
# @param Limit: 查询的数量
|
1471
|
+
# @type Limit: Integer
|
1472
|
+
|
1473
|
+
attr_accessor :ProductId, :FirmwareVersion, :Filters, :Offset, :Limit
|
1474
|
+
|
1475
|
+
def initialize(productid=nil, firmwareversion=nil, filters=nil, offset=nil, limit=nil)
|
1476
|
+
@ProductId = productid
|
1477
|
+
@FirmwareVersion = firmwareversion
|
1478
|
+
@Filters = filters
|
1479
|
+
@Offset = offset
|
1480
|
+
@Limit = limit
|
1481
|
+
end
|
1482
|
+
|
1483
|
+
def deserialize(params)
|
1484
|
+
@ProductId = params['ProductId']
|
1485
|
+
@FirmwareVersion = params['FirmwareVersion']
|
1486
|
+
unless params['Filters'].nil?
|
1487
|
+
@Filters = []
|
1488
|
+
params['Filters'].each do |i|
|
1489
|
+
searchkeyword_tmp = SearchKeyword.new
|
1490
|
+
searchkeyword_tmp.deserialize(i)
|
1491
|
+
@Filters << searchkeyword_tmp
|
1492
|
+
end
|
1493
|
+
end
|
1494
|
+
@Offset = params['Offset']
|
1495
|
+
@Limit = params['Limit']
|
1496
|
+
end
|
1497
|
+
end
|
1498
|
+
|
1499
|
+
# DescribeFirmwareTaskDevices返回参数结构体
|
1500
|
+
class DescribeFirmwareTaskDevicesResponse < TencentCloud::Common::AbstractModel
|
1501
|
+
# @param Total: 固件升级任务的设备总数
|
1502
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1503
|
+
# @type Total: Integer
|
1504
|
+
# @param Devices: 固件升级任务的设备列表
|
1505
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1506
|
+
# @type Devices: Array
|
1507
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1508
|
+
# @type RequestId: String
|
1509
|
+
|
1510
|
+
attr_accessor :Total, :Devices, :RequestId
|
1511
|
+
|
1512
|
+
def initialize(total=nil, devices=nil, requestid=nil)
|
1513
|
+
@Total = total
|
1514
|
+
@Devices = devices
|
1515
|
+
@RequestId = requestid
|
1516
|
+
end
|
1517
|
+
|
1518
|
+
def deserialize(params)
|
1519
|
+
@Total = params['Total']
|
1520
|
+
unless params['Devices'].nil?
|
1521
|
+
@Devices = []
|
1522
|
+
params['Devices'].each do |i|
|
1523
|
+
deviceupdatestatus_tmp = DeviceUpdateStatus.new
|
1524
|
+
deviceupdatestatus_tmp.deserialize(i)
|
1525
|
+
@Devices << deviceupdatestatus_tmp
|
1526
|
+
end
|
1527
|
+
end
|
1528
|
+
@RequestId = params['RequestId']
|
1529
|
+
end
|
1530
|
+
end
|
1531
|
+
|
1532
|
+
# DescribeFirmwareTaskDistribution请求参数结构体
|
1533
|
+
class DescribeFirmwareTaskDistributionRequest < TencentCloud::Common::AbstractModel
|
1534
|
+
# @param ProductId: 产品ID
|
1535
|
+
# @type ProductId: String
|
1536
|
+
# @param FirmwareVersion: 固件版本号
|
1537
|
+
# @type FirmwareVersion: String
|
1538
|
+
# @param TaskId: 固件升级任务ID
|
1539
|
+
# @type TaskId: Integer
|
1540
|
+
|
1541
|
+
attr_accessor :ProductId, :FirmwareVersion, :TaskId
|
1542
|
+
|
1543
|
+
def initialize(productid=nil, firmwareversion=nil, taskid=nil)
|
1544
|
+
@ProductId = productid
|
1545
|
+
@FirmwareVersion = firmwareversion
|
1546
|
+
@TaskId = taskid
|
1547
|
+
end
|
1548
|
+
|
1549
|
+
def deserialize(params)
|
1550
|
+
@ProductId = params['ProductId']
|
1551
|
+
@FirmwareVersion = params['FirmwareVersion']
|
1552
|
+
@TaskId = params['TaskId']
|
1553
|
+
end
|
1554
|
+
end
|
1555
|
+
|
1556
|
+
# DescribeFirmwareTaskDistribution返回参数结构体
|
1557
|
+
class DescribeFirmwareTaskDistributionResponse < TencentCloud::Common::AbstractModel
|
1558
|
+
# @param StatusInfos: 固件升级任务状态分布信息
|
1559
|
+
# @type StatusInfos: Array
|
1560
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1561
|
+
# @type RequestId: String
|
1562
|
+
|
1563
|
+
attr_accessor :StatusInfos, :RequestId
|
1564
|
+
|
1565
|
+
def initialize(statusinfos=nil, requestid=nil)
|
1566
|
+
@StatusInfos = statusinfos
|
1567
|
+
@RequestId = requestid
|
1568
|
+
end
|
1569
|
+
|
1570
|
+
def deserialize(params)
|
1571
|
+
unless params['StatusInfos'].nil?
|
1572
|
+
@StatusInfos = []
|
1573
|
+
params['StatusInfos'].each do |i|
|
1574
|
+
statusstatistic_tmp = StatusStatistic.new
|
1575
|
+
statusstatistic_tmp.deserialize(i)
|
1576
|
+
@StatusInfos << statusstatistic_tmp
|
1577
|
+
end
|
1578
|
+
end
|
1579
|
+
@RequestId = params['RequestId']
|
1580
|
+
end
|
1581
|
+
end
|
1582
|
+
|
1583
|
+
# DescribeFirmwareTask请求参数结构体
|
1584
|
+
class DescribeFirmwareTaskRequest < TencentCloud::Common::AbstractModel
|
1585
|
+
# @param ProductId: 产品ID
|
1586
|
+
# @type ProductId: String
|
1587
|
+
# @param FirmwareVersion: 固件版本号
|
1588
|
+
# @type FirmwareVersion: String
|
1589
|
+
# @param TaskId: 固件任务ID
|
1590
|
+
# @type TaskId: Integer
|
1591
|
+
|
1592
|
+
attr_accessor :ProductId, :FirmwareVersion, :TaskId
|
1593
|
+
|
1594
|
+
def initialize(productid=nil, firmwareversion=nil, taskid=nil)
|
1595
|
+
@ProductId = productid
|
1596
|
+
@FirmwareVersion = firmwareversion
|
1597
|
+
@TaskId = taskid
|
1598
|
+
end
|
1599
|
+
|
1600
|
+
def deserialize(params)
|
1601
|
+
@ProductId = params['ProductId']
|
1602
|
+
@FirmwareVersion = params['FirmwareVersion']
|
1603
|
+
@TaskId = params['TaskId']
|
1604
|
+
end
|
1605
|
+
end
|
1606
|
+
|
1607
|
+
# DescribeFirmwareTask返回参数结构体
|
1608
|
+
class DescribeFirmwareTaskResponse < TencentCloud::Common::AbstractModel
|
1609
|
+
# @param TaskId: 固件任务ID
|
1610
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1611
|
+
# @type TaskId: Integer
|
1612
|
+
# @param Status: 固件任务状态
|
1613
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1614
|
+
# @type Status: Integer
|
1615
|
+
# @param CreateTime: 固件任务创建时间,单位:秒
|
1616
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1617
|
+
# @type CreateTime: Integer
|
1618
|
+
# @param Type: 固件任务升级类型
|
1619
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1620
|
+
# @type Type: Integer
|
1621
|
+
# @param ProductName: 产品名称
|
1622
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1623
|
+
# @type ProductName: String
|
1624
|
+
# @param UpgradeMode: 固件任务升级模式。originalVersion(按版本号升级)、filename(提交文件升级)、devicenames(按设备名称升级)
|
1625
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1626
|
+
# @type UpgradeMode: String
|
1627
|
+
# @param ProductId: 产品ID
|
1628
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1629
|
+
# @type ProductId: String
|
1630
|
+
# @param OriginalVersion: 升级前版本号
|
1631
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1632
|
+
# @type OriginalVersion: String
|
1633
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1634
|
+
# @type RequestId: String
|
1635
|
+
|
1636
|
+
attr_accessor :TaskId, :Status, :CreateTime, :Type, :ProductName, :UpgradeMode, :ProductId, :OriginalVersion, :RequestId
|
1637
|
+
|
1638
|
+
def initialize(taskid=nil, status=nil, createtime=nil, type=nil, productname=nil, upgrademode=nil, productid=nil, originalversion=nil, requestid=nil)
|
1639
|
+
@TaskId = taskid
|
1640
|
+
@Status = status
|
1641
|
+
@CreateTime = createtime
|
1642
|
+
@Type = type
|
1643
|
+
@ProductName = productname
|
1644
|
+
@UpgradeMode = upgrademode
|
1645
|
+
@ProductId = productid
|
1646
|
+
@OriginalVersion = originalversion
|
1647
|
+
@RequestId = requestid
|
1648
|
+
end
|
1649
|
+
|
1650
|
+
def deserialize(params)
|
1651
|
+
@TaskId = params['TaskId']
|
1652
|
+
@Status = params['Status']
|
1653
|
+
@CreateTime = params['CreateTime']
|
1654
|
+
@Type = params['Type']
|
1655
|
+
@ProductName = params['ProductName']
|
1656
|
+
@UpgradeMode = params['UpgradeMode']
|
1657
|
+
@ProductId = params['ProductId']
|
1658
|
+
@OriginalVersion = params['OriginalVersion']
|
1659
|
+
@RequestId = params['RequestId']
|
1660
|
+
end
|
1661
|
+
end
|
1662
|
+
|
1663
|
+
# DescribeFirmwareTaskStatistics请求参数结构体
|
1664
|
+
class DescribeFirmwareTaskStatisticsRequest < TencentCloud::Common::AbstractModel
|
1665
|
+
# @param ProductId: 产品ID
|
1666
|
+
# @type ProductId: String
|
1667
|
+
# @param FirmwareVersion: 固件版本号
|
1668
|
+
# @type FirmwareVersion: String
|
1669
|
+
|
1670
|
+
attr_accessor :ProductId, :FirmwareVersion
|
1671
|
+
|
1672
|
+
def initialize(productid=nil, firmwareversion=nil)
|
1673
|
+
@ProductId = productid
|
1674
|
+
@FirmwareVersion = firmwareversion
|
1675
|
+
end
|
1676
|
+
|
1677
|
+
def deserialize(params)
|
1678
|
+
@ProductId = params['ProductId']
|
1679
|
+
@FirmwareVersion = params['FirmwareVersion']
|
1680
|
+
end
|
1681
|
+
end
|
1682
|
+
|
1683
|
+
# DescribeFirmwareTaskStatistics返回参数结构体
|
1684
|
+
class DescribeFirmwareTaskStatisticsResponse < TencentCloud::Common::AbstractModel
|
1685
|
+
# @param SuccessTotal: 升级成功的设备总数
|
1686
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1687
|
+
# @type SuccessTotal: Integer
|
1688
|
+
# @param FailureTotal: 升级失败的设备总数
|
1689
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1690
|
+
# @type FailureTotal: Integer
|
1691
|
+
# @param UpgradingTotal: 正在升级的设备总数
|
1692
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1693
|
+
# @type UpgradingTotal: Integer
|
1694
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1695
|
+
# @type RequestId: String
|
1696
|
+
|
1697
|
+
attr_accessor :SuccessTotal, :FailureTotal, :UpgradingTotal, :RequestId
|
1698
|
+
|
1699
|
+
def initialize(successtotal=nil, failuretotal=nil, upgradingtotal=nil, requestid=nil)
|
1700
|
+
@SuccessTotal = successtotal
|
1701
|
+
@FailureTotal = failuretotal
|
1702
|
+
@UpgradingTotal = upgradingtotal
|
1703
|
+
@RequestId = requestid
|
1704
|
+
end
|
1705
|
+
|
1706
|
+
def deserialize(params)
|
1707
|
+
@SuccessTotal = params['SuccessTotal']
|
1708
|
+
@FailureTotal = params['FailureTotal']
|
1709
|
+
@UpgradingTotal = params['UpgradingTotal']
|
1710
|
+
@RequestId = params['RequestId']
|
1711
|
+
end
|
1712
|
+
end
|
1713
|
+
|
1714
|
+
# DescribeFirmwareTasks请求参数结构体
|
1715
|
+
class DescribeFirmwareTasksRequest < TencentCloud::Common::AbstractModel
|
1716
|
+
# @param ProductId: 产品ID
|
1717
|
+
# @type ProductId: String
|
1718
|
+
# @param FirmwareVersion: 固件版本号
|
1719
|
+
# @type FirmwareVersion: String
|
1720
|
+
# @param Offset: 查询偏移量
|
1721
|
+
# @type Offset: Integer
|
1722
|
+
# @param Limit: 返回查询结果条数
|
1723
|
+
# @type Limit: Integer
|
1724
|
+
# @param Filters: 搜索过滤条件
|
1725
|
+
# @type Filters: Array
|
1726
|
+
|
1727
|
+
attr_accessor :ProductId, :FirmwareVersion, :Offset, :Limit, :Filters
|
1728
|
+
|
1729
|
+
def initialize(productid=nil, firmwareversion=nil, offset=nil, limit=nil, filters=nil)
|
1730
|
+
@ProductId = productid
|
1731
|
+
@FirmwareVersion = firmwareversion
|
1732
|
+
@Offset = offset
|
1733
|
+
@Limit = limit
|
1734
|
+
@Filters = filters
|
1735
|
+
end
|
1736
|
+
|
1737
|
+
def deserialize(params)
|
1738
|
+
@ProductId = params['ProductId']
|
1739
|
+
@FirmwareVersion = params['FirmwareVersion']
|
1740
|
+
@Offset = params['Offset']
|
1741
|
+
@Limit = params['Limit']
|
1742
|
+
unless params['Filters'].nil?
|
1743
|
+
@Filters = []
|
1744
|
+
params['Filters'].each do |i|
|
1745
|
+
searchkeyword_tmp = SearchKeyword.new
|
1746
|
+
searchkeyword_tmp.deserialize(i)
|
1747
|
+
@Filters << searchkeyword_tmp
|
1748
|
+
end
|
1749
|
+
end
|
1750
|
+
end
|
1751
|
+
end
|
1752
|
+
|
1753
|
+
# DescribeFirmwareTasks返回参数结构体
|
1754
|
+
class DescribeFirmwareTasksResponse < TencentCloud::Common::AbstractModel
|
1755
|
+
# @param TaskInfos: 固件升级任务列表
|
1756
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1757
|
+
# @type TaskInfos: Array
|
1758
|
+
# @param Total: 固件升级任务总数
|
1759
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1760
|
+
# @type Total: Integer
|
1761
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1762
|
+
# @type RequestId: String
|
1763
|
+
|
1764
|
+
attr_accessor :TaskInfos, :Total, :RequestId
|
1765
|
+
|
1766
|
+
def initialize(taskinfos=nil, total=nil, requestid=nil)
|
1767
|
+
@TaskInfos = taskinfos
|
1768
|
+
@Total = total
|
1769
|
+
@RequestId = requestid
|
1770
|
+
end
|
1771
|
+
|
1772
|
+
def deserialize(params)
|
1773
|
+
unless params['TaskInfos'].nil?
|
1774
|
+
@TaskInfos = []
|
1775
|
+
params['TaskInfos'].each do |i|
|
1776
|
+
firmwaretaskinfo_tmp = FirmwareTaskInfo.new
|
1777
|
+
firmwaretaskinfo_tmp.deserialize(i)
|
1778
|
+
@TaskInfos << firmwaretaskinfo_tmp
|
1779
|
+
end
|
1780
|
+
end
|
1781
|
+
@Total = params['Total']
|
1782
|
+
@RequestId = params['RequestId']
|
1783
|
+
end
|
1784
|
+
end
|
1785
|
+
|
1786
|
+
# DescribeGatewayBindDevices请求参数结构体
|
1787
|
+
class DescribeGatewayBindDevicesRequest < TencentCloud::Common::AbstractModel
|
1788
|
+
# @param GatewayProductId: 网关设备的产品ID
|
1789
|
+
# @type GatewayProductId: String
|
1790
|
+
# @param GatewayDeviceName: 网关设备的设备名
|
1791
|
+
# @type GatewayDeviceName: String
|
1792
|
+
# @param Offset: 偏移量,Offset从0开始
|
1793
|
+
# @type Offset: Integer
|
1794
|
+
# @param Limit: 分页的页大小
|
1795
|
+
# @type Limit: Integer
|
1796
|
+
# @param ProductId: LoRa产品的ID
|
1797
|
+
# @type ProductId: String
|
1798
|
+
|
1799
|
+
attr_accessor :GatewayProductId, :GatewayDeviceName, :Offset, :Limit, :ProductId
|
1800
|
+
|
1801
|
+
def initialize(gatewayproductid=nil, gatewaydevicename=nil, offset=nil, limit=nil, productid=nil)
|
1802
|
+
@GatewayProductId = gatewayproductid
|
1803
|
+
@GatewayDeviceName = gatewaydevicename
|
1804
|
+
@Offset = offset
|
1805
|
+
@Limit = limit
|
1806
|
+
@ProductId = productid
|
1807
|
+
end
|
1808
|
+
|
1809
|
+
def deserialize(params)
|
1810
|
+
@GatewayProductId = params['GatewayProductId']
|
1811
|
+
@GatewayDeviceName = params['GatewayDeviceName']
|
1812
|
+
@Offset = params['Offset']
|
1813
|
+
@Limit = params['Limit']
|
1814
|
+
@ProductId = params['ProductId']
|
1815
|
+
end
|
1816
|
+
end
|
1817
|
+
|
1818
|
+
# DescribeGatewayBindDevices返回参数结构体
|
1819
|
+
class DescribeGatewayBindDevicesResponse < TencentCloud::Common::AbstractModel
|
1820
|
+
# @param TotalCount: 子设备总数
|
1821
|
+
# @type TotalCount: Integer
|
1822
|
+
# @param Devices: 子设备信息
|
1823
|
+
# @type Devices: Array
|
1824
|
+
# @param ProductName: 子设备所属的产品名
|
1825
|
+
# @type ProductName: String
|
1826
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1827
|
+
# @type RequestId: String
|
1828
|
+
|
1829
|
+
attr_accessor :TotalCount, :Devices, :ProductName, :RequestId
|
1830
|
+
|
1831
|
+
def initialize(totalcount=nil, devices=nil, productname=nil, requestid=nil)
|
1832
|
+
@TotalCount = totalcount
|
1833
|
+
@Devices = devices
|
1834
|
+
@ProductName = productname
|
1835
|
+
@RequestId = requestid
|
1836
|
+
end
|
1837
|
+
|
1838
|
+
def deserialize(params)
|
1839
|
+
@TotalCount = params['TotalCount']
|
1840
|
+
unless params['Devices'].nil?
|
1841
|
+
@Devices = []
|
1842
|
+
params['Devices'].each do |i|
|
1843
|
+
binddeviceinfo_tmp = BindDeviceInfo.new
|
1844
|
+
binddeviceinfo_tmp.deserialize(i)
|
1845
|
+
@Devices << binddeviceinfo_tmp
|
1846
|
+
end
|
1847
|
+
end
|
1848
|
+
@ProductName = params['ProductName']
|
1849
|
+
@RequestId = params['RequestId']
|
1850
|
+
end
|
1851
|
+
end
|
1852
|
+
|
1853
|
+
# DescribePrivateCABindedProducts请求参数结构体
|
1854
|
+
class DescribePrivateCABindedProductsRequest < TencentCloud::Common::AbstractModel
|
1855
|
+
# @param CertName: 证书名称
|
1856
|
+
# @type CertName: String
|
1857
|
+
# @param Offset: 查询偏移量
|
1858
|
+
# @type Offset: Integer
|
1859
|
+
# @param Limit: 查询的数据量,默认为20, 最大为200
|
1860
|
+
# @type Limit: Integer
|
1861
|
+
|
1862
|
+
attr_accessor :CertName, :Offset, :Limit
|
1863
|
+
|
1864
|
+
def initialize(certname=nil, offset=nil, limit=nil)
|
1865
|
+
@CertName = certname
|
1866
|
+
@Offset = offset
|
1867
|
+
@Limit = limit
|
1868
|
+
end
|
1869
|
+
|
1870
|
+
def deserialize(params)
|
1871
|
+
@CertName = params['CertName']
|
1872
|
+
@Offset = params['Offset']
|
1873
|
+
@Limit = params['Limit']
|
1874
|
+
end
|
1875
|
+
end
|
1876
|
+
|
1877
|
+
# DescribePrivateCABindedProducts返回参数结构体
|
1878
|
+
class DescribePrivateCABindedProductsResponse < TencentCloud::Common::AbstractModel
|
1879
|
+
# @param Products: 私有CA绑定的产品列表
|
1880
|
+
# @type Products: Array
|
1881
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1882
|
+
# @type RequestId: String
|
1883
|
+
|
1884
|
+
attr_accessor :Products, :RequestId
|
1885
|
+
|
1886
|
+
def initialize(products=nil, requestid=nil)
|
1887
|
+
@Products = products
|
1888
|
+
@RequestId = requestid
|
1889
|
+
end
|
1890
|
+
|
1891
|
+
def deserialize(params)
|
1892
|
+
unless params['Products'].nil?
|
1893
|
+
@Products = []
|
1894
|
+
params['Products'].each do |i|
|
1895
|
+
bindproductinfo_tmp = BindProductInfo.new
|
1896
|
+
bindproductinfo_tmp.deserialize(i)
|
1897
|
+
@Products << bindproductinfo_tmp
|
1898
|
+
end
|
1899
|
+
end
|
1900
|
+
@RequestId = params['RequestId']
|
1901
|
+
end
|
1902
|
+
end
|
1903
|
+
|
1904
|
+
# DescribePrivateCA请求参数结构体
|
1905
|
+
class DescribePrivateCARequest < TencentCloud::Common::AbstractModel
|
1906
|
+
# @param CertName: 私有化CA名称
|
1907
|
+
# @type CertName: String
|
1908
|
+
|
1909
|
+
attr_accessor :CertName
|
1910
|
+
|
1911
|
+
def initialize(certname=nil)
|
1912
|
+
@CertName = certname
|
1913
|
+
end
|
1914
|
+
|
1915
|
+
def deserialize(params)
|
1916
|
+
@CertName = params['CertName']
|
1917
|
+
end
|
1918
|
+
end
|
1919
|
+
|
1920
|
+
# DescribePrivateCA返回参数结构体
|
1921
|
+
class DescribePrivateCAResponse < TencentCloud::Common::AbstractModel
|
1922
|
+
# @param CA: 私有化CA详情
|
1923
|
+
# @type CA: :class:`Tencentcloud::Iotcloud.v20210408.models.CertInfo`
|
1924
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1925
|
+
# @type RequestId: String
|
1926
|
+
|
1927
|
+
attr_accessor :CA, :RequestId
|
1928
|
+
|
1929
|
+
def initialize(ca=nil, requestid=nil)
|
1930
|
+
@CA = ca
|
1931
|
+
@RequestId = requestid
|
1932
|
+
end
|
1933
|
+
|
1934
|
+
def deserialize(params)
|
1935
|
+
unless params['CA'].nil?
|
1936
|
+
@CA = CertInfo.new
|
1937
|
+
@CA.deserialize(params['CA'])
|
1938
|
+
end
|
1939
|
+
@RequestId = params['RequestId']
|
1940
|
+
end
|
1941
|
+
end
|
1942
|
+
|
1943
|
+
# DescribePrivateCAs请求参数结构体
|
1944
|
+
class DescribePrivateCAsRequest < TencentCloud::Common::AbstractModel
|
1945
|
+
|
1946
|
+
|
1947
|
+
def initialize()
|
1948
|
+
end
|
1949
|
+
|
1950
|
+
def deserialize(params)
|
1951
|
+
end
|
1952
|
+
end
|
1953
|
+
|
1954
|
+
# DescribePrivateCAs返回参数结构体
|
1955
|
+
class DescribePrivateCAsResponse < TencentCloud::Common::AbstractModel
|
1956
|
+
# @param CAs: 私有CA证书列表
|
1957
|
+
# @type CAs: Array
|
1958
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1959
|
+
# @type RequestId: String
|
1960
|
+
|
1961
|
+
attr_accessor :CAs, :RequestId
|
1962
|
+
|
1963
|
+
def initialize(cas=nil, requestid=nil)
|
1964
|
+
@CAs = cas
|
1965
|
+
@RequestId = requestid
|
1966
|
+
end
|
1967
|
+
|
1968
|
+
def deserialize(params)
|
1969
|
+
unless params['CAs'].nil?
|
1970
|
+
@CAs = []
|
1971
|
+
params['CAs'].each do |i|
|
1972
|
+
certinfo_tmp = CertInfo.new
|
1973
|
+
certinfo_tmp.deserialize(i)
|
1974
|
+
@CAs << certinfo_tmp
|
1975
|
+
end
|
1976
|
+
end
|
1977
|
+
@RequestId = params['RequestId']
|
1978
|
+
end
|
1979
|
+
end
|
1980
|
+
|
1981
|
+
# DescribeProductCA请求参数结构体
|
1982
|
+
class DescribeProductCARequest < TencentCloud::Common::AbstractModel
|
1983
|
+
# @param ProductId: 产品ID
|
1984
|
+
# @type ProductId: String
|
1985
|
+
|
1986
|
+
attr_accessor :ProductId
|
1987
|
+
|
1988
|
+
def initialize(productid=nil)
|
1989
|
+
@ProductId = productid
|
1990
|
+
end
|
1991
|
+
|
1992
|
+
def deserialize(params)
|
1993
|
+
@ProductId = params['ProductId']
|
1994
|
+
end
|
1995
|
+
end
|
1996
|
+
|
1997
|
+
# DescribeProductCA返回参数结构体
|
1998
|
+
class DescribeProductCAResponse < TencentCloud::Common::AbstractModel
|
1999
|
+
# @param CAs: CA证书列表
|
2000
|
+
# @type CAs: Array
|
2001
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2002
|
+
# @type RequestId: String
|
2003
|
+
|
2004
|
+
attr_accessor :CAs, :RequestId
|
2005
|
+
|
2006
|
+
def initialize(cas=nil, requestid=nil)
|
2007
|
+
@CAs = cas
|
2008
|
+
@RequestId = requestid
|
2009
|
+
end
|
2010
|
+
|
2011
|
+
def deserialize(params)
|
2012
|
+
unless params['CAs'].nil?
|
2013
|
+
@CAs = []
|
2014
|
+
params['CAs'].each do |i|
|
2015
|
+
certinfo_tmp = CertInfo.new
|
2016
|
+
certinfo_tmp.deserialize(i)
|
2017
|
+
@CAs << certinfo_tmp
|
2018
|
+
end
|
2019
|
+
end
|
2020
|
+
@RequestId = params['RequestId']
|
2021
|
+
end
|
2022
|
+
end
|
2023
|
+
|
2024
|
+
# DescribeProduct请求参数结构体
|
2025
|
+
class DescribeProductRequest < TencentCloud::Common::AbstractModel
|
2026
|
+
# @param ProductId: 产品ID
|
2027
|
+
# @type ProductId: String
|
2028
|
+
|
2029
|
+
attr_accessor :ProductId
|
2030
|
+
|
2031
|
+
def initialize(productid=nil)
|
2032
|
+
@ProductId = productid
|
2033
|
+
end
|
2034
|
+
|
2035
|
+
def deserialize(params)
|
2036
|
+
@ProductId = params['ProductId']
|
2037
|
+
end
|
2038
|
+
end
|
2039
|
+
|
2040
|
+
# DescribeProductResource请求参数结构体
|
2041
|
+
class DescribeProductResourceRequest < TencentCloud::Common::AbstractModel
|
2042
|
+
# @param ProductID: 需要查看资源列表的产品 ID
|
2043
|
+
# @type ProductID: String
|
2044
|
+
# @param Name: 需要过滤的资源名称
|
2045
|
+
# @type Name: String
|
2046
|
+
|
2047
|
+
attr_accessor :ProductID, :Name
|
2048
|
+
|
2049
|
+
def initialize(productid=nil, name=nil)
|
2050
|
+
@ProductID = productid
|
2051
|
+
@Name = name
|
2052
|
+
end
|
2053
|
+
|
2054
|
+
def deserialize(params)
|
2055
|
+
@ProductID = params['ProductID']
|
2056
|
+
@Name = params['Name']
|
2057
|
+
end
|
2058
|
+
end
|
2059
|
+
|
2060
|
+
# DescribeProductResource返回参数结构体
|
2061
|
+
class DescribeProductResourceResponse < TencentCloud::Common::AbstractModel
|
2062
|
+
# @param Result: 资源详情
|
2063
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2064
|
+
# @type Result: :class:`Tencentcloud::Iotcloud.v20210408.models.ProductResourceInfo`
|
2065
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2066
|
+
# @type RequestId: String
|
2067
|
+
|
2068
|
+
attr_accessor :Result, :RequestId
|
2069
|
+
|
2070
|
+
def initialize(result=nil, requestid=nil)
|
2071
|
+
@Result = result
|
2072
|
+
@RequestId = requestid
|
2073
|
+
end
|
2074
|
+
|
2075
|
+
def deserialize(params)
|
2076
|
+
unless params['Result'].nil?
|
2077
|
+
@Result = ProductResourceInfo.new
|
2078
|
+
@Result.deserialize(params['Result'])
|
2079
|
+
end
|
2080
|
+
@RequestId = params['RequestId']
|
2081
|
+
end
|
2082
|
+
end
|
2083
|
+
|
2084
|
+
# DescribeProductResources请求参数结构体
|
2085
|
+
class DescribeProductResourcesRequest < TencentCloud::Common::AbstractModel
|
2086
|
+
# @param Offset: 偏移量,Offset从0开始
|
2087
|
+
# @type Offset: Integer
|
2088
|
+
# @param Limit: 分页的大小,数值范围 10-250
|
2089
|
+
# @type Limit: Integer
|
2090
|
+
# @param ProductID: 需要查看资源列表的产品 ID
|
2091
|
+
# @type ProductID: String
|
2092
|
+
# @param Name: 需要过滤的资源名称
|
2093
|
+
# @type Name: String
|
2094
|
+
|
2095
|
+
attr_accessor :Offset, :Limit, :ProductID, :Name
|
2096
|
+
|
2097
|
+
def initialize(offset=nil, limit=nil, productid=nil, name=nil)
|
2098
|
+
@Offset = offset
|
2099
|
+
@Limit = limit
|
2100
|
+
@ProductID = productid
|
2101
|
+
@Name = name
|
2102
|
+
end
|
2103
|
+
|
2104
|
+
def deserialize(params)
|
2105
|
+
@Offset = params['Offset']
|
2106
|
+
@Limit = params['Limit']
|
2107
|
+
@ProductID = params['ProductID']
|
2108
|
+
@Name = params['Name']
|
2109
|
+
end
|
2110
|
+
end
|
2111
|
+
|
2112
|
+
# DescribeProductResources返回参数结构体
|
2113
|
+
class DescribeProductResourcesResponse < TencentCloud::Common::AbstractModel
|
2114
|
+
# @param TotalCount: 资源总数
|
2115
|
+
# @type TotalCount: Integer
|
2116
|
+
# @param Result: 资源详情
|
2117
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2118
|
+
# @type Result: Array
|
2119
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2120
|
+
# @type RequestId: String
|
2121
|
+
|
2122
|
+
attr_accessor :TotalCount, :Result, :RequestId
|
2123
|
+
|
2124
|
+
def initialize(totalcount=nil, result=nil, requestid=nil)
|
2125
|
+
@TotalCount = totalcount
|
2126
|
+
@Result = result
|
2127
|
+
@RequestId = requestid
|
2128
|
+
end
|
2129
|
+
|
2130
|
+
def deserialize(params)
|
2131
|
+
@TotalCount = params['TotalCount']
|
2132
|
+
unless params['Result'].nil?
|
2133
|
+
@Result = []
|
2134
|
+
params['Result'].each do |i|
|
2135
|
+
productresourceinfo_tmp = ProductResourceInfo.new
|
2136
|
+
productresourceinfo_tmp.deserialize(i)
|
2137
|
+
@Result << productresourceinfo_tmp
|
2138
|
+
end
|
2139
|
+
end
|
2140
|
+
@RequestId = params['RequestId']
|
2141
|
+
end
|
2142
|
+
end
|
2143
|
+
|
2144
|
+
# DescribeProduct返回参数结构体
|
2145
|
+
class DescribeProductResponse < TencentCloud::Common::AbstractModel
|
2146
|
+
# @param ProductId: 产品ID
|
2147
|
+
# @type ProductId: String
|
2148
|
+
# @param ProductName: 产品名
|
2149
|
+
# @type ProductName: String
|
2150
|
+
# @param ProductMetadata: 产品元数据
|
2151
|
+
# @type ProductMetadata: :class:`Tencentcloud::Iotcloud.v20210408.models.ProductMetadata`
|
2152
|
+
# @param ProductProperties: 产品属性
|
2153
|
+
# @type ProductProperties: :class:`Tencentcloud::Iotcloud.v20210408.models.ProductProperties`
|
2154
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2155
|
+
# @type RequestId: String
|
2156
|
+
|
2157
|
+
attr_accessor :ProductId, :ProductName, :ProductMetadata, :ProductProperties, :RequestId
|
2158
|
+
|
2159
|
+
def initialize(productid=nil, productname=nil, productmetadata=nil, productproperties=nil, requestid=nil)
|
2160
|
+
@ProductId = productid
|
2161
|
+
@ProductName = productname
|
2162
|
+
@ProductMetadata = productmetadata
|
2163
|
+
@ProductProperties = productproperties
|
2164
|
+
@RequestId = requestid
|
2165
|
+
end
|
2166
|
+
|
2167
|
+
def deserialize(params)
|
2168
|
+
@ProductId = params['ProductId']
|
2169
|
+
@ProductName = params['ProductName']
|
2170
|
+
unless params['ProductMetadata'].nil?
|
2171
|
+
@ProductMetadata = ProductMetadata.new
|
2172
|
+
@ProductMetadata.deserialize(params['ProductMetadata'])
|
2173
|
+
end
|
2174
|
+
unless params['ProductProperties'].nil?
|
2175
|
+
@ProductProperties = ProductProperties.new
|
2176
|
+
@ProductProperties.deserialize(params['ProductProperties'])
|
2177
|
+
end
|
2178
|
+
@RequestId = params['RequestId']
|
2179
|
+
end
|
2180
|
+
end
|
2181
|
+
|
2182
|
+
# DescribeProductTask请求参数结构体
|
2183
|
+
class DescribeProductTaskRequest < TencentCloud::Common::AbstractModel
|
2184
|
+
# @param ProductId: 产品ID
|
2185
|
+
# @type ProductId: String
|
2186
|
+
# @param TaskId: 任务ID
|
2187
|
+
# @type TaskId: Integer
|
2188
|
+
|
2189
|
+
attr_accessor :ProductId, :TaskId
|
2190
|
+
|
2191
|
+
def initialize(productid=nil, taskid=nil)
|
2192
|
+
@ProductId = productid
|
2193
|
+
@TaskId = taskid
|
2194
|
+
end
|
2195
|
+
|
2196
|
+
def deserialize(params)
|
2197
|
+
@ProductId = params['ProductId']
|
2198
|
+
@TaskId = params['TaskId']
|
2199
|
+
end
|
2200
|
+
end
|
2201
|
+
|
2202
|
+
# DescribeProductTask返回参数结构体
|
2203
|
+
class DescribeProductTaskResponse < TencentCloud::Common::AbstractModel
|
2204
|
+
# @param TaskInfo: 产品任务详细信息
|
2205
|
+
# @type TaskInfo: :class:`Tencentcloud::Iotcloud.v20210408.models.ProductTaskInfo`
|
2206
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2207
|
+
# @type RequestId: String
|
2208
|
+
|
2209
|
+
attr_accessor :TaskInfo, :RequestId
|
2210
|
+
|
2211
|
+
def initialize(taskinfo=nil, requestid=nil)
|
2212
|
+
@TaskInfo = taskinfo
|
2213
|
+
@RequestId = requestid
|
2214
|
+
end
|
2215
|
+
|
2216
|
+
def deserialize(params)
|
2217
|
+
unless params['TaskInfo'].nil?
|
2218
|
+
@TaskInfo = ProductTaskInfo.new
|
2219
|
+
@TaskInfo.deserialize(params['TaskInfo'])
|
2220
|
+
end
|
2221
|
+
@RequestId = params['RequestId']
|
2222
|
+
end
|
2223
|
+
end
|
2224
|
+
|
2225
|
+
# DescribeProductTasks请求参数结构体
|
2226
|
+
class DescribeProductTasksRequest < TencentCloud::Common::AbstractModel
|
2227
|
+
# @param ProductId: 产品ID
|
2228
|
+
# @type ProductId: String
|
2229
|
+
# @param Offset: 产品级别任务列表偏移量
|
2230
|
+
# @type Offset: Integer
|
2231
|
+
# @param Limit: 产品级别任务列表拉取个数
|
2232
|
+
# @type Limit: Integer
|
2233
|
+
|
2234
|
+
attr_accessor :ProductId, :Offset, :Limit
|
2235
|
+
|
2236
|
+
def initialize(productid=nil, offset=nil, limit=nil)
|
2237
|
+
@ProductId = productid
|
2238
|
+
@Offset = offset
|
2239
|
+
@Limit = limit
|
2240
|
+
end
|
2241
|
+
|
2242
|
+
def deserialize(params)
|
2243
|
+
@ProductId = params['ProductId']
|
2244
|
+
@Offset = params['Offset']
|
2245
|
+
@Limit = params['Limit']
|
2246
|
+
end
|
2247
|
+
end
|
2248
|
+
|
2249
|
+
# DescribeProductTasks返回参数结构体
|
2250
|
+
class DescribeProductTasksResponse < TencentCloud::Common::AbstractModel
|
2251
|
+
# @param TotalCount: 符合条件的任务总个数
|
2252
|
+
# @type TotalCount: Integer
|
2253
|
+
# @param TaskInfos: 任务详细信息列表
|
2254
|
+
# @type TaskInfos: Array
|
2255
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2256
|
+
# @type RequestId: String
|
2257
|
+
|
2258
|
+
attr_accessor :TotalCount, :TaskInfos, :RequestId
|
2259
|
+
|
2260
|
+
def initialize(totalcount=nil, taskinfos=nil, requestid=nil)
|
2261
|
+
@TotalCount = totalcount
|
2262
|
+
@TaskInfos = taskinfos
|
2263
|
+
@RequestId = requestid
|
2264
|
+
end
|
2265
|
+
|
2266
|
+
def deserialize(params)
|
2267
|
+
@TotalCount = params['TotalCount']
|
2268
|
+
unless params['TaskInfos'].nil?
|
2269
|
+
@TaskInfos = []
|
2270
|
+
params['TaskInfos'].each do |i|
|
2271
|
+
producttaskinfo_tmp = ProductTaskInfo.new
|
2272
|
+
producttaskinfo_tmp.deserialize(i)
|
2273
|
+
@TaskInfos << producttaskinfo_tmp
|
2274
|
+
end
|
2275
|
+
end
|
2276
|
+
@RequestId = params['RequestId']
|
2277
|
+
end
|
2278
|
+
end
|
2279
|
+
|
2280
|
+
# DescribeProducts请求参数结构体
|
2281
|
+
class DescribeProductsRequest < TencentCloud::Common::AbstractModel
|
2282
|
+
# @param Offset: 偏移量,Offset从0开始
|
2283
|
+
# @type Offset: Integer
|
2284
|
+
# @param Limit: 分页大小,当前页面中显示的最大数量,值范围 10-250。
|
2285
|
+
# @type Limit: Integer
|
2286
|
+
|
2287
|
+
attr_accessor :Offset, :Limit
|
2288
|
+
|
2289
|
+
def initialize(offset=nil, limit=nil)
|
2290
|
+
@Offset = offset
|
2291
|
+
@Limit = limit
|
2292
|
+
end
|
2293
|
+
|
2294
|
+
def deserialize(params)
|
2295
|
+
@Offset = params['Offset']
|
2296
|
+
@Limit = params['Limit']
|
2297
|
+
end
|
2298
|
+
end
|
2299
|
+
|
2300
|
+
# DescribeProducts返回参数结构体
|
2301
|
+
class DescribeProductsResponse < TencentCloud::Common::AbstractModel
|
2302
|
+
# @param TotalCount: 产品总数
|
2303
|
+
# @type TotalCount: Integer
|
2304
|
+
# @param Products: 产品详细信息列表
|
2305
|
+
# @type Products: Array
|
2306
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2307
|
+
# @type RequestId: String
|
2308
|
+
|
2309
|
+
attr_accessor :TotalCount, :Products, :RequestId
|
2310
|
+
|
2311
|
+
def initialize(totalcount=nil, products=nil, requestid=nil)
|
2312
|
+
@TotalCount = totalcount
|
2313
|
+
@Products = products
|
2314
|
+
@RequestId = requestid
|
2315
|
+
end
|
2316
|
+
|
2317
|
+
def deserialize(params)
|
2318
|
+
@TotalCount = params['TotalCount']
|
2319
|
+
unless params['Products'].nil?
|
2320
|
+
@Products = []
|
2321
|
+
params['Products'].each do |i|
|
2322
|
+
productinfo_tmp = ProductInfo.new
|
2323
|
+
productinfo_tmp.deserialize(i)
|
2324
|
+
@Products << productinfo_tmp
|
2325
|
+
end
|
2326
|
+
end
|
2327
|
+
@RequestId = params['RequestId']
|
2328
|
+
end
|
2329
|
+
end
|
2330
|
+
|
2331
|
+
# DescribePushResourceTaskStatistics请求参数结构体
|
2332
|
+
class DescribePushResourceTaskStatisticsRequest < TencentCloud::Common::AbstractModel
|
2333
|
+
# @param ProductID: 产品ID
|
2334
|
+
# @type ProductID: String
|
2335
|
+
# @param Name: 资源名称
|
2336
|
+
# @type Name: String
|
2337
|
+
|
2338
|
+
attr_accessor :ProductID, :Name
|
2339
|
+
|
2340
|
+
def initialize(productid=nil, name=nil)
|
2341
|
+
@ProductID = productid
|
2342
|
+
@Name = name
|
2343
|
+
end
|
2344
|
+
|
2345
|
+
def deserialize(params)
|
2346
|
+
@ProductID = params['ProductID']
|
2347
|
+
@Name = params['Name']
|
2348
|
+
end
|
2349
|
+
end
|
2350
|
+
|
2351
|
+
# DescribePushResourceTaskStatistics返回参数结构体
|
2352
|
+
class DescribePushResourceTaskStatisticsResponse < TencentCloud::Common::AbstractModel
|
2353
|
+
# @param SuccessTotal: 推送成功的设备总数
|
2354
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2355
|
+
# @type SuccessTotal: Integer
|
2356
|
+
# @param FailureTotal: 推送失败的设备总数
|
2357
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2358
|
+
# @type FailureTotal: Integer
|
2359
|
+
# @param UpgradingTotal: 正在推送的设备总数
|
2360
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2361
|
+
# @type UpgradingTotal: Integer
|
2362
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2363
|
+
# @type RequestId: String
|
2364
|
+
|
2365
|
+
attr_accessor :SuccessTotal, :FailureTotal, :UpgradingTotal, :RequestId
|
2366
|
+
|
2367
|
+
def initialize(successtotal=nil, failuretotal=nil, upgradingtotal=nil, requestid=nil)
|
2368
|
+
@SuccessTotal = successtotal
|
2369
|
+
@FailureTotal = failuretotal
|
2370
|
+
@UpgradingTotal = upgradingtotal
|
2371
|
+
@RequestId = requestid
|
2372
|
+
end
|
2373
|
+
|
2374
|
+
def deserialize(params)
|
2375
|
+
@SuccessTotal = params['SuccessTotal']
|
2376
|
+
@FailureTotal = params['FailureTotal']
|
2377
|
+
@UpgradingTotal = params['UpgradingTotal']
|
2378
|
+
@RequestId = params['RequestId']
|
2379
|
+
end
|
2380
|
+
end
|
2381
|
+
|
2382
|
+
# DescribeResourceTasks请求参数结构体
|
2383
|
+
class DescribeResourceTasksRequest < TencentCloud::Common::AbstractModel
|
2384
|
+
# @param ProductID: 产品ID
|
2385
|
+
# @type ProductID: String
|
2386
|
+
# @param Name: 资源名称
|
2387
|
+
# @type Name: String
|
2388
|
+
# @param Offset: 查询偏移量
|
2389
|
+
# @type Offset: Integer
|
2390
|
+
# @param Limit: 返回查询结果条数
|
2391
|
+
# @type Limit: Integer
|
2392
|
+
# @param Filters: 搜索过滤条件
|
2393
|
+
# @type Filters: Array
|
2394
|
+
|
2395
|
+
attr_accessor :ProductID, :Name, :Offset, :Limit, :Filters
|
2396
|
+
|
2397
|
+
def initialize(productid=nil, name=nil, offset=nil, limit=nil, filters=nil)
|
2398
|
+
@ProductID = productid
|
2399
|
+
@Name = name
|
2400
|
+
@Offset = offset
|
2401
|
+
@Limit = limit
|
2402
|
+
@Filters = filters
|
2403
|
+
end
|
2404
|
+
|
2405
|
+
def deserialize(params)
|
2406
|
+
@ProductID = params['ProductID']
|
2407
|
+
@Name = params['Name']
|
2408
|
+
@Offset = params['Offset']
|
2409
|
+
@Limit = params['Limit']
|
2410
|
+
unless params['Filters'].nil?
|
2411
|
+
@Filters = []
|
2412
|
+
params['Filters'].each do |i|
|
2413
|
+
searchkeyword_tmp = SearchKeyword.new
|
2414
|
+
searchkeyword_tmp.deserialize(i)
|
2415
|
+
@Filters << searchkeyword_tmp
|
2416
|
+
end
|
2417
|
+
end
|
2418
|
+
end
|
2419
|
+
end
|
2420
|
+
|
2421
|
+
# DescribeResourceTasks返回参数结构体
|
2422
|
+
class DescribeResourceTasksResponse < TencentCloud::Common::AbstractModel
|
2423
|
+
# @param TaskInfos: 资源任务列表
|
2424
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2425
|
+
# @type TaskInfos: Array
|
2426
|
+
# @param Total: 资源任务总数
|
2427
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2428
|
+
# @type Total: Integer
|
2429
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2430
|
+
# @type RequestId: String
|
2431
|
+
|
2432
|
+
attr_accessor :TaskInfos, :Total, :RequestId
|
2433
|
+
|
2434
|
+
def initialize(taskinfos=nil, total=nil, requestid=nil)
|
2435
|
+
@TaskInfos = taskinfos
|
2436
|
+
@Total = total
|
2437
|
+
@RequestId = requestid
|
2438
|
+
end
|
2439
|
+
|
2440
|
+
def deserialize(params)
|
2441
|
+
unless params['TaskInfos'].nil?
|
2442
|
+
@TaskInfos = []
|
2443
|
+
params['TaskInfos'].each do |i|
|
2444
|
+
firmwaretaskinfo_tmp = FirmwareTaskInfo.new
|
2445
|
+
firmwaretaskinfo_tmp.deserialize(i)
|
2446
|
+
@TaskInfos << firmwaretaskinfo_tmp
|
2447
|
+
end
|
2448
|
+
end
|
2449
|
+
@Total = params['Total']
|
2450
|
+
@RequestId = params['RequestId']
|
2451
|
+
end
|
2452
|
+
end
|
2453
|
+
|
2454
|
+
# 设备详细信息
|
2455
|
+
class DeviceInfo < TencentCloud::Common::AbstractModel
|
2456
|
+
# @param DeviceName: 设备名
|
2457
|
+
# @type DeviceName: String
|
2458
|
+
# @param Online: 设备是否在线,0不在线,1在线
|
2459
|
+
# @type Online: Integer
|
2460
|
+
# @param LoginTime: 设备登录时间
|
2461
|
+
# @type LoginTime: Integer
|
2462
|
+
# @param Version: 设备版本
|
2463
|
+
# @type Version: String
|
2464
|
+
# @param DeviceCert: 设备证书,证书加密的设备返回
|
2465
|
+
# @type DeviceCert: String
|
2466
|
+
# @param DevicePsk: 设备密钥,密钥加密的设备返回
|
2467
|
+
# @type DevicePsk: String
|
2468
|
+
# @param Tags: 设备属性
|
2469
|
+
# @type Tags: Array
|
2470
|
+
# @param DeviceType: 设备类型
|
2471
|
+
# @type DeviceType: Integer
|
2472
|
+
# @param Imei: 国际移动设备识别码 IMEI
|
2473
|
+
# @type Imei: String
|
2474
|
+
# @param Isp: 运营商类型
|
2475
|
+
# @type Isp: Integer
|
2476
|
+
# @param NbiotDeviceID: NB IOT运营商处的DeviceID
|
2477
|
+
# @type NbiotDeviceID: String
|
2478
|
+
# @param ConnIP: IP地址
|
2479
|
+
# @type ConnIP: Integer
|
2480
|
+
# @param LastUpdateTime: 设备最后更新时间
|
2481
|
+
# @type LastUpdateTime: Integer
|
2482
|
+
# @param LoraDevEui: LoRa设备的dev eui
|
2483
|
+
# @type LoraDevEui: String
|
2484
|
+
# @param LoraMoteType: LoRa设备的Mote type
|
2485
|
+
# @type LoraMoteType: Integer
|
2486
|
+
# @param FirstOnlineTime: 首次上线时间
|
2487
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2488
|
+
# @type FirstOnlineTime: Integer
|
2489
|
+
# @param LastOfflineTime: 最近下线时间
|
2490
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2491
|
+
# @type LastOfflineTime: Integer
|
2492
|
+
# @param CreateTime: 设备创建时间
|
2493
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2494
|
+
# @type CreateTime: Integer
|
2495
|
+
# @param LogLevel: 设备日志级别
|
2496
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2497
|
+
# @type LogLevel: Integer
|
2498
|
+
# @param CertState: 设备证书获取状态, 1 已获取过设备密钥,0 未获取过设备密钥
|
2499
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2500
|
+
# @type CertState: Integer
|
2501
|
+
# @param EnableState: 设备可用状态,0禁用,1启用
|
2502
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2503
|
+
# @type EnableState: Integer
|
2504
|
+
# @param Labels: 设备标签
|
2505
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2506
|
+
# @type Labels: Array
|
2507
|
+
# @param ClientIP: MQTT客户端IP地址
|
2508
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2509
|
+
# @type ClientIP: String
|
2510
|
+
# @param FirmwareUpdateTime: ota最后更新时间
|
2511
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2512
|
+
# @type FirmwareUpdateTime: Integer
|
2513
|
+
|
2514
|
+
attr_accessor :DeviceName, :Online, :LoginTime, :Version, :DeviceCert, :DevicePsk, :Tags, :DeviceType, :Imei, :Isp, :NbiotDeviceID, :ConnIP, :LastUpdateTime, :LoraDevEui, :LoraMoteType, :FirstOnlineTime, :LastOfflineTime, :CreateTime, :LogLevel, :CertState, :EnableState, :Labels, :ClientIP, :FirmwareUpdateTime
|
2515
|
+
|
2516
|
+
def initialize(devicename=nil, online=nil, logintime=nil, version=nil, devicecert=nil, devicepsk=nil, tags=nil, devicetype=nil, imei=nil, isp=nil, nbiotdeviceid=nil, connip=nil, lastupdatetime=nil, loradeveui=nil, loramotetype=nil, firstonlinetime=nil, lastofflinetime=nil, createtime=nil, loglevel=nil, certstate=nil, enablestate=nil, labels=nil, clientip=nil, firmwareupdatetime=nil)
|
2517
|
+
@DeviceName = devicename
|
2518
|
+
@Online = online
|
2519
|
+
@LoginTime = logintime
|
2520
|
+
@Version = version
|
2521
|
+
@DeviceCert = devicecert
|
2522
|
+
@DevicePsk = devicepsk
|
2523
|
+
@Tags = tags
|
2524
|
+
@DeviceType = devicetype
|
2525
|
+
@Imei = imei
|
2526
|
+
@Isp = isp
|
2527
|
+
@NbiotDeviceID = nbiotdeviceid
|
2528
|
+
@ConnIP = connip
|
2529
|
+
@LastUpdateTime = lastupdatetime
|
2530
|
+
@LoraDevEui = loradeveui
|
2531
|
+
@LoraMoteType = loramotetype
|
2532
|
+
@FirstOnlineTime = firstonlinetime
|
2533
|
+
@LastOfflineTime = lastofflinetime
|
2534
|
+
@CreateTime = createtime
|
2535
|
+
@LogLevel = loglevel
|
2536
|
+
@CertState = certstate
|
2537
|
+
@EnableState = enablestate
|
2538
|
+
@Labels = labels
|
2539
|
+
@ClientIP = clientip
|
2540
|
+
@FirmwareUpdateTime = firmwareupdatetime
|
2541
|
+
end
|
2542
|
+
|
2543
|
+
def deserialize(params)
|
2544
|
+
@DeviceName = params['DeviceName']
|
2545
|
+
@Online = params['Online']
|
2546
|
+
@LoginTime = params['LoginTime']
|
2547
|
+
@Version = params['Version']
|
2548
|
+
@DeviceCert = params['DeviceCert']
|
2549
|
+
@DevicePsk = params['DevicePsk']
|
2550
|
+
unless params['Tags'].nil?
|
2551
|
+
@Tags = []
|
2552
|
+
params['Tags'].each do |i|
|
2553
|
+
devicetag_tmp = DeviceTag.new
|
2554
|
+
devicetag_tmp.deserialize(i)
|
2555
|
+
@Tags << devicetag_tmp
|
2556
|
+
end
|
2557
|
+
end
|
2558
|
+
@DeviceType = params['DeviceType']
|
2559
|
+
@Imei = params['Imei']
|
2560
|
+
@Isp = params['Isp']
|
2561
|
+
@NbiotDeviceID = params['NbiotDeviceID']
|
2562
|
+
@ConnIP = params['ConnIP']
|
2563
|
+
@LastUpdateTime = params['LastUpdateTime']
|
2564
|
+
@LoraDevEui = params['LoraDevEui']
|
2565
|
+
@LoraMoteType = params['LoraMoteType']
|
2566
|
+
@FirstOnlineTime = params['FirstOnlineTime']
|
2567
|
+
@LastOfflineTime = params['LastOfflineTime']
|
2568
|
+
@CreateTime = params['CreateTime']
|
2569
|
+
@LogLevel = params['LogLevel']
|
2570
|
+
@CertState = params['CertState']
|
2571
|
+
@EnableState = params['EnableState']
|
2572
|
+
unless params['Labels'].nil?
|
2573
|
+
@Labels = []
|
2574
|
+
params['Labels'].each do |i|
|
2575
|
+
devicelabel_tmp = DeviceLabel.new
|
2576
|
+
devicelabel_tmp.deserialize(i)
|
2577
|
+
@Labels << devicelabel_tmp
|
2578
|
+
end
|
2579
|
+
end
|
2580
|
+
@ClientIP = params['ClientIP']
|
2581
|
+
@FirmwareUpdateTime = params['FirmwareUpdateTime']
|
2582
|
+
end
|
2583
|
+
end
|
2584
|
+
|
2585
|
+
# 设备标签
|
2586
|
+
class DeviceLabel < TencentCloud::Common::AbstractModel
|
2587
|
+
# @param Key: 标签标识
|
2588
|
+
# @type Key: String
|
2589
|
+
# @param Value: 标签值
|
2590
|
+
# @type Value: String
|
2591
|
+
|
2592
|
+
attr_accessor :Key, :Value
|
2593
|
+
|
2594
|
+
def initialize(key=nil, value=nil)
|
2595
|
+
@Key = key
|
2596
|
+
@Value = value
|
2597
|
+
end
|
2598
|
+
|
2599
|
+
def deserialize(params)
|
2600
|
+
@Key = params['Key']
|
2601
|
+
@Value = params['Value']
|
2602
|
+
end
|
2603
|
+
end
|
2604
|
+
|
2605
|
+
# 设备资源详细信息
|
2606
|
+
class DeviceResourceInfo < TencentCloud::Common::AbstractModel
|
2607
|
+
# @param ProductID: 产品ID
|
2608
|
+
# @type ProductID: String
|
2609
|
+
# @param ProductName: 产品名
|
2610
|
+
# @type ProductName: String
|
2611
|
+
# @param Name: 资源名称
|
2612
|
+
# @type Name: String
|
2613
|
+
# @param Md5: 资源文件md5
|
2614
|
+
# @type Md5: String
|
2615
|
+
# @param Size: 资源文件大小
|
2616
|
+
# @type Size: Integer
|
2617
|
+
# @param UpdateTime: 资源更新时间
|
2618
|
+
# @type UpdateTime: String
|
2619
|
+
# @param DeviceName: 设备名称
|
2620
|
+
# @type DeviceName: String
|
2621
|
+
# @param Status: 设备资源上传状态
|
2622
|
+
# @type Status: Integer
|
2623
|
+
# @param Percent: 设备资源上传百分比
|
2624
|
+
# @type Percent: Integer
|
2625
|
+
|
2626
|
+
attr_accessor :ProductID, :ProductName, :Name, :Md5, :Size, :UpdateTime, :DeviceName, :Status, :Percent
|
2627
|
+
|
2628
|
+
def initialize(productid=nil, productname=nil, name=nil, md5=nil, size=nil, updatetime=nil, devicename=nil, status=nil, percent=nil)
|
2629
|
+
@ProductID = productid
|
2630
|
+
@ProductName = productname
|
2631
|
+
@Name = name
|
2632
|
+
@Md5 = md5
|
2633
|
+
@Size = size
|
2634
|
+
@UpdateTime = updatetime
|
2635
|
+
@DeviceName = devicename
|
2636
|
+
@Status = status
|
2637
|
+
@Percent = percent
|
2638
|
+
end
|
2639
|
+
|
2640
|
+
def deserialize(params)
|
2641
|
+
@ProductID = params['ProductID']
|
2642
|
+
@ProductName = params['ProductName']
|
2643
|
+
@Name = params['Name']
|
2644
|
+
@Md5 = params['Md5']
|
2645
|
+
@Size = params['Size']
|
2646
|
+
@UpdateTime = params['UpdateTime']
|
2647
|
+
@DeviceName = params['DeviceName']
|
2648
|
+
@Status = params['Status']
|
2649
|
+
@Percent = params['Percent']
|
2650
|
+
end
|
2651
|
+
end
|
2652
|
+
|
2653
|
+
# 设备属性
|
2654
|
+
class DeviceTag < TencentCloud::Common::AbstractModel
|
2655
|
+
# @param Tag: 属性名称
|
2656
|
+
# @type Tag: String
|
2657
|
+
# @param Type: 属性值的类型,1 int,2 string
|
2658
|
+
# @type Type: Integer
|
2659
|
+
# @param Value: 属性的值
|
2660
|
+
# @type Value: String
|
2661
|
+
# @param Name: 属性描述名称
|
2662
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2663
|
+
# @type Name: String
|
2664
|
+
|
2665
|
+
attr_accessor :Tag, :Type, :Value, :Name
|
2666
|
+
|
2667
|
+
def initialize(tag=nil, type=nil, value=nil, name=nil)
|
2668
|
+
@Tag = tag
|
2669
|
+
@Type = type
|
2670
|
+
@Value = value
|
2671
|
+
@Name = name
|
2672
|
+
end
|
2673
|
+
|
2674
|
+
def deserialize(params)
|
2675
|
+
@Tag = params['Tag']
|
2676
|
+
@Type = params['Type']
|
2677
|
+
@Value = params['Value']
|
2678
|
+
@Name = params['Name']
|
2679
|
+
end
|
2680
|
+
end
|
2681
|
+
|
2682
|
+
# 设备固件更新状态
|
2683
|
+
class DeviceUpdateStatus < TencentCloud::Common::AbstractModel
|
2684
|
+
# @param DeviceName: 设备名
|
2685
|
+
# @type DeviceName: String
|
2686
|
+
# @param LastProcessTime: 最后处理时间
|
2687
|
+
# @type LastProcessTime: Integer
|
2688
|
+
# @param Status: 状态
|
2689
|
+
# @type Status: Integer
|
2690
|
+
# @param ErrMsg: 错误消息
|
2691
|
+
# @type ErrMsg: String
|
2692
|
+
# @param Retcode: 返回码
|
2693
|
+
# @type Retcode: Integer
|
2694
|
+
# @param DstVersion: 目标更新版本
|
2695
|
+
# @type DstVersion: String
|
2696
|
+
# @param Percent: 下载中状态时的下载进度
|
2697
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2698
|
+
# @type Percent: Integer
|
2699
|
+
# @param OriVersion: 原版本号
|
2700
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2701
|
+
# @type OriVersion: String
|
2702
|
+
# @param TaskId: 任务ID
|
2703
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2704
|
+
# @type TaskId: Integer
|
2705
|
+
|
2706
|
+
attr_accessor :DeviceName, :LastProcessTime, :Status, :ErrMsg, :Retcode, :DstVersion, :Percent, :OriVersion, :TaskId
|
2707
|
+
|
2708
|
+
def initialize(devicename=nil, lastprocesstime=nil, status=nil, errmsg=nil, retcode=nil, dstversion=nil, percent=nil, oriversion=nil, taskid=nil)
|
2709
|
+
@DeviceName = devicename
|
2710
|
+
@LastProcessTime = lastprocesstime
|
2711
|
+
@Status = status
|
2712
|
+
@ErrMsg = errmsg
|
2713
|
+
@Retcode = retcode
|
2714
|
+
@DstVersion = dstversion
|
2715
|
+
@Percent = percent
|
2716
|
+
@OriVersion = oriversion
|
2717
|
+
@TaskId = taskid
|
2718
|
+
end
|
2719
|
+
|
2720
|
+
def deserialize(params)
|
2721
|
+
@DeviceName = params['DeviceName']
|
2722
|
+
@LastProcessTime = params['LastProcessTime']
|
2723
|
+
@Status = params['Status']
|
2724
|
+
@ErrMsg = params['ErrMsg']
|
2725
|
+
@Retcode = params['Retcode']
|
2726
|
+
@DstVersion = params['DstVersion']
|
2727
|
+
@Percent = params['Percent']
|
2728
|
+
@OriVersion = params['OriVersion']
|
2729
|
+
@TaskId = params['TaskId']
|
2730
|
+
end
|
2731
|
+
end
|
2732
|
+
|
2733
|
+
# DisableTopicRule请求参数结构体
|
2734
|
+
class DisableTopicRuleRequest < TencentCloud::Common::AbstractModel
|
2735
|
+
# @param RuleName: 规则名称
|
2736
|
+
# @type RuleName: String
|
2737
|
+
|
2738
|
+
attr_accessor :RuleName
|
2739
|
+
|
2740
|
+
def initialize(rulename=nil)
|
2741
|
+
@RuleName = rulename
|
2742
|
+
end
|
2743
|
+
|
2744
|
+
def deserialize(params)
|
2745
|
+
@RuleName = params['RuleName']
|
2746
|
+
end
|
2747
|
+
end
|
2748
|
+
|
2749
|
+
# DisableTopicRule返回参数结构体
|
2750
|
+
class DisableTopicRuleResponse < TencentCloud::Common::AbstractModel
|
2751
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2752
|
+
# @type RequestId: String
|
2753
|
+
|
2754
|
+
attr_accessor :RequestId
|
2755
|
+
|
2756
|
+
def initialize(requestid=nil)
|
2757
|
+
@RequestId = requestid
|
2758
|
+
end
|
2759
|
+
|
2760
|
+
def deserialize(params)
|
2761
|
+
@RequestId = params['RequestId']
|
2762
|
+
end
|
2763
|
+
end
|
2764
|
+
|
2765
|
+
# DownloadDeviceResource请求参数结构体
|
2766
|
+
class DownloadDeviceResourceRequest < TencentCloud::Common::AbstractModel
|
2767
|
+
# @param ProductID: 产品ID
|
2768
|
+
# @type ProductID: String
|
2769
|
+
# @param Name: 资源名称
|
2770
|
+
# @type Name: String
|
2771
|
+
# @param DeviceName: 设备名称
|
2772
|
+
# @type DeviceName: String
|
2773
|
+
|
2774
|
+
attr_accessor :ProductID, :Name, :DeviceName
|
2775
|
+
|
2776
|
+
def initialize(productid=nil, name=nil, devicename=nil)
|
2777
|
+
@ProductID = productid
|
2778
|
+
@Name = name
|
2779
|
+
@DeviceName = devicename
|
2780
|
+
end
|
2781
|
+
|
2782
|
+
def deserialize(params)
|
2783
|
+
@ProductID = params['ProductID']
|
2784
|
+
@Name = params['Name']
|
2785
|
+
@DeviceName = params['DeviceName']
|
2786
|
+
end
|
2787
|
+
end
|
2788
|
+
|
2789
|
+
# DownloadDeviceResource返回参数结构体
|
2790
|
+
class DownloadDeviceResourceResponse < TencentCloud::Common::AbstractModel
|
2791
|
+
# @param Url: 设备资源的cos链接
|
2792
|
+
# @type Url: String
|
2793
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2794
|
+
# @type RequestId: String
|
2795
|
+
|
2796
|
+
attr_accessor :Url, :RequestId
|
2797
|
+
|
2798
|
+
def initialize(url=nil, requestid=nil)
|
2799
|
+
@Url = url
|
2800
|
+
@RequestId = requestid
|
2801
|
+
end
|
2802
|
+
|
2803
|
+
def deserialize(params)
|
2804
|
+
@Url = params['Url']
|
2805
|
+
@RequestId = params['RequestId']
|
2806
|
+
end
|
2807
|
+
end
|
2808
|
+
|
2809
|
+
# EditFirmware请求参数结构体
|
2810
|
+
class EditFirmwareRequest < TencentCloud::Common::AbstractModel
|
2811
|
+
# @param ProductId: 产品ID。
|
2812
|
+
# @type ProductId: String
|
2813
|
+
# @param FirmwareVersion: 固件版本号。
|
2814
|
+
# @type FirmwareVersion: String
|
2815
|
+
# @param FirmwareName: 固件名称。
|
2816
|
+
# @type FirmwareName: String
|
2817
|
+
# @param FirmwareDescription: 固件描述
|
2818
|
+
# @type FirmwareDescription: String
|
2819
|
+
|
2820
|
+
attr_accessor :ProductId, :FirmwareVersion, :FirmwareName, :FirmwareDescription
|
2821
|
+
|
2822
|
+
def initialize(productid=nil, firmwareversion=nil, firmwarename=nil, firmwaredescription=nil)
|
2823
|
+
@ProductId = productid
|
2824
|
+
@FirmwareVersion = firmwareversion
|
2825
|
+
@FirmwareName = firmwarename
|
2826
|
+
@FirmwareDescription = firmwaredescription
|
2827
|
+
end
|
2828
|
+
|
2829
|
+
def deserialize(params)
|
2830
|
+
@ProductId = params['ProductId']
|
2831
|
+
@FirmwareVersion = params['FirmwareVersion']
|
2832
|
+
@FirmwareName = params['FirmwareName']
|
2833
|
+
@FirmwareDescription = params['FirmwareDescription']
|
2834
|
+
end
|
2835
|
+
end
|
2836
|
+
|
2837
|
+
# EditFirmware返回参数结构体
|
2838
|
+
class EditFirmwareResponse < TencentCloud::Common::AbstractModel
|
2839
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2840
|
+
# @type RequestId: String
|
2841
|
+
|
2842
|
+
attr_accessor :RequestId
|
2843
|
+
|
2844
|
+
def initialize(requestid=nil)
|
2845
|
+
@RequestId = requestid
|
2846
|
+
end
|
2847
|
+
|
2848
|
+
def deserialize(params)
|
2849
|
+
@RequestId = params['RequestId']
|
2850
|
+
end
|
2851
|
+
end
|
2852
|
+
|
2853
|
+
# EnableTopicRule请求参数结构体
|
2854
|
+
class EnableTopicRuleRequest < TencentCloud::Common::AbstractModel
|
2855
|
+
# @param RuleName: 规则名称
|
2856
|
+
# @type RuleName: String
|
2857
|
+
|
2858
|
+
attr_accessor :RuleName
|
2859
|
+
|
2860
|
+
def initialize(rulename=nil)
|
2861
|
+
@RuleName = rulename
|
2862
|
+
end
|
2863
|
+
|
2864
|
+
def deserialize(params)
|
2865
|
+
@RuleName = params['RuleName']
|
2866
|
+
end
|
2867
|
+
end
|
2868
|
+
|
2869
|
+
# EnableTopicRule返回参数结构体
|
2870
|
+
class EnableTopicRuleResponse < TencentCloud::Common::AbstractModel
|
2871
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2872
|
+
# @type RequestId: String
|
2873
|
+
|
2874
|
+
attr_accessor :RequestId
|
2875
|
+
|
2876
|
+
def initialize(requestid=nil)
|
2877
|
+
@RequestId = requestid
|
2878
|
+
end
|
2879
|
+
|
2880
|
+
def deserialize(params)
|
2881
|
+
@RequestId = params['RequestId']
|
2882
|
+
end
|
2883
|
+
end
|
2884
|
+
|
2885
|
+
# 固件升级任务信息
|
2886
|
+
class FirmwareTaskInfo < TencentCloud::Common::AbstractModel
|
2887
|
+
# @param TaskId: 任务ID
|
2888
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2889
|
+
# @type TaskId: Integer
|
2890
|
+
# @param Status: 任务状态
|
2891
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2892
|
+
# @type Status: Integer
|
2893
|
+
# @param Type: 任务类型
|
2894
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2895
|
+
# @type Type: Integer
|
2896
|
+
# @param CreateTime: 任务创建时间
|
2897
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2898
|
+
# @type CreateTime: Integer
|
2899
|
+
|
2900
|
+
attr_accessor :TaskId, :Status, :Type, :CreateTime
|
2901
|
+
|
2902
|
+
def initialize(taskid=nil, status=nil, type=nil, createtime=nil)
|
2903
|
+
@TaskId = taskid
|
2904
|
+
@Status = status
|
2905
|
+
@Type = type
|
2906
|
+
@CreateTime = createtime
|
2907
|
+
end
|
2908
|
+
|
2909
|
+
def deserialize(params)
|
2910
|
+
@TaskId = params['TaskId']
|
2911
|
+
@Status = params['Status']
|
2912
|
+
@Type = params['Type']
|
2913
|
+
@CreateTime = params['CreateTime']
|
2914
|
+
end
|
2915
|
+
end
|
2916
|
+
|
2917
|
+
# GetCOSURL请求参数结构体
|
2918
|
+
class GetCOSURLRequest < TencentCloud::Common::AbstractModel
|
2919
|
+
# @param ProductId: 产品ID
|
2920
|
+
# @type ProductId: String
|
2921
|
+
# @param FirmwareVersion: 固件版本
|
2922
|
+
# @type FirmwareVersion: String
|
2923
|
+
# @param FileSize: 固件版本大小
|
2924
|
+
# @type FileSize: Integer
|
2925
|
+
|
2926
|
+
attr_accessor :ProductId, :FirmwareVersion, :FileSize
|
2927
|
+
|
2928
|
+
def initialize(productid=nil, firmwareversion=nil, filesize=nil)
|
2929
|
+
@ProductId = productid
|
2930
|
+
@FirmwareVersion = firmwareversion
|
2931
|
+
@FileSize = filesize
|
2932
|
+
end
|
2933
|
+
|
2934
|
+
def deserialize(params)
|
2935
|
+
@ProductId = params['ProductId']
|
2936
|
+
@FirmwareVersion = params['FirmwareVersion']
|
2937
|
+
@FileSize = params['FileSize']
|
2938
|
+
end
|
2939
|
+
end
|
2940
|
+
|
2941
|
+
# GetCOSURL返回参数结构体
|
2942
|
+
class GetCOSURLResponse < TencentCloud::Common::AbstractModel
|
2943
|
+
# @param Url: 固件URL
|
2944
|
+
# @type Url: String
|
2945
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2946
|
+
# @type RequestId: String
|
2947
|
+
|
2948
|
+
attr_accessor :Url, :RequestId
|
2949
|
+
|
2950
|
+
def initialize(url=nil, requestid=nil)
|
2951
|
+
@Url = url
|
2952
|
+
@RequestId = requestid
|
2953
|
+
end
|
2954
|
+
|
2955
|
+
def deserialize(params)
|
2956
|
+
@Url = params['Url']
|
2957
|
+
@RequestId = params['RequestId']
|
2958
|
+
end
|
2959
|
+
end
|
2960
|
+
|
2961
|
+
# GetUserResourceInfo请求参数结构体
|
2962
|
+
class GetUserResourceInfoRequest < TencentCloud::Common::AbstractModel
|
2963
|
+
|
2964
|
+
|
2965
|
+
def initialize()
|
2966
|
+
end
|
2967
|
+
|
2968
|
+
def deserialize(params)
|
2969
|
+
end
|
2970
|
+
end
|
2971
|
+
|
2972
|
+
# GetUserResourceInfo返回参数结构体
|
2973
|
+
class GetUserResourceInfoResponse < TencentCloud::Common::AbstractModel
|
2974
|
+
# @param UsedSize: 已使用的资源字节数
|
2975
|
+
# @type UsedSize: Integer
|
2976
|
+
# @param Limit: 可以使用资源的总大小
|
2977
|
+
# @type Limit: Integer
|
2978
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2979
|
+
# @type RequestId: String
|
2980
|
+
|
2981
|
+
attr_accessor :UsedSize, :Limit, :RequestId
|
2982
|
+
|
2983
|
+
def initialize(usedsize=nil, limit=nil, requestid=nil)
|
2984
|
+
@UsedSize = usedsize
|
2985
|
+
@Limit = limit
|
2986
|
+
@RequestId = requestid
|
2987
|
+
end
|
2988
|
+
|
2989
|
+
def deserialize(params)
|
2990
|
+
@UsedSize = params['UsedSize']
|
2991
|
+
@Limit = params['Limit']
|
2992
|
+
@RequestId = params['RequestId']
|
2993
|
+
end
|
2994
|
+
end
|
2995
|
+
|
2996
|
+
# ListLogPayload请求参数结构体
|
2997
|
+
class ListLogPayloadRequest < TencentCloud::Common::AbstractModel
|
2998
|
+
# @param MinTime: 日志开始时间,毫秒级时间戳
|
2999
|
+
# @type MinTime: Integer
|
3000
|
+
# @param MaxTime: 日志结束时间,毫秒级时间戳
|
3001
|
+
# @type MaxTime: Integer
|
3002
|
+
# @param Keywords: 查询关键字,可以同时支持键值查询和文本查询,例如,查询某key的值为value,并且包含某word的日志,该参数为:key:value word。键值或文本可以包含多个,以空格隔开。其中可以索引的key比如:RequestID、ProductID、DeviceName等。
|
3003
|
+
# 一个典型的查询示例:ProductID:ABCDE12345 DeviceName:test publish
|
3004
|
+
# @type Keywords: String
|
3005
|
+
# @param Context: 日志检索上下文
|
3006
|
+
# @type Context: String
|
3007
|
+
# @param MaxNum: 日志最大条数
|
3008
|
+
# @type MaxNum: Integer
|
3009
|
+
|
3010
|
+
attr_accessor :MinTime, :MaxTime, :Keywords, :Context, :MaxNum
|
3011
|
+
|
3012
|
+
def initialize(mintime=nil, maxtime=nil, keywords=nil, context=nil, maxnum=nil)
|
3013
|
+
@MinTime = mintime
|
3014
|
+
@MaxTime = maxtime
|
3015
|
+
@Keywords = keywords
|
3016
|
+
@Context = context
|
3017
|
+
@MaxNum = maxnum
|
3018
|
+
end
|
3019
|
+
|
3020
|
+
def deserialize(params)
|
3021
|
+
@MinTime = params['MinTime']
|
3022
|
+
@MaxTime = params['MaxTime']
|
3023
|
+
@Keywords = params['Keywords']
|
3024
|
+
@Context = params['Context']
|
3025
|
+
@MaxNum = params['MaxNum']
|
3026
|
+
end
|
3027
|
+
end
|
3028
|
+
|
3029
|
+
# ListLogPayload返回参数结构体
|
3030
|
+
class ListLogPayloadResponse < TencentCloud::Common::AbstractModel
|
3031
|
+
# @param Context: 日志上下文
|
3032
|
+
# @type Context: String
|
3033
|
+
# @param Listover: 是否还有日志,如有仍有日志,下次查询的请求带上当前请求返回的Context
|
3034
|
+
# @type Listover: Boolean
|
3035
|
+
# @param Results: 日志列表
|
3036
|
+
# @type Results: Array
|
3037
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3038
|
+
# @type RequestId: String
|
3039
|
+
|
3040
|
+
attr_accessor :Context, :Listover, :Results, :RequestId
|
3041
|
+
|
3042
|
+
def initialize(context=nil, listover=nil, results=nil, requestid=nil)
|
3043
|
+
@Context = context
|
3044
|
+
@Listover = listover
|
3045
|
+
@Results = results
|
3046
|
+
@RequestId = requestid
|
3047
|
+
end
|
3048
|
+
|
3049
|
+
def deserialize(params)
|
3050
|
+
@Context = params['Context']
|
3051
|
+
@Listover = params['Listover']
|
3052
|
+
unless params['Results'].nil?
|
3053
|
+
@Results = []
|
3054
|
+
params['Results'].each do |i|
|
3055
|
+
payloadlogitem_tmp = PayloadLogItem.new
|
3056
|
+
payloadlogitem_tmp.deserialize(i)
|
3057
|
+
@Results << payloadlogitem_tmp
|
3058
|
+
end
|
3059
|
+
end
|
3060
|
+
@RequestId = params['RequestId']
|
3061
|
+
end
|
3062
|
+
end
|
3063
|
+
|
3064
|
+
# ListLog请求参数结构体
|
3065
|
+
class ListLogRequest < TencentCloud::Common::AbstractModel
|
3066
|
+
# @param MinTime: 日志开始时间,毫秒级时间戳
|
3067
|
+
# @type MinTime: Integer
|
3068
|
+
# @param MaxTime: 日志结束时间,毫秒级时间戳
|
3069
|
+
# @type MaxTime: Integer
|
3070
|
+
# @param Keywords: 查询关键字,可以同时支持键值查询和文本查询,例如,查询某key的值为value,并且包含某word的日志,该参数为:key:value word。键值或文本可以包含多个,以空格隔开。其中可以索引的key包括:requestid、productid、devicename、scene、content。
|
3071
|
+
# 一个典型的查询示例:productid:ABCDE12345 devicename:test scene:SHADOW content:Device%20connect publish
|
3072
|
+
# @type Keywords: String
|
3073
|
+
# @param Context: 日志检索上下文
|
3074
|
+
# @type Context: String
|
3075
|
+
# @param MaxNum: 查询条数
|
3076
|
+
# @type MaxNum: Integer
|
3077
|
+
|
3078
|
+
attr_accessor :MinTime, :MaxTime, :Keywords, :Context, :MaxNum
|
3079
|
+
|
3080
|
+
def initialize(mintime=nil, maxtime=nil, keywords=nil, context=nil, maxnum=nil)
|
3081
|
+
@MinTime = mintime
|
3082
|
+
@MaxTime = maxtime
|
3083
|
+
@Keywords = keywords
|
3084
|
+
@Context = context
|
3085
|
+
@MaxNum = maxnum
|
3086
|
+
end
|
3087
|
+
|
3088
|
+
def deserialize(params)
|
3089
|
+
@MinTime = params['MinTime']
|
3090
|
+
@MaxTime = params['MaxTime']
|
3091
|
+
@Keywords = params['Keywords']
|
3092
|
+
@Context = params['Context']
|
3093
|
+
@MaxNum = params['MaxNum']
|
3094
|
+
end
|
3095
|
+
end
|
3096
|
+
|
3097
|
+
# ListLog返回参数结构体
|
3098
|
+
class ListLogResponse < TencentCloud::Common::AbstractModel
|
3099
|
+
# @param Context: 日志上下文
|
3100
|
+
# @type Context: String
|
3101
|
+
# @param Listover: 是否还有日志,如有仍有日志,下次查询的请求带上当前请求返回的Context
|
3102
|
+
# @type Listover: Boolean
|
3103
|
+
# @param Results: 日志列表
|
3104
|
+
# @type Results: Array
|
3105
|
+
# @param TotalCount: 日志总条数
|
3106
|
+
# @type TotalCount: Integer
|
3107
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3108
|
+
# @type RequestId: String
|
3109
|
+
|
3110
|
+
attr_accessor :Context, :Listover, :Results, :TotalCount, :RequestId
|
3111
|
+
|
3112
|
+
def initialize(context=nil, listover=nil, results=nil, totalcount=nil, requestid=nil)
|
3113
|
+
@Context = context
|
3114
|
+
@Listover = listover
|
3115
|
+
@Results = results
|
3116
|
+
@TotalCount = totalcount
|
3117
|
+
@RequestId = requestid
|
3118
|
+
end
|
3119
|
+
|
3120
|
+
def deserialize(params)
|
3121
|
+
@Context = params['Context']
|
3122
|
+
@Listover = params['Listover']
|
3123
|
+
unless params['Results'].nil?
|
3124
|
+
@Results = []
|
3125
|
+
params['Results'].each do |i|
|
3126
|
+
clslogitem_tmp = CLSLogItem.new
|
3127
|
+
clslogitem_tmp.deserialize(i)
|
3128
|
+
@Results << clslogitem_tmp
|
3129
|
+
end
|
3130
|
+
end
|
3131
|
+
@TotalCount = params['TotalCount']
|
3132
|
+
@RequestId = params['RequestId']
|
3133
|
+
end
|
3134
|
+
end
|
3135
|
+
|
3136
|
+
# ListSDKLog请求参数结构体
|
3137
|
+
class ListSDKLogRequest < TencentCloud::Common::AbstractModel
|
3138
|
+
# @param MinTime: 日志开始时间
|
3139
|
+
# @type MinTime: Integer
|
3140
|
+
# @param MaxTime: 日志结束时间
|
3141
|
+
# @type MaxTime: Integer
|
3142
|
+
# @param Keywords: 查询关键字,可以同时支持键值查询和文本查询,
|
3143
|
+
# 例如,查询某key的值为value,并且包含某word的日志,该参数为:key:value word。
|
3144
|
+
# 键值或文本可以包含多个,以空格隔开。
|
3145
|
+
# 其中可以索引的key包括:productid、devicename、loglevel
|
3146
|
+
# 一个典型的查询示例:productid:7JK1G72JNE devicename:name publish loglevel:WARN一个典型的查询示例:productid:ABCDE12345 devicename:test scene:SHADOW publish
|
3147
|
+
# @type Keywords: String
|
3148
|
+
# @param Context: 日志检索上下文
|
3149
|
+
# @type Context: String
|
3150
|
+
# @param MaxNum: 查询条数
|
3151
|
+
# @type MaxNum: Integer
|
3152
|
+
|
3153
|
+
attr_accessor :MinTime, :MaxTime, :Keywords, :Context, :MaxNum
|
3154
|
+
|
3155
|
+
def initialize(mintime=nil, maxtime=nil, keywords=nil, context=nil, maxnum=nil)
|
3156
|
+
@MinTime = mintime
|
3157
|
+
@MaxTime = maxtime
|
3158
|
+
@Keywords = keywords
|
3159
|
+
@Context = context
|
3160
|
+
@MaxNum = maxnum
|
3161
|
+
end
|
3162
|
+
|
3163
|
+
def deserialize(params)
|
3164
|
+
@MinTime = params['MinTime']
|
3165
|
+
@MaxTime = params['MaxTime']
|
3166
|
+
@Keywords = params['Keywords']
|
3167
|
+
@Context = params['Context']
|
3168
|
+
@MaxNum = params['MaxNum']
|
3169
|
+
end
|
3170
|
+
end
|
3171
|
+
|
3172
|
+
# ListSDKLog返回参数结构体
|
3173
|
+
class ListSDKLogResponse < TencentCloud::Common::AbstractModel
|
3174
|
+
# @param Context: 日志检索上下文
|
3175
|
+
# @type Context: String
|
3176
|
+
# @param Listover: 是否还有日志,如有仍有日志,下次查询的请求带上当前请求返回的Context
|
3177
|
+
# @type Listover: Boolean
|
3178
|
+
# @param Results: 日志列表
|
3179
|
+
# @type Results: Array
|
3180
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3181
|
+
# @type RequestId: String
|
3182
|
+
|
3183
|
+
attr_accessor :Context, :Listover, :Results, :RequestId
|
3184
|
+
|
3185
|
+
def initialize(context=nil, listover=nil, results=nil, requestid=nil)
|
3186
|
+
@Context = context
|
3187
|
+
@Listover = listover
|
3188
|
+
@Results = results
|
3189
|
+
@RequestId = requestid
|
3190
|
+
end
|
3191
|
+
|
3192
|
+
def deserialize(params)
|
3193
|
+
@Context = params['Context']
|
3194
|
+
@Listover = params['Listover']
|
3195
|
+
unless params['Results'].nil?
|
3196
|
+
@Results = []
|
3197
|
+
params['Results'].each do |i|
|
3198
|
+
sdklogitem_tmp = SDKLogItem.new
|
3199
|
+
sdklogitem_tmp.deserialize(i)
|
3200
|
+
@Results << sdklogitem_tmp
|
3201
|
+
end
|
3202
|
+
end
|
3203
|
+
@RequestId = params['RequestId']
|
3204
|
+
end
|
3205
|
+
end
|
3206
|
+
|
3207
|
+
# 内容日志项
|
3208
|
+
class PayloadLogItem < TencentCloud::Common::AbstractModel
|
3209
|
+
# @param Uin: 账号id
|
3210
|
+
# @type Uin: String
|
3211
|
+
# @param ProductId: 产品id
|
3212
|
+
# @type ProductId: String
|
3213
|
+
# @param DeviceName: 设备名称
|
3214
|
+
# @type DeviceName: String
|
3215
|
+
# @param SrcType: 来源类型
|
3216
|
+
# @type SrcType: String
|
3217
|
+
# @param SrcName: 来源名称
|
3218
|
+
# @type SrcName: String
|
3219
|
+
# @param Topic: 消息topic
|
3220
|
+
# @type Topic: String
|
3221
|
+
# @param PayloadFormatType: 内容格式类型
|
3222
|
+
# @type PayloadFormatType: String
|
3223
|
+
# @param Payload: 内容信息
|
3224
|
+
# @type Payload: String
|
3225
|
+
# @param RequestId: 请求ID
|
3226
|
+
# @type RequestId: String
|
3227
|
+
# @param DateTime: 日期时间
|
3228
|
+
# @type DateTime: String
|
3229
|
+
|
3230
|
+
attr_accessor :Uin, :ProductId, :DeviceName, :SrcType, :SrcName, :Topic, :PayloadFormatType, :Payload, :RequestId, :DateTime
|
3231
|
+
|
3232
|
+
def initialize(uin=nil, productid=nil, devicename=nil, srctype=nil, srcname=nil, topic=nil, payloadformattype=nil, payload=nil, requestid=nil, datetime=nil)
|
3233
|
+
@Uin = uin
|
3234
|
+
@ProductId = productid
|
3235
|
+
@DeviceName = devicename
|
3236
|
+
@SrcType = srctype
|
3237
|
+
@SrcName = srcname
|
3238
|
+
@Topic = topic
|
3239
|
+
@PayloadFormatType = payloadformattype
|
3240
|
+
@Payload = payload
|
3241
|
+
@RequestId = requestid
|
3242
|
+
@DateTime = datetime
|
3243
|
+
end
|
3244
|
+
|
3245
|
+
def deserialize(params)
|
3246
|
+
@Uin = params['Uin']
|
3247
|
+
@ProductId = params['ProductId']
|
3248
|
+
@DeviceName = params['DeviceName']
|
3249
|
+
@SrcType = params['SrcType']
|
3250
|
+
@SrcName = params['SrcName']
|
3251
|
+
@Topic = params['Topic']
|
3252
|
+
@PayloadFormatType = params['PayloadFormatType']
|
3253
|
+
@Payload = params['Payload']
|
3254
|
+
@RequestId = params['RequestId']
|
3255
|
+
@DateTime = params['DateTime']
|
3256
|
+
end
|
3257
|
+
end
|
3258
|
+
|
3259
|
+
# 产品详细信息
|
3260
|
+
class ProductInfo < TencentCloud::Common::AbstractModel
|
3261
|
+
# @param ProductId: 产品ID
|
3262
|
+
# @type ProductId: String
|
3263
|
+
# @param ProductName: 产品名
|
3264
|
+
# @type ProductName: String
|
3265
|
+
# @param ProductMetadata: 产品元数据
|
3266
|
+
# @type ProductMetadata: :class:`Tencentcloud::Iotcloud.v20210408.models.ProductMetadata`
|
3267
|
+
# @param ProductProperties: 产品属性
|
3268
|
+
# @type ProductProperties: :class:`Tencentcloud::Iotcloud.v20210408.models.ProductProperties`
|
3269
|
+
|
3270
|
+
attr_accessor :ProductId, :ProductName, :ProductMetadata, :ProductProperties
|
1029
3271
|
|
1030
|
-
def initialize(
|
1031
|
-
@
|
1032
|
-
@
|
3272
|
+
def initialize(productid=nil, productname=nil, productmetadata=nil, productproperties=nil)
|
3273
|
+
@ProductId = productid
|
3274
|
+
@ProductName = productname
|
3275
|
+
@ProductMetadata = productmetadata
|
3276
|
+
@ProductProperties = productproperties
|
1033
3277
|
end
|
1034
3278
|
|
1035
3279
|
def deserialize(params)
|
1036
|
-
@
|
1037
|
-
@
|
3280
|
+
@ProductId = params['ProductId']
|
3281
|
+
@ProductName = params['ProductName']
|
3282
|
+
unless params['ProductMetadata'].nil?
|
3283
|
+
@ProductMetadata = ProductMetadata.new
|
3284
|
+
@ProductMetadata.deserialize(params['ProductMetadata'])
|
3285
|
+
end
|
3286
|
+
unless params['ProductProperties'].nil?
|
3287
|
+
@ProductProperties = ProductProperties.new
|
3288
|
+
@ProductProperties.deserialize(params['ProductProperties'])
|
3289
|
+
end
|
1038
3290
|
end
|
1039
3291
|
end
|
1040
3292
|
|
1041
|
-
#
|
1042
|
-
class
|
1043
|
-
# @param
|
1044
|
-
# @type
|
1045
|
-
|
3293
|
+
# 产品元数据
|
3294
|
+
class ProductMetadata < TencentCloud::Common::AbstractModel
|
3295
|
+
# @param CreationDate: 产品创建时间
|
3296
|
+
# @type CreationDate: Integer
|
3297
|
+
|
3298
|
+
attr_accessor :CreationDate
|
3299
|
+
|
3300
|
+
def initialize(creationdate=nil)
|
3301
|
+
@CreationDate = creationdate
|
3302
|
+
end
|
3303
|
+
|
3304
|
+
def deserialize(params)
|
3305
|
+
@CreationDate = params['CreationDate']
|
3306
|
+
end
|
3307
|
+
end
|
3308
|
+
|
3309
|
+
# 产品属性
|
3310
|
+
class ProductProperties < TencentCloud::Common::AbstractModel
|
3311
|
+
# @param ProductDescription: 产品描述
|
3312
|
+
# @type ProductDescription: String
|
3313
|
+
# @param EncryptionType: 加密类型,1表示证书认证,2表示签名认证。如不填写,默认值是1
|
3314
|
+
# @type EncryptionType: String
|
3315
|
+
# @param Region: 产品所属区域,目前只支持广州(gz)
|
3316
|
+
# @type Region: String
|
3317
|
+
# @param ProductType: 产品类型,各个类型值代表的节点-类型如下:
|
3318
|
+
# 0 普通产品,2 NB-IoT产品,4 LoRa产品,3 LoRa网关产品,5 普通网关产品 默认值是0
|
3319
|
+
# @type ProductType: Integer
|
3320
|
+
# @param Format: 数据格式,取值为json或者custom,默认值是json
|
3321
|
+
# @type Format: String
|
3322
|
+
# @param Platform: 产品所属平台,默认值是0
|
3323
|
+
# @type Platform: String
|
3324
|
+
# @param Appeui: LoRa产品运营侧APPEUI,只有LoRa产品需要填写
|
3325
|
+
# @type Appeui: String
|
3326
|
+
# @param ModelId: 产品绑定的物模型ID,-1表示不绑定
|
3327
|
+
# @type ModelId: String
|
3328
|
+
# @param ModelName: 产品绑定的物模型名称
|
3329
|
+
# @type ModelName: String
|
3330
|
+
# @param ProductKey: 产品密钥,suite产品才会有
|
3331
|
+
# @type ProductKey: String
|
3332
|
+
# @param RegisterType: 动态注册类型 0-关闭, 1-预定义设备名 2-动态定义设备名
|
3333
|
+
# @type RegisterType: Integer
|
3334
|
+
# @param ProductSecret: 动态注册产品秘钥
|
3335
|
+
# @type ProductSecret: String
|
3336
|
+
# @param RegisterLimit: RegisterType为2时,设备动态创建的限制数量
|
3337
|
+
# @type RegisterLimit: Integer
|
3338
|
+
# @param OriginProductId: 划归的产品,展示为源产品ID,其余为空
|
3339
|
+
# @type OriginProductId: String
|
3340
|
+
# @param PrivateCAName: 私有CA名称
|
3341
|
+
# @type PrivateCAName: String
|
3342
|
+
# @param OriginUserId: 划归的产品,展示为源用户ID,其余为空
|
3343
|
+
# @type OriginUserId: Integer
|
3344
|
+
|
3345
|
+
attr_accessor :ProductDescription, :EncryptionType, :Region, :ProductType, :Format, :Platform, :Appeui, :ModelId, :ModelName, :ProductKey, :RegisterType, :ProductSecret, :RegisterLimit, :OriginProductId, :PrivateCAName, :OriginUserId
|
3346
|
+
|
3347
|
+
def initialize(productdescription=nil, encryptiontype=nil, region=nil, producttype=nil, format=nil, platform=nil, appeui=nil, modelid=nil, modelname=nil, productkey=nil, registertype=nil, productsecret=nil, registerlimit=nil, originproductid=nil, privatecaname=nil, originuserid=nil)
|
3348
|
+
@ProductDescription = productdescription
|
3349
|
+
@EncryptionType = encryptiontype
|
3350
|
+
@Region = region
|
3351
|
+
@ProductType = producttype
|
3352
|
+
@Format = format
|
3353
|
+
@Platform = platform
|
3354
|
+
@Appeui = appeui
|
3355
|
+
@ModelId = modelid
|
3356
|
+
@ModelName = modelname
|
3357
|
+
@ProductKey = productkey
|
3358
|
+
@RegisterType = registertype
|
3359
|
+
@ProductSecret = productsecret
|
3360
|
+
@RegisterLimit = registerlimit
|
3361
|
+
@OriginProductId = originproductid
|
3362
|
+
@PrivateCAName = privatecaname
|
3363
|
+
@OriginUserId = originuserid
|
3364
|
+
end
|
3365
|
+
|
3366
|
+
def deserialize(params)
|
3367
|
+
@ProductDescription = params['ProductDescription']
|
3368
|
+
@EncryptionType = params['EncryptionType']
|
3369
|
+
@Region = params['Region']
|
3370
|
+
@ProductType = params['ProductType']
|
3371
|
+
@Format = params['Format']
|
3372
|
+
@Platform = params['Platform']
|
3373
|
+
@Appeui = params['Appeui']
|
3374
|
+
@ModelId = params['ModelId']
|
3375
|
+
@ModelName = params['ModelName']
|
3376
|
+
@ProductKey = params['ProductKey']
|
3377
|
+
@RegisterType = params['RegisterType']
|
3378
|
+
@ProductSecret = params['ProductSecret']
|
3379
|
+
@RegisterLimit = params['RegisterLimit']
|
3380
|
+
@OriginProductId = params['OriginProductId']
|
3381
|
+
@PrivateCAName = params['PrivateCAName']
|
3382
|
+
@OriginUserId = params['OriginUserId']
|
3383
|
+
end
|
3384
|
+
end
|
3385
|
+
|
3386
|
+
# 产品资源详细信息
|
3387
|
+
class ProductResourceInfo < TencentCloud::Common::AbstractModel
|
3388
|
+
# @param ProductID: 产品ID
|
3389
|
+
# @type ProductID: String
|
3390
|
+
# @param ProductName: 产品名
|
3391
|
+
# @type ProductName: String
|
3392
|
+
# @param Name: 资源名称
|
3393
|
+
# @type Name: String
|
3394
|
+
# @param Md5: 资源文件md5
|
3395
|
+
# @type Md5: String
|
3396
|
+
# @param Size: 资源文件大小
|
3397
|
+
# @type Size: Integer
|
3398
|
+
# @param Description: 资源文件描述
|
3399
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3400
|
+
# @type Description: String
|
3401
|
+
# @param CreateTime: 资源创建时间
|
3402
|
+
# @type CreateTime: String
|
3403
|
+
|
3404
|
+
attr_accessor :ProductID, :ProductName, :Name, :Md5, :Size, :Description, :CreateTime
|
3405
|
+
|
3406
|
+
def initialize(productid=nil, productname=nil, name=nil, md5=nil, size=nil, description=nil, createtime=nil)
|
3407
|
+
@ProductID = productid
|
3408
|
+
@ProductName = productname
|
3409
|
+
@Name = name
|
3410
|
+
@Md5 = md5
|
3411
|
+
@Size = size
|
3412
|
+
@Description = description
|
3413
|
+
@CreateTime = createtime
|
3414
|
+
end
|
3415
|
+
|
3416
|
+
def deserialize(params)
|
3417
|
+
@ProductID = params['ProductID']
|
3418
|
+
@ProductName = params['ProductName']
|
3419
|
+
@Name = params['Name']
|
3420
|
+
@Md5 = params['Md5']
|
3421
|
+
@Size = params['Size']
|
3422
|
+
@Description = params['Description']
|
3423
|
+
@CreateTime = params['CreateTime']
|
3424
|
+
end
|
3425
|
+
end
|
3426
|
+
|
3427
|
+
# 产品级任务详细信息
|
3428
|
+
class ProductTaskInfo < TencentCloud::Common::AbstractModel
|
3429
|
+
# @param Id: 任务ID
|
3430
|
+
# @type Id: Integer
|
3431
|
+
# @param Type: 任务类型 0-批量创建设备类型
|
1046
3432
|
# @type Type: Integer
|
1047
|
-
# @param
|
1048
|
-
# @type
|
1049
|
-
# @param
|
3433
|
+
# @param State: 任务状态 0-创建中 1-待执行 2-执行中 3-执行失败 4-子任务部分失败 5-执行成功
|
3434
|
+
# @type State: Integer
|
3435
|
+
# @param ParametersType: 任务参数类型 cosfile-文件输入 random-随机生成
|
3436
|
+
# @type ParametersType: String
|
3437
|
+
# @param Parameters: 任务参数
|
3438
|
+
# @type Parameters: String
|
3439
|
+
# @param ResultType: 任务执行结果类型 cosfile-文件输出 errmsg-错误信息
|
1050
3440
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
1051
|
-
# @type
|
3441
|
+
# @type ResultType: String
|
3442
|
+
# @param Result: 任务执行结果
|
3443
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3444
|
+
# @type Result: String
|
3445
|
+
# @param BatchCount: 子任务总个数
|
3446
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3447
|
+
# @type BatchCount: Integer
|
3448
|
+
# @param BatchOffset: 子任务已执行个数
|
3449
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3450
|
+
# @type BatchOffset: Integer
|
3451
|
+
# @param CreateTime: 任务创建时间
|
3452
|
+
# @type CreateTime: Integer
|
3453
|
+
# @param UpdateTime: 任务更新时间
|
3454
|
+
# @type UpdateTime: Integer
|
3455
|
+
# @param CompleteTime: 任务完成时间
|
3456
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3457
|
+
# @type CompleteTime: Integer
|
1052
3458
|
|
1053
|
-
attr_accessor :
|
3459
|
+
attr_accessor :Id, :Type, :State, :ParametersType, :Parameters, :ResultType, :Result, :BatchCount, :BatchOffset, :CreateTime, :UpdateTime, :CompleteTime
|
1054
3460
|
|
1055
|
-
def initialize(
|
1056
|
-
@
|
3461
|
+
def initialize(id=nil, type=nil, state=nil, parameterstype=nil, parameters=nil, resulttype=nil, result=nil, batchcount=nil, batchoffset=nil, createtime=nil, updatetime=nil, completetime=nil)
|
3462
|
+
@Id = id
|
1057
3463
|
@Type = type
|
1058
|
-
@
|
1059
|
-
@
|
3464
|
+
@State = state
|
3465
|
+
@ParametersType = parameterstype
|
3466
|
+
@Parameters = parameters
|
3467
|
+
@ResultType = resulttype
|
3468
|
+
@Result = result
|
3469
|
+
@BatchCount = batchcount
|
3470
|
+
@BatchOffset = batchoffset
|
3471
|
+
@CreateTime = createtime
|
3472
|
+
@UpdateTime = updatetime
|
3473
|
+
@CompleteTime = completetime
|
1060
3474
|
end
|
1061
3475
|
|
1062
3476
|
def deserialize(params)
|
1063
|
-
@
|
3477
|
+
@Id = params['Id']
|
1064
3478
|
@Type = params['Type']
|
1065
|
-
@
|
1066
|
-
@
|
3479
|
+
@State = params['State']
|
3480
|
+
@ParametersType = params['ParametersType']
|
3481
|
+
@Parameters = params['Parameters']
|
3482
|
+
@ResultType = params['ResultType']
|
3483
|
+
@Result = params['Result']
|
3484
|
+
@BatchCount = params['BatchCount']
|
3485
|
+
@BatchOffset = params['BatchOffset']
|
3486
|
+
@CreateTime = params['CreateTime']
|
3487
|
+
@UpdateTime = params['UpdateTime']
|
3488
|
+
@CompleteTime = params['CompleteTime']
|
1067
3489
|
end
|
1068
3490
|
end
|
1069
3491
|
|
1070
|
-
#
|
1071
|
-
class
|
1072
|
-
# @param
|
1073
|
-
# @type
|
1074
|
-
# @param
|
1075
|
-
# @type
|
1076
|
-
# @param
|
1077
|
-
#
|
1078
|
-
# @
|
1079
|
-
# @
|
1080
|
-
# @type Context: String
|
1081
|
-
# @param MaxNum: 日志最大条数
|
1082
|
-
# @type MaxNum: Integer
|
3492
|
+
# PublishBroadcastMessage请求参数结构体
|
3493
|
+
class PublishBroadcastMessageRequest < TencentCloud::Common::AbstractModel
|
3494
|
+
# @param ProductId: 产品ID
|
3495
|
+
# @type ProductId: String
|
3496
|
+
# @param Payload: 消息内容
|
3497
|
+
# @type Payload: String
|
3498
|
+
# @param Qos: 消息质量等级
|
3499
|
+
# @type Qos: Integer
|
3500
|
+
# @param PayloadEncoding: Payload内容的编码格式,取值为base64或空。base64表示云端将收到的请求数据进行base64解码后下发到设备,空则直接将原始内容下发到设备
|
3501
|
+
# @type PayloadEncoding: String
|
1083
3502
|
|
1084
|
-
attr_accessor :
|
3503
|
+
attr_accessor :ProductId, :Payload, :Qos, :PayloadEncoding
|
1085
3504
|
|
1086
|
-
def initialize(
|
1087
|
-
@
|
1088
|
-
@
|
1089
|
-
@
|
1090
|
-
@
|
1091
|
-
|
3505
|
+
def initialize(productid=nil, payload=nil, qos=nil, payloadencoding=nil)
|
3506
|
+
@ProductId = productid
|
3507
|
+
@Payload = payload
|
3508
|
+
@Qos = qos
|
3509
|
+
@PayloadEncoding = payloadencoding
|
3510
|
+
end
|
3511
|
+
|
3512
|
+
def deserialize(params)
|
3513
|
+
@ProductId = params['ProductId']
|
3514
|
+
@Payload = params['Payload']
|
3515
|
+
@Qos = params['Qos']
|
3516
|
+
@PayloadEncoding = params['PayloadEncoding']
|
3517
|
+
end
|
3518
|
+
end
|
3519
|
+
|
3520
|
+
# PublishBroadcastMessage返回参数结构体
|
3521
|
+
class PublishBroadcastMessageResponse < TencentCloud::Common::AbstractModel
|
3522
|
+
# @param TaskId: 广播消息任务ID
|
3523
|
+
# @type TaskId: Integer
|
3524
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3525
|
+
# @type RequestId: String
|
3526
|
+
|
3527
|
+
attr_accessor :TaskId, :RequestId
|
3528
|
+
|
3529
|
+
def initialize(taskid=nil, requestid=nil)
|
3530
|
+
@TaskId = taskid
|
3531
|
+
@RequestId = requestid
|
3532
|
+
end
|
3533
|
+
|
3534
|
+
def deserialize(params)
|
3535
|
+
@TaskId = params['TaskId']
|
3536
|
+
@RequestId = params['RequestId']
|
3537
|
+
end
|
3538
|
+
end
|
3539
|
+
|
3540
|
+
# PublishMessage请求参数结构体
|
3541
|
+
class PublishMessageRequest < TencentCloud::Common::AbstractModel
|
3542
|
+
# @param Topic: 消息发往的主题。命名规则:${ProductId}/${DeviceName}/[a-zA-Z0-9:_-]{1,128}
|
3543
|
+
# @type Topic: String
|
3544
|
+
# @param Payload: 消息内容
|
3545
|
+
# @type Payload: String
|
3546
|
+
# @param ProductId: 产品ID
|
3547
|
+
# @type ProductId: String
|
3548
|
+
# @param DeviceName: 设备名称
|
3549
|
+
# @type DeviceName: String
|
3550
|
+
# @param Qos: 服务质量等级,取值为0或1
|
3551
|
+
# @type Qos: Integer
|
3552
|
+
# @param PayloadEncoding: Payload内容的编码格式,取值为base64或空。base64表示云端将收到的请求数据进行base64解码后下发到设备,空则直接将原始内容下发到设备
|
3553
|
+
# @type PayloadEncoding: String
|
3554
|
+
|
3555
|
+
attr_accessor :Topic, :Payload, :ProductId, :DeviceName, :Qos, :PayloadEncoding
|
3556
|
+
|
3557
|
+
def initialize(topic=nil, payload=nil, productid=nil, devicename=nil, qos=nil, payloadencoding=nil)
|
3558
|
+
@Topic = topic
|
3559
|
+
@Payload = payload
|
3560
|
+
@ProductId = productid
|
3561
|
+
@DeviceName = devicename
|
3562
|
+
@Qos = qos
|
3563
|
+
@PayloadEncoding = payloadencoding
|
1092
3564
|
end
|
1093
3565
|
|
1094
3566
|
def deserialize(params)
|
1095
|
-
@
|
1096
|
-
@
|
1097
|
-
@
|
1098
|
-
@
|
1099
|
-
@
|
3567
|
+
@Topic = params['Topic']
|
3568
|
+
@Payload = params['Payload']
|
3569
|
+
@ProductId = params['ProductId']
|
3570
|
+
@DeviceName = params['DeviceName']
|
3571
|
+
@Qos = params['Qos']
|
3572
|
+
@PayloadEncoding = params['PayloadEncoding']
|
1100
3573
|
end
|
1101
3574
|
end
|
1102
3575
|
|
1103
|
-
#
|
1104
|
-
class
|
1105
|
-
# @param Context: 日志上下文
|
1106
|
-
# @type Context: String
|
1107
|
-
# @param Listover: 是否还有日志,如有仍有日志,下次查询的请求带上当前请求返回的Context
|
1108
|
-
# @type Listover: Boolean
|
1109
|
-
# @param Results: 日志列表
|
1110
|
-
# @type Results: Array
|
3576
|
+
# PublishMessage返回参数结构体
|
3577
|
+
class PublishMessageResponse < TencentCloud::Common::AbstractModel
|
1111
3578
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1112
3579
|
# @type RequestId: String
|
1113
3580
|
|
1114
|
-
attr_accessor :
|
3581
|
+
attr_accessor :RequestId
|
1115
3582
|
|
1116
|
-
def initialize(
|
1117
|
-
@Context = context
|
1118
|
-
@Listover = listover
|
1119
|
-
@Results = results
|
3583
|
+
def initialize(requestid=nil)
|
1120
3584
|
@RequestId = requestid
|
1121
3585
|
end
|
1122
3586
|
|
1123
3587
|
def deserialize(params)
|
1124
|
-
@Context = params['Context']
|
1125
|
-
@Listover = params['Listover']
|
1126
|
-
unless params['Results'].nil?
|
1127
|
-
@Results = []
|
1128
|
-
params['Results'].each do |i|
|
1129
|
-
payloadlogitem_tmp = PayloadLogItem.new
|
1130
|
-
payloadlogitem_tmp.deserialize(i)
|
1131
|
-
@Results << payloadlogitem_tmp
|
1132
|
-
end
|
1133
|
-
end
|
1134
3588
|
@RequestId = params['RequestId']
|
1135
3589
|
end
|
1136
3590
|
end
|
1137
3591
|
|
1138
|
-
#
|
1139
|
-
class
|
1140
|
-
# @param
|
1141
|
-
# @type
|
1142
|
-
# @param
|
1143
|
-
# @type
|
1144
|
-
# @param
|
1145
|
-
#
|
1146
|
-
# @type Keywords: String
|
1147
|
-
# @param Context: 日志检索上下文
|
1148
|
-
# @type Context: String
|
1149
|
-
# @param MaxNum: 查询条数
|
1150
|
-
# @type MaxNum: Integer
|
3592
|
+
# PublishRRPCMessage请求参数结构体
|
3593
|
+
class PublishRRPCMessageRequest < TencentCloud::Common::AbstractModel
|
3594
|
+
# @param ProductId: 产品ID
|
3595
|
+
# @type ProductId: String
|
3596
|
+
# @param DeviceName: 设备名称
|
3597
|
+
# @type DeviceName: String
|
3598
|
+
# @param Payload: 消息内容,utf8编码
|
3599
|
+
# @type Payload: String
|
1151
3600
|
|
1152
|
-
attr_accessor :
|
3601
|
+
attr_accessor :ProductId, :DeviceName, :Payload
|
1153
3602
|
|
1154
|
-
def initialize(
|
1155
|
-
@
|
1156
|
-
@
|
1157
|
-
@
|
1158
|
-
@Context = context
|
1159
|
-
@MaxNum = maxnum
|
3603
|
+
def initialize(productid=nil, devicename=nil, payload=nil)
|
3604
|
+
@ProductId = productid
|
3605
|
+
@DeviceName = devicename
|
3606
|
+
@Payload = payload
|
1160
3607
|
end
|
1161
3608
|
|
1162
3609
|
def deserialize(params)
|
1163
|
-
@
|
1164
|
-
@
|
1165
|
-
@
|
1166
|
-
@Context = params['Context']
|
1167
|
-
@MaxNum = params['MaxNum']
|
3610
|
+
@ProductId = params['ProductId']
|
3611
|
+
@DeviceName = params['DeviceName']
|
3612
|
+
@Payload = params['Payload']
|
1168
3613
|
end
|
1169
3614
|
end
|
1170
3615
|
|
1171
|
-
#
|
1172
|
-
class
|
1173
|
-
# @param
|
1174
|
-
# @type
|
1175
|
-
# @param
|
1176
|
-
# @type
|
1177
|
-
# @param Results: 日志列表
|
1178
|
-
# @type Results: Array
|
1179
|
-
# @param TotalCount: 日志总条数
|
1180
|
-
# @type TotalCount: Integer
|
3616
|
+
# PublishRRPCMessage返回参数结构体
|
3617
|
+
class PublishRRPCMessageResponse < TencentCloud::Common::AbstractModel
|
3618
|
+
# @param MessageId: RRPC消息ID
|
3619
|
+
# @type MessageId: Integer
|
3620
|
+
# @param PayloadBase64: 设备回复的消息内容,采用base64编码
|
3621
|
+
# @type PayloadBase64: String
|
1181
3622
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1182
3623
|
# @type RequestId: String
|
1183
3624
|
|
1184
|
-
attr_accessor :
|
3625
|
+
attr_accessor :MessageId, :PayloadBase64, :RequestId
|
1185
3626
|
|
1186
|
-
def initialize(
|
1187
|
-
@
|
1188
|
-
@
|
1189
|
-
@Results = results
|
1190
|
-
@TotalCount = totalcount
|
3627
|
+
def initialize(messageid=nil, payloadbase64=nil, requestid=nil)
|
3628
|
+
@MessageId = messageid
|
3629
|
+
@PayloadBase64 = payloadbase64
|
1191
3630
|
@RequestId = requestid
|
1192
3631
|
end
|
1193
3632
|
|
1194
3633
|
def deserialize(params)
|
1195
|
-
@
|
1196
|
-
@
|
1197
|
-
unless params['Results'].nil?
|
1198
|
-
@Results = []
|
1199
|
-
params['Results'].each do |i|
|
1200
|
-
clslogitem_tmp = CLSLogItem.new
|
1201
|
-
clslogitem_tmp.deserialize(i)
|
1202
|
-
@Results << clslogitem_tmp
|
1203
|
-
end
|
1204
|
-
end
|
1205
|
-
@TotalCount = params['TotalCount']
|
3634
|
+
@MessageId = params['MessageId']
|
3635
|
+
@PayloadBase64 = params['PayloadBase64']
|
1206
3636
|
@RequestId = params['RequestId']
|
1207
3637
|
end
|
1208
3638
|
end
|
1209
3639
|
|
1210
|
-
#
|
1211
|
-
class
|
1212
|
-
# @param
|
1213
|
-
# @type
|
1214
|
-
# @param
|
1215
|
-
# @type
|
1216
|
-
# @param Keywords: 查询关键字,可以同时支持键值查询和文本查询,
|
1217
|
-
# 例如,查询某key的值为value,并且包含某word的日志,该参数为:key:value word。
|
1218
|
-
# 键值或文本可以包含多个,以空格隔开。
|
1219
|
-
# 其中可以索引的key包括:productid、devicename、loglevel
|
1220
|
-
# 一个典型的查询示例:productid:7JK1G72JNE devicename:name publish loglevel:WARN一个典型的查询示例:productid:ABCDE12345 devicename:test scene:SHADOW publish
|
1221
|
-
# @type Keywords: String
|
1222
|
-
# @param Context: 日志检索上下文
|
1223
|
-
# @type Context: String
|
1224
|
-
# @param MaxNum: 查询条数
|
1225
|
-
# @type MaxNum: Integer
|
3640
|
+
# ReplaceTopicRule请求参数结构体
|
3641
|
+
class ReplaceTopicRuleRequest < TencentCloud::Common::AbstractModel
|
3642
|
+
# @param RuleName: 规则名称
|
3643
|
+
# @type RuleName: String
|
3644
|
+
# @param TopicRulePayload: 替换的规则包体
|
3645
|
+
# @type TopicRulePayload: :class:`Tencentcloud::Iotcloud.v20210408.models.TopicRulePayload`
|
1226
3646
|
|
1227
|
-
attr_accessor :
|
3647
|
+
attr_accessor :RuleName, :TopicRulePayload
|
1228
3648
|
|
1229
|
-
def initialize(
|
1230
|
-
@
|
1231
|
-
@
|
1232
|
-
@Keywords = keywords
|
1233
|
-
@Context = context
|
1234
|
-
@MaxNum = maxnum
|
3649
|
+
def initialize(rulename=nil, topicrulepayload=nil)
|
3650
|
+
@RuleName = rulename
|
3651
|
+
@TopicRulePayload = topicrulepayload
|
1235
3652
|
end
|
1236
3653
|
|
1237
3654
|
def deserialize(params)
|
1238
|
-
@
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
3655
|
+
@RuleName = params['RuleName']
|
3656
|
+
unless params['TopicRulePayload'].nil?
|
3657
|
+
@TopicRulePayload = TopicRulePayload.new
|
3658
|
+
@TopicRulePayload.deserialize(params['TopicRulePayload'])
|
3659
|
+
end
|
1243
3660
|
end
|
1244
3661
|
end
|
1245
3662
|
|
1246
|
-
#
|
1247
|
-
class
|
1248
|
-
# @param Context: 日志检索上下文
|
1249
|
-
# @type Context: String
|
1250
|
-
# @param Listover: 是否还有日志,如有仍有日志,下次查询的请求带上当前请求返回的Context
|
1251
|
-
# @type Listover: Boolean
|
1252
|
-
# @param Results: 日志列表
|
1253
|
-
# @type Results: Array
|
3663
|
+
# ReplaceTopicRule返回参数结构体
|
3664
|
+
class ReplaceTopicRuleResponse < TencentCloud::Common::AbstractModel
|
1254
3665
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1255
3666
|
# @type RequestId: String
|
1256
3667
|
|
1257
|
-
attr_accessor :
|
3668
|
+
attr_accessor :RequestId
|
1258
3669
|
|
1259
|
-
def initialize(
|
1260
|
-
@Context = context
|
1261
|
-
@Listover = listover
|
1262
|
-
@Results = results
|
3670
|
+
def initialize(requestid=nil)
|
1263
3671
|
@RequestId = requestid
|
1264
3672
|
end
|
1265
3673
|
|
1266
3674
|
def deserialize(params)
|
1267
|
-
@Context = params['Context']
|
1268
|
-
@Listover = params['Listover']
|
1269
|
-
unless params['Results'].nil?
|
1270
|
-
@Results = []
|
1271
|
-
params['Results'].each do |i|
|
1272
|
-
sdklogitem_tmp = SDKLogItem.new
|
1273
|
-
sdklogitem_tmp.deserialize(i)
|
1274
|
-
@Results << sdklogitem_tmp
|
1275
|
-
end
|
1276
|
-
end
|
1277
3675
|
@RequestId = params['RequestId']
|
1278
3676
|
end
|
1279
3677
|
end
|
1280
3678
|
|
1281
|
-
#
|
1282
|
-
class
|
1283
|
-
# @param
|
1284
|
-
# @type Uin: String
|
1285
|
-
# @param ProductId: 产品id
|
1286
|
-
# @type ProductId: String
|
1287
|
-
# @param DeviceName: 设备名称
|
3679
|
+
# 重置设备状态结果
|
3680
|
+
class ResetDeviceResult < TencentCloud::Common::AbstractModel
|
3681
|
+
# @param DeviceName: 设备名
|
1288
3682
|
# @type DeviceName: String
|
1289
|
-
# @param
|
1290
|
-
# @type
|
1291
|
-
# @param
|
1292
|
-
#
|
1293
|
-
# @
|
1294
|
-
# @type Topic: String
|
1295
|
-
# @param PayloadFormatType: 内容格式类型
|
1296
|
-
# @type PayloadFormatType: String
|
1297
|
-
# @param Payload: 内容信息
|
1298
|
-
# @type Payload: String
|
1299
|
-
# @param RequestId: 请求ID
|
1300
|
-
# @type RequestId: String
|
1301
|
-
# @param DateTime: 日期时间
|
1302
|
-
# @type DateTime: String
|
3683
|
+
# @param Success: 是否成功
|
3684
|
+
# @type Success: Boolean
|
3685
|
+
# @param Reason: 失败原因
|
3686
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3687
|
+
# @type Reason: String
|
1303
3688
|
|
1304
|
-
attr_accessor :
|
3689
|
+
attr_accessor :DeviceName, :Success, :Reason
|
1305
3690
|
|
1306
|
-
def initialize(
|
1307
|
-
@Uin = uin
|
1308
|
-
@ProductId = productid
|
3691
|
+
def initialize(devicename=nil, success=nil, reason=nil)
|
1309
3692
|
@DeviceName = devicename
|
1310
|
-
@
|
1311
|
-
@
|
1312
|
-
@Topic = topic
|
1313
|
-
@PayloadFormatType = payloadformattype
|
1314
|
-
@Payload = payload
|
1315
|
-
@RequestId = requestid
|
1316
|
-
@DateTime = datetime
|
3693
|
+
@Success = success
|
3694
|
+
@Reason = reason
|
1317
3695
|
end
|
1318
3696
|
|
1319
3697
|
def deserialize(params)
|
1320
|
-
@Uin = params['Uin']
|
1321
|
-
@ProductId = params['ProductId']
|
1322
3698
|
@DeviceName = params['DeviceName']
|
1323
|
-
@
|
1324
|
-
@
|
1325
|
-
@Topic = params['Topic']
|
1326
|
-
@PayloadFormatType = params['PayloadFormatType']
|
1327
|
-
@Payload = params['Payload']
|
1328
|
-
@RequestId = params['RequestId']
|
1329
|
-
@DateTime = params['DateTime']
|
3699
|
+
@Success = params['Success']
|
3700
|
+
@Reason = params['Reason']
|
1330
3701
|
end
|
1331
3702
|
end
|
1332
3703
|
|
1333
|
-
#
|
1334
|
-
class
|
1335
|
-
# @param
|
1336
|
-
# @type
|
3704
|
+
# ResetDeviceState请求参数结构体
|
3705
|
+
class ResetDeviceStateRequest < TencentCloud::Common::AbstractModel
|
3706
|
+
# @param ProductId: 产品ID
|
3707
|
+
# @type ProductId: String
|
3708
|
+
# @param DeviceNames: 设备名称
|
3709
|
+
# @type DeviceNames: Array
|
1337
3710
|
|
1338
|
-
attr_accessor :
|
3711
|
+
attr_accessor :ProductId, :DeviceNames
|
1339
3712
|
|
1340
|
-
def initialize(
|
1341
|
-
@
|
3713
|
+
def initialize(productid=nil, devicenames=nil)
|
3714
|
+
@ProductId = productid
|
3715
|
+
@DeviceNames = devicenames
|
1342
3716
|
end
|
1343
3717
|
|
1344
3718
|
def deserialize(params)
|
1345
|
-
@
|
3719
|
+
@ProductId = params['ProductId']
|
3720
|
+
@DeviceNames = params['DeviceNames']
|
1346
3721
|
end
|
1347
3722
|
end
|
1348
3723
|
|
1349
|
-
#
|
1350
|
-
class
|
1351
|
-
# @param
|
1352
|
-
# @type
|
1353
|
-
# @param
|
1354
|
-
# @type
|
1355
|
-
# @param
|
1356
|
-
# @type
|
1357
|
-
# @param ProductType: 产品类型,各个类型值代表的节点-类型如下:
|
1358
|
-
# 0 普通产品,2 NB-IoT产品,4 LoRa产品,3 LoRa网关产品,5 普通网关产品 默认值是0
|
1359
|
-
# @type ProductType: Integer
|
1360
|
-
# @param Format: 数据格式,取值为json或者custom,默认值是json
|
1361
|
-
# @type Format: String
|
1362
|
-
# @param Platform: 产品所属平台,默认值是0
|
1363
|
-
# @type Platform: String
|
1364
|
-
# @param Appeui: LoRa产品运营侧APPEUI,只有LoRa产品需要填写
|
1365
|
-
# @type Appeui: String
|
1366
|
-
# @param ModelId: 产品绑定的物模型ID,-1表示不绑定
|
1367
|
-
# @type ModelId: String
|
1368
|
-
# @param ModelName: 产品绑定的物模型名称
|
1369
|
-
# @type ModelName: String
|
1370
|
-
# @param ProductKey: 产品密钥,suite产品才会有
|
1371
|
-
# @type ProductKey: String
|
1372
|
-
# @param RegisterType: 动态注册类型 0-关闭, 1-预定义设备名 2-动态定义设备名
|
1373
|
-
# @type RegisterType: Integer
|
1374
|
-
# @param ProductSecret: 动态注册产品秘钥
|
1375
|
-
# @type ProductSecret: String
|
1376
|
-
# @param RegisterLimit: RegisterType为2时,设备动态创建的限制数量
|
1377
|
-
# @type RegisterLimit: Integer
|
1378
|
-
# @param OriginProductId: 划归的产品,展示为源产品ID,其余为空
|
1379
|
-
# @type OriginProductId: String
|
1380
|
-
# @param PrivateCAName: 私有CA名称
|
1381
|
-
# @type PrivateCAName: String
|
1382
|
-
# @param OriginUserId: 划归的产品,展示为源用户ID,其余为空
|
1383
|
-
# @type OriginUserId: Integer
|
3724
|
+
# ResetDeviceState返回参数结构体
|
3725
|
+
class ResetDeviceStateResponse < TencentCloud::Common::AbstractModel
|
3726
|
+
# @param SuccessCount: 批量重置设备成功数
|
3727
|
+
# @type SuccessCount: Integer
|
3728
|
+
# @param ResetDeviceResults: 批量重置设备结果
|
3729
|
+
# @type ResetDeviceResults: Array
|
3730
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3731
|
+
# @type RequestId: String
|
1384
3732
|
|
1385
|
-
attr_accessor :
|
3733
|
+
attr_accessor :SuccessCount, :ResetDeviceResults, :RequestId
|
1386
3734
|
|
1387
|
-
def initialize(
|
1388
|
-
@
|
1389
|
-
@
|
1390
|
-
@
|
1391
|
-
@ProductType = producttype
|
1392
|
-
@Format = format
|
1393
|
-
@Platform = platform
|
1394
|
-
@Appeui = appeui
|
1395
|
-
@ModelId = modelid
|
1396
|
-
@ModelName = modelname
|
1397
|
-
@ProductKey = productkey
|
1398
|
-
@RegisterType = registertype
|
1399
|
-
@ProductSecret = productsecret
|
1400
|
-
@RegisterLimit = registerlimit
|
1401
|
-
@OriginProductId = originproductid
|
1402
|
-
@PrivateCAName = privatecaname
|
1403
|
-
@OriginUserId = originuserid
|
3735
|
+
def initialize(successcount=nil, resetdeviceresults=nil, requestid=nil)
|
3736
|
+
@SuccessCount = successcount
|
3737
|
+
@ResetDeviceResults = resetdeviceresults
|
3738
|
+
@RequestId = requestid
|
1404
3739
|
end
|
1405
3740
|
|
1406
3741
|
def deserialize(params)
|
1407
|
-
@
|
1408
|
-
|
1409
|
-
|
1410
|
-
|
1411
|
-
|
1412
|
-
|
1413
|
-
|
1414
|
-
|
1415
|
-
|
1416
|
-
@
|
1417
|
-
@RegisterType = params['RegisterType']
|
1418
|
-
@ProductSecret = params['ProductSecret']
|
1419
|
-
@RegisterLimit = params['RegisterLimit']
|
1420
|
-
@OriginProductId = params['OriginProductId']
|
1421
|
-
@PrivateCAName = params['PrivateCAName']
|
1422
|
-
@OriginUserId = params['OriginUserId']
|
3742
|
+
@SuccessCount = params['SuccessCount']
|
3743
|
+
unless params['ResetDeviceResults'].nil?
|
3744
|
+
@ResetDeviceResults = []
|
3745
|
+
params['ResetDeviceResults'].each do |i|
|
3746
|
+
resetdeviceresult_tmp = ResetDeviceResult.new
|
3747
|
+
resetdeviceresult_tmp.deserialize(i)
|
3748
|
+
@ResetDeviceResults << resetdeviceresult_tmp
|
3749
|
+
end
|
3750
|
+
end
|
3751
|
+
@RequestId = params['RequestId']
|
1423
3752
|
end
|
1424
3753
|
end
|
1425
3754
|
|
1426
|
-
#
|
1427
|
-
class
|
3755
|
+
# RetryDeviceFirmwareTask请求参数结构体
|
3756
|
+
class RetryDeviceFirmwareTaskRequest < TencentCloud::Common::AbstractModel
|
1428
3757
|
# @param ProductId: 产品ID
|
1429
3758
|
# @type ProductId: String
|
1430
|
-
# @param
|
1431
|
-
# @type
|
1432
|
-
# @param
|
1433
|
-
# @type
|
1434
|
-
# @param
|
1435
|
-
# @type
|
3759
|
+
# @param DeviceName: 设备名称
|
3760
|
+
# @type DeviceName: String
|
3761
|
+
# @param FirmwareVersion: 固件版本号
|
3762
|
+
# @type FirmwareVersion: String
|
3763
|
+
# @param TaskId: 固件升级任务ID
|
3764
|
+
# @type TaskId: Integer
|
1436
3765
|
|
1437
|
-
attr_accessor :ProductId, :
|
3766
|
+
attr_accessor :ProductId, :DeviceName, :FirmwareVersion, :TaskId
|
1438
3767
|
|
1439
|
-
def initialize(productid=nil,
|
3768
|
+
def initialize(productid=nil, devicename=nil, firmwareversion=nil, taskid=nil)
|
1440
3769
|
@ProductId = productid
|
1441
|
-
@
|
1442
|
-
@
|
1443
|
-
@
|
3770
|
+
@DeviceName = devicename
|
3771
|
+
@FirmwareVersion = firmwareversion
|
3772
|
+
@TaskId = taskid
|
1444
3773
|
end
|
1445
3774
|
|
1446
3775
|
def deserialize(params)
|
1447
3776
|
@ProductId = params['ProductId']
|
1448
|
-
@
|
1449
|
-
@
|
1450
|
-
@
|
3777
|
+
@DeviceName = params['DeviceName']
|
3778
|
+
@FirmwareVersion = params['FirmwareVersion']
|
3779
|
+
@TaskId = params['TaskId']
|
1451
3780
|
end
|
1452
3781
|
end
|
1453
3782
|
|
1454
|
-
#
|
1455
|
-
class
|
1456
|
-
# @param TaskId: 广播消息任务ID
|
1457
|
-
# @type TaskId: Integer
|
3783
|
+
# RetryDeviceFirmwareTask返回参数结构体
|
3784
|
+
class RetryDeviceFirmwareTaskResponse < TencentCloud::Common::AbstractModel
|
1458
3785
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1459
3786
|
# @type RequestId: String
|
1460
3787
|
|
1461
|
-
attr_accessor :
|
3788
|
+
attr_accessor :RequestId
|
1462
3789
|
|
1463
|
-
def initialize(
|
1464
|
-
@TaskId = taskid
|
3790
|
+
def initialize(requestid=nil)
|
1465
3791
|
@RequestId = requestid
|
1466
3792
|
end
|
1467
3793
|
|
1468
3794
|
def deserialize(params)
|
1469
|
-
@TaskId = params['TaskId']
|
1470
3795
|
@RequestId = params['RequestId']
|
1471
3796
|
end
|
1472
3797
|
end
|
@@ -1503,6 +3828,26 @@ module TencentCloud
|
|
1503
3828
|
end
|
1504
3829
|
end
|
1505
3830
|
|
3831
|
+
# 搜索关键词
|
3832
|
+
class SearchKeyword < TencentCloud::Common::AbstractModel
|
3833
|
+
# @param Key: 搜索条件的Key
|
3834
|
+
# @type Key: String
|
3835
|
+
# @param Value: 搜索条件的值
|
3836
|
+
# @type Value: String
|
3837
|
+
|
3838
|
+
attr_accessor :Key, :Value
|
3839
|
+
|
3840
|
+
def initialize(key=nil, value=nil)
|
3841
|
+
@Key = key
|
3842
|
+
@Value = value
|
3843
|
+
end
|
3844
|
+
|
3845
|
+
def deserialize(params)
|
3846
|
+
@Key = params['Key']
|
3847
|
+
@Value = params['Value']
|
3848
|
+
end
|
3849
|
+
end
|
3850
|
+
|
1506
3851
|
# SetProductsForbiddenStatus请求参数结构体
|
1507
3852
|
class SetProductsForbiddenStatusRequest < TencentCloud::Common::AbstractModel
|
1508
3853
|
# @param ProductId: 要设置禁用状态的产品列表
|
@@ -1539,6 +3884,193 @@ module TencentCloud
|
|
1539
3884
|
end
|
1540
3885
|
end
|
1541
3886
|
|
3887
|
+
# 状态统计信息
|
3888
|
+
class StatusStatistic < TencentCloud::Common::AbstractModel
|
3889
|
+
# @param Status: 任务状态
|
3890
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3891
|
+
# @type Status: Integer
|
3892
|
+
# @param Total: 统计总数
|
3893
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
3894
|
+
# @type Total: Integer
|
3895
|
+
|
3896
|
+
attr_accessor :Status, :Total
|
3897
|
+
|
3898
|
+
def initialize(status=nil, total=nil)
|
3899
|
+
@Status = status
|
3900
|
+
@Total = total
|
3901
|
+
end
|
3902
|
+
|
3903
|
+
def deserialize(params)
|
3904
|
+
@Status = params['Status']
|
3905
|
+
@Total = params['Total']
|
3906
|
+
end
|
3907
|
+
end
|
3908
|
+
|
3909
|
+
# 创建规则请求包体
|
3910
|
+
class TopicRulePayload < TencentCloud::Common::AbstractModel
|
3911
|
+
# @param Sql: 规则的SQL语句,如: SELECT * FROM 'pid/dname/event',然后对其进行base64编码,得:U0VMRUNUICogRlJPTSAncGlkL2RuYW1lL2V2ZW50Jw==
|
3912
|
+
# @type Sql: String
|
3913
|
+
# @param Actions: 行为的JSON字符串,大部分种类举例如下:
|
3914
|
+
# [
|
3915
|
+
# {
|
3916
|
+
# "republish": {
|
3917
|
+
# "topic": "TEST/test"
|
3918
|
+
# }
|
3919
|
+
# },
|
3920
|
+
# {
|
3921
|
+
# "forward": {
|
3922
|
+
# "api": "http://127.0.0.1:8080",
|
3923
|
+
# "token":"xxx"
|
3924
|
+
# }
|
3925
|
+
# },
|
3926
|
+
# {
|
3927
|
+
# "ckafka": {
|
3928
|
+
# "instance": {
|
3929
|
+
# "id": "ckafka-test",
|
3930
|
+
# "name": ""
|
3931
|
+
# },
|
3932
|
+
# "topic": {
|
3933
|
+
# "id": "topic-test",
|
3934
|
+
# "name": "test"
|
3935
|
+
# },
|
3936
|
+
# "region": "gz"
|
3937
|
+
# }
|
3938
|
+
# },
|
3939
|
+
# {
|
3940
|
+
# "cmqqueue": {
|
3941
|
+
# "queuename": "queue-test-TEST",
|
3942
|
+
# "region": "gz"
|
3943
|
+
# }
|
3944
|
+
# },
|
3945
|
+
# {
|
3946
|
+
# "mysql": {
|
3947
|
+
# "instanceid": "cdb-test",
|
3948
|
+
# "region": "gz",
|
3949
|
+
# "username": "test",
|
3950
|
+
# "userpwd": "*****",
|
3951
|
+
# "dbname": "d_mqtt",
|
3952
|
+
# "tablename": "t_test",
|
3953
|
+
# "fieldpairs": [
|
3954
|
+
# {
|
3955
|
+
# "field": "test",
|
3956
|
+
# "value": "test"
|
3957
|
+
# }
|
3958
|
+
# ],
|
3959
|
+
# "devicetype": "CUSTOM"
|
3960
|
+
# }
|
3961
|
+
# }
|
3962
|
+
# ]
|
3963
|
+
# @type Actions: String
|
3964
|
+
# @param Description: 规则描述
|
3965
|
+
# @type Description: String
|
3966
|
+
# @param RuleDisabled: 是否禁用规则
|
3967
|
+
# @type RuleDisabled: Boolean
|
3968
|
+
|
3969
|
+
attr_accessor :Sql, :Actions, :Description, :RuleDisabled
|
3970
|
+
|
3971
|
+
def initialize(sql=nil, actions=nil, description=nil, ruledisabled=nil)
|
3972
|
+
@Sql = sql
|
3973
|
+
@Actions = actions
|
3974
|
+
@Description = description
|
3975
|
+
@RuleDisabled = ruledisabled
|
3976
|
+
end
|
3977
|
+
|
3978
|
+
def deserialize(params)
|
3979
|
+
@Sql = params['Sql']
|
3980
|
+
@Actions = params['Actions']
|
3981
|
+
@Description = params['Description']
|
3982
|
+
@RuleDisabled = params['RuleDisabled']
|
3983
|
+
end
|
3984
|
+
end
|
3985
|
+
|
3986
|
+
# UnbindDevices请求参数结构体
|
3987
|
+
class UnbindDevicesRequest < TencentCloud::Common::AbstractModel
|
3988
|
+
# @param GatewayProductId: 网关设备的产品ID
|
3989
|
+
# @type GatewayProductId: String
|
3990
|
+
# @param GatewayDeviceName: 网关设备的设备名
|
3991
|
+
# @type GatewayDeviceName: String
|
3992
|
+
# @param ProductId: 产品ID
|
3993
|
+
# @type ProductId: String
|
3994
|
+
# @param DeviceNames: 多个设备名
|
3995
|
+
# @type DeviceNames: Array
|
3996
|
+
# @param Skey: 中兴CLAA设备的解绑需要Skey,普通设备不需要
|
3997
|
+
# @type Skey: String
|
3998
|
+
|
3999
|
+
attr_accessor :GatewayProductId, :GatewayDeviceName, :ProductId, :DeviceNames, :Skey
|
4000
|
+
|
4001
|
+
def initialize(gatewayproductid=nil, gatewaydevicename=nil, productid=nil, devicenames=nil, skey=nil)
|
4002
|
+
@GatewayProductId = gatewayproductid
|
4003
|
+
@GatewayDeviceName = gatewaydevicename
|
4004
|
+
@ProductId = productid
|
4005
|
+
@DeviceNames = devicenames
|
4006
|
+
@Skey = skey
|
4007
|
+
end
|
4008
|
+
|
4009
|
+
def deserialize(params)
|
4010
|
+
@GatewayProductId = params['GatewayProductId']
|
4011
|
+
@GatewayDeviceName = params['GatewayDeviceName']
|
4012
|
+
@ProductId = params['ProductId']
|
4013
|
+
@DeviceNames = params['DeviceNames']
|
4014
|
+
@Skey = params['Skey']
|
4015
|
+
end
|
4016
|
+
end
|
4017
|
+
|
4018
|
+
# UnbindDevices返回参数结构体
|
4019
|
+
class UnbindDevicesResponse < TencentCloud::Common::AbstractModel
|
4020
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4021
|
+
# @type RequestId: String
|
4022
|
+
|
4023
|
+
attr_accessor :RequestId
|
4024
|
+
|
4025
|
+
def initialize(requestid=nil)
|
4026
|
+
@RequestId = requestid
|
4027
|
+
end
|
4028
|
+
|
4029
|
+
def deserialize(params)
|
4030
|
+
@RequestId = params['RequestId']
|
4031
|
+
end
|
4032
|
+
end
|
4033
|
+
|
4034
|
+
# UpdateDeviceAvailableState请求参数结构体
|
4035
|
+
class UpdateDeviceAvailableStateRequest < TencentCloud::Common::AbstractModel
|
4036
|
+
# @param ProductId: 设备所属产品id
|
4037
|
+
# @type ProductId: String
|
4038
|
+
# @param DeviceName: 设备名称
|
4039
|
+
# @type DeviceName: String
|
4040
|
+
# @param EnableState: 要设置的设备状态,1为启用,0为禁用
|
4041
|
+
# @type EnableState: Integer
|
4042
|
+
|
4043
|
+
attr_accessor :ProductId, :DeviceName, :EnableState
|
4044
|
+
|
4045
|
+
def initialize(productid=nil, devicename=nil, enablestate=nil)
|
4046
|
+
@ProductId = productid
|
4047
|
+
@DeviceName = devicename
|
4048
|
+
@EnableState = enablestate
|
4049
|
+
end
|
4050
|
+
|
4051
|
+
def deserialize(params)
|
4052
|
+
@ProductId = params['ProductId']
|
4053
|
+
@DeviceName = params['DeviceName']
|
4054
|
+
@EnableState = params['EnableState']
|
4055
|
+
end
|
4056
|
+
end
|
4057
|
+
|
4058
|
+
# UpdateDeviceAvailableState返回参数结构体
|
4059
|
+
class UpdateDeviceAvailableStateResponse < TencentCloud::Common::AbstractModel
|
4060
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4061
|
+
# @type RequestId: String
|
4062
|
+
|
4063
|
+
attr_accessor :RequestId
|
4064
|
+
|
4065
|
+
def initialize(requestid=nil)
|
4066
|
+
@RequestId = requestid
|
4067
|
+
end
|
4068
|
+
|
4069
|
+
def deserialize(params)
|
4070
|
+
@RequestId = params['RequestId']
|
4071
|
+
end
|
4072
|
+
end
|
4073
|
+
|
1542
4074
|
# UpdateDeviceLogLevel请求参数结构体
|
1543
4075
|
class UpdateDeviceLogLevelRequest < TencentCloud::Common::AbstractModel
|
1544
4076
|
# @param ProductId: 产品ID
|
@@ -1619,6 +4151,54 @@ module TencentCloud
|
|
1619
4151
|
end
|
1620
4152
|
end
|
1621
4153
|
|
4154
|
+
# UpdateDeviceShadow请求参数结构体
|
4155
|
+
class UpdateDeviceShadowRequest < TencentCloud::Common::AbstractModel
|
4156
|
+
# @param ProductId: 产品ID
|
4157
|
+
# @type ProductId: String
|
4158
|
+
# @param DeviceName: 设备名称
|
4159
|
+
# @type DeviceName: String
|
4160
|
+
# @param State: 虚拟设备的状态,JSON字符串格式,由desired结构组成
|
4161
|
+
# @type State: String
|
4162
|
+
# @param ShadowVersion: 当前版本号,需要和后台的version保持一致,才能更新成功
|
4163
|
+
# @type ShadowVersion: Integer
|
4164
|
+
|
4165
|
+
attr_accessor :ProductId, :DeviceName, :State, :ShadowVersion
|
4166
|
+
|
4167
|
+
def initialize(productid=nil, devicename=nil, state=nil, shadowversion=nil)
|
4168
|
+
@ProductId = productid
|
4169
|
+
@DeviceName = devicename
|
4170
|
+
@State = state
|
4171
|
+
@ShadowVersion = shadowversion
|
4172
|
+
end
|
4173
|
+
|
4174
|
+
def deserialize(params)
|
4175
|
+
@ProductId = params['ProductId']
|
4176
|
+
@DeviceName = params['DeviceName']
|
4177
|
+
@State = params['State']
|
4178
|
+
@ShadowVersion = params['ShadowVersion']
|
4179
|
+
end
|
4180
|
+
end
|
4181
|
+
|
4182
|
+
# UpdateDeviceShadow返回参数结构体
|
4183
|
+
class UpdateDeviceShadowResponse < TencentCloud::Common::AbstractModel
|
4184
|
+
# @param Data: 设备影子数据,JSON字符串格式
|
4185
|
+
# @type Data: String
|
4186
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4187
|
+
# @type RequestId: String
|
4188
|
+
|
4189
|
+
attr_accessor :Data, :RequestId
|
4190
|
+
|
4191
|
+
def initialize(data=nil, requestid=nil)
|
4192
|
+
@Data = data
|
4193
|
+
@RequestId = requestid
|
4194
|
+
end
|
4195
|
+
|
4196
|
+
def deserialize(params)
|
4197
|
+
@Data = params['Data']
|
4198
|
+
@RequestId = params['RequestId']
|
4199
|
+
end
|
4200
|
+
end
|
4201
|
+
|
1622
4202
|
# UpdateDevicesEnableState请求参数结构体
|
1623
4203
|
class UpdateDevicesEnableStateRequest < TencentCloud::Common::AbstractModel
|
1624
4204
|
# @param ProductId: 设备所属产品id
|
@@ -1787,6 +4367,109 @@ module TencentCloud
|
|
1787
4367
|
end
|
1788
4368
|
end
|
1789
4369
|
|
4370
|
+
# UpdateTopicPolicy请求参数结构体
|
4371
|
+
class UpdateTopicPolicyRequest < TencentCloud::Common::AbstractModel
|
4372
|
+
# @param ProductId: 产品ID
|
4373
|
+
# @type ProductId: String
|
4374
|
+
# @param TopicName: 更新前Topic名
|
4375
|
+
# @type TopicName: String
|
4376
|
+
# @param NewTopicName: 更新后Topic名
|
4377
|
+
# @type NewTopicName: String
|
4378
|
+
# @param Privilege: Topic权限
|
4379
|
+
# @type Privilege: Integer
|
4380
|
+
# @param BrokerSubscribe: 代理订阅信息
|
4381
|
+
# @type BrokerSubscribe: :class:`Tencentcloud::Iotcloud.v20210408.models.BrokerSubscribe`
|
4382
|
+
|
4383
|
+
attr_accessor :ProductId, :TopicName, :NewTopicName, :Privilege, :BrokerSubscribe
|
4384
|
+
|
4385
|
+
def initialize(productid=nil, topicname=nil, newtopicname=nil, privilege=nil, brokersubscribe=nil)
|
4386
|
+
@ProductId = productid
|
4387
|
+
@TopicName = topicname
|
4388
|
+
@NewTopicName = newtopicname
|
4389
|
+
@Privilege = privilege
|
4390
|
+
@BrokerSubscribe = brokersubscribe
|
4391
|
+
end
|
4392
|
+
|
4393
|
+
def deserialize(params)
|
4394
|
+
@ProductId = params['ProductId']
|
4395
|
+
@TopicName = params['TopicName']
|
4396
|
+
@NewTopicName = params['NewTopicName']
|
4397
|
+
@Privilege = params['Privilege']
|
4398
|
+
unless params['BrokerSubscribe'].nil?
|
4399
|
+
@BrokerSubscribe = BrokerSubscribe.new
|
4400
|
+
@BrokerSubscribe.deserialize(params['BrokerSubscribe'])
|
4401
|
+
end
|
4402
|
+
end
|
4403
|
+
end
|
4404
|
+
|
4405
|
+
# UpdateTopicPolicy返回参数结构体
|
4406
|
+
class UpdateTopicPolicyResponse < TencentCloud::Common::AbstractModel
|
4407
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4408
|
+
# @type RequestId: String
|
4409
|
+
|
4410
|
+
attr_accessor :RequestId
|
4411
|
+
|
4412
|
+
def initialize(requestid=nil)
|
4413
|
+
@RequestId = requestid
|
4414
|
+
end
|
4415
|
+
|
4416
|
+
def deserialize(params)
|
4417
|
+
@RequestId = params['RequestId']
|
4418
|
+
end
|
4419
|
+
end
|
4420
|
+
|
4421
|
+
# UploadFirmware请求参数结构体
|
4422
|
+
class UploadFirmwareRequest < TencentCloud::Common::AbstractModel
|
4423
|
+
# @param ProductId: 产品ID
|
4424
|
+
# @type ProductId: String
|
4425
|
+
# @param FirmwareVersion: 固件版本号
|
4426
|
+
# @type FirmwareVersion: String
|
4427
|
+
# @param Md5sum: 固件的MD5值
|
4428
|
+
# @type Md5sum: String
|
4429
|
+
# @param FileSize: 固件的大小
|
4430
|
+
# @type FileSize: Integer
|
4431
|
+
# @param FirmwareName: 固件名称
|
4432
|
+
# @type FirmwareName: String
|
4433
|
+
# @param FirmwareDescription: 固件描述
|
4434
|
+
# @type FirmwareDescription: String
|
4435
|
+
|
4436
|
+
attr_accessor :ProductId, :FirmwareVersion, :Md5sum, :FileSize, :FirmwareName, :FirmwareDescription
|
4437
|
+
|
4438
|
+
def initialize(productid=nil, firmwareversion=nil, md5sum=nil, filesize=nil, firmwarename=nil, firmwaredescription=nil)
|
4439
|
+
@ProductId = productid
|
4440
|
+
@FirmwareVersion = firmwareversion
|
4441
|
+
@Md5sum = md5sum
|
4442
|
+
@FileSize = filesize
|
4443
|
+
@FirmwareName = firmwarename
|
4444
|
+
@FirmwareDescription = firmwaredescription
|
4445
|
+
end
|
4446
|
+
|
4447
|
+
def deserialize(params)
|
4448
|
+
@ProductId = params['ProductId']
|
4449
|
+
@FirmwareVersion = params['FirmwareVersion']
|
4450
|
+
@Md5sum = params['Md5sum']
|
4451
|
+
@FileSize = params['FileSize']
|
4452
|
+
@FirmwareName = params['FirmwareName']
|
4453
|
+
@FirmwareDescription = params['FirmwareDescription']
|
4454
|
+
end
|
4455
|
+
end
|
4456
|
+
|
4457
|
+
# UploadFirmware返回参数结构体
|
4458
|
+
class UploadFirmwareResponse < TencentCloud::Common::AbstractModel
|
4459
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4460
|
+
# @type RequestId: String
|
4461
|
+
|
4462
|
+
attr_accessor :RequestId
|
4463
|
+
|
4464
|
+
def initialize(requestid=nil)
|
4465
|
+
@RequestId = requestid
|
4466
|
+
end
|
4467
|
+
|
4468
|
+
def deserialize(params)
|
4469
|
+
@RequestId = params['RequestId']
|
4470
|
+
end
|
4471
|
+
end
|
4472
|
+
|
1790
4473
|
end
|
1791
4474
|
end
|
1792
4475
|
end
|