Class: TencentCloud::Cynosdb::V20190107::ProxyGroupRwInfo
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cynosdb::V20190107::ProxyGroupRwInfo
- Defined in:
- lib/v20190107/models.rb
Overview
数据库代理组读写分离信息
Instance Attribute Summary collapse
- #AccessMode ⇒ Object
- #AutoAddRo ⇒ Object
- #ConsistencyTimeOut ⇒ Object
- #ConsistencyType ⇒ Object
- #FailOver ⇒ Object
- #InstanceWeights ⇒ Object
- #OpenRw ⇒ Object
- #RwType ⇒ Object
- #TransSplit ⇒ Object
- #WeightMode ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(consistencytype = nil, consistencytimeout = nil, weightmode = nil, failover = nil, autoaddro = nil, instanceweights = nil, openrw = nil, rwtype = nil, transsplit = nil, accessmode = nil) ⇒ ProxyGroupRwInfo
constructor
A new instance of ProxyGroupRwInfo.
Constructor Details
#initialize(consistencytype = nil, consistencytimeout = nil, weightmode = nil, failover = nil, autoaddro = nil, instanceweights = nil, openrw = nil, rwtype = nil, transsplit = nil, accessmode = nil) ⇒ ProxyGroupRwInfo
Returns a new instance of ProxyGroupRwInfo.
12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 |
# File 'lib/v20190107/models.rb', line 12683 def initialize(consistencytype=nil, consistencytimeout=nil, weightmode=nil, failover=nil, autoaddro=nil, instanceweights=nil, openrw=nil, rwtype=nil, transsplit=nil, accessmode=nil) @ConsistencyType = consistencytype @ConsistencyTimeOut = consistencytimeout @WeightMode = weightmode @FailOver = failover @AutoAddRo = autoaddro @InstanceWeights = instanceweights @OpenRw = openrw @RwType = rwtype @TransSplit = transsplit @AccessMode = accessmode end |
Instance Attribute Details
#AccessMode ⇒ Object
12681 12682 12683 |
# File 'lib/v20190107/models.rb', line 12681 def AccessMode @AccessMode end |
#AutoAddRo ⇒ Object
12681 12682 12683 |
# File 'lib/v20190107/models.rb', line 12681 def AutoAddRo @AutoAddRo end |
#ConsistencyTimeOut ⇒ Object
12681 12682 12683 |
# File 'lib/v20190107/models.rb', line 12681 def ConsistencyTimeOut @ConsistencyTimeOut end |
#ConsistencyType ⇒ Object
12681 12682 12683 |
# File 'lib/v20190107/models.rb', line 12681 def ConsistencyType @ConsistencyType end |
#FailOver ⇒ Object
12681 12682 12683 |
# File 'lib/v20190107/models.rb', line 12681 def FailOver @FailOver end |
#InstanceWeights ⇒ Object
12681 12682 12683 |
# File 'lib/v20190107/models.rb', line 12681 def InstanceWeights @InstanceWeights end |
#OpenRw ⇒ Object
12681 12682 12683 |
# File 'lib/v20190107/models.rb', line 12681 def OpenRw @OpenRw end |
#RwType ⇒ Object
12681 12682 12683 |
# File 'lib/v20190107/models.rb', line 12681 def RwType @RwType end |
#TransSplit ⇒ Object
12681 12682 12683 |
# File 'lib/v20190107/models.rb', line 12681 def TransSplit @TransSplit end |
#WeightMode ⇒ Object
12681 12682 12683 |
# File 'lib/v20190107/models.rb', line 12681 def WeightMode @WeightMode end |
Instance Method Details
#deserialize(params) ⇒ Object
12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 |
# File 'lib/v20190107/models.rb', line 12696 def deserialize(params) @ConsistencyType = params['ConsistencyType'] @ConsistencyTimeOut = params['ConsistencyTimeOut'] @WeightMode = params['WeightMode'] @FailOver = params['FailOver'] @AutoAddRo = params['AutoAddRo'] unless params['InstanceWeights'].nil? @InstanceWeights = [] params['InstanceWeights'].each do |i| = ProxyInstanceWeight.new .deserialize(i) @InstanceWeights << end end @OpenRw = params['OpenRw'] @RwType = params['RwType'] @TransSplit = params['TransSplit'] @AccessMode = params['AccessMode'] end |