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.
12247 12248 12249 12250 12251 |
# File 'lib/v20170320/models.rb', line 12247 def initialize(region=nil, zone=nil, =nil) @Region = region @Zone = zone @ProxyInstance = end |
Instance Attribute Details
#ProxyInstance ⇒ Object
12245 12246 12247 |
# File 'lib/v20170320/models.rb', line 12245 def ProxyInstance @ProxyInstance end |
#Region ⇒ Object
12245 12246 12247 |
# File 'lib/v20170320/models.rb', line 12245 def Region @Region end |
#Zone ⇒ Object
12245 12246 12247 |
# File 'lib/v20170320/models.rb', line 12245 def Zone @Zone end |
Instance Method Details
#deserialize(params) ⇒ Object
12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 |
# File 'lib/v20170320/models.rb', line 12253 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 |