Class: TencentCloud::Tci::V20190318::Client

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

def initialize(credential, region, profile = nil)
    api_version = '2019-03-18'
    api_endpoint = 'tci.tencentcloudapi.com'
    sdk_version = 'TCI_' + File.read(File.expand_path('../VERSION', __dir__)).strip
    super(credential, region, api_version, api_endpoint, sdk_version, profile)
end

Instance Method Details

#AIAssistant(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::AIAssistantResponse`

Parameters:

  • request:

    Request instance for AIAssistant.



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

def AIAssistant(request)
  body = send_request('AIAssistant', request.serialize)
  response = JSON.parse(body)
  if response['Response'].key?('Error') == false
    model = AIAssistantResponse.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::tci::V20190318::CancelTaskResponse`

Parameters:

  • request:

    Request instance for CancelTask.



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

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

#CheckFacePhoto(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::CheckFacePhotoResponse`

Parameters:

  • request:

    Request instance for CheckFacePhoto.



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

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

#CreateFace(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::CreateFaceResponse`

Parameters:

  • request:

    Request instance for CreateFace.



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

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

#CreateLibrary(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::CreateLibraryResponse`

Parameters:

  • request:

    Request instance for CreateLibrary.



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

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

#CreatePerson(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::CreatePersonResponse`

Parameters:

  • request:

    Request instance for CreatePerson.



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

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

#CreateVocab(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::CreateVocabResponse`

Parameters:

  • request:

    Request instance for CreateVocab.



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

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

#CreateVocabLib(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::CreateVocabLibResponse`

Parameters:

  • request:

    Request instance for CreateVocabLib.



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

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

#DeleteFace(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::DeleteFaceResponse`

Parameters:

  • request:

    Request instance for DeleteFace.



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

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

#DeleteLibrary(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::DeleteLibraryResponse`

Parameters:

  • request:

    Request instance for DeleteLibrary.



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

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

#DeletePerson(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::DeletePersonResponse`

Parameters:

  • request:

    Request instance for DeletePerson.



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

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

#DeleteVocab(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::DeleteVocabResponse`

Parameters:

  • request:

    Request instance for DeleteVocab.



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

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

#DeleteVocabLib(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::DeleteVocabLibResponse`

Parameters:

  • request:

    Request instance for DeleteVocabLib.



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

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

#DescribeAITaskResult(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::DescribeAITaskResultResponse`

Parameters:

  • request:

    Request instance for DescribeAITaskResult.



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

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

#DescribeAttendanceResult(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::DescribeAttendanceResultResponse`

Parameters:

  • request:

    Request instance for DescribeAttendanceResult.



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

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

#DescribeAudioTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::DescribeAudioTaskResponse`

Parameters:

  • request:

    Request instance for DescribeAudioTask.



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

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

#DescribeConversationTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::DescribeConversationTaskResponse`

Parameters:

  • request:

    Request instance for DescribeConversationTask.



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

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

#DescribeHighlightResult(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::DescribeHighlightResultResponse`

Parameters:

  • request:

    Request instance for DescribeHighlightResult.



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

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

#DescribeImageTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::DescribeImageTaskResponse`

Parameters:

  • request:

    Request instance for DescribeImageTask.



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

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

#DescribeImageTaskStatistic(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::DescribeImageTaskStatisticResponse`

Parameters:

  • request:

    Request instance for DescribeImageTaskStatistic.



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

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

#DescribeLibraries(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::DescribeLibrariesResponse`

Parameters:

  • request:

    Request instance for DescribeLibraries.



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

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

#DescribePerson(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::DescribePersonResponse`

Parameters:

  • request:

    Request instance for DescribePerson.



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

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

#DescribePersons(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::DescribePersonsResponse`

Parameters:

  • request:

    Request instance for DescribePersons.



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

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

#DescribeVocab(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::DescribeVocabResponse`

Parameters:

  • request:

    Request instance for DescribeVocab.



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

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

#DescribeVocabLib(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::DescribeVocabLibResponse`

Parameters:

  • request:

    Request instance for DescribeVocabLib.



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

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

#ModifyLibrary(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::ModifyLibraryResponse`

Parameters:

  • request:

    Request instance for ModifyLibrary.



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

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

#ModifyPerson(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::ModifyPersonResponse`

Parameters:

  • request:

    Request instance for ModifyPerson.



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

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

#SubmitAudioTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitAudioTaskResponse`

Parameters:

  • request:

    Request instance for SubmitAudioTask.



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

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

#SubmitCheckAttendanceTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitCheckAttendanceTaskResponse`

Parameters:

  • request:

    Request instance for SubmitCheckAttendanceTask.



722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
# File 'lib/v20190318/client.rb', line 722

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

#SubmitCheckAttendanceTaskPlus(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitCheckAttendanceTaskPlusResponse`

Parameters:

  • request:

    Request instance for SubmitCheckAttendanceTaskPlus.



746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
# File 'lib/v20190318/client.rb', line 746

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

#SubmitConversationTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitConversationTaskResponse`

Parameters:

  • request:

    Request instance for SubmitConversationTask.



770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
# File 'lib/v20190318/client.rb', line 770

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

#SubmitDoubleVideoHighlights(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitDoubleVideoHighlightsResponse`

Parameters:

  • request:

    Request instance for SubmitDoubleVideoHighlights.



795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
# File 'lib/v20190318/client.rb', line 795

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

#SubmitFullBodyClassTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitFullBodyClassTaskResponse`

Parameters:

  • request:

    Request instance for SubmitFullBodyClassTask.



825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
# File 'lib/v20190318/client.rb', line 825

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

#SubmitHighlights(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitHighlightsResponse`

Parameters:

  • request:

    Request instance for SubmitHighlights.



849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
# File 'lib/v20190318/client.rb', line 849

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

#SubmitImageTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitImageTaskResponse`

Parameters:

  • request:

    Request instance for SubmitImageTask.



873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
# File 'lib/v20190318/client.rb', line 873

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

#SubmitImageTaskPlus(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitImageTaskPlusResponse`

Parameters:

  • request:

    Request instance for SubmitImageTaskPlus.



897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
# File 'lib/v20190318/client.rb', line 897

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

#SubmitOneByOneClassTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitOneByOneClassTaskResponse`

Parameters:

  • request:

    Request instance for SubmitOneByOneClassTask.



928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
# File 'lib/v20190318/client.rb', line 928

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

#SubmitOpenClassTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitOpenClassTaskResponse`

Parameters:

  • request:

    Request instance for SubmitOpenClassTask.



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

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

#SubmitPartialBodyClassTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitPartialBodyClassTaskResponse`

Parameters:

  • request:

    Request instance for SubmitPartialBodyClassTask.



989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
# File 'lib/v20190318/client.rb', line 989

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

#SubmitTraditionalClassTask(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitTraditionalClassTaskResponse`

Parameters:

  • request:

    Request instance for SubmitTraditionalClassTask.



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

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

#TransmitAudioStream(request) ⇒ Object

@rtype: :class:‘Tencentcloud::tci::V20190318::TransmitAudioStreamResponse`

Parameters:

  • request:

    Request instance for TransmitAudioStream.



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

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