Class: TencentCloud::Bm::V20180423::Client

Inherits:
Common::AbstractClient
  • Object
show all
Defined in:
lib/v20180423/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/v20180423/client.rb', line 24

def initialize(credential, region, profile = nil)
    api_version = '2018-04-23'
    api_endpoint = 'bm.tencentcloudapi.com'
    sdk_version = 'BM_' + File.read(File.expand_path('../VERSION', __dir__)).strip
    super(credential, region, api_version, api_endpoint, sdk_version, profile)
end

Instance Method Details

#AttachCamRole(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::AttachCamRoleResponse`

Parameters:

  • request:

    Request instance for AttachCamRole.



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

def AttachCamRole(request)
  body = send_request('AttachCamRole', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = AttachCamRoleResponse.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

#BindPsaTag(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::BindPsaTagResponse`

Parameters:

  • request:

    Request instance for BindPsaTag.



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

def BindPsaTag(request)
  body = send_request('BindPsaTag', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = BindPsaTagResponse.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

#BuyDevices(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::BuyDevicesResponse`

Parameters:

  • request:

    Request instance for BuyDevices.



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

def BuyDevices(request)
  body = send_request('BuyDevices', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = BuyDevicesResponse.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

#CreateCustomImage(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::CreateCustomImageResponse`

Parameters:

  • request:

    Request instance for CreateCustomImage.



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

def CreateCustomImage(request)
  body = send_request('CreateCustomImage', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateCustomImageResponse.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

#CreatePsaRegulation(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::CreatePsaRegulationResponse`

Parameters:

  • request:

    Request instance for CreatePsaRegulation.



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

def CreatePsaRegulation(request)
  body = send_request('CreatePsaRegulation', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreatePsaRegulationResponse.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

#CreateSpotDevice(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::CreateSpotDeviceResponse`

Parameters:

  • request:

    Request instance for CreateSpotDevice.



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

def CreateSpotDevice(request)
  body = send_request('CreateSpotDevice', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateSpotDeviceResponse.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

#CreateUserCmd(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::CreateUserCmdResponse`

Parameters:

  • request:

    Request instance for CreateUserCmd.



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

def CreateUserCmd(request)
  body = send_request('CreateUserCmd', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateUserCmdResponse.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

#DeleteCustomImages(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DeleteCustomImagesResponse`

Parameters:

  • request:

    Request instance for DeleteCustomImages.



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

def DeleteCustomImages(request)
  body = send_request('DeleteCustomImages', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteCustomImagesResponse.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

#DeletePsaRegulation(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DeletePsaRegulationResponse`

Parameters:

  • request:

    Request instance for DeletePsaRegulation.



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

def DeletePsaRegulation(request)
  body = send_request('DeletePsaRegulation', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeletePsaRegulationResponse.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

#DeleteUserCmds(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DeleteUserCmdsResponse`

Parameters:

  • request:

    Request instance for DeleteUserCmds.



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

def DeleteUserCmds(request)
  body = send_request('DeleteUserCmds', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DeleteUserCmdsResponse.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

#DescribeCustomImageProcess(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeCustomImageProcessResponse`

Parameters:

  • request:

    Request instance for DescribeCustomImageProcess.



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

def DescribeCustomImageProcess(request)
  body = send_request('DescribeCustomImageProcess', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeCustomImageProcessResponse.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

#DescribeCustomImages(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeCustomImagesResponse`

Parameters:

  • request:

    Request instance for DescribeCustomImages.



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

def DescribeCustomImages(request)
  body = send_request('DescribeCustomImages', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeCustomImagesResponse.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

#DescribeDeviceClass(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDeviceClassResponse`

Parameters:

  • request:

    Request instance for DescribeDeviceClass.



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

def DescribeDeviceClass(request)
  body = send_request('DescribeDeviceClass', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeDeviceClassResponse.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

#DescribeDeviceClassPartition(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDeviceClassPartitionResponse`

Parameters:

  • request:

    Request instance for DescribeDeviceClassPartition.



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

def DescribeDeviceClassPartition(request)
  body = send_request('DescribeDeviceClassPartition', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeDeviceClassPartitionResponse.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

#DescribeDeviceHardwareInfo(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDeviceHardwareInfoResponse`

Parameters:

  • request:

    Request instance for DescribeDeviceHardwareInfo.



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

def DescribeDeviceHardwareInfo(request)
  body = send_request('DescribeDeviceHardwareInfo', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeDeviceHardwareInfoResponse.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

#DescribeDeviceInventory(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDeviceInventoryResponse`

Parameters:

  • request:

    Request instance for DescribeDeviceInventory.



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

def DescribeDeviceInventory(request)
  body = send_request('DescribeDeviceInventory', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeDeviceInventoryResponse.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

#DescribeDeviceOperationLog(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDeviceOperationLogResponse`

Parameters:

  • request:

    Request instance for DescribeDeviceOperationLog.



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

def DescribeDeviceOperationLog(request)
  body = send_request('DescribeDeviceOperationLog', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeDeviceOperationLogResponse.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

#DescribeDevicePartition(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDevicePartitionResponse`

Parameters:

  • request:

    Request instance for DescribeDevicePartition.



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

def DescribeDevicePartition(request)
  body = send_request('DescribeDevicePartition', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeDevicePartitionResponse.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

#DescribeDevicePosition(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDevicePositionResponse`

Parameters:

  • request:

    Request instance for DescribeDevicePosition.



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

def DescribeDevicePosition(request)
  body = send_request('DescribeDevicePosition', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeDevicePositionResponse.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

#DescribeDevicePriceInfo(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeDevicePriceInfoResponse`

Parameters:

  • request:

    Request instance for DescribeDevicePriceInfo.



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

def DescribeDevicePriceInfo(request)
  body = send_request('DescribeDevicePriceInfo', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeDevicePriceInfoResponse.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::bm::V20180423::DescribeDevicesResponse`

Parameters:

  • request:

    Request instance for DescribeDevices.



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

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

#DescribeHardwareSpecification(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeHardwareSpecificationResponse`

Parameters:

  • request:

    Request instance for DescribeHardwareSpecification.



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

def DescribeHardwareSpecification(request)
  body = send_request('DescribeHardwareSpecification', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeHardwareSpecificationResponse.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

#DescribeHostedDeviceOutBandInfo(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeHostedDeviceOutBandInfoResponse`

Parameters:

  • request:

    Request instance for DescribeHostedDeviceOutBandInfo.



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

def DescribeHostedDeviceOutBandInfo(request)
  body = send_request('DescribeHostedDeviceOutBandInfo', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeHostedDeviceOutBandInfoResponse.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

#DescribeOperationResult(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeOperationResultResponse`

Parameters:

  • request:

    Request instance for DescribeOperationResult.



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

def DescribeOperationResult(request)
  body = send_request('DescribeOperationResult', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeOperationResultResponse.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

#DescribeOsInfo(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeOsInfoResponse`

Parameters:

  • request:

    Request instance for DescribeOsInfo.



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

def DescribeOsInfo(request)
  body = send_request('DescribeOsInfo', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeOsInfoResponse.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

#DescribePsaRegulations(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribePsaRegulationsResponse`

Parameters:

  • request:

    Request instance for DescribePsaRegulations.



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

def DescribePsaRegulations(request)
  body = send_request('DescribePsaRegulations', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribePsaRegulationsResponse.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

#DescribeRegions(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeRegionsResponse`

Parameters:

  • request:

    Request instance for DescribeRegions.



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

def DescribeRegions(request)
  body = send_request('DescribeRegions', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeRegionsResponse.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

#DescribeRepairTaskConstant(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeRepairTaskConstantResponse`

Parameters:

  • request:

    Request instance for DescribeRepairTaskConstant.



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

def DescribeRepairTaskConstant(request)
  body = send_request('DescribeRepairTaskConstant', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeRepairTaskConstantResponse.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

#DescribeTaskInfo(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeTaskInfoResponse`

Parameters:

  • request:

    Request instance for DescribeTaskInfo.



719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
# File 'lib/v20180423/client.rb', line 719

def DescribeTaskInfo(request)
  body = send_request('DescribeTaskInfo', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeTaskInfoResponse.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

#DescribeTaskOperationLog(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeTaskOperationLogResponse`

Parameters:

  • request:

    Request instance for DescribeTaskOperationLog.



743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
# File 'lib/v20180423/client.rb', line 743

def DescribeTaskOperationLog(request)
  body = send_request('DescribeTaskOperationLog', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeTaskOperationLogResponse.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

#DescribeUserCmds(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeUserCmdsResponse`

Parameters:

  • request:

    Request instance for DescribeUserCmds.



815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
# File 'lib/v20180423/client.rb', line 815

def DescribeUserCmds(request)
  body = send_request('DescribeUserCmds', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeUserCmdsResponse.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

#DescribeUserCmdTaskInfo(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeUserCmdTaskInfoResponse`

Parameters:

  • request:

    Request instance for DescribeUserCmdTaskInfo.



767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
# File 'lib/v20180423/client.rb', line 767

def DescribeUserCmdTaskInfo(request)
  body = send_request('DescribeUserCmdTaskInfo', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeUserCmdTaskInfoResponse.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

#DescribeUserCmdTasks(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DescribeUserCmdTasksResponse`

Parameters:

  • request:

    Request instance for DescribeUserCmdTasks.



791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
# File 'lib/v20180423/client.rb', line 791

def DescribeUserCmdTasks(request)
  body = send_request('DescribeUserCmdTasks', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeUserCmdTasksResponse.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

#DetachCamRole(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::DetachCamRoleResponse`

Parameters:

  • request:

    Request instance for DetachCamRole.



839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
# File 'lib/v20180423/client.rb', line 839

def DetachCamRole(request)
  body = send_request('DetachCamRole', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DetachCamRoleResponse.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

#ModifyCustomImageAttribute(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyCustomImageAttributeResponse`

Parameters:

  • request:

    Request instance for ModifyCustomImageAttribute.



863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
# File 'lib/v20180423/client.rb', line 863

def ModifyCustomImageAttribute(request)
  body = send_request('ModifyCustomImageAttribute', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyCustomImageAttributeResponse.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

#ModifyDeviceAliases(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyDeviceAliasesResponse`

Parameters:

  • request:

    Request instance for ModifyDeviceAliases.



887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
# File 'lib/v20180423/client.rb', line 887

def ModifyDeviceAliases(request)
  body = send_request('ModifyDeviceAliases', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyDeviceAliasesResponse.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

#ModifyDeviceAutoRenewFlag(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyDeviceAutoRenewFlagResponse`

Parameters:

  • request:

    Request instance for ModifyDeviceAutoRenewFlag.



911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
# File 'lib/v20180423/client.rb', line 911

def ModifyDeviceAutoRenewFlag(request)
  body = send_request('ModifyDeviceAutoRenewFlag', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyDeviceAutoRenewFlagResponse.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

#ModifyLanIp(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyLanIpResponse`

Parameters:

  • request:

    Request instance for ModifyLanIp.



935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
# File 'lib/v20180423/client.rb', line 935

def ModifyLanIp(request)
  body = send_request('ModifyLanIp', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyLanIpResponse.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

#ModifyPayModePre2Post(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyPayModePre2PostResponse`

Parameters:

  • request:

    Request instance for ModifyPayModePre2Post.



959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
# File 'lib/v20180423/client.rb', line 959

def ModifyPayModePre2Post(request)
  body = send_request('ModifyPayModePre2Post', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyPayModePre2PostResponse.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

#ModifyPsaRegulation(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyPsaRegulationResponse`

Parameters:

  • request:

    Request instance for ModifyPsaRegulation.



983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# File 'lib/v20180423/client.rb', line 983

def ModifyPsaRegulation(request)
  body = send_request('ModifyPsaRegulation', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyPsaRegulationResponse.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

#ModifyUserCmd(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::ModifyUserCmdResponse`

Parameters:

  • request:

    Request instance for ModifyUserCmd.



1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
# File 'lib/v20180423/client.rb', line 1007

def ModifyUserCmd(request)
  body = send_request('ModifyUserCmd', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ModifyUserCmdResponse.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

#OfflineDevices(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::OfflineDevicesResponse`

Parameters:

  • request:

    Request instance for OfflineDevices.



1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
# File 'lib/v20180423/client.rb', line 1031

def OfflineDevices(request)
  body = send_request('OfflineDevices', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = OfflineDevicesResponse.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

#RebootDevices(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::RebootDevicesResponse`

Parameters:

  • request:

    Request instance for RebootDevices.



1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
# File 'lib/v20180423/client.rb', line 1055

def RebootDevices(request)
  body = send_request('RebootDevices', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = RebootDevicesResponse.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

#RecoverDevices(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::RecoverDevicesResponse`

Parameters:

  • request:

    Request instance for RecoverDevices.



1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
# File 'lib/v20180423/client.rb', line 1079

def RecoverDevices(request)
  body = send_request('RecoverDevices', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = RecoverDevicesResponse.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

#ReloadDeviceOs(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::ReloadDeviceOsResponse`

Parameters:

  • request:

    Request instance for ReloadDeviceOs.



1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
# File 'lib/v20180423/client.rb', line 1103

def ReloadDeviceOs(request)
  body = send_request('ReloadDeviceOs', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ReloadDeviceOsResponse.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

#RepairTaskControl(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::RepairTaskControlResponse`

Parameters:

  • request:

    Request instance for RepairTaskControl.



1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
# File 'lib/v20180423/client.rb', line 1149

def RepairTaskControl(request)
  body = send_request('RepairTaskControl', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = RepairTaskControlResponse.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

#ResetDevicePassword(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::ResetDevicePasswordResponse`

Parameters:

  • request:

    Request instance for ResetDevicePassword.



1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
# File 'lib/v20180423/client.rb', line 1173

def ResetDevicePassword(request)
  body = send_request('ResetDevicePassword', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ResetDevicePasswordResponse.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

#ReturnDevices(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::ReturnDevicesResponse`

Parameters:

  • request:

    Request instance for ReturnDevices.



1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
# File 'lib/v20180423/client.rb', line 1197

def ReturnDevices(request)
  body = send_request('ReturnDevices', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ReturnDevicesResponse.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

#RunUserCmd(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::RunUserCmdResponse`

Parameters:

  • request:

    Request instance for RunUserCmd.



1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
# File 'lib/v20180423/client.rb', line 1221

def RunUserCmd(request)
  body = send_request('RunUserCmd', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = RunUserCmdResponse.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

#SetOutBandVpnAuthPassword(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::SetOutBandVpnAuthPasswordResponse`

Parameters:

  • request:

    Request instance for SetOutBandVpnAuthPassword.



1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
# File 'lib/v20180423/client.rb', line 1245

def SetOutBandVpnAuthPassword(request)
  body = send_request('SetOutBandVpnAuthPassword', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = SetOutBandVpnAuthPasswordResponse.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

#ShutdownDevices(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::ShutdownDevicesResponse`

Parameters:

  • request:

    Request instance for ShutdownDevices.



1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
# File 'lib/v20180423/client.rb', line 1269

def ShutdownDevices(request)
  body = send_request('ShutdownDevices', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = ShutdownDevicesResponse.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

#StartDevices(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::StartDevicesResponse`

Parameters:

  • request:

    Request instance for StartDevices.



1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
# File 'lib/v20180423/client.rb', line 1293

def StartDevices(request)
  body = send_request('StartDevices', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = StartDevicesResponse.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

#UnbindPsaTag(request) ⇒ Object

@rtype: :class:‘Tencentcloud::bm::V20180423::UnbindPsaTagResponse`

Parameters:

  • request:

    Request instance for UnbindPsaTag.



1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
# File 'lib/v20180423/client.rb', line 1317

def UnbindPsaTag(request)
  body = send_request('UnbindPsaTag', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = UnbindPsaTagResponse.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