Class: TencentCloud::Cynosdb::V20190107::ModifyProxyRwSplitRequest

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

Overview

ModifyProxyRwSplit请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(clusterid = nil, proxygroupid = nil, consistencytype = nil, consistencytimeout = nil, weightmode = nil, instanceweights = nil, failover = nil, autoaddro = nil, openrw = nil, rwtype = nil, transsplit = nil, accessmode = nil, openconnectionpool = nil, connectionpooltype = nil, connectionpooltimeout = nil) ⇒ ModifyProxyRwSplitRequest

Returns a new instance of ModifyProxyRwSplitRequest.



10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
# File 'lib/v20190107/models.rb', line 10973

def initialize(clusterid=nil, proxygroupid=nil, consistencytype=nil, consistencytimeout=nil, weightmode=nil, instanceweights=nil, failover=nil, autoaddro=nil, openrw=nil, rwtype=nil, transsplit=nil, accessmode=nil, openconnectionpool=nil, connectionpooltype=nil, connectionpooltimeout=nil)
  @ClusterId = clusterid
  @ProxyGroupId = proxygroupid
  @ConsistencyType = consistencytype
  @ConsistencyTimeOut = consistencytimeout
  @WeightMode = weightmode
  @InstanceWeights = instanceweights
  @FailOver = failover
  @AutoAddRo = autoaddro
  @OpenRw = openrw
  @RwType = rwtype
  @TransSplit = transsplit
  @AccessMode = accessmode
  @OpenConnectionPool = openconnectionpool
  @ConnectionPoolType = connectionpooltype
  @ConnectionPoolTimeOut = connectionpooltimeout
end

Instance Attribute Details

#AccessModeObject

取值范围:0~1000000(微秒),设置0则表示若只读实例出现延迟, 导致一致性策略不满足, 请求将一直等待。该参数必填。该参数已废弃,请通过RwType设置读写属性。READWRITE,READONLY 在一个事务中拆分读和写到不同的实例上去执行。nearby,balance yes,no SessionConnectionPool 可选范围:0~300(秒)

Parameters:

  • ClusterId:

    集群ID,例如cynosdbmysql-asd123

  • ProxyGroupId:

    数据库代理组ID,例如cynosdbmysql-proxy-qwe123

  • ConsistencyType:

    一致性类型;“eventual“-最终一致性, ”session“-会话一致性, ”global“-全局一致性

  • ConsistencyTimeOut:

    一致性超时时间。

  • WeightMode:

    读写权重分配模式;系统自动分配:“system”, 自定义:“custom”

  • InstanceWeights:

    实例只读权重。

  • FailOver:

    是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:“yes” , “no”

  • AutoAddRo:

    是否自动添加只读实例,取值:“yes” , “no”

  • OpenRw:

    是否打开读写分离。

  • RwType:

    读写类型:

  • TransSplit:

    事务拆分。

  • AccessMode:

    连接模式:

  • OpenConnectionPool:

    是否打开连接池:

  • ConnectionPoolType:

    连接池类型:

  • ConnectionPoolTimeOut:

    连接池时间。



10971
10972
10973
# File 'lib/v20190107/models.rb', line 10971

def AccessMode
  @AccessMode
end

#AutoAddRoObject

取值范围:0~1000000(微秒),设置0则表示若只读实例出现延迟, 导致一致性策略不满足, 请求将一直等待。该参数必填。该参数已废弃,请通过RwType设置读写属性。READWRITE,READONLY 在一个事务中拆分读和写到不同的实例上去执行。nearby,balance yes,no SessionConnectionPool 可选范围:0~300(秒)

Parameters:

  • ClusterId:

    集群ID,例如cynosdbmysql-asd123

  • ProxyGroupId:

    数据库代理组ID,例如cynosdbmysql-proxy-qwe123

  • ConsistencyType:

    一致性类型;“eventual“-最终一致性, ”session“-会话一致性, ”global“-全局一致性

  • ConsistencyTimeOut:

    一致性超时时间。

  • WeightMode:

    读写权重分配模式;系统自动分配:“system”, 自定义:“custom”

  • InstanceWeights:

    实例只读权重。

  • FailOver:

    是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:“yes” , “no”

  • AutoAddRo:

    是否自动添加只读实例,取值:“yes” , “no”

  • OpenRw:

    是否打开读写分离。

  • RwType:

    读写类型:

  • TransSplit:

    事务拆分。

  • AccessMode:

    连接模式:

  • OpenConnectionPool:

    是否打开连接池:

  • ConnectionPoolType:

    连接池类型:

  • ConnectionPoolTimeOut:

    连接池时间。



10971
10972
10973
# File 'lib/v20190107/models.rb', line 10971

def AutoAddRo
  @AutoAddRo
end

#ClusterIdObject

取值范围:0~1000000(微秒),设置0则表示若只读实例出现延迟, 导致一致性策略不满足, 请求将一直等待。该参数必填。该参数已废弃,请通过RwType设置读写属性。READWRITE,READONLY 在一个事务中拆分读和写到不同的实例上去执行。nearby,balance yes,no SessionConnectionPool 可选范围:0~300(秒)

Parameters:

  • ClusterId:

    集群ID,例如cynosdbmysql-asd123

  • ProxyGroupId:

    数据库代理组ID,例如cynosdbmysql-proxy-qwe123

  • ConsistencyType:

    一致性类型;“eventual“-最终一致性, ”session“-会话一致性, ”global“-全局一致性

  • ConsistencyTimeOut:

    一致性超时时间。

  • WeightMode:

    读写权重分配模式;系统自动分配:“system”, 自定义:“custom”

  • InstanceWeights:

    实例只读权重。

  • FailOver:

    是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:“yes” , “no”

  • AutoAddRo:

    是否自动添加只读实例,取值:“yes” , “no”

  • OpenRw:

    是否打开读写分离。

  • RwType:

    读写类型:

  • TransSplit:

    事务拆分。

  • AccessMode:

    连接模式:

  • OpenConnectionPool:

    是否打开连接池:

  • ConnectionPoolType:

    连接池类型:

  • ConnectionPoolTimeOut:

    连接池时间。



10971
10972
10973
# File 'lib/v20190107/models.rb', line 10971

def ClusterId
  @ClusterId
end

#ConnectionPoolTimeOutObject

取值范围:0~1000000(微秒),设置0则表示若只读实例出现延迟, 导致一致性策略不满足, 请求将一直等待。该参数必填。该参数已废弃,请通过RwType设置读写属性。READWRITE,READONLY 在一个事务中拆分读和写到不同的实例上去执行。nearby,balance yes,no SessionConnectionPool 可选范围:0~300(秒)

Parameters:

  • ClusterId:

    集群ID,例如cynosdbmysql-asd123

  • ProxyGroupId:

    数据库代理组ID,例如cynosdbmysql-proxy-qwe123

  • ConsistencyType:

    一致性类型;“eventual“-最终一致性, ”session“-会话一致性, ”global“-全局一致性

  • ConsistencyTimeOut:

    一致性超时时间。

  • WeightMode:

    读写权重分配模式;系统自动分配:“system”, 自定义:“custom”

  • InstanceWeights:

    实例只读权重。

  • FailOver:

    是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:“yes” , “no”

  • AutoAddRo:

    是否自动添加只读实例,取值:“yes” , “no”

  • OpenRw:

    是否打开读写分离。

  • RwType:

    读写类型:

  • TransSplit:

    事务拆分。

  • AccessMode:

    连接模式:

  • OpenConnectionPool:

    是否打开连接池:

  • ConnectionPoolType:

    连接池类型:

  • ConnectionPoolTimeOut:

    连接池时间。



10971
10972
10973
# File 'lib/v20190107/models.rb', line 10971

def ConnectionPoolTimeOut
  @ConnectionPoolTimeOut
end

#ConnectionPoolTypeObject

取值范围:0~1000000(微秒),设置0则表示若只读实例出现延迟, 导致一致性策略不满足, 请求将一直等待。该参数必填。该参数已废弃,请通过RwType设置读写属性。READWRITE,READONLY 在一个事务中拆分读和写到不同的实例上去执行。nearby,balance yes,no SessionConnectionPool 可选范围:0~300(秒)

Parameters:

  • ClusterId:

    集群ID,例如cynosdbmysql-asd123

  • ProxyGroupId:

    数据库代理组ID,例如cynosdbmysql-proxy-qwe123

  • ConsistencyType:

    一致性类型;“eventual“-最终一致性, ”session“-会话一致性, ”global“-全局一致性

  • ConsistencyTimeOut:

    一致性超时时间。

  • WeightMode:

    读写权重分配模式;系统自动分配:“system”, 自定义:“custom”

  • InstanceWeights:

    实例只读权重。

  • FailOver:

    是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:“yes” , “no”

  • AutoAddRo:

    是否自动添加只读实例,取值:“yes” , “no”

  • OpenRw:

    是否打开读写分离。

  • RwType:

    读写类型:

  • TransSplit:

    事务拆分。

  • AccessMode:

    连接模式:

  • OpenConnectionPool:

    是否打开连接池:

  • ConnectionPoolType:

    连接池类型:

  • ConnectionPoolTimeOut:

    连接池时间。



10971
10972
10973
# File 'lib/v20190107/models.rb', line 10971

def ConnectionPoolType
  @ConnectionPoolType
end

#ConsistencyTimeOutObject

取值范围:0~1000000(微秒),设置0则表示若只读实例出现延迟, 导致一致性策略不满足, 请求将一直等待。该参数必填。该参数已废弃,请通过RwType设置读写属性。READWRITE,READONLY 在一个事务中拆分读和写到不同的实例上去执行。nearby,balance yes,no SessionConnectionPool 可选范围:0~300(秒)

Parameters:

  • ClusterId:

    集群ID,例如cynosdbmysql-asd123

  • ProxyGroupId:

    数据库代理组ID,例如cynosdbmysql-proxy-qwe123

  • ConsistencyType:

    一致性类型;“eventual“-最终一致性, ”session“-会话一致性, ”global“-全局一致性

  • ConsistencyTimeOut:

    一致性超时时间。

  • WeightMode:

    读写权重分配模式;系统自动分配:“system”, 自定义:“custom”

  • InstanceWeights:

    实例只读权重。

  • FailOver:

    是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:“yes” , “no”

  • AutoAddRo:

    是否自动添加只读实例,取值:“yes” , “no”

  • OpenRw:

    是否打开读写分离。

  • RwType:

    读写类型:

  • TransSplit:

    事务拆分。

  • AccessMode:

    连接模式:

  • OpenConnectionPool:

    是否打开连接池:

  • ConnectionPoolType:

    连接池类型:

  • ConnectionPoolTimeOut:

    连接池时间。



10971
10972
10973
# File 'lib/v20190107/models.rb', line 10971

def ConsistencyTimeOut
  @ConsistencyTimeOut
end

#ConsistencyTypeObject

取值范围:0~1000000(微秒),设置0则表示若只读实例出现延迟, 导致一致性策略不满足, 请求将一直等待。该参数必填。该参数已废弃,请通过RwType设置读写属性。READWRITE,READONLY 在一个事务中拆分读和写到不同的实例上去执行。nearby,balance yes,no SessionConnectionPool 可选范围:0~300(秒)

Parameters:

  • ClusterId:

    集群ID,例如cynosdbmysql-asd123

  • ProxyGroupId:

    数据库代理组ID,例如cynosdbmysql-proxy-qwe123

  • ConsistencyType:

    一致性类型;“eventual“-最终一致性, ”session“-会话一致性, ”global“-全局一致性

  • ConsistencyTimeOut:

    一致性超时时间。

  • WeightMode:

    读写权重分配模式;系统自动分配:“system”, 自定义:“custom”

  • InstanceWeights:

    实例只读权重。

  • FailOver:

    是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:“yes” , “no”

  • AutoAddRo:

    是否自动添加只读实例,取值:“yes” , “no”

  • OpenRw:

    是否打开读写分离。

  • RwType:

    读写类型:

  • TransSplit:

    事务拆分。

  • AccessMode:

    连接模式:

  • OpenConnectionPool:

    是否打开连接池:

  • ConnectionPoolType:

    连接池类型:

  • ConnectionPoolTimeOut:

    连接池时间。



10971
10972
10973
# File 'lib/v20190107/models.rb', line 10971

def ConsistencyType
  @ConsistencyType
end

#FailOverObject

取值范围:0~1000000(微秒),设置0则表示若只读实例出现延迟, 导致一致性策略不满足, 请求将一直等待。该参数必填。该参数已废弃,请通过RwType设置读写属性。READWRITE,READONLY 在一个事务中拆分读和写到不同的实例上去执行。nearby,balance yes,no SessionConnectionPool 可选范围:0~300(秒)

Parameters:

  • ClusterId:

    集群ID,例如cynosdbmysql-asd123

  • ProxyGroupId:

    数据库代理组ID,例如cynosdbmysql-proxy-qwe123

  • ConsistencyType:

    一致性类型;“eventual“-最终一致性, ”session“-会话一致性, ”global“-全局一致性

  • ConsistencyTimeOut:

    一致性超时时间。

  • WeightMode:

    读写权重分配模式;系统自动分配:“system”, 自定义:“custom”

  • InstanceWeights:

    实例只读权重。

  • FailOver:

    是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:“yes” , “no”

  • AutoAddRo:

    是否自动添加只读实例,取值:“yes” , “no”

  • OpenRw:

    是否打开读写分离。

  • RwType:

    读写类型:

  • TransSplit:

    事务拆分。

  • AccessMode:

    连接模式:

  • OpenConnectionPool:

    是否打开连接池:

  • ConnectionPoolType:

    连接池类型:

  • ConnectionPoolTimeOut:

    连接池时间。



10971
10972
10973
# File 'lib/v20190107/models.rb', line 10971

def FailOver
  @FailOver
end

#InstanceWeightsObject

取值范围:0~1000000(微秒),设置0则表示若只读实例出现延迟, 导致一致性策略不满足, 请求将一直等待。该参数必填。该参数已废弃,请通过RwType设置读写属性。READWRITE,READONLY 在一个事务中拆分读和写到不同的实例上去执行。nearby,balance yes,no SessionConnectionPool 可选范围:0~300(秒)

Parameters:

  • ClusterId:

    集群ID,例如cynosdbmysql-asd123

  • ProxyGroupId:

    数据库代理组ID,例如cynosdbmysql-proxy-qwe123

  • ConsistencyType:

    一致性类型;“eventual“-最终一致性, ”session“-会话一致性, ”global“-全局一致性

  • ConsistencyTimeOut:

    一致性超时时间。

  • WeightMode:

    读写权重分配模式;系统自动分配:“system”, 自定义:“custom”

  • InstanceWeights:

    实例只读权重。

  • FailOver:

    是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:“yes” , “no”

  • AutoAddRo:

    是否自动添加只读实例,取值:“yes” , “no”

  • OpenRw:

    是否打开读写分离。

  • RwType:

    读写类型:

  • TransSplit:

    事务拆分。

  • AccessMode:

    连接模式:

  • OpenConnectionPool:

    是否打开连接池:

  • ConnectionPoolType:

    连接池类型:

  • ConnectionPoolTimeOut:

    连接池时间。



10971
10972
10973
# File 'lib/v20190107/models.rb', line 10971

def InstanceWeights
  @InstanceWeights
end

#OpenConnectionPoolObject

取值范围:0~1000000(微秒),设置0则表示若只读实例出现延迟, 导致一致性策略不满足, 请求将一直等待。该参数必填。该参数已废弃,请通过RwType设置读写属性。READWRITE,READONLY 在一个事务中拆分读和写到不同的实例上去执行。nearby,balance yes,no SessionConnectionPool 可选范围:0~300(秒)

Parameters:

  • ClusterId:

    集群ID,例如cynosdbmysql-asd123

  • ProxyGroupId:

    数据库代理组ID,例如cynosdbmysql-proxy-qwe123

  • ConsistencyType:

    一致性类型;“eventual“-最终一致性, ”session“-会话一致性, ”global“-全局一致性

  • ConsistencyTimeOut:

    一致性超时时间。

  • WeightMode:

    读写权重分配模式;系统自动分配:“system”, 自定义:“custom”

  • InstanceWeights:

    实例只读权重。

  • FailOver:

    是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:“yes” , “no”

  • AutoAddRo:

    是否自动添加只读实例,取值:“yes” , “no”

  • OpenRw:

    是否打开读写分离。

  • RwType:

    读写类型:

  • TransSplit:

    事务拆分。

  • AccessMode:

    连接模式:

  • OpenConnectionPool:

    是否打开连接池:

  • ConnectionPoolType:

    连接池类型:

  • ConnectionPoolTimeOut:

    连接池时间。



10971
10972
10973
# File 'lib/v20190107/models.rb', line 10971

def OpenConnectionPool
  @OpenConnectionPool
end

#OpenRwObject

取值范围:0~1000000(微秒),设置0则表示若只读实例出现延迟, 导致一致性策略不满足, 请求将一直等待。该参数必填。该参数已废弃,请通过RwType设置读写属性。READWRITE,READONLY 在一个事务中拆分读和写到不同的实例上去执行。nearby,balance yes,no SessionConnectionPool 可选范围:0~300(秒)

Parameters:

  • ClusterId:

    集群ID,例如cynosdbmysql-asd123

  • ProxyGroupId:

    数据库代理组ID,例如cynosdbmysql-proxy-qwe123

  • ConsistencyType:

    一致性类型;“eventual“-最终一致性, ”session“-会话一致性, ”global“-全局一致性

  • ConsistencyTimeOut:

    一致性超时时间。

  • WeightMode:

    读写权重分配模式;系统自动分配:“system”, 自定义:“custom”

  • InstanceWeights:

    实例只读权重。

  • FailOver:

    是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:“yes” , “no”

  • AutoAddRo:

    是否自动添加只读实例,取值:“yes” , “no”

  • OpenRw:

    是否打开读写分离。

  • RwType:

    读写类型:

  • TransSplit:

    事务拆分。

  • AccessMode:

    连接模式:

  • OpenConnectionPool:

    是否打开连接池:

  • ConnectionPoolType:

    连接池类型:

  • ConnectionPoolTimeOut:

    连接池时间。



10971
10972
10973
# File 'lib/v20190107/models.rb', line 10971

def OpenRw
  @OpenRw
end

#ProxyGroupIdObject

取值范围:0~1000000(微秒),设置0则表示若只读实例出现延迟, 导致一致性策略不满足, 请求将一直等待。该参数必填。该参数已废弃,请通过RwType设置读写属性。READWRITE,READONLY 在一个事务中拆分读和写到不同的实例上去执行。nearby,balance yes,no SessionConnectionPool 可选范围:0~300(秒)

Parameters:

  • ClusterId:

    集群ID,例如cynosdbmysql-asd123

  • ProxyGroupId:

    数据库代理组ID,例如cynosdbmysql-proxy-qwe123

  • ConsistencyType:

    一致性类型;“eventual“-最终一致性, ”session“-会话一致性, ”global“-全局一致性

  • ConsistencyTimeOut:

    一致性超时时间。

  • WeightMode:

    读写权重分配模式;系统自动分配:“system”, 自定义:“custom”

  • InstanceWeights:

    实例只读权重。

  • FailOver:

    是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:“yes” , “no”

  • AutoAddRo:

    是否自动添加只读实例,取值:“yes” , “no”

  • OpenRw:

    是否打开读写分离。

  • RwType:

    读写类型:

  • TransSplit:

    事务拆分。

  • AccessMode:

    连接模式:

  • OpenConnectionPool:

    是否打开连接池:

  • ConnectionPoolType:

    连接池类型:

  • ConnectionPoolTimeOut:

    连接池时间。



10971
10972
10973
# File 'lib/v20190107/models.rb', line 10971

def ProxyGroupId
  @ProxyGroupId
end

#RwTypeObject

取值范围:0~1000000(微秒),设置0则表示若只读实例出现延迟, 导致一致性策略不满足, 请求将一直等待。该参数必填。该参数已废弃,请通过RwType设置读写属性。READWRITE,READONLY 在一个事务中拆分读和写到不同的实例上去执行。nearby,balance yes,no SessionConnectionPool 可选范围:0~300(秒)

Parameters:

  • ClusterId:

    集群ID,例如cynosdbmysql-asd123

  • ProxyGroupId:

    数据库代理组ID,例如cynosdbmysql-proxy-qwe123

  • ConsistencyType:

    一致性类型;“eventual“-最终一致性, ”session“-会话一致性, ”global“-全局一致性

  • ConsistencyTimeOut:

    一致性超时时间。

  • WeightMode:

    读写权重分配模式;系统自动分配:“system”, 自定义:“custom”

  • InstanceWeights:

    实例只读权重。

  • FailOver:

    是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:“yes” , “no”

  • AutoAddRo:

    是否自动添加只读实例,取值:“yes” , “no”

  • OpenRw:

    是否打开读写分离。

  • RwType:

    读写类型:

  • TransSplit:

    事务拆分。

  • AccessMode:

    连接模式:

  • OpenConnectionPool:

    是否打开连接池:

  • ConnectionPoolType:

    连接池类型:

  • ConnectionPoolTimeOut:

    连接池时间。



10971
10972
10973
# File 'lib/v20190107/models.rb', line 10971

def RwType
  @RwType
end

#TransSplitObject

取值范围:0~1000000(微秒),设置0则表示若只读实例出现延迟, 导致一致性策略不满足, 请求将一直等待。该参数必填。该参数已废弃,请通过RwType设置读写属性。READWRITE,READONLY 在一个事务中拆分读和写到不同的实例上去执行。nearby,balance yes,no SessionConnectionPool 可选范围:0~300(秒)

Parameters:

  • ClusterId:

    集群ID,例如cynosdbmysql-asd123

  • ProxyGroupId:

    数据库代理组ID,例如cynosdbmysql-proxy-qwe123

  • ConsistencyType:

    一致性类型;“eventual“-最终一致性, ”session“-会话一致性, ”global“-全局一致性

  • ConsistencyTimeOut:

    一致性超时时间。

  • WeightMode:

    读写权重分配模式;系统自动分配:“system”, 自定义:“custom”

  • InstanceWeights:

    实例只读权重。

  • FailOver:

    是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:“yes” , “no”

  • AutoAddRo:

    是否自动添加只读实例,取值:“yes” , “no”

  • OpenRw:

    是否打开读写分离。

  • RwType:

    读写类型:

  • TransSplit:

    事务拆分。

  • AccessMode:

    连接模式:

  • OpenConnectionPool:

    是否打开连接池:

  • ConnectionPoolType:

    连接池类型:

  • ConnectionPoolTimeOut:

    连接池时间。



10971
10972
10973
# File 'lib/v20190107/models.rb', line 10971

def TransSplit
  @TransSplit
end

#WeightModeObject

取值范围:0~1000000(微秒),设置0则表示若只读实例出现延迟, 导致一致性策略不满足, 请求将一直等待。该参数必填。该参数已废弃,请通过RwType设置读写属性。READWRITE,READONLY 在一个事务中拆分读和写到不同的实例上去执行。nearby,balance yes,no SessionConnectionPool 可选范围:0~300(秒)

Parameters:

  • ClusterId:

    集群ID,例如cynosdbmysql-asd123

  • ProxyGroupId:

    数据库代理组ID,例如cynosdbmysql-proxy-qwe123

  • ConsistencyType:

    一致性类型;“eventual“-最终一致性, ”session“-会话一致性, ”global“-全局一致性

  • ConsistencyTimeOut:

    一致性超时时间。

  • WeightMode:

    读写权重分配模式;系统自动分配:“system”, 自定义:“custom”

  • InstanceWeights:

    实例只读权重。

  • FailOver:

    是否开启故障转移,代理出现故障后,连接地址将路由到主实例,取值:“yes” , “no”

  • AutoAddRo:

    是否自动添加只读实例,取值:“yes” , “no”

  • OpenRw:

    是否打开读写分离。

  • RwType:

    读写类型:

  • TransSplit:

    事务拆分。

  • AccessMode:

    连接模式:

  • OpenConnectionPool:

    是否打开连接池:

  • ConnectionPoolType:

    连接池类型:

  • ConnectionPoolTimeOut:

    连接池时间。



10971
10972
10973
# File 'lib/v20190107/models.rb', line 10971

def WeightMode
  @WeightMode
end

Instance Method Details

#deserialize(params) ⇒ Object



10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
# File 'lib/v20190107/models.rb', line 10991

def deserialize(params)
  @ClusterId = params['ClusterId']
  @ProxyGroupId = params['ProxyGroupId']
  @ConsistencyType = params['ConsistencyType']
  @ConsistencyTimeOut = params['ConsistencyTimeOut']
  @WeightMode = params['WeightMode']
  unless params['InstanceWeights'].nil?
    @InstanceWeights = []
    params['InstanceWeights'].each do |i|
      proxyinstanceweight_tmp = ProxyInstanceWeight.new
      proxyinstanceweight_tmp.deserialize(i)
      @InstanceWeights << proxyinstanceweight_tmp
    end
  end
  @FailOver = params['FailOver']
  @AutoAddRo = params['AutoAddRo']
  @OpenRw = params['OpenRw']
  @RwType = params['RwType']
  @TransSplit = params['TransSplit']
  @AccessMode = params['AccessMode']
  @OpenConnectionPool = params['OpenConnectionPool']
  @ConnectionPoolType = params['ConnectionPoolType']
  @ConnectionPoolTimeOut = params['ConnectionPoolTimeOut']
end