Class: TencentCloud::Clb::V20180317::BatchModifyTargetWeightRequest

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180317/models.rb

Overview

BatchModifyTargetWeight请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#LoadBalancerIdObject

Parameters:

  • LoadBalancerId:

    负载均衡实例 ID。

  • ModifyList:

    要批量修改权重的列表。



347
348
349
# File 'lib/v20180317/models.rb', line 347

def LoadBalancerId
  @LoadBalancerId
end

#ModifyListObject

Parameters:

  • LoadBalancerId:

    负载均衡实例 ID。

  • ModifyList:

    要批量修改权重的列表。



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