lib/v20170312/models.rb in tencentcloud-sdk-postgres-1.0.208 vs lib/v20170312/models.rb in tencentcloud-sdk-postgres-1.0.209
- old
+ new
@@ -844,11 +844,11 @@
# @type DBInstanceType: String
# @param DBInstanceVersion: 实例版本,目前只支持standard(双机高可用版, 一主一从)
# @type DBInstanceVersion: String
# @param DBCharset: 实例DB字符集
# @type DBCharset: String
- # @param DBVersion: PostgreSQL内核版本
+ # @param DBVersion: PostgreSQL主版本
# @type DBVersion: String
# @param CreateTime: 实例创建时间
# @type CreateTime: String
# @param UpdateTime: 实例执行最后一次更新的时间
# @type UpdateTime: String
@@ -883,14 +883,20 @@
# 注意:此字段可能返回 null,表示取不到有效值。
# @type StatusInReadonlyGroup: String
# @param OfflineTime: 下线时间
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OfflineTime: String
+ # @param DBKernelVersion: 数据库内核版本
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type DBKernelVersion: String
+ # @param NetworkAccessList: 实例网络信息列表
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type NetworkAccessList: Array
- attr_accessor :Region, :Zone, :ProjectId, :VpcId, :SubnetId, :DBInstanceId, :DBInstanceName, :DBInstanceStatus, :DBInstanceMemory, :DBInstanceStorage, :DBInstanceCpu, :DBInstanceClass, :DBInstanceType, :DBInstanceVersion, :DBCharset, :DBVersion, :CreateTime, :UpdateTime, :ExpireTime, :IsolatedTime, :PayType, :AutoRenew, :DBInstanceNetInfo, :Type, :AppId, :Uid, :SupportIpv6, :TagList, :MasterDBInstanceId, :ReadOnlyInstanceNum, :StatusInReadonlyGroup, :OfflineTime
+ attr_accessor :Region, :Zone, :ProjectId, :VpcId, :SubnetId, :DBInstanceId, :DBInstanceName, :DBInstanceStatus, :DBInstanceMemory, :DBInstanceStorage, :DBInstanceCpu, :DBInstanceClass, :DBInstanceType, :DBInstanceVersion, :DBCharset, :DBVersion, :CreateTime, :UpdateTime, :ExpireTime, :IsolatedTime, :PayType, :AutoRenew, :DBInstanceNetInfo, :Type, :AppId, :Uid, :SupportIpv6, :TagList, :MasterDBInstanceId, :ReadOnlyInstanceNum, :StatusInReadonlyGroup, :OfflineTime, :DBKernelVersion, :NetworkAccessList
- def initialize(region=nil, zone=nil, projectid=nil, vpcid=nil, subnetid=nil, dbinstanceid=nil, dbinstancename=nil, dbinstancestatus=nil, dbinstancememory=nil, dbinstancestorage=nil, dbinstancecpu=nil, dbinstanceclass=nil, dbinstancetype=nil, dbinstanceversion=nil, dbcharset=nil, dbversion=nil, createtime=nil, updatetime=nil, expiretime=nil, isolatedtime=nil, paytype=nil, autorenew=nil, dbinstancenetinfo=nil, type=nil, appid=nil, uid=nil, supportipv6=nil, taglist=nil, masterdbinstanceid=nil, readonlyinstancenum=nil, statusinreadonlygroup=nil, offlinetime=nil)
+ def initialize(region=nil, zone=nil, projectid=nil, vpcid=nil, subnetid=nil, dbinstanceid=nil, dbinstancename=nil, dbinstancestatus=nil, dbinstancememory=nil, dbinstancestorage=nil, dbinstancecpu=nil, dbinstanceclass=nil, dbinstancetype=nil, dbinstanceversion=nil, dbcharset=nil, dbversion=nil, createtime=nil, updatetime=nil, expiretime=nil, isolatedtime=nil, paytype=nil, autorenew=nil, dbinstancenetinfo=nil, type=nil, appid=nil, uid=nil, supportipv6=nil, taglist=nil, masterdbinstanceid=nil, readonlyinstancenum=nil, statusinreadonlygroup=nil, offlinetime=nil, dbkernelversion=nil, networkaccesslist=nil)
@Region = region
@Zone = zone
@ProjectId = projectid
@VpcId = vpcid
@SubnetId = subnetid
@@ -919,10 +925,12 @@
@TagList = taglist
@MasterDBInstanceId = masterdbinstanceid
@ReadOnlyInstanceNum = readonlyinstancenum
@StatusInReadonlyGroup = statusinreadonlygroup
@OfflineTime = offlinetime
+ @DBKernelVersion = dbkernelversion
+ @NetworkAccessList = networkaccesslist
end
def deserialize(params)
@Region = params['Region']
@Zone = params['Zone']
@@ -968,10 +976,19 @@
end
@MasterDBInstanceId = params['MasterDBInstanceId']
@ReadOnlyInstanceNum = params['ReadOnlyInstanceNum']
@StatusInReadonlyGroup = params['StatusInReadonlyGroup']
@OfflineTime = params['OfflineTime']
+ @DBKernelVersion = params['DBKernelVersion']
+ unless params['NetworkAccessList'].nil?
+ @NetworkAccessList = []
+ params['NetworkAccessList'].each do |i|
+ networkaccess_tmp = NetworkAccess.new
+ networkaccess_tmp.deserialize(i)
+ @NetworkAccessList << networkaccess_tmp
+ end
+ end
end
end
# 描述实例的网络连接信息。
class DBInstanceNetInfo < TencentCloud::Common::AbstractModel
@@ -3004,10 +3021,62 @@
def deserialize(params)
@RequestId = params['RequestId']
end
end
+ # 网络类型信息,用于实例查询接口和RO组查询接口的返回。
+ class NetworkAccess < TencentCloud::Common::AbstractModel
+ # @param ResourceId: 网络资源id,实例id或RO组id
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type ResourceId: String
+ # @param ResourceType: 资源类型,1-实例 2-RO组
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type ResourceType: Integer
+ # @param VpcId: 私有网络ID
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type VpcId: String
+ # @param Vip: IP地址
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type Vip: String
+ # @param Vip6: ipv6的IP地址
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type Vip6: String
+ # @param Vport: 连接Port地址
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type Vport: Integer
+ # @param SubnetId: 子网ID
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type SubnetId: String
+ # @param VpcStatus: 网络状态,1-申请中,2-使用中,3-删除中,4-已删除
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type VpcStatus: Integer
+
+ attr_accessor :ResourceId, :ResourceType, :VpcId, :Vip, :Vip6, :Vport, :SubnetId, :VpcStatus
+
+ def initialize(resourceid=nil, resourcetype=nil, vpcid=nil, vip=nil, vip6=nil, vport=nil, subnetid=nil, vpcstatus=nil)
+ @ResourceId = resourceid
+ @ResourceType = resourcetype
+ @VpcId = vpcid
+ @Vip = vip
+ @Vip6 = vip6
+ @Vport = vport
+ @SubnetId = subnetid
+ @VpcStatus = vpcstatus
+ end
+
+ def deserialize(params)
+ @ResourceId = params['ResourceId']
+ @ResourceType = params['ResourceType']
+ @VpcId = params['VpcId']
+ @Vip = params['Vip']
+ @Vip6 = params['Vip6']
+ @Vport = params['Vport']
+ @SubnetId = params['SubnetId']
+ @VpcStatus = params['VpcStatus']
+ end
+ end
+
# 单条SlowQuery信息
class NormalQueryItem < TencentCloud::Common::AbstractModel
# @param UserName: 用户名
# @type UserName: String
# @param Calls: 调用次数
@@ -3386,14 +3455,17 @@
# @type ReadOnlyDBInstanceList: Array
# @param Rebalance: 自动负载均衡开关
# @type Rebalance: Integer
# @param DBInstanceNetInfo: 网络信息
# @type DBInstanceNetInfo: Array
+ # @param NetworkAccessList: 只读组网络信息列表
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type NetworkAccessList: Array
- attr_accessor :ReadOnlyGroupId, :ReadOnlyGroupName, :ProjectId, :MasterDBInstanceId, :MinDelayEliminateReserve, :MaxReplayLatency, :ReplayLatencyEliminate, :MaxReplayLag, :ReplayLagEliminate, :VpcId, :SubnetId, :Region, :Zone, :Status, :ReadOnlyDBInstanceList, :Rebalance, :DBInstanceNetInfo
+ attr_accessor :ReadOnlyGroupId, :ReadOnlyGroupName, :ProjectId, :MasterDBInstanceId, :MinDelayEliminateReserve, :MaxReplayLatency, :ReplayLatencyEliminate, :MaxReplayLag, :ReplayLagEliminate, :VpcId, :SubnetId, :Region, :Zone, :Status, :ReadOnlyDBInstanceList, :Rebalance, :DBInstanceNetInfo, :NetworkAccessList
- def initialize(readonlygroupid=nil, readonlygroupname=nil, projectid=nil, masterdbinstanceid=nil, mindelayeliminatereserve=nil, maxreplaylatency=nil, replaylatencyeliminate=nil, maxreplaylag=nil, replaylageliminate=nil, vpcid=nil, subnetid=nil, region=nil, zone=nil, status=nil, readonlydbinstancelist=nil, rebalance=nil, dbinstancenetinfo=nil)
+ def initialize(readonlygroupid=nil, readonlygroupname=nil, projectid=nil, masterdbinstanceid=nil, mindelayeliminatereserve=nil, maxreplaylatency=nil, replaylatencyeliminate=nil, maxreplaylag=nil, replaylageliminate=nil, vpcid=nil, subnetid=nil, region=nil, zone=nil, status=nil, readonlydbinstancelist=nil, rebalance=nil, dbinstancenetinfo=nil, networkaccesslist=nil)
@ReadOnlyGroupId = readonlygroupid
@ReadOnlyGroupName = readonlygroupname
@ProjectId = projectid
@MasterDBInstanceId = masterdbinstanceid
@MinDelayEliminateReserve = mindelayeliminatereserve
@@ -3407,10 +3479,11 @@
@Zone = zone
@Status = status
@ReadOnlyDBInstanceList = readonlydbinstancelist
@Rebalance = rebalance
@DBInstanceNetInfo = dbinstancenetinfo
+ @NetworkAccessList = networkaccesslist
end
def deserialize(params)
@ReadOnlyGroupId = params['ReadOnlyGroupId']
@ReadOnlyGroupName = params['ReadOnlyGroupName']
@@ -3441,10 +3514,18 @@
dbinstancenetinfo_tmp = DBInstanceNetInfo.new
dbinstancenetinfo_tmp.deserialize(i)
@DBInstanceNetInfo << dbinstancenetinfo_tmp
end
end
+ unless params['NetworkAccessList'].nil?
+ @NetworkAccessList = []
+ params['NetworkAccessList'].each do |i|
+ networkaccess_tmp = NetworkAccess.new
+ networkaccess_tmp.deserialize(i)
+ @NetworkAccessList << networkaccess_tmp
+ end
+ end
end
end
# RebalanceReadOnlyGroup请求参数结构体
class RebalanceReadOnlyGroupRequest < TencentCloud::Common::AbstractModel
@@ -3747,14 +3828,17 @@
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DBDatabaseList: Array
# @param TagList: 实例绑定的标签数组
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TagList: Array
+ # @param DBKernelVersion: 数据库内核版本
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type DBKernelVersion: String
- attr_accessor :DBInstanceId, :DBInstanceName, :DBInstanceStatus, :Region, :Zone, :ProjectId, :VpcId, :SubnetId, :DBCharset, :DBVersion, :CreateTime, :DBInstanceNetInfo, :DBAccountSet, :DBDatabaseList, :TagList
+ attr_accessor :DBInstanceId, :DBInstanceName, :DBInstanceStatus, :Region, :Zone, :ProjectId, :VpcId, :SubnetId, :DBCharset, :DBVersion, :CreateTime, :DBInstanceNetInfo, :DBAccountSet, :DBDatabaseList, :TagList, :DBKernelVersion
- def initialize(dbinstanceid=nil, dbinstancename=nil, dbinstancestatus=nil, region=nil, zone=nil, projectid=nil, vpcid=nil, subnetid=nil, dbcharset=nil, dbversion=nil, createtime=nil, dbinstancenetinfo=nil, dbaccountset=nil, dbdatabaselist=nil, taglist=nil)
+ def initialize(dbinstanceid=nil, dbinstancename=nil, dbinstancestatus=nil, region=nil, zone=nil, projectid=nil, vpcid=nil, subnetid=nil, dbcharset=nil, dbversion=nil, createtime=nil, dbinstancenetinfo=nil, dbaccountset=nil, dbdatabaselist=nil, taglist=nil, dbkernelversion=nil)
@DBInstanceId = dbinstanceid
@DBInstanceName = dbinstancename
@DBInstanceStatus = dbinstancestatus
@Region = region
@Zone = zone
@@ -3766,10 +3850,11 @@
@CreateTime = createtime
@DBInstanceNetInfo = dbinstancenetinfo
@DBAccountSet = dbaccountset
@DBDatabaseList = dbdatabaselist
@TagList = taglist
+ @DBKernelVersion = dbkernelversion
end
def deserialize(params)
@DBInstanceId = params['DBInstanceId']
@DBInstanceName = params['DBInstanceName']
@@ -3805,9 +3890,10 @@
tag_tmp = Tag.new
tag_tmp.deserialize(i)
@TagList << tag_tmp
end
end
+ @DBKernelVersion = params['DBKernelVersion']
end
end
# serverless实例网络信息描述
class ServerlessDBInstanceNetInfo < TencentCloud::Common::AbstractModel