Class: TencentCloud::Tat::V20201028::Client

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

def initialize(credential, region, profile = nil)
    api_version = '2020-10-28'
    api_endpoint = 'tat.tencentcloudapi.com'
    sdk_version = 'TAT_' + File.read(File.expand_path('../VERSION', __dir__)).strip
    super(credential, region, api_version, api_endpoint, sdk_version, profile)
end

Instance Method Details

#CancelInvocation(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::CancelInvocationResponse

Parameters:

  • request:

    Request instance for CancelInvocation.



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

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

#CreateCommand(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::CreateCommandResponse

Parameters:

  • request:

    Request instance for CreateCommand.



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

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

#CreateInvoker(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::CreateInvokerResponse

Parameters:

  • request:

    Request instance for CreateInvoker.



88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'lib/v20201028/client.rb', line 88

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

#CreateRegisterCode(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::CreateRegisterCodeResponse

Parameters:

  • request:

    Request instance for CreateRegisterCode.



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

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

#DeleteCommand(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::DeleteCommandResponse

Parameters:

  • request:

    Request instance for DeleteCommand.



137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# File 'lib/v20201028/client.rb', line 137

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

#DeleteCommands(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::DeleteCommandsResponse

Parameters:

  • request:

    Request instance for DeleteCommands.



161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# File 'lib/v20201028/client.rb', line 161

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

#DeleteInvoker(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::DeleteInvokerResponse

Parameters:

  • request:

    Request instance for DeleteInvoker.



185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# File 'lib/v20201028/client.rb', line 185

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

#DeleteRegisterCodes(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::DeleteRegisterCodesResponse

Parameters:

  • request:

    Request instance for DeleteRegisterCodes.



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

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

#DeleteRegisterInstance(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::DeleteRegisterInstanceResponse

Parameters:

  • request:

    Request instance for DeleteRegisterInstance.



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

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

#DescribeAutomationAgentStatus(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::DescribeAutomationAgentStatusResponse

Parameters:

  • request:

    Request instance for DescribeAutomationAgentStatus.



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

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

#DescribeCommands(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::DescribeCommandsResponse

Parameters:

  • request:

    Request instance for DescribeCommands.



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

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

#DescribeInvocations(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::DescribeInvocationsResponse

Parameters:

  • request:

    Request instance for DescribeInvocations.



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

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

#DescribeInvocationTasks(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::DescribeInvocationTasksResponse

Parameters:

  • request:

    Request instance for DescribeInvocationTasks.



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

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

#DescribeInvokerRecords(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::DescribeInvokerRecordsResponse

Parameters:

  • request:

    Request instance for DescribeInvokerRecords.



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

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

#DescribeInvokers(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::DescribeInvokersResponse

Parameters:

  • request:

    Request instance for DescribeInvokers.



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

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

#DescribeQuotas(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::DescribeQuotasResponse

Parameters:

  • request:

    Request instance for DescribeQuotas.



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

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

#DescribeRegions(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::DescribeRegionsResponse

Parameters:

  • request:

    Request instance for DescribeRegions.



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

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

#DescribeRegisterCodes(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::DescribeRegisterCodesResponse

Parameters:

  • request:

    Request instance for DescribeRegisterCodes.



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

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

#DescribeRegisterInstances(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::DescribeRegisterInstancesResponse

Parameters:

  • request:

    Request instance for DescribeRegisterInstances.



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

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

#DescribeScenes(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::DescribeScenesResponse

Parameters:

  • request:

    Request instance for DescribeScenes.



498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
# File 'lib/v20201028/client.rb', line 498

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

#DisableInvoker(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::DisableInvokerResponse

Parameters:

  • request:

    Request instance for DisableInvoker.



522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
# File 'lib/v20201028/client.rb', line 522

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

#DisableRegisterCodes(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::DisableRegisterCodesResponse

Parameters:

  • request:

    Request instance for DisableRegisterCodes.



546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
# File 'lib/v20201028/client.rb', line 546

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

#EnableInvoker(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::EnableInvokerResponse

Parameters:

  • request:

    Request instance for EnableInvoker.



570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
# File 'lib/v20201028/client.rb', line 570

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

#InvokeCommand(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::InvokeCommandResponse

Parameters:

  • request:

    Request instance for InvokeCommand.



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

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

#ModifyCommand(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::ModifyCommandResponse

Parameters:

  • request:

    Request instance for ModifyCommand.



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

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

#ModifyInvoker(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::ModifyInvokerResponse

Parameters:

  • request:

    Request instance for ModifyInvoker.



648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
# File 'lib/v20201028/client.rb', line 648

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

#ModifyRegisterInstance(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::ModifyRegisterInstanceResponse

Parameters:

  • request:

    Request instance for ModifyRegisterInstance.



672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
# File 'lib/v20201028/client.rb', line 672

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

#PreviewReplacedCommandContent(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::PreviewReplacedCommandContentResponse

Parameters:

  • request:

    Request instance for PreviewReplacedCommandContent.



696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
# File 'lib/v20201028/client.rb', line 696

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

#RunCommand(request) ⇒ Object

@rtype: :class:Tencentcloud::tat::V20201028::RunCommandResponse

Parameters:

  • request:

    Request instance for RunCommand.



726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
# File 'lib/v20201028/client.rb', line 726

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