Class: TencentCloud::Clb::V20180317::RulesItems

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

Overview

七层规则对象

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(locationid = nil, domain = nil, url = nil, targets = nil) ⇒ RulesItems



7924
7925
7926
7927
7928
7929
# File 'lib/v20180317/models.rb', line 7924

def initialize(locationid=nil, domain=nil, url=nil, targets=nil)
  @LocationId = locationid
  @Domain = domain
  @Url = url
  @Targets = targets
end

Instance Attribute Details

#DomainObject



7922
7923
7924
# File 'lib/v20180317/models.rb', line 7922

def Domain
  @Domain
end

#LocationIdObject



7922
7923
7924
# File 'lib/v20180317/models.rb', line 7922

def LocationId
  @LocationId
end

#TargetsObject



7922
7923
7924
# File 'lib/v20180317/models.rb', line 7922

def Targets
  @Targets
end

#UrlObject



7922
7923
7924
# File 'lib/v20180317/models.rb', line 7922

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
# File 'lib/v20180317/models.rb', line 7931

def deserialize(params)
  @LocationId = params['LocationId']
  @Domain = params['Domain']
  @Url = params['Url']
  unless params['Targets'].nil?
    @Targets = []
    params['Targets'].each do |i|
      lbrstargets_tmp = LbRsTargets.new
      lbrstargets_tmp.deserialize(i)
      @Targets << lbrstargets_tmp
    end
  end
end