Class: TencentCloud::Tione::V20211111::WeightEntry

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

Overview

服务的权重

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(serviceid = nil, weight = nil) ⇒ WeightEntry

Returns a new instance of WeightEntry.



9789
9790
9791
9792
# File 'lib/v20211111/models.rb', line 9789

def initialize(serviceid=nil, weight=nil)
  @ServiceId = serviceid
  @Weight = weight
end

Instance Attribute Details

#ServiceIdObject

Parameters:

  • ServiceId:

    服务id

  • Weight:

    流量权重值,同 ServiceGroup 下 总和应为 100



9787
9788
9789
# File 'lib/v20211111/models.rb', line 9787

def ServiceId
  @ServiceId
end

#WeightObject

Parameters:

  • ServiceId:

    服务id

  • Weight:

    流量权重值,同 ServiceGroup 下 总和应为 100



9787
9788
9789
# File 'lib/v20211111/models.rb', line 9787

def Weight
  @Weight
end

Instance Method Details

#deserialize(params) ⇒ Object



9794
9795
9796
9797
# File 'lib/v20211111/models.rb', line 9794

def deserialize(params)
  @ServiceId = params['ServiceId']
  @Weight = params['Weight']
end