Class: TencentCloud::Tci::V20190318::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Tci::V20190318::Client
- Defined in:
- lib/v20190318/client.rb
Instance Method Summary collapse
-
#AIAssistant(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::AIAssistantResponse`.
-
#CancelTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::CancelTaskResponse`.
-
#CheckFacePhoto(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::CheckFacePhotoResponse`.
-
#CreateFace(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::CreateFaceResponse`.
-
#CreateLibrary(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::CreateLibraryResponse`.
-
#CreatePerson(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::CreatePersonResponse`.
-
#CreateVocab(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::CreateVocabResponse`.
-
#CreateVocabLib(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::CreateVocabLibResponse`.
-
#DeleteFace(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::DeleteFaceResponse`.
-
#DeleteLibrary(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::DeleteLibraryResponse`.
-
#DeletePerson(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::DeletePersonResponse`.
-
#DeleteVocab(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::DeleteVocabResponse`.
-
#DeleteVocabLib(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::DeleteVocabLibResponse`.
-
#DescribeAITaskResult(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::DescribeAITaskResultResponse`.
-
#DescribeAttendanceResult(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::DescribeAttendanceResultResponse`.
-
#DescribeAudioTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::DescribeAudioTaskResponse`.
-
#DescribeConversationTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::DescribeConversationTaskResponse`.
-
#DescribeHighlightResult(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::DescribeHighlightResultResponse`.
-
#DescribeImageTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::DescribeImageTaskResponse`.
-
#DescribeImageTaskStatistic(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::DescribeImageTaskStatisticResponse`.
-
#DescribeLibraries(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::DescribeLibrariesResponse`.
-
#DescribePerson(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::DescribePersonResponse`.
-
#DescribePersons(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::DescribePersonsResponse`.
-
#DescribeVocab(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::DescribeVocabResponse`.
-
#DescribeVocabLib(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::DescribeVocabLibResponse`.
-
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#ModifyLibrary(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::ModifyLibraryResponse`.
-
#ModifyPerson(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::ModifyPersonResponse`.
-
#SubmitAudioTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitAudioTaskResponse`.
-
#SubmitCheckAttendanceTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitCheckAttendanceTaskResponse`.
-
#SubmitCheckAttendanceTaskPlus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitCheckAttendanceTaskPlusResponse`.
-
#SubmitConversationTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitConversationTaskResponse`.
-
#SubmitDoubleVideoHighlights(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitDoubleVideoHighlightsResponse`.
-
#SubmitFullBodyClassTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitFullBodyClassTaskResponse`.
-
#SubmitHighlights(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitHighlightsResponse`.
-
#SubmitImageTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitImageTaskResponse`.
-
#SubmitImageTaskPlus(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitImageTaskPlusResponse`.
-
#SubmitOneByOneClassTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitOneByOneClassTaskResponse`.
-
#SubmitOpenClassTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitOpenClassTaskResponse`.
-
#SubmitPartialBodyClassTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitPartialBodyClassTaskResponse`.
-
#SubmitTraditionalClassTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::SubmitTraditionalClassTaskResponse`.
-
#TransmitAudioStream(request) ⇒ Object
@rtype: :class:‘Tencentcloud::tci::V20190318::TransmitAudioStreamResponse`.
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.('../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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , 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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |