tencentcloud-sdk-iotcloud 1.0.200

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.
@@ -0,0 +1,1205 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Iotcloud
19
+ module V20210408
20
+ # 设备属性
21
+ class Attribute < TencentCloud::Common::AbstractModel
22
+ # @param Tags: 属性列表
23
+ # @type Tags: Array
24
+
25
+ attr_accessor :Tags
26
+
27
+ def initialize(tags=nil)
28
+ @Tags = tags
29
+ end
30
+
31
+ def deserialize(params)
32
+ unless params['Tags'].nil?
33
+ @Tags = []
34
+ params['Tags'].each do |i|
35
+ devicetag_tmp = DeviceTag.new
36
+ devicetag_tmp.deserialize(i)
37
+ @Tags << devicetag_tmp
38
+ end
39
+ end
40
+ end
41
+ end
42
+
43
+ # 子产品信息
44
+ class BindProductInfo < TencentCloud::Common::AbstractModel
45
+ # @param ProductId: 产品ID
46
+ # @type ProductId: String
47
+ # @param ProductName: 产品名
48
+ # @type ProductName: String
49
+
50
+ attr_accessor :ProductId, :ProductName
51
+
52
+ def initialize(productid=nil, productname=nil)
53
+ @ProductId = productid
54
+ @ProductName = productname
55
+ end
56
+
57
+ def deserialize(params)
58
+ @ProductId = params['ProductId']
59
+ @ProductName = params['ProductName']
60
+ end
61
+ end
62
+
63
+ # X509证书信息
64
+ class CertInfo < TencentCloud::Common::AbstractModel
65
+ # @param CertName: 证书名称
66
+ # @type CertName: String
67
+ # @param CertSN: 证书的序列号,16进制编码
68
+ # @type CertSN: String
69
+ # @param IssuerName: 证书颁发着名称
70
+ # @type IssuerName: String
71
+ # @param Subject: 证书主题
72
+ # @type Subject: String
73
+ # @param CreateTime: 证书创建时间,秒级时间戳
74
+ # @type CreateTime: Integer
75
+ # @param EffectiveTime: 证书生效时间,秒级时间戳
76
+ # @type EffectiveTime: Integer
77
+ # @param ExpireTime: 证书失效时间,秒级时间戳
78
+ # @type ExpireTime: Integer
79
+ # @param CertText: X509证书内容
80
+ # @type CertText: String
81
+
82
+ attr_accessor :CertName, :CertSN, :IssuerName, :Subject, :CreateTime, :EffectiveTime, :ExpireTime, :CertText
83
+
84
+ def initialize(certname=nil, certsn=nil, issuername=nil, subject=nil, createtime=nil, effectivetime=nil, expiretime=nil, certtext=nil)
85
+ @CertName = certname
86
+ @CertSN = certsn
87
+ @IssuerName = issuername
88
+ @Subject = subject
89
+ @CreateTime = createtime
90
+ @EffectiveTime = effectivetime
91
+ @ExpireTime = expiretime
92
+ @CertText = certtext
93
+ end
94
+
95
+ def deserialize(params)
96
+ @CertName = params['CertName']
97
+ @CertSN = params['CertSN']
98
+ @IssuerName = params['IssuerName']
99
+ @Subject = params['Subject']
100
+ @CreateTime = params['CreateTime']
101
+ @EffectiveTime = params['EffectiveTime']
102
+ @ExpireTime = params['ExpireTime']
103
+ @CertText = params['CertText']
104
+ end
105
+ end
106
+
107
+ # CreateDevice请求参数结构体
108
+ class CreateDeviceRequest < TencentCloud::Common::AbstractModel
109
+ # @param ProductId: 产品 ID 。创建产品时腾讯云为用户分配全局唯一的 ID
110
+ # @type ProductId: String
111
+ # @param DeviceName: 设备名称。命名规则:[a-zA-Z0-9:_-]{1,48}。
112
+ # @type DeviceName: String
113
+ # @param Attribute: 设备属性
114
+ # @type Attribute: :class:`Tencentcloud::Iotcloud.v20210408.models.Attribute`
115
+ # @param DefinedPsk: 是否使用自定义PSK,默认不使用
116
+ # @type DefinedPsk: String
117
+ # @param Isp: 运营商类型,当产品是NB-IoT产品时,此字段必填。1表示中国电信,2表示中国移动,3表示中国联通
118
+ # @type Isp: Integer
119
+ # @param Imei: IMEI,当产品是NB-IoT产品时,此字段必填
120
+ # @type Imei: String
121
+ # @param LoraDevEui: LoRa设备的DevEui,当创建LoRa时,此字段必填
122
+ # @type LoraDevEui: String
123
+ # @param LoraMoteType: LoRa设备的MoteType
124
+ # @type LoraMoteType: Integer
125
+ # @param Skey: 创建LoRa设备需要skey
126
+ # @type Skey: String
127
+ # @param LoraAppKey: LoRa设备的AppKey
128
+ # @type LoraAppKey: String
129
+ # @param TlsCrt: 私有CA创建的设备证书
130
+ # @type TlsCrt: String
131
+
132
+ attr_accessor :ProductId, :DeviceName, :Attribute, :DefinedPsk, :Isp, :Imei, :LoraDevEui, :LoraMoteType, :Skey, :LoraAppKey, :TlsCrt
133
+
134
+ def initialize(productid=nil, devicename=nil, attribute=nil, definedpsk=nil, isp=nil, imei=nil, loradeveui=nil, loramotetype=nil, skey=nil, loraappkey=nil, tlscrt=nil)
135
+ @ProductId = productid
136
+ @DeviceName = devicename
137
+ @Attribute = attribute
138
+ @DefinedPsk = definedpsk
139
+ @Isp = isp
140
+ @Imei = imei
141
+ @LoraDevEui = loradeveui
142
+ @LoraMoteType = loramotetype
143
+ @Skey = skey
144
+ @LoraAppKey = loraappkey
145
+ @TlsCrt = tlscrt
146
+ end
147
+
148
+ def deserialize(params)
149
+ @ProductId = params['ProductId']
150
+ @DeviceName = params['DeviceName']
151
+ unless params['Attribute'].nil?
152
+ @Attribute = Attribute.new
153
+ @Attribute.deserialize(params['Attribute'])
154
+ end
155
+ @DefinedPsk = params['DefinedPsk']
156
+ @Isp = params['Isp']
157
+ @Imei = params['Imei']
158
+ @LoraDevEui = params['LoraDevEui']
159
+ @LoraMoteType = params['LoraMoteType']
160
+ @Skey = params['Skey']
161
+ @LoraAppKey = params['LoraAppKey']
162
+ @TlsCrt = params['TlsCrt']
163
+ end
164
+ end
165
+
166
+ # CreateDevice返回参数结构体
167
+ class CreateDeviceResponse < TencentCloud::Common::AbstractModel
168
+ # @param DeviceName: 设备名称
169
+ # @type DeviceName: String
170
+ # @param DevicePsk: 对称加密密钥,base64编码。采用对称加密时返回该参数
171
+ # @type DevicePsk: String
172
+ # @param DeviceCert: 设备证书,用于 TLS 建立链接时校验客户端身份。采用非对称加密时返回该参数
173
+ # @type DeviceCert: String
174
+ # @param DevicePrivateKey: 设备私钥,用于 TLS 建立链接时校验客户端身份,腾讯云后台不保存,请妥善保管。采用非对称加密时返回该参数
175
+ # @type DevicePrivateKey: String
176
+ # @param LoraDevEui: LoRa设备的DevEui,当设备是LoRa设备时,会返回该字段
177
+ # @type LoraDevEui: String
178
+ # @param LoraMoteType: LoRa设备的MoteType,当设备是LoRa设备时,会返回该字段
179
+ # @type LoraMoteType: Integer
180
+ # @param LoraAppKey: LoRa设备的AppKey,当设备是LoRa设备时,会返回该字段
181
+ # @type LoraAppKey: String
182
+ # @param LoraNwkKey: LoRa设备的NwkKey,当设备是LoRa设备时,会返回该字段
183
+ # @type LoraNwkKey: String
184
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
185
+ # @type RequestId: String
186
+
187
+ attr_accessor :DeviceName, :DevicePsk, :DeviceCert, :DevicePrivateKey, :LoraDevEui, :LoraMoteType, :LoraAppKey, :LoraNwkKey, :RequestId
188
+
189
+ def initialize(devicename=nil, devicepsk=nil, devicecert=nil, deviceprivatekey=nil, loradeveui=nil, loramotetype=nil, loraappkey=nil, loranwkkey=nil, requestid=nil)
190
+ @DeviceName = devicename
191
+ @DevicePsk = devicepsk
192
+ @DeviceCert = devicecert
193
+ @DevicePrivateKey = deviceprivatekey
194
+ @LoraDevEui = loradeveui
195
+ @LoraMoteType = loramotetype
196
+ @LoraAppKey = loraappkey
197
+ @LoraNwkKey = loranwkkey
198
+ @RequestId = requestid
199
+ end
200
+
201
+ def deserialize(params)
202
+ @DeviceName = params['DeviceName']
203
+ @DevicePsk = params['DevicePsk']
204
+ @DeviceCert = params['DeviceCert']
205
+ @DevicePrivateKey = params['DevicePrivateKey']
206
+ @LoraDevEui = params['LoraDevEui']
207
+ @LoraMoteType = params['LoraMoteType']
208
+ @LoraAppKey = params['LoraAppKey']
209
+ @LoraNwkKey = params['LoraNwkKey']
210
+ @RequestId = params['RequestId']
211
+ end
212
+ end
213
+
214
+ # CreatePrivateCA请求参数结构体
215
+ class CreatePrivateCARequest < TencentCloud::Common::AbstractModel
216
+ # @param CertName: CA证书名称
217
+ # @type CertName: String
218
+ # @param CertText: CA证书内容
219
+ # @type CertText: String
220
+ # @param VerifyCertText: 校验CA证书的证书内容
221
+ # @type VerifyCertText: String
222
+
223
+ attr_accessor :CertName, :CertText, :VerifyCertText
224
+
225
+ def initialize(certname=nil, certtext=nil, verifycerttext=nil)
226
+ @CertName = certname
227
+ @CertText = certtext
228
+ @VerifyCertText = verifycerttext
229
+ end
230
+
231
+ def deserialize(params)
232
+ @CertName = params['CertName']
233
+ @CertText = params['CertText']
234
+ @VerifyCertText = params['VerifyCertText']
235
+ end
236
+ end
237
+
238
+ # CreatePrivateCA返回参数结构体
239
+ class CreatePrivateCAResponse < TencentCloud::Common::AbstractModel
240
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
241
+ # @type RequestId: String
242
+
243
+ attr_accessor :RequestId
244
+
245
+ def initialize(requestid=nil)
246
+ @RequestId = requestid
247
+ end
248
+
249
+ def deserialize(params)
250
+ @RequestId = params['RequestId']
251
+ end
252
+ end
253
+
254
+ # DeleteDevice请求参数结构体
255
+ class DeleteDeviceRequest < TencentCloud::Common::AbstractModel
256
+ # @param ProductId: 设备所属的产品 ID
257
+ # @type ProductId: String
258
+ # @param DeviceName: 需要删除的设备名称
259
+ # @type DeviceName: String
260
+ # @param Skey: 删除LoRa设备以及LoRa网关设备需要skey
261
+ # @type Skey: String
262
+
263
+ attr_accessor :ProductId, :DeviceName, :Skey
264
+
265
+ def initialize(productid=nil, devicename=nil, skey=nil)
266
+ @ProductId = productid
267
+ @DeviceName = devicename
268
+ @Skey = skey
269
+ end
270
+
271
+ def deserialize(params)
272
+ @ProductId = params['ProductId']
273
+ @DeviceName = params['DeviceName']
274
+ @Skey = params['Skey']
275
+ end
276
+ end
277
+
278
+ # DeleteDevice返回参数结构体
279
+ class DeleteDeviceResponse < TencentCloud::Common::AbstractModel
280
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
281
+ # @type RequestId: String
282
+
283
+ attr_accessor :RequestId
284
+
285
+ def initialize(requestid=nil)
286
+ @RequestId = requestid
287
+ end
288
+
289
+ def deserialize(params)
290
+ @RequestId = params['RequestId']
291
+ end
292
+ end
293
+
294
+ # DeletePrivateCA请求参数结构体
295
+ class DeletePrivateCARequest < TencentCloud::Common::AbstractModel
296
+ # @param CertName: 私有CA证书名称
297
+ # @type CertName: String
298
+
299
+ attr_accessor :CertName
300
+
301
+ def initialize(certname=nil)
302
+ @CertName = certname
303
+ end
304
+
305
+ def deserialize(params)
306
+ @CertName = params['CertName']
307
+ end
308
+ end
309
+
310
+ # DeletePrivateCA返回参数结构体
311
+ class DeletePrivateCAResponse < TencentCloud::Common::AbstractModel
312
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
313
+ # @type RequestId: String
314
+
315
+ attr_accessor :RequestId
316
+
317
+ def initialize(requestid=nil)
318
+ @RequestId = requestid
319
+ end
320
+
321
+ def deserialize(params)
322
+ @RequestId = params['RequestId']
323
+ end
324
+ end
325
+
326
+ # DeleteProduct请求参数结构体
327
+ class DeleteProductRequest < TencentCloud::Common::AbstractModel
328
+ # @param ProductId: 需要删除的产品 ID
329
+ # @type ProductId: String
330
+ # @param Skey: 删除LoRa产品需要skey
331
+ # @type Skey: String
332
+
333
+ attr_accessor :ProductId, :Skey
334
+
335
+ def initialize(productid=nil, skey=nil)
336
+ @ProductId = productid
337
+ @Skey = skey
338
+ end
339
+
340
+ def deserialize(params)
341
+ @ProductId = params['ProductId']
342
+ @Skey = params['Skey']
343
+ end
344
+ end
345
+
346
+ # DeleteProduct返回参数结构体
347
+ class DeleteProductResponse < TencentCloud::Common::AbstractModel
348
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
349
+ # @type RequestId: String
350
+
351
+ attr_accessor :RequestId
352
+
353
+ def initialize(requestid=nil)
354
+ @RequestId = requestid
355
+ end
356
+
357
+ def deserialize(params)
358
+ @RequestId = params['RequestId']
359
+ end
360
+ end
361
+
362
+ # DescribeDevice请求参数结构体
363
+ class DescribeDeviceRequest < TencentCloud::Common::AbstractModel
364
+ # @param ProductId: 产品ID
365
+ # @type ProductId: String
366
+ # @param DeviceName: 设备名
367
+ # @type DeviceName: String
368
+
369
+ attr_accessor :ProductId, :DeviceName
370
+
371
+ def initialize(productid=nil, devicename=nil)
372
+ @ProductId = productid
373
+ @DeviceName = devicename
374
+ end
375
+
376
+ def deserialize(params)
377
+ @ProductId = params['ProductId']
378
+ @DeviceName = params['DeviceName']
379
+ end
380
+ end
381
+
382
+ # DescribeDevice返回参数结构体
383
+ class DescribeDeviceResponse < TencentCloud::Common::AbstractModel
384
+ # @param DeviceName: 设备名
385
+ # @type DeviceName: String
386
+ # @param Online: 设备是否在线,0不在线,1在线
387
+ # @type Online: Integer
388
+ # @param LoginTime: 设备登录时间
389
+ # @type LoginTime: Integer
390
+ # @param Version: 设备固件版本
391
+ # @type Version: String
392
+ # @param LastUpdateTime: 设备最后更新时间
393
+ # @type LastUpdateTime: Integer
394
+ # @param DeviceCert: 设备证书
395
+ # @type DeviceCert: String
396
+ # @param DevicePsk: 设备密钥
397
+ # @type DevicePsk: String
398
+ # @param Tags: 设备属性
399
+ # @type Tags: Array
400
+ # @param DeviceType: 设备类型
401
+ # @type DeviceType: Integer
402
+ # @param Imei: 国际移动设备识别码 IMEI
403
+ # @type Imei: String
404
+ # @param Isp: 运营商类型
405
+ # @type Isp: Integer
406
+ # @param ConnIP: IP地址
407
+ # @type ConnIP: Integer
408
+ # @param NbiotDeviceID: NB IoT运营商处的DeviceID
409
+ # @type NbiotDeviceID: String
410
+ # @param LoraDevEui: Lora设备的dev eui
411
+ # @type LoraDevEui: String
412
+ # @param LoraMoteType: Lora设备的mote type
413
+ # @type LoraMoteType: Integer
414
+ # @param LogLevel: 设备的sdk日志等级
415
+ # 注意:此字段可能返回 null,表示取不到有效值。
416
+ # @type LogLevel: Integer
417
+ # @param FirstOnlineTime: 首次上线时间
418
+ # 注意:此字段可能返回 null,表示取不到有效值。
419
+ # @type FirstOnlineTime: Integer
420
+ # @param LastOfflineTime: 最近下线时间
421
+ # 注意:此字段可能返回 null,表示取不到有效值。
422
+ # @type LastOfflineTime: Integer
423
+ # @param CreateTime: 设备创建时间
424
+ # 注意:此字段可能返回 null,表示取不到有效值。
425
+ # @type CreateTime: Integer
426
+ # @param CertState: 设备证书获取状态,0 未获取过设备密钥, 1 已获取过设备密钥
427
+ # 注意:此字段可能返回 null,表示取不到有效值。
428
+ # @type CertState: Integer
429
+ # @param EnableState: 设备启用状态
430
+ # 注意:此字段可能返回 null,表示取不到有效值。
431
+ # @type EnableState: Integer
432
+ # @param Labels: 设备标签
433
+ # 注意:此字段可能返回 null,表示取不到有效值。
434
+ # @type Labels: Array
435
+ # @param ClientIP: MQTT客户端IP地址
436
+ # 注意:此字段可能返回 null,表示取不到有效值。
437
+ # @type ClientIP: String
438
+ # @param FirmwareUpdateTime: 设备固件更新时间
439
+ # 注意:此字段可能返回 null,表示取不到有效值。
440
+ # @type FirmwareUpdateTime: Integer
441
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
442
+ # @type RequestId: String
443
+
444
+ 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, :RequestId
445
+
446
+ 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, requestid=nil)
447
+ @DeviceName = devicename
448
+ @Online = online
449
+ @LoginTime = logintime
450
+ @Version = version
451
+ @LastUpdateTime = lastupdatetime
452
+ @DeviceCert = devicecert
453
+ @DevicePsk = devicepsk
454
+ @Tags = tags
455
+ @DeviceType = devicetype
456
+ @Imei = imei
457
+ @Isp = isp
458
+ @ConnIP = connip
459
+ @NbiotDeviceID = nbiotdeviceid
460
+ @LoraDevEui = loradeveui
461
+ @LoraMoteType = loramotetype
462
+ @LogLevel = loglevel
463
+ @FirstOnlineTime = firstonlinetime
464
+ @LastOfflineTime = lastofflinetime
465
+ @CreateTime = createtime
466
+ @CertState = certstate
467
+ @EnableState = enablestate
468
+ @Labels = labels
469
+ @ClientIP = clientip
470
+ @FirmwareUpdateTime = firmwareupdatetime
471
+ @RequestId = requestid
472
+ end
473
+
474
+ def deserialize(params)
475
+ @DeviceName = params['DeviceName']
476
+ @Online = params['Online']
477
+ @LoginTime = params['LoginTime']
478
+ @Version = params['Version']
479
+ @LastUpdateTime = params['LastUpdateTime']
480
+ @DeviceCert = params['DeviceCert']
481
+ @DevicePsk = params['DevicePsk']
482
+ unless params['Tags'].nil?
483
+ @Tags = []
484
+ params['Tags'].each do |i|
485
+ devicetag_tmp = DeviceTag.new
486
+ devicetag_tmp.deserialize(i)
487
+ @Tags << devicetag_tmp
488
+ end
489
+ end
490
+ @DeviceType = params['DeviceType']
491
+ @Imei = params['Imei']
492
+ @Isp = params['Isp']
493
+ @ConnIP = params['ConnIP']
494
+ @NbiotDeviceID = params['NbiotDeviceID']
495
+ @LoraDevEui = params['LoraDevEui']
496
+ @LoraMoteType = params['LoraMoteType']
497
+ @LogLevel = params['LogLevel']
498
+ @FirstOnlineTime = params['FirstOnlineTime']
499
+ @LastOfflineTime = params['LastOfflineTime']
500
+ @CreateTime = params['CreateTime']
501
+ @CertState = params['CertState']
502
+ @EnableState = params['EnableState']
503
+ unless params['Labels'].nil?
504
+ @Labels = []
505
+ params['Labels'].each do |i|
506
+ devicelabel_tmp = DeviceLabel.new
507
+ devicelabel_tmp.deserialize(i)
508
+ @Labels << devicelabel_tmp
509
+ end
510
+ end
511
+ @ClientIP = params['ClientIP']
512
+ @FirmwareUpdateTime = params['FirmwareUpdateTime']
513
+ @RequestId = params['RequestId']
514
+ end
515
+ end
516
+
517
+ # DescribeDevices请求参数结构体
518
+ class DescribeDevicesRequest < TencentCloud::Common::AbstractModel
519
+ # @param ProductId: 需要查看设备列表的产品 ID
520
+ # @type ProductId: String
521
+ # @param Offset: 偏移量,Offset从0开始
522
+ # @type Offset: Integer
523
+ # @param Limit: 分页的大小,数值范围 10-250
524
+ # @type Limit: Integer
525
+ # @param FirmwareVersion: 设备固件版本号,若不带此参数会返回所有固件版本的设备。传"None-FirmwareVersion"查询无版本号的设备
526
+ # @type FirmwareVersion: String
527
+ # @param DeviceName: 需要过滤的设备名称
528
+ # @type DeviceName: String
529
+ # @param EnableState: 设备是否启用,0禁用状态1启用状态,默认不区分
530
+ # @type EnableState: Integer
531
+
532
+ attr_accessor :ProductId, :Offset, :Limit, :FirmwareVersion, :DeviceName, :EnableState
533
+
534
+ def initialize(productid=nil, offset=nil, limit=nil, firmwareversion=nil, devicename=nil, enablestate=nil)
535
+ @ProductId = productid
536
+ @Offset = offset
537
+ @Limit = limit
538
+ @FirmwareVersion = firmwareversion
539
+ @DeviceName = devicename
540
+ @EnableState = enablestate
541
+ end
542
+
543
+ def deserialize(params)
544
+ @ProductId = params['ProductId']
545
+ @Offset = params['Offset']
546
+ @Limit = params['Limit']
547
+ @FirmwareVersion = params['FirmwareVersion']
548
+ @DeviceName = params['DeviceName']
549
+ @EnableState = params['EnableState']
550
+ end
551
+ end
552
+
553
+ # DescribeDevices返回参数结构体
554
+ class DescribeDevicesResponse < TencentCloud::Common::AbstractModel
555
+ # @param TotalCount: 设备总数
556
+ # @type TotalCount: Integer
557
+ # @param Devices: 设备详细信息列表
558
+ # @type Devices: Array
559
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
560
+ # @type RequestId: String
561
+
562
+ attr_accessor :TotalCount, :Devices, :RequestId
563
+
564
+ def initialize(totalcount=nil, devices=nil, requestid=nil)
565
+ @TotalCount = totalcount
566
+ @Devices = devices
567
+ @RequestId = requestid
568
+ end
569
+
570
+ def deserialize(params)
571
+ @TotalCount = params['TotalCount']
572
+ unless params['Devices'].nil?
573
+ @Devices = []
574
+ params['Devices'].each do |i|
575
+ deviceinfo_tmp = DeviceInfo.new
576
+ deviceinfo_tmp.deserialize(i)
577
+ @Devices << deviceinfo_tmp
578
+ end
579
+ end
580
+ @RequestId = params['RequestId']
581
+ end
582
+ end
583
+
584
+ # DescribePrivateCABindedProducts请求参数结构体
585
+ class DescribePrivateCABindedProductsRequest < TencentCloud::Common::AbstractModel
586
+ # @param CertName: 证书名称
587
+ # @type CertName: String
588
+ # @param Offset: 查询偏移量
589
+ # @type Offset: Integer
590
+ # @param Limit: 查询的数据量,默认为20, 最大为200
591
+ # @type Limit: Integer
592
+
593
+ attr_accessor :CertName, :Offset, :Limit
594
+
595
+ def initialize(certname=nil, offset=nil, limit=nil)
596
+ @CertName = certname
597
+ @Offset = offset
598
+ @Limit = limit
599
+ end
600
+
601
+ def deserialize(params)
602
+ @CertName = params['CertName']
603
+ @Offset = params['Offset']
604
+ @Limit = params['Limit']
605
+ end
606
+ end
607
+
608
+ # DescribePrivateCABindedProducts返回参数结构体
609
+ class DescribePrivateCABindedProductsResponse < TencentCloud::Common::AbstractModel
610
+ # @param Products: 私有CA绑定的产品列表
611
+ # @type Products: Array
612
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
613
+ # @type RequestId: String
614
+
615
+ attr_accessor :Products, :RequestId
616
+
617
+ def initialize(products=nil, requestid=nil)
618
+ @Products = products
619
+ @RequestId = requestid
620
+ end
621
+
622
+ def deserialize(params)
623
+ unless params['Products'].nil?
624
+ @Products = []
625
+ params['Products'].each do |i|
626
+ bindproductinfo_tmp = BindProductInfo.new
627
+ bindproductinfo_tmp.deserialize(i)
628
+ @Products << bindproductinfo_tmp
629
+ end
630
+ end
631
+ @RequestId = params['RequestId']
632
+ end
633
+ end
634
+
635
+ # DescribePrivateCA请求参数结构体
636
+ class DescribePrivateCARequest < TencentCloud::Common::AbstractModel
637
+ # @param CertName: 私有化CA名称
638
+ # @type CertName: String
639
+
640
+ attr_accessor :CertName
641
+
642
+ def initialize(certname=nil)
643
+ @CertName = certname
644
+ end
645
+
646
+ def deserialize(params)
647
+ @CertName = params['CertName']
648
+ end
649
+ end
650
+
651
+ # DescribePrivateCA返回参数结构体
652
+ class DescribePrivateCAResponse < TencentCloud::Common::AbstractModel
653
+ # @param CA: 私有化CA详情
654
+ # @type CA: :class:`Tencentcloud::Iotcloud.v20210408.models.CertInfo`
655
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
656
+ # @type RequestId: String
657
+
658
+ attr_accessor :CA, :RequestId
659
+
660
+ def initialize(ca=nil, requestid=nil)
661
+ @CA = ca
662
+ @RequestId = requestid
663
+ end
664
+
665
+ def deserialize(params)
666
+ unless params['CA'].nil?
667
+ @CA = CertInfo.new
668
+ @CA.deserialize(params['CA'])
669
+ end
670
+ @RequestId = params['RequestId']
671
+ end
672
+ end
673
+
674
+ # DescribePrivateCAs请求参数结构体
675
+ class DescribePrivateCAsRequest < TencentCloud::Common::AbstractModel
676
+
677
+
678
+ def initialize()
679
+ end
680
+
681
+ def deserialize(params)
682
+ end
683
+ end
684
+
685
+ # DescribePrivateCAs返回参数结构体
686
+ class DescribePrivateCAsResponse < TencentCloud::Common::AbstractModel
687
+ # @param CAs: 私有CA证书列表
688
+ # @type CAs: Array
689
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
690
+ # @type RequestId: String
691
+
692
+ attr_accessor :CAs, :RequestId
693
+
694
+ def initialize(cas=nil, requestid=nil)
695
+ @CAs = cas
696
+ @RequestId = requestid
697
+ end
698
+
699
+ def deserialize(params)
700
+ unless params['CAs'].nil?
701
+ @CAs = []
702
+ params['CAs'].each do |i|
703
+ certinfo_tmp = CertInfo.new
704
+ certinfo_tmp.deserialize(i)
705
+ @CAs << certinfo_tmp
706
+ end
707
+ end
708
+ @RequestId = params['RequestId']
709
+ end
710
+ end
711
+
712
+ # DescribeProductCA请求参数结构体
713
+ class DescribeProductCARequest < TencentCloud::Common::AbstractModel
714
+ # @param ProductId: 产品ID
715
+ # @type ProductId: String
716
+
717
+ attr_accessor :ProductId
718
+
719
+ def initialize(productid=nil)
720
+ @ProductId = productid
721
+ end
722
+
723
+ def deserialize(params)
724
+ @ProductId = params['ProductId']
725
+ end
726
+ end
727
+
728
+ # DescribeProductCA返回参数结构体
729
+ class DescribeProductCAResponse < TencentCloud::Common::AbstractModel
730
+ # @param CAs: CA证书列表
731
+ # @type CAs: Array
732
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
733
+ # @type RequestId: String
734
+
735
+ attr_accessor :CAs, :RequestId
736
+
737
+ def initialize(cas=nil, requestid=nil)
738
+ @CAs = cas
739
+ @RequestId = requestid
740
+ end
741
+
742
+ def deserialize(params)
743
+ unless params['CAs'].nil?
744
+ @CAs = []
745
+ params['CAs'].each do |i|
746
+ certinfo_tmp = CertInfo.new
747
+ certinfo_tmp.deserialize(i)
748
+ @CAs << certinfo_tmp
749
+ end
750
+ end
751
+ @RequestId = params['RequestId']
752
+ end
753
+ end
754
+
755
+ # DescribeProduct请求参数结构体
756
+ class DescribeProductRequest < TencentCloud::Common::AbstractModel
757
+ # @param ProductId: 产品ID
758
+ # @type ProductId: String
759
+
760
+ attr_accessor :ProductId
761
+
762
+ def initialize(productid=nil)
763
+ @ProductId = productid
764
+ end
765
+
766
+ def deserialize(params)
767
+ @ProductId = params['ProductId']
768
+ end
769
+ end
770
+
771
+ # DescribeProduct返回参数结构体
772
+ class DescribeProductResponse < TencentCloud::Common::AbstractModel
773
+ # @param ProductId: 产品ID
774
+ # @type ProductId: String
775
+ # @param ProductName: 产品名
776
+ # @type ProductName: String
777
+ # @param ProductMetadata: 产品元数据
778
+ # @type ProductMetadata: :class:`Tencentcloud::Iotcloud.v20210408.models.ProductMetadata`
779
+ # @param ProductProperties: 产品属性
780
+ # @type ProductProperties: :class:`Tencentcloud::Iotcloud.v20210408.models.ProductProperties`
781
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
782
+ # @type RequestId: String
783
+
784
+ attr_accessor :ProductId, :ProductName, :ProductMetadata, :ProductProperties, :RequestId
785
+
786
+ def initialize(productid=nil, productname=nil, productmetadata=nil, productproperties=nil, requestid=nil)
787
+ @ProductId = productid
788
+ @ProductName = productname
789
+ @ProductMetadata = productmetadata
790
+ @ProductProperties = productproperties
791
+ @RequestId = requestid
792
+ end
793
+
794
+ def deserialize(params)
795
+ @ProductId = params['ProductId']
796
+ @ProductName = params['ProductName']
797
+ unless params['ProductMetadata'].nil?
798
+ @ProductMetadata = ProductMetadata.new
799
+ @ProductMetadata.deserialize(params['ProductMetadata'])
800
+ end
801
+ unless params['ProductProperties'].nil?
802
+ @ProductProperties = ProductProperties.new
803
+ @ProductProperties.deserialize(params['ProductProperties'])
804
+ end
805
+ @RequestId = params['RequestId']
806
+ end
807
+ end
808
+
809
+ # 设备详细信息
810
+ class DeviceInfo < TencentCloud::Common::AbstractModel
811
+ # @param DeviceName: 设备名
812
+ # @type DeviceName: String
813
+ # @param Online: 设备是否在线,0不在线,1在线
814
+ # @type Online: Integer
815
+ # @param LoginTime: 设备登录时间
816
+ # @type LoginTime: Integer
817
+ # @param Version: 设备版本
818
+ # @type Version: String
819
+ # @param DeviceCert: 设备证书,证书加密的设备返回
820
+ # @type DeviceCert: String
821
+ # @param DevicePsk: 设备密钥,密钥加密的设备返回
822
+ # @type DevicePsk: String
823
+ # @param Tags: 设备属性
824
+ # @type Tags: Array
825
+ # @param DeviceType: 设备类型
826
+ # @type DeviceType: Integer
827
+ # @param Imei: 国际移动设备识别码 IMEI
828
+ # @type Imei: String
829
+ # @param Isp: 运营商类型
830
+ # @type Isp: Integer
831
+ # @param NbiotDeviceID: NB IOT运营商处的DeviceID
832
+ # @type NbiotDeviceID: String
833
+ # @param ConnIP: IP地址
834
+ # @type ConnIP: Integer
835
+ # @param LastUpdateTime: 设备最后更新时间
836
+ # @type LastUpdateTime: Integer
837
+ # @param LoraDevEui: LoRa设备的dev eui
838
+ # @type LoraDevEui: String
839
+ # @param LoraMoteType: LoRa设备的Mote type
840
+ # @type LoraMoteType: Integer
841
+ # @param FirstOnlineTime: 首次上线时间
842
+ # 注意:此字段可能返回 null,表示取不到有效值。
843
+ # @type FirstOnlineTime: Integer
844
+ # @param LastOfflineTime: 最近下线时间
845
+ # 注意:此字段可能返回 null,表示取不到有效值。
846
+ # @type LastOfflineTime: Integer
847
+ # @param CreateTime: 设备创建时间
848
+ # 注意:此字段可能返回 null,表示取不到有效值。
849
+ # @type CreateTime: Integer
850
+ # @param LogLevel: 设备日志级别
851
+ # 注意:此字段可能返回 null,表示取不到有效值。
852
+ # @type LogLevel: Integer
853
+ # @param CertState: 设备证书获取状态, 1 已获取过设备密钥,0 未获取过设备密钥
854
+ # 注意:此字段可能返回 null,表示取不到有效值。
855
+ # @type CertState: Integer
856
+ # @param EnableState: 设备可用状态,0禁用,1启用
857
+ # 注意:此字段可能返回 null,表示取不到有效值。
858
+ # @type EnableState: Integer
859
+ # @param Labels: 设备标签
860
+ # 注意:此字段可能返回 null,表示取不到有效值。
861
+ # @type Labels: Array
862
+ # @param ClientIP: MQTT客户端IP地址
863
+ # 注意:此字段可能返回 null,表示取不到有效值。
864
+ # @type ClientIP: String
865
+ # @param FirmwareUpdateTime: ota最后更新时间
866
+ # 注意:此字段可能返回 null,表示取不到有效值。
867
+ # @type FirmwareUpdateTime: Integer
868
+
869
+ 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
870
+
871
+ 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)
872
+ @DeviceName = devicename
873
+ @Online = online
874
+ @LoginTime = logintime
875
+ @Version = version
876
+ @DeviceCert = devicecert
877
+ @DevicePsk = devicepsk
878
+ @Tags = tags
879
+ @DeviceType = devicetype
880
+ @Imei = imei
881
+ @Isp = isp
882
+ @NbiotDeviceID = nbiotdeviceid
883
+ @ConnIP = connip
884
+ @LastUpdateTime = lastupdatetime
885
+ @LoraDevEui = loradeveui
886
+ @LoraMoteType = loramotetype
887
+ @FirstOnlineTime = firstonlinetime
888
+ @LastOfflineTime = lastofflinetime
889
+ @CreateTime = createtime
890
+ @LogLevel = loglevel
891
+ @CertState = certstate
892
+ @EnableState = enablestate
893
+ @Labels = labels
894
+ @ClientIP = clientip
895
+ @FirmwareUpdateTime = firmwareupdatetime
896
+ end
897
+
898
+ def deserialize(params)
899
+ @DeviceName = params['DeviceName']
900
+ @Online = params['Online']
901
+ @LoginTime = params['LoginTime']
902
+ @Version = params['Version']
903
+ @DeviceCert = params['DeviceCert']
904
+ @DevicePsk = params['DevicePsk']
905
+ unless params['Tags'].nil?
906
+ @Tags = []
907
+ params['Tags'].each do |i|
908
+ devicetag_tmp = DeviceTag.new
909
+ devicetag_tmp.deserialize(i)
910
+ @Tags << devicetag_tmp
911
+ end
912
+ end
913
+ @DeviceType = params['DeviceType']
914
+ @Imei = params['Imei']
915
+ @Isp = params['Isp']
916
+ @NbiotDeviceID = params['NbiotDeviceID']
917
+ @ConnIP = params['ConnIP']
918
+ @LastUpdateTime = params['LastUpdateTime']
919
+ @LoraDevEui = params['LoraDevEui']
920
+ @LoraMoteType = params['LoraMoteType']
921
+ @FirstOnlineTime = params['FirstOnlineTime']
922
+ @LastOfflineTime = params['LastOfflineTime']
923
+ @CreateTime = params['CreateTime']
924
+ @LogLevel = params['LogLevel']
925
+ @CertState = params['CertState']
926
+ @EnableState = params['EnableState']
927
+ unless params['Labels'].nil?
928
+ @Labels = []
929
+ params['Labels'].each do |i|
930
+ devicelabel_tmp = DeviceLabel.new
931
+ devicelabel_tmp.deserialize(i)
932
+ @Labels << devicelabel_tmp
933
+ end
934
+ end
935
+ @ClientIP = params['ClientIP']
936
+ @FirmwareUpdateTime = params['FirmwareUpdateTime']
937
+ end
938
+ end
939
+
940
+ # 设备标签
941
+ class DeviceLabel < TencentCloud::Common::AbstractModel
942
+ # @param Key: 标签标识
943
+ # @type Key: String
944
+ # @param Value: 标签值
945
+ # @type Value: String
946
+
947
+ attr_accessor :Key, :Value
948
+
949
+ def initialize(key=nil, value=nil)
950
+ @Key = key
951
+ @Value = value
952
+ end
953
+
954
+ def deserialize(params)
955
+ @Key = params['Key']
956
+ @Value = params['Value']
957
+ end
958
+ end
959
+
960
+ # 设备属性
961
+ class DeviceTag < TencentCloud::Common::AbstractModel
962
+ # @param Tag: 属性名称
963
+ # @type Tag: String
964
+ # @param Type: 属性值的类型,1 int,2 string
965
+ # @type Type: Integer
966
+ # @param Value: 属性的值
967
+ # @type Value: String
968
+ # @param Name: 属性描述名称
969
+ # 注意:此字段可能返回 null,表示取不到有效值。
970
+ # @type Name: String
971
+
972
+ attr_accessor :Tag, :Type, :Value, :Name
973
+
974
+ def initialize(tag=nil, type=nil, value=nil, name=nil)
975
+ @Tag = tag
976
+ @Type = type
977
+ @Value = value
978
+ @Name = name
979
+ end
980
+
981
+ def deserialize(params)
982
+ @Tag = params['Tag']
983
+ @Type = params['Type']
984
+ @Value = params['Value']
985
+ @Name = params['Name']
986
+ end
987
+ end
988
+
989
+ # 产品元数据
990
+ class ProductMetadata < TencentCloud::Common::AbstractModel
991
+ # @param CreationDate: 产品创建时间
992
+ # @type CreationDate: Integer
993
+
994
+ attr_accessor :CreationDate
995
+
996
+ def initialize(creationdate=nil)
997
+ @CreationDate = creationdate
998
+ end
999
+
1000
+ def deserialize(params)
1001
+ @CreationDate = params['CreationDate']
1002
+ end
1003
+ end
1004
+
1005
+ # 产品属性
1006
+ class ProductProperties < TencentCloud::Common::AbstractModel
1007
+ # @param ProductDescription: 产品描述
1008
+ # @type ProductDescription: String
1009
+ # @param EncryptionType: 加密类型,1表示证书认证,2表示签名认证。如不填写,默认值是1
1010
+ # @type EncryptionType: String
1011
+ # @param Region: 产品所属区域,目前只支持广州(gz)
1012
+ # @type Region: String
1013
+ # @param ProductType: 产品类型,各个类型值代表的节点-类型如下:
1014
+ # 0 普通产品,2 NB-IoT产品,4 LoRa产品,3 LoRa网关产品,5 普通网关产品 默认值是0
1015
+ # @type ProductType: Integer
1016
+ # @param Format: 数据格式,取值为json或者custom,默认值是json
1017
+ # @type Format: String
1018
+ # @param Platform: 产品所属平台,默认值是0
1019
+ # @type Platform: String
1020
+ # @param Appeui: LoRa产品运营侧APPEUI,只有LoRa产品需要填写
1021
+ # @type Appeui: String
1022
+ # @param ModelId: 产品绑定的物模型ID,-1表示不绑定
1023
+ # @type ModelId: String
1024
+ # @param ModelName: 产品绑定的物模型名称
1025
+ # @type ModelName: String
1026
+ # @param ProductKey: 产品密钥,suite产品才会有
1027
+ # @type ProductKey: String
1028
+ # @param RegisterType: 动态注册类型 0-关闭, 1-预定义设备名 2-动态定义设备名
1029
+ # @type RegisterType: Integer
1030
+ # @param ProductSecret: 动态注册产品秘钥
1031
+ # @type ProductSecret: String
1032
+ # @param RegisterLimit: RegisterType为2时,设备动态创建的限制数量
1033
+ # @type RegisterLimit: Integer
1034
+ # @param OriginProductId: 划归的产品,展示为源产品ID,其余为空
1035
+ # @type OriginProductId: String
1036
+ # @param PrivateCAName: 私有CA名称
1037
+ # @type PrivateCAName: String
1038
+ # @param OriginUserId: 划归的产品,展示为源用户ID,其余为空
1039
+ # @type OriginUserId: Integer
1040
+
1041
+ attr_accessor :ProductDescription, :EncryptionType, :Region, :ProductType, :Format, :Platform, :Appeui, :ModelId, :ModelName, :ProductKey, :RegisterType, :ProductSecret, :RegisterLimit, :OriginProductId, :PrivateCAName, :OriginUserId
1042
+
1043
+ 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)
1044
+ @ProductDescription = productdescription
1045
+ @EncryptionType = encryptiontype
1046
+ @Region = region
1047
+ @ProductType = producttype
1048
+ @Format = format
1049
+ @Platform = platform
1050
+ @Appeui = appeui
1051
+ @ModelId = modelid
1052
+ @ModelName = modelname
1053
+ @ProductKey = productkey
1054
+ @RegisterType = registertype
1055
+ @ProductSecret = productsecret
1056
+ @RegisterLimit = registerlimit
1057
+ @OriginProductId = originproductid
1058
+ @PrivateCAName = privatecaname
1059
+ @OriginUserId = originuserid
1060
+ end
1061
+
1062
+ def deserialize(params)
1063
+ @ProductDescription = params['ProductDescription']
1064
+ @EncryptionType = params['EncryptionType']
1065
+ @Region = params['Region']
1066
+ @ProductType = params['ProductType']
1067
+ @Format = params['Format']
1068
+ @Platform = params['Platform']
1069
+ @Appeui = params['Appeui']
1070
+ @ModelId = params['ModelId']
1071
+ @ModelName = params['ModelName']
1072
+ @ProductKey = params['ProductKey']
1073
+ @RegisterType = params['RegisterType']
1074
+ @ProductSecret = params['ProductSecret']
1075
+ @RegisterLimit = params['RegisterLimit']
1076
+ @OriginProductId = params['OriginProductId']
1077
+ @PrivateCAName = params['PrivateCAName']
1078
+ @OriginUserId = params['OriginUserId']
1079
+ end
1080
+ end
1081
+
1082
+ # UpdateDeviceLogLevel请求参数结构体
1083
+ class UpdateDeviceLogLevelRequest < TencentCloud::Common::AbstractModel
1084
+ # @param ProductId: 产品ID
1085
+ # @type ProductId: String
1086
+ # @param DeviceName: 设备名称
1087
+ # @type DeviceName: String
1088
+ # @param LogLevel: 日志级别,0:关闭,1:错误,2:告警,3:信息,4:调试
1089
+ # @type LogLevel: Integer
1090
+
1091
+ attr_accessor :ProductId, :DeviceName, :LogLevel
1092
+
1093
+ def initialize(productid=nil, devicename=nil, loglevel=nil)
1094
+ @ProductId = productid
1095
+ @DeviceName = devicename
1096
+ @LogLevel = loglevel
1097
+ end
1098
+
1099
+ def deserialize(params)
1100
+ @ProductId = params['ProductId']
1101
+ @DeviceName = params['DeviceName']
1102
+ @LogLevel = params['LogLevel']
1103
+ end
1104
+ end
1105
+
1106
+ # UpdateDeviceLogLevel返回参数结构体
1107
+ class UpdateDeviceLogLevelResponse < TencentCloud::Common::AbstractModel
1108
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1109
+ # @type RequestId: String
1110
+
1111
+ attr_accessor :RequestId
1112
+
1113
+ def initialize(requestid=nil)
1114
+ @RequestId = requestid
1115
+ end
1116
+
1117
+ def deserialize(params)
1118
+ @RequestId = params['RequestId']
1119
+ end
1120
+ end
1121
+
1122
+ # UpdateDevicesEnableState请求参数结构体
1123
+ class UpdateDevicesEnableStateRequest < TencentCloud::Common::AbstractModel
1124
+ # @param ProductId: 设备所属产品id
1125
+ # @type ProductId: String
1126
+ # @param DeviceNames: 设备名称集合
1127
+ # @type DeviceNames: Array
1128
+ # @param Status: 要设置的设备状态,1为启用,0为禁用
1129
+ # @type Status: Integer
1130
+
1131
+ attr_accessor :ProductId, :DeviceNames, :Status
1132
+
1133
+ def initialize(productid=nil, devicenames=nil, status=nil)
1134
+ @ProductId = productid
1135
+ @DeviceNames = devicenames
1136
+ @Status = status
1137
+ end
1138
+
1139
+ def deserialize(params)
1140
+ @ProductId = params['ProductId']
1141
+ @DeviceNames = params['DeviceNames']
1142
+ @Status = params['Status']
1143
+ end
1144
+ end
1145
+
1146
+ # UpdateDevicesEnableState返回参数结构体
1147
+ class UpdateDevicesEnableStateResponse < TencentCloud::Common::AbstractModel
1148
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1149
+ # @type RequestId: String
1150
+
1151
+ attr_accessor :RequestId
1152
+
1153
+ def initialize(requestid=nil)
1154
+ @RequestId = requestid
1155
+ end
1156
+
1157
+ def deserialize(params)
1158
+ @RequestId = params['RequestId']
1159
+ end
1160
+ end
1161
+
1162
+ # UpdatePrivateCA请求参数结构体
1163
+ class UpdatePrivateCARequest < TencentCloud::Common::AbstractModel
1164
+ # @param CertName: CA证书名称
1165
+ # @type CertName: String
1166
+ # @param CertText: CA证书内容
1167
+ # @type CertText: String
1168
+ # @param VerifyCertText: 校验CA证书的证书内容
1169
+ # @type VerifyCertText: String
1170
+
1171
+ attr_accessor :CertName, :CertText, :VerifyCertText
1172
+
1173
+ def initialize(certname=nil, certtext=nil, verifycerttext=nil)
1174
+ @CertName = certname
1175
+ @CertText = certtext
1176
+ @VerifyCertText = verifycerttext
1177
+ end
1178
+
1179
+ def deserialize(params)
1180
+ @CertName = params['CertName']
1181
+ @CertText = params['CertText']
1182
+ @VerifyCertText = params['VerifyCertText']
1183
+ end
1184
+ end
1185
+
1186
+ # UpdatePrivateCA返回参数结构体
1187
+ class UpdatePrivateCAResponse < TencentCloud::Common::AbstractModel
1188
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1189
+ # @type RequestId: String
1190
+
1191
+ attr_accessor :RequestId
1192
+
1193
+ def initialize(requestid=nil)
1194
+ @RequestId = requestid
1195
+ end
1196
+
1197
+ def deserialize(params)
1198
+ @RequestId = params['RequestId']
1199
+ end
1200
+ end
1201
+
1202
+ end
1203
+ end
1204
+ end
1205
+