Class: TencentCloud::Dts::V20180330::Client
- Inherits:
-
Common::AbstractClient
- Object
- Common::AbstractClient
- TencentCloud::Dts::V20180330::Client
- Defined in:
- lib/v20180330/client.rb
Instance Method Summary collapse
-
#ActivateSubscribe(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::ActivateSubscribeResponse. -
#CompleteMigrateJob(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::CompleteMigrateJobResponse. -
#CreateMigrateCheckJob(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::CreateMigrateCheckJobResponse. -
#CreateMigrateJob(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::CreateMigrateJobResponse. -
#CreateSubscribe(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::CreateSubscribeResponse. -
#DeleteMigrateJob(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::DeleteMigrateJobResponse. -
#DescribeAsyncRequestInfo(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::DescribeAsyncRequestInfoResponse. -
#DescribeMigrateCheckJob(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::DescribeMigrateCheckJobResponse. -
#DescribeMigrateJobs(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::DescribeMigrateJobsResponse. -
#DescribeSubscribeConf(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::DescribeSubscribeConfResponse. -
#DescribeSubscribes(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::DescribeSubscribesResponse. -
#initialize(credential, region, profile = nil) ⇒ Client
constructor
A new instance of Client.
-
#IsolateSubscribe(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::IsolateSubscribeResponse. -
#ModifyMigrateJob(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::ModifyMigrateJobResponse. -
#ModifySubscribeAutoRenewFlag(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::ModifySubscribeAutoRenewFlagResponse. -
#ModifySubscribeConsumeTime(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::ModifySubscribeConsumeTimeResponse. -
#ModifySubscribeName(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::ModifySubscribeNameResponse. -
#ModifySubscribeObjects(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::ModifySubscribeObjectsResponse. -
#ModifySubscribeVipVport(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::ModifySubscribeVipVportResponse. -
#OfflineIsolatedSubscribe(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::OfflineIsolatedSubscribeResponse. -
#ResetSubscribe(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::ResetSubscribeResponse. -
#StartMigrateJob(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::StartMigrateJobResponse. -
#StopMigrateJob(request) ⇒ Object
@rtype: :class:
Tencentcloud::dts::V20180330::StopMigrateJobResponse.
Constructor Details
#initialize(credential, region, profile = nil) ⇒ Client
Returns a new instance of Client.
24 25 26 27 28 29 |
# File 'lib/v20180330/client.rb', line 24 def initialize(credential, region, profile = nil) api_version = '2018-03-30' api_endpoint = 'dts.tencentcloudapi.com' sdk_version = 'DTS_' + File.read(File.('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end |
Instance Method Details
#ActivateSubscribe(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::ActivateSubscribeResponse
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/v20180330/client.rb', line 37 def ActivateSubscribe(request) body = send_request('ActivateSubscribe', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ActivateSubscribeResponse.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 |
#CompleteMigrateJob(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::CompleteMigrateJobResponse
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/v20180330/client.rb', line 63 def CompleteMigrateJob(request) body = send_request('CompleteMigrateJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CompleteMigrateJobResponse.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 |
#CreateMigrateCheckJob(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::CreateMigrateCheckJobResponse
91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 |
# File 'lib/v20180330/client.rb', line 91 def CreateMigrateCheckJob(request) body = send_request('CreateMigrateCheckJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateMigrateCheckJobResponse.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 |
#CreateMigrateJob(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::CreateMigrateJobResponse
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'lib/v20180330/client.rb', line 117 def CreateMigrateJob(request) body = send_request('CreateMigrateJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateMigrateJobResponse.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 |
#CreateSubscribe(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::CreateSubscribeResponse
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
# File 'lib/v20180330/client.rb', line 141 def CreateSubscribe(request) body = send_request('CreateSubscribe', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CreateSubscribeResponse.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 |
#DeleteMigrateJob(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::DeleteMigrateJobResponse
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 |
# File 'lib/v20180330/client.rb', line 165 def DeleteMigrateJob(request) body = send_request('DeleteMigrateJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DeleteMigrateJobResponse.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 |
#DescribeAsyncRequestInfo(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::DescribeAsyncRequestInfoResponse
189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 |
# File 'lib/v20180330/client.rb', line 189 def DescribeAsyncRequestInfo(request) body = send_request('DescribeAsyncRequestInfo', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeAsyncRequestInfoResponse.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 |
#DescribeMigrateCheckJob(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::DescribeMigrateCheckJobResponse
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 |
# File 'lib/v20180330/client.rb', line 215 def DescribeMigrateCheckJob(request) body = send_request('DescribeMigrateCheckJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMigrateCheckJobResponse.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 |
#DescribeMigrateJobs(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::DescribeMigrateJobsResponse
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 |
# File 'lib/v20180330/client.rb', line 240 def DescribeMigrateJobs(request) body = send_request('DescribeMigrateJobs', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeMigrateJobsResponse.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 |
#DescribeSubscribeConf(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::DescribeSubscribeConfResponse
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 |
# File 'lib/v20180330/client.rb', line 264 def DescribeSubscribeConf(request) body = send_request('DescribeSubscribeConf', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSubscribeConfResponse.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 |
#DescribeSubscribes(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::DescribeSubscribesResponse
288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 |
# File 'lib/v20180330/client.rb', line 288 def DescribeSubscribes(request) body = send_request('DescribeSubscribes', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeSubscribesResponse.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 |
#IsolateSubscribe(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::IsolateSubscribeResponse
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 |
# File 'lib/v20180330/client.rb', line 312 def IsolateSubscribe(request) body = send_request('IsolateSubscribe', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = IsolateSubscribeResponse.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 |
#ModifyMigrateJob(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::ModifyMigrateJobResponse
339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 |
# File 'lib/v20180330/client.rb', line 339 def ModifyMigrateJob(request) body = send_request('ModifyMigrateJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifyMigrateJobResponse.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 |
#ModifySubscribeAutoRenewFlag(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::ModifySubscribeAutoRenewFlagResponse
363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 |
# File 'lib/v20180330/client.rb', line 363 def ModifySubscribeAutoRenewFlag(request) body = send_request('ModifySubscribeAutoRenewFlag', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifySubscribeAutoRenewFlagResponse.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 |
#ModifySubscribeConsumeTime(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::ModifySubscribeConsumeTimeResponse
387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 |
# File 'lib/v20180330/client.rb', line 387 def ModifySubscribeConsumeTime(request) body = send_request('ModifySubscribeConsumeTime', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifySubscribeConsumeTimeResponse.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 |
#ModifySubscribeName(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::ModifySubscribeNameResponse
411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 |
# File 'lib/v20180330/client.rb', line 411 def ModifySubscribeName(request) body = send_request('ModifySubscribeName', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifySubscribeNameResponse.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 |
#ModifySubscribeObjects(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::ModifySubscribeObjectsResponse
435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 |
# File 'lib/v20180330/client.rb', line 435 def ModifySubscribeObjects(request) body = send_request('ModifySubscribeObjects', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifySubscribeObjectsResponse.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 |
#ModifySubscribeVipVport(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::ModifySubscribeVipVportResponse
459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 |
# File 'lib/v20180330/client.rb', line 459 def ModifySubscribeVipVport(request) body = send_request('ModifySubscribeVipVport', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ModifySubscribeVipVportResponse.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 |
#OfflineIsolatedSubscribe(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::OfflineIsolatedSubscribeResponse
483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 |
# File 'lib/v20180330/client.rb', line 483 def OfflineIsolatedSubscribe(request) body = send_request('OfflineIsolatedSubscribe', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = OfflineIsolatedSubscribeResponse.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 |
#ResetSubscribe(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::ResetSubscribeResponse
507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 |
# File 'lib/v20180330/client.rb', line 507 def ResetSubscribe(request) body = send_request('ResetSubscribe', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ResetSubscribeResponse.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 |
#StartMigrateJob(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::StartMigrateJobResponse
532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 |
# File 'lib/v20180330/client.rb', line 532 def StartMigrateJob(request) body = send_request('StartMigrateJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = StartMigrateJobResponse.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 |
#StopMigrateJob(request) ⇒ Object
@rtype: :class:Tencentcloud::dts::V20180330::StopMigrateJobResponse
557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 |
# File 'lib/v20180330/client.rb', line 557 def StopMigrateJob(request) body = send_request('StopMigrateJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = StopMigrateJobResponse.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 |