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.
8069 8070 8071 8072 8073 8074 8075 |
# File 'lib/v20180317/models.rb', line 8069 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
8067 8068 8069 |
# File 'lib/v20180317/models.rb', line 8067 def Domain @Domain end |
#FunctionTargets ⇒ Object
8067 8068 8069 |
# File 'lib/v20180317/models.rb', line 8067 def FunctionTargets @FunctionTargets end |
#LocationId ⇒ Object
8067 8068 8069 |
# File 'lib/v20180317/models.rb', line 8067 def LocationId @LocationId end |
#Targets ⇒ Object
8067 8068 8069 |
# File 'lib/v20180317/models.rb', line 8067 def Targets @Targets end |
#Url ⇒ Object
8067 8068 8069 |
# File 'lib/v20180317/models.rb', line 8067 def Url @Url end |
Instance Method Details
#deserialize(params) ⇒ Object
8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 |
# File 'lib/v20180317/models.rb', line 8077 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 |