Class: TencentCloud::Vcube::V20220410::Client

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

def initialize(credential, region, profile = nil)
    api_version = '2022-04-10'
    api_endpoint = 'vcube.tencentcloudapi.com'
    sdk_version = 'VCUBE_' + File.read(File.expand_path('../VERSION', __dir__)).strip
    super(credential, region, api_version, api_endpoint, sdk_version, profile)
end

Instance Method Details

#CreateActivityLicense(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::CreateActivityLicenseResponse

Parameters:

  • request:

    Request instance for CreateActivityLicense.



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

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

#CreateApplicationAndBindLicense(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::CreateApplicationAndBindLicenseResponse

Parameters:

  • request:

    Request instance for CreateApplicationAndBindLicense.



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

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

#CreateApplicationAndVideo(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::CreateApplicationAndVideoResponse

Parameters:

  • request:

    Request instance for CreateApplicationAndVideo.



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

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

#CreateApplicationAndWebPlayerLicense(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::CreateApplicationAndWebPlayerLicenseResponse

Parameters:

  • request:

    Request instance for CreateApplicationAndWebPlayerLicense.



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

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

#CreateLicense(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::CreateLicenseResponse

Parameters:

  • request:

    Request instance for CreateLicense.



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

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

#CreateTestXMagic(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::CreateTestXMagicResponse

Parameters:

  • request:

    Request instance for CreateTestXMagic.



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

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

#CreateTrialApplicationAndLicense(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::CreateTrialApplicationAndLicenseResponse

Parameters:

  • request:

    Request instance for CreateTrialApplicationAndLicense.



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

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

#CreateTrialLicense(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::CreateTrialLicenseResponse

Parameters:

  • request:

    Request instance for CreateTrialLicense.



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

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

#CreateXMagic(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::CreateXMagicResponse

Parameters:

  • request:

    Request instance for CreateXMagic.



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

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

#DeleteApplicationAndVideoLicense(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::DeleteApplicationAndVideoLicenseResponse

Parameters:

  • request:

    Request instance for DeleteApplicationAndVideoLicense.



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

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

#DeleteApplicationAndWebPlayerLicense(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::DeleteApplicationAndWebPlayerLicenseResponse

Parameters:

  • request:

    Request instance for DeleteApplicationAndWebPlayerLicense.



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

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

#DescribeFeatureList(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::DescribeFeatureListResponse

Parameters:

  • request:

    Request instance for DescribeFeatureList.



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

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

#DescribeLicenseList(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::DescribeLicenseListResponse

Parameters:

  • request:

    Request instance for DescribeLicenseList.



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

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

#DescribeNews(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::DescribeNewsResponse

Parameters:

  • request:

    Request instance for DescribeNews.



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

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

#DescribeSTS(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::DescribeSTSResponse

Parameters:

  • request:

    Request instance for DescribeSTS.



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

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

#DescribeTrialFeature(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::DescribeTrialFeatureResponse

Parameters:

  • request:

    Request instance for DescribeTrialFeature.



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

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

#DescribeUserConfig(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::DescribeUserConfigResponse

Parameters:

  • request:

    Request instance for DescribeUserConfig.



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

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

#DescribeVcubeApplicationAndLicense(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::DescribeVcubeApplicationAndLicenseResponse

Parameters:

  • request:

    Request instance for DescribeVcubeApplicationAndLicense.



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

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

#DescribeVcubeApplicationAndPlayList(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::DescribeVcubeApplicationAndPlayListResponse

Parameters:

  • request:

    Request instance for DescribeVcubeApplicationAndPlayList.



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

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

#DescribeVcubeApplicationAndXMagicList(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::DescribeVcubeApplicationAndXMagicListResponse

Parameters:

  • request:

    Request instance for DescribeVcubeApplicationAndXMagicList.



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

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

#DescribeVcubeResources(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::DescribeVcubeResourcesResponse

Parameters:

  • request:

    Request instance for DescribeVcubeResources.



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

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

#DescribeVcubeResourcesList(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::DescribeVcubeResourcesListResponse

Parameters:

  • request:

    Request instance for DescribeVcubeResourcesList.



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

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

#DescribeXMagicResource(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::DescribeXMagicResourceResponse

Parameters:

  • request:

    Request instance for DescribeXMagicResource.



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

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

#DescribeXMagicResourceList(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::DescribeXMagicResourceListResponse

Parameters:

  • request:

    Request instance for DescribeXMagicResourceList.



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

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

#ModifyApplication(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::ModifyApplicationResponse

Parameters:

  • request:

    Request instance for ModifyApplication.



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

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

#ModifyFormalApplication(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::ModifyFormalApplicationResponse

Parameters:

  • request:

    Request instance for ModifyFormalApplication.



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

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

#ModifyLicense(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::ModifyLicenseResponse

Parameters:

  • request:

    Request instance for ModifyLicense.



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

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

#ModifyPresetApplication(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::ModifyPresetApplicationResponse

Parameters:

  • request:

    Request instance for ModifyPresetApplication.



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

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

#ModifyTrialLicense(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::ModifyTrialLicenseResponse

Parameters:

  • request:

    Request instance for ModifyTrialLicense.



709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
# File 'lib/v20220410/client.rb', line 709

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

#ModifyXMagic(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::ModifyXMagicResponse

Parameters:

  • request:

    Request instance for ModifyXMagic.



733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
# File 'lib/v20220410/client.rb', line 733

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

#RenewLicense(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::RenewLicenseResponse

Parameters:

  • request:

    Request instance for RenewLicense.



757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
# File 'lib/v20220410/client.rb', line 757

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

#RenewTestXMagic(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::RenewTestXMagicResponse

Parameters:

  • request:

    Request instance for RenewTestXMagic.



781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
# File 'lib/v20220410/client.rb', line 781

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

#RenewVideo(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::RenewVideoResponse

Parameters:

  • request:

    Request instance for RenewVideo.



805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
# File 'lib/v20220410/client.rb', line 805

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

#UpdateTestXMagic(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::UpdateTestXMagicResponse

Parameters:

  • request:

    Request instance for UpdateTestXMagic.



829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
# File 'lib/v20220410/client.rb', line 829

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

#UpdateTrialLicense(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::UpdateTrialLicenseResponse

Parameters:

  • request:

    Request instance for UpdateTrialLicense.



853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
# File 'lib/v20220410/client.rb', line 853

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

#UpdateXMagic(request) ⇒ Object

@rtype: :class:Tencentcloud::vcube::V20220410::UpdateXMagicResponse

Parameters:

  • request:

    Request instance for UpdateXMagic.



877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
# File 'lib/v20220410/client.rb', line 877

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