Class: TencentCloud::Cdb::V20170320::Rule

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

Overview

权重分配规则

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lessthan = nil, weight = nil) ⇒ Rule

Returns a new instance of Rule.



13264
13265
13266
13267
# File 'lib/v20170320/models.rb', line 13264

def initialize(lessthan=nil, weight=nil)
  @LessThan = lessthan
  @Weight = weight
end

Instance Attribute Details

#LessThanObject

Parameters:

  • LessThan:

    划分上限

  • Weight:

    权重



13262
13263
13264
# File 'lib/v20170320/models.rb', line 13262

def LessThan
  @LessThan
end

#WeightObject

Parameters:

  • LessThan:

    划分上限

  • Weight:

    权重



13262
13263
13264
# File 'lib/v20170320/models.rb', line 13262

def Weight
  @Weight
end

Instance Method Details

#deserialize(params) ⇒ Object



13269
13270
13271
13272
# File 'lib/v20170320/models.rb', line 13269

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