Class: TencentCloud::Oceanus::V20190422::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Oceanus::V20190422::Client
- Defined in:
- lib/v20190422/client.rb
Instance Method Summary collapse
-
#CheckConnectorName(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CheckConnectorNameResponse`.
-
#CheckSavepoint(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CheckSavepointResponse`.
-
#CopyJobs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CopyJobsResponse`.
-
#CreateConnector(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateConnectorResponse`.
-
#CreateFolder(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateFolderResponse`.
-
#CreateJob(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateJobResponse`.
-
#CreateJobConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateJobConfigResponse`.
-
#CreateResource(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateResourceResponse`.
-
#CreateResourceConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateResourceConfigResponse`.
-
#CreateVariable(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateVariableResponse`.
-
#CreateWorkSpace(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateWorkSpaceResponse`.
-
#DeleteFolders(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteFoldersResponse`.
-
#DeleteJobConfigs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteJobConfigsResponse`.
-
#DeleteJobs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteJobsResponse`.
-
#DeleteResourceConfigs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteResourceConfigsResponse`.
-
#DeleteResources(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteResourcesResponse`.
-
#DeleteTableConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteTableConfigResponse`.
-
#DeleteWorkSpace(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteWorkSpaceResponse`.
-
#DescribeClusters(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeClustersResponse`.
-
#DescribeFolder(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeFolderResponse`.
-
#DescribeJobConfigs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeJobConfigsResponse`.
-
#DescribeJobEvents(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeJobEventsResponse`.
-
#DescribeJobRuntimeInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeJobRuntimeInfoResponse`.
-
#DescribeJobs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeJobsResponse`.
-
#DescribeJobSavepoint(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeJobSavepointResponse`.
-
#DescribeJobSubmissionLog(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeJobSubmissionLogResponse`.
-
#DescribeResourceConfigs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeResourceConfigsResponse`.
-
#DescribeResourceRelatedJobs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeResourceRelatedJobsResponse`.
-
#DescribeResources(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeResourcesResponse`.
-
#DescribeSystemResources(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeSystemResourcesResponse`.
-
#DescribeTreeJobs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeTreeJobsResponse`.
-
#DescribeTreeResources(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeTreeResourcesResponse`.
-
#DescribeVariables(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeVariablesResponse`.
-
#DescribeWorkSpaces(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeWorkSpacesResponse`.
-
#FetchSqlGatewayStatementResult(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::FetchSqlGatewayStatementResultResponse`.
-
#GetMetaTable(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::GetMetaTableResponse`.
-
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#ModifyConnector(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::ModifyConnectorResponse`.
-
#ModifyFolder(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::ModifyFolderResponse`.
-
#ModifyJob(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::ModifyJobResponse`.
-
#ModifyWorkSpace(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::ModifyWorkSpaceResponse`.
-
#ParseConnector(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::ParseConnectorResponse`.
-
#RunJobs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::RunJobsResponse`.
-
#RunSqlGatewayStatement(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::RunSqlGatewayStatementResponse`.
-
#StopJobs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::StopJobsResponse`.
-
#TriggerJobSavepoint(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::TriggerJobSavepointResponse`.
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.('../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`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CheckSavepoint(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CheckSavepointResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CopyJobs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CopyJobsResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateConnector(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateConnectorResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateFolder(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateFolderResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateJob(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateJobResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateJobConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateJobConfigResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateResource(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateResourceResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateResourceConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateResourceConfigResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateVariable(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateVariableResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#CreateWorkSpace(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::CreateWorkSpaceResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteFolders(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteFoldersResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteJobConfigs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteJobConfigsResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteJobs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteJobsResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteResourceConfigs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteResourceConfigsResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteResources(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteResourcesResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteTableConfig(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteTableConfigResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DeleteWorkSpace(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DeleteWorkSpaceResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeClusters(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeClustersResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeFolder(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeFolderResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeJobConfigs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeJobConfigsResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeJobEvents(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeJobEventsResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeJobRuntimeInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeJobRuntimeInfoResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeJobs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeJobsResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeJobSavepoint(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeJobSavepointResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeJobSubmissionLog(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeJobSubmissionLogResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeResourceConfigs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeResourceConfigsResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeResourceRelatedJobs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeResourceRelatedJobsResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeResources(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeResourcesResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeSystemResources(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeSystemResourcesResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeTreeJobs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeTreeJobsResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeTreeResources(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeTreeResourcesResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeVariables(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeVariablesResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#DescribeWorkSpaces(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::DescribeWorkSpacesResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#FetchSqlGatewayStatementResult(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::FetchSqlGatewayStatementResultResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#GetMetaTable(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::GetMetaTableResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyConnector(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::ModifyConnectorResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyFolder(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::ModifyFolderResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyJob(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::ModifyJobResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ModifyWorkSpace(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::ModifyWorkSpaceResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#ParseConnector(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::ParseConnectorResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RunJobs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::RunJobsResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#RunSqlGatewayStatement(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::RunSqlGatewayStatementResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#StopJobs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::StopJobsResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |
#TriggerJobSavepoint(request) ⇒ Object
@rtype: :class:‘Tencentcloud::oceanus::V20190422::TriggerJobSavepointResponse`
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'] = response['Response']['Error']['Message'] reqid = response['Response']['RequestId'] raise TencentCloud::Common::TencentCloudSDKException.new(code, , reqid) end rescue TencentCloud::Common::TencentCloudSDKException => e raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end |