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
Returns a new instance of RulesItems.
8113 8114 8115 8116 8117 8118 |
# File 'lib/v20180317/models.rb', line 8113 def initialize(locationid=nil, domain=nil, url=nil, targets=nil) @LocationId = locationid @Domain = domain @Url = url @Targets = targets end |
Instance Attribute Details
#Domain ⇒ Object
8111 8112 8113 |
# File 'lib/v20180317/models.rb', line 8111 def Domain @Domain end |
#LocationId ⇒ Object
8111 8112 8113 |
# File 'lib/v20180317/models.rb', line 8111 def LocationId @LocationId end |
#Targets ⇒ Object
8111 8112 8113 |
# File 'lib/v20180317/models.rb', line 8111 def Targets @Targets end |
#Url ⇒ Object
8111 8112 8113 |
# File 'lib/v20180317/models.rb', line 8111 def Url @Url end |
Instance Method Details
#deserialize(params) ⇒ Object
8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 |
# File 'lib/v20180317/models.rb', line 8120 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 |