Class: TencentCloud::Oceanus::V20190422::Client

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

def initialize(credential, region, profile = nil)
    api_version = '2019-04-22'
    api_endpoint = 'oceanus.tencentcloudapi.com'
    sdk_version = 'OCEANUS_' + File.read(File.expand_path('../VERSION', __dir__)).strip
    super(credential, region, api_version, api_endpoint, sdk_version, profile)
end

Instance Method Details

#CheckConnectorName(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::CheckConnectorNameResponse`

Parameters:

  • request:

    Request instance for CheckConnectorName.



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

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

#CheckSavepoint(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::CheckSavepointResponse`

Parameters:

  • request:

    Request instance for CheckSavepoint.



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

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

#CopyJobs(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::CopyJobsResponse`

Parameters:

  • request:

    Request instance for CopyJobs.



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

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

#CreateConnector(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateConnectorResponse`

Parameters:

  • request:

    Request instance for CreateConnector.



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

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

#CreateFolder(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateFolderResponse`

Parameters:

  • request:

    Request instance for CreateFolder.



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

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

#CreateJob(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateJobResponse`

Parameters:

  • request:

    Request instance for CreateJob.



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

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

#CreateJobConfig(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateJobConfigResponse`

Parameters:

  • request:

    Request instance for CreateJobConfig.



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

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

#CreateResource(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateResourceResponse`

Parameters:

  • request:

    Request instance for CreateResource.



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

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

#CreateResourceConfig(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateResourceConfigResponse`

Parameters:

  • request:

    Request instance for CreateResourceConfig.



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

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

#CreateVariable(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateVariableResponse`

Parameters:

  • request:

    Request instance for CreateVariable.



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

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

#CreateWorkSpace(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateWorkSpaceResponse`

Parameters:

  • request:

    Request instance for CreateWorkSpace.



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

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

#DeleteFolders(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteFoldersResponse`

Parameters:

  • request:

    Request instance for DeleteFolders.



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

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

#DeleteJobConfigs(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteJobConfigsResponse`

Parameters:

  • request:

    Request instance for DeleteJobConfigs.



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

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

#DeleteJobs(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteJobsResponse`

Parameters:

  • request:

    Request instance for DeleteJobs.



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

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

#DeleteResourceConfigs(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteResourceConfigsResponse`

Parameters:

  • request:

    Request instance for DeleteResourceConfigs.



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

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

#DeleteResources(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteResourcesResponse`

Parameters:

  • request:

    Request instance for DeleteResources.



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

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

#DeleteTableConfig(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteTableConfigResponse`

Parameters:

  • request:

    Request instance for DeleteTableConfig.



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

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

#DeleteWorkSpace(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteWorkSpaceResponse`

Parameters:

  • request:

    Request instance for DeleteWorkSpace.



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

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

#DescribeClusters(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeClustersResponse`

Parameters:

  • request:

    Request instance for DescribeClusters.



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

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

#DescribeFolder(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeFolderResponse`

Parameters:

  • request:

    Request instance for DescribeFolder.



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

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

#DescribeJobConfigs(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeJobConfigsResponse`

Parameters:

  • request:

    Request instance for DescribeJobConfigs.



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

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

#DescribeJobEvents(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeJobEventsResponse`

Parameters:

  • request:

    Request instance for DescribeJobEvents.



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

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

#DescribeJobRuntimeInfo(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeJobRuntimeInfoResponse`

Parameters:

  • request:

    Request instance for DescribeJobRuntimeInfo.



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

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

#DescribeJobs(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeJobsResponse`

Parameters:

  • request:

    Request instance for DescribeJobs.



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

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

#DescribeJobSavepoint(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeJobSavepointResponse`

Parameters:

  • request:

    Request instance for DescribeJobSavepoint.



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

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

#DescribeJobSubmissionLog(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeJobSubmissionLogResponse`

Parameters:

  • request:

    Request instance for DescribeJobSubmissionLog.



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

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

#DescribeResourceConfigs(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeResourceConfigsResponse`

Parameters:

  • request:

    Request instance for DescribeResourceConfigs.



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

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

#DescribeResourceRelatedJobs(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeResourceRelatedJobsResponse`

Parameters:

  • request:

    Request instance for DescribeResourceRelatedJobs.



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

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

#DescribeResources(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeResourcesResponse`

Parameters:

  • request:

    Request instance for DescribeResources.



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

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

#DescribeSystemResources(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeSystemResourcesResponse`

Parameters:

  • request:

    Request instance for DescribeSystemResources.



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

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

#DescribeTreeJobs(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeTreeJobsResponse`

Parameters:

  • request:

    Request instance for DescribeTreeJobs.



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

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

#DescribeTreeResources(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeTreeResourcesResponse`

Parameters:

  • request:

    Request instance for DescribeTreeResources.



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

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

#DescribeVariables(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeVariablesResponse`

Parameters:

  • request:

    Request instance for DescribeVariables.



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

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

#DescribeWorkSpaces(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeWorkSpacesResponse`

Parameters:

  • request:

    Request instance for DescribeWorkSpaces.



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

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

#FetchSqlGatewayStatementResult(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::FetchSqlGatewayStatementResultResponse`

Parameters:

  • request:

    Request instance for FetchSqlGatewayStatementResult.



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

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

#GetMetaTable(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::GetMetaTableResponse`

Parameters:

  • request:

    Request instance for GetMetaTable.



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

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

#ModifyConnector(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::ModifyConnectorResponse`

Parameters:

  • request:

    Request instance for ModifyConnector.



901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
# File 'lib/v20190422/client.rb', line 901

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

#ModifyFolder(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::ModifyFolderResponse`

Parameters:

  • request:

    Request instance for ModifyFolder.



925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
# File 'lib/v20190422/client.rb', line 925

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

#ModifyJob(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::ModifyJobResponse`

Parameters:

  • request:

    Request instance for ModifyJob.



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

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

#ModifyWorkSpace(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::ModifyWorkSpaceResponse`

Parameters:

  • request:

    Request instance for ModifyWorkSpace.



981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
# File 'lib/v20190422/client.rb', line 981

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

#ParseConnector(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::ParseConnectorResponse`

Parameters:

  • request:

    Request instance for ParseConnector.



1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
# File 'lib/v20190422/client.rb', line 1005

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

#RunJobs(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::RunJobsResponse`

Parameters:

  • request:

    Request instance for RunJobs.



1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
# File 'lib/v20190422/client.rb', line 1029

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

#RunSqlGatewayStatement(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::RunSqlGatewayStatementResponse`

Parameters:

  • request:

    Request instance for RunSqlGatewayStatement.



1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
# File 'lib/v20190422/client.rb', line 1053

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

#StopJobs(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::StopJobsResponse`

Parameters:

  • request:

    Request instance for StopJobs.



1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
# File 'lib/v20190422/client.rb', line 1077

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

#TriggerJobSavepoint(request) ⇒ Object

@rtype: :class:‘Tencentcloud::oceanus::V20190422::TriggerJobSavepointResponse`

Parameters:

  • request:

    Request instance for TriggerJobSavepoint.



1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
# File 'lib/v20190422/client.rb', line 1101

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