Class: TencentCloud::Sqlserver::V20180328::ModifyReadOnlyGroupDetailsRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Sqlserver::V20180328::ModifyReadOnlyGroupDetailsRequest
- Defined in:
- lib/v20180328/models.rb
Overview
ModifyReadOnlyGroupDetails请求参数结构体
Instance Attribute Summary collapse
- #AutoWeight ⇒ Object
- #BalanceWeight ⇒ Object
- #InstanceId ⇒ Object
- #IsOfflineDelay ⇒ Object
- #MinReadOnlyInGroup ⇒ Object
- #ReadOnlyGroupId ⇒ Object
- #ReadOnlyGroupName ⇒ Object
- #ReadOnlyMaxDelayTime ⇒ Object
- #WeightPairs ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(instanceid = nil, readonlygroupid = nil, readonlygroupname = nil, isofflinedelay = nil, readonlymaxdelaytime = nil, minreadonlyingroup = nil, weightpairs = nil, autoweight = nil, balanceweight = nil) ⇒ ModifyReadOnlyGroupDetailsRequest
constructor
A new instance of ModifyReadOnlyGroupDetailsRequest.
Constructor Details
#initialize(instanceid = nil, readonlygroupid = nil, readonlygroupname = nil, isofflinedelay = nil, readonlymaxdelaytime = nil, minreadonlyingroup = nil, weightpairs = nil, autoweight = nil, balanceweight = nil) ⇒ ModifyReadOnlyGroupDetailsRequest
Returns a new instance of ModifyReadOnlyGroupDetailsRequest.
9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 |
# File 'lib/v20180328/models.rb', line 9726 def initialize(instanceid=nil, readonlygroupid=nil, readonlygroupname=nil, isofflinedelay=nil, readonlymaxdelaytime=nil, =nil, weightpairs=nil, autoweight=nil, balanceweight=nil) @InstanceId = instanceid @ReadOnlyGroupId = readonlygroupid @ReadOnlyGroupName = readonlygroupname @IsOfflineDelay = isofflinedelay @ReadOnlyMaxDelayTime = readonlymaxdelaytime @MinReadOnlyInGroup = @WeightPairs = weightpairs @AutoWeight = autoweight @BalanceWeight = balanceweight end |
Instance Attribute Details
#AutoWeight ⇒ Object
9724 9725 9726 |
# File 'lib/v20180328/models.rb', line 9724 def AutoWeight @AutoWeight end |
#BalanceWeight ⇒ Object
9724 9725 9726 |
# File 'lib/v20180328/models.rb', line 9724 def BalanceWeight @BalanceWeight end |
#InstanceId ⇒ Object
9724 9725 9726 |
# File 'lib/v20180328/models.rb', line 9724 def InstanceId @InstanceId end |
#IsOfflineDelay ⇒ Object
9724 9725 9726 |
# File 'lib/v20180328/models.rb', line 9724 def IsOfflineDelay @IsOfflineDelay end |
#MinReadOnlyInGroup ⇒ Object
9724 9725 9726 |
# File 'lib/v20180328/models.rb', line 9724 def MinReadOnlyInGroup @MinReadOnlyInGroup end |
#ReadOnlyGroupId ⇒ Object
9724 9725 9726 |
# File 'lib/v20180328/models.rb', line 9724 def ReadOnlyGroupId @ReadOnlyGroupId end |
#ReadOnlyGroupName ⇒ Object
9724 9725 9726 |
# File 'lib/v20180328/models.rb', line 9724 def ReadOnlyGroupName @ReadOnlyGroupName end |
#ReadOnlyMaxDelayTime ⇒ Object
9724 9725 9726 |
# File 'lib/v20180328/models.rb', line 9724 def ReadOnlyMaxDelayTime @ReadOnlyMaxDelayTime end |
#WeightPairs ⇒ Object
9724 9725 9726 |
# File 'lib/v20180328/models.rb', line 9724 def WeightPairs @WeightPairs end |
Instance Method Details
#deserialize(params) ⇒ Object
9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 |
# File 'lib/v20180328/models.rb', line 9738 def deserialize(params) @InstanceId = params['InstanceId'] @ReadOnlyGroupId = params['ReadOnlyGroupId'] @ReadOnlyGroupName = params['ReadOnlyGroupName'] @IsOfflineDelay = params['IsOfflineDelay'] @ReadOnlyMaxDelayTime = params['ReadOnlyMaxDelayTime'] @MinReadOnlyInGroup = params['MinReadOnlyInGroup'] unless params['WeightPairs'].nil? @WeightPairs = [] params['WeightPairs'].each do |i| = ReadOnlyInstanceWeightPair.new .deserialize(i) @WeightPairs << end end @AutoWeight = params['AutoWeight'] @BalanceWeight = params['BalanceWeight'] end |