Class: TencentCloud::Clb::V20180317::RsWeightRule
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Clb::V20180317::RsWeightRule
- Extended by:
- Gem::Deprecate
- Defined in:
- lib/v20180317/models.rb
Overview
修改节点权重的数据类型
Instance Attribute Summary collapse
- #Domain ⇒ Object
- #ListenerId ⇒ Object
- #LocationId ⇒ Object
- #Targets ⇒ Object
- #Url ⇒ Object
- #Weight ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(listenerid = nil, targets = nil, locationid = nil, domain = nil, url = nil, weight = nil) ⇒ RsWeightRule
constructor
A new instance of RsWeightRule.
Constructor Details
#initialize(listenerid = nil, targets = nil, locationid = nil, domain = nil, url = nil, weight = nil) ⇒ RsWeightRule
Returns a new instance of RsWeightRule.
7771 7772 7773 7774 7775 7776 7777 7778 |
# File 'lib/v20180317/models.rb', line 7771 def initialize(listenerid=nil, targets=nil, locationid=nil, domain=nil, url=nil, weight=nil) @ListenerId = listenerid @Targets = targets @LocationId = locationid @Domain = domain @Url = url @Weight = weight end |
Instance Attribute Details
#Domain ⇒ Object
7764 7765 7766 |
# File 'lib/v20180317/models.rb', line 7764 def Domain @Domain end |
#ListenerId ⇒ Object
7764 7765 7766 |
# File 'lib/v20180317/models.rb', line 7764 def ListenerId @ListenerId end |
#LocationId ⇒ Object
7764 7765 7766 |
# File 'lib/v20180317/models.rb', line 7764 def LocationId @LocationId end |
#Targets ⇒ Object
7764 7765 7766 |
# File 'lib/v20180317/models.rb', line 7764 def Targets @Targets end |
#Url ⇒ Object
7764 7765 7766 |
# File 'lib/v20180317/models.rb', line 7764 def Url @Url end |
#Weight ⇒ Object
7764 7765 7766 |
# File 'lib/v20180317/models.rb', line 7764 def Weight @Weight end |
Instance Method Details
#deserialize(params) ⇒ Object
7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 |
# File 'lib/v20180317/models.rb', line 7780 def deserialize(params) @ListenerId = params['ListenerId'] unless params['Targets'].nil? @Targets = [] params['Targets'].each do |i| target_tmp = Target.new target_tmp.deserialize(i) @Targets << target_tmp end end @LocationId = params['LocationId'] @Domain = params['Domain'] @Url = params['Url'] @Weight = params['Weight'] end |