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.
7880 7881 7882 7883 7884 7885 7886 |
# File 'lib/v20180317/models.rb', line 7880 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
7878 7879 7880 |
# File 'lib/v20180317/models.rb', line 7878 def Domain @Domain end |
#FunctionTargets ⇒ Object
7878 7879 7880 |
# File 'lib/v20180317/models.rb', line 7878 def FunctionTargets @FunctionTargets end |
#LocationId ⇒ Object
7878 7879 7880 |
# File 'lib/v20180317/models.rb', line 7878 def LocationId @LocationId end |
#Targets ⇒ Object
7878 7879 7880 |
# File 'lib/v20180317/models.rb', line 7878 def Targets @Targets end |
#Url ⇒ Object
7878 7879 7880 |
# File 'lib/v20180317/models.rb', line 7878 def Url @Url end |
Instance Method Details
#deserialize(params) ⇒ Object
7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 |
# File 'lib/v20180317/models.rb', line 7888 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 |