tencentcloud-sdk-cdb 1.0.229 → 1.0.233
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20170320/client.rb +48 -0
- data/lib/v20170320/models.rb +74 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ade45d519d035eb1460e17e34c626505b6a476a
|
|
4
|
+
data.tar.gz: 7ad808c3623b473db84ec6f88305b685f92dab95
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: caea98db1839236f3f57a88f3d02a77b4e0a11b7d96ecd899f30d3859a86a6dc5ea6696f4fc5c3771e5fa3a922cbb46adf8f8e98abd7919be622606cc5280796
|
|
7
|
+
data.tar.gz: 56ab881e5dd604ac44ee073b0fbe52ef89ed207f2cc99e26fc580ad263dd84ca38c21ec8b625579c429b3f4ac82778f643d199a2aed1924d4c273dae2f39cb90
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.233
|
data/lib/v20170320/client.rb
CHANGED
|
@@ -2613,6 +2613,30 @@ module TencentCloud
|
|
|
2613
2613
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2614
2614
|
end
|
|
2615
2615
|
|
|
2616
|
+
# 开启 RO 复制,从主实例同步数据。
|
|
2617
|
+
|
|
2618
|
+
# @param request: Request instance for StartReplication.
|
|
2619
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::StartReplicationRequest`
|
|
2620
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::StartReplicationResponse`
|
|
2621
|
+
def StartReplication(request)
|
|
2622
|
+
body = send_request('StartReplication', request.serialize)
|
|
2623
|
+
response = JSON.parse(body)
|
|
2624
|
+
if response['Response'].key?('Error') == false
|
|
2625
|
+
model = StartReplicationResponse.new
|
|
2626
|
+
model.deserialize(response['Response'])
|
|
2627
|
+
model
|
|
2628
|
+
else
|
|
2629
|
+
code = response['Response']['Error']['Code']
|
|
2630
|
+
message = response['Response']['Error']['Message']
|
|
2631
|
+
reqid = response['Response']['RequestId']
|
|
2632
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
2633
|
+
end
|
|
2634
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
2635
|
+
raise e
|
|
2636
|
+
rescue StandardError => e
|
|
2637
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2638
|
+
end
|
|
2639
|
+
|
|
2616
2640
|
# 本接口(StopDBImportJob)用于终止数据导入任务。
|
|
2617
2641
|
|
|
2618
2642
|
# @param request: Request instance for StopDBImportJob.
|
|
@@ -2637,6 +2661,30 @@ module TencentCloud
|
|
|
2637
2661
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2638
2662
|
end
|
|
2639
2663
|
|
|
2664
|
+
# 停止 RO 复制,中断从主实例同步数据。
|
|
2665
|
+
|
|
2666
|
+
# @param request: Request instance for StopReplication.
|
|
2667
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::StopReplicationRequest`
|
|
2668
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::StopReplicationResponse`
|
|
2669
|
+
def StopReplication(request)
|
|
2670
|
+
body = send_request('StopReplication', request.serialize)
|
|
2671
|
+
response = JSON.parse(body)
|
|
2672
|
+
if response['Response'].key?('Error') == false
|
|
2673
|
+
model = StopReplicationResponse.new
|
|
2674
|
+
model.deserialize(response['Response'])
|
|
2675
|
+
model
|
|
2676
|
+
else
|
|
2677
|
+
code = response['Response']['Error']['Code']
|
|
2678
|
+
message = response['Response']['Error']['Message']
|
|
2679
|
+
reqid = response['Response']['RequestId']
|
|
2680
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
2681
|
+
end
|
|
2682
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
2683
|
+
raise e
|
|
2684
|
+
rescue StandardError => e
|
|
2685
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2686
|
+
end
|
|
2687
|
+
|
|
2640
2688
|
# 本接口(StopRollback) 用于撤销实例正在进行的回档任务,该接口返回一个异步任务id。 撤销结果可以通过 DescribeAsyncRequestInfo 查询任务的执行情况。
|
|
2641
2689
|
|
|
2642
2690
|
# @param request: Request instance for StopRollback.
|
data/lib/v20170320/models.rb
CHANGED
|
@@ -8456,6 +8456,43 @@ module TencentCloud
|
|
|
8456
8456
|
end
|
|
8457
8457
|
end
|
|
8458
8458
|
|
|
8459
|
+
# StartReplication请求参数结构体
|
|
8460
|
+
class StartReplicationRequest < TencentCloud::Common::AbstractModel
|
|
8461
|
+
# @param InstanceId: 实例 ID。仅支持只读实例。
|
|
8462
|
+
# @type InstanceId: String
|
|
8463
|
+
|
|
8464
|
+
attr_accessor :InstanceId
|
|
8465
|
+
|
|
8466
|
+
def initialize(instanceid=nil)
|
|
8467
|
+
@InstanceId = instanceid
|
|
8468
|
+
end
|
|
8469
|
+
|
|
8470
|
+
def deserialize(params)
|
|
8471
|
+
@InstanceId = params['InstanceId']
|
|
8472
|
+
end
|
|
8473
|
+
end
|
|
8474
|
+
|
|
8475
|
+
# StartReplication返回参数结构体
|
|
8476
|
+
class StartReplicationResponse < TencentCloud::Common::AbstractModel
|
|
8477
|
+
# @param AsyncRequestId: 异步任务 ID。
|
|
8478
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
8479
|
+
# @type AsyncRequestId: String
|
|
8480
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
8481
|
+
# @type RequestId: String
|
|
8482
|
+
|
|
8483
|
+
attr_accessor :AsyncRequestId, :RequestId
|
|
8484
|
+
|
|
8485
|
+
def initialize(asyncrequestid=nil, requestid=nil)
|
|
8486
|
+
@AsyncRequestId = asyncrequestid
|
|
8487
|
+
@RequestId = requestid
|
|
8488
|
+
end
|
|
8489
|
+
|
|
8490
|
+
def deserialize(params)
|
|
8491
|
+
@AsyncRequestId = params['AsyncRequestId']
|
|
8492
|
+
@RequestId = params['RequestId']
|
|
8493
|
+
end
|
|
8494
|
+
end
|
|
8495
|
+
|
|
8459
8496
|
# StopDBImportJob请求参数结构体
|
|
8460
8497
|
class StopDBImportJobRequest < TencentCloud::Common::AbstractModel
|
|
8461
8498
|
# @param AsyncRequestId: 异步任务的请求 ID。
|
|
@@ -8488,6 +8525,43 @@ module TencentCloud
|
|
|
8488
8525
|
end
|
|
8489
8526
|
end
|
|
8490
8527
|
|
|
8528
|
+
# StopReplication请求参数结构体
|
|
8529
|
+
class StopReplicationRequest < TencentCloud::Common::AbstractModel
|
|
8530
|
+
# @param InstanceId: 实例 ID。仅支持只读实例。
|
|
8531
|
+
# @type InstanceId: String
|
|
8532
|
+
|
|
8533
|
+
attr_accessor :InstanceId
|
|
8534
|
+
|
|
8535
|
+
def initialize(instanceid=nil)
|
|
8536
|
+
@InstanceId = instanceid
|
|
8537
|
+
end
|
|
8538
|
+
|
|
8539
|
+
def deserialize(params)
|
|
8540
|
+
@InstanceId = params['InstanceId']
|
|
8541
|
+
end
|
|
8542
|
+
end
|
|
8543
|
+
|
|
8544
|
+
# StopReplication返回参数结构体
|
|
8545
|
+
class StopReplicationResponse < TencentCloud::Common::AbstractModel
|
|
8546
|
+
# @param AsyncRequestId: 异步任务 ID。
|
|
8547
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
8548
|
+
# @type AsyncRequestId: String
|
|
8549
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
8550
|
+
# @type RequestId: String
|
|
8551
|
+
|
|
8552
|
+
attr_accessor :AsyncRequestId, :RequestId
|
|
8553
|
+
|
|
8554
|
+
def initialize(asyncrequestid=nil, requestid=nil)
|
|
8555
|
+
@AsyncRequestId = asyncrequestid
|
|
8556
|
+
@RequestId = requestid
|
|
8557
|
+
end
|
|
8558
|
+
|
|
8559
|
+
def deserialize(params)
|
|
8560
|
+
@AsyncRequestId = params['AsyncRequestId']
|
|
8561
|
+
@RequestId = params['RequestId']
|
|
8562
|
+
end
|
|
8563
|
+
end
|
|
8564
|
+
|
|
8491
8565
|
# StopRollback请求参数结构体
|
|
8492
8566
|
class StopRollbackRequest < TencentCloud::Common::AbstractModel
|
|
8493
8567
|
# @param InstanceId: 撤销回档任务对应的实例Id。
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-cdb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.233
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-12-
|
|
11
|
+
date: 2021-12-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|