tencentcloud-sdk-iotcloud 1.0.309 → 1.0.310

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,6 +29,78 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 本接口(BatchUpdateFirmware)用于批量更新设备固件
33
+
34
+ # @param request: Request instance for BatchUpdateFirmware.
35
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::BatchUpdateFirmwareRequest`
36
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::BatchUpdateFirmwareResponse`
37
+ def BatchUpdateFirmware(request)
38
+ body = send_request('BatchUpdateFirmware', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = BatchUpdateFirmwareResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 本接口(BindDevices)用于网关设备批量绑定子设备
57
+
58
+ # @param request: Request instance for BindDevices.
59
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::BindDevicesRequest`
60
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::BindDevicesResponse`
61
+ def BindDevices(request)
62
+ body = send_request('BindDevices', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = BindDevicesResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
80
+ # 取消设备升级任务
81
+
82
+ # @param request: Request instance for CancelDeviceFirmwareTask.
83
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::CancelDeviceFirmwareTaskRequest`
84
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::CancelDeviceFirmwareTaskResponse`
85
+ def CancelDeviceFirmwareTask(request)
86
+ body = send_request('CancelDeviceFirmwareTask', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = CancelDeviceFirmwareTaskResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
32
104
  # 本接口(CreateDevice)用于新建一个物联网通信设备。
33
105
 
34
106
  # @param request: Request instance for CreateDevice.
@@ -38,7 +110,751 @@ module TencentCloud
38
110
  body = send_request('CreateDevice', request.serialize)
39
111
  response = JSON.parse(body)
40
112
  if response['Response'].key?('Error') == false
41
- model = CreateDeviceResponse.new
113
+ model = CreateDeviceResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
128
+ # 本接口(CreateMultiDevicesTask)用于创建产品级别的批量创建设备任务
129
+
130
+ # @param request: Request instance for CreateMultiDevicesTask.
131
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::CreateMultiDevicesTaskRequest`
132
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::CreateMultiDevicesTaskResponse`
133
+ def CreateMultiDevicesTask(request)
134
+ body = send_request('CreateMultiDevicesTask', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = CreateMultiDevicesTaskResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
152
+ # 创建私有CA证书
153
+
154
+ # @param request: Request instance for CreatePrivateCA.
155
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::CreatePrivateCARequest`
156
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::CreatePrivateCAResponse`
157
+ def CreatePrivateCA(request)
158
+ body = send_request('CreatePrivateCA', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = CreatePrivateCAResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
176
+ # 本接口(CreateProduct)用于创建一个新的物联网通信产品
177
+
178
+ # @param request: Request instance for CreateProduct.
179
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::CreateProductRequest`
180
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::CreateProductResponse`
181
+ def CreateProduct(request)
182
+ body = send_request('CreateProduct', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = CreateProductResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
200
+ # 本接口(CreateTaskFileUrl)用于获取产品级任务文件上传链接
201
+
202
+ # @param request: Request instance for CreateTaskFileUrl.
203
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::CreateTaskFileUrlRequest`
204
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::CreateTaskFileUrlResponse`
205
+ def CreateTaskFileUrl(request)
206
+ body = send_request('CreateTaskFileUrl', request.serialize)
207
+ response = JSON.parse(body)
208
+ if response['Response'].key?('Error') == false
209
+ model = CreateTaskFileUrlResponse.new
210
+ model.deserialize(response['Response'])
211
+ model
212
+ else
213
+ code = response['Response']['Error']['Code']
214
+ message = response['Response']['Error']['Message']
215
+ reqid = response['Response']['RequestId']
216
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
217
+ end
218
+ rescue TencentCloud::Common::TencentCloudSDKException => e
219
+ raise e
220
+ rescue StandardError => e
221
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
+ end
223
+
224
+ # 本接口(CreateTopicPolicy)用于创建一个Topic
225
+
226
+ # @param request: Request instance for CreateTopicPolicy.
227
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::CreateTopicPolicyRequest`
228
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::CreateTopicPolicyResponse`
229
+ def CreateTopicPolicy(request)
230
+ body = send_request('CreateTopicPolicy', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = CreateTopicPolicyResponse.new
234
+ model.deserialize(response['Response'])
235
+ model
236
+ else
237
+ code = response['Response']['Error']['Code']
238
+ message = response['Response']['Error']['Message']
239
+ reqid = response['Response']['RequestId']
240
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
241
+ end
242
+ rescue TencentCloud::Common::TencentCloudSDKException => e
243
+ raise e
244
+ rescue StandardError => e
245
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
+ end
247
+
248
+ # 本接口(CreateTopicRule)用于创建一个规则
249
+
250
+ # @param request: Request instance for CreateTopicRule.
251
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::CreateTopicRuleRequest`
252
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::CreateTopicRuleResponse`
253
+ def CreateTopicRule(request)
254
+ body = send_request('CreateTopicRule', request.serialize)
255
+ response = JSON.parse(body)
256
+ if response['Response'].key?('Error') == false
257
+ model = CreateTopicRuleResponse.new
258
+ model.deserialize(response['Response'])
259
+ model
260
+ else
261
+ code = response['Response']['Error']['Code']
262
+ message = response['Response']['Error']['Message']
263
+ reqid = response['Response']['RequestId']
264
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
265
+ end
266
+ rescue TencentCloud::Common::TencentCloudSDKException => e
267
+ raise e
268
+ rescue StandardError => e
269
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
+ end
271
+
272
+ # 本接口(DeleteDevice)用于删除物联网通信设备。
273
+
274
+ # @param request: Request instance for DeleteDevice.
275
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DeleteDeviceRequest`
276
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DeleteDeviceResponse`
277
+ def DeleteDevice(request)
278
+ body = send_request('DeleteDevice', request.serialize)
279
+ response = JSON.parse(body)
280
+ if response['Response'].key?('Error') == false
281
+ model = DeleteDeviceResponse.new
282
+ model.deserialize(response['Response'])
283
+ model
284
+ else
285
+ code = response['Response']['Error']['Code']
286
+ message = response['Response']['Error']['Message']
287
+ reqid = response['Response']['RequestId']
288
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
289
+ end
290
+ rescue TencentCloud::Common::TencentCloudSDKException => e
291
+ raise e
292
+ rescue StandardError => e
293
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
+ end
295
+
296
+ # 本接口(DeleteDeviceResource)用于删除设备资源
297
+
298
+ # @param request: Request instance for DeleteDeviceResource.
299
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DeleteDeviceResourceRequest`
300
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DeleteDeviceResourceResponse`
301
+ def DeleteDeviceResource(request)
302
+ body = send_request('DeleteDeviceResource', request.serialize)
303
+ response = JSON.parse(body)
304
+ if response['Response'].key?('Error') == false
305
+ model = DeleteDeviceResourceResponse.new
306
+ model.deserialize(response['Response'])
307
+ model
308
+ else
309
+ code = response['Response']['Error']['Code']
310
+ message = response['Response']['Error']['Message']
311
+ reqid = response['Response']['RequestId']
312
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
313
+ end
314
+ rescue TencentCloud::Common::TencentCloudSDKException => e
315
+ raise e
316
+ rescue StandardError => e
317
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
+ end
319
+
320
+ # 删除私有CA证书
321
+
322
+ # @param request: Request instance for DeletePrivateCA.
323
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DeletePrivateCARequest`
324
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DeletePrivateCAResponse`
325
+ def DeletePrivateCA(request)
326
+ body = send_request('DeletePrivateCA', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = DeletePrivateCAResponse.new
330
+ model.deserialize(response['Response'])
331
+ model
332
+ else
333
+ code = response['Response']['Error']['Code']
334
+ message = response['Response']['Error']['Message']
335
+ reqid = response['Response']['RequestId']
336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
337
+ end
338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
339
+ raise e
340
+ rescue StandardError => e
341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
+ end
343
+
344
+ # 本接口(DeleteProduct)用于删除一个物联网通信产品
345
+
346
+ # @param request: Request instance for DeleteProduct.
347
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DeleteProductRequest`
348
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DeleteProductResponse`
349
+ def DeleteProduct(request)
350
+ body = send_request('DeleteProduct', request.serialize)
351
+ response = JSON.parse(body)
352
+ if response['Response'].key?('Error') == false
353
+ model = DeleteProductResponse.new
354
+ model.deserialize(response['Response'])
355
+ model
356
+ else
357
+ code = response['Response']['Error']['Code']
358
+ message = response['Response']['Error']['Message']
359
+ reqid = response['Response']['RequestId']
360
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
361
+ end
362
+ rescue TencentCloud::Common::TencentCloudSDKException => e
363
+ raise e
364
+ rescue StandardError => e
365
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
366
+ end
367
+
368
+ # 删除产品的私有CA证书
369
+
370
+ # @param request: Request instance for DeleteProductPrivateCA.
371
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DeleteProductPrivateCARequest`
372
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DeleteProductPrivateCAResponse`
373
+ def DeleteProductPrivateCA(request)
374
+ body = send_request('DeleteProductPrivateCA', request.serialize)
375
+ response = JSON.parse(body)
376
+ if response['Response'].key?('Error') == false
377
+ model = DeleteProductPrivateCAResponse.new
378
+ model.deserialize(response['Response'])
379
+ model
380
+ else
381
+ code = response['Response']['Error']['Code']
382
+ message = response['Response']['Error']['Message']
383
+ reqid = response['Response']['RequestId']
384
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
385
+ end
386
+ rescue TencentCloud::Common::TencentCloudSDKException => e
387
+ raise e
388
+ rescue StandardError => e
389
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
390
+ end
391
+
392
+ # 本接口(DeleteTopicRule)用于删除规则
393
+
394
+ # @param request: Request instance for DeleteTopicRule.
395
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DeleteTopicRuleRequest`
396
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DeleteTopicRuleResponse`
397
+ def DeleteTopicRule(request)
398
+ body = send_request('DeleteTopicRule', request.serialize)
399
+ response = JSON.parse(body)
400
+ if response['Response'].key?('Error') == false
401
+ model = DeleteTopicRuleResponse.new
402
+ model.deserialize(response['Response'])
403
+ model
404
+ else
405
+ code = response['Response']['Error']['Code']
406
+ message = response['Response']['Error']['Message']
407
+ reqid = response['Response']['RequestId']
408
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
409
+ end
410
+ rescue TencentCloud::Common::TencentCloudSDKException => e
411
+ raise e
412
+ rescue StandardError => e
413
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
414
+ end
415
+
416
+ # 本接口(DescribeDevice)用于查看设备信息
417
+
418
+ # @param request: Request instance for DescribeDevice.
419
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeDeviceRequest`
420
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeDeviceResponse`
421
+ def DescribeDevice(request)
422
+ body = send_request('DescribeDevice', request.serialize)
423
+ response = JSON.parse(body)
424
+ if response['Response'].key?('Error') == false
425
+ model = DescribeDeviceResponse.new
426
+ model.deserialize(response['Response'])
427
+ model
428
+ else
429
+ code = response['Response']['Error']['Code']
430
+ message = response['Response']['Error']['Message']
431
+ reqid = response['Response']['RequestId']
432
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
433
+ end
434
+ rescue TencentCloud::Common::TencentCloudSDKException => e
435
+ raise e
436
+ rescue StandardError => e
437
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
438
+ end
439
+
440
+ # 获取证书认证类型设备的私钥,刚生成或者重置设备后仅可调用一次
441
+
442
+ # @param request: Request instance for DescribeDeviceClientKey.
443
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeDeviceClientKeyRequest`
444
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeDeviceClientKeyResponse`
445
+ def DescribeDeviceClientKey(request)
446
+ body = send_request('DescribeDeviceClientKey', request.serialize)
447
+ response = JSON.parse(body)
448
+ if response['Response'].key?('Error') == false
449
+ model = DescribeDeviceClientKeyResponse.new
450
+ model.deserialize(response['Response'])
451
+ model
452
+ else
453
+ code = response['Response']['Error']['Code']
454
+ message = response['Response']['Error']['Message']
455
+ reqid = response['Response']['RequestId']
456
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
457
+ end
458
+ rescue TencentCloud::Common::TencentCloudSDKException => e
459
+ raise e
460
+ rescue StandardError => e
461
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
462
+ end
463
+
464
+ # 本接口(DescribeDeviceResource)用于查询设备资源详情。
465
+
466
+ # @param request: Request instance for DescribeDeviceResource.
467
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeDeviceResourceRequest`
468
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeDeviceResourceResponse`
469
+ def DescribeDeviceResource(request)
470
+ body = send_request('DescribeDeviceResource', request.serialize)
471
+ response = JSON.parse(body)
472
+ if response['Response'].key?('Error') == false
473
+ model = DescribeDeviceResourceResponse.new
474
+ model.deserialize(response['Response'])
475
+ model
476
+ else
477
+ code = response['Response']['Error']['Code']
478
+ message = response['Response']['Error']['Message']
479
+ reqid = response['Response']['RequestId']
480
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
481
+ end
482
+ rescue TencentCloud::Common::TencentCloudSDKException => e
483
+ raise e
484
+ rescue StandardError => e
485
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
486
+ end
487
+
488
+ # 本接口(DescribeDeviceResources)用于查询设备资源列表。
489
+
490
+ # @param request: Request instance for DescribeDeviceResources.
491
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeDeviceResourcesRequest`
492
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeDeviceResourcesResponse`
493
+ def DescribeDeviceResources(request)
494
+ body = send_request('DescribeDeviceResources', request.serialize)
495
+ response = JSON.parse(body)
496
+ if response['Response'].key?('Error') == false
497
+ model = DescribeDeviceResourcesResponse.new
498
+ model.deserialize(response['Response'])
499
+ model
500
+ else
501
+ code = response['Response']['Error']['Code']
502
+ message = response['Response']['Error']['Message']
503
+ reqid = response['Response']['RequestId']
504
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
505
+ end
506
+ rescue TencentCloud::Common::TencentCloudSDKException => e
507
+ raise e
508
+ rescue StandardError => e
509
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
510
+ end
511
+
512
+ # 本接口(DescribeDeviceShadow)用于查询虚拟设备信息。
513
+
514
+ # @param request: Request instance for DescribeDeviceShadow.
515
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeDeviceShadowRequest`
516
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeDeviceShadowResponse`
517
+ def DescribeDeviceShadow(request)
518
+ body = send_request('DescribeDeviceShadow', request.serialize)
519
+ response = JSON.parse(body)
520
+ if response['Response'].key?('Error') == false
521
+ model = DescribeDeviceShadowResponse.new
522
+ model.deserialize(response['Response'])
523
+ model
524
+ else
525
+ code = response['Response']['Error']['Code']
526
+ message = response['Response']['Error']['Message']
527
+ reqid = response['Response']['RequestId']
528
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
529
+ end
530
+ rescue TencentCloud::Common::TencentCloudSDKException => e
531
+ raise e
532
+ rescue StandardError => e
533
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
+ end
535
+
536
+ # 本接口(DescribeDevices)用于查询物联网通信设备的设备列表。
537
+
538
+ # @param request: Request instance for DescribeDevices.
539
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeDevicesRequest`
540
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeDevicesResponse`
541
+ def DescribeDevices(request)
542
+ body = send_request('DescribeDevices', request.serialize)
543
+ response = JSON.parse(body)
544
+ if response['Response'].key?('Error') == false
545
+ model = DescribeDevicesResponse.new
546
+ model.deserialize(response['Response'])
547
+ model
548
+ else
549
+ code = response['Response']['Error']['Code']
550
+ message = response['Response']['Error']['Message']
551
+ reqid = response['Response']['RequestId']
552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
553
+ end
554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
555
+ raise e
556
+ rescue StandardError => e
557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
558
+ end
559
+
560
+ # 查询固件信息
561
+
562
+ # @param request: Request instance for DescribeFirmware.
563
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeFirmwareRequest`
564
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeFirmwareResponse`
565
+ def DescribeFirmware(request)
566
+ body = send_request('DescribeFirmware', request.serialize)
567
+ response = JSON.parse(body)
568
+ if response['Response'].key?('Error') == false
569
+ model = DescribeFirmwareResponse.new
570
+ model.deserialize(response['Response'])
571
+ model
572
+ else
573
+ code = response['Response']['Error']['Code']
574
+ message = response['Response']['Error']['Message']
575
+ reqid = response['Response']['RequestId']
576
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
577
+ end
578
+ rescue TencentCloud::Common::TencentCloudSDKException => e
579
+ raise e
580
+ rescue StandardError => e
581
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
+ end
583
+
584
+ # 查询固件升级任务详情
585
+
586
+ # @param request: Request instance for DescribeFirmwareTask.
587
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeFirmwareTaskRequest`
588
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeFirmwareTaskResponse`
589
+ def DescribeFirmwareTask(request)
590
+ body = send_request('DescribeFirmwareTask', request.serialize)
591
+ response = JSON.parse(body)
592
+ if response['Response'].key?('Error') == false
593
+ model = DescribeFirmwareTaskResponse.new
594
+ model.deserialize(response['Response'])
595
+ model
596
+ else
597
+ code = response['Response']['Error']['Code']
598
+ message = response['Response']['Error']['Message']
599
+ reqid = response['Response']['RequestId']
600
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
601
+ end
602
+ rescue TencentCloud::Common::TencentCloudSDKException => e
603
+ raise e
604
+ rescue StandardError => e
605
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
+ end
607
+
608
+ # 查询固件升级任务的设备列表
609
+
610
+ # @param request: Request instance for DescribeFirmwareTaskDevices.
611
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeFirmwareTaskDevicesRequest`
612
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeFirmwareTaskDevicesResponse`
613
+ def DescribeFirmwareTaskDevices(request)
614
+ body = send_request('DescribeFirmwareTaskDevices', request.serialize)
615
+ response = JSON.parse(body)
616
+ if response['Response'].key?('Error') == false
617
+ model = DescribeFirmwareTaskDevicesResponse.new
618
+ model.deserialize(response['Response'])
619
+ model
620
+ else
621
+ code = response['Response']['Error']['Code']
622
+ message = response['Response']['Error']['Message']
623
+ reqid = response['Response']['RequestId']
624
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
625
+ end
626
+ rescue TencentCloud::Common::TencentCloudSDKException => e
627
+ raise e
628
+ rescue StandardError => e
629
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
630
+ end
631
+
632
+ # 查询固件升级任务状态分布
633
+
634
+ # @param request: Request instance for DescribeFirmwareTaskDistribution.
635
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeFirmwareTaskDistributionRequest`
636
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeFirmwareTaskDistributionResponse`
637
+ def DescribeFirmwareTaskDistribution(request)
638
+ body = send_request('DescribeFirmwareTaskDistribution', request.serialize)
639
+ response = JSON.parse(body)
640
+ if response['Response'].key?('Error') == false
641
+ model = DescribeFirmwareTaskDistributionResponse.new
642
+ model.deserialize(response['Response'])
643
+ model
644
+ else
645
+ code = response['Response']['Error']['Code']
646
+ message = response['Response']['Error']['Message']
647
+ reqid = response['Response']['RequestId']
648
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
649
+ end
650
+ rescue TencentCloud::Common::TencentCloudSDKException => e
651
+ raise e
652
+ rescue StandardError => e
653
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
654
+ end
655
+
656
+ # 查询固件升级任务统计信息
657
+
658
+ # @param request: Request instance for DescribeFirmwareTaskStatistics.
659
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeFirmwareTaskStatisticsRequest`
660
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeFirmwareTaskStatisticsResponse`
661
+ def DescribeFirmwareTaskStatistics(request)
662
+ body = send_request('DescribeFirmwareTaskStatistics', request.serialize)
663
+ response = JSON.parse(body)
664
+ if response['Response'].key?('Error') == false
665
+ model = DescribeFirmwareTaskStatisticsResponse.new
666
+ model.deserialize(response['Response'])
667
+ model
668
+ else
669
+ code = response['Response']['Error']['Code']
670
+ message = response['Response']['Error']['Message']
671
+ reqid = response['Response']['RequestId']
672
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
673
+ end
674
+ rescue TencentCloud::Common::TencentCloudSDKException => e
675
+ raise e
676
+ rescue StandardError => e
677
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
678
+ end
679
+
680
+ # 查询固件升级任务列表
681
+
682
+ # @param request: Request instance for DescribeFirmwareTasks.
683
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeFirmwareTasksRequest`
684
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeFirmwareTasksResponse`
685
+ def DescribeFirmwareTasks(request)
686
+ body = send_request('DescribeFirmwareTasks', request.serialize)
687
+ response = JSON.parse(body)
688
+ if response['Response'].key?('Error') == false
689
+ model = DescribeFirmwareTasksResponse.new
690
+ model.deserialize(response['Response'])
691
+ model
692
+ else
693
+ code = response['Response']['Error']['Code']
694
+ message = response['Response']['Error']['Message']
695
+ reqid = response['Response']['RequestId']
696
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
697
+ end
698
+ rescue TencentCloud::Common::TencentCloudSDKException => e
699
+ raise e
700
+ rescue StandardError => e
701
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
702
+ end
703
+
704
+ # 本接口(DescribeGatewayBindDevices)用于获取网关绑定的子设备列表
705
+
706
+ # @param request: Request instance for DescribeGatewayBindDevices.
707
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeGatewayBindDevicesRequest`
708
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeGatewayBindDevicesResponse`
709
+ def DescribeGatewayBindDevices(request)
710
+ body = send_request('DescribeGatewayBindDevices', request.serialize)
711
+ response = JSON.parse(body)
712
+ if response['Response'].key?('Error') == false
713
+ model = DescribeGatewayBindDevicesResponse.new
714
+ model.deserialize(response['Response'])
715
+ model
716
+ else
717
+ code = response['Response']['Error']['Code']
718
+ message = response['Response']['Error']['Message']
719
+ reqid = response['Response']['RequestId']
720
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
721
+ end
722
+ rescue TencentCloud::Common::TencentCloudSDKException => e
723
+ raise e
724
+ rescue StandardError => e
725
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
726
+ end
727
+
728
+ # 查询私有化CA信息
729
+
730
+ # @param request: Request instance for DescribePrivateCA.
731
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribePrivateCARequest`
732
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribePrivateCAResponse`
733
+ def DescribePrivateCA(request)
734
+ body = send_request('DescribePrivateCA', request.serialize)
735
+ response = JSON.parse(body)
736
+ if response['Response'].key?('Error') == false
737
+ model = DescribePrivateCAResponse.new
738
+ model.deserialize(response['Response'])
739
+ model
740
+ else
741
+ code = response['Response']['Error']['Code']
742
+ message = response['Response']['Error']['Message']
743
+ reqid = response['Response']['RequestId']
744
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
745
+ end
746
+ rescue TencentCloud::Common::TencentCloudSDKException => e
747
+ raise e
748
+ rescue StandardError => e
749
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
750
+ end
751
+
752
+ # 查询私有CA绑定的产品列表
753
+
754
+ # @param request: Request instance for DescribePrivateCABindedProducts.
755
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribePrivateCABindedProductsRequest`
756
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribePrivateCABindedProductsResponse`
757
+ def DescribePrivateCABindedProducts(request)
758
+ body = send_request('DescribePrivateCABindedProducts', request.serialize)
759
+ response = JSON.parse(body)
760
+ if response['Response'].key?('Error') == false
761
+ model = DescribePrivateCABindedProductsResponse.new
762
+ model.deserialize(response['Response'])
763
+ model
764
+ else
765
+ code = response['Response']['Error']['Code']
766
+ message = response['Response']['Error']['Message']
767
+ reqid = response['Response']['RequestId']
768
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
769
+ end
770
+ rescue TencentCloud::Common::TencentCloudSDKException => e
771
+ raise e
772
+ rescue StandardError => e
773
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
774
+ end
775
+
776
+ # 查询私有CA证书列表
777
+
778
+ # @param request: Request instance for DescribePrivateCAs.
779
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribePrivateCAsRequest`
780
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribePrivateCAsResponse`
781
+ def DescribePrivateCAs(request)
782
+ body = send_request('DescribePrivateCAs', request.serialize)
783
+ response = JSON.parse(body)
784
+ if response['Response'].key?('Error') == false
785
+ model = DescribePrivateCAsResponse.new
786
+ model.deserialize(response['Response'])
787
+ model
788
+ else
789
+ code = response['Response']['Error']['Code']
790
+ message = response['Response']['Error']['Message']
791
+ reqid = response['Response']['RequestId']
792
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
793
+ end
794
+ rescue TencentCloud::Common::TencentCloudSDKException => e
795
+ raise e
796
+ rescue StandardError => e
797
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
798
+ end
799
+
800
+ # 本接口(DescribeProduct)用于查看产品详情
801
+
802
+ # @param request: Request instance for DescribeProduct.
803
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeProductRequest`
804
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeProductResponse`
805
+ def DescribeProduct(request)
806
+ body = send_request('DescribeProduct', request.serialize)
807
+ response = JSON.parse(body)
808
+ if response['Response'].key?('Error') == false
809
+ model = DescribeProductResponse.new
810
+ model.deserialize(response['Response'])
811
+ model
812
+ else
813
+ code = response['Response']['Error']['Code']
814
+ message = response['Response']['Error']['Message']
815
+ reqid = response['Response']['RequestId']
816
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
817
+ end
818
+ rescue TencentCloud::Common::TencentCloudSDKException => e
819
+ raise e
820
+ rescue StandardError => e
821
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
822
+ end
823
+
824
+ # 查询产品绑定的CA证书
825
+
826
+ # @param request: Request instance for DescribeProductCA.
827
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeProductCARequest`
828
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeProductCAResponse`
829
+ def DescribeProductCA(request)
830
+ body = send_request('DescribeProductCA', request.serialize)
831
+ response = JSON.parse(body)
832
+ if response['Response'].key?('Error') == false
833
+ model = DescribeProductCAResponse.new
834
+ model.deserialize(response['Response'])
835
+ model
836
+ else
837
+ code = response['Response']['Error']['Code']
838
+ message = response['Response']['Error']['Message']
839
+ reqid = response['Response']['RequestId']
840
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
841
+ end
842
+ rescue TencentCloud::Common::TencentCloudSDKException => e
843
+ raise e
844
+ rescue StandardError => e
845
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
846
+ end
847
+
848
+ # 本接口(DescribeProductResource)用于查询产品资源详情。
849
+
850
+ # @param request: Request instance for DescribeProductResource.
851
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeProductResourceRequest`
852
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeProductResourceResponse`
853
+ def DescribeProductResource(request)
854
+ body = send_request('DescribeProductResource', request.serialize)
855
+ response = JSON.parse(body)
856
+ if response['Response'].key?('Error') == false
857
+ model = DescribeProductResourceResponse.new
42
858
  model.deserialize(response['Response'])
43
859
  model
44
860
  else
@@ -53,16 +869,16 @@ module TencentCloud
53
869
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
870
  end
55
871
 
56
- # 创建私有CA证书
872
+ # 本接口(DescribeProductResources)用于查询产品资源列表。
57
873
 
58
- # @param request: Request instance for CreatePrivateCA.
59
- # @type request: :class:`Tencentcloud::iotcloud::V20210408::CreatePrivateCARequest`
60
- # @rtype: :class:`Tencentcloud::iotcloud::V20210408::CreatePrivateCAResponse`
61
- def CreatePrivateCA(request)
62
- body = send_request('CreatePrivateCA', request.serialize)
874
+ # @param request: Request instance for DescribeProductResources.
875
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeProductResourcesRequest`
876
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeProductResourcesResponse`
877
+ def DescribeProductResources(request)
878
+ body = send_request('DescribeProductResources', request.serialize)
63
879
  response = JSON.parse(body)
64
880
  if response['Response'].key?('Error') == false
65
- model = CreatePrivateCAResponse.new
881
+ model = DescribeProductResourcesResponse.new
66
882
  model.deserialize(response['Response'])
67
883
  model
68
884
  else
@@ -77,16 +893,16 @@ module TencentCloud
77
893
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
894
  end
79
895
 
80
- # 本接口(DeleteDevice)用于删除物联网通信设备。
896
+ # 本接口(DescribeProductTask)用于查看产品级别的任务信息
81
897
 
82
- # @param request: Request instance for DeleteDevice.
83
- # @type request: :class:`Tencentcloud::iotcloud::V20210408::DeleteDeviceRequest`
84
- # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DeleteDeviceResponse`
85
- def DeleteDevice(request)
86
- body = send_request('DeleteDevice', request.serialize)
898
+ # @param request: Request instance for DescribeProductTask.
899
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeProductTaskRequest`
900
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeProductTaskResponse`
901
+ def DescribeProductTask(request)
902
+ body = send_request('DescribeProductTask', request.serialize)
87
903
  response = JSON.parse(body)
88
904
  if response['Response'].key?('Error') == false
89
- model = DeleteDeviceResponse.new
905
+ model = DescribeProductTaskResponse.new
90
906
  model.deserialize(response['Response'])
91
907
  model
92
908
  else
@@ -101,16 +917,16 @@ module TencentCloud
101
917
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
918
  end
103
919
 
104
- # 删除私有CA证书
920
+ # 本接口(DescribeProductTasks)用于查看产品级别的任务列表
105
921
 
106
- # @param request: Request instance for DeletePrivateCA.
107
- # @type request: :class:`Tencentcloud::iotcloud::V20210408::DeletePrivateCARequest`
108
- # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DeletePrivateCAResponse`
109
- def DeletePrivateCA(request)
110
- body = send_request('DeletePrivateCA', request.serialize)
922
+ # @param request: Request instance for DescribeProductTasks.
923
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeProductTasksRequest`
924
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeProductTasksResponse`
925
+ def DescribeProductTasks(request)
926
+ body = send_request('DescribeProductTasks', request.serialize)
111
927
  response = JSON.parse(body)
112
928
  if response['Response'].key?('Error') == false
113
- model = DeletePrivateCAResponse.new
929
+ model = DescribeProductTasksResponse.new
114
930
  model.deserialize(response['Response'])
115
931
  model
116
932
  else
@@ -125,16 +941,16 @@ module TencentCloud
125
941
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
942
  end
127
943
 
128
- # 本接口(DeleteProduct)用于删除一个物联网通信产品
944
+ # 本接口(DescribeProducts)用于列出产品列表。
129
945
 
130
- # @param request: Request instance for DeleteProduct.
131
- # @type request: :class:`Tencentcloud::iotcloud::V20210408::DeleteProductRequest`
132
- # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DeleteProductResponse`
133
- def DeleteProduct(request)
134
- body = send_request('DeleteProduct', request.serialize)
946
+ # @param request: Request instance for DescribeProducts.
947
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeProductsRequest`
948
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeProductsResponse`
949
+ def DescribeProducts(request)
950
+ body = send_request('DescribeProducts', request.serialize)
135
951
  response = JSON.parse(body)
136
952
  if response['Response'].key?('Error') == false
137
- model = DeleteProductResponse.new
953
+ model = DescribeProductsResponse.new
138
954
  model.deserialize(response['Response'])
139
955
  model
140
956
  else
@@ -149,16 +965,16 @@ module TencentCloud
149
965
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
966
  end
151
967
 
152
- # 删除产品的私有CA证书
968
+ # 查询推送资源任务统计信息
153
969
 
154
- # @param request: Request instance for DeleteProductPrivateCA.
155
- # @type request: :class:`Tencentcloud::iotcloud::V20210408::DeleteProductPrivateCARequest`
156
- # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DeleteProductPrivateCAResponse`
157
- def DeleteProductPrivateCA(request)
158
- body = send_request('DeleteProductPrivateCA', request.serialize)
970
+ # @param request: Request instance for DescribePushResourceTaskStatistics.
971
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribePushResourceTaskStatisticsRequest`
972
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribePushResourceTaskStatisticsResponse`
973
+ def DescribePushResourceTaskStatistics(request)
974
+ body = send_request('DescribePushResourceTaskStatistics', request.serialize)
159
975
  response = JSON.parse(body)
160
976
  if response['Response'].key?('Error') == false
161
- model = DeleteProductPrivateCAResponse.new
977
+ model = DescribePushResourceTaskStatisticsResponse.new
162
978
  model.deserialize(response['Response'])
163
979
  model
164
980
  else
@@ -173,16 +989,16 @@ module TencentCloud
173
989
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
990
  end
175
991
 
176
- # 本接口(DescribeDevice)用于查看设备信息
992
+ # 查询资源推送任务列表
177
993
 
178
- # @param request: Request instance for DescribeDevice.
179
- # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeDeviceRequest`
180
- # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeDeviceResponse`
181
- def DescribeDevice(request)
182
- body = send_request('DescribeDevice', request.serialize)
994
+ # @param request: Request instance for DescribeResourceTasks.
995
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeResourceTasksRequest`
996
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeResourceTasksResponse`
997
+ def DescribeResourceTasks(request)
998
+ body = send_request('DescribeResourceTasks', request.serialize)
183
999
  response = JSON.parse(body)
184
1000
  if response['Response'].key?('Error') == false
185
- model = DescribeDeviceResponse.new
1001
+ model = DescribeResourceTasksResponse.new
186
1002
  model.deserialize(response['Response'])
187
1003
  model
188
1004
  else
@@ -197,16 +1013,16 @@ module TencentCloud
197
1013
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
1014
  end
199
1015
 
200
- # 本接口(DescribeDevices)用于查询物联网通信设备的设备列表。
1016
+ # 本接口(DisableTopicRule)用于禁用规则
201
1017
 
202
- # @param request: Request instance for DescribeDevices.
203
- # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeDevicesRequest`
204
- # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeDevicesResponse`
205
- def DescribeDevices(request)
206
- body = send_request('DescribeDevices', request.serialize)
1018
+ # @param request: Request instance for DisableTopicRule.
1019
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DisableTopicRuleRequest`
1020
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DisableTopicRuleResponse`
1021
+ def DisableTopicRule(request)
1022
+ body = send_request('DisableTopicRule', request.serialize)
207
1023
  response = JSON.parse(body)
208
1024
  if response['Response'].key?('Error') == false
209
- model = DescribeDevicesResponse.new
1025
+ model = DisableTopicRuleResponse.new
210
1026
  model.deserialize(response['Response'])
211
1027
  model
212
1028
  else
@@ -221,16 +1037,16 @@ module TencentCloud
221
1037
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
1038
  end
223
1039
 
224
- # 查询私有化CA信息
1040
+ # 本接口(DownloadDeviceResource)用于下载设备资源
225
1041
 
226
- # @param request: Request instance for DescribePrivateCA.
227
- # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribePrivateCARequest`
228
- # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribePrivateCAResponse`
229
- def DescribePrivateCA(request)
230
- body = send_request('DescribePrivateCA', request.serialize)
1042
+ # @param request: Request instance for DownloadDeviceResource.
1043
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::DownloadDeviceResourceRequest`
1044
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DownloadDeviceResourceResponse`
1045
+ def DownloadDeviceResource(request)
1046
+ body = send_request('DownloadDeviceResource', request.serialize)
231
1047
  response = JSON.parse(body)
232
1048
  if response['Response'].key?('Error') == false
233
- model = DescribePrivateCAResponse.new
1049
+ model = DownloadDeviceResourceResponse.new
234
1050
  model.deserialize(response['Response'])
235
1051
  model
236
1052
  else
@@ -245,16 +1061,16 @@ module TencentCloud
245
1061
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
1062
  end
247
1063
 
248
- # 查询私有CA绑定的产品列表
1064
+ # 编辑固件信息
249
1065
 
250
- # @param request: Request instance for DescribePrivateCABindedProducts.
251
- # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribePrivateCABindedProductsRequest`
252
- # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribePrivateCABindedProductsResponse`
253
- def DescribePrivateCABindedProducts(request)
254
- body = send_request('DescribePrivateCABindedProducts', request.serialize)
1066
+ # @param request: Request instance for EditFirmware.
1067
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::EditFirmwareRequest`
1068
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::EditFirmwareResponse`
1069
+ def EditFirmware(request)
1070
+ body = send_request('EditFirmware', request.serialize)
255
1071
  response = JSON.parse(body)
256
1072
  if response['Response'].key?('Error') == false
257
- model = DescribePrivateCABindedProductsResponse.new
1073
+ model = EditFirmwareResponse.new
258
1074
  model.deserialize(response['Response'])
259
1075
  model
260
1076
  else
@@ -269,16 +1085,16 @@ module TencentCloud
269
1085
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
1086
  end
271
1087
 
272
- # 查询私有CA证书列表
1088
+ # 本接口(EnableTopicRule)用于启用规则
273
1089
 
274
- # @param request: Request instance for DescribePrivateCAs.
275
- # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribePrivateCAsRequest`
276
- # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribePrivateCAsResponse`
277
- def DescribePrivateCAs(request)
278
- body = send_request('DescribePrivateCAs', request.serialize)
1090
+ # @param request: Request instance for EnableTopicRule.
1091
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::EnableTopicRuleRequest`
1092
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::EnableTopicRuleResponse`
1093
+ def EnableTopicRule(request)
1094
+ body = send_request('EnableTopicRule', request.serialize)
279
1095
  response = JSON.parse(body)
280
1096
  if response['Response'].key?('Error') == false
281
- model = DescribePrivateCAsResponse.new
1097
+ model = EnableTopicRuleResponse.new
282
1098
  model.deserialize(response['Response'])
283
1099
  model
284
1100
  else
@@ -293,16 +1109,16 @@ module TencentCloud
293
1109
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
1110
  end
295
1111
 
296
- # 本接口(DescribeProduct)用于查看产品详情
1112
+ # 本接口(GetCOSURL)用于获取固件存储在COS的URL
297
1113
 
298
- # @param request: Request instance for DescribeProduct.
299
- # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeProductRequest`
300
- # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeProductResponse`
301
- def DescribeProduct(request)
302
- body = send_request('DescribeProduct', request.serialize)
1114
+ # @param request: Request instance for GetCOSURL.
1115
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::GetCOSURLRequest`
1116
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::GetCOSURLResponse`
1117
+ def GetCOSURL(request)
1118
+ body = send_request('GetCOSURL', request.serialize)
303
1119
  response = JSON.parse(body)
304
1120
  if response['Response'].key?('Error') == false
305
- model = DescribeProductResponse.new
1121
+ model = GetCOSURLResponse.new
306
1122
  model.deserialize(response['Response'])
307
1123
  model
308
1124
  else
@@ -317,16 +1133,16 @@ module TencentCloud
317
1133
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
1134
  end
319
1135
 
320
- # 查询产品绑定的CA证书
1136
+ # 本接口(GetUserResourceInfo)用于查询用户资源使用信息。
321
1137
 
322
- # @param request: Request instance for DescribeProductCA.
323
- # @type request: :class:`Tencentcloud::iotcloud::V20210408::DescribeProductCARequest`
324
- # @rtype: :class:`Tencentcloud::iotcloud::V20210408::DescribeProductCAResponse`
325
- def DescribeProductCA(request)
326
- body = send_request('DescribeProductCA', request.serialize)
1138
+ # @param request: Request instance for GetUserResourceInfo.
1139
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::GetUserResourceInfoRequest`
1140
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::GetUserResourceInfoResponse`
1141
+ def GetUserResourceInfo(request)
1142
+ body = send_request('GetUserResourceInfo', request.serialize)
327
1143
  response = JSON.parse(body)
328
1144
  if response['Response'].key?('Error') == false
329
- model = DescribeProductCAResponse.new
1145
+ model = GetUserResourceInfoResponse.new
330
1146
  model.deserialize(response['Response'])
331
1147
  model
332
1148
  else
@@ -437,6 +1253,126 @@ module TencentCloud
437
1253
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
438
1254
  end
439
1255
 
1256
+ # 本接口(PublishMessage)用于向某个主题发消息。
1257
+
1258
+ # @param request: Request instance for PublishMessage.
1259
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::PublishMessageRequest`
1260
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::PublishMessageResponse`
1261
+ def PublishMessage(request)
1262
+ body = send_request('PublishMessage', request.serialize)
1263
+ response = JSON.parse(body)
1264
+ if response['Response'].key?('Error') == false
1265
+ model = PublishMessageResponse.new
1266
+ model.deserialize(response['Response'])
1267
+ model
1268
+ else
1269
+ code = response['Response']['Error']['Code']
1270
+ message = response['Response']['Error']['Message']
1271
+ reqid = response['Response']['RequestId']
1272
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1273
+ end
1274
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1275
+ raise e
1276
+ rescue StandardError => e
1277
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1278
+ end
1279
+
1280
+ # 发布RRPC消息
1281
+
1282
+ # @param request: Request instance for PublishRRPCMessage.
1283
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::PublishRRPCMessageRequest`
1284
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::PublishRRPCMessageResponse`
1285
+ def PublishRRPCMessage(request)
1286
+ body = send_request('PublishRRPCMessage', request.serialize)
1287
+ response = JSON.parse(body)
1288
+ if response['Response'].key?('Error') == false
1289
+ model = PublishRRPCMessageResponse.new
1290
+ model.deserialize(response['Response'])
1291
+ model
1292
+ else
1293
+ code = response['Response']['Error']['Code']
1294
+ message = response['Response']['Error']['Message']
1295
+ reqid = response['Response']['RequestId']
1296
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1297
+ end
1298
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1299
+ raise e
1300
+ rescue StandardError => e
1301
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1302
+ end
1303
+
1304
+ # 本接口(ReplaceTopicRule)用于修改替换规则
1305
+
1306
+ # @param request: Request instance for ReplaceTopicRule.
1307
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::ReplaceTopicRuleRequest`
1308
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::ReplaceTopicRuleResponse`
1309
+ def ReplaceTopicRule(request)
1310
+ body = send_request('ReplaceTopicRule', request.serialize)
1311
+ response = JSON.parse(body)
1312
+ if response['Response'].key?('Error') == false
1313
+ model = ReplaceTopicRuleResponse.new
1314
+ model.deserialize(response['Response'])
1315
+ model
1316
+ else
1317
+ code = response['Response']['Error']['Code']
1318
+ message = response['Response']['Error']['Message']
1319
+ reqid = response['Response']['RequestId']
1320
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1321
+ end
1322
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1323
+ raise e
1324
+ rescue StandardError => e
1325
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1326
+ end
1327
+
1328
+ # 重置设备的连接状态
1329
+
1330
+ # @param request: Request instance for ResetDeviceState.
1331
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::ResetDeviceStateRequest`
1332
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::ResetDeviceStateResponse`
1333
+ def ResetDeviceState(request)
1334
+ body = send_request('ResetDeviceState', request.serialize)
1335
+ response = JSON.parse(body)
1336
+ if response['Response'].key?('Error') == false
1337
+ model = ResetDeviceStateResponse.new
1338
+ model.deserialize(response['Response'])
1339
+ model
1340
+ else
1341
+ code = response['Response']['Error']['Code']
1342
+ message = response['Response']['Error']['Message']
1343
+ reqid = response['Response']['RequestId']
1344
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1345
+ end
1346
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1347
+ raise e
1348
+ rescue StandardError => e
1349
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1350
+ end
1351
+
1352
+ # 重试设备升级任务
1353
+
1354
+ # @param request: Request instance for RetryDeviceFirmwareTask.
1355
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::RetryDeviceFirmwareTaskRequest`
1356
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::RetryDeviceFirmwareTaskResponse`
1357
+ def RetryDeviceFirmwareTask(request)
1358
+ body = send_request('RetryDeviceFirmwareTask', request.serialize)
1359
+ response = JSON.parse(body)
1360
+ if response['Response'].key?('Error') == false
1361
+ model = RetryDeviceFirmwareTaskResponse.new
1362
+ model.deserialize(response['Response'])
1363
+ model
1364
+ else
1365
+ code = response['Response']['Error']['Code']
1366
+ message = response['Response']['Error']['Message']
1367
+ reqid = response['Response']['RequestId']
1368
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1369
+ end
1370
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1371
+ raise e
1372
+ rescue StandardError => e
1373
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1374
+ end
1375
+
440
1376
  # 批量设置产品禁用状态
441
1377
 
442
1378
  # @param request: Request instance for SetProductsForbiddenStatus.
@@ -461,6 +1397,54 @@ module TencentCloud
461
1397
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
462
1398
  end
463
1399
 
1400
+ # 本接口(UnbindDevices)用于网关设备批量解绑子设备
1401
+
1402
+ # @param request: Request instance for UnbindDevices.
1403
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::UnbindDevicesRequest`
1404
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::UnbindDevicesResponse`
1405
+ def UnbindDevices(request)
1406
+ body = send_request('UnbindDevices', request.serialize)
1407
+ response = JSON.parse(body)
1408
+ if response['Response'].key?('Error') == false
1409
+ model = UnbindDevicesResponse.new
1410
+ model.deserialize(response['Response'])
1411
+ model
1412
+ else
1413
+ code = response['Response']['Error']['Code']
1414
+ message = response['Response']['Error']['Message']
1415
+ reqid = response['Response']['RequestId']
1416
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1417
+ end
1418
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1419
+ raise e
1420
+ rescue StandardError => e
1421
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1422
+ end
1423
+
1424
+ # 启用或者禁用设备
1425
+
1426
+ # @param request: Request instance for UpdateDeviceAvailableState.
1427
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::UpdateDeviceAvailableStateRequest`
1428
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::UpdateDeviceAvailableStateResponse`
1429
+ def UpdateDeviceAvailableState(request)
1430
+ body = send_request('UpdateDeviceAvailableState', request.serialize)
1431
+ response = JSON.parse(body)
1432
+ if response['Response'].key?('Error') == false
1433
+ model = UpdateDeviceAvailableStateResponse.new
1434
+ model.deserialize(response['Response'])
1435
+ model
1436
+ else
1437
+ code = response['Response']['Error']['Code']
1438
+ message = response['Response']['Error']['Message']
1439
+ reqid = response['Response']['RequestId']
1440
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1441
+ end
1442
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1443
+ raise e
1444
+ rescue StandardError => e
1445
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1446
+ end
1447
+
464
1448
  # 设置设备上报的日志级别
465
1449
 
466
1450
  # @param request: Request instance for UpdateDeviceLogLevel.
@@ -509,6 +1493,30 @@ module TencentCloud
509
1493
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
510
1494
  end
511
1495
 
1496
+ # 本接口(UpdateDeviceShadow)用于更新虚拟设备信息。
1497
+
1498
+ # @param request: Request instance for UpdateDeviceShadow.
1499
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::UpdateDeviceShadowRequest`
1500
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::UpdateDeviceShadowResponse`
1501
+ def UpdateDeviceShadow(request)
1502
+ body = send_request('UpdateDeviceShadow', request.serialize)
1503
+ response = JSON.parse(body)
1504
+ if response['Response'].key?('Error') == false
1505
+ model = UpdateDeviceShadowResponse.new
1506
+ model.deserialize(response['Response'])
1507
+ model
1508
+ else
1509
+ code = response['Response']['Error']['Code']
1510
+ message = response['Response']['Error']['Message']
1511
+ reqid = response['Response']['RequestId']
1512
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1513
+ end
1514
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1515
+ raise e
1516
+ rescue StandardError => e
1517
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1518
+ end
1519
+
512
1520
  # 批量启用或者禁用设备
513
1521
 
514
1522
  # @param request: Request instance for UpdateDevicesEnableState.
@@ -605,6 +1613,54 @@ module TencentCloud
605
1613
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
1614
  end
607
1615
 
1616
+ # 本接口(UpdateTopicPolicy)用于更新Topic信息
1617
+
1618
+ # @param request: Request instance for UpdateTopicPolicy.
1619
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::UpdateTopicPolicyRequest`
1620
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::UpdateTopicPolicyResponse`
1621
+ def UpdateTopicPolicy(request)
1622
+ body = send_request('UpdateTopicPolicy', request.serialize)
1623
+ response = JSON.parse(body)
1624
+ if response['Response'].key?('Error') == false
1625
+ model = UpdateTopicPolicyResponse.new
1626
+ model.deserialize(response['Response'])
1627
+ model
1628
+ else
1629
+ code = response['Response']['Error']['Code']
1630
+ message = response['Response']['Error']['Message']
1631
+ reqid = response['Response']['RequestId']
1632
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1633
+ end
1634
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1635
+ raise e
1636
+ rescue StandardError => e
1637
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1638
+ end
1639
+
1640
+ # 本接口(UploadFirmware)用于上传设备固件信息
1641
+
1642
+ # @param request: Request instance for UploadFirmware.
1643
+ # @type request: :class:`Tencentcloud::iotcloud::V20210408::UploadFirmwareRequest`
1644
+ # @rtype: :class:`Tencentcloud::iotcloud::V20210408::UploadFirmwareResponse`
1645
+ def UploadFirmware(request)
1646
+ body = send_request('UploadFirmware', request.serialize)
1647
+ response = JSON.parse(body)
1648
+ if response['Response'].key?('Error') == false
1649
+ model = UploadFirmwareResponse.new
1650
+ model.deserialize(response['Response'])
1651
+ model
1652
+ else
1653
+ code = response['Response']['Error']['Code']
1654
+ message = response['Response']['Error']['Message']
1655
+ reqid = response['Response']['RequestId']
1656
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1657
+ end
1658
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1659
+ raise e
1660
+ rescue StandardError => e
1661
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1662
+ end
1663
+
608
1664
 
609
1665
  end
610
1666
  end