Class: TencentCloud::Cdb::V20170320::RoWeightValue

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

Overview

RO 实例的权重值

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instanceid = nil, weight = nil) ⇒ RoWeightValue

Returns a new instance of RoWeightValue.



13336
13337
13338
13339
# File 'lib/v20170320/models.rb', line 13336

def initialize(instanceid=nil, weight=nil)
  @InstanceId = instanceid
  @Weight = weight
end

Instance Attribute Details

#InstanceIdObject

Parameters:

  • InstanceId:

    RO 实例 ID。

  • Weight:

    权重值。取值范围为 [0, 100]。



13334
13335
13336
# File 'lib/v20170320/models.rb', line 13334

def InstanceId
  @InstanceId
end

#WeightObject

Parameters:

  • InstanceId:

    RO 实例 ID。

  • Weight:

    权重值。取值范围为 [0, 100]。



13334
13335
13336
# File 'lib/v20170320/models.rb', line 13334

def Weight
  @Weight
end

Instance Method Details

#deserialize(params) ⇒ Object



13341
13342
13343
13344
# File 'lib/v20170320/models.rb', line 13341

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