tencentcloud-sdk-mariadb 3.0.919 → 3.0.921
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20170312/client.rb +24 -0
- data/lib/v20170312/models.rb +44 -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: 3dd06be04341a8977ad235f6fa400c223455d69f
|
4
|
+
data.tar.gz: eabcdf338e15b329493006c829168312ce2145ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ecce3f3345d5090fcf636ad7f24e42991535d0c4bf87bff7a0fdf6734372136979354e6f65c3daac5a9cc42753c39982d0a1e526f1e10b438b1e6d992f03c873
|
7
|
+
data.tar.gz: a39da650c71fd514daf4dce7c813b289d21ef2c7dea83fd49c30cf9c59b17266e8b88aa6c5ae2ff300ec0c5bde7a240c843824577ce6fb7a315c100566f59bbd
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.921
|
data/lib/v20170312/client.rb
CHANGED
@@ -656,6 +656,30 @@ module TencentCloud
|
|
656
656
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
657
657
|
end
|
658
658
|
|
659
|
+
# 本接口(DescribeDBSyncMode)用于查询云数据库实例的同步模式。
|
660
|
+
|
661
|
+
# @param request: Request instance for DescribeDBSyncMode.
|
662
|
+
# @type request: :class:`Tencentcloud::mariadb::V20170312::DescribeDBSyncModeRequest`
|
663
|
+
# @rtype: :class:`Tencentcloud::mariadb::V20170312::DescribeDBSyncModeResponse`
|
664
|
+
def DescribeDBSyncMode(request)
|
665
|
+
body = send_request('DescribeDBSyncMode', request.serialize)
|
666
|
+
response = JSON.parse(body)
|
667
|
+
if response['Response'].key?('Error') == false
|
668
|
+
model = DescribeDBSyncModeResponse.new
|
669
|
+
model.deserialize(response['Response'])
|
670
|
+
model
|
671
|
+
else
|
672
|
+
code = response['Response']['Error']['Code']
|
673
|
+
message = response['Response']['Error']['Message']
|
674
|
+
reqid = response['Response']['RequestId']
|
675
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
676
|
+
end
|
677
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
678
|
+
raise e
|
679
|
+
rescue StandardError => e
|
680
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
681
|
+
end
|
682
|
+
|
659
683
|
# 本接口(DescribeDBTmpInstances)用于获取实例回档生成的临时实例
|
660
684
|
|
661
685
|
# @param request: Request instance for DescribeDBTmpInstances.
|
data/lib/v20170312/models.rb
CHANGED
@@ -2801,6 +2801,50 @@ module TencentCloud
|
|
2801
2801
|
end
|
2802
2802
|
end
|
2803
2803
|
|
2804
|
+
# DescribeDBSyncMode请求参数结构体
|
2805
|
+
class DescribeDBSyncModeRequest < TencentCloud::Common::AbstractModel
|
2806
|
+
# @param InstanceId: 实例ID,形如:tdsql-ow728lmc
|
2807
|
+
# @type InstanceId: String
|
2808
|
+
|
2809
|
+
attr_accessor :InstanceId
|
2810
|
+
|
2811
|
+
def initialize(instanceid=nil)
|
2812
|
+
@InstanceId = instanceid
|
2813
|
+
end
|
2814
|
+
|
2815
|
+
def deserialize(params)
|
2816
|
+
@InstanceId = params['InstanceId']
|
2817
|
+
end
|
2818
|
+
end
|
2819
|
+
|
2820
|
+
# DescribeDBSyncMode返回参数结构体
|
2821
|
+
class DescribeDBSyncModeResponse < TencentCloud::Common::AbstractModel
|
2822
|
+
# @param SyncMode: 同步模式:0 异步,1 强同步, 2 强同步可退化
|
2823
|
+
# @type SyncMode: Integer
|
2824
|
+
# @param IsModifying: 是否有修改流程在执行中:1 是, 0 否。
|
2825
|
+
# @type IsModifying: Integer
|
2826
|
+
# @param CurrentSyncMode: 当前复制方式,0 异步,1 同步
|
2827
|
+
# @type CurrentSyncMode: Integer
|
2828
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2829
|
+
# @type RequestId: String
|
2830
|
+
|
2831
|
+
attr_accessor :SyncMode, :IsModifying, :CurrentSyncMode, :RequestId
|
2832
|
+
|
2833
|
+
def initialize(syncmode=nil, ismodifying=nil, currentsyncmode=nil, requestid=nil)
|
2834
|
+
@SyncMode = syncmode
|
2835
|
+
@IsModifying = ismodifying
|
2836
|
+
@CurrentSyncMode = currentsyncmode
|
2837
|
+
@RequestId = requestid
|
2838
|
+
end
|
2839
|
+
|
2840
|
+
def deserialize(params)
|
2841
|
+
@SyncMode = params['SyncMode']
|
2842
|
+
@IsModifying = params['IsModifying']
|
2843
|
+
@CurrentSyncMode = params['CurrentSyncMode']
|
2844
|
+
@RequestId = params['RequestId']
|
2845
|
+
end
|
2846
|
+
end
|
2847
|
+
|
2804
2848
|
# DescribeDBTmpInstances请求参数结构体
|
2805
2849
|
class DescribeDBTmpInstancesRequest < TencentCloud::Common::AbstractModel
|
2806
2850
|
# @param InstanceId: 实例ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-mariadb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.921
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|