Class: TencentCloud::Clb::V20180317::RulesItems
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Clb::V20180317::RulesItems
- Defined in:
- lib/v20180317/models.rb
Overview
七层规则对象
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(locationid = nil, domain = nil, url = nil, targets = nil) ⇒ RulesItems
constructor
A new instance of RulesItems.
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
#Domain ⇒ Object
7922 7923 7924 |
# File 'lib/v20180317/models.rb', line 7922 def Domain @Domain end |
#LocationId ⇒ Object
7922 7923 7924 |
# File 'lib/v20180317/models.rb', line 7922 def LocationId @LocationId end |
#Targets ⇒ Object
7922 7923 7924 |
# File 'lib/v20180317/models.rb', line 7922 def Targets @Targets end |
#Url ⇒ Object
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 |