Class: TencentCloud::Cdb::V20170320::ProxyAllocation
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdb::V20170320::ProxyAllocation
- Defined in:
- lib/v20170320/models.rb
Overview
代理节点权重分布
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(region = nil, zone = nil, proxyinstance = nil) ⇒ ProxyAllocation
constructor
A new instance of ProxyAllocation.
Constructor Details
#initialize(region = nil, zone = nil, proxyinstance = nil) ⇒ ProxyAllocation
Returns a new instance of ProxyAllocation.
12534 12535 12536 12537 12538 |
# File 'lib/v20170320/models.rb', line 12534 def initialize(region=nil, zone=nil, =nil) @Region = region @Zone = zone @ProxyInstance = end |
Instance Attribute Details
#ProxyInstance ⇒ Object
12532 12533 12534 |
# File 'lib/v20170320/models.rb', line 12532 def ProxyInstance @ProxyInstance end |
#Region ⇒ Object
12532 12533 12534 |
# File 'lib/v20170320/models.rb', line 12532 def Region @Region end |
#Zone ⇒ Object
12532 12533 12534 |
# File 'lib/v20170320/models.rb', line 12532 def Zone @Zone end |
Instance Method Details
#deserialize(params) ⇒ Object
12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 |
# File 'lib/v20170320/models.rb', line 12540 def deserialize(params) @Region = params['Region'] @Zone = params['Zone'] unless params['ProxyInstance'].nil? @ProxyInstance = [] params['ProxyInstance'].each do |i| = ProxyInst.new .deserialize(i) @ProxyInstance << end end end |