Class: TencentCloud::Clb::V20180317::BatchModifyTargetWeightRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Clb::V20180317::BatchModifyTargetWeightRequest
- Defined in:
- lib/v20180317/models.rb
Overview
BatchModifyTargetWeight请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(loadbalancerid = nil, modifylist = nil) ⇒ BatchModifyTargetWeightRequest
constructor
A new instance of BatchModifyTargetWeightRequest.
Constructor Details
#initialize(loadbalancerid = nil, modifylist = nil) ⇒ BatchModifyTargetWeightRequest
Returns a new instance of BatchModifyTargetWeightRequest.
349 350 351 352 |
# File 'lib/v20180317/models.rb', line 349 def initialize(loadbalancerid=nil, modifylist=nil) @LoadBalancerId = loadbalancerid @ModifyList = modifylist end |
Instance Attribute Details
#LoadBalancerId ⇒ Object
347 348 349 |
# File 'lib/v20180317/models.rb', line 347 def LoadBalancerId @LoadBalancerId end |
#ModifyList ⇒ Object
347 348 349 |
# File 'lib/v20180317/models.rb', line 347 def ModifyList @ModifyList end |
Instance Method Details
#deserialize(params) ⇒ Object
354 355 356 357 358 359 360 361 362 363 364 |
# File 'lib/v20180317/models.rb', line 354 def deserialize(params) @LoadBalancerId = params['LoadBalancerId'] unless params['ModifyList'].nil? @ModifyList = [] params['ModifyList'].each do |i| rsweightrule_tmp = RsWeightRule.new rsweightrule_tmp.deserialize(i) @ModifyList << rsweightrule_tmp end end end |