Class: TencentCloud::Clb::V20180317::CreateLoadBalancerSnatIpsRequest

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180317/models.rb

Overview

CreateLoadBalancerSnatIps请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(loadbalancerid = nil, snatips = nil, number = nil) ⇒ CreateLoadBalancerSnatIpsRequest



1694
1695
1696
1697
1698
# File 'lib/v20180317/models.rb', line 1694

def initialize(loadbalancerid=nil, snatips=nil, number=nil)
  @LoadBalancerId = loadbalancerid
  @SnatIps = snatips
  @Number = number
end

Instance Attribute Details

#LoadBalancerIdObject



1692
1693
1694
# File 'lib/v20180317/models.rb', line 1692

def LoadBalancerId
  @LoadBalancerId
end

#NumberObject



1692
1693
1694
# File 'lib/v20180317/models.rb', line 1692

def Number
  @Number
end

#SnatIpsObject



1692
1693
1694
# File 'lib/v20180317/models.rb', line 1692

def SnatIps
  @SnatIps
end

Instance Method Details

#deserialize(params) ⇒ Object



1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
# File 'lib/v20180317/models.rb', line 1700

def deserialize(params)
  @LoadBalancerId = params['LoadBalancerId']
  unless params['SnatIps'].nil?
    @SnatIps = []
    params['SnatIps'].each do |i|
      snatip_tmp = SnatIp.new
      snatip_tmp.deserialize(i)
      @SnatIps << snatip_tmp
    end
  end
  @Number = params['Number']
end