Class: TencentCloud::Clb::V20180317::RuleTargets
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Clb::V20180317::RuleTargets
- Defined in:
- lib/v20180317/models.rb
Overview
HTTP/HTTPS监听器下的转发规则绑定的后端服务信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(locationid = nil, domain = nil, url = nil, targets = nil, functiontargets = nil) ⇒ RuleTargets
constructor
A new instance of RuleTargets.
Constructor Details
#initialize(locationid = nil, domain = nil, url = nil, targets = nil, functiontargets = nil) ⇒ RuleTargets
Returns a new instance of RuleTargets.
7998 7999 8000 8001 8002 8003 8004 |
# File 'lib/v20180317/models.rb', line 7998 def initialize(locationid=nil, domain=nil, url=nil, targets=nil, functiontargets=nil) @LocationId = locationid @Domain = domain @Url = url @Targets = targets @FunctionTargets = functiontargets end |
Instance Attribute Details
#Domain ⇒ Object
7996 7997 7998 |
# File 'lib/v20180317/models.rb', line 7996 def Domain @Domain end |
#FunctionTargets ⇒ Object
7996 7997 7998 |
# File 'lib/v20180317/models.rb', line 7996 def FunctionTargets @FunctionTargets end |
#LocationId ⇒ Object
7996 7997 7998 |
# File 'lib/v20180317/models.rb', line 7996 def LocationId @LocationId end |
#Targets ⇒ Object
7996 7997 7998 |
# File 'lib/v20180317/models.rb', line 7996 def Targets @Targets end |
#Url ⇒ Object
7996 7997 7998 |
# File 'lib/v20180317/models.rb', line 7996 def Url @Url end |
Instance Method Details
#deserialize(params) ⇒ Object
8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 |
# File 'lib/v20180317/models.rb', line 8006 def deserialize(params) @LocationId = params['LocationId'] @Domain = params['Domain'] @Url = params['Url'] unless params['Targets'].nil? @Targets = [] params['Targets'].each do |i| backend_tmp = Backend.new backend_tmp.deserialize(i) @Targets << backend_tmp end end unless params['FunctionTargets'].nil? @FunctionTargets = [] params['FunctionTargets'].each do |i| functiontarget_tmp = FunctionTarget.new functiontarget_tmp.deserialize(i) @FunctionTargets << functiontarget_tmp end end end |