Class: TencentCloud::Clb::V20180317::ModifyTargetWeightRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Clb::V20180317::ModifyTargetWeightRequest
- Defined in:
- lib/v20180317/models.rb
Overview
ModifyTargetWeight请求参数结构体
Instance Attribute Summary collapse
- #Domain ⇒ Object
- #ListenerId ⇒ Object
- #LoadBalancerId ⇒ Object
- #LocationId ⇒ Object
- #Targets ⇒ Object
- #Url ⇒ Object
- #Weight ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(loadbalancerid = nil, listenerid = nil, targets = nil, locationid = nil, domain = nil, url = nil, weight = nil) ⇒ ModifyTargetWeightRequest
constructor
A new instance of ModifyTargetWeightRequest.
Constructor Details
#initialize(loadbalancerid = nil, listenerid = nil, targets = nil, locationid = nil, domain = nil, url = nil, weight = nil) ⇒ ModifyTargetWeightRequest
Returns a new instance of ModifyTargetWeightRequest.
7038 7039 7040 7041 7042 7043 7044 7045 7046 |
# File 'lib/v20180317/models.rb', line 7038 def initialize(loadbalancerid=nil, listenerid=nil, targets=nil, locationid=nil, domain=nil, url=nil, weight=nil) @LoadBalancerId = loadbalancerid @ListenerId = listenerid @Targets = targets @LocationId = locationid @Domain = domain @Url = url @Weight = weight end |
Instance Attribute Details
#Domain ⇒ Object
7036 7037 7038 |
# File 'lib/v20180317/models.rb', line 7036 def Domain @Domain end |
#ListenerId ⇒ Object
7036 7037 7038 |
# File 'lib/v20180317/models.rb', line 7036 def ListenerId @ListenerId end |
#LoadBalancerId ⇒ Object
7036 7037 7038 |
# File 'lib/v20180317/models.rb', line 7036 def LoadBalancerId @LoadBalancerId end |
#LocationId ⇒ Object
7036 7037 7038 |
# File 'lib/v20180317/models.rb', line 7036 def LocationId @LocationId end |
#Targets ⇒ Object
7036 7037 7038 |
# File 'lib/v20180317/models.rb', line 7036 def Targets @Targets end |
#Url ⇒ Object
7036 7037 7038 |
# File 'lib/v20180317/models.rb', line 7036 def Url @Url end |
#Weight ⇒ Object
7036 7037 7038 |
# File 'lib/v20180317/models.rb', line 7036 def Weight @Weight end |
Instance Method Details
#deserialize(params) ⇒ Object
7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 |
# File 'lib/v20180317/models.rb', line 7048 def deserialize(params) @LoadBalancerId = params['LoadBalancerId'] @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 |