tencentcloud-sdk-cdb 1.0.245 → 1.0.246
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/v20170320/client.rb +24 -0
- data/lib/v20170320/models.rb +173 -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: 8cdbe44c05877abe8a58d5ca69e23b48c1a5ac23
|
4
|
+
data.tar.gz: 546f5f5850af27407ed78dac16808fa049332961
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d6a419074348a0c4d121ae7ad2d032bce4d46f02d6ff44968d5305dcd57625c2939ec4f66c29632d6232a7264b816ad6984341cf7649e6bb56049337d10f92b
|
7
|
+
data.tar.gz: 6c96176a7960fd81e0bc60cb94c8003555818b330614cdd378f977b148c8ff1ec7addbe9a714c961095d3dbfcb960865d7abff47a6aae5c5843fbfa526d3492a
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.246
|
data/lib/v20170320/client.rb
CHANGED
@@ -2777,6 +2777,30 @@ module TencentCloud
|
|
2777
2777
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2778
2778
|
end
|
2779
2779
|
|
2780
|
+
# 查询代理详情
|
2781
|
+
|
2782
|
+
# @param request: Request instance for QueryCDBProxy.
|
2783
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::QueryCDBProxyRequest`
|
2784
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::QueryCDBProxyResponse`
|
2785
|
+
def QueryCDBProxy(request)
|
2786
|
+
body = send_request('QueryCDBProxy', request.serialize)
|
2787
|
+
response = JSON.parse(body)
|
2788
|
+
if response['Response'].key?('Error') == false
|
2789
|
+
model = QueryCDBProxyResponse.new
|
2790
|
+
model.deserialize(response['Response'])
|
2791
|
+
model
|
2792
|
+
else
|
2793
|
+
code = response['Response']['Error']['Code']
|
2794
|
+
message = response['Response']['Error']['Message']
|
2795
|
+
reqid = response['Response']['RequestId']
|
2796
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2797
|
+
end
|
2798
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2799
|
+
raise e
|
2800
|
+
rescue StandardError => e
|
2801
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2802
|
+
end
|
2803
|
+
|
2780
2804
|
# 本接口(ReleaseIsolatedDBInstances)用于恢复已隔离云数据库实例。
|
2781
2805
|
|
2782
2806
|
# @param request: Request instance for ReleaseIsolatedDBInstances.
|
data/lib/v20170320/models.rb
CHANGED
@@ -8302,6 +8302,66 @@ module TencentCloud
|
|
8302
8302
|
end
|
8303
8303
|
end
|
8304
8304
|
|
8305
|
+
# 数据代理组信息
|
8306
|
+
class ProxyGroups < TencentCloud::Common::AbstractModel
|
8307
|
+
# @param BaseGroup: 代理基本信息
|
8308
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8309
|
+
# @type BaseGroup: :class:`Tencentcloud::Cdb.v20170320.models.BaseGroupInfo`
|
8310
|
+
# @param Address: 代理地址信息
|
8311
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8312
|
+
# @type Address: Array
|
8313
|
+
# @param ConnectionPoolInfo: 代理连接池信息
|
8314
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8315
|
+
# @type ConnectionPoolInfo: :class:`Tencentcloud::Cdb.v20170320.models.ConnectionPoolInfo`
|
8316
|
+
# @param ProxyNode: 代理节点信息
|
8317
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8318
|
+
# @type ProxyNode: Array
|
8319
|
+
# @param RWInstInfo: 代理路由信息
|
8320
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8321
|
+
# @type RWInstInfo: :class:`Tencentcloud::Cdb.v20170320.models.RWInfos`
|
8322
|
+
|
8323
|
+
attr_accessor :BaseGroup, :Address, :ConnectionPoolInfo, :ProxyNode, :RWInstInfo
|
8324
|
+
|
8325
|
+
def initialize(basegroup=nil, address=nil, connectionpoolinfo=nil, proxynode=nil, rwinstinfo=nil)
|
8326
|
+
@BaseGroup = basegroup
|
8327
|
+
@Address = address
|
8328
|
+
@ConnectionPoolInfo = connectionpoolinfo
|
8329
|
+
@ProxyNode = proxynode
|
8330
|
+
@RWInstInfo = rwinstinfo
|
8331
|
+
end
|
8332
|
+
|
8333
|
+
def deserialize(params)
|
8334
|
+
unless params['BaseGroup'].nil?
|
8335
|
+
@BaseGroup = BaseGroupInfo.new
|
8336
|
+
@BaseGroup.deserialize(params['BaseGroup'])
|
8337
|
+
end
|
8338
|
+
unless params['Address'].nil?
|
8339
|
+
@Address = []
|
8340
|
+
params['Address'].each do |i|
|
8341
|
+
address_tmp = Address.new
|
8342
|
+
address_tmp.deserialize(i)
|
8343
|
+
@Address << address_tmp
|
8344
|
+
end
|
8345
|
+
end
|
8346
|
+
unless params['ConnectionPoolInfo'].nil?
|
8347
|
+
@ConnectionPoolInfo = ConnectionPoolInfo.new
|
8348
|
+
@ConnectionPoolInfo.deserialize(params['ConnectionPoolInfo'])
|
8349
|
+
end
|
8350
|
+
unless params['ProxyNode'].nil?
|
8351
|
+
@ProxyNode = []
|
8352
|
+
params['ProxyNode'].each do |i|
|
8353
|
+
proxynodeinfo_tmp = ProxyNodeInfo.new
|
8354
|
+
proxynodeinfo_tmp.deserialize(i)
|
8355
|
+
@ProxyNode << proxynodeinfo_tmp
|
8356
|
+
end
|
8357
|
+
end
|
8358
|
+
unless params['RWInstInfo'].nil?
|
8359
|
+
@RWInstInfo = RWInfos.new
|
8360
|
+
@RWInstInfo.deserialize(params['RWInstInfo'])
|
8361
|
+
end
|
8362
|
+
end
|
8363
|
+
end
|
8364
|
+
|
8305
8365
|
# 代理节点信息
|
8306
8366
|
class ProxyNodeInfo < TencentCloud::Common::AbstractModel
|
8307
8367
|
# @param ProxyNodeId: 代理节点ID
|
@@ -8345,6 +8405,59 @@ module TencentCloud
|
|
8345
8405
|
end
|
8346
8406
|
end
|
8347
8407
|
|
8408
|
+
# QueryCDBProxy请求参数结构体
|
8409
|
+
class QueryCDBProxyRequest < TencentCloud::Common::AbstractModel
|
8410
|
+
# @param InstanceId: 实例ID
|
8411
|
+
# @type InstanceId: String
|
8412
|
+
# @param ProxyGroupId: 代理ID
|
8413
|
+
# @type ProxyGroupId: String
|
8414
|
+
|
8415
|
+
attr_accessor :InstanceId, :ProxyGroupId
|
8416
|
+
|
8417
|
+
def initialize(instanceid=nil, proxygroupid=nil)
|
8418
|
+
@InstanceId = instanceid
|
8419
|
+
@ProxyGroupId = proxygroupid
|
8420
|
+
end
|
8421
|
+
|
8422
|
+
def deserialize(params)
|
8423
|
+
@InstanceId = params['InstanceId']
|
8424
|
+
@ProxyGroupId = params['ProxyGroupId']
|
8425
|
+
end
|
8426
|
+
end
|
8427
|
+
|
8428
|
+
# QueryCDBProxy返回参数结构体
|
8429
|
+
class QueryCDBProxyResponse < TencentCloud::Common::AbstractModel
|
8430
|
+
# @param Count: 代理数量
|
8431
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8432
|
+
# @type Count: Integer
|
8433
|
+
# @param ProxyGroup: 代理信息
|
8434
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8435
|
+
# @type ProxyGroup: Array
|
8436
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8437
|
+
# @type RequestId: String
|
8438
|
+
|
8439
|
+
attr_accessor :Count, :ProxyGroup, :RequestId
|
8440
|
+
|
8441
|
+
def initialize(count=nil, proxygroup=nil, requestid=nil)
|
8442
|
+
@Count = count
|
8443
|
+
@ProxyGroup = proxygroup
|
8444
|
+
@RequestId = requestid
|
8445
|
+
end
|
8446
|
+
|
8447
|
+
def deserialize(params)
|
8448
|
+
@Count = params['Count']
|
8449
|
+
unless params['ProxyGroup'].nil?
|
8450
|
+
@ProxyGroup = []
|
8451
|
+
params['ProxyGroup'].each do |i|
|
8452
|
+
proxygroups_tmp = ProxyGroups.new
|
8453
|
+
proxygroups_tmp.deserialize(i)
|
8454
|
+
@ProxyGroup << proxygroups_tmp
|
8455
|
+
end
|
8456
|
+
end
|
8457
|
+
@RequestId = params['RequestId']
|
8458
|
+
end
|
8459
|
+
end
|
8460
|
+
|
8348
8461
|
# proxy读写分离信息
|
8349
8462
|
class RWInfo < TencentCloud::Common::AbstractModel
|
8350
8463
|
# @param InstCount: 代理实例数量
|
@@ -8401,6 +8514,66 @@ module TencentCloud
|
|
8401
8514
|
end
|
8402
8515
|
end
|
8403
8516
|
|
8517
|
+
# proxy读写分离信息
|
8518
|
+
class RWInfos < TencentCloud::Common::AbstractModel
|
8519
|
+
# @param InstCount: 代理实例数量
|
8520
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8521
|
+
# @type InstCount: Integer
|
8522
|
+
# @param WeightMode: 权重分配模式;
|
8523
|
+
# 系统自动分配:"system", 自定义:"custom"
|
8524
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8525
|
+
# @type WeightMode: String
|
8526
|
+
# @param IsKickOut: 是否开启延迟剔除
|
8527
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8528
|
+
# @type IsKickOut: Boolean
|
8529
|
+
# @param MinCount: 最小保留数
|
8530
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8531
|
+
# @type MinCount: Integer
|
8532
|
+
# @param MaxDelay: 延迟剔除阈值
|
8533
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8534
|
+
# @type MaxDelay: Integer
|
8535
|
+
# @param FailOver: 是否开启故障转移
|
8536
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8537
|
+
# @type FailOver: Boolean
|
8538
|
+
# @param AutoAddRo: 是否自动添加RO
|
8539
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8540
|
+
# @type AutoAddRo: Boolean
|
8541
|
+
# @param RWInstInfo: 代理实例信息
|
8542
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
8543
|
+
# @type RWInstInfo: Array
|
8544
|
+
|
8545
|
+
attr_accessor :InstCount, :WeightMode, :IsKickOut, :MinCount, :MaxDelay, :FailOver, :AutoAddRo, :RWInstInfo
|
8546
|
+
|
8547
|
+
def initialize(instcount=nil, weightmode=nil, iskickout=nil, mincount=nil, maxdelay=nil, failover=nil, autoaddro=nil, rwinstinfo=nil)
|
8548
|
+
@InstCount = instcount
|
8549
|
+
@WeightMode = weightmode
|
8550
|
+
@IsKickOut = iskickout
|
8551
|
+
@MinCount = mincount
|
8552
|
+
@MaxDelay = maxdelay
|
8553
|
+
@FailOver = failover
|
8554
|
+
@AutoAddRo = autoaddro
|
8555
|
+
@RWInstInfo = rwinstinfo
|
8556
|
+
end
|
8557
|
+
|
8558
|
+
def deserialize(params)
|
8559
|
+
@InstCount = params['InstCount']
|
8560
|
+
@WeightMode = params['WeightMode']
|
8561
|
+
@IsKickOut = params['IsKickOut']
|
8562
|
+
@MinCount = params['MinCount']
|
8563
|
+
@MaxDelay = params['MaxDelay']
|
8564
|
+
@FailOver = params['FailOver']
|
8565
|
+
@AutoAddRo = params['AutoAddRo']
|
8566
|
+
unless params['RWInstInfo'].nil?
|
8567
|
+
@RWInstInfo = []
|
8568
|
+
params['RWInstInfo'].each do |i|
|
8569
|
+
rwinstanceinfo_tmp = RWInstanceInfo.new
|
8570
|
+
rwinstanceinfo_tmp.deserialize(i)
|
8571
|
+
@RWInstInfo << rwinstanceinfo_tmp
|
8572
|
+
end
|
8573
|
+
end
|
8574
|
+
end
|
8575
|
+
end
|
8576
|
+
|
8404
8577
|
# 代理实例信息
|
8405
8578
|
class RWInstanceInfo < TencentCloud::Common::AbstractModel
|
8406
8579
|
|
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.246
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|