Class: TencentCloud::Tione::V20211111::ModifyServiceGroupWeightsRequest

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

Overview

ModifyServiceGroupWeights请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(servicegroupid = nil, weights = nil) ⇒ ModifyServiceGroupWeightsRequest

Returns a new instance of ModifyServiceGroupWeightsRequest.



6323
6324
6325
6326
# File 'lib/v20211111/models.rb', line 6323

def initialize(servicegroupid=nil, weights=nil)
  @ServiceGroupId = servicegroupid
  @Weights = weights
end

Instance Attribute Details

#ServiceGroupIdObject

Parameters:

  • ServiceGroupId:

    服务组id

  • Weights:

    权重设置



6321
6322
6323
# File 'lib/v20211111/models.rb', line 6321

def ServiceGroupId
  @ServiceGroupId
end

#WeightsObject

Parameters:

  • ServiceGroupId:

    服务组id

  • Weights:

    权重设置



6321
6322
6323
# File 'lib/v20211111/models.rb', line 6321

def Weights
  @Weights
end

Instance Method Details

#deserialize(params) ⇒ Object



6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
# File 'lib/v20211111/models.rb', line 6328

def deserialize(params)
  @ServiceGroupId = params['ServiceGroupId']
  unless params['Weights'].nil?
    @Weights = []
    params['Weights'].each do |i|
      weightentry_tmp = WeightEntry.new
      weightentry_tmp.deserialize(i)
      @Weights << weightentry_tmp
    end
  end
end