Class: TencentCloud::Cynosdb::V20190107::ProxyInstanceWeight
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cynosdb::V20190107::ProxyInstanceWeight
- Defined in:
- lib/v20190107/models.rb
Overview
数据库代理,读写分离实例权重
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, weight = nil) ⇒ ProxyInstanceWeight
constructor
A new instance of ProxyInstanceWeight.
Constructor Details
#initialize(instanceid = nil, weight = nil) ⇒ ProxyInstanceWeight
Returns a new instance of ProxyInstanceWeight.
12726 12727 12728 12729 |
# File 'lib/v20190107/models.rb', line 12726 def initialize(instanceid=nil, weight=nil) @InstanceId = instanceid @Weight = weight end |
Instance Attribute Details
#InstanceId ⇒ Object
12724 12725 12726 |
# File 'lib/v20190107/models.rb', line 12724 def InstanceId @InstanceId end |
#Weight ⇒ Object
12724 12725 12726 |
# File 'lib/v20190107/models.rb', line 12724 def Weight @Weight end |
Instance Method Details
#deserialize(params) ⇒ Object
12731 12732 12733 12734 |
# File 'lib/v20190107/models.rb', line 12731 def deserialize(params) @InstanceId = params['InstanceId'] @Weight = params['Weight'] end |