Class: TencentCloud::Ivld::V20210903::Client

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

def initialize(credential, region, profile = nil)
    api_version = '2021-09-03'
    api_endpoint = 'ivld.tencentcloudapi.com'
    sdk_version = 'IVLD_' + File.read(File.expand_path('../VERSION', __dir__)).strip
    super(credential, region, api_version, api_endpoint, sdk_version, profile)
end

Instance Method Details

#AddCustomPersonImage(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::AddCustomPersonImageResponse`

Parameters:

  • request:

    Request instance for AddCustomPersonImage.



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

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

#CreateCustomCategory(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::CreateCustomCategoryResponse`

Parameters:

  • request:

    Request instance for CreateCustomCategory.



66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/v20210903/client.rb', line 66

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

#CreateCustomGroup(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::CreateCustomGroupResponse`

Parameters:

  • request:

    Request instance for CreateCustomGroup.



100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# File 'lib/v20210903/client.rb', line 100

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

#CreateCustomPerson(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::CreateCustomPersonResponse`

Parameters:

  • request:

    Request instance for CreateCustomPerson.



128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# File 'lib/v20210903/client.rb', line 128

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

#CreateDefaultCategories(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::CreateDefaultCategoriesResponse`

Parameters:

  • request:

    Request instance for CreateDefaultCategories.



152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# File 'lib/v20210903/client.rb', line 152

def CreateDefaultCategories(request)
  body = send_request('CreateDefaultCategories', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = CreateDefaultCategoriesResponse.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::ivld::V20210903::CreateTaskResponse`

Parameters:

  • request:

    Request instance for CreateTask.



178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# File 'lib/v20210903/client.rb', line 178

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

#CreateVideoSummaryTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::CreateVideoSummaryTaskResponse`

Parameters:

  • request:

    Request instance for CreateVideoSummaryTask.



226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
# File 'lib/v20210903/client.rb', line 226

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

#DeleteCustomCategory(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::DeleteCustomCategoryResponse`

Parameters:

  • request:

    Request instance for DeleteCustomCategory.



250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
# File 'lib/v20210903/client.rb', line 250

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

#DeleteCustomPerson(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::DeleteCustomPersonResponse`

Parameters:

  • request:

    Request instance for DeleteCustomPerson.



274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
# File 'lib/v20210903/client.rb', line 274

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

#DeleteCustomPersonImage(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::DeleteCustomPersonImageResponse`

Parameters:

  • request:

    Request instance for DeleteCustomPersonImage.



298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
# File 'lib/v20210903/client.rb', line 298

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

#DeleteMedia(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::DeleteMediaResponse`

Parameters:

  • request:

    Request instance for DeleteMedia.



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

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

#DeleteTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::DeleteTaskResponse`

Parameters:

  • request:

    Request instance for DeleteTask.



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

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

#DescribeCustomCategories(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::DescribeCustomCategoriesResponse`

Parameters:

  • request:

    Request instance for DescribeCustomCategories.



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

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

#DescribeCustomGroup(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::DescribeCustomGroupResponse`

Parameters:

  • request:

    Request instance for DescribeCustomGroup.



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

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

#DescribeCustomPersonDetail(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::DescribeCustomPersonDetailResponse`

Parameters:

  • request:

    Request instance for DescribeCustomPersonDetail.



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

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

#DescribeCustomPersons(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::DescribeCustomPersonsResponse`

Parameters:

  • request:

    Request instance for DescribeCustomPersons.



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

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

#DescribeMedia(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::DescribeMediaResponse`

Parameters:

  • request:

    Request instance for DescribeMedia.



474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
# File 'lib/v20210903/client.rb', line 474

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

#DescribeMedias(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::DescribeMediasResponse`

Parameters:

  • request:

    Request instance for DescribeMedias.



502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
# File 'lib/v20210903/client.rb', line 502

def DescribeMedias(request)
  body = send_request('DescribeMedias', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeMediasResponse.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::ivld::V20210903::DescribeTaskResponse`

Parameters:

  • request:

    Request instance for DescribeTask.



528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
# File 'lib/v20210903/client.rb', line 528

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

#DescribeTaskDetail(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::DescribeTaskDetailResponse`

Parameters:

  • request:

    Request instance for DescribeTaskDetail.



552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
# File 'lib/v20210903/client.rb', line 552

def DescribeTaskDetail(request)
  body = send_request('DescribeTaskDetail', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = DescribeTaskDetailResponse.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::ivld::V20210903::DescribeTasksResponse`

Parameters:

  • request:

    Request instance for DescribeTasks.



578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
# File 'lib/v20210903/client.rb', line 578

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

#DescribeUsageAmount(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::DescribeUsageAmountResponse`

Parameters:

  • request:

    Request instance for DescribeUsageAmount.



602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
# File 'lib/v20210903/client.rb', line 602

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

#DescribeVideoSummaryDetail(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::DescribeVideoSummaryDetailResponse`

Parameters:

  • request:

    Request instance for DescribeVideoSummaryDetail.



626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
# File 'lib/v20210903/client.rb', line 626

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

#ImportMedia(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::ImportMediaResponse`

Parameters:

  • request:

    Request instance for ImportMedia.



658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
# File 'lib/v20210903/client.rb', line 658

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

#ModifyCallback(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::ModifyCallbackResponse`

Parameters:

  • request:

    Request instance for ModifyCallback.



716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
# File 'lib/v20210903/client.rb', line 716

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

#QueryCallback(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::QueryCallbackResponse`

Parameters:

  • request:

    Request instance for QueryCallback.



740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
# File 'lib/v20210903/client.rb', line 740

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

#UpdateCustomCategory(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::UpdateCustomCategoryResponse`

Parameters:

  • request:

    Request instance for UpdateCustomCategory.



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

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

#UpdateCustomPerson(request) ⇒ Object

@rtype: :class:‘Tencentcloud::ivld::V20210903::UpdateCustomPersonResponse`

Parameters:

  • request:

    Request instance for UpdateCustomPerson.



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

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