Class: TencentCloud::Cdb::V20170320::CreateCdbProxyAddressRequest

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

Overview

CreateCdbProxyAddress请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(proxygroupid = nil, weightmode = nil, iskickout = nil, mincount = nil, maxdelay = nil, failover = nil, autoaddro = nil, readonly = nil, transsplit = nil, proxyallocation = nil, uniqvpcid = nil, uniqsubnetid = nil, connectionpool = nil, desc = nil, vip = nil, vport = nil, securitygroup = nil, connectionpooltype = nil, autoloadbalance = nil, accessmode = nil) ⇒ CreateCdbProxyAddressRequest

Returns a new instance of CreateCdbProxyAddressRequest.



2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
# File 'lib/v20170320/models.rb', line 2676

def initialize(proxygroupid=nil, weightmode=nil, iskickout=nil, mincount=nil, maxdelay=nil, failover=nil, autoaddro=nil, readonly=nil, transsplit=nil, proxyallocation=nil, uniqvpcid=nil, uniqsubnetid=nil, connectionpool=nil, desc=nil, vip=nil, vport=nil, securitygroup=nil, connectionpooltype=nil, autoloadbalance=nil, accessmode=nil)
  @ProxyGroupId = proxygroupid
  @WeightMode = weightmode
  @IsKickOut = iskickout
  @MinCount = mincount
  @MaxDelay = maxdelay
  @FailOver = failover
  @AutoAddRo = autoaddro
  @ReadOnly = readonly
  @TransSplit = transsplit
  @ProxyAllocation = proxyallocation
  @UniqVpcId = uniqvpcid
  @UniqSubnetId = uniqsubnetid
  @ConnectionPool = connectionpool
  @Desc = desc
  @Vip = vip
  @VPort = vport
  @SecurityGroup = securitygroup
  @ConnectionPoolType = connectionpooltype
  @AutoLoadBalance = autoloadbalance
  @AccessMode = accessmode
end

Instance Attribute Details

#AccessModeObject

系统自动分配:“system”, 自定义:“custom” 注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。

Parameters:

  • ProxyGroupId:

    代理组 ID。可通过 [DescribeCdbProxyInfo](cloud.tencent.com/document/api/236/90585) 接口获取。

  • WeightMode:

    权重分配模式,

  • IsKickOut:

    是否开启延迟剔除,取值:“true” | “false”

  • MinCount:

    最小保留数量,最小取值:0

  • MaxDelay:

    延迟剔除阈值,最小取值:1,范围:1 - 10000,整数。

  • FailOver:

    是否开启故障转移,取值:“true” | “false”

  • AutoAddRo:

    是否自动添加RO,取值:“true” | “false”

  • ReadOnly:

    是否是只读,取值:“true” | “false”

  • TransSplit:

    是否开启事务分离,取值:“true” | “false”

  • ProxyAllocation:

    读写权重分配

  • UniqVpcId:

    私有网络 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • UniqSubnetId:

    私有子网 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • ConnectionPool:

    是否开启连接池。默认关闭。

  • Desc:

    描述

  • Vip:

    IP 地址。不填则默认为所选 VPC 下支持的随机一个 IP。

  • VPort:

    端口。默认值3306。

  • SecurityGroup:

    安全组

  • ConnectionPoolType:

    连接池类型。可选值 transaction(事务级别连接池),connection(会话级别连接池),ConnectionPool 为 true 时生效。默认值:connection。

  • AutoLoadBalance:

    是否开启自适应负载均衡。默认关闭。

  • AccessMode:

    接入模式。nearBy - 就近访问,balance - 均衡分配,默认值:nearBy。



2674
2675
2676
# File 'lib/v20170320/models.rb', line 2674

def AccessMode
  @AccessMode
end

#AutoAddRoObject

系统自动分配:“system”, 自定义:“custom” 注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。

Parameters:

  • ProxyGroupId:

    代理组 ID。可通过 [DescribeCdbProxyInfo](cloud.tencent.com/document/api/236/90585) 接口获取。

  • WeightMode:

    权重分配模式,

  • IsKickOut:

    是否开启延迟剔除,取值:“true” | “false”

  • MinCount:

    最小保留数量,最小取值:0

  • MaxDelay:

    延迟剔除阈值,最小取值:1,范围:1 - 10000,整数。

  • FailOver:

    是否开启故障转移,取值:“true” | “false”

  • AutoAddRo:

    是否自动添加RO,取值:“true” | “false”

  • ReadOnly:

    是否是只读,取值:“true” | “false”

  • TransSplit:

    是否开启事务分离,取值:“true” | “false”

  • ProxyAllocation:

    读写权重分配

  • UniqVpcId:

    私有网络 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • UniqSubnetId:

    私有子网 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • ConnectionPool:

    是否开启连接池。默认关闭。

  • Desc:

    描述

  • Vip:

    IP 地址。不填则默认为所选 VPC 下支持的随机一个 IP。

  • VPort:

    端口。默认值3306。

  • SecurityGroup:

    安全组

  • ConnectionPoolType:

    连接池类型。可选值 transaction(事务级别连接池),connection(会话级别连接池),ConnectionPool 为 true 时生效。默认值:connection。

  • AutoLoadBalance:

    是否开启自适应负载均衡。默认关闭。

  • AccessMode:

    接入模式。nearBy - 就近访问,balance - 均衡分配,默认值:nearBy。



2674
2675
2676
# File 'lib/v20170320/models.rb', line 2674

def AutoAddRo
  @AutoAddRo
end

#AutoLoadBalanceObject

系统自动分配:“system”, 自定义:“custom” 注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。

Parameters:

  • ProxyGroupId:

    代理组 ID。可通过 [DescribeCdbProxyInfo](cloud.tencent.com/document/api/236/90585) 接口获取。

  • WeightMode:

    权重分配模式,

  • IsKickOut:

    是否开启延迟剔除,取值:“true” | “false”

  • MinCount:

    最小保留数量,最小取值:0

  • MaxDelay:

    延迟剔除阈值,最小取值:1,范围:1 - 10000,整数。

  • FailOver:

    是否开启故障转移,取值:“true” | “false”

  • AutoAddRo:

    是否自动添加RO,取值:“true” | “false”

  • ReadOnly:

    是否是只读,取值:“true” | “false”

  • TransSplit:

    是否开启事务分离,取值:“true” | “false”

  • ProxyAllocation:

    读写权重分配

  • UniqVpcId:

    私有网络 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • UniqSubnetId:

    私有子网 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • ConnectionPool:

    是否开启连接池。默认关闭。

  • Desc:

    描述

  • Vip:

    IP 地址。不填则默认为所选 VPC 下支持的随机一个 IP。

  • VPort:

    端口。默认值3306。

  • SecurityGroup:

    安全组

  • ConnectionPoolType:

    连接池类型。可选值 transaction(事务级别连接池),connection(会话级别连接池),ConnectionPool 为 true 时生效。默认值:connection。

  • AutoLoadBalance:

    是否开启自适应负载均衡。默认关闭。

  • AccessMode:

    接入模式。nearBy - 就近访问,balance - 均衡分配,默认值:nearBy。



2674
2675
2676
# File 'lib/v20170320/models.rb', line 2674

def AutoLoadBalance
  @AutoLoadBalance
end

#ConnectionPoolObject

系统自动分配:“system”, 自定义:“custom” 注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。

Parameters:

  • ProxyGroupId:

    代理组 ID。可通过 [DescribeCdbProxyInfo](cloud.tencent.com/document/api/236/90585) 接口获取。

  • WeightMode:

    权重分配模式,

  • IsKickOut:

    是否开启延迟剔除,取值:“true” | “false”

  • MinCount:

    最小保留数量,最小取值:0

  • MaxDelay:

    延迟剔除阈值,最小取值:1,范围:1 - 10000,整数。

  • FailOver:

    是否开启故障转移,取值:“true” | “false”

  • AutoAddRo:

    是否自动添加RO,取值:“true” | “false”

  • ReadOnly:

    是否是只读,取值:“true” | “false”

  • TransSplit:

    是否开启事务分离,取值:“true” | “false”

  • ProxyAllocation:

    读写权重分配

  • UniqVpcId:

    私有网络 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • UniqSubnetId:

    私有子网 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • ConnectionPool:

    是否开启连接池。默认关闭。

  • Desc:

    描述

  • Vip:

    IP 地址。不填则默认为所选 VPC 下支持的随机一个 IP。

  • VPort:

    端口。默认值3306。

  • SecurityGroup:

    安全组

  • ConnectionPoolType:

    连接池类型。可选值 transaction(事务级别连接池),connection(会话级别连接池),ConnectionPool 为 true 时生效。默认值:connection。

  • AutoLoadBalance:

    是否开启自适应负载均衡。默认关闭。

  • AccessMode:

    接入模式。nearBy - 就近访问,balance - 均衡分配,默认值:nearBy。



2674
2675
2676
# File 'lib/v20170320/models.rb', line 2674

def ConnectionPool
  @ConnectionPool
end

#ConnectionPoolTypeObject

系统自动分配:“system”, 自定义:“custom” 注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。

Parameters:

  • ProxyGroupId:

    代理组 ID。可通过 [DescribeCdbProxyInfo](cloud.tencent.com/document/api/236/90585) 接口获取。

  • WeightMode:

    权重分配模式,

  • IsKickOut:

    是否开启延迟剔除,取值:“true” | “false”

  • MinCount:

    最小保留数量,最小取值:0

  • MaxDelay:

    延迟剔除阈值,最小取值:1,范围:1 - 10000,整数。

  • FailOver:

    是否开启故障转移,取值:“true” | “false”

  • AutoAddRo:

    是否自动添加RO,取值:“true” | “false”

  • ReadOnly:

    是否是只读,取值:“true” | “false”

  • TransSplit:

    是否开启事务分离,取值:“true” | “false”

  • ProxyAllocation:

    读写权重分配

  • UniqVpcId:

    私有网络 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • UniqSubnetId:

    私有子网 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • ConnectionPool:

    是否开启连接池。默认关闭。

  • Desc:

    描述

  • Vip:

    IP 地址。不填则默认为所选 VPC 下支持的随机一个 IP。

  • VPort:

    端口。默认值3306。

  • SecurityGroup:

    安全组

  • ConnectionPoolType:

    连接池类型。可选值 transaction(事务级别连接池),connection(会话级别连接池),ConnectionPool 为 true 时生效。默认值:connection。

  • AutoLoadBalance:

    是否开启自适应负载均衡。默认关闭。

  • AccessMode:

    接入模式。nearBy - 就近访问,balance - 均衡分配,默认值:nearBy。



2674
2675
2676
# File 'lib/v20170320/models.rb', line 2674

def ConnectionPoolType
  @ConnectionPoolType
end

#DescObject

系统自动分配:“system”, 自定义:“custom” 注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。

Parameters:

  • ProxyGroupId:

    代理组 ID。可通过 [DescribeCdbProxyInfo](cloud.tencent.com/document/api/236/90585) 接口获取。

  • WeightMode:

    权重分配模式,

  • IsKickOut:

    是否开启延迟剔除,取值:“true” | “false”

  • MinCount:

    最小保留数量,最小取值:0

  • MaxDelay:

    延迟剔除阈值,最小取值:1,范围:1 - 10000,整数。

  • FailOver:

    是否开启故障转移,取值:“true” | “false”

  • AutoAddRo:

    是否自动添加RO,取值:“true” | “false”

  • ReadOnly:

    是否是只读,取值:“true” | “false”

  • TransSplit:

    是否开启事务分离,取值:“true” | “false”

  • ProxyAllocation:

    读写权重分配

  • UniqVpcId:

    私有网络 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • UniqSubnetId:

    私有子网 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • ConnectionPool:

    是否开启连接池。默认关闭。

  • Desc:

    描述

  • Vip:

    IP 地址。不填则默认为所选 VPC 下支持的随机一个 IP。

  • VPort:

    端口。默认值3306。

  • SecurityGroup:

    安全组

  • ConnectionPoolType:

    连接池类型。可选值 transaction(事务级别连接池),connection(会话级别连接池),ConnectionPool 为 true 时生效。默认值:connection。

  • AutoLoadBalance:

    是否开启自适应负载均衡。默认关闭。

  • AccessMode:

    接入模式。nearBy - 就近访问,balance - 均衡分配,默认值:nearBy。



2674
2675
2676
# File 'lib/v20170320/models.rb', line 2674

def Desc
  @Desc
end

#FailOverObject

系统自动分配:“system”, 自定义:“custom” 注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。

Parameters:

  • ProxyGroupId:

    代理组 ID。可通过 [DescribeCdbProxyInfo](cloud.tencent.com/document/api/236/90585) 接口获取。

  • WeightMode:

    权重分配模式,

  • IsKickOut:

    是否开启延迟剔除,取值:“true” | “false”

  • MinCount:

    最小保留数量,最小取值:0

  • MaxDelay:

    延迟剔除阈值,最小取值:1,范围:1 - 10000,整数。

  • FailOver:

    是否开启故障转移,取值:“true” | “false”

  • AutoAddRo:

    是否自动添加RO,取值:“true” | “false”

  • ReadOnly:

    是否是只读,取值:“true” | “false”

  • TransSplit:

    是否开启事务分离,取值:“true” | “false”

  • ProxyAllocation:

    读写权重分配

  • UniqVpcId:

    私有网络 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • UniqSubnetId:

    私有子网 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • ConnectionPool:

    是否开启连接池。默认关闭。

  • Desc:

    描述

  • Vip:

    IP 地址。不填则默认为所选 VPC 下支持的随机一个 IP。

  • VPort:

    端口。默认值3306。

  • SecurityGroup:

    安全组

  • ConnectionPoolType:

    连接池类型。可选值 transaction(事务级别连接池),connection(会话级别连接池),ConnectionPool 为 true 时生效。默认值:connection。

  • AutoLoadBalance:

    是否开启自适应负载均衡。默认关闭。

  • AccessMode:

    接入模式。nearBy - 就近访问,balance - 均衡分配,默认值:nearBy。



2674
2675
2676
# File 'lib/v20170320/models.rb', line 2674

def FailOver
  @FailOver
end

#IsKickOutObject

系统自动分配:“system”, 自定义:“custom” 注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。

Parameters:

  • ProxyGroupId:

    代理组 ID。可通过 [DescribeCdbProxyInfo](cloud.tencent.com/document/api/236/90585) 接口获取。

  • WeightMode:

    权重分配模式,

  • IsKickOut:

    是否开启延迟剔除,取值:“true” | “false”

  • MinCount:

    最小保留数量,最小取值:0

  • MaxDelay:

    延迟剔除阈值,最小取值:1,范围:1 - 10000,整数。

  • FailOver:

    是否开启故障转移,取值:“true” | “false”

  • AutoAddRo:

    是否自动添加RO,取值:“true” | “false”

  • ReadOnly:

    是否是只读,取值:“true” | “false”

  • TransSplit:

    是否开启事务分离,取值:“true” | “false”

  • ProxyAllocation:

    读写权重分配

  • UniqVpcId:

    私有网络 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • UniqSubnetId:

    私有子网 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • ConnectionPool:

    是否开启连接池。默认关闭。

  • Desc:

    描述

  • Vip:

    IP 地址。不填则默认为所选 VPC 下支持的随机一个 IP。

  • VPort:

    端口。默认值3306。

  • SecurityGroup:

    安全组

  • ConnectionPoolType:

    连接池类型。可选值 transaction(事务级别连接池),connection(会话级别连接池),ConnectionPool 为 true 时生效。默认值:connection。

  • AutoLoadBalance:

    是否开启自适应负载均衡。默认关闭。

  • AccessMode:

    接入模式。nearBy - 就近访问,balance - 均衡分配,默认值:nearBy。



2674
2675
2676
# File 'lib/v20170320/models.rb', line 2674

def IsKickOut
  @IsKickOut
end

#MaxDelayObject

系统自动分配:“system”, 自定义:“custom” 注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。

Parameters:

  • ProxyGroupId:

    代理组 ID。可通过 [DescribeCdbProxyInfo](cloud.tencent.com/document/api/236/90585) 接口获取。

  • WeightMode:

    权重分配模式,

  • IsKickOut:

    是否开启延迟剔除,取值:“true” | “false”

  • MinCount:

    最小保留数量,最小取值:0

  • MaxDelay:

    延迟剔除阈值,最小取值:1,范围:1 - 10000,整数。

  • FailOver:

    是否开启故障转移,取值:“true” | “false”

  • AutoAddRo:

    是否自动添加RO,取值:“true” | “false”

  • ReadOnly:

    是否是只读,取值:“true” | “false”

  • TransSplit:

    是否开启事务分离,取值:“true” | “false”

  • ProxyAllocation:

    读写权重分配

  • UniqVpcId:

    私有网络 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • UniqSubnetId:

    私有子网 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • ConnectionPool:

    是否开启连接池。默认关闭。

  • Desc:

    描述

  • Vip:

    IP 地址。不填则默认为所选 VPC 下支持的随机一个 IP。

  • VPort:

    端口。默认值3306。

  • SecurityGroup:

    安全组

  • ConnectionPoolType:

    连接池类型。可选值 transaction(事务级别连接池),connection(会话级别连接池),ConnectionPool 为 true 时生效。默认值:connection。

  • AutoLoadBalance:

    是否开启自适应负载均衡。默认关闭。

  • AccessMode:

    接入模式。nearBy - 就近访问,balance - 均衡分配,默认值:nearBy。



2674
2675
2676
# File 'lib/v20170320/models.rb', line 2674

def MaxDelay
  @MaxDelay
end

#MinCountObject

系统自动分配:“system”, 自定义:“custom” 注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。

Parameters:

  • ProxyGroupId:

    代理组 ID。可通过 [DescribeCdbProxyInfo](cloud.tencent.com/document/api/236/90585) 接口获取。

  • WeightMode:

    权重分配模式,

  • IsKickOut:

    是否开启延迟剔除,取值:“true” | “false”

  • MinCount:

    最小保留数量,最小取值:0

  • MaxDelay:

    延迟剔除阈值,最小取值:1,范围:1 - 10000,整数。

  • FailOver:

    是否开启故障转移,取值:“true” | “false”

  • AutoAddRo:

    是否自动添加RO,取值:“true” | “false”

  • ReadOnly:

    是否是只读,取值:“true” | “false”

  • TransSplit:

    是否开启事务分离,取值:“true” | “false”

  • ProxyAllocation:

    读写权重分配

  • UniqVpcId:

    私有网络 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • UniqSubnetId:

    私有子网 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • ConnectionPool:

    是否开启连接池。默认关闭。

  • Desc:

    描述

  • Vip:

    IP 地址。不填则默认为所选 VPC 下支持的随机一个 IP。

  • VPort:

    端口。默认值3306。

  • SecurityGroup:

    安全组

  • ConnectionPoolType:

    连接池类型。可选值 transaction(事务级别连接池),connection(会话级别连接池),ConnectionPool 为 true 时生效。默认值:connection。

  • AutoLoadBalance:

    是否开启自适应负载均衡。默认关闭。

  • AccessMode:

    接入模式。nearBy - 就近访问,balance - 均衡分配,默认值:nearBy。



2674
2675
2676
# File 'lib/v20170320/models.rb', line 2674

def MinCount
  @MinCount
end

#ProxyAllocationObject

系统自动分配:“system”, 自定义:“custom” 注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。

Parameters:

  • ProxyGroupId:

    代理组 ID。可通过 [DescribeCdbProxyInfo](cloud.tencent.com/document/api/236/90585) 接口获取。

  • WeightMode:

    权重分配模式,

  • IsKickOut:

    是否开启延迟剔除,取值:“true” | “false”

  • MinCount:

    最小保留数量,最小取值:0

  • MaxDelay:

    延迟剔除阈值,最小取值:1,范围:1 - 10000,整数。

  • FailOver:

    是否开启故障转移,取值:“true” | “false”

  • AutoAddRo:

    是否自动添加RO,取值:“true” | “false”

  • ReadOnly:

    是否是只读,取值:“true” | “false”

  • TransSplit:

    是否开启事务分离,取值:“true” | “false”

  • ProxyAllocation:

    读写权重分配

  • UniqVpcId:

    私有网络 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • UniqSubnetId:

    私有子网 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • ConnectionPool:

    是否开启连接池。默认关闭。

  • Desc:

    描述

  • Vip:

    IP 地址。不填则默认为所选 VPC 下支持的随机一个 IP。

  • VPort:

    端口。默认值3306。

  • SecurityGroup:

    安全组

  • ConnectionPoolType:

    连接池类型。可选值 transaction(事务级别连接池),connection(会话级别连接池),ConnectionPool 为 true 时生效。默认值:connection。

  • AutoLoadBalance:

    是否开启自适应负载均衡。默认关闭。

  • AccessMode:

    接入模式。nearBy - 就近访问,balance - 均衡分配,默认值:nearBy。



2674
2675
2676
# File 'lib/v20170320/models.rb', line 2674

def ProxyAllocation
  @ProxyAllocation
end

#ProxyGroupIdObject

系统自动分配:“system”, 自定义:“custom” 注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。

Parameters:

  • ProxyGroupId:

    代理组 ID。可通过 [DescribeCdbProxyInfo](cloud.tencent.com/document/api/236/90585) 接口获取。

  • WeightMode:

    权重分配模式,

  • IsKickOut:

    是否开启延迟剔除,取值:“true” | “false”

  • MinCount:

    最小保留数量,最小取值:0

  • MaxDelay:

    延迟剔除阈值,最小取值:1,范围:1 - 10000,整数。

  • FailOver:

    是否开启故障转移,取值:“true” | “false”

  • AutoAddRo:

    是否自动添加RO,取值:“true” | “false”

  • ReadOnly:

    是否是只读,取值:“true” | “false”

  • TransSplit:

    是否开启事务分离,取值:“true” | “false”

  • ProxyAllocation:

    读写权重分配

  • UniqVpcId:

    私有网络 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • UniqSubnetId:

    私有子网 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • ConnectionPool:

    是否开启连接池。默认关闭。

  • Desc:

    描述

  • Vip:

    IP 地址。不填则默认为所选 VPC 下支持的随机一个 IP。

  • VPort:

    端口。默认值3306。

  • SecurityGroup:

    安全组

  • ConnectionPoolType:

    连接池类型。可选值 transaction(事务级别连接池),connection(会话级别连接池),ConnectionPool 为 true 时生效。默认值:connection。

  • AutoLoadBalance:

    是否开启自适应负载均衡。默认关闭。

  • AccessMode:

    接入模式。nearBy - 就近访问,balance - 均衡分配,默认值:nearBy。



2674
2675
2676
# File 'lib/v20170320/models.rb', line 2674

def ProxyGroupId
  @ProxyGroupId
end

#ReadOnlyObject

系统自动分配:“system”, 自定义:“custom” 注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。

Parameters:

  • ProxyGroupId:

    代理组 ID。可通过 [DescribeCdbProxyInfo](cloud.tencent.com/document/api/236/90585) 接口获取。

  • WeightMode:

    权重分配模式,

  • IsKickOut:

    是否开启延迟剔除,取值:“true” | “false”

  • MinCount:

    最小保留数量,最小取值:0

  • MaxDelay:

    延迟剔除阈值,最小取值:1,范围:1 - 10000,整数。

  • FailOver:

    是否开启故障转移,取值:“true” | “false”

  • AutoAddRo:

    是否自动添加RO,取值:“true” | “false”

  • ReadOnly:

    是否是只读,取值:“true” | “false”

  • TransSplit:

    是否开启事务分离,取值:“true” | “false”

  • ProxyAllocation:

    读写权重分配

  • UniqVpcId:

    私有网络 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • UniqSubnetId:

    私有子网 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • ConnectionPool:

    是否开启连接池。默认关闭。

  • Desc:

    描述

  • Vip:

    IP 地址。不填则默认为所选 VPC 下支持的随机一个 IP。

  • VPort:

    端口。默认值3306。

  • SecurityGroup:

    安全组

  • ConnectionPoolType:

    连接池类型。可选值 transaction(事务级别连接池),connection(会话级别连接池),ConnectionPool 为 true 时生效。默认值:connection。

  • AutoLoadBalance:

    是否开启自适应负载均衡。默认关闭。

  • AccessMode:

    接入模式。nearBy - 就近访问,balance - 均衡分配,默认值:nearBy。



2674
2675
2676
# File 'lib/v20170320/models.rb', line 2674

def ReadOnly
  @ReadOnly
end

#SecurityGroupObject

系统自动分配:“system”, 自定义:“custom” 注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。

Parameters:

  • ProxyGroupId:

    代理组 ID。可通过 [DescribeCdbProxyInfo](cloud.tencent.com/document/api/236/90585) 接口获取。

  • WeightMode:

    权重分配模式,

  • IsKickOut:

    是否开启延迟剔除,取值:“true” | “false”

  • MinCount:

    最小保留数量,最小取值:0

  • MaxDelay:

    延迟剔除阈值,最小取值:1,范围:1 - 10000,整数。

  • FailOver:

    是否开启故障转移,取值:“true” | “false”

  • AutoAddRo:

    是否自动添加RO,取值:“true” | “false”

  • ReadOnly:

    是否是只读,取值:“true” | “false”

  • TransSplit:

    是否开启事务分离,取值:“true” | “false”

  • ProxyAllocation:

    读写权重分配

  • UniqVpcId:

    私有网络 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • UniqSubnetId:

    私有子网 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • ConnectionPool:

    是否开启连接池。默认关闭。

  • Desc:

    描述

  • Vip:

    IP 地址。不填则默认为所选 VPC 下支持的随机一个 IP。

  • VPort:

    端口。默认值3306。

  • SecurityGroup:

    安全组

  • ConnectionPoolType:

    连接池类型。可选值 transaction(事务级别连接池),connection(会话级别连接池),ConnectionPool 为 true 时生效。默认值:connection。

  • AutoLoadBalance:

    是否开启自适应负载均衡。默认关闭。

  • AccessMode:

    接入模式。nearBy - 就近访问,balance - 均衡分配,默认值:nearBy。



2674
2675
2676
# File 'lib/v20170320/models.rb', line 2674

def SecurityGroup
  @SecurityGroup
end

#TransSplitObject

系统自动分配:“system”, 自定义:“custom” 注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。

Parameters:

  • ProxyGroupId:

    代理组 ID。可通过 [DescribeCdbProxyInfo](cloud.tencent.com/document/api/236/90585) 接口获取。

  • WeightMode:

    权重分配模式,

  • IsKickOut:

    是否开启延迟剔除,取值:“true” | “false”

  • MinCount:

    最小保留数量,最小取值:0

  • MaxDelay:

    延迟剔除阈值,最小取值:1,范围:1 - 10000,整数。

  • FailOver:

    是否开启故障转移,取值:“true” | “false”

  • AutoAddRo:

    是否自动添加RO,取值:“true” | “false”

  • ReadOnly:

    是否是只读,取值:“true” | “false”

  • TransSplit:

    是否开启事务分离,取值:“true” | “false”

  • ProxyAllocation:

    读写权重分配

  • UniqVpcId:

    私有网络 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • UniqSubnetId:

    私有子网 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • ConnectionPool:

    是否开启连接池。默认关闭。

  • Desc:

    描述

  • Vip:

    IP 地址。不填则默认为所选 VPC 下支持的随机一个 IP。

  • VPort:

    端口。默认值3306。

  • SecurityGroup:

    安全组

  • ConnectionPoolType:

    连接池类型。可选值 transaction(事务级别连接池),connection(会话级别连接池),ConnectionPool 为 true 时生效。默认值:connection。

  • AutoLoadBalance:

    是否开启自适应负载均衡。默认关闭。

  • AccessMode:

    接入模式。nearBy - 就近访问,balance - 均衡分配,默认值:nearBy。



2674
2675
2676
# File 'lib/v20170320/models.rb', line 2674

def TransSplit
  @TransSplit
end

#UniqSubnetIdObject

系统自动分配:“system”, 自定义:“custom” 注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。

Parameters:

  • ProxyGroupId:

    代理组 ID。可通过 [DescribeCdbProxyInfo](cloud.tencent.com/document/api/236/90585) 接口获取。

  • WeightMode:

    权重分配模式,

  • IsKickOut:

    是否开启延迟剔除,取值:“true” | “false”

  • MinCount:

    最小保留数量,最小取值:0

  • MaxDelay:

    延迟剔除阈值,最小取值:1,范围:1 - 10000,整数。

  • FailOver:

    是否开启故障转移,取值:“true” | “false”

  • AutoAddRo:

    是否自动添加RO,取值:“true” | “false”

  • ReadOnly:

    是否是只读,取值:“true” | “false”

  • TransSplit:

    是否开启事务分离,取值:“true” | “false”

  • ProxyAllocation:

    读写权重分配

  • UniqVpcId:

    私有网络 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • UniqSubnetId:

    私有子网 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • ConnectionPool:

    是否开启连接池。默认关闭。

  • Desc:

    描述

  • Vip:

    IP 地址。不填则默认为所选 VPC 下支持的随机一个 IP。

  • VPort:

    端口。默认值3306。

  • SecurityGroup:

    安全组

  • ConnectionPoolType:

    连接池类型。可选值 transaction(事务级别连接池),connection(会话级别连接池),ConnectionPool 为 true 时生效。默认值:connection。

  • AutoLoadBalance:

    是否开启自适应负载均衡。默认关闭。

  • AccessMode:

    接入模式。nearBy - 就近访问,balance - 均衡分配,默认值:nearBy。



2674
2675
2676
# File 'lib/v20170320/models.rb', line 2674

def UniqSubnetId
  @UniqSubnetId
end

#UniqVpcIdObject

系统自动分配:“system”, 自定义:“custom” 注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。

Parameters:

  • ProxyGroupId:

    代理组 ID。可通过 [DescribeCdbProxyInfo](cloud.tencent.com/document/api/236/90585) 接口获取。

  • WeightMode:

    权重分配模式,

  • IsKickOut:

    是否开启延迟剔除,取值:“true” | “false”

  • MinCount:

    最小保留数量,最小取值:0

  • MaxDelay:

    延迟剔除阈值,最小取值:1,范围:1 - 10000,整数。

  • FailOver:

    是否开启故障转移,取值:“true” | “false”

  • AutoAddRo:

    是否自动添加RO,取值:“true” | “false”

  • ReadOnly:

    是否是只读,取值:“true” | “false”

  • TransSplit:

    是否开启事务分离,取值:“true” | “false”

  • ProxyAllocation:

    读写权重分配

  • UniqVpcId:

    私有网络 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • UniqSubnetId:

    私有子网 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • ConnectionPool:

    是否开启连接池。默认关闭。

  • Desc:

    描述

  • Vip:

    IP 地址。不填则默认为所选 VPC 下支持的随机一个 IP。

  • VPort:

    端口。默认值3306。

  • SecurityGroup:

    安全组

  • ConnectionPoolType:

    连接池类型。可选值 transaction(事务级别连接池),connection(会话级别连接池),ConnectionPool 为 true 时生效。默认值:connection。

  • AutoLoadBalance:

    是否开启自适应负载均衡。默认关闭。

  • AccessMode:

    接入模式。nearBy - 就近访问,balance - 均衡分配,默认值:nearBy。



2674
2675
2676
# File 'lib/v20170320/models.rb', line 2674

def UniqVpcId
  @UniqVpcId
end

#VipObject

系统自动分配:“system”, 自定义:“custom” 注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。

Parameters:

  • ProxyGroupId:

    代理组 ID。可通过 [DescribeCdbProxyInfo](cloud.tencent.com/document/api/236/90585) 接口获取。

  • WeightMode:

    权重分配模式,

  • IsKickOut:

    是否开启延迟剔除,取值:“true” | “false”

  • MinCount:

    最小保留数量,最小取值:0

  • MaxDelay:

    延迟剔除阈值,最小取值:1,范围:1 - 10000,整数。

  • FailOver:

    是否开启故障转移,取值:“true” | “false”

  • AutoAddRo:

    是否自动添加RO,取值:“true” | “false”

  • ReadOnly:

    是否是只读,取值:“true” | “false”

  • TransSplit:

    是否开启事务分离,取值:“true” | “false”

  • ProxyAllocation:

    读写权重分配

  • UniqVpcId:

    私有网络 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • UniqSubnetId:

    私有子网 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • ConnectionPool:

    是否开启连接池。默认关闭。

  • Desc:

    描述

  • Vip:

    IP 地址。不填则默认为所选 VPC 下支持的随机一个 IP。

  • VPort:

    端口。默认值3306。

  • SecurityGroup:

    安全组

  • ConnectionPoolType:

    连接池类型。可选值 transaction(事务级别连接池),connection(会话级别连接池),ConnectionPool 为 true 时生效。默认值:connection。

  • AutoLoadBalance:

    是否开启自适应负载均衡。默认关闭。

  • AccessMode:

    接入模式。nearBy - 就近访问,balance - 均衡分配,默认值:nearBy。



2674
2675
2676
# File 'lib/v20170320/models.rb', line 2674

def Vip
  @Vip
end

#VPortObject

系统自动分配:“system”, 自定义:“custom” 注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。

Parameters:

  • ProxyGroupId:

    代理组 ID。可通过 [DescribeCdbProxyInfo](cloud.tencent.com/document/api/236/90585) 接口获取。

  • WeightMode:

    权重分配模式,

  • IsKickOut:

    是否开启延迟剔除,取值:“true” | “false”

  • MinCount:

    最小保留数量,最小取值:0

  • MaxDelay:

    延迟剔除阈值,最小取值:1,范围:1 - 10000,整数。

  • FailOver:

    是否开启故障转移,取值:“true” | “false”

  • AutoAddRo:

    是否自动添加RO,取值:“true” | “false”

  • ReadOnly:

    是否是只读,取值:“true” | “false”

  • TransSplit:

    是否开启事务分离,取值:“true” | “false”

  • ProxyAllocation:

    读写权重分配

  • UniqVpcId:

    私有网络 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • UniqSubnetId:

    私有子网 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • ConnectionPool:

    是否开启连接池。默认关闭。

  • Desc:

    描述

  • Vip:

    IP 地址。不填则默认为所选 VPC 下支持的随机一个 IP。

  • VPort:

    端口。默认值3306。

  • SecurityGroup:

    安全组

  • ConnectionPoolType:

    连接池类型。可选值 transaction(事务级别连接池),connection(会话级别连接池),ConnectionPool 为 true 时生效。默认值:connection。

  • AutoLoadBalance:

    是否开启自适应负载均衡。默认关闭。

  • AccessMode:

    接入模式。nearBy - 就近访问,balance - 均衡分配,默认值:nearBy。



2674
2675
2676
# File 'lib/v20170320/models.rb', line 2674

def VPort
  @VPort
end

#WeightModeObject

系统自动分配:“system”, 自定义:“custom” 注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。

Parameters:

  • ProxyGroupId:

    代理组 ID。可通过 [DescribeCdbProxyInfo](cloud.tencent.com/document/api/236/90585) 接口获取。

  • WeightMode:

    权重分配模式,

  • IsKickOut:

    是否开启延迟剔除,取值:“true” | “false”

  • MinCount:

    最小保留数量,最小取值:0

  • MaxDelay:

    延迟剔除阈值,最小取值:1,范围:1 - 10000,整数。

  • FailOver:

    是否开启故障转移,取值:“true” | “false”

  • AutoAddRo:

    是否自动添加RO,取值:“true” | “false”

  • ReadOnly:

    是否是只读,取值:“true” | “false”

  • TransSplit:

    是否开启事务分离,取值:“true” | “false”

  • ProxyAllocation:

    读写权重分配

  • UniqVpcId:

    私有网络 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • UniqSubnetId:

    私有子网 ID。可通过 [DescribeDBInstances](cloud.tencent.com/document/product/236/15872) 接口获取。

  • ConnectionPool:

    是否开启连接池。默认关闭。

  • Desc:

    描述

  • Vip:

    IP 地址。不填则默认为所选 VPC 下支持的随机一个 IP。

  • VPort:

    端口。默认值3306。

  • SecurityGroup:

    安全组

  • ConnectionPoolType:

    连接池类型。可选值 transaction(事务级别连接池),connection(会话级别连接池),ConnectionPool 为 true 时生效。默认值:connection。

  • AutoLoadBalance:

    是否开启自适应负载均衡。默认关闭。

  • AccessMode:

    接入模式。nearBy - 就近访问,balance - 均衡分配,默认值:nearBy。



2674
2675
2676
# File 'lib/v20170320/models.rb', line 2674

def WeightMode
  @WeightMode
end

Instance Method Details

#deserialize(params) ⇒ Object



2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
# File 'lib/v20170320/models.rb', line 2699

def deserialize(params)
  @ProxyGroupId = params['ProxyGroupId']
  @WeightMode = params['WeightMode']
  @IsKickOut = params['IsKickOut']
  @MinCount = params['MinCount']
  @MaxDelay = params['MaxDelay']
  @FailOver = params['FailOver']
  @AutoAddRo = params['AutoAddRo']
  @ReadOnly = params['ReadOnly']
  @TransSplit = params['TransSplit']
  unless params['ProxyAllocation'].nil?
    @ProxyAllocation = []
    params['ProxyAllocation'].each do |i|
      proxyallocation_tmp = ProxyAllocation.new
      proxyallocation_tmp.deserialize(i)
      @ProxyAllocation << proxyallocation_tmp
    end
  end
  @UniqVpcId = params['UniqVpcId']
  @UniqSubnetId = params['UniqSubnetId']
  @ConnectionPool = params['ConnectionPool']
  @Desc = params['Desc']
  @Vip = params['Vip']
  @VPort = params['VPort']
  @SecurityGroup = params['SecurityGroup']
  @ConnectionPoolType = params['ConnectionPoolType']
  @AutoLoadBalance = params['AutoLoadBalance']
  @AccessMode = params['AccessMode']
end