Class: TencentCloud::Iotcloud::V20180614::Client

Inherits:
Common::AbstractClient
  • Object
show all
Defined in:
lib/v20180614/client.rb

Instance Method Summary collapse

Constructor Details

#initialize(credential, region, profile = nil) ⇒ Client

Returns a new instance of Client.



24
25
26
27
28
29
# File 'lib/v20180614/client.rb', line 24

def initialize(credential, region, profile = nil)
    api_version = '2018-06-14'
    api_endpoint = 'iotcloud.tencentcloudapi.com'
    sdk_version = 'IOTCLOUD_' + File.read(File.expand_path('../VERSION', __dir__)).strip
    super(credential, region, api_version, api_endpoint, sdk_version, profile)
end

Instance Method Details

#BatchUpdateFirmware(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::BatchUpdateFirmwareResponse`

Parameters:

  • request:

    Request instance for BatchUpdateFirmware.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/v20180614/client.rb', line 37

def BatchUpdateFirmware(request)
  body = send_request('BatchUpdateFirmware', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = BatchUpdateFirmwareResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#BindDevices(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::BindDevicesResponse`

Parameters:

  • request:

    Request instance for BindDevices.



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# File 'lib/v20180614/client.rb', line 61

def BindDevices(request)
  body = send_request('BindDevices', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = BindDevicesResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CancelDeviceFirmwareTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::CancelDeviceFirmwareTaskResponse`

Parameters:

  • request:

    Request instance for CancelDeviceFirmwareTask.



85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# File 'lib/v20180614/client.rb', line 85

def CancelDeviceFirmwareTask(request)
  body = send_request('CancelDeviceFirmwareTask', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CancelDeviceFirmwareTaskResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CancelTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::CancelTaskResponse`

Parameters:

  • request:

    Request instance for CancelTask.



109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# File 'lib/v20180614/client.rb', line 109

def CancelTask(request)
  body = send_request('CancelTask', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CancelTaskResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateDevice(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::CreateDeviceResponse`

Parameters:

  • request:

    Request instance for CreateDevice.



133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# File 'lib/v20180614/client.rb', line 133

def CreateDevice(request)
  body = send_request('CreateDevice', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateDeviceResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateLoraDevice(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::CreateLoraDeviceResponse`

Parameters:

  • request:

    Request instance for CreateLoraDevice.



157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# File 'lib/v20180614/client.rb', line 157

def CreateLoraDevice(request)
  body = send_request('CreateLoraDevice', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateLoraDeviceResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateMultiDevice(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::CreateMultiDeviceResponse`

Parameters:

  • request:

    Request instance for CreateMultiDevice.



181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# File 'lib/v20180614/client.rb', line 181

def CreateMultiDevice(request)
  body = send_request('CreateMultiDevice', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateMultiDeviceResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateMultiDevicesTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::CreateMultiDevicesTaskResponse`

Parameters:

  • request:

    Request instance for CreateMultiDevicesTask.



205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
# File 'lib/v20180614/client.rb', line 205

def CreateMultiDevicesTask(request)
  body = send_request('CreateMultiDevicesTask', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateMultiDevicesTaskResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateProduct(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::CreateProductResponse`

Parameters:

  • request:

    Request instance for CreateProduct.



229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
# File 'lib/v20180614/client.rb', line 229

def CreateProduct(request)
  body = send_request('CreateProduct', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateProductResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::CreateTaskResponse`

Parameters:

  • request:

    Request instance for CreateTask.



253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
# File 'lib/v20180614/client.rb', line 253

def CreateTask(request)
  body = send_request('CreateTask', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateTaskResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateTaskFileUrl(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::CreateTaskFileUrlResponse`

Parameters:

  • request:

    Request instance for CreateTaskFileUrl.



277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
# File 'lib/v20180614/client.rb', line 277

def CreateTaskFileUrl(request)
  body = send_request('CreateTaskFileUrl', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateTaskFileUrlResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateTopicPolicy(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::CreateTopicPolicyResponse`

Parameters:

  • request:

    Request instance for CreateTopicPolicy.



301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
# File 'lib/v20180614/client.rb', line 301

def CreateTopicPolicy(request)
  body = send_request('CreateTopicPolicy', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateTopicPolicyResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#CreateTopicRule(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::CreateTopicRuleResponse`

Parameters:

  • request:

    Request instance for CreateTopicRule.



325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
# File 'lib/v20180614/client.rb', line 325

def CreateTopicRule(request)
  body = send_request('CreateTopicRule', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateTopicRuleResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DeleteDevice(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DeleteDeviceResponse`

Parameters:

  • request:

    Request instance for DeleteDevice.



349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
# File 'lib/v20180614/client.rb', line 349

def DeleteDevice(request)
  body = send_request('DeleteDevice', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteDeviceResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DeleteDeviceResource(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DeleteDeviceResourceResponse`

Parameters:

  • request:

    Request instance for DeleteDeviceResource.



373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
# File 'lib/v20180614/client.rb', line 373

def DeleteDeviceResource(request)
  body = send_request('DeleteDeviceResource', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteDeviceResourceResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DeleteLoraDevice(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DeleteLoraDeviceResponse`

Parameters:

  • request:

    Request instance for DeleteLoraDevice.



397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
# File 'lib/v20180614/client.rb', line 397

def DeleteLoraDevice(request)
  body = send_request('DeleteLoraDevice', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteLoraDeviceResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DeleteProduct(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DeleteProductResponse`

Parameters:

  • request:

    Request instance for DeleteProduct.



421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
# File 'lib/v20180614/client.rb', line 421

def DeleteProduct(request)
  body = send_request('DeleteProduct', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteProductResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DeleteTopicRule(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DeleteTopicRuleResponse`

Parameters:

  • request:

    Request instance for DeleteTopicRule.



445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
# File 'lib/v20180614/client.rb', line 445

def DeleteTopicRule(request)
  body = send_request('DeleteTopicRule', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteTopicRuleResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeAllDevices(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeAllDevicesResponse`

Parameters:

  • request:

    Request instance for DescribeAllDevices.



469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
# File 'lib/v20180614/client.rb', line 469

def DescribeAllDevices(request)
  body = send_request('DescribeAllDevices', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeAllDevicesResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeDevice(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeDeviceResponse`

Parameters:

  • request:

    Request instance for DescribeDevice.



493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
# File 'lib/v20180614/client.rb', line 493

def DescribeDevice(request)
  body = send_request('DescribeDevice', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeDeviceResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeDeviceClientKey(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeDeviceClientKeyResponse`

Parameters:

  • request:

    Request instance for DescribeDeviceClientKey.



517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
# File 'lib/v20180614/client.rb', line 517

def DescribeDeviceClientKey(request)
  body = send_request('DescribeDeviceClientKey', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeDeviceClientKeyResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeDeviceResource(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeDeviceResourceResponse`

Parameters:

  • request:

    Request instance for DescribeDeviceResource.



541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
# File 'lib/v20180614/client.rb', line 541

def DescribeDeviceResource(request)
  body = send_request('DescribeDeviceResource', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeDeviceResourceResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeDeviceResources(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeDeviceResourcesResponse`

Parameters:

  • request:

    Request instance for DescribeDeviceResources.



565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
# File 'lib/v20180614/client.rb', line 565

def DescribeDeviceResources(request)
  body = send_request('DescribeDeviceResources', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeDeviceResourcesResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeDevices(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeDevicesResponse`

Parameters:

  • request:

    Request instance for DescribeDevices.



613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
# File 'lib/v20180614/client.rb', line 613

def DescribeDevices(request)
  body = send_request('DescribeDevices', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeDevicesResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeDeviceShadow(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeDeviceShadowResponse`

Parameters:

  • request:

    Request instance for DescribeDeviceShadow.



589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
# File 'lib/v20180614/client.rb', line 589

def DescribeDeviceShadow(request)
  body = send_request('DescribeDeviceShadow', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeDeviceShadowResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeFirmware(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeFirmwareResponse`

Parameters:

  • request:

    Request instance for DescribeFirmware.



637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
# File 'lib/v20180614/client.rb', line 637

def DescribeFirmware(request)
  body = send_request('DescribeFirmware', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeFirmwareResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeFirmwareTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeFirmwareTaskResponse`

Parameters:

  • request:

    Request instance for DescribeFirmwareTask.



661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
# File 'lib/v20180614/client.rb', line 661

def DescribeFirmwareTask(request)
  body = send_request('DescribeFirmwareTask', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeFirmwareTaskResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeFirmwareTaskDevices(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeFirmwareTaskDevicesResponse`

Parameters:

  • request:

    Request instance for DescribeFirmwareTaskDevices.



685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
# File 'lib/v20180614/client.rb', line 685

def DescribeFirmwareTaskDevices(request)
  body = send_request('DescribeFirmwareTaskDevices', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeFirmwareTaskDevicesResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeFirmwareTaskDistribution(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeFirmwareTaskDistributionResponse`

Parameters:

  • request:

    Request instance for DescribeFirmwareTaskDistribution.



709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
# File 'lib/v20180614/client.rb', line 709

def DescribeFirmwareTaskDistribution(request)
  body = send_request('DescribeFirmwareTaskDistribution', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeFirmwareTaskDistributionResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeFirmwareTasks(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeFirmwareTasksResponse`

Parameters:

  • request:

    Request instance for DescribeFirmwareTasks.



757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
# File 'lib/v20180614/client.rb', line 757

def DescribeFirmwareTasks(request)
  body = send_request('DescribeFirmwareTasks', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeFirmwareTasksResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeFirmwareTaskStatistics(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeFirmwareTaskStatisticsResponse`

Parameters:

  • request:

    Request instance for DescribeFirmwareTaskStatistics.



733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
# File 'lib/v20180614/client.rb', line 733

def DescribeFirmwareTaskStatistics(request)
  body = send_request('DescribeFirmwareTaskStatistics', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeFirmwareTaskStatisticsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeLoraDevice(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeLoraDeviceResponse`

Parameters:

  • request:

    Request instance for DescribeLoraDevice.



781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
# File 'lib/v20180614/client.rb', line 781

def DescribeLoraDevice(request)
  body = send_request('DescribeLoraDevice', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeLoraDeviceResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeMultiDevices(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeMultiDevicesResponse`

Parameters:

  • request:

    Request instance for DescribeMultiDevices.



829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
# File 'lib/v20180614/client.rb', line 829

def DescribeMultiDevices(request)
  body = send_request('DescribeMultiDevices', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeMultiDevicesResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeMultiDevTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeMultiDevTaskResponse`

Parameters:

  • request:

    Request instance for DescribeMultiDevTask.



805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
# File 'lib/v20180614/client.rb', line 805

def DescribeMultiDevTask(request)
  body = send_request('DescribeMultiDevTask', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeMultiDevTaskResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeProduct(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeProductResponse`

Parameters:

  • request:

    Request instance for DescribeProduct.



853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
# File 'lib/v20180614/client.rb', line 853

def DescribeProduct(request)
  body = send_request('DescribeProduct', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeProductResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeProductResource(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeProductResourceResponse`

Parameters:

  • request:

    Request instance for DescribeProductResource.



877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
# File 'lib/v20180614/client.rb', line 877

def DescribeProductResource(request)
  body = send_request('DescribeProductResource', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeProductResourceResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeProductResources(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeProductResourcesResponse`

Parameters:

  • request:

    Request instance for DescribeProductResources.



901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
# File 'lib/v20180614/client.rb', line 901

def DescribeProductResources(request)
  body = send_request('DescribeProductResources', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeProductResourcesResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeProducts(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeProductsResponse`

Parameters:

  • request:

    Request instance for DescribeProducts.



973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
# File 'lib/v20180614/client.rb', line 973

def DescribeProducts(request)
  body = send_request('DescribeProducts', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeProductsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeProductTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeProductTaskResponse`

Parameters:

  • request:

    Request instance for DescribeProductTask.



925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
# File 'lib/v20180614/client.rb', line 925

def DescribeProductTask(request)
  body = send_request('DescribeProductTask', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeProductTaskResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeProductTasks(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeProductTasksResponse`

Parameters:

  • request:

    Request instance for DescribeProductTasks.



949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
# File 'lib/v20180614/client.rb', line 949

def DescribeProductTasks(request)
  body = send_request('DescribeProductTasks', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeProductTasksResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribePushResourceTaskStatistics(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribePushResourceTaskStatisticsResponse`

Parameters:

  • request:

    Request instance for DescribePushResourceTaskStatistics.



997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
# File 'lib/v20180614/client.rb', line 997

def DescribePushResourceTaskStatistics(request)
  body = send_request('DescribePushResourceTaskStatistics', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribePushResourceTaskStatisticsResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeResourceTasks(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeResourceTasksResponse`

Parameters:

  • request:

    Request instance for DescribeResourceTasks.



1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
# File 'lib/v20180614/client.rb', line 1021

def DescribeResourceTasks(request)
  body = send_request('DescribeResourceTasks', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeResourceTasksResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeTaskResponse`

Parameters:

  • request:

    Request instance for DescribeTask.



1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
# File 'lib/v20180614/client.rb', line 1045

def DescribeTask(request)
  body = send_request('DescribeTask', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeTaskResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DescribeTasks(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DescribeTasksResponse`

Parameters:

  • request:

    Request instance for DescribeTasks.



1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
# File 'lib/v20180614/client.rb', line 1069

def DescribeTasks(request)
  body = send_request('DescribeTasks', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeTasksResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DisableTopicRule(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DisableTopicRuleResponse`

Parameters:

  • request:

    Request instance for DisableTopicRule.



1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
# File 'lib/v20180614/client.rb', line 1093

def DisableTopicRule(request)
  body = send_request('DisableTopicRule', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DisableTopicRuleResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#DownloadDeviceResource(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::DownloadDeviceResourceResponse`

Parameters:

  • request:

    Request instance for DownloadDeviceResource.



1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
# File 'lib/v20180614/client.rb', line 1117

def DownloadDeviceResource(request)
  body = send_request('DownloadDeviceResource', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DownloadDeviceResourceResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#EditFirmware(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::EditFirmwareResponse`

Parameters:

  • request:

    Request instance for EditFirmware.



1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
# File 'lib/v20180614/client.rb', line 1141

def EditFirmware(request)
  body = send_request('EditFirmware', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = EditFirmwareResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#EnableTopicRule(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::EnableTopicRuleResponse`

Parameters:

  • request:

    Request instance for EnableTopicRule.



1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
# File 'lib/v20180614/client.rb', line 1165

def EnableTopicRule(request)
  body = send_request('EnableTopicRule', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = EnableTopicRuleResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#GetCOSURL(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::GetCOSURLResponse`

Parameters:

  • request:

    Request instance for GetCOSURL.



1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
# File 'lib/v20180614/client.rb', line 1189

def GetCOSURL(request)
  body = send_request('GetCOSURL', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = GetCOSURLResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#GetUserResourceInfo(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::GetUserResourceInfoResponse`

Parameters:

  • request:

    Request instance for GetUserResourceInfo.



1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
# File 'lib/v20180614/client.rb', line 1213

def GetUserResourceInfo(request)
  body = send_request('GetUserResourceInfo', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = GetUserResourceInfoResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ListLog(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::ListLogResponse`

Parameters:

  • request:

    Request instance for ListLog.



1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
# File 'lib/v20180614/client.rb', line 1237

def ListLog(request)
  body = send_request('ListLog', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ListLogResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ListLogPayload(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::ListLogPayloadResponse`

Parameters:

  • request:

    Request instance for ListLogPayload.



1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
# File 'lib/v20180614/client.rb', line 1261

def ListLogPayload(request)
  body = send_request('ListLogPayload', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ListLogPayloadResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ListSDKLog(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::ListSDKLogResponse`

Parameters:

  • request:

    Request instance for ListSDKLog.



1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
# File 'lib/v20180614/client.rb', line 1285

def ListSDKLog(request)
  body = send_request('ListSDKLog', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ListSDKLogResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#PublishAsDevice(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::PublishAsDeviceResponse`

Parameters:

  • request:

    Request instance for PublishAsDevice.



1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
# File 'lib/v20180614/client.rb', line 1309

def PublishAsDevice(request)
  body = send_request('PublishAsDevice', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = PublishAsDeviceResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#PublishBroadcastMessage(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::PublishBroadcastMessageResponse`

Parameters:

  • request:

    Request instance for PublishBroadcastMessage.



1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
# File 'lib/v20180614/client.rb', line 1333

def PublishBroadcastMessage(request)
  body = send_request('PublishBroadcastMessage', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = PublishBroadcastMessageResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#PublishMessage(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::PublishMessageResponse`

Parameters:

  • request:

    Request instance for PublishMessage.



1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
# File 'lib/v20180614/client.rb', line 1357

def PublishMessage(request)
  body = send_request('PublishMessage', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = PublishMessageResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#PublishRRPCMessage(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::PublishRRPCMessageResponse`

Parameters:

  • request:

    Request instance for PublishRRPCMessage.



1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
# File 'lib/v20180614/client.rb', line 1381

def PublishRRPCMessage(request)
  body = send_request('PublishRRPCMessage', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = PublishRRPCMessageResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#PublishToDevice(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::PublishToDeviceResponse`

Parameters:

  • request:

    Request instance for PublishToDevice.



1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
# File 'lib/v20180614/client.rb', line 1405

def PublishToDevice(request)
  body = send_request('PublishToDevice', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = PublishToDeviceResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ReplaceTopicRule(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::ReplaceTopicRuleResponse`

Parameters:

  • request:

    Request instance for ReplaceTopicRule.



1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
# File 'lib/v20180614/client.rb', line 1429

def ReplaceTopicRule(request)
  body = send_request('ReplaceTopicRule', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ReplaceTopicRuleResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#ResetDeviceState(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::ResetDeviceStateResponse`

Parameters:

  • request:

    Request instance for ResetDeviceState.



1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
# File 'lib/v20180614/client.rb', line 1453

def ResetDeviceState(request)
  body = send_request('ResetDeviceState', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ResetDeviceStateResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#RetryDeviceFirmwareTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::RetryDeviceFirmwareTaskResponse`

Parameters:

  • request:

    Request instance for RetryDeviceFirmwareTask.



1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
# File 'lib/v20180614/client.rb', line 1477

def RetryDeviceFirmwareTask(request)
  body = send_request('RetryDeviceFirmwareTask', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = RetryDeviceFirmwareTaskResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#SetProductsForbiddenStatus(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::SetProductsForbiddenStatusResponse`

Parameters:

  • request:

    Request instance for SetProductsForbiddenStatus.



1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
# File 'lib/v20180614/client.rb', line 1501

def SetProductsForbiddenStatus(request)
  body = send_request('SetProductsForbiddenStatus', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = SetProductsForbiddenStatusResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#UnbindDevices(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::UnbindDevicesResponse`

Parameters:

  • request:

    Request instance for UnbindDevices.



1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
# File 'lib/v20180614/client.rb', line 1525

def UnbindDevices(request)
  body = send_request('UnbindDevices', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UnbindDevicesResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#UpdateDeviceAvailableState(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::UpdateDeviceAvailableStateResponse`

Parameters:

  • request:

    Request instance for UpdateDeviceAvailableState.



1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
# File 'lib/v20180614/client.rb', line 1549

def UpdateDeviceAvailableState(request)
  body = send_request('UpdateDeviceAvailableState', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UpdateDeviceAvailableStateResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#UpdateDevicesEnableState(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::UpdateDevicesEnableStateResponse`

Parameters:

  • request:

    Request instance for UpdateDevicesEnableState.



1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
# File 'lib/v20180614/client.rb', line 1597

def UpdateDevicesEnableState(request)
  body = send_request('UpdateDevicesEnableState', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UpdateDevicesEnableStateResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#UpdateDeviceShadow(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::UpdateDeviceShadowResponse`

Parameters:

  • request:

    Request instance for UpdateDeviceShadow.



1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
# File 'lib/v20180614/client.rb', line 1573

def UpdateDeviceShadow(request)
  body = send_request('UpdateDeviceShadow', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UpdateDeviceShadowResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#UpdateProductDynamicRegister(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::UpdateProductDynamicRegisterResponse`

Parameters:

  • request:

    Request instance for UpdateProductDynamicRegister.



1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
# File 'lib/v20180614/client.rb', line 1621

def UpdateProductDynamicRegister(request)
  body = send_request('UpdateProductDynamicRegister', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UpdateProductDynamicRegisterResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#UpdateTopicPolicy(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::UpdateTopicPolicyResponse`

Parameters:

  • request:

    Request instance for UpdateTopicPolicy.



1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
# File 'lib/v20180614/client.rb', line 1645

def UpdateTopicPolicy(request)
  body = send_request('UpdateTopicPolicy', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UpdateTopicPolicyResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end

#UploadFirmware(request) ⇒ Object

@rtype: :class:‘Tencentcloud::iotcloud::V20180614::UploadFirmwareResponse`

Parameters:

  • request:

    Request instance for UploadFirmware.



1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
# File 'lib/v20180614/client.rb', line 1669

def UploadFirmware(request)
  body = send_request('UploadFirmware', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UploadFirmwareResponse.new
    model.deserialize(response['Response'])
    model
  else
    code = response['Response']['Error']['Code']
    message = response['Response']['Error']['Message']
    reqid = response['Response']['RequestId']
    raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
  end
rescue TencentCloud::Common::TencentCloudSDKException => e
  raise e
rescue StandardError => e
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end