lib/v20170312/models.rb in tencentcloud-sdk-postgres-1.0.229 vs lib/v20170312/models.rb in tencentcloud-sdk-postgres-1.0.230
- old
+ new
@@ -235,22 +235,22 @@
# CreateDBInstances请求参数结构体
class CreateDBInstancesRequest < TencentCloud::Common::AbstractModel
# @param SpecCode: 售卖规格ID。该参数可以通过调用DescribeProductConfig的返回值中的SpecCode字段来获取。
# @type SpecCode: String
- # @param DBVersion: PostgreSQL内核版本,目前支持以下版本:9.3.5、9.5.4、10.4、11.8、12.4 。
- # @type DBVersion: String
# @param Storage: 实例容量大小,单位:GB。
# @type Storage: Integer
# @param InstanceCount: 一次性购买的实例数量。取值1-100
# @type InstanceCount: Integer
# @param Period: 购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值,按量计费模式下该参数传1。
# @type Period: Integer
# @param Zone: 可用区ID。该参数可以通过调用 DescribeZones 接口的返回值中的Zone字段来获取。
# @type Zone: String
# @param ProjectId: 项目ID。
# @type ProjectId: Integer
+ # @param DBVersion: PostgreSQL版本。当输入该参数时,会基于此版本创建对应的最新内核版本号实例。
+ # @type DBVersion: String
# @param InstanceChargeType: 实例计费类型。目前支持:PREPAID(预付费,即包年包月),POSTPAID_BY_HOUR(后付费,即按量计费)。
# @type InstanceChargeType: String
# @param AutoVoucher: 是否自动使用代金券。1(是),0(否),默认不使用。
# @type AutoVoucher: Integer
# @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。
@@ -269,21 +269,25 @@
# @type NeedSupportIpv6: Integer
# @param TagList: 实例需要绑定的Tag信息,默认为空
# @type TagList: Array
# @param SecurityGroupIds: 安全组id
# @type SecurityGroupIds: Array
+ # @param DBMajorVersion: PostgreSQL主要版本。目前支持10,11,12,13这几个版本。当输入该参数时,会基于此版本创建对应的最新内核版本号实例。
+ # @type DBMajorVersion: String
+ # @param DBKernelVersion: PostgreSQL内核版本。当输入该参数时,会创建该内核版本号实例。
+ # @type DBKernelVersion: String
- attr_accessor :SpecCode, :DBVersion, :Storage, :InstanceCount, :Period, :Zone, :ProjectId, :InstanceChargeType, :AutoVoucher, :VoucherIds, :VpcId, :SubnetId, :AutoRenewFlag, :ActivityId, :Name, :NeedSupportIpv6, :TagList, :SecurityGroupIds
+ attr_accessor :SpecCode, :Storage, :InstanceCount, :Period, :Zone, :ProjectId, :DBVersion, :InstanceChargeType, :AutoVoucher, :VoucherIds, :VpcId, :SubnetId, :AutoRenewFlag, :ActivityId, :Name, :NeedSupportIpv6, :TagList, :SecurityGroupIds, :DBMajorVersion, :DBKernelVersion
- def initialize(speccode=nil, dbversion=nil, storage=nil, instancecount=nil, period=nil, zone=nil, projectid=nil, instancechargetype=nil, autovoucher=nil, voucherids=nil, vpcid=nil, subnetid=nil, autorenewflag=nil, activityid=nil, name=nil, needsupportipv6=nil, taglist=nil, securitygroupids=nil)
+ def initialize(speccode=nil, storage=nil, instancecount=nil, period=nil, zone=nil, projectid=nil, dbversion=nil, instancechargetype=nil, autovoucher=nil, voucherids=nil, vpcid=nil, subnetid=nil, autorenewflag=nil, activityid=nil, name=nil, needsupportipv6=nil, taglist=nil, securitygroupids=nil, dbmajorversion=nil, dbkernelversion=nil)
@SpecCode = speccode
- @DBVersion = dbversion
@Storage = storage
@InstanceCount = instancecount
@Period = period
@Zone = zone
@ProjectId = projectid
+ @DBVersion = dbversion
@InstanceChargeType = instancechargetype
@AutoVoucher = autovoucher
@VoucherIds = voucherids
@VpcId = vpcid
@SubnetId = subnetid
@@ -291,20 +295,22 @@
@ActivityId = activityid
@Name = name
@NeedSupportIpv6 = needsupportipv6
@TagList = taglist
@SecurityGroupIds = securitygroupids
+ @DBMajorVersion = dbmajorversion
+ @DBKernelVersion = dbkernelversion
end
def deserialize(params)
@SpecCode = params['SpecCode']
- @DBVersion = params['DBVersion']
@Storage = params['Storage']
@InstanceCount = params['InstanceCount']
@Period = params['Period']
@Zone = params['Zone']
@ProjectId = params['ProjectId']
+ @DBVersion = params['DBVersion']
@InstanceChargeType = params['InstanceChargeType']
@AutoVoucher = params['AutoVoucher']
@VoucherIds = params['VoucherIds']
@VpcId = params['VpcId']
@SubnetId = params['SubnetId']
@@ -319,10 +325,12 @@
tag_tmp.deserialize(i)
@TagList << tag_tmp
end
end
@SecurityGroupIds = params['SecurityGroupIds']
+ @DBMajorVersion = params['DBMajorVersion']
+ @DBKernelVersion = params['DBKernelVersion']
end
end
# CreateDBInstances返回参数结构体
class CreateDBInstancesResponse < TencentCloud::Common::AbstractModel
@@ -354,12 +362,10 @@
# CreateInstances请求参数结构体
class CreateInstancesRequest < TencentCloud::Common::AbstractModel
# @param SpecCode: 售卖规格ID。该参数可以通过调用DescribeProductConfig的返回值中的SpecCode字段来获取。
# @type SpecCode: String
- # @param DBVersion: PostgreSQL主版本,目前支持:9.3、9.5、10、11、12、13以及9.3.5、9.5.4、10.4、11.8、12.4版本。
- # @type DBVersion: String
# @param Storage: 实例容量大小,单位:GB。
# @type Storage: Integer
# @param InstanceCount: 一次性购买的实例数量。取值1-10。
# @type InstanceCount: Integer
# @param Period: 购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值,按量计费模式下该参数传1。
@@ -372,10 +378,12 @@
# @type AdminName: String
# @param AdminPassword: 实例根账号用户名对应的密码。
# @type AdminPassword: String
# @param ProjectId: 项目ID。
# @type ProjectId: Integer
+ # @param DBVersion: PostgreSQL版本。当输入该参数时,会基于此版本创建对应的最新内核版本号实例
+ # @type DBVersion: String
# @param InstanceChargeType: 实例计费类型。目前支持:PREPAID(预付费,即包年包月),POSTPAID_BY_HOUR(后付费,即按量计费)。
# @type InstanceChargeType: String
# @param AutoVoucher: 是否自动使用代金券。1(是),0(否),默认不使用。
# @type AutoVoucher: Integer
# @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。
@@ -394,24 +402,28 @@
# @type NeedSupportIpv6: Integer
# @param TagList: 实例需要绑定的Tag信息,默认为空。
# @type TagList: Array
# @param SecurityGroupIds: 安全组ID。
# @type SecurityGroupIds: Array
+ # @param DBMajorVersion: PostgreSQL主要版本。目前支持10,11,12,13这几个版本。当输入该参数时,会基于此版本创建对应的最新内核版本号实例
+ # @type DBMajorVersion: String
+ # @param DBKernelVersion: PostgreSQL内核版本。当输入该参数时,会创建该内核版本号实例
+ # @type DBKernelVersion: String
- attr_accessor :SpecCode, :DBVersion, :Storage, :InstanceCount, :Period, :Zone, :Charset, :AdminName, :AdminPassword, :ProjectId, :InstanceChargeType, :AutoVoucher, :VoucherIds, :VpcId, :SubnetId, :AutoRenewFlag, :ActivityId, :Name, :NeedSupportIpv6, :TagList, :SecurityGroupIds
+ attr_accessor :SpecCode, :Storage, :InstanceCount, :Period, :Zone, :Charset, :AdminName, :AdminPassword, :ProjectId, :DBVersion, :InstanceChargeType, :AutoVoucher, :VoucherIds, :VpcId, :SubnetId, :AutoRenewFlag, :ActivityId, :Name, :NeedSupportIpv6, :TagList, :SecurityGroupIds, :DBMajorVersion, :DBKernelVersion
- def initialize(speccode=nil, dbversion=nil, storage=nil, instancecount=nil, period=nil, zone=nil, charset=nil, adminname=nil, adminpassword=nil, projectid=nil, instancechargetype=nil, autovoucher=nil, voucherids=nil, vpcid=nil, subnetid=nil, autorenewflag=nil, activityid=nil, name=nil, needsupportipv6=nil, taglist=nil, securitygroupids=nil)
+ def initialize(speccode=nil, storage=nil, instancecount=nil, period=nil, zone=nil, charset=nil, adminname=nil, adminpassword=nil, projectid=nil, dbversion=nil, instancechargetype=nil, autovoucher=nil, voucherids=nil, vpcid=nil, subnetid=nil, autorenewflag=nil, activityid=nil, name=nil, needsupportipv6=nil, taglist=nil, securitygroupids=nil, dbmajorversion=nil, dbkernelversion=nil)
@SpecCode = speccode
- @DBVersion = dbversion
@Storage = storage
@InstanceCount = instancecount
@Period = period
@Zone = zone
@Charset = charset
@AdminName = adminname
@AdminPassword = adminpassword
@ProjectId = projectid
+ @DBVersion = dbversion
@InstanceChargeType = instancechargetype
@AutoVoucher = autovoucher
@VoucherIds = voucherids
@VpcId = vpcid
@SubnetId = subnetid
@@ -419,23 +431,25 @@
@ActivityId = activityid
@Name = name
@NeedSupportIpv6 = needsupportipv6
@TagList = taglist
@SecurityGroupIds = securitygroupids
+ @DBMajorVersion = dbmajorversion
+ @DBKernelVersion = dbkernelversion
end
def deserialize(params)
@SpecCode = params['SpecCode']
- @DBVersion = params['DBVersion']
@Storage = params['Storage']
@InstanceCount = params['InstanceCount']
@Period = params['Period']
@Zone = params['Zone']
@Charset = params['Charset']
@AdminName = params['AdminName']
@AdminPassword = params['AdminPassword']
@ProjectId = params['ProjectId']
+ @DBVersion = params['DBVersion']
@InstanceChargeType = params['InstanceChargeType']
@AutoVoucher = params['AutoVoucher']
@VoucherIds = params['VoucherIds']
@VpcId = params['VpcId']
@SubnetId = params['SubnetId']
@@ -450,10 +464,12 @@
tag_tmp.deserialize(i)
@TagList << tag_tmp
end
end
@SecurityGroupIds = params['SecurityGroupIds']
+ @DBMajorVersion = params['DBMajorVersion']
+ @DBKernelVersion = params['DBKernelVersion']
end
end
# CreateInstances返回参数结构体
class CreateInstancesResponse < TencentCloud::Common::AbstractModel
@@ -844,11 +860,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
@@ -889,14 +905,17 @@
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DBKernelVersion: String
# @param NetworkAccessList: 实例网络信息列表(此字段已废弃)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type NetworkAccessList: Array
+ # @param DBMajorVersion: PostgreSQL主要版本
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type DBMajorVersion: String
- 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
+ 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, :DBMajorVersion
- 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)
+ 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, dbmajorversion=nil)
@Region = region
@Zone = zone
@ProjectId = projectid
@VpcId = vpcid
@SubnetId = subnetid
@@ -927,10 +946,11 @@
@ReadOnlyInstanceNum = readonlyinstancenum
@StatusInReadonlyGroup = statusinreadonlygroup
@OfflineTime = offlinetime
@DBKernelVersion = dbkernelversion
@NetworkAccessList = networkaccesslist
+ @DBMajorVersion = dbmajorversion
end
def deserialize(params)
@Region = params['Region']
@Zone = params['Zone']
@@ -985,10 +1005,11 @@
networkaccess_tmp = NetworkAccess.new
networkaccess_tmp.deserialize(i)
@NetworkAccessList << networkaccess_tmp
end
end
+ @DBMajorVersion = params['DBMajorVersion']
end
end
# 描述实例的网络连接信息。
class DBInstanceNetInfo < TencentCloud::Common::AbstractModel
@@ -3841,14 +3862,17 @@
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TagList: Array
# @param DBKernelVersion: 数据库内核版本
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DBKernelVersion: String
+ # @param DBMajorVersion: 数据库主要版本
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type DBMajorVersion: String
- attr_accessor :DBInstanceId, :DBInstanceName, :DBInstanceStatus, :Region, :Zone, :ProjectId, :VpcId, :SubnetId, :DBCharset, :DBVersion, :CreateTime, :DBInstanceNetInfo, :DBAccountSet, :DBDatabaseList, :TagList, :DBKernelVersion
+ attr_accessor :DBInstanceId, :DBInstanceName, :DBInstanceStatus, :Region, :Zone, :ProjectId, :VpcId, :SubnetId, :DBCharset, :DBVersion, :CreateTime, :DBInstanceNetInfo, :DBAccountSet, :DBDatabaseList, :TagList, :DBKernelVersion, :DBMajorVersion
- 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)
+ 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, dbmajorversion=nil)
@DBInstanceId = dbinstanceid
@DBInstanceName = dbinstancename
@DBInstanceStatus = dbinstancestatus
@Region = region
@Zone = zone
@@ -3861,10 +3885,11 @@
@DBInstanceNetInfo = dbinstancenetinfo
@DBAccountSet = dbaccountset
@DBDatabaseList = dbdatabaselist
@TagList = taglist
@DBKernelVersion = dbkernelversion
+ @DBMajorVersion = dbmajorversion
end
def deserialize(params)
@DBInstanceId = params['DBInstanceId']
@DBInstanceName = params['DBInstanceName']
@@ -3901,10 +3926,11 @@
tag_tmp.deserialize(i)
@TagList << tag_tmp
end
end
@DBKernelVersion = params['DBKernelVersion']
+ @DBMajorVersion = params['DBMajorVersion']
end
end
# serverless实例网络信息描述
class ServerlessDBInstanceNetInfo < TencentCloud::Common::AbstractModel
@@ -4047,11 +4073,11 @@
# 描述一种规格的信息
class SpecItemInfo < TencentCloud::Common::AbstractModel
# @param SpecCode: 规格ID
# @type SpecCode: String
- # @param Version: PostgreSQL的内核版本编号
+ # @param Version: PostgreSQL的版本编号
# @type Version: String
# @param VersionName: 内核编号对应的完整版本名称
# @type VersionName: String
# @param Cpu: CPU核数
# @type Cpu: Integer
@@ -4065,24 +4091,32 @@
# @type Qps: Integer
# @param Pid: 该规格对应的计费ID
# @type Pid: Integer
# @param Type: 机器类型
# @type Type: String
+ # @param MajorVersion: PostgreSQL的主要版本编号
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type MajorVersion: String
+ # @param KernelVersion: PostgreSQL的内核版本编号
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type KernelVersion: String
- attr_accessor :SpecCode, :Version, :VersionName, :Cpu, :Memory, :MaxStorage, :MinStorage, :Qps, :Pid, :Type
+ attr_accessor :SpecCode, :Version, :VersionName, :Cpu, :Memory, :MaxStorage, :MinStorage, :Qps, :Pid, :Type, :MajorVersion, :KernelVersion
- def initialize(speccode=nil, version=nil, versionname=nil, cpu=nil, memory=nil, maxstorage=nil, minstorage=nil, qps=nil, pid=nil, type=nil)
+ def initialize(speccode=nil, version=nil, versionname=nil, cpu=nil, memory=nil, maxstorage=nil, minstorage=nil, qps=nil, pid=nil, type=nil, majorversion=nil, kernelversion=nil)
@SpecCode = speccode
@Version = version
@VersionName = versionname
@Cpu = cpu
@Memory = memory
@MaxStorage = maxstorage
@MinStorage = minstorage
@Qps = qps
@Pid = pid
@Type = type
+ @MajorVersion = majorversion
+ @KernelVersion = kernelversion
end
def deserialize(params)
@SpecCode = params['SpecCode']
@Version = params['Version']
@@ -4092,9 +4126,11 @@
@MaxStorage = params['MaxStorage']
@MinStorage = params['MinStorage']
@Qps = params['Qps']
@Pid = params['Pid']
@Type = params['Type']
+ @MajorVersion = params['MajorVersion']
+ @KernelVersion = params['KernelVersion']
end
end
# 实例绑定的标签信息,包含标签键TagKey和标签值TagValue
class Tag < TencentCloud::Common::AbstractModel