Class: TencentCloud::Tcaplusdb::V20190823::PoolInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tcaplusdb::V20190823::PoolInfo
- Defined in:
- lib/v20190823/models.rb
Overview
center资源池中的机器信息
Instance Attribute Summary collapse
- #AvailableAppCount ⇒ Object
- #Ipv6Enable ⇒ Object
- #PoolUid ⇒ Object
- #ProxyList ⇒ Object
- #ServerList ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(pooluid = nil, ipv6enable = nil, availableappcount = nil, serverlist = nil, proxylist = nil) ⇒ PoolInfo
constructor
A new instance of PoolInfo.
Constructor Details
#initialize(pooluid = nil, ipv6enable = nil, availableappcount = nil, serverlist = nil, proxylist = nil) ⇒ PoolInfo
Returns a new instance of PoolInfo.
3543 3544 3545 3546 3547 3548 3549 |
# File 'lib/v20190823/models.rb', line 3543 def initialize(pooluid=nil, ipv6enable=nil, availableappcount=nil, serverlist=nil, proxylist=nil) @PoolUid = pooluid @Ipv6Enable = ipv6enable @AvailableAppCount = availableappcount @ServerList = serverlist @ProxyList = proxylist end |
Instance Attribute Details
#AvailableAppCount ⇒ Object
3541 3542 3543 |
# File 'lib/v20190823/models.rb', line 3541 def AvailableAppCount @AvailableAppCount end |
#Ipv6Enable ⇒ Object
3541 3542 3543 |
# File 'lib/v20190823/models.rb', line 3541 def Ipv6Enable @Ipv6Enable end |
#PoolUid ⇒ Object
3541 3542 3543 |
# File 'lib/v20190823/models.rb', line 3541 def PoolUid @PoolUid end |
#ProxyList ⇒ Object
3541 3542 3543 |
# File 'lib/v20190823/models.rb', line 3541 def ProxyList @ProxyList end |
#ServerList ⇒ Object
3541 3542 3543 |
# File 'lib/v20190823/models.rb', line 3541 def ServerList @ServerList end |
Instance Method Details
#deserialize(params) ⇒ Object
3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 |
# File 'lib/v20190823/models.rb', line 3551 def deserialize(params) @PoolUid = params['PoolUid'] @Ipv6Enable = params['Ipv6Enable'] @AvailableAppCount = params['AvailableAppCount'] unless params['ServerList'].nil? @ServerList = [] params['ServerList'].each do |i| servermachineinfo_tmp = ServerMachineInfo.new servermachineinfo_tmp.deserialize(i) @ServerList << servermachineinfo_tmp end end unless params['ProxyList'].nil? @ProxyList = [] params['ProxyList'].each do |i| proxymachineinfo_tmp = ProxyMachineInfo.new proxymachineinfo_tmp.deserialize(i) @ProxyList << proxymachineinfo_tmp end end end |