Class: TencentCloud::Batch::V20170312::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Batch::V20170312::Client
- Defined in:
- lib/v20170312/client.rb
Instance Method Summary collapse
-
#AttachInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::AttachInstancesResponse`.
-
#CreateComputeEnv(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::CreateComputeEnvResponse`.
-
#CreateTaskTemplate(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::CreateTaskTemplateResponse`.
-
#DeleteComputeEnv(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DeleteComputeEnvResponse`.
-
#DeleteJob(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DeleteJobResponse`.
-
#DeleteTaskTemplates(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DeleteTaskTemplatesResponse`.
-
#DescribeAvailableCvmInstanceTypes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeAvailableCvmInstanceTypesResponse`.
-
#DescribeComputeEnv(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeComputeEnvResponse`.
-
#DescribeComputeEnvActivities(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeComputeEnvActivitiesResponse`.
-
#DescribeComputeEnvCreateInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeComputeEnvCreateInfoResponse`.
-
#DescribeComputeEnvCreateInfos(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeComputeEnvCreateInfosResponse`.
-
#DescribeComputeEnvs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeComputeEnvsResponse`.
-
#DescribeCvmZoneInstanceConfigInfos(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeCvmZoneInstanceConfigInfosResponse`.
-
#DescribeInstanceCategories(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeInstanceCategoriesResponse`.
-
#DescribeJob(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeJobResponse`.
-
#DescribeJobMonitorData(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeJobMonitorDataResponse`.
-
#DescribeJobs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeJobsResponse`.
-
#DescribeJobSubmitInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeJobSubmitInfoResponse`.
-
#DescribeTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeTaskResponse`.
-
#DescribeTaskLogs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeTaskLogsResponse`.
-
#DescribeTaskTemplates(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeTaskTemplatesResponse`.
-
#DetachInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DetachInstancesResponse`.
-
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#ModifyComputeEnv(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::ModifyComputeEnvResponse`.
-
#ModifyTaskTemplate(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::ModifyTaskTemplateResponse`.
-
#RetryJobs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::RetryJobsResponse`.
-
#SubmitJob(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::SubmitJobResponse`.
-
#TerminateComputeNode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::TerminateComputeNodeResponse`.
-
#TerminateComputeNodes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::TerminateComputeNodesResponse`.
-
#TerminateJob(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::TerminateJobResponse`.
-
#TerminateTaskInstance(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::TerminateTaskInstanceResponse`.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20170312/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2017-03-12' api_endpoint = 'batch.tencentcloudapi.com' sdk_version = 'BATCH_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#AttachInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::AttachInstancesResponse`
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/v20170312/client.rb', line 43 def AttachInstances(request) body = send_request('AttachInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = AttachInstancesResponse.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 |
#CreateComputeEnv(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::CreateComputeEnvResponse`
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/v20170312/client.rb', line 67 def CreateComputeEnv(request) body = send_request('CreateComputeEnv', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateComputeEnvResponse.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 |
#CreateTaskTemplate(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::CreateTaskTemplateResponse`
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/v20170312/client.rb', line 91 def CreateTaskTemplate(request) body = send_request('CreateTaskTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateTaskTemplateResponse.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 |
#DeleteComputeEnv(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DeleteComputeEnvResponse`
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/v20170312/client.rb', line 115 def DeleteComputeEnv(request) body = send_request('DeleteComputeEnv', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteComputeEnvResponse.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 |
#DeleteJob(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DeleteJobResponse`
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'lib/v20170312/client.rb', line 141 def DeleteJob(request) body = send_request('DeleteJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteJobResponse.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 |
#DeleteTaskTemplates(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DeleteTaskTemplatesResponse`
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/v20170312/client.rb', line 165 def DeleteTaskTemplates(request) body = send_request('DeleteTaskTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteTaskTemplatesResponse.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 |
#DescribeAvailableCvmInstanceTypes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeAvailableCvmInstanceTypesResponse`
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
# File 'lib/v20170312/client.rb', line 189 def DescribeAvailableCvmInstanceTypes(request) body = send_request('DescribeAvailableCvmInstanceTypes', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAvailableCvmInstanceTypesResponse.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 |
#DescribeComputeEnv(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeComputeEnvResponse`
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 |
# File 'lib/v20170312/client.rb', line 213 def DescribeComputeEnv(request) body = send_request('DescribeComputeEnv', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeComputeEnvResponse.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 |
#DescribeComputeEnvActivities(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeComputeEnvActivitiesResponse`
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 |
# File 'lib/v20170312/client.rb', line 237 def DescribeComputeEnvActivities(request) body = send_request('DescribeComputeEnvActivities', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeComputeEnvActivitiesResponse.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 |
#DescribeComputeEnvCreateInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeComputeEnvCreateInfoResponse`
261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 |
# File 'lib/v20170312/client.rb', line 261 def DescribeComputeEnvCreateInfo(request) body = send_request('DescribeComputeEnvCreateInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeComputeEnvCreateInfoResponse.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 |
#DescribeComputeEnvCreateInfos(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeComputeEnvCreateInfosResponse`
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 |
# File 'lib/v20170312/client.rb', line 285 def DescribeComputeEnvCreateInfos(request) body = send_request('DescribeComputeEnvCreateInfos', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeComputeEnvCreateInfosResponse.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 |
#DescribeComputeEnvs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeComputeEnvsResponse`
309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 |
# File 'lib/v20170312/client.rb', line 309 def DescribeComputeEnvs(request) body = send_request('DescribeComputeEnvs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeComputeEnvsResponse.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 |
#DescribeCvmZoneInstanceConfigInfos(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeCvmZoneInstanceConfigInfosResponse`
333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 |
# File 'lib/v20170312/client.rb', line 333 def DescribeCvmZoneInstanceConfigInfos(request) body = send_request('DescribeCvmZoneInstanceConfigInfos', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeCvmZoneInstanceConfigInfosResponse.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 |
#DescribeInstanceCategories(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeInstanceCategoriesResponse`
357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 |
# File 'lib/v20170312/client.rb', line 357 def DescribeInstanceCategories(request) body = send_request('DescribeInstanceCategories', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeInstanceCategoriesResponse.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 |
#DescribeJob(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeJobResponse`
381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 |
# File 'lib/v20170312/client.rb', line 381 def DescribeJob(request) body = send_request('DescribeJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeJobResponse.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 |
#DescribeJobMonitorData(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeJobMonitorDataResponse`
405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 |
# File 'lib/v20170312/client.rb', line 405 def DescribeJobMonitorData(request) body = send_request('DescribeJobMonitorData', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeJobMonitorDataResponse.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::batch::V20170312::DescribeJobsResponse`
453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 |
# File 'lib/v20170312/client.rb', line 453 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 |
#DescribeJobSubmitInfo(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeJobSubmitInfoResponse`
429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 |
# File 'lib/v20170312/client.rb', line 429 def DescribeJobSubmitInfo(request) body = send_request('DescribeJobSubmitInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeJobSubmitInfoResponse.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 |
#DescribeTask(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeTaskResponse`
477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 |
# File 'lib/v20170312/client.rb', line 477 def DescribeTask(request) body = send_request('DescribeTask', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTaskResponse.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 |
#DescribeTaskLogs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeTaskLogsResponse`
501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 |
# File 'lib/v20170312/client.rb', line 501 def DescribeTaskLogs(request) body = send_request('DescribeTaskLogs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTaskLogsResponse.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 |
#DescribeTaskTemplates(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DescribeTaskTemplatesResponse`
525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 |
# File 'lib/v20170312/client.rb', line 525 def DescribeTaskTemplates(request) body = send_request('DescribeTaskTemplates', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeTaskTemplatesResponse.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 |
#DetachInstances(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::DetachInstancesResponse`
549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 |
# File 'lib/v20170312/client.rb', line 549 def DetachInstances(request) body = send_request('DetachInstances', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DetachInstancesResponse.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 |
#ModifyComputeEnv(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::ModifyComputeEnvResponse`
573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 |
# File 'lib/v20170312/client.rb', line 573 def ModifyComputeEnv(request) body = send_request('ModifyComputeEnv', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyComputeEnvResponse.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 |
#ModifyTaskTemplate(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::ModifyTaskTemplateResponse`
597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 |
# File 'lib/v20170312/client.rb', line 597 def ModifyTaskTemplate(request) body = send_request('ModifyTaskTemplate', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyTaskTemplateResponse.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 |
#RetryJobs(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::RetryJobsResponse`
622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 |
# File 'lib/v20170312/client.rb', line 622 def RetryJobs(request) body = send_request('RetryJobs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = RetryJobsResponse.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 |
#SubmitJob(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::SubmitJobResponse`
646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 |
# File 'lib/v20170312/client.rb', line 646 def SubmitJob(request) body = send_request('SubmitJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SubmitJobResponse.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 |
#TerminateComputeNode(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::TerminateComputeNodeResponse`
671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 |
# File 'lib/v20170312/client.rb', line 671 def TerminateComputeNode(request) body = send_request('TerminateComputeNode', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = TerminateComputeNodeResponse.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 |
#TerminateComputeNodes(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::TerminateComputeNodesResponse`
695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 |
# File 'lib/v20170312/client.rb', line 695 def TerminateComputeNodes(request) body = send_request('TerminateComputeNodes', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = TerminateComputeNodesResponse.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 |
#TerminateJob(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::TerminateJobResponse`
721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 |
# File 'lib/v20170312/client.rb', line 721 def TerminateJob(request) body = send_request('TerminateJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = TerminateJobResponse.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 |
#TerminateTaskInstance(request) ⇒ Object
@rtype: :class:‘Tencentcloud::batch::V20170312::TerminateTaskInstanceResponse`
749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 |
# File 'lib/v20170312/client.rb', line 749 def TerminateTaskInstance(request) body = send_request('TerminateTaskInstance', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = TerminateTaskInstanceResponse.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 |