# frozen_string_literal: true # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. module TencentCloud module Postgres module V20170312 # 账户信息 class AccountInfo < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID,形如postgres-lnp6j617 # @type DBInstanceId: String # @param UserName: 帐号 # @type UserName: String # @param Remark: 帐号备注 # @type Remark: String # @param Status: 帐号状态。 1-创建中,2-正常,3-修改中,4-密码重置中,-1-删除中 # @type Status: Integer # @param CreateTime: 帐号创建时间 # @type CreateTime: String # @param UpdateTime: 帐号最后一次更新时间 # @type UpdateTime: String attr_accessor :DBInstanceId, :UserName, :Remark, :Status, :CreateTime, :UpdateTime def initialize(dbinstanceid=nil, username=nil, remark=nil, status=nil, createtime=nil, updatetime=nil) @DBInstanceId = dbinstanceid @UserName = username @Remark = remark @Status = status @CreateTime = createtime @UpdateTime = updatetime end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @UserName = params['UserName'] @Remark = params['Remark'] @Status = params['Status'] @CreateTime = params['CreateTime'] @UpdateTime = params['UpdateTime'] end end # AddDBInstanceToReadOnlyGroup请求参数结构体 class AddDBInstanceToReadOnlyGroupRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID # @type DBInstanceId: String # @param ReadOnlyGroupId: 只读组ID # @type ReadOnlyGroupId: String attr_accessor :DBInstanceId, :ReadOnlyGroupId def initialize(dbinstanceid=nil, readonlygroupid=nil) @DBInstanceId = dbinstanceid @ReadOnlyGroupId = readonlygroupid end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @ReadOnlyGroupId = params['ReadOnlyGroupId'] end end # AddDBInstanceToReadOnlyGroup返回参数结构体 class AddDBInstanceToReadOnlyGroupResponse < TencentCloud::Common::AbstractModel # @param FlowId: 流程ID # @type FlowId: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FlowId, :RequestId def initialize(flowid=nil, requestid=nil) @FlowId = flowid @RequestId = requestid end def deserialize(params) @FlowId = params['FlowId'] @RequestId = params['RequestId'] end end # 慢查询分析接口返回的分析详情,按照参数抽象之后进行分类 class AnalysisItems < TencentCloud::Common::AbstractModel # @param DatabaseName: 慢SQL查询的数据库名 # @type DatabaseName: String # @param UserName: 慢SQL执行的用户名 # @type UserName: String # @param NormalQuery: 抽象参数之后的慢SQL # @type NormalQuery: String # @param ClientAddr: 慢SQL执行的客户端地址 # @type ClientAddr: String # @param CallNum: 在选定时间范围内慢SQL语句执行的次数 # @type CallNum: Integer # @param CallPercent: 在选定时间范围内,慢SQL语句执行的次数占所有慢SQL的比例(小数返回) # @type CallPercent: Float # @param CostTime: 在选定时间范围内,慢SQL执行的总时间 # @type CostTime: Float # @param CostPercent: 在选定时间范围内,慢SQL语句执行的总时间占所有慢SQL的比例(小数返回) # @type CostPercent: Float # @param MinCostTime: 在选定时间范围内,慢SQL语句执行的耗时最短的时间(单位:ms) # @type MinCostTime: Float # @param MaxCostTime: 在选定时间范围内,慢SQL语句执行的耗时最长的时间(单位:ms) # @type MaxCostTime: Float # @param AvgCostTime: 在选定时间范围内,慢SQL语句执行的耗时平均时间(单位:ms) # @type AvgCostTime: Float # @param FirstTime: 在选定时间范围内,慢SQL第一条开始执行的时间戳 # @type FirstTime: String # @param LastTime: 在选定时间范围内,慢SQL最后一条开始执行的时间戳 # @type LastTime: String attr_accessor :DatabaseName, :UserName, :NormalQuery, :ClientAddr, :CallNum, :CallPercent, :CostTime, :CostPercent, :MinCostTime, :MaxCostTime, :AvgCostTime, :FirstTime, :LastTime def initialize(databasename=nil, username=nil, normalquery=nil, clientaddr=nil, callnum=nil, callpercent=nil, costtime=nil, costpercent=nil, mincosttime=nil, maxcosttime=nil, avgcosttime=nil, firsttime=nil, lasttime=nil) @DatabaseName = databasename @UserName = username @NormalQuery = normalquery @ClientAddr = clientaddr @CallNum = callnum @CallPercent = callpercent @CostTime = costtime @CostPercent = costpercent @MinCostTime = mincosttime @MaxCostTime = maxcosttime @AvgCostTime = avgcosttime @FirstTime = firsttime @LastTime = lasttime end def deserialize(params) @DatabaseName = params['DatabaseName'] @UserName = params['UserName'] @NormalQuery = params['NormalQuery'] @ClientAddr = params['ClientAddr'] @CallNum = params['CallNum'] @CallPercent = params['CallPercent'] @CostTime = params['CostTime'] @CostPercent = params['CostPercent'] @MinCostTime = params['MinCostTime'] @MaxCostTime = params['MaxCostTime'] @AvgCostTime = params['AvgCostTime'] @FirstTime = params['FirstTime'] @LastTime = params['LastTime'] end end # 备份下载限制信息 class BackupDownloadRestriction < TencentCloud::Common::AbstractModel # @param RestrictionType: 备份文件下载限制类型,NONE 无限制,内外网都可以下载;INTRANET 只允许内网下载;CUSTOMIZE 自定义限制下载的vpc或ip。 # @type RestrictionType: String # @param VpcRestrictionEffect: vpc限制效力,ALLOW 允许;DENY 拒绝。 # @type VpcRestrictionEffect: String # @param VpcIdSet: 允许或拒绝下载备份文件的vpcId列表。 # @type VpcIdSet: Array # @param IpRestrictionEffect: ip限制效力,ALLOW 允许;DENY 拒绝。 # @type IpRestrictionEffect: String # @param IpSet: 允许或拒绝下载备份文件的ip列表。 # @type IpSet: Array attr_accessor :RestrictionType, :VpcRestrictionEffect, :VpcIdSet, :IpRestrictionEffect, :IpSet def initialize(restrictiontype=nil, vpcrestrictioneffect=nil, vpcidset=nil, iprestrictioneffect=nil, ipset=nil) @RestrictionType = restrictiontype @VpcRestrictionEffect = vpcrestrictioneffect @VpcIdSet = vpcidset @IpRestrictionEffect = iprestrictioneffect @IpSet = ipset end def deserialize(params) @RestrictionType = params['RestrictionType'] @VpcRestrictionEffect = params['VpcRestrictionEffect'] @VpcIdSet = params['VpcIdSet'] @IpRestrictionEffect = params['IpRestrictionEffect'] @IpSet = params['IpSet'] end end # 备份计划 class BackupPlan < TencentCloud::Common::AbstractModel # @param BackupPeriod: 备份周期 # @type BackupPeriod: String # @param BaseBackupRetentionPeriod: 数据备份保留时长 # @type BaseBackupRetentionPeriod: Integer # @param MinBackupStartTime: 开始备份的最早时间 # @type MinBackupStartTime: String # @param MaxBackupStartTime: 开始备份的最晚时间 # @type MaxBackupStartTime: String attr_accessor :BackupPeriod, :BaseBackupRetentionPeriod, :MinBackupStartTime, :MaxBackupStartTime def initialize(backupperiod=nil, basebackupretentionperiod=nil, minbackupstarttime=nil, maxbackupstarttime=nil) @BackupPeriod = backupperiod @BaseBackupRetentionPeriod = basebackupretentionperiod @MinBackupStartTime = minbackupstarttime @MaxBackupStartTime = maxbackupstarttime end def deserialize(params) @BackupPeriod = params['BackupPeriod'] @BaseBackupRetentionPeriod = params['BaseBackupRetentionPeriod'] @MinBackupStartTime = params['MinBackupStartTime'] @MaxBackupStartTime = params['MaxBackupStartTime'] end end # 实例备份统计项 class BackupSummary < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID。 # @type DBInstanceId: String # @param LogBackupCount: 实例日志备份数量。 # @type LogBackupCount: Integer # @param LogBackupSize: 实例日志备份大小。 # @type LogBackupSize: Integer # @param ManualBaseBackupCount: 手动创建的实例数据备份数量。 # @type ManualBaseBackupCount: Integer # @param ManualBaseBackupSize: 手动创建的实例数据备份大小。 # @type ManualBaseBackupSize: Integer # @param AutoBaseBackupCount: 自动创建的实例数据备份数量。 # @type AutoBaseBackupCount: Integer # @param AutoBaseBackupSize: 自动创建的实例数据备份大小。 # @type AutoBaseBackupSize: Integer # @param TotalBackupCount: 总备份数量 # @type TotalBackupCount: Integer # @param TotalBackupSize: 总备份大小 # @type TotalBackupSize: Integer attr_accessor :DBInstanceId, :LogBackupCount, :LogBackupSize, :ManualBaseBackupCount, :ManualBaseBackupSize, :AutoBaseBackupCount, :AutoBaseBackupSize, :TotalBackupCount, :TotalBackupSize def initialize(dbinstanceid=nil, logbackupcount=nil, logbackupsize=nil, manualbasebackupcount=nil, manualbasebackupsize=nil, autobasebackupcount=nil, autobasebackupsize=nil, totalbackupcount=nil, totalbackupsize=nil) @DBInstanceId = dbinstanceid @LogBackupCount = logbackupcount @LogBackupSize = logbackupsize @ManualBaseBackupCount = manualbasebackupcount @ManualBaseBackupSize = manualbasebackupsize @AutoBaseBackupCount = autobasebackupcount @AutoBaseBackupSize = autobasebackupsize @TotalBackupCount = totalbackupcount @TotalBackupSize = totalbackupsize end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @LogBackupCount = params['LogBackupCount'] @LogBackupSize = params['LogBackupSize'] @ManualBaseBackupCount = params['ManualBaseBackupCount'] @ManualBaseBackupSize = params['ManualBaseBackupSize'] @AutoBaseBackupCount = params['AutoBaseBackupCount'] @AutoBaseBackupSize = params['AutoBaseBackupSize'] @TotalBackupCount = params['TotalBackupCount'] @TotalBackupSize = params['TotalBackupSize'] end end # 数据库数据备份信息 class BaseBackup < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID。 # @type DBInstanceId: String # @param Id: 备份文件唯一标识。 # @type Id: String # @param Name: 备份文件名称。 # @type Name: String # @param BackupMethod: 备份方式:物理备份、逻辑备份。 # @type BackupMethod: String # @param BackupMode: 备份模式:自动备份、手动备份。 # @type BackupMode: String # @param State: 备份任务状态。 # @type State: String # @param Size: 备份集大小,单位bytes。 # @type Size: Integer # @param StartTime: 备份的开始时间。 # @type StartTime: String # @param FinishTime: 备份的结束时间。 # @type FinishTime: String # @param ExpireTime: 备份的过期时间。 # @type ExpireTime: String attr_accessor :DBInstanceId, :Id, :Name, :BackupMethod, :BackupMode, :State, :Size, :StartTime, :FinishTime, :ExpireTime def initialize(dbinstanceid=nil, id=nil, name=nil, backupmethod=nil, backupmode=nil, state=nil, size=nil, starttime=nil, finishtime=nil, expiretime=nil) @DBInstanceId = dbinstanceid @Id = id @Name = name @BackupMethod = backupmethod @BackupMode = backupmode @State = state @Size = size @StartTime = starttime @FinishTime = finishtime @ExpireTime = expiretime end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @Id = params['Id'] @Name = params['Name'] @BackupMethod = params['BackupMethod'] @BackupMode = params['BackupMode'] @State = params['State'] @Size = params['Size'] @StartTime = params['StartTime'] @FinishTime = params['FinishTime'] @ExpireTime = params['ExpireTime'] end end # 数据库实例规格 class ClassInfo < TencentCloud::Common::AbstractModel # @param SpecCode: 规格ID # @type SpecCode: String # @param CPU: CPU核数 # @type CPU: Integer # @param Memory: 内存大小,单位:MB # @type Memory: Integer # @param MaxStorage: 该规格所支持最大存储容量,单位:GB # @type MaxStorage: Integer # @param MinStorage: 该规格所支持最小存储容量,单位:GB # @type MinStorage: Integer # @param QPS: 该规格的预估QPS # @type QPS: Integer attr_accessor :SpecCode, :CPU, :Memory, :MaxStorage, :MinStorage, :QPS def initialize(speccode=nil, cpu=nil, memory=nil, maxstorage=nil, minstorage=nil, qps=nil) @SpecCode = speccode @CPU = cpu @Memory = memory @MaxStorage = maxstorage @MinStorage = minstorage @QPS = qps end def deserialize(params) @SpecCode = params['SpecCode'] @CPU = params['CPU'] @Memory = params['Memory'] @MaxStorage = params['MaxStorage'] @MinStorage = params['MinStorage'] @QPS = params['QPS'] end end # CloneDBInstance请求参数结构体 class CloneDBInstanceRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 克隆的源实例ID。 # @type DBInstanceId: String # @param SpecCode: 售卖规格码。该参数可以通过调用[DescribeClasses](https://cloud.tencent.com/document/api/409/89019)的返回值中的SpecCode字段来获取。 # @type SpecCode: String # @param Storage: 实例容量大小,单位:GB。 # @type Storage: Integer # @param Period: 购买时长,单位:月。 #
  • 预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36 #
  • 后付费:只支持1 # @type Period: Integer # @param AutoRenewFlag: 续费标记: #
  • 0:手动续费 #
  • 1:自动续费 # 默认值:0 # @type AutoRenewFlag: Integer # @param VpcId: 私有网络ID,形如vpc-xxxxxxxx。有效的VpcId可通过登录控制台查询;也可以调用接口 [DescribeVpcEx](https://cloud.tencent.com/document/api/215/1372) ,从接口返回中的unVpcId字段获取。 # @type VpcId: String # @param SubnetId: 私有网络子网ID,形如subnet-xxxxxxxx。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 [DescribeSubnets ](https://cloud.tencent.com/document/api/215/15784),从接口返回中的unSubnetId字段获取。 # @type SubnetId: String # @param Name: 新购的实例名称,仅支持长度小于60的中文/英文/数字/"_"/"-",不指定实例名称则默认显示"未命名"。 # @type Name: String # @param InstanceChargeType: 实例计费类型,目前支持: #
  • PREPAID:预付费,即包年包月 #
  • POSTPAID_BY_HOUR:后付费,即按量计费 # 默认值:PREPAID # @type InstanceChargeType: String # @param SecurityGroupIds: 实例所属安全组,该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。 # @type SecurityGroupIds: Array # @param ProjectId: 项目ID。 # @type ProjectId: Integer # @param TagList: 实例需要绑定的Tag信息,默认为空;可以通过调用 [DescribeTags](https://cloud.tencent.com/document/api/651/35316) 返回值中的 Tags 字段来获取。 # @type TagList: Array # @param DBNodeSet: 实例节点部署信息,支持多可用区部署时需要指定每个节点的部署可用区信息。 # 可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。 # @type DBNodeSet: Array # @param AutoVoucher: 是否自动使用代金券: #
  • 0:否 #
  • 1:是 # 默认值:0 # @type AutoVoucher: Integer # @param VoucherIds: 代金券ID列表。 # @type VoucherIds: String # @param ActivityId: 活动ID。 # @type ActivityId: Integer # @param BackupSetId: 基础备份集ID。 # @type BackupSetId: String # @param RecoveryTargetTime: 恢复时间点。 # @type RecoveryTargetTime: String # @param SyncMode: 主从同步方式,支持: #
  • Semi-sync:半同步 #
  • Async:异步 # 主实例默认值:Semi-sync # 只读实例默认值:Async # @type SyncMode: String attr_accessor :DBInstanceId, :SpecCode, :Storage, :Period, :AutoRenewFlag, :VpcId, :SubnetId, :Name, :InstanceChargeType, :SecurityGroupIds, :ProjectId, :TagList, :DBNodeSet, :AutoVoucher, :VoucherIds, :ActivityId, :BackupSetId, :RecoveryTargetTime, :SyncMode def initialize(dbinstanceid=nil, speccode=nil, storage=nil, period=nil, autorenewflag=nil, vpcid=nil, subnetid=nil, name=nil, instancechargetype=nil, securitygroupids=nil, projectid=nil, taglist=nil, dbnodeset=nil, autovoucher=nil, voucherids=nil, activityid=nil, backupsetid=nil, recoverytargettime=nil, syncmode=nil) @DBInstanceId = dbinstanceid @SpecCode = speccode @Storage = storage @Period = period @AutoRenewFlag = autorenewflag @VpcId = vpcid @SubnetId = subnetid @Name = name @InstanceChargeType = instancechargetype @SecurityGroupIds = securitygroupids @ProjectId = projectid @TagList = taglist @DBNodeSet = dbnodeset @AutoVoucher = autovoucher @VoucherIds = voucherids @ActivityId = activityid @BackupSetId = backupsetid @RecoveryTargetTime = recoverytargettime @SyncMode = syncmode end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @SpecCode = params['SpecCode'] @Storage = params['Storage'] @Period = params['Period'] @AutoRenewFlag = params['AutoRenewFlag'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @Name = params['Name'] @InstanceChargeType = params['InstanceChargeType'] @SecurityGroupIds = params['SecurityGroupIds'] @ProjectId = params['ProjectId'] unless params['TagList'].nil? @TagList = [] params['TagList'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @TagList << tag_tmp end end unless params['DBNodeSet'].nil? @DBNodeSet = [] params['DBNodeSet'].each do |i| dbnode_tmp = DBNode.new dbnode_tmp.deserialize(i) @DBNodeSet << dbnode_tmp end end @AutoVoucher = params['AutoVoucher'] @VoucherIds = params['VoucherIds'] @ActivityId = params['ActivityId'] @BackupSetId = params['BackupSetId'] @RecoveryTargetTime = params['RecoveryTargetTime'] @SyncMode = params['SyncMode'] end end # CloneDBInstance返回参数结构体 class CloneDBInstanceResponse < TencentCloud::Common::AbstractModel # @param DealName: 订单号。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DealName: String # @param BillId: 订单流水号。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type BillId: String # @param DBInstanceId: 克隆出的新实例ID,当前只支持后付费返回该值。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBInstanceId: String # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :DealName, :BillId, :DBInstanceId, :RequestId def initialize(dealname=nil, billid=nil, dbinstanceid=nil, requestid=nil) @DealName = dealname @BillId = billid @DBInstanceId = dbinstanceid @RequestId = requestid end def deserialize(params) @DealName = params['DealName'] @BillId = params['BillId'] @DBInstanceId = params['DBInstanceId'] @RequestId = params['RequestId'] end end # CloseDBExtranetAccess请求参数结构体 class CloseDBExtranetAccessRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID,形如postgres-6r233v55 # @type DBInstanceId: String # @param IsIpv6: 是否关闭Ipv6外网,1:是,0:否 # @type IsIpv6: Integer attr_accessor :DBInstanceId, :IsIpv6 def initialize(dbinstanceid=nil, isipv6=nil) @DBInstanceId = dbinstanceid @IsIpv6 = isipv6 end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @IsIpv6 = params['IsIpv6'] end end # CloseDBExtranetAccess返回参数结构体 class CloseDBExtranetAccessResponse < TencentCloud::Common::AbstractModel # @param FlowId: 异步任务流程ID # @type FlowId: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FlowId, :RequestId def initialize(flowid=nil, requestid=nil) @FlowId = flowid @RequestId = requestid end def deserialize(params) @FlowId = params['FlowId'] @RequestId = params['RequestId'] end end # CloseServerlessDBExtranetAccess请求参数结构体 class CloseServerlessDBExtranetAccessRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例唯一标识符 # @type DBInstanceId: String # @param DBInstanceName: 实例名称 # @type DBInstanceName: String attr_accessor :DBInstanceId, :DBInstanceName def initialize(dbinstanceid=nil, dbinstancename=nil) @DBInstanceId = dbinstanceid @DBInstanceName = dbinstancename end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @DBInstanceName = params['DBInstanceName'] end end # CloseServerlessDBExtranetAccess返回参数结构体 class CloseServerlessDBExtranetAccessResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # CreateBaseBackup请求参数结构体 class CreateBaseBackupRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID。 # @type DBInstanceId: String attr_accessor :DBInstanceId def initialize(dbinstanceid=nil) @DBInstanceId = dbinstanceid end def deserialize(params) @DBInstanceId = params['DBInstanceId'] end end # CreateBaseBackup返回参数结构体 class CreateBaseBackupResponse < TencentCloud::Common::AbstractModel # @param BaseBackupId: 数据备份集ID # @type BaseBackupId: String # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :BaseBackupId, :RequestId def initialize(basebackupid=nil, requestid=nil) @BaseBackupId = basebackupid @RequestId = requestid end def deserialize(params) @BaseBackupId = params['BaseBackupId'] @RequestId = params['RequestId'] end end # CreateDBInstanceNetworkAccess请求参数结构体 class CreateDBInstanceNetworkAccessRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID,形如:postgres-6bwgamo3。 # @type DBInstanceId: String # @param VpcId: 私有网络统一 ID。 # @type VpcId: String # @param SubnetId: 子网ID。 # @type SubnetId: String # @param IsAssignVip: 是否指定分配vip true-指定分配 false-自动分配。 # @type IsAssignVip: Boolean # @param Vip: 目标VIP地址。 # @type Vip: String attr_accessor :DBInstanceId, :VpcId, :SubnetId, :IsAssignVip, :Vip def initialize(dbinstanceid=nil, vpcid=nil, subnetid=nil, isassignvip=nil, vip=nil) @DBInstanceId = dbinstanceid @VpcId = vpcid @SubnetId = subnetid @IsAssignVip = isassignvip @Vip = vip end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @IsAssignVip = params['IsAssignVip'] @Vip = params['Vip'] end end # CreateDBInstanceNetworkAccess返回参数结构体 class CreateDBInstanceNetworkAccessResponse < TencentCloud::Common::AbstractModel # @param FlowId: 流程ID。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowId: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FlowId, :RequestId def initialize(flowid=nil, requestid=nil) @FlowId = flowid @RequestId = requestid end def deserialize(params) @FlowId = params['FlowId'] @RequestId = params['RequestId'] end end # CreateDBInstances请求参数结构体 class CreateDBInstancesRequest < TencentCloud::Common::AbstractModel # @param SpecCode: 售卖规格ID。该参数可以通过调用DescribeClasses的返回值中的SpecCode字段来获取。 # @type SpecCode: 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(后付费,即按量计费)。默认值:PREPAID。 # @type InstanceChargeType: String # @param AutoVoucher: 是否自动使用代金券。1(是),0(否),默认不使用。 # @type AutoVoucher: Integer # @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。 # @type VoucherIds: Array # @param VpcId: 私有网络ID。 # @type VpcId: String # @param SubnetId: 私有网络子网ID。 # @type SubnetId: String # @param AutoRenewFlag: 续费标记:0-正常续费(默认);1-自动续费; # @type AutoRenewFlag: Integer # @param ActivityId: 活动ID # @type ActivityId: Integer # @param Name: 实例名(后续支持) # @type Name: String # @param NeedSupportIpv6: 是否需要支持Ipv6,1:是,0:否 # @type NeedSupportIpv6: Integer # @param TagList: 实例需要绑定的Tag信息,默认为空 # @type TagList: Array # @param SecurityGroupIds: 安全组id # @type SecurityGroupIds: Array # @param DBMajorVersion: PostgreSQL大版本号(该参数当前必传),版本信息可从[DescribeDBVersions](https://cloud.tencent.com/document/api/409/89018)获取。目前支持10,11,12,13,14,15这几个大版本,详情见[内核版本概述](https://cloud.tencent.com/document/product/409/67018)。 # 输入该参数时,会基于此大版本号创建对应的最新小版本的最新内核版本号实例。 # @type DBMajorVersion: String # @param DBKernelVersion: PostgreSQL内核版本号。 # 一般场景不推荐传入该参数。如需指定,只能传当前大版本号下最新内核版本号。 # @type DBKernelVersion: String 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, 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 @Storage = storage @InstanceCount = instancecount @Period = period @Zone = zone @ProjectId = projectid @DBVersion = dbversion @InstanceChargeType = instancechargetype @AutoVoucher = autovoucher @VoucherIds = voucherids @VpcId = vpcid @SubnetId = subnetid @AutoRenewFlag = autorenewflag @ActivityId = activityid @Name = name @NeedSupportIpv6 = needsupportipv6 @TagList = taglist @SecurityGroupIds = securitygroupids @DBMajorVersion = dbmajorversion @DBKernelVersion = dbkernelversion end def deserialize(params) @SpecCode = params['SpecCode'] @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'] @AutoRenewFlag = params['AutoRenewFlag'] @ActivityId = params['ActivityId'] @Name = params['Name'] @NeedSupportIpv6 = params['NeedSupportIpv6'] unless params['TagList'].nil? @TagList = [] params['TagList'].each do |i| tag_tmp = Tag.new 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 # @param DealNames: 订单号列表。每个实例对应一个订单号。 # @type DealNames: Array # @param BillId: 冻结流水号 # @type BillId: String # @param DBInstanceIdSet: 创建成功的实例ID集合,只在后付费情景下有返回值 # @type DBInstanceIdSet: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :DealNames, :BillId, :DBInstanceIdSet, :RequestId def initialize(dealnames=nil, billid=nil, dbinstanceidset=nil, requestid=nil) @DealNames = dealnames @BillId = billid @DBInstanceIdSet = dbinstanceidset @RequestId = requestid end def deserialize(params) @DealNames = params['DealNames'] @BillId = params['BillId'] @DBInstanceIdSet = params['DBInstanceIdSet'] @RequestId = params['RequestId'] end end # CreateInstances请求参数结构体 class CreateInstancesRequest < TencentCloud::Common::AbstractModel # @param Zone: 实例所属主可用区, 如:ap-guangzhou-3;若需要支持多可用区,在DBNodeSet.N字段中进行添加主可用区和备可用区信息; # 可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。 # @type Zone: String # @param SpecCode: 售卖规格码。该参数可以通过调用[DescribeClasses](https://cloud.tencent.com/document/api/409/89019)的返回值中的SpecCode字段来获取。 # @type SpecCode: String # @param Storage: 实例容量大小,单位:GB。 # @type Storage: Integer # @param InstanceCount: 购买实例数量,取值范围:[1-10]。一次性购买支持最大数量10个,若超过该数量,可进行多次调用进行购买。 # @type InstanceCount: Integer # @param Period: 购买时长,单位:月。 #
  • 预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36 #
  • 后付费:只支持1 # @type Period: Integer # @param Charset: 实例字符集,目前只支持: #
  • UTF8 #
  • LATIN1 # @type Charset: String # @param AdminName: 实例根账号用户名,具体规范如下: #
  • 用户名需要1-16个字符,只能由字母、数字或下划线组成 #
  • 不能为postgres #
  • 不能由数字和pg_开头 #
  • 所有规则均不区分大小写 # @type AdminName: String # @param AdminPassword: 实例根账号用户名对应的密码,长度8 ~ 32位,推荐使用12位以上的密码;不能以" / "开头; # 必须包含以下四项,字符种类: #
  • 小写字母: [a ~ z] #
  • 大写字母:[A ~ Z] #
  • 数字:0 - 9 #
  • 特殊字符:()`~!@#$%^&*-+=_|{}[]:;'<>,.?/ # @type AdminPassword: String # @param DBMajorVersion: PostgreSQL大版本号(该参数当前必传),版本信息可从[DescribeDBVersions](https://cloud.tencent.com/document/api/409/89018)获取。目前支持10,11,12,13,14,15这几个大版本,详情见[内核版本概述](https://cloud.tencent.com/document/product/409/67018)。 # 输入该参数时,会基于此大版本号创建对应的最新小版本的最新内核版本号实例。 # @type DBMajorVersion: String # @param DBVersion: PostgreSQL社区大版本+小版本号。 # 一般场景不推荐传入该参数。如需指定,只能传当前大版本号下最新小版本号。 # @type DBVersion: String # @param DBKernelVersion: PostgreSQL内核版本号。 # 一般场景不推荐传入该参数。如需指定,只能传当前大版本号下最新内核版本号。 # @type DBKernelVersion: String # @param InstanceChargeType: 实例计费类型,目前支持: #
  • PREPAID:预付费,即包年包月 #
  • POSTPAID_BY_HOUR:后付费,即按量计费 # 默认值:PREPAID # @type InstanceChargeType: String # @param VpcId: 私有网络ID,形如vpc-xxxxxxxx(该参数当前必传)。有效的VpcId可通过登录控制台查询;也可以调用接口 [DescribeVpcEx](https://cloud.tencent.com/document/api/215/1372) ,从接口返回中的unVpcId字段获取。 # @type VpcId: String # @param SubnetId: 私有网络子网ID,形如subnet-xxxxxxxx(该参数当前必传)。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 [DescribeSubnets ](https://cloud.tencent.com/document/api/215/15784),从接口返回中的unSubnetId字段获取。 # @type SubnetId: String # @param DBNodeSet: 实例节点部署信息,支持多可用区部署时需要指定每个节点的部署可用区信息。 # 可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。 # @type DBNodeSet: Array # @param AutoRenewFlag: 续费标记: #
  • 0:手动续费 #
  • 1:自动续费 # 默认值:0 # @type AutoRenewFlag: Integer # @param AutoVoucher: 是否自动使用代金券: #
  • 0:否 #
  • 1:是 # 默认值:0 # @type AutoVoucher: Integer # @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。 # @type VoucherIds: Array # @param ProjectId: 项目ID。 # @type ProjectId: Integer # @param ActivityId: 活动ID。 # @type ActivityId: Integer # @param Name: 实例名称,仅支持长度小于60的中文/英文/数字/"_"/"-",不指定实例名称则默认显示"未命名"。 # @type Name: String # @param TagList: 实例需要绑定的Tag信息,默认为空;可以通过调用 [DescribeTags](https://cloud.tencent.com/document/api/651/35316) 返回值中的 Tags 字段来获取。 # @type TagList: Array # @param SecurityGroupIds: 实例所属安全组,该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。 # @type SecurityGroupIds: Array # @param NeedSupportTDE: 是否需要支持数据透明加密: #
  • 0:否 #
  • 1:是 # 默认值:0 # 参考[数据透明加密概述](https://cloud.tencent.com/document/product/409/71748) # @type NeedSupportTDE: Integer # @param KMSKeyId: 自定义密钥的KeyId,若选择自定义密匙加密,则需要传入自定义密匙的KeyId,KeyId是CMK的唯一标识。 # KeyId创建获取相关参考[开启透明数据加密](https://cloud.tencent.com/document/product/409/71749) # @type KMSKeyId: String # @param KMSRegion: 使用KMS服务的地域,KMSRegion为空默认使用本地域的KMS,本地域不支持的情况下需自选其他KMS支持的地域。 # KMSRegion相关介绍参考[开启透明数据加密](https://cloud.tencent.com/document/product/409/71749) # @type KMSRegion: String # @param DBEngine: 数据库引擎,支持: #
  • postgresql:云数据库PostgreSQL #
  • mssql_compatible:MSSQL兼容-云数据库PostgreSQL # 默认值:postgresql # @type DBEngine: String # @param DBEngineConfig: 数据库引擎的配置信息,配置格式如下: # {"$key1":"$value1", "$key2":"$value2"} # 各引擎支持如下: # mssql_compatible引擎: #
  • migrationMode:数据库模式,可选参数,可取值:single-db(单数据库模式),multi-db(多数据库模式)。默认为single-db。 #
  • defaultLocale:排序区域规则,可选参数,在初始化后不可修改,默认为en_US,可选值如下: # "af_ZA", "sq_AL", "ar_DZ", "ar_BH", "ar_EG", "ar_IQ", "ar_JO", "ar_KW", "ar_LB", "ar_LY", "ar_MA", "ar_OM", "ar_QA", "ar_SA", "ar_SY", "ar_TN", "ar_AE", "ar_YE", "hy_AM", "az_Cyrl_AZ", "az_Latn_AZ", "eu_ES", "be_BY", "bg_BG", "ca_ES", "zh_HK", "zh_MO", "zh_CN", "zh_SG", "zh_TW", "hr_HR", "cs_CZ", "da_DK", "nl_BE", "nl_NL", "en_AU", "en_BZ", "en_CA", "en_IE", "en_JM", "en_NZ", "en_PH", "en_ZA", "en_TT", "en_GB", "en_US", "en_ZW", "et_EE", "fo_FO", "fa_IR", "fi_FI", "fr_BE", "fr_CA", "fr_FR", "fr_LU", "fr_MC", "fr_CH", "mk_MK", "ka_GE", "de_AT", "de_DE", "de_LI", "de_LU", "de_CH", "el_GR", "gu_IN", "he_IL", "hi_IN", "hu_HU", "is_IS", "id_ID", "it_IT", "it_CH", "ja_JP", "kn_IN", "kok_IN", "ko_KR", "ky_KG", "lv_LV", "lt_LT", "ms_BN", "ms_MY", "mr_IN", "mn_MN", "nb_NO", "nn_NO", "pl_PL", "pt_BR", "pt_PT", "pa_IN", "ro_RO", "ru_RU", "sa_IN", "sr_Cyrl_RS", "sr_Latn_RS", "sk_SK", "sl_SI", "es_AR", "es_BO", "es_CL", "es_CO", "es_CR", "es_DO", "es_EC", "es_SV", "es_GT", "es_HN", "es_MX", "es_NI", "es_PA", "es_PY","es_PE", "es_PR", "es_ES", "es_TRADITIONAL", "es_UY", "es_VE", "sw_KE", "sv_FI", "sv_SE", "tt_RU", "te_IN", "th_TH", "tr_TR", "uk_UA", "ur_IN", "ur_PK", "uz_Cyrl_UZ", "uz_Latn_UZ", "vi_VN"。 #
  • serverCollationName:排序规则名称,可选参数,在初始化后不可修改,默认为sql_latin1_general_cp1_ci_as,可选值如下:"bbf_unicode_general_ci_as", "bbf_unicode_cp1_ci_as", "bbf_unicode_CP1250_ci_as", "bbf_unicode_CP1251_ci_as", "bbf_unicode_cp1253_ci_as", "bbf_unicode_cp1254_ci_as", "bbf_unicode_cp1255_ci_as", "bbf_unicode_cp1256_ci_as", "bbf_unicode_cp1257_ci_as", "bbf_unicode_cp1258_ci_as", "bbf_unicode_cp874_ci_as", "sql_latin1_general_cp1250_ci_as", "sql_latin1_general_cp1251_ci_as", "sql_latin1_general_cp1_ci_as", "sql_latin1_general_cp1253_ci_as", "sql_latin1_general_cp1254_ci_as", "sql_latin1_general_cp1255_ci_as","sql_latin1_general_cp1256_ci_as", "sql_latin1_general_cp1257_ci_as", "sql_latin1_general_cp1258_ci_as", "chinese_prc_ci_as", "cyrillic_general_ci_as", "finnish_swedish_ci_as", "french_ci_as", "japanese_ci_as", "korean_wansung_ci_as", "latin1_general_ci_as", "modern_spanish_ci_as", "polish_ci_as", "thai_ci_as", "traditional_spanish_ci_as", "turkish_ci_as", "ukrainian_ci_as", "vietnamese_ci_as"。 # @type DBEngineConfig: String # @param SyncMode: 主从同步方式,支持: #
  • Semi-sync:半同步 #
  • Async:异步 # 主实例默认值:Semi-sync # 只读实例默认值:Async # @type SyncMode: String # @param NeedSupportIpv6: 是否需要支持Ipv6: #
  • 0:否 #
  • 1:是 # 默认值:0 # @type NeedSupportIpv6: Integer attr_accessor :Zone, :SpecCode, :Storage, :InstanceCount, :Period, :Charset, :AdminName, :AdminPassword, :DBMajorVersion, :DBVersion, :DBKernelVersion, :InstanceChargeType, :VpcId, :SubnetId, :DBNodeSet, :AutoRenewFlag, :AutoVoucher, :VoucherIds, :ProjectId, :ActivityId, :Name, :TagList, :SecurityGroupIds, :NeedSupportTDE, :KMSKeyId, :KMSRegion, :DBEngine, :DBEngineConfig, :SyncMode, :NeedSupportIpv6 def initialize(zone=nil, speccode=nil, storage=nil, instancecount=nil, period=nil, charset=nil, adminname=nil, adminpassword=nil, dbmajorversion=nil, dbversion=nil, dbkernelversion=nil, instancechargetype=nil, vpcid=nil, subnetid=nil, dbnodeset=nil, autorenewflag=nil, autovoucher=nil, voucherids=nil, projectid=nil, activityid=nil, name=nil, taglist=nil, securitygroupids=nil, needsupporttde=nil, kmskeyid=nil, kmsregion=nil, dbengine=nil, dbengineconfig=nil, syncmode=nil, needsupportipv6=nil) @Zone = zone @SpecCode = speccode @Storage = storage @InstanceCount = instancecount @Period = period @Charset = charset @AdminName = adminname @AdminPassword = adminpassword @DBMajorVersion = dbmajorversion @DBVersion = dbversion @DBKernelVersion = dbkernelversion @InstanceChargeType = instancechargetype @VpcId = vpcid @SubnetId = subnetid @DBNodeSet = dbnodeset @AutoRenewFlag = autorenewflag @AutoVoucher = autovoucher @VoucherIds = voucherids @ProjectId = projectid @ActivityId = activityid @Name = name @TagList = taglist @SecurityGroupIds = securitygroupids @NeedSupportTDE = needsupporttde @KMSKeyId = kmskeyid @KMSRegion = kmsregion @DBEngine = dbengine @DBEngineConfig = dbengineconfig @SyncMode = syncmode @NeedSupportIpv6 = needsupportipv6 end def deserialize(params) @Zone = params['Zone'] @SpecCode = params['SpecCode'] @Storage = params['Storage'] @InstanceCount = params['InstanceCount'] @Period = params['Period'] @Charset = params['Charset'] @AdminName = params['AdminName'] @AdminPassword = params['AdminPassword'] @DBMajorVersion = params['DBMajorVersion'] @DBVersion = params['DBVersion'] @DBKernelVersion = params['DBKernelVersion'] @InstanceChargeType = params['InstanceChargeType'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] unless params['DBNodeSet'].nil? @DBNodeSet = [] params['DBNodeSet'].each do |i| dbnode_tmp = DBNode.new dbnode_tmp.deserialize(i) @DBNodeSet << dbnode_tmp end end @AutoRenewFlag = params['AutoRenewFlag'] @AutoVoucher = params['AutoVoucher'] @VoucherIds = params['VoucherIds'] @ProjectId = params['ProjectId'] @ActivityId = params['ActivityId'] @Name = params['Name'] unless params['TagList'].nil? @TagList = [] params['TagList'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @TagList << tag_tmp end end @SecurityGroupIds = params['SecurityGroupIds'] @NeedSupportTDE = params['NeedSupportTDE'] @KMSKeyId = params['KMSKeyId'] @KMSRegion = params['KMSRegion'] @DBEngine = params['DBEngine'] @DBEngineConfig = params['DBEngineConfig'] @SyncMode = params['SyncMode'] @NeedSupportIpv6 = params['NeedSupportIpv6'] end end # CreateInstances返回参数结构体 class CreateInstancesResponse < TencentCloud::Common::AbstractModel # @param DealNames: 订单号列表。每个实例对应一个订单号。 # @type DealNames: Array # @param BillId: 冻结流水号。 # @type BillId: String # @param DBInstanceIdSet: 创建成功的实例ID集合,只在后付费情景下有返回值。 # @type DBInstanceIdSet: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :DealNames, :BillId, :DBInstanceIdSet, :RequestId def initialize(dealnames=nil, billid=nil, dbinstanceidset=nil, requestid=nil) @DealNames = dealnames @BillId = billid @DBInstanceIdSet = dbinstanceidset @RequestId = requestid end def deserialize(params) @DealNames = params['DealNames'] @BillId = params['BillId'] @DBInstanceIdSet = params['DBInstanceIdSet'] @RequestId = params['RequestId'] end end # CreateParameterTemplate请求参数结构体 class CreateParameterTemplateRequest < TencentCloud::Common::AbstractModel # @param TemplateName: 模板名称,长度为1~60个字符,仅支持数字,英文大小写字母、中文以及特殊字符_-./()()[]+=::@ # @type TemplateName: String # @param DBMajorVersion: 数据库大版本号,例如:11,12,13 # @type DBMajorVersion: String # @param DBEngine: 数据库引擎,例如:postgresql,mssql_compatible # @type DBEngine: String # @param TemplateDescription: 参数模板描述,长度为0~60个字符,仅支持数字,英文大小写字母、中文以及特殊字符_-./()()[]+=::@ # @type TemplateDescription: String attr_accessor :TemplateName, :DBMajorVersion, :DBEngine, :TemplateDescription def initialize(templatename=nil, dbmajorversion=nil, dbengine=nil, templatedescription=nil) @TemplateName = templatename @DBMajorVersion = dbmajorversion @DBEngine = dbengine @TemplateDescription = templatedescription end def deserialize(params) @TemplateName = params['TemplateName'] @DBMajorVersion = params['DBMajorVersion'] @DBEngine = params['DBEngine'] @TemplateDescription = params['TemplateDescription'] end end # CreateParameterTemplate返回参数结构体 class CreateParameterTemplateResponse < TencentCloud::Common::AbstractModel # @param TemplateId: 参数模板ID,用于唯一确认参数模板 # @type TemplateId: String # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TemplateId, :RequestId def initialize(templateid=nil, requestid=nil) @TemplateId = templateid @RequestId = requestid end def deserialize(params) @TemplateId = params['TemplateId'] @RequestId = params['RequestId'] end end # CreateReadOnlyDBInstance请求参数结构体 class CreateReadOnlyDBInstanceRequest < TencentCloud::Common::AbstractModel # @param Zone: 实例所属主可用区, 如:ap-guangzhou-3; # 可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。 # @type Zone: String # @param MasterDBInstanceId: 只读实例的主实例ID。 # @type MasterDBInstanceId: String # @param SpecCode: 售卖规格码。该参数可以通过调用[DescribeClasses](https://cloud.tencent.com/document/api/409/89019)的返回值中的SpecCode字段来获取。 # @type SpecCode: String # @param Storage: 实例容量大小,单位:GB。 # @type Storage: Integer # @param InstanceCount: 购买实例数量,取值范围:[1-10]。一次性购买支持最大数量10个,若超过该数量,可进行多次调用进行购买。 # @type InstanceCount: Integer # @param Period: 购买时长,单位:月。 #
  • 预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36 #
  • 后付费:只支持1 # @type Period: Integer # @param VpcId: 私有网络ID,形如vpc-xxxxxxxx。有效的VpcId可通过登录控制台查询;也可以调用接口 [DescribeVpcEx](https://cloud.tencent.com/document/api/215/1372) ,从接口返回中的unVpcId字段获取。 # @type VpcId: String # @param SubnetId: 私有网络子网ID,形如subnet-xxxxxxxx。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 [DescribeSubnets ](https://cloud.tencent.com/document/api/215/15784),从接口返回中的unSubnetId字段获取。 # @type SubnetId: String # @param InstanceChargeType: 实例计费类型,目前支持: #
  • PREPAID:预付费,即包年包月。 #
  • POSTPAID_BY_HOUR:后付费,即按量计费。 # 默认值:PREPAID。如果主实例为后付费,只读实例必须也为后付费。 # @type InstanceChargeType: String # @param AutoVoucher: 是否自动使用代金券: #
  • 0:否 #
  • 1:是 # 默认值:0 # @type AutoVoucher: Integer # @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。 # @type VoucherIds: Array # @param AutoRenewFlag: 续费标记: #
  • 0:手动续费 #
  • 1:自动续费 # 默认值:0 # @type AutoRenewFlag: Integer # @param ProjectId: 项目ID。 # @type ProjectId: Integer # @param ActivityId: 优惠活动ID # @type ActivityId: Integer # @param ReadOnlyGroupId: 只读组ID。 # @type ReadOnlyGroupId: String # @param TagList: 实例需要绑定的Tag信息,默认为空;可以通过调用 [DescribeTags](https://cloud.tencent.com/document/api/651/35316) 返回值中的 Tags 字段来获取。 # @type TagList: :class:`Tencentcloud::Postgres.v20170312.models.Tag` # @param SecurityGroupIds: 实例所属安全组,该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。若不指定该参数,则绑定默认安全组。 # @type SecurityGroupIds: Array # @param NeedSupportIpv6: 是否需要支持Ipv6: #
  • 0:否 #
  • 1:是 # 默认值:0 # @type NeedSupportIpv6: Integer # @param Name: 实例名(后续支持) # @type Name: String # @param DBVersion: 【废弃】不再需要指定,内核版本号与主实例保持一致 # @type DBVersion: String attr_accessor :Zone, :MasterDBInstanceId, :SpecCode, :Storage, :InstanceCount, :Period, :VpcId, :SubnetId, :InstanceChargeType, :AutoVoucher, :VoucherIds, :AutoRenewFlag, :ProjectId, :ActivityId, :ReadOnlyGroupId, :TagList, :SecurityGroupIds, :NeedSupportIpv6, :Name, :DBVersion def initialize(zone=nil, masterdbinstanceid=nil, speccode=nil, storage=nil, instancecount=nil, period=nil, vpcid=nil, subnetid=nil, instancechargetype=nil, autovoucher=nil, voucherids=nil, autorenewflag=nil, projectid=nil, activityid=nil, readonlygroupid=nil, taglist=nil, securitygroupids=nil, needsupportipv6=nil, name=nil, dbversion=nil) @Zone = zone @MasterDBInstanceId = masterdbinstanceid @SpecCode = speccode @Storage = storage @InstanceCount = instancecount @Period = period @VpcId = vpcid @SubnetId = subnetid @InstanceChargeType = instancechargetype @AutoVoucher = autovoucher @VoucherIds = voucherids @AutoRenewFlag = autorenewflag @ProjectId = projectid @ActivityId = activityid @ReadOnlyGroupId = readonlygroupid @TagList = taglist @SecurityGroupIds = securitygroupids @NeedSupportIpv6 = needsupportipv6 @Name = name @DBVersion = dbversion end def deserialize(params) @Zone = params['Zone'] @MasterDBInstanceId = params['MasterDBInstanceId'] @SpecCode = params['SpecCode'] @Storage = params['Storage'] @InstanceCount = params['InstanceCount'] @Period = params['Period'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @InstanceChargeType = params['InstanceChargeType'] @AutoVoucher = params['AutoVoucher'] @VoucherIds = params['VoucherIds'] @AutoRenewFlag = params['AutoRenewFlag'] @ProjectId = params['ProjectId'] @ActivityId = params['ActivityId'] @ReadOnlyGroupId = params['ReadOnlyGroupId'] unless params['TagList'].nil? @TagList = Tag.new @TagList.deserialize(params['TagList']) end @SecurityGroupIds = params['SecurityGroupIds'] @NeedSupportIpv6 = params['NeedSupportIpv6'] @Name = params['Name'] @DBVersion = params['DBVersion'] end end # CreateReadOnlyDBInstance返回参数结构体 class CreateReadOnlyDBInstanceResponse < TencentCloud::Common::AbstractModel # @param DealNames: 订单号列表。每个实例对应一个订单号 # @type DealNames: Array # @param BillId: 冻结流水号 # @type BillId: String # @param DBInstanceIdSet: 创建成功的实例ID集合,只在后付费情景下有返回值 # @type DBInstanceIdSet: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :DealNames, :BillId, :DBInstanceIdSet, :RequestId def initialize(dealnames=nil, billid=nil, dbinstanceidset=nil, requestid=nil) @DealNames = dealnames @BillId = billid @DBInstanceIdSet = dbinstanceidset @RequestId = requestid end def deserialize(params) @DealNames = params['DealNames'] @BillId = params['BillId'] @DBInstanceIdSet = params['DBInstanceIdSet'] @RequestId = params['RequestId'] end end # CreateReadOnlyGroupNetworkAccess请求参数结构体 class CreateReadOnlyGroupNetworkAccessRequest < TencentCloud::Common::AbstractModel # @param ReadOnlyGroupId: RO组ID,形如:pgro-4t9c6g7k。 # @type ReadOnlyGroupId: String # @param VpcId: 私有网络统一 ID。 # @type VpcId: String # @param SubnetId: 子网ID。 # @type SubnetId: String # @param IsAssignVip: 是否指定分配vip true-指定分配 false-自动分配。 # @type IsAssignVip: Boolean # @param Vip: 目标VIP地址。 # @type Vip: String attr_accessor :ReadOnlyGroupId, :VpcId, :SubnetId, :IsAssignVip, :Vip def initialize(readonlygroupid=nil, vpcid=nil, subnetid=nil, isassignvip=nil, vip=nil) @ReadOnlyGroupId = readonlygroupid @VpcId = vpcid @SubnetId = subnetid @IsAssignVip = isassignvip @Vip = vip end def deserialize(params) @ReadOnlyGroupId = params['ReadOnlyGroupId'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @IsAssignVip = params['IsAssignVip'] @Vip = params['Vip'] end end # CreateReadOnlyGroupNetworkAccess返回参数结构体 class CreateReadOnlyGroupNetworkAccessResponse < TencentCloud::Common::AbstractModel # @param FlowId: 流程ID。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowId: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FlowId, :RequestId def initialize(flowid=nil, requestid=nil) @FlowId = flowid @RequestId = requestid end def deserialize(params) @FlowId = params['FlowId'] @RequestId = params['RequestId'] end end # CreateReadOnlyGroup请求参数结构体 class CreateReadOnlyGroupRequest < TencentCloud::Common::AbstractModel # @param MasterDBInstanceId: 主实例ID # @type MasterDBInstanceId: String # @param Name: 只读组名称 # @type Name: String # @param ProjectId: 项目ID # @type ProjectId: Integer # @param VpcId: 私有网络ID # @type VpcId: String # @param SubnetId: 子网ID # @type SubnetId: String # @param ReplayLagEliminate: 延迟时间大小开关:0关、1开 # @type ReplayLagEliminate: Integer # @param ReplayLatencyEliminate: 延迟空间大小开关: 0关、1开 # @type ReplayLatencyEliminate: Integer # @param MaxReplayLag: 延迟时间大小阈值,单位ms # @type MaxReplayLag: Integer # @param MaxReplayLatency: 延迟空间大小阈值,单位MB # @type MaxReplayLatency: Integer # @param MinDelayEliminateReserve: 延迟剔除最小保留实例数 # @type MinDelayEliminateReserve: Integer # @param SecurityGroupIds: 安全组id # @type SecurityGroupIds: Array attr_accessor :MasterDBInstanceId, :Name, :ProjectId, :VpcId, :SubnetId, :ReplayLagEliminate, :ReplayLatencyEliminate, :MaxReplayLag, :MaxReplayLatency, :MinDelayEliminateReserve, :SecurityGroupIds def initialize(masterdbinstanceid=nil, name=nil, projectid=nil, vpcid=nil, subnetid=nil, replaylageliminate=nil, replaylatencyeliminate=nil, maxreplaylag=nil, maxreplaylatency=nil, mindelayeliminatereserve=nil, securitygroupids=nil) @MasterDBInstanceId = masterdbinstanceid @Name = name @ProjectId = projectid @VpcId = vpcid @SubnetId = subnetid @ReplayLagEliminate = replaylageliminate @ReplayLatencyEliminate = replaylatencyeliminate @MaxReplayLag = maxreplaylag @MaxReplayLatency = maxreplaylatency @MinDelayEliminateReserve = mindelayeliminatereserve @SecurityGroupIds = securitygroupids end def deserialize(params) @MasterDBInstanceId = params['MasterDBInstanceId'] @Name = params['Name'] @ProjectId = params['ProjectId'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @ReplayLagEliminate = params['ReplayLagEliminate'] @ReplayLatencyEliminate = params['ReplayLatencyEliminate'] @MaxReplayLag = params['MaxReplayLag'] @MaxReplayLatency = params['MaxReplayLatency'] @MinDelayEliminateReserve = params['MinDelayEliminateReserve'] @SecurityGroupIds = params['SecurityGroupIds'] end end # CreateReadOnlyGroup返回参数结构体 class CreateReadOnlyGroupResponse < TencentCloud::Common::AbstractModel # @param ReadOnlyGroupId: 只读组ID # @type ReadOnlyGroupId: String # @param FlowId: 流程ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowId: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :ReadOnlyGroupId, :FlowId, :RequestId def initialize(readonlygroupid=nil, flowid=nil, requestid=nil) @ReadOnlyGroupId = readonlygroupid @FlowId = flowid @RequestId = requestid end def deserialize(params) @ReadOnlyGroupId = params['ReadOnlyGroupId'] @FlowId = params['FlowId'] @RequestId = params['RequestId'] end end # CreateServerlessDBInstance请求参数结构体 class CreateServerlessDBInstanceRequest < TencentCloud::Common::AbstractModel # @param Zone: 可用区ID。公测阶段仅支持ap-shanghai-2、ap-beijing-1,ap-guangzhou-2. # @type Zone: String # @param DBInstanceName: DB实例名称,同一个账号下该值必须唯一。 # @type DBInstanceName: String # @param DBVersion: PostgreSQL内核版本,目前只支持:10.4。 # @type DBVersion: String # @param DBCharset: PostgreSQL数据库字符集,目前支持UTF8。 # @type DBCharset: String # @param ProjectId: 项目ID。 # @type ProjectId: Integer # @param VpcId: 私有网络ID。 # @type VpcId: String # @param SubnetId: 私有网络子网ID。 # @type SubnetId: String # @param TagList: 实例需要绑定的标签数组信息 # @type TagList: Array attr_accessor :Zone, :DBInstanceName, :DBVersion, :DBCharset, :ProjectId, :VpcId, :SubnetId, :TagList def initialize(zone=nil, dbinstancename=nil, dbversion=nil, dbcharset=nil, projectid=nil, vpcid=nil, subnetid=nil, taglist=nil) @Zone = zone @DBInstanceName = dbinstancename @DBVersion = dbversion @DBCharset = dbcharset @ProjectId = projectid @VpcId = vpcid @SubnetId = subnetid @TagList = taglist end def deserialize(params) @Zone = params['Zone'] @DBInstanceName = params['DBInstanceName'] @DBVersion = params['DBVersion'] @DBCharset = params['DBCharset'] @ProjectId = params['ProjectId'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] unless params['TagList'].nil? @TagList = [] params['TagList'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @TagList << tag_tmp end end end end # CreateServerlessDBInstance返回参数结构体 class CreateServerlessDBInstanceResponse < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID,该ID全局唯一,如:postgres-xxxxx # @type DBInstanceId: String # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :DBInstanceId, :RequestId def initialize(dbinstanceid=nil, requestid=nil) @DBInstanceId = dbinstanceid @RequestId = requestid end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @RequestId = params['RequestId'] end end # 数据库备份信息 class DBBackup < TencentCloud::Common::AbstractModel # @param Id: 备份文件唯一标识 # @type Id: Integer # @param StartTime: 文件生成的开始时间 # @type StartTime: String # @param EndTime: 文件生成的结束时间 # @type EndTime: String # @param Size: 文件大小(K) # @type Size: Integer # @param Strategy: 策略(0-实例备份;1-多库备份) # @type Strategy: Integer # @param Way: 类型(0-定时) # @type Way: Integer # @param Type: 备份方式(1-完整) # @type Type: Integer # @param Status: 状态(1-创建中;2-成功;3-失败) # @type Status: Integer # @param DbList: DB列表 # @type DbList: Array # @param InternalAddr: 内网下载地址 # @type InternalAddr: String # @param ExternalAddr: 外网下载地址 # @type ExternalAddr: String # @param SetId: 备份集ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type SetId: String attr_accessor :Id, :StartTime, :EndTime, :Size, :Strategy, :Way, :Type, :Status, :DbList, :InternalAddr, :ExternalAddr, :SetId def initialize(id=nil, starttime=nil, endtime=nil, size=nil, strategy=nil, way=nil, type=nil, status=nil, dblist=nil, internaladdr=nil, externaladdr=nil, setid=nil) @Id = id @StartTime = starttime @EndTime = endtime @Size = size @Strategy = strategy @Way = way @Type = type @Status = status @DbList = dblist @InternalAddr = internaladdr @ExternalAddr = externaladdr @SetId = setid end def deserialize(params) @Id = params['Id'] @StartTime = params['StartTime'] @EndTime = params['EndTime'] @Size = params['Size'] @Strategy = params['Strategy'] @Way = params['Way'] @Type = params['Type'] @Status = params['Status'] @DbList = params['DbList'] @InternalAddr = params['InternalAddr'] @ExternalAddr = params['ExternalAddr'] @SetId = params['SetId'] end end # 描述实例的详细信息 class DBInstance < TencentCloud::Common::AbstractModel # @param Region: 实例所属地域,如: ap-guangzhou,对应RegionSet的Region字段。 # @type Region: String # @param Zone: 实例所属可用区, 如:ap-guangzhou-3,对应ZoneSet的Zone字段。 # @type Zone: String # @param VpcId: 私有网络ID,形如vpc-xxxxxxxx。有效的VpcId可通过登录控制台查询;也可以调用接口 [DescribeVpcEx](https://cloud.tencent.com/document/api/215/1372) ,从接口返回中的unVpcId字段获取。 # @type VpcId: String # @param SubnetId: 私有网络子网ID,形如subnet-xxxxxxxx。有效的私有网络子网ID可通过登录控制台查询;也可以调用接口 [DescribeSubnets ](https://cloud.tencent.com/document/api/215/15784),从接口返回中的unSubnetId字段获取。 # @type SubnetId: String # @param DBInstanceId: 实例ID。 # @type DBInstanceId: String # @param DBInstanceName: 实例名称。 # @type DBInstanceName: String # @param DBInstanceStatus: 实例状态,分别为:applying(申请中)、init(待初始化)、initing(初始化中)、running(运行中)、limited run(受限运行)、isolating(隔离中)、isolated(已隔离)、recycling(回收中)、recycled(已回收)、job running(任务执行中)、offline(下线)、migrating(迁移中)、expanding(扩容中)、waitSwitch(等待切换)、switching(切换中)、readonly(只读)、restarting(重启中)、network changing(网络变更中)、upgrading(内核版本升级中)、audit-switching(审计状态变更中)、primary-switching(主备切换中) # @type DBInstanceStatus: String # @param DBInstanceMemory: 实例分配的内存大小,单位:GB # @type DBInstanceMemory: Integer # @param DBInstanceStorage: 实例分配的存储空间大小,单位:GB # @type DBInstanceStorage: Integer # @param DBInstanceCpu: 实例分配的CPU数量,单位:个 # @type DBInstanceCpu: Integer # @param DBInstanceClass: 售卖规格ID # @type DBInstanceClass: String # @param DBMajorVersion: PostgreSQL大版本号,版本信息可从[DescribeDBVersions](https://cloud.tencent.com/document/api/409/89018)获取,目前支持10,11,12,13,14,15这几个大版本。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBMajorVersion: String # @param DBVersion: PostgreSQL社区大版本+小版本号,如12.4,版本信息可从[DescribeDBVersions](https://cloud.tencent.com/document/api/409/89018)获取。 # @type DBVersion: String # @param DBKernelVersion: PostgreSQL内核版本号,如v12.7_r1.8,版本信息可从[DescribeDBVersions](https://cloud.tencent.com/document/api/409/89018)获取。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBKernelVersion: String # @param DBInstanceType: 实例类型,类型有: #
  • primary:主实例 #
  • readonly:只读实例 #
  • guard:灾备实例 #
  • temp:临时实例 # @type DBInstanceType: String # @param DBInstanceVersion: 实例版本,目前只支持standard(双机高可用版, 一主一从)。 # @type DBInstanceVersion: String # @param DBCharset: 实例字符集,目前只支持: #
  • UTF8 #
  • LATIN1 # @type DBCharset: String # @param CreateTime: 实例创建时间。 # @type CreateTime: String # @param UpdateTime: 实例执行最后一次更新的时间。 # @type UpdateTime: String # @param ExpireTime: 实例到期时间。 # @type ExpireTime: String # @param IsolatedTime: 实例隔离时间。 # @type IsolatedTime: String # @param PayType: 计费模式: #
  • prepaid:包年包月,预付费 #
  • postpaid:按量计费,后付费 # @type PayType: String # @param AutoRenew: 是否自动续费: #
  • 0:手动续费 #
  • 1:自动续费 # 默认值:0 # @type AutoRenew: Integer # @param DBInstanceNetInfo: 实例网络连接信息。 # @type DBInstanceNetInfo: Array # @param Type: 机器类型。 # @type Type: String # @param AppId: 用户的AppId。 # @type AppId: Integer # @param Uid: 实例的Uid。 # @type Uid: Integer # @param ProjectId: 项目ID。 # @type ProjectId: Integer # @param TagList: 实例绑定的标签信息。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TagList: Array # @param MasterDBInstanceId: 主实例信息,仅在实例为只读实例时返回。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type MasterDBInstanceId: String # @param ReadOnlyInstanceNum: 只读实例数量。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ReadOnlyInstanceNum: Integer # @param StatusInReadonlyGroup: 只读实例在只读组中的状态。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type StatusInReadonlyGroup: String # @param OfflineTime: 下线时间。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type OfflineTime: String # @param DBNodeSet: 实例的节点信息。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBNodeSet: Array # @param IsSupportTDE: 实例是否支持TDE数据加密: #
  • 0:不支持 #
  • 1:支持 # 默认值:0 # TDE数据加密可参考[数据透明加密概述](https://cloud.tencent.com/document/product/409/71748) # 注意:此字段可能返回 null,表示取不到有效值。 # @type IsSupportTDE: Integer # @param DBEngine: 数据库引擎,支持: #
  • postgresql:云数据库PostgreSQL #
  • mssql_compatible:MSSQL兼容-云数据库PostgreSQL # 默认值:postgresql # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBEngine: String # @param DBEngineConfig: 数据库引擎的配置信息,配置格式如下: # {"$key1":"$value1", "$key2":"$value2"} # 各引擎支持如下: # mssql_compatible引擎: #
  • migrationMode:数据库模式,可选参数,可取值:single-db(单数据库模式),multi-db(多数据库模式)。默认为single-db。 #
  • defaultLocale:排序区域规则,可选参数,在初始化后不可修改,默认为en_US,可选值如下: # "af_ZA", "sq_AL", "ar_DZ", "ar_BH", "ar_EG", "ar_IQ", "ar_JO", "ar_KW", "ar_LB", "ar_LY", "ar_MA", "ar_OM", "ar_QA", "ar_SA", "ar_SY", "ar_TN", "ar_AE", "ar_YE", "hy_AM", "az_Cyrl_AZ", "az_Latn_AZ", "eu_ES", "be_BY", "bg_BG", "ca_ES", "zh_HK", "zh_MO", "zh_CN", "zh_SG", "zh_TW", "hr_HR", "cs_CZ", "da_DK", "nl_BE", "nl_NL", "en_AU", "en_BZ", "en_CA", "en_IE", "en_JM", "en_NZ", "en_PH", "en_ZA", "en_TT", "en_GB", "en_US", "en_ZW", "et_EE", "fo_FO", "fa_IR", "fi_FI", "fr_BE", "fr_CA", "fr_FR", "fr_LU", "fr_MC", "fr_CH", "mk_MK", "ka_GE", "de_AT", "de_DE", "de_LI", "de_LU", "de_CH", "el_GR", "gu_IN", "he_IL", "hi_IN", "hu_HU", "is_IS", "id_ID", "it_IT", "it_CH", "ja_JP", "kn_IN", "kok_IN", "ko_KR", "ky_KG", "lv_LV", "lt_LT", "ms_BN", "ms_MY", "mr_IN", "mn_MN", "nb_NO", "nn_NO", "pl_PL", "pt_BR", "pt_PT", "pa_IN", "ro_RO", "ru_RU", "sa_IN", "sr_Cyrl_RS", "sr_Latn_RS", "sk_SK", "sl_SI", "es_AR", "es_BO", "es_CL", "es_CO", "es_CR", "es_DO", "es_EC", "es_SV", "es_GT", "es_HN", "es_MX", "es_NI", "es_PA", "es_PY","es_PE", "es_PR", "es_ES", "es_TRADITIONAL", "es_UY", "es_VE", "sw_KE", "sv_FI", "sv_SE", "tt_RU", "te_IN", "th_TH", "tr_TR", "uk_UA", "ur_IN", "ur_PK", "uz_Cyrl_UZ", "uz_Latn_UZ", "vi_VN"。 #
  • serverCollationName:排序规则名称,可选参数,在初始化后不可修改,默认为sql_latin1_general_cp1_ci_as,可选值如下:"bbf_unicode_general_ci_as", "bbf_unicode_cp1_ci_as", "bbf_unicode_CP1250_ci_as", "bbf_unicode_CP1251_ci_as", "bbf_unicode_cp1253_ci_as", "bbf_unicode_cp1254_ci_as", "bbf_unicode_cp1255_ci_as", "bbf_unicode_cp1256_ci_as", "bbf_unicode_cp1257_ci_as", "bbf_unicode_cp1258_ci_as", "bbf_unicode_cp874_ci_as", "sql_latin1_general_cp1250_ci_as", "sql_latin1_general_cp1251_ci_as", "sql_latin1_general_cp1_ci_as", "sql_latin1_general_cp1253_ci_as", "sql_latin1_general_cp1254_ci_as", "sql_latin1_general_cp1255_ci_as","sql_latin1_general_cp1256_ci_as", "sql_latin1_general_cp1257_ci_as", "sql_latin1_general_cp1258_ci_as", "chinese_prc_ci_as", "cyrillic_general_ci_as", "finnish_swedish_ci_as", "french_ci_as", "japanese_ci_as", "korean_wansung_ci_as", "latin1_general_ci_as", "modern_spanish_ci_as", "polish_ci_as", "thai_ci_as", "traditional_spanish_ci_as", "turkish_ci_as", "ukrainian_ci_as", "vietnamese_ci_as"。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBEngineConfig: String # @param NetworkAccessList: 实例网络信息列表(此字段已废弃) # 注意:此字段可能返回 null,表示取不到有效值。 # @type NetworkAccessList: Array # @param SupportIpv6: 实例是否支持Ipv6: #
  • 0:否 #
  • 1:是 # 默认值:0 # @type SupportIpv6: Integer attr_accessor :Region, :Zone, :VpcId, :SubnetId, :DBInstanceId, :DBInstanceName, :DBInstanceStatus, :DBInstanceMemory, :DBInstanceStorage, :DBInstanceCpu, :DBInstanceClass, :DBMajorVersion, :DBVersion, :DBKernelVersion, :DBInstanceType, :DBInstanceVersion, :DBCharset, :CreateTime, :UpdateTime, :ExpireTime, :IsolatedTime, :PayType, :AutoRenew, :DBInstanceNetInfo, :Type, :AppId, :Uid, :ProjectId, :TagList, :MasterDBInstanceId, :ReadOnlyInstanceNum, :StatusInReadonlyGroup, :OfflineTime, :DBNodeSet, :IsSupportTDE, :DBEngine, :DBEngineConfig, :NetworkAccessList, :SupportIpv6 def initialize(region=nil, zone=nil, vpcid=nil, subnetid=nil, dbinstanceid=nil, dbinstancename=nil, dbinstancestatus=nil, dbinstancememory=nil, dbinstancestorage=nil, dbinstancecpu=nil, dbinstanceclass=nil, dbmajorversion=nil, dbversion=nil, dbkernelversion=nil, dbinstancetype=nil, dbinstanceversion=nil, dbcharset=nil, createtime=nil, updatetime=nil, expiretime=nil, isolatedtime=nil, paytype=nil, autorenew=nil, dbinstancenetinfo=nil, type=nil, appid=nil, uid=nil, projectid=nil, taglist=nil, masterdbinstanceid=nil, readonlyinstancenum=nil, statusinreadonlygroup=nil, offlinetime=nil, dbnodeset=nil, issupporttde=nil, dbengine=nil, dbengineconfig=nil, networkaccesslist=nil, supportipv6=nil) @Region = region @Zone = zone @VpcId = vpcid @SubnetId = subnetid @DBInstanceId = dbinstanceid @DBInstanceName = dbinstancename @DBInstanceStatus = dbinstancestatus @DBInstanceMemory = dbinstancememory @DBInstanceStorage = dbinstancestorage @DBInstanceCpu = dbinstancecpu @DBInstanceClass = dbinstanceclass @DBMajorVersion = dbmajorversion @DBVersion = dbversion @DBKernelVersion = dbkernelversion @DBInstanceType = dbinstancetype @DBInstanceVersion = dbinstanceversion @DBCharset = dbcharset @CreateTime = createtime @UpdateTime = updatetime @ExpireTime = expiretime @IsolatedTime = isolatedtime @PayType = paytype @AutoRenew = autorenew @DBInstanceNetInfo = dbinstancenetinfo @Type = type @AppId = appid @Uid = uid @ProjectId = projectid @TagList = taglist @MasterDBInstanceId = masterdbinstanceid @ReadOnlyInstanceNum = readonlyinstancenum @StatusInReadonlyGroup = statusinreadonlygroup @OfflineTime = offlinetime @DBNodeSet = dbnodeset @IsSupportTDE = issupporttde @DBEngine = dbengine @DBEngineConfig = dbengineconfig @NetworkAccessList = networkaccesslist @SupportIpv6 = supportipv6 end def deserialize(params) @Region = params['Region'] @Zone = params['Zone'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @DBInstanceId = params['DBInstanceId'] @DBInstanceName = params['DBInstanceName'] @DBInstanceStatus = params['DBInstanceStatus'] @DBInstanceMemory = params['DBInstanceMemory'] @DBInstanceStorage = params['DBInstanceStorage'] @DBInstanceCpu = params['DBInstanceCpu'] @DBInstanceClass = params['DBInstanceClass'] @DBMajorVersion = params['DBMajorVersion'] @DBVersion = params['DBVersion'] @DBKernelVersion = params['DBKernelVersion'] @DBInstanceType = params['DBInstanceType'] @DBInstanceVersion = params['DBInstanceVersion'] @DBCharset = params['DBCharset'] @CreateTime = params['CreateTime'] @UpdateTime = params['UpdateTime'] @ExpireTime = params['ExpireTime'] @IsolatedTime = params['IsolatedTime'] @PayType = params['PayType'] @AutoRenew = params['AutoRenew'] unless params['DBInstanceNetInfo'].nil? @DBInstanceNetInfo = [] params['DBInstanceNetInfo'].each do |i| dbinstancenetinfo_tmp = DBInstanceNetInfo.new dbinstancenetinfo_tmp.deserialize(i) @DBInstanceNetInfo << dbinstancenetinfo_tmp end end @Type = params['Type'] @AppId = params['AppId'] @Uid = params['Uid'] @ProjectId = params['ProjectId'] unless params['TagList'].nil? @TagList = [] params['TagList'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @TagList << tag_tmp end end @MasterDBInstanceId = params['MasterDBInstanceId'] @ReadOnlyInstanceNum = params['ReadOnlyInstanceNum'] @StatusInReadonlyGroup = params['StatusInReadonlyGroup'] @OfflineTime = params['OfflineTime'] unless params['DBNodeSet'].nil? @DBNodeSet = [] params['DBNodeSet'].each do |i| dbnode_tmp = DBNode.new dbnode_tmp.deserialize(i) @DBNodeSet << dbnode_tmp end end @IsSupportTDE = params['IsSupportTDE'] @DBEngine = params['DBEngine'] @DBEngineConfig = params['DBEngineConfig'] unless params['NetworkAccessList'].nil? @NetworkAccessList = [] params['NetworkAccessList'].each do |i| networkaccess_tmp = NetworkAccess.new networkaccess_tmp.deserialize(i) @NetworkAccessList << networkaccess_tmp end end @SupportIpv6 = params['SupportIpv6'] end end # 描述实例的网络连接信息。 class DBInstanceNetInfo < TencentCloud::Common::AbstractModel # @param Address: DNS域名 # @type Address: String # @param Ip: IP地址 # @type Ip: String # @param Port: 连接Port地址 # @type Port: Integer # @param NetType: 网络类型,1、inner(基础网络内网地址);2、private(私有网络内网地址);3、public(基础网络或私有网络的外网地址); # @type NetType: String # @param Status: 网络连接状态,1、initing(未开通);2、opened(已开通);3、closed(已关闭);4、opening(开通中);5、closing(关闭中); # @type Status: String # @param VpcId: 私有网络ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type VpcId: String # @param SubnetId: 子网ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type SubnetId: String # @param ProtocolType: 连接数据库的协议类型,当前支持:postgresql、mssql(MSSQL兼容语法) # 注意:此字段可能返回 null,表示取不到有效值。 # @type ProtocolType: String attr_accessor :Address, :Ip, :Port, :NetType, :Status, :VpcId, :SubnetId, :ProtocolType def initialize(address=nil, ip=nil, port=nil, nettype=nil, status=nil, vpcid=nil, subnetid=nil, protocoltype=nil) @Address = address @Ip = ip @Port = port @NetType = nettype @Status = status @VpcId = vpcid @SubnetId = subnetid @ProtocolType = protocoltype end def deserialize(params) @Address = params['Address'] @Ip = params['Ip'] @Port = params['Port'] @NetType = params['NetType'] @Status = params['Status'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @ProtocolType = params['ProtocolType'] end end # 描述实例节点信息,包括节点类型、节点所在可用区。 class DBNode < TencentCloud::Common::AbstractModel # @param Role: 节点类型,值可以为: # Primary,代表主节点; # Standby,代表备节点。 # @type Role: String # @param Zone: 节点所在可用区,例如 ap-guangzhou-1。 # @type Zone: String attr_accessor :Role, :Zone def initialize(role=nil, zone=nil) @Role = role @Zone = zone end def deserialize(params) @Role = params['Role'] @Zone = params['Zone'] end end # DeleteBaseBackup请求参数结构体 class DeleteBaseBackupRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID。 # @type DBInstanceId: String # @param BaseBackupId: 数据备份ID。 # @type BaseBackupId: String attr_accessor :DBInstanceId, :BaseBackupId def initialize(dbinstanceid=nil, basebackupid=nil) @DBInstanceId = dbinstanceid @BaseBackupId = basebackupid end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @BaseBackupId = params['BaseBackupId'] end end # DeleteBaseBackup返回参数结构体 class DeleteBaseBackupResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # DeleteDBInstanceNetworkAccess请求参数结构体 class DeleteDBInstanceNetworkAccessRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID,形如:postgres-6bwgamo3。 # @type DBInstanceId: String # @param VpcId: 私有网络统一 ID,若是基础网络则传"0"。 # @type VpcId: String # @param SubnetId: 子网ID,若是基础网络则传"0"。 # @type SubnetId: String # @param Vip: 目标VIP地址。 # @type Vip: String attr_accessor :DBInstanceId, :VpcId, :SubnetId, :Vip def initialize(dbinstanceid=nil, vpcid=nil, subnetid=nil, vip=nil) @DBInstanceId = dbinstanceid @VpcId = vpcid @SubnetId = subnetid @Vip = vip end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @Vip = params['Vip'] end end # DeleteDBInstanceNetworkAccess返回参数结构体 class DeleteDBInstanceNetworkAccessResponse < TencentCloud::Common::AbstractModel # @param FlowId: 流程ID。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowId: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FlowId, :RequestId def initialize(flowid=nil, requestid=nil) @FlowId = flowid @RequestId = requestid end def deserialize(params) @FlowId = params['FlowId'] @RequestId = params['RequestId'] end end # DeleteLogBackup请求参数结构体 class DeleteLogBackupRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID。 # @type DBInstanceId: String # @param LogBackupId: 日志备份ID。 # @type LogBackupId: String attr_accessor :DBInstanceId, :LogBackupId def initialize(dbinstanceid=nil, logbackupid=nil) @DBInstanceId = dbinstanceid @LogBackupId = logbackupid end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @LogBackupId = params['LogBackupId'] end end # DeleteLogBackup返回参数结构体 class DeleteLogBackupResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # DeleteParameterTemplate请求参数结构体 class DeleteParameterTemplateRequest < TencentCloud::Common::AbstractModel # @param TemplateId: 参数模板ID,用于唯一确认待操作的参数模板 # @type TemplateId: String attr_accessor :TemplateId def initialize(templateid=nil) @TemplateId = templateid end def deserialize(params) @TemplateId = params['TemplateId'] end end # DeleteParameterTemplate返回参数结构体 class DeleteParameterTemplateResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # DeleteReadOnlyGroupNetworkAccess请求参数结构体 class DeleteReadOnlyGroupNetworkAccessRequest < TencentCloud::Common::AbstractModel # @param ReadOnlyGroupId: RO组ID,形如:pgro-4t9c6g7k。 # @type ReadOnlyGroupId: String # @param VpcId: 私有网络统一 ID,若是基础网络则传"0"。 # @type VpcId: String # @param SubnetId: 子网ID,若是基础网络则传"0"。 # @type SubnetId: String # @param Vip: 目标VIP地址。 # @type Vip: String attr_accessor :ReadOnlyGroupId, :VpcId, :SubnetId, :Vip def initialize(readonlygroupid=nil, vpcid=nil, subnetid=nil, vip=nil) @ReadOnlyGroupId = readonlygroupid @VpcId = vpcid @SubnetId = subnetid @Vip = vip end def deserialize(params) @ReadOnlyGroupId = params['ReadOnlyGroupId'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @Vip = params['Vip'] end end # DeleteReadOnlyGroupNetworkAccess返回参数结构体 class DeleteReadOnlyGroupNetworkAccessResponse < TencentCloud::Common::AbstractModel # @param FlowId: 流程ID。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowId: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FlowId, :RequestId def initialize(flowid=nil, requestid=nil) @FlowId = flowid @RequestId = requestid end def deserialize(params) @FlowId = params['FlowId'] @RequestId = params['RequestId'] end end # DeleteReadOnlyGroup请求参数结构体 class DeleteReadOnlyGroupRequest < TencentCloud::Common::AbstractModel # @param ReadOnlyGroupId: 待删除只读组ID # @type ReadOnlyGroupId: String attr_accessor :ReadOnlyGroupId def initialize(readonlygroupid=nil) @ReadOnlyGroupId = readonlygroupid end def deserialize(params) @ReadOnlyGroupId = params['ReadOnlyGroupId'] end end # DeleteReadOnlyGroup返回参数结构体 class DeleteReadOnlyGroupResponse < TencentCloud::Common::AbstractModel # @param FlowId: 流程ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type FlowId: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FlowId, :RequestId def initialize(flowid=nil, requestid=nil) @FlowId = flowid @RequestId = requestid end def deserialize(params) @FlowId = params['FlowId'] @RequestId = params['RequestId'] end end # DeleteServerlessDBInstance请求参数结构体 class DeleteServerlessDBInstanceRequest < TencentCloud::Common::AbstractModel # @param DBInstanceName: DB实例名称,实例名和实例ID必须至少传一个,如果同时存在,将只以实例ID为准。 # @type DBInstanceName: String # @param DBInstanceId: DB实例ID,实例名和实例ID必须至少传一个,如果同时存在,将只以实例ID为准。 # @type DBInstanceId: String attr_accessor :DBInstanceName, :DBInstanceId def initialize(dbinstancename=nil, dbinstanceid=nil) @DBInstanceName = dbinstancename @DBInstanceId = dbinstanceid end def deserialize(params) @DBInstanceName = params['DBInstanceName'] @DBInstanceId = params['DBInstanceId'] end end # DeleteServerlessDBInstance返回参数结构体 class DeleteServerlessDBInstanceResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # DescribeAccounts请求参数结构体 class DescribeAccountsRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID,形如postgres-6fego161 # @type DBInstanceId: String # @param Limit: 分页返回,每页最大返回数目,默认10,取值范围为1-100 # @type Limit: Integer # @param Offset: 数据偏移量,从0开始。 # @type Offset: Integer # @param OrderBy: 返回数据按照创建时间或者用户名排序。取值只能为createTime或者name。createTime-按照创建时间排序;name-按照用户名排序 # @type OrderBy: String # @param OrderByType: 返回结果是升序还是降序。取值只能为desc或者asc。desc-降序;asc-升序 # @type OrderByType: String attr_accessor :DBInstanceId, :Limit, :Offset, :OrderBy, :OrderByType def initialize(dbinstanceid=nil, limit=nil, offset=nil, orderby=nil, orderbytype=nil) @DBInstanceId = dbinstanceid @Limit = limit @Offset = offset @OrderBy = orderby @OrderByType = orderbytype end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @Limit = params['Limit'] @Offset = params['Offset'] @OrderBy = params['OrderBy'] @OrderByType = params['OrderByType'] end end # DescribeAccounts返回参数结构体 class DescribeAccountsResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 本次调用接口共返回了多少条数据。 # @type TotalCount: Integer # @param Details: 账号列表详细信息。 # @type Details: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :Details, :RequestId def initialize(totalcount=nil, details=nil, requestid=nil) @TotalCount = totalcount @Details = details @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['Details'].nil? @Details = [] params['Details'].each do |i| accountinfo_tmp = AccountInfo.new accountinfo_tmp.deserialize(i) @Details << accountinfo_tmp end end @RequestId = params['RequestId'] end end # DescribeAvailableRecoveryTime请求参数结构体 class DescribeAvailableRecoveryTimeRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID # @type DBInstanceId: String attr_accessor :DBInstanceId def initialize(dbinstanceid=nil) @DBInstanceId = dbinstanceid end def deserialize(params) @DBInstanceId = params['DBInstanceId'] end end # DescribeAvailableRecoveryTime返回参数结构体 class DescribeAvailableRecoveryTimeResponse < TencentCloud::Common::AbstractModel # @param RecoveryBeginTime: 可恢复的最早时间,时区为东八区(UTC+8)。 # @type RecoveryBeginTime: String # @param RecoveryEndTime: 可恢复的最晚时间,时区为东八区(UTC+8)。 # @type RecoveryEndTime: String # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RecoveryBeginTime, :RecoveryEndTime, :RequestId def initialize(recoverybegintime=nil, recoveryendtime=nil, requestid=nil) @RecoveryBeginTime = recoverybegintime @RecoveryEndTime = recoveryendtime @RequestId = requestid end def deserialize(params) @RecoveryBeginTime = params['RecoveryBeginTime'] @RecoveryEndTime = params['RecoveryEndTime'] @RequestId = params['RequestId'] end end # DescribeBackupDownloadRestriction请求参数结构体 class DescribeBackupDownloadRestrictionRequest < TencentCloud::Common::AbstractModel def initialize() end def deserialize(params) end end # DescribeBackupDownloadRestriction返回参数结构体 class DescribeBackupDownloadRestrictionResponse < TencentCloud::Common::AbstractModel # @param RestrictionType: 备份文件下载限制类型,NONE 无限制,内外网都可以下载;INTRANET 只允许内网下载;CUSTOMIZE 自定义限制下载的vpc或ip。 # @type RestrictionType: String # @param VpcRestrictionEffect: vpc限制效力,ALLOW 允许;DENY 拒绝。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type VpcRestrictionEffect: String # @param VpcIdSet: 允许或拒绝下载备份文件的vpcId列表。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type VpcIdSet: Array # @param IpRestrictionEffect: ip限制效力,ALLOW 允许;DENY 拒绝。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type IpRestrictionEffect: String # @param IpSet: 允许或拒绝下载备份文件的ip列表。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type IpSet: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RestrictionType, :VpcRestrictionEffect, :VpcIdSet, :IpRestrictionEffect, :IpSet, :RequestId def initialize(restrictiontype=nil, vpcrestrictioneffect=nil, vpcidset=nil, iprestrictioneffect=nil, ipset=nil, requestid=nil) @RestrictionType = restrictiontype @VpcRestrictionEffect = vpcrestrictioneffect @VpcIdSet = vpcidset @IpRestrictionEffect = iprestrictioneffect @IpSet = ipset @RequestId = requestid end def deserialize(params) @RestrictionType = params['RestrictionType'] @VpcRestrictionEffect = params['VpcRestrictionEffect'] @VpcIdSet = params['VpcIdSet'] @IpRestrictionEffect = params['IpRestrictionEffect'] @IpSet = params['IpSet'] @RequestId = params['RequestId'] end end # DescribeBackupDownloadURL请求参数结构体 class DescribeBackupDownloadURLRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID。 # @type DBInstanceId: String # @param BackupType: 备份类型,目前支持:LogBackup,BaseBackup。 # @type BackupType: String # @param BackupId: 备份的唯一ID。 # @type BackupId: String # @param URLExpireTime: 链接的有效时间,默认为12小时。 # @type URLExpireTime: Integer # @param BackupDownloadRestriction: 备份下载限制 # @type BackupDownloadRestriction: :class:`Tencentcloud::Postgres.v20170312.models.BackupDownloadRestriction` attr_accessor :DBInstanceId, :BackupType, :BackupId, :URLExpireTime, :BackupDownloadRestriction def initialize(dbinstanceid=nil, backuptype=nil, backupid=nil, urlexpiretime=nil, backupdownloadrestriction=nil) @DBInstanceId = dbinstanceid @BackupType = backuptype @BackupId = backupid @URLExpireTime = urlexpiretime @BackupDownloadRestriction = backupdownloadrestriction end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @BackupType = params['BackupType'] @BackupId = params['BackupId'] @URLExpireTime = params['URLExpireTime'] unless params['BackupDownloadRestriction'].nil? @BackupDownloadRestriction = BackupDownloadRestriction.new @BackupDownloadRestriction.deserialize(params['BackupDownloadRestriction']) end end end # DescribeBackupDownloadURL返回参数结构体 class DescribeBackupDownloadURLResponse < TencentCloud::Common::AbstractModel # @param BackupDownloadURL: 备份的下载地址。 # @type BackupDownloadURL: String # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :BackupDownloadURL, :RequestId def initialize(backupdownloadurl=nil, requestid=nil) @BackupDownloadURL = backupdownloadurl @RequestId = requestid end def deserialize(params) @BackupDownloadURL = params['BackupDownloadURL'] @RequestId = params['RequestId'] end end # DescribeBackupOverview请求参数结构体 class DescribeBackupOverviewRequest < TencentCloud::Common::AbstractModel def initialize() end def deserialize(params) end end # DescribeBackupOverview返回参数结构体 class DescribeBackupOverviewResponse < TencentCloud::Common::AbstractModel # @param TotalFreeSize: 总免费空间大小,单位byte。 # @type TotalFreeSize: Integer # @param UsedFreeSize: 已使用免费空间大小,单位byte。 # @type UsedFreeSize: Integer # @param UsedBillingSize: 已使用收费空间大小,单位byte。 # @type UsedBillingSize: Integer # @param LogBackupCount: 日志备份数量。 # @type LogBackupCount: Integer # @param LogBackupSize: 日志备份大小,单位byte。 # @type LogBackupSize: Integer # @param ManualBaseBackupCount: 手动创建的基础备份数量。 # @type ManualBaseBackupCount: Integer # @param ManualBaseBackupSize: 手动创建的基础备份大小,单位byte。 # @type ManualBaseBackupSize: Integer # @param AutoBaseBackupCount: 自动创建的基础备份数量。 # @type AutoBaseBackupCount: Integer # @param AutoBaseBackupSize: 自动创建的基础备份大小,单位byte。 # @type AutoBaseBackupSize: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalFreeSize, :UsedFreeSize, :UsedBillingSize, :LogBackupCount, :LogBackupSize, :ManualBaseBackupCount, :ManualBaseBackupSize, :AutoBaseBackupCount, :AutoBaseBackupSize, :RequestId def initialize(totalfreesize=nil, usedfreesize=nil, usedbillingsize=nil, logbackupcount=nil, logbackupsize=nil, manualbasebackupcount=nil, manualbasebackupsize=nil, autobasebackupcount=nil, autobasebackupsize=nil, requestid=nil) @TotalFreeSize = totalfreesize @UsedFreeSize = usedfreesize @UsedBillingSize = usedbillingsize @LogBackupCount = logbackupcount @LogBackupSize = logbackupsize @ManualBaseBackupCount = manualbasebackupcount @ManualBaseBackupSize = manualbasebackupsize @AutoBaseBackupCount = autobasebackupcount @AutoBaseBackupSize = autobasebackupsize @RequestId = requestid end def deserialize(params) @TotalFreeSize = params['TotalFreeSize'] @UsedFreeSize = params['UsedFreeSize'] @UsedBillingSize = params['UsedBillingSize'] @LogBackupCount = params['LogBackupCount'] @LogBackupSize = params['LogBackupSize'] @ManualBaseBackupCount = params['ManualBaseBackupCount'] @ManualBaseBackupSize = params['ManualBaseBackupSize'] @AutoBaseBackupCount = params['AutoBaseBackupCount'] @AutoBaseBackupSize = params['AutoBaseBackupSize'] @RequestId = params['RequestId'] end end # DescribeBackupPlans请求参数结构体 class DescribeBackupPlansRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID # @type DBInstanceId: String attr_accessor :DBInstanceId def initialize(dbinstanceid=nil) @DBInstanceId = dbinstanceid end def deserialize(params) @DBInstanceId = params['DBInstanceId'] end end # DescribeBackupPlans返回参数结构体 class DescribeBackupPlansResponse < TencentCloud::Common::AbstractModel # @param Plans: 实例的备份计划集 # @type Plans: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Plans, :RequestId def initialize(plans=nil, requestid=nil) @Plans = plans @RequestId = requestid end def deserialize(params) unless params['Plans'].nil? @Plans = [] params['Plans'].each do |i| backupplan_tmp = BackupPlan.new backupplan_tmp.deserialize(i) @Plans << backupplan_tmp end end @RequestId = params['RequestId'] end end # DescribeBackupSummaries请求参数结构体 class DescribeBackupSummariesRequest < TencentCloud::Common::AbstractModel # @param Limit: 每页显示数量,取值范围为1-100,默认为返回10条。 # @type Limit: Integer # @param Offset: 数据偏移量,从0开始。 # @type Offset: Integer # @param Filters: 按照一个或者多个过滤条件进行查询,目前支持的过滤条件有: # db-instance-id:按照实例ID过滤,类型为string。 # db-instance-name:按照实例名过滤,类型为string。 # db-instance-ip:按照实例私有网络IP地址过滤,类型为string。 # @type Filters: Array # @param OrderBy: 排序字段,支持TotalBackupSize,LogBackupSize,ManualBaseBackupSize,AutoBaseBackupSize。 # @type OrderBy: String # @param OrderByType: 排序方式,包括升序:asc,降序:desc。 # @type OrderByType: String attr_accessor :Limit, :Offset, :Filters, :OrderBy, :OrderByType def initialize(limit=nil, offset=nil, filters=nil, orderby=nil, orderbytype=nil) @Limit = limit @Offset = offset @Filters = filters @OrderBy = orderby @OrderByType = orderbytype end def deserialize(params) @Limit = params['Limit'] @Offset = params['Offset'] unless params['Filters'].nil? @Filters = [] params['Filters'].each do |i| filter_tmp = Filter.new filter_tmp.deserialize(i) @Filters << filter_tmp end end @OrderBy = params['OrderBy'] @OrderByType = params['OrderByType'] end end # DescribeBackupSummaries返回参数结构体 class DescribeBackupSummariesResponse < TencentCloud::Common::AbstractModel # @param BackupSummarySet: 备份统计信息列表。 # @type BackupSummarySet: Array # @param TotalCount: 查询到的所有备份信息数量。 # @type TotalCount: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :BackupSummarySet, :TotalCount, :RequestId def initialize(backupsummaryset=nil, totalcount=nil, requestid=nil) @BackupSummarySet = backupsummaryset @TotalCount = totalcount @RequestId = requestid end def deserialize(params) unless params['BackupSummarySet'].nil? @BackupSummarySet = [] params['BackupSummarySet'].each do |i| backupsummary_tmp = BackupSummary.new backupsummary_tmp.deserialize(i) @BackupSummarySet << backupsummary_tmp end end @TotalCount = params['TotalCount'] @RequestId = params['RequestId'] end end # DescribeBaseBackups请求参数结构体 class DescribeBaseBackupsRequest < TencentCloud::Common::AbstractModel # @param MinFinishTime: 备份的最小结束时间,形如2018-01-01 00:00:00。默认为7天前。 # @type MinFinishTime: String # @param MaxFinishTime: 备份的最大结束时间,形如2018-01-01 00:00:00。默认为当前时间。 # @type MaxFinishTime: String # @param Filters: 按照一个或者多个过滤条件进行查询,目前支持的过滤条件有: # db-instance-id:按照实例ID过滤,类型为string。 # db-instance-name:按照实例名过滤,类型为string。 # db-instance-ip:按照实例私有网络IP地址过滤,类型为string。 # base-backup-id:按照备份集ID过滤,类型为string。 # @type Filters: Array # @param Limit: 每页显示数量,取值范围为1-100,默认为返回10条。 # @type Limit: Integer # @param Offset: 数据偏移量,从0开始。 # @type Offset: Integer # @param OrderBy: 排序字段,支持StartTime,FinishTime,Size。 # @type OrderBy: String # @param OrderByType: 排序方式,包括升序:asc,降序:desc。 # @type OrderByType: String attr_accessor :MinFinishTime, :MaxFinishTime, :Filters, :Limit, :Offset, :OrderBy, :OrderByType def initialize(minfinishtime=nil, maxfinishtime=nil, filters=nil, limit=nil, offset=nil, orderby=nil, orderbytype=nil) @MinFinishTime = minfinishtime @MaxFinishTime = maxfinishtime @Filters = filters @Limit = limit @Offset = offset @OrderBy = orderby @OrderByType = orderbytype end def deserialize(params) @MinFinishTime = params['MinFinishTime'] @MaxFinishTime = params['MaxFinishTime'] unless params['Filters'].nil? @Filters = [] params['Filters'].each do |i| filter_tmp = Filter.new filter_tmp.deserialize(i) @Filters << filter_tmp end end @Limit = params['Limit'] @Offset = params['Offset'] @OrderBy = params['OrderBy'] @OrderByType = params['OrderByType'] end end # DescribeBaseBackups返回参数结构体 class DescribeBaseBackupsResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 查询到的数据备份数量。 # @type TotalCount: Integer # @param BaseBackupSet: 数据备份详细信息列表。 # @type BaseBackupSet: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :BaseBackupSet, :RequestId def initialize(totalcount=nil, basebackupset=nil, requestid=nil) @TotalCount = totalcount @BaseBackupSet = basebackupset @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['BaseBackupSet'].nil? @BaseBackupSet = [] params['BaseBackupSet'].each do |i| basebackup_tmp = BaseBackup.new basebackup_tmp.deserialize(i) @BaseBackupSet << basebackup_tmp end end @RequestId = params['RequestId'] end end # DescribeClasses请求参数结构体 class DescribeClassesRequest < TencentCloud::Common::AbstractModel # @param Zone: 可用区ID。可以通过接口DescribeZones获取。 # @type Zone: String # @param DBEngine: 数据库引擎,支持: # 1、postgresql(云数据库PostgreSQL); # 2、mssql_compatible(MSSQL兼容-云数据库PostgreSQL); # @type DBEngine: String # @param DBMajorVersion: 数据库主版本号。例如12,13,可以通过接口DescribeDBVersions获取。 # @type DBMajorVersion: String attr_accessor :Zone, :DBEngine, :DBMajorVersion def initialize(zone=nil, dbengine=nil, dbmajorversion=nil) @Zone = zone @DBEngine = dbengine @DBMajorVersion = dbmajorversion end def deserialize(params) @Zone = params['Zone'] @DBEngine = params['DBEngine'] @DBMajorVersion = params['DBMajorVersion'] end end # DescribeClasses返回参数结构体 class DescribeClassesResponse < TencentCloud::Common::AbstractModel # @param ClassInfoSet: 数据库规格列表 # @type ClassInfoSet: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :ClassInfoSet, :RequestId def initialize(classinfoset=nil, requestid=nil) @ClassInfoSet = classinfoset @RequestId = requestid end def deserialize(params) unless params['ClassInfoSet'].nil? @ClassInfoSet = [] params['ClassInfoSet'].each do |i| classinfo_tmp = ClassInfo.new classinfo_tmp.deserialize(i) @ClassInfoSet << classinfo_tmp end end @RequestId = params['RequestId'] end end # DescribeCloneDBInstanceSpec请求参数结构体 class DescribeCloneDBInstanceSpecRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID。 # @type DBInstanceId: String # @param BackupSetId: 基础备份集ID,此入参和RecoveryTargetTime必须选择一个传入。如与RecoveryTargetTime参数同时设置,则以此参数为准。 # @type BackupSetId: String # @param RecoveryTargetTime: 恢复目标时间,此入参和BackupSetId必须选择一个传入。时区以东八区(UTC+8)为准。 # @type RecoveryTargetTime: String attr_accessor :DBInstanceId, :BackupSetId, :RecoveryTargetTime def initialize(dbinstanceid=nil, backupsetid=nil, recoverytargettime=nil) @DBInstanceId = dbinstanceid @BackupSetId = backupsetid @RecoveryTargetTime = recoverytargettime end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @BackupSetId = params['BackupSetId'] @RecoveryTargetTime = params['RecoveryTargetTime'] end end # DescribeCloneDBInstanceSpec返回参数结构体 class DescribeCloneDBInstanceSpecResponse < TencentCloud::Common::AbstractModel # @param MinSpecCode: 可购买的最小规格码。 # @type MinSpecCode: String # @param MinStorage: 可购买的最小磁盘容量,单位GB。 # @type MinStorage: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :MinSpecCode, :MinStorage, :RequestId def initialize(minspeccode=nil, minstorage=nil, requestid=nil) @MinSpecCode = minspeccode @MinStorage = minstorage @RequestId = requestid end def deserialize(params) @MinSpecCode = params['MinSpecCode'] @MinStorage = params['MinStorage'] @RequestId = params['RequestId'] end end # DescribeDBBackups请求参数结构体 class DescribeDBBackupsRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID,形如postgres-4wdeb0zv。 # @type DBInstanceId: String # @param Type: 备份方式(1-全量)。目前只支持全量,取值为1。 # @type Type: Integer # @param StartTime: 查询开始时间,形如2018-06-10 17:06:38,起始时间不得小于7天以前 # @type StartTime: String # @param EndTime: 查询结束时间,形如2018-06-10 17:06:38 # @type EndTime: String # @param Limit: 备份列表分页返回,每页返回数量,默认为 20,最小为1,最大值为 100。(当该参数不传或者传0时按默认值处理) # @type Limit: Integer # @param Offset: 返回结果中的第几页,从第0页开始。默认为0。 # @type Offset: Integer attr_accessor :DBInstanceId, :Type, :StartTime, :EndTime, :Limit, :Offset def initialize(dbinstanceid=nil, type=nil, starttime=nil, endtime=nil, limit=nil, offset=nil) @DBInstanceId = dbinstanceid @Type = type @StartTime = starttime @EndTime = endtime @Limit = limit @Offset = offset end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @Type = params['Type'] @StartTime = params['StartTime'] @EndTime = params['EndTime'] @Limit = params['Limit'] @Offset = params['Offset'] end end # DescribeDBBackups返回参数结构体 class DescribeDBBackupsResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 返回备份列表中备份文件的个数 # @type TotalCount: Integer # @param BackupList: 备份列表 # @type BackupList: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :BackupList, :RequestId def initialize(totalcount=nil, backuplist=nil, requestid=nil) @TotalCount = totalcount @BackupList = backuplist @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['BackupList'].nil? @BackupList = [] params['BackupList'].each do |i| dbbackup_tmp = DBBackup.new dbbackup_tmp.deserialize(i) @BackupList << dbbackup_tmp end end @RequestId = params['RequestId'] end end # DescribeDBErrlogs请求参数结构体 class DescribeDBErrlogsRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID。 # @type DBInstanceId: String # @param StartTime: 查询起始时间,形如2018-01-01 00:00:00。日志保留时间默认为7天,起始时间不能超出保留时间范围。 # @type StartTime: String # @param EndTime: 查询结束时间,形如2018-01-01 00:00:00。 # @type EndTime: String # @param DatabaseName: 数据库名字。 # @type DatabaseName: String # @param SearchKeys: 搜索关键字。 # @type SearchKeys: Array # @param Limit: 每页显示数量,取值范围为1-100。默认值为50。 # @type Limit: Integer # @param Offset: 数据偏移量,从0开始。默认值为0。 # @type Offset: Integer attr_accessor :DBInstanceId, :StartTime, :EndTime, :DatabaseName, :SearchKeys, :Limit, :Offset def initialize(dbinstanceid=nil, starttime=nil, endtime=nil, databasename=nil, searchkeys=nil, limit=nil, offset=nil) @DBInstanceId = dbinstanceid @StartTime = starttime @EndTime = endtime @DatabaseName = databasename @SearchKeys = searchkeys @Limit = limit @Offset = offset end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @StartTime = params['StartTime'] @EndTime = params['EndTime'] @DatabaseName = params['DatabaseName'] @SearchKeys = params['SearchKeys'] @Limit = params['Limit'] @Offset = params['Offset'] end end # DescribeDBErrlogs返回参数结构体 class DescribeDBErrlogsResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 查询到的日志数量,最大值为10000条。 # @type TotalCount: Integer # @param Details: 错误日志详细信息集合。 # @type Details: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :Details, :RequestId def initialize(totalcount=nil, details=nil, requestid=nil) @TotalCount = totalcount @Details = details @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['Details'].nil? @Details = [] params['Details'].each do |i| errlogdetail_tmp = ErrLogDetail.new errlogdetail_tmp.deserialize(i) @Details << errlogdetail_tmp end end @RequestId = params['RequestId'] end end # DescribeDBInstanceAttribute请求参数结构体 class DescribeDBInstanceAttributeRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID # @type DBInstanceId: String attr_accessor :DBInstanceId def initialize(dbinstanceid=nil) @DBInstanceId = dbinstanceid end def deserialize(params) @DBInstanceId = params['DBInstanceId'] end end # DescribeDBInstanceAttribute返回参数结构体 class DescribeDBInstanceAttributeResponse < TencentCloud::Common::AbstractModel # @param DBInstance: 实例详细信息。 # @type DBInstance: :class:`Tencentcloud::Postgres.v20170312.models.DBInstance` # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :DBInstance, :RequestId def initialize(dbinstance=nil, requestid=nil) @DBInstance = dbinstance @RequestId = requestid end def deserialize(params) unless params['DBInstance'].nil? @DBInstance = DBInstance.new @DBInstance.deserialize(params['DBInstance']) end @RequestId = params['RequestId'] end end # DescribeDBInstanceHAConfig请求参数结构体 class DescribeDBInstanceHAConfigRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID # @type DBInstanceId: String attr_accessor :DBInstanceId def initialize(dbinstanceid=nil) @DBInstanceId = dbinstanceid end def deserialize(params) @DBInstanceId = params['DBInstanceId'] end end # DescribeDBInstanceHAConfig返回参数结构体 class DescribeDBInstanceHAConfigResponse < TencentCloud::Common::AbstractModel # @param SyncMode: 主从同步方式: #
  • Semi-sync:半同步 #
  • Async:异步 # @type SyncMode: String # @param MaxStandbyLatency: 高可用备机最大延迟数据量。备节点延迟数据量小于等于该值,且备节点延迟时间小于等于MaxStandbyLag时,可以切换为主节点。 #
  • 单位:byte #
  • 参数范围:[1073741824, 322122547200] # @type MaxStandbyLatency: Integer # @param MaxStandbyLag: 高可用备机最大延迟时间。备节点延迟时间小于等于该值,且备节点延迟数据量小于等于MaxStandbyLatency时,可以切换为主节点。 #
  • 单位:s #
  • 参数范围:[5, 10] # @type MaxStandbyLag: Integer # @param MaxSyncStandbyLatency: 同步备机最大延迟数据量。备机延迟数据量小于等于该值,且该备机延迟时间小于等于MaxSyncStandbyLag时,则该备机采用同步复制;否则,采用异步复制。 # 该参数值针对SyncMode设置为Semi-sync的实例有效。 # 异步实例该字段返回null。 # 半同步实例禁止退化为异步复制时,该字段返回null。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type MaxSyncStandbyLatency: Integer # @param MaxSyncStandbyLag: 同步备机最大延迟时间。备机延迟时间小于等于该值,且该备机延迟数据量小于等于MaxSyncStandbyLatency时,则该备机采用同步复制;否则,采用异步复制。 # 该参数值针对SyncMode设置为Semi-sync的实例有效。 # 异步实例不返回该字段。 # 半同步实例禁止退化为异步复制时,不返回该字段。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type MaxSyncStandbyLag: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :SyncMode, :MaxStandbyLatency, :MaxStandbyLag, :MaxSyncStandbyLatency, :MaxSyncStandbyLag, :RequestId def initialize(syncmode=nil, maxstandbylatency=nil, maxstandbylag=nil, maxsyncstandbylatency=nil, maxsyncstandbylag=nil, requestid=nil) @SyncMode = syncmode @MaxStandbyLatency = maxstandbylatency @MaxStandbyLag = maxstandbylag @MaxSyncStandbyLatency = maxsyncstandbylatency @MaxSyncStandbyLag = maxsyncstandbylag @RequestId = requestid end def deserialize(params) @SyncMode = params['SyncMode'] @MaxStandbyLatency = params['MaxStandbyLatency'] @MaxStandbyLag = params['MaxStandbyLag'] @MaxSyncStandbyLatency = params['MaxSyncStandbyLatency'] @MaxSyncStandbyLag = params['MaxSyncStandbyLag'] @RequestId = params['RequestId'] end end # DescribeDBInstanceParameters请求参数结构体 class DescribeDBInstanceParametersRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID # @type DBInstanceId: String # @param ParamName: 查询指定参数详情。ParamName为空或不传,默认返回全部参数列表 # @type ParamName: String attr_accessor :DBInstanceId, :ParamName def initialize(dbinstanceid=nil, paramname=nil) @DBInstanceId = dbinstanceid @ParamName = paramname end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @ParamName = params['ParamName'] end end # DescribeDBInstanceParameters返回参数结构体 class DescribeDBInstanceParametersResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 参数列表总数 # @type TotalCount: Integer # @param Detail: 参数列表返回详情 # @type Detail: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :Detail, :RequestId def initialize(totalcount=nil, detail=nil, requestid=nil) @TotalCount = totalcount @Detail = detail @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['Detail'].nil? @Detail = [] params['Detail'].each do |i| paraminfo_tmp = ParamInfo.new paraminfo_tmp.deserialize(i) @Detail << paraminfo_tmp end end @RequestId = params['RequestId'] end end # DescribeDBInstanceSecurityGroups请求参数结构体 class DescribeDBInstanceSecurityGroupsRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID,DBInstanceId和ReadOnlyGroupId至少传一个;如果都传,忽略ReadOnlyGroupId # @type DBInstanceId: String # @param ReadOnlyGroupId: 只读组ID,DBInstanceId和ReadOnlyGroupId至少传一个;如果要查询只读组关联的安全组,只传ReadOnlyGroupId # @type ReadOnlyGroupId: String attr_accessor :DBInstanceId, :ReadOnlyGroupId def initialize(dbinstanceid=nil, readonlygroupid=nil) @DBInstanceId = dbinstanceid @ReadOnlyGroupId = readonlygroupid end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @ReadOnlyGroupId = params['ReadOnlyGroupId'] end end # DescribeDBInstanceSecurityGroups返回参数结构体 class DescribeDBInstanceSecurityGroupsResponse < TencentCloud::Common::AbstractModel # @param SecurityGroupSet: 安全组信息数组 # @type SecurityGroupSet: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :SecurityGroupSet, :RequestId def initialize(securitygroupset=nil, requestid=nil) @SecurityGroupSet = securitygroupset @RequestId = requestid end def deserialize(params) unless params['SecurityGroupSet'].nil? @SecurityGroupSet = [] params['SecurityGroupSet'].each do |i| securitygroup_tmp = SecurityGroup.new securitygroup_tmp.deserialize(i) @SecurityGroupSet << securitygroup_tmp end end @RequestId = params['RequestId'] end end # DescribeDBInstances请求参数结构体 class DescribeDBInstancesRequest < TencentCloud::Common::AbstractModel # @param Filters: 按照一个或者多个过滤条件进行查询,目前支持的过滤条件有: # db-instance-id:按照实例ID过滤,类型为string # db-instance-name:按照实例名过滤,类型为string # db-project-id:按照项目ID过滤,类型为integer # db-pay-mode:按照付费模式过滤,类型为string # db-tag-key:按照标签键过滤,类型为string # @type Filters: Array # @param Limit: 每页显示数量,取值范围为1-100,默认为返回10条。 # @type Limit: Integer # @param Offset: 数据偏移量,从0开始。 # @type Offset: Integer # @param OrderBy: 排序指标,如实例名、创建时间等,支持DBInstanceId,CreateTime,Name,EndTime # @type OrderBy: String # @param OrderByType: 排序方式,包括升序:asc、降序:desc。 # @type OrderByType: String attr_accessor :Filters, :Limit, :Offset, :OrderBy, :OrderByType def initialize(filters=nil, limit=nil, offset=nil, orderby=nil, orderbytype=nil) @Filters = filters @Limit = limit @Offset = offset @OrderBy = orderby @OrderByType = orderbytype end def deserialize(params) unless params['Filters'].nil? @Filters = [] params['Filters'].each do |i| filter_tmp = Filter.new filter_tmp.deserialize(i) @Filters << filter_tmp end end @Limit = params['Limit'] @Offset = params['Offset'] @OrderBy = params['OrderBy'] @OrderByType = params['OrderByType'] end end # DescribeDBInstances返回参数结构体 class DescribeDBInstancesResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 查询到的实例数量。 # @type TotalCount: Integer # @param DBInstanceSet: 实例详细信息集合。 # @type DBInstanceSet: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :DBInstanceSet, :RequestId def initialize(totalcount=nil, dbinstanceset=nil, requestid=nil) @TotalCount = totalcount @DBInstanceSet = dbinstanceset @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['DBInstanceSet'].nil? @DBInstanceSet = [] params['DBInstanceSet'].each do |i| dbinstance_tmp = DBInstance.new dbinstance_tmp.deserialize(i) @DBInstanceSet << dbinstance_tmp end end @RequestId = params['RequestId'] end end # DescribeDBSlowlogs请求参数结构体 class DescribeDBSlowlogsRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID,形如postgres-lnp6j617 # @type DBInstanceId: String # @param StartTime: 查询起始时间,形如2018-06-10 17:06:38,起始时间不得小于7天以前 # @type StartTime: String # @param EndTime: 查询结束时间,形如2018-06-10 17:06:38 # @type EndTime: String # @param DatabaseName: 数据库名字 # @type DatabaseName: String # @param OrderBy: 按照何种指标排序,取值为sum_calls或者sum_cost_time。sum_calls-总调用次数;sum_cost_time-总的花费时间 # @type OrderBy: String # @param OrderByType: 排序规则。desc-降序;asc-升序 # @type OrderByType: String # @param Limit: 分页返回结果,每页最大返回数量,取值为1-100,默认20 # @type Limit: Integer # @param Offset: 分页返回结果,返回结果的第几页,从0开始计数 # @type Offset: Integer attr_accessor :DBInstanceId, :StartTime, :EndTime, :DatabaseName, :OrderBy, :OrderByType, :Limit, :Offset def initialize(dbinstanceid=nil, starttime=nil, endtime=nil, databasename=nil, orderby=nil, orderbytype=nil, limit=nil, offset=nil) @DBInstanceId = dbinstanceid @StartTime = starttime @EndTime = endtime @DatabaseName = databasename @OrderBy = orderby @OrderByType = orderbytype @Limit = limit @Offset = offset end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @StartTime = params['StartTime'] @EndTime = params['EndTime'] @DatabaseName = params['DatabaseName'] @OrderBy = params['OrderBy'] @OrderByType = params['OrderByType'] @Limit = params['Limit'] @Offset = params['Offset'] end end # DescribeDBSlowlogs返回参数结构体 class DescribeDBSlowlogsResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 本次返回多少条数据 # @type TotalCount: Integer # @param Detail: 慢查询日志详情 # @type Detail: :class:`Tencentcloud::Postgres.v20170312.models.SlowlogDetail` # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :Detail, :RequestId def initialize(totalcount=nil, detail=nil, requestid=nil) @TotalCount = totalcount @Detail = detail @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['Detail'].nil? @Detail = SlowlogDetail.new @Detail.deserialize(params['Detail']) end @RequestId = params['RequestId'] end end # DescribeDBVersions请求参数结构体 class DescribeDBVersionsRequest < TencentCloud::Common::AbstractModel def initialize() end def deserialize(params) end end # DescribeDBVersions返回参数结构体 class DescribeDBVersionsResponse < TencentCloud::Common::AbstractModel # @param VersionSet: 数据库版本号信息列表 # @type VersionSet: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :VersionSet, :RequestId def initialize(versionset=nil, requestid=nil) @VersionSet = versionset @RequestId = requestid end def deserialize(params) unless params['VersionSet'].nil? @VersionSet = [] params['VersionSet'].each do |i| version_tmp = Version.new version_tmp.deserialize(i) @VersionSet << version_tmp end end @RequestId = params['RequestId'] end end # DescribeDBXlogs请求参数结构体 class DescribeDBXlogsRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID,形如postgres-4wdeb0zv。 # @type DBInstanceId: String # @param StartTime: 查询开始时间,形如2018-06-10 17:06:38,起始时间不得小于7天以前 # @type StartTime: String # @param EndTime: 查询结束时间,形如2018-06-10 17:06:38 # @type EndTime: String # @param Offset: 分页返回,表示返回第几页的条目。从第0页开始计数。 # @type Offset: Integer # @param Limit: 分页返回,表示每页有多少条目。取值为1-100。 # @type Limit: Integer attr_accessor :DBInstanceId, :StartTime, :EndTime, :Offset, :Limit def initialize(dbinstanceid=nil, starttime=nil, endtime=nil, offset=nil, limit=nil) @DBInstanceId = dbinstanceid @StartTime = starttime @EndTime = endtime @Offset = offset @Limit = limit end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @StartTime = params['StartTime'] @EndTime = params['EndTime'] @Offset = params['Offset'] @Limit = params['Limit'] end end # DescribeDBXlogs返回参数结构体 class DescribeDBXlogsResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 表示此次返回结果有多少条数据。 # @type TotalCount: Integer # @param XlogList: Xlog列表 # @type XlogList: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :XlogList, :RequestId def initialize(totalcount=nil, xloglist=nil, requestid=nil) @TotalCount = totalcount @XlogList = xloglist @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['XlogList'].nil? @XlogList = [] params['XlogList'].each do |i| xlog_tmp = Xlog.new xlog_tmp.deserialize(i) @XlogList << xlog_tmp end end @RequestId = params['RequestId'] end end # DescribeDatabases请求参数结构体 class DescribeDatabasesRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID # @type DBInstanceId: String attr_accessor :DBInstanceId def initialize(dbinstanceid=nil) @DBInstanceId = dbinstanceid end def deserialize(params) @DBInstanceId = params['DBInstanceId'] end end # DescribeDatabases返回参数结构体 class DescribeDatabasesResponse < TencentCloud::Common::AbstractModel # @param Items: 数据库信息 # @type Items: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Items, :RequestId def initialize(items=nil, requestid=nil) @Items = items @RequestId = requestid end def deserialize(params) @Items = params['Items'] @RequestId = params['RequestId'] end end # DescribeDefaultParameters请求参数结构体 class DescribeDefaultParametersRequest < TencentCloud::Common::AbstractModel # @param DBMajorVersion: 数据库版本,大版本号,例如11,12,13 # @type DBMajorVersion: String # @param DBEngine: 数据库引擎,例如:postgresql,mssql_compatible # @type DBEngine: String attr_accessor :DBMajorVersion, :DBEngine def initialize(dbmajorversion=nil, dbengine=nil) @DBMajorVersion = dbmajorversion @DBEngine = dbengine end def deserialize(params) @DBMajorVersion = params['DBMajorVersion'] @DBEngine = params['DBEngine'] end end # DescribeDefaultParameters返回参数结构体 class DescribeDefaultParametersResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 参数个数 # @type TotalCount: Integer # @param ParamInfoSet: 参数信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ParamInfoSet: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :ParamInfoSet, :RequestId def initialize(totalcount=nil, paraminfoset=nil, requestid=nil) @TotalCount = totalcount @ParamInfoSet = paraminfoset @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['ParamInfoSet'].nil? @ParamInfoSet = [] params['ParamInfoSet'].each do |i| paraminfo_tmp = ParamInfo.new paraminfo_tmp.deserialize(i) @ParamInfoSet << paraminfo_tmp end end @RequestId = params['RequestId'] end end # DescribeEncryptionKeys请求参数结构体 class DescribeEncryptionKeysRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID。 # @type DBInstanceId: String attr_accessor :DBInstanceId def initialize(dbinstanceid=nil) @DBInstanceId = dbinstanceid end def deserialize(params) @DBInstanceId = params['DBInstanceId'] end end # DescribeEncryptionKeys返回参数结构体 class DescribeEncryptionKeysResponse < TencentCloud::Common::AbstractModel # @param EncryptionKeys: 实例密钥信息列表。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type EncryptionKeys: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :EncryptionKeys, :RequestId def initialize(encryptionkeys=nil, requestid=nil) @EncryptionKeys = encryptionkeys @RequestId = requestid end def deserialize(params) unless params['EncryptionKeys'].nil? @EncryptionKeys = [] params['EncryptionKeys'].each do |i| encryptionkey_tmp = EncryptionKey.new encryptionkey_tmp.deserialize(i) @EncryptionKeys << encryptionkey_tmp end end @RequestId = params['RequestId'] end end # DescribeLogBackups请求参数结构体 class DescribeLogBackupsRequest < TencentCloud::Common::AbstractModel # @param MinFinishTime: 备份的最小结束时间,形如2018-01-01 00:00:00。默认为7天前。 # @type MinFinishTime: String # @param MaxFinishTime: 备份的最大结束时间,形如2018-01-01 00:00:00。默认为当前时间。 # @type MaxFinishTime: String # @param Filters: 按照一个或者多个过滤条件进行查询,目前支持的过滤条件有: # db-instance-id:按照实例ID过滤,类型为string。 # db-instance-name:按照实例名过滤,类型为string。 # db-instance-ip:按照实例私有网络IP地址过滤,类型为string。 # @type Filters: Array # @param Limit: 每页显示数量,取值范围为1-100,默认为返回10条。 # @type Limit: Integer # @param Offset: 数据偏移量,从0开始。 # @type Offset: Integer # @param OrderBy: 排序字段,支持StartTime,FinishTime,Size。 # @type OrderBy: String # @param OrderByType: 排序方式,包括升序:asc,降序:desc。 # @type OrderByType: String attr_accessor :MinFinishTime, :MaxFinishTime, :Filters, :Limit, :Offset, :OrderBy, :OrderByType def initialize(minfinishtime=nil, maxfinishtime=nil, filters=nil, limit=nil, offset=nil, orderby=nil, orderbytype=nil) @MinFinishTime = minfinishtime @MaxFinishTime = maxfinishtime @Filters = filters @Limit = limit @Offset = offset @OrderBy = orderby @OrderByType = orderbytype end def deserialize(params) @MinFinishTime = params['MinFinishTime'] @MaxFinishTime = params['MaxFinishTime'] unless params['Filters'].nil? @Filters = [] params['Filters'].each do |i| filter_tmp = Filter.new filter_tmp.deserialize(i) @Filters << filter_tmp end end @Limit = params['Limit'] @Offset = params['Offset'] @OrderBy = params['OrderBy'] @OrderByType = params['OrderByType'] end end # DescribeLogBackups返回参数结构体 class DescribeLogBackupsResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 查询到的日志备份数量。 # @type TotalCount: Integer # @param LogBackupSet: 日志备份详细信息列表。 # @type LogBackupSet: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :LogBackupSet, :RequestId def initialize(totalcount=nil, logbackupset=nil, requestid=nil) @TotalCount = totalcount @LogBackupSet = logbackupset @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['LogBackupSet'].nil? @LogBackupSet = [] params['LogBackupSet'].each do |i| logbackup_tmp = LogBackup.new logbackup_tmp.deserialize(i) @LogBackupSet << logbackup_tmp end end @RequestId = params['RequestId'] end end # DescribeOrders请求参数结构体 class DescribeOrdersRequest < TencentCloud::Common::AbstractModel # @param DealNames: 订单名集合 # @type DealNames: Array attr_accessor :DealNames def initialize(dealnames=nil) @DealNames = dealnames end def deserialize(params) @DealNames = params['DealNames'] end end # DescribeOrders返回参数结构体 class DescribeOrdersResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 订单数量 # @type TotalCount: Integer # @param Deals: 订单数组 # @type Deals: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :Deals, :RequestId def initialize(totalcount=nil, deals=nil, requestid=nil) @TotalCount = totalcount @Deals = deals @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['Deals'].nil? @Deals = [] params['Deals'].each do |i| pgdeal_tmp = PgDeal.new pgdeal_tmp.deserialize(i) @Deals << pgdeal_tmp end end @RequestId = params['RequestId'] end end # DescribeParameterTemplateAttributes请求参数结构体 class DescribeParameterTemplateAttributesRequest < TencentCloud::Common::AbstractModel # @param TemplateId: 参数模板ID # @type TemplateId: String attr_accessor :TemplateId def initialize(templateid=nil) @TemplateId = templateid end def deserialize(params) @TemplateId = params['TemplateId'] end end # DescribeParameterTemplateAttributes返回参数结构体 class DescribeParameterTemplateAttributesResponse < TencentCloud::Common::AbstractModel # @param TemplateId: 参数模板ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type TemplateId: String # @param TotalCount: 参数模板包含的参数个数 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TotalCount: Integer # @param ParamInfoSet: 参数模板包含的参数信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ParamInfoSet: Array # @param TemplateName: 参数模板名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TemplateName: String # @param DBMajorVersion: 参数模板适用的数据库版本 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBMajorVersion: String # @param DBEngine: 参数模板适用的数据库引擎 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBEngine: String # @param TemplateDescription: 参数模板描述 # 注意:此字段可能返回 null,表示取不到有效值。 # @type TemplateDescription: String # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TemplateId, :TotalCount, :ParamInfoSet, :TemplateName, :DBMajorVersion, :DBEngine, :TemplateDescription, :RequestId def initialize(templateid=nil, totalcount=nil, paraminfoset=nil, templatename=nil, dbmajorversion=nil, dbengine=nil, templatedescription=nil, requestid=nil) @TemplateId = templateid @TotalCount = totalcount @ParamInfoSet = paraminfoset @TemplateName = templatename @DBMajorVersion = dbmajorversion @DBEngine = dbengine @TemplateDescription = templatedescription @RequestId = requestid end def deserialize(params) @TemplateId = params['TemplateId'] @TotalCount = params['TotalCount'] unless params['ParamInfoSet'].nil? @ParamInfoSet = [] params['ParamInfoSet'].each do |i| paraminfo_tmp = ParamInfo.new paraminfo_tmp.deserialize(i) @ParamInfoSet << paraminfo_tmp end end @TemplateName = params['TemplateName'] @DBMajorVersion = params['DBMajorVersion'] @DBEngine = params['DBEngine'] @TemplateDescription = params['TemplateDescription'] @RequestId = params['RequestId'] end end # DescribeParameterTemplates请求参数结构体 class DescribeParameterTemplatesRequest < TencentCloud::Common::AbstractModel # @param Filters: 过滤条件,目前支持的过滤条件有:TemplateName, TemplateId,DBMajorVersion,DBEngine # @type Filters: Array # @param Limit: 每页显示数量,[0,100],默认 20 # @type Limit: Integer # @param Offset: 数据偏移量 # @type Offset: Integer # @param OrderBy: 排序指标,枚举值,支持:CreateTime,TemplateName,DBMajorVersion # @type OrderBy: String # @param OrderByType: 排序方式,枚举值,支持:asc(升序) ,desc(降序) # @type OrderByType: String attr_accessor :Filters, :Limit, :Offset, :OrderBy, :OrderByType def initialize(filters=nil, limit=nil, offset=nil, orderby=nil, orderbytype=nil) @Filters = filters @Limit = limit @Offset = offset @OrderBy = orderby @OrderByType = orderbytype end def deserialize(params) unless params['Filters'].nil? @Filters = [] params['Filters'].each do |i| filter_tmp = Filter.new filter_tmp.deserialize(i) @Filters << filter_tmp end end @Limit = params['Limit'] @Offset = params['Offset'] @OrderBy = params['OrderBy'] @OrderByType = params['OrderByType'] end end # DescribeParameterTemplates返回参数结构体 class DescribeParameterTemplatesResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 符合查询条件的参数模板总数 # @type TotalCount: Integer # @param ParameterTemplateSet: 参数模板列表 # @type ParameterTemplateSet: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :ParameterTemplateSet, :RequestId def initialize(totalcount=nil, parametertemplateset=nil, requestid=nil) @TotalCount = totalcount @ParameterTemplateSet = parametertemplateset @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['ParameterTemplateSet'].nil? @ParameterTemplateSet = [] params['ParameterTemplateSet'].each do |i| parametertemplate_tmp = ParameterTemplate.new parametertemplate_tmp.deserialize(i) @ParameterTemplateSet << parametertemplate_tmp end end @RequestId = params['RequestId'] end end # DescribeParamsEvent请求参数结构体 class DescribeParamsEventRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例DB ID # @type DBInstanceId: String attr_accessor :DBInstanceId def initialize(dbinstanceid=nil) @DBInstanceId = dbinstanceid end def deserialize(params) @DBInstanceId = params['DBInstanceId'] end end # DescribeParamsEvent返回参数结构体 class DescribeParamsEventResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 参数修改事件总数,以参数为统计粒度 # @type TotalCount: Integer # @param EventItems: 实例参数修改事件详情 # @type EventItems: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :EventItems, :RequestId def initialize(totalcount=nil, eventitems=nil, requestid=nil) @TotalCount = totalcount @EventItems = eventitems @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['EventItems'].nil? @EventItems = [] params['EventItems'].each do |i| eventitem_tmp = EventItem.new eventitem_tmp.deserialize(i) @EventItems << eventitem_tmp end end @RequestId = params['RequestId'] end end # DescribeProductConfig请求参数结构体 class DescribeProductConfigRequest < TencentCloud::Common::AbstractModel # @param Zone: 可用区名称 # @type Zone: String # @param DBEngine: 数据库引擎,支持: # 1、postgresql(云数据库PostgreSQL); # 2、mssql_compatible(MSSQL兼容-云数据库PostgreSQL); # 如不指定默认使用postgresql。 # @type DBEngine: String attr_accessor :Zone, :DBEngine def initialize(zone=nil, dbengine=nil) @Zone = zone @DBEngine = dbengine end def deserialize(params) @Zone = params['Zone'] @DBEngine = params['DBEngine'] end end # DescribeProductConfig返回参数结构体 class DescribeProductConfigResponse < TencentCloud::Common::AbstractModel # @param SpecInfoList: 售卖规格列表。 # @type SpecInfoList: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :SpecInfoList, :RequestId def initialize(specinfolist=nil, requestid=nil) @SpecInfoList = specinfolist @RequestId = requestid end def deserialize(params) unless params['SpecInfoList'].nil? @SpecInfoList = [] params['SpecInfoList'].each do |i| specinfo_tmp = SpecInfo.new specinfo_tmp.deserialize(i) @SpecInfoList << specinfo_tmp end end @RequestId = params['RequestId'] end end # DescribeReadOnlyGroups请求参数结构体 class DescribeReadOnlyGroupsRequest < TencentCloud::Common::AbstractModel # @param Filters: 按照一个或者多个过滤条件进行查询,目前支持的过滤条件有: # db-master-instance-id:按照主实例过滤,类型为string。 # read-only-group-id:按照只读组ID过滤,类型为string。 # @type Filters: Array # @param PageSize: 查询每一页的条数,默认为10 # @type PageSize: Integer # @param PageNumber: 查询的页码,默认为1 # @type PageNumber: Integer # @param OrderBy: 查询排序依据,目前支持:ROGroupId,CreateTime,Name # @type OrderBy: String # @param OrderByType: 查询排序依据类型,目前支持:desc,asc # @type OrderByType: String attr_accessor :Filters, :PageSize, :PageNumber, :OrderBy, :OrderByType def initialize(filters=nil, pagesize=nil, pagenumber=nil, orderby=nil, orderbytype=nil) @Filters = filters @PageSize = pagesize @PageNumber = pagenumber @OrderBy = orderby @OrderByType = orderbytype end def deserialize(params) unless params['Filters'].nil? @Filters = [] params['Filters'].each do |i| filter_tmp = Filter.new filter_tmp.deserialize(i) @Filters << filter_tmp end end @PageSize = params['PageSize'] @PageNumber = params['PageNumber'] @OrderBy = params['OrderBy'] @OrderByType = params['OrderByType'] end end # DescribeReadOnlyGroups返回参数结构体 class DescribeReadOnlyGroupsResponse < TencentCloud::Common::AbstractModel # @param ReadOnlyGroupList: 只读组列表 # @type ReadOnlyGroupList: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :ReadOnlyGroupList, :RequestId def initialize(readonlygrouplist=nil, requestid=nil) @ReadOnlyGroupList = readonlygrouplist @RequestId = requestid end def deserialize(params) unless params['ReadOnlyGroupList'].nil? @ReadOnlyGroupList = [] params['ReadOnlyGroupList'].each do |i| readonlygroup_tmp = ReadOnlyGroup.new readonlygroup_tmp.deserialize(i) @ReadOnlyGroupList << readonlygroup_tmp end end @RequestId = params['RequestId'] end end # DescribeRegions请求参数结构体 class DescribeRegionsRequest < TencentCloud::Common::AbstractModel def initialize() end def deserialize(params) end end # DescribeRegions返回参数结构体 class DescribeRegionsResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 返回的结果数量。 # @type TotalCount: Integer # @param RegionSet: 地域信息集合。 # @type RegionSet: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :RegionSet, :RequestId def initialize(totalcount=nil, regionset=nil, requestid=nil) @TotalCount = totalcount @RegionSet = regionset @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['RegionSet'].nil? @RegionSet = [] params['RegionSet'].each do |i| regioninfo_tmp = RegionInfo.new regioninfo_tmp.deserialize(i) @RegionSet << regioninfo_tmp end end @RequestId = params['RequestId'] end end # DescribeServerlessDBInstances请求参数结构体 class DescribeServerlessDBInstancesRequest < TencentCloud::Common::AbstractModel # @param Filter: 查询条件 # @type Filter: Array # @param Limit: 查询个数 # @type Limit: Integer # @param Offset: 偏移量 # @type Offset: Integer # @param OrderBy: 排序指标,目前支持实例创建时间CreateTime # @type OrderBy: String # @param OrderByType: 排序方式,包括升序、降序 # @type OrderByType: String attr_accessor :Filter, :Limit, :Offset, :OrderBy, :OrderByType def initialize(filter=nil, limit=nil, offset=nil, orderby=nil, orderbytype=nil) @Filter = filter @Limit = limit @Offset = offset @OrderBy = orderby @OrderByType = orderbytype end def deserialize(params) unless params['Filter'].nil? @Filter = [] params['Filter'].each do |i| filter_tmp = Filter.new filter_tmp.deserialize(i) @Filter << filter_tmp end end @Limit = params['Limit'] @Offset = params['Offset'] @OrderBy = params['OrderBy'] @OrderByType = params['OrderByType'] end end # DescribeServerlessDBInstances返回参数结构体 class DescribeServerlessDBInstancesResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 查询结果数 # @type TotalCount: Integer # @param DBInstanceSet: 查询结果 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBInstanceSet: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :DBInstanceSet, :RequestId def initialize(totalcount=nil, dbinstanceset=nil, requestid=nil) @TotalCount = totalcount @DBInstanceSet = dbinstanceset @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['DBInstanceSet'].nil? @DBInstanceSet = [] params['DBInstanceSet'].each do |i| serverlessdbinstance_tmp = ServerlessDBInstance.new serverlessdbinstance_tmp.deserialize(i) @DBInstanceSet << serverlessdbinstance_tmp end end @RequestId = params['RequestId'] end end # DescribeSlowQueryAnalysis请求参数结构体 class DescribeSlowQueryAnalysisRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID。 # @type DBInstanceId: String # @param StartTime: 查询起始时间戳,格式 “YYYY-MM-DD HH:mm:ss” ,日志保留时间默认为7天,起始时间不能超出保留时间范围。 # @type StartTime: String # @param EndTime: 查询结束时间戳,格式 “YYYY-MM-DD HH:mm:ss”。 # @type EndTime: String # @param DatabaseName: 根据数据库名进行筛选,可以为空。 # @type DatabaseName: String # @param OrderBy: 排序维度。 可选参数,取值范围[CallNum,CostTime,AvgCostTime]。默认CallNum。 # @type OrderBy: String # @param OrderByType: 排序类型。升序asc、降序desc。默认desc。 # @type OrderByType: String # @param Limit: 分页大小。取值范围[1,100]。默认50。 # @type Limit: Integer # @param Offset: 分页偏移。取值范围[0,INF)。默认0。 # @type Offset: Integer attr_accessor :DBInstanceId, :StartTime, :EndTime, :DatabaseName, :OrderBy, :OrderByType, :Limit, :Offset def initialize(dbinstanceid=nil, starttime=nil, endtime=nil, databasename=nil, orderby=nil, orderbytype=nil, limit=nil, offset=nil) @DBInstanceId = dbinstanceid @StartTime = starttime @EndTime = endtime @DatabaseName = databasename @OrderBy = orderby @OrderByType = orderbytype @Limit = limit @Offset = offset end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @StartTime = params['StartTime'] @EndTime = params['EndTime'] @DatabaseName = params['DatabaseName'] @OrderBy = params['OrderBy'] @OrderByType = params['OrderByType'] @Limit = params['Limit'] @Offset = params['Offset'] end end # DescribeSlowQueryAnalysis返回参数结构体 class DescribeSlowQueryAnalysisResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 查询总条数。 # @type TotalCount: Integer # @param Detail: 慢SQL统计分析接口返回详情。 # @type Detail: :class:`Tencentcloud::Postgres.v20170312.models.Detail` # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :Detail, :RequestId def initialize(totalcount=nil, detail=nil, requestid=nil) @TotalCount = totalcount @Detail = detail @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['Detail'].nil? @Detail = Detail.new @Detail.deserialize(params['Detail']) end @RequestId = params['RequestId'] end end # DescribeSlowQueryList请求参数结构体 class DescribeSlowQueryListRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID。 # @type DBInstanceId: String # @param StartTime: 查询起始时间戳,格式 “YYYY-MM-DD HH:mm:ss” ,日志保留时间默认为7天,起始时间不能超出保留时间范围。 # @type StartTime: String # @param EndTime: 查询结束时间戳,格式 “YYYY-MM-DD HH:mm:ss”。 # @type EndTime: String # @param DatabaseName: 根据数据库名进行筛选,可以为空。 # @type DatabaseName: String # @param OrderByType: 排序类型。升序asc、降序desc。默认为desc。 # @type OrderByType: String # @param OrderBy: 排序维度。 可选参数,取值范围[SessionStartTime,Duration],默认为SessionStartTime。 # @type OrderBy: String # @param Limit: 分页大小。取值范围[1,100],默认为20。 # @type Limit: Integer # @param Offset: 分页偏移。取值范围[0,INF),默认为0。 # @type Offset: Integer attr_accessor :DBInstanceId, :StartTime, :EndTime, :DatabaseName, :OrderByType, :OrderBy, :Limit, :Offset def initialize(dbinstanceid=nil, starttime=nil, endtime=nil, databasename=nil, orderbytype=nil, orderby=nil, limit=nil, offset=nil) @DBInstanceId = dbinstanceid @StartTime = starttime @EndTime = endtime @DatabaseName = databasename @OrderByType = orderbytype @OrderBy = orderby @Limit = limit @Offset = offset end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @StartTime = params['StartTime'] @EndTime = params['EndTime'] @DatabaseName = params['DatabaseName'] @OrderByType = params['OrderByType'] @OrderBy = params['OrderBy'] @Limit = params['Limit'] @Offset = params['Offset'] end end # DescribeSlowQueryList返回参数结构体 class DescribeSlowQueryListResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 选定时间范围内慢SQL总条数。 # @type TotalCount: Integer # @param DurationAnalysis: 指定时间范围内,慢SQL耗时分段分析。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DurationAnalysis: Array # @param RawSlowQueryList: 指定时间范围内 慢SQL流水。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type RawSlowQueryList: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :DurationAnalysis, :RawSlowQueryList, :RequestId def initialize(totalcount=nil, durationanalysis=nil, rawslowquerylist=nil, requestid=nil) @TotalCount = totalcount @DurationAnalysis = durationanalysis @RawSlowQueryList = rawslowquerylist @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['DurationAnalysis'].nil? @DurationAnalysis = [] params['DurationAnalysis'].each do |i| durationanalysis_tmp = DurationAnalysis.new durationanalysis_tmp.deserialize(i) @DurationAnalysis << durationanalysis_tmp end end unless params['RawSlowQueryList'].nil? @RawSlowQueryList = [] params['RawSlowQueryList'].each do |i| rawslowquery_tmp = RawSlowQuery.new rawslowquery_tmp.deserialize(i) @RawSlowQueryList << rawslowquery_tmp end end @RequestId = params['RequestId'] end end # DescribeZones请求参数结构体 class DescribeZonesRequest < TencentCloud::Common::AbstractModel def initialize() end def deserialize(params) end end # DescribeZones返回参数结构体 class DescribeZonesResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 返回的结果数量。 # @type TotalCount: Integer # @param ZoneSet: 可用区信息集合。 # @type ZoneSet: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :ZoneSet, :RequestId def initialize(totalcount=nil, zoneset=nil, requestid=nil) @TotalCount = totalcount @ZoneSet = zoneset @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['ZoneSet'].nil? @ZoneSet = [] params['ZoneSet'].each do |i| zoneinfo_tmp = ZoneInfo.new zoneinfo_tmp.deserialize(i) @ZoneSet << zoneinfo_tmp end end @RequestId = params['RequestId'] end end # DestroyDBInstance请求参数结构体 class DestroyDBInstanceRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 待下线实例ID # @type DBInstanceId: String attr_accessor :DBInstanceId def initialize(dbinstanceid=nil) @DBInstanceId = dbinstanceid end def deserialize(params) @DBInstanceId = params['DBInstanceId'] end end # DestroyDBInstance返回参数结构体 class DestroyDBInstanceResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # 慢SQL 统计分析接口返回详情 class Detail < TencentCloud::Common::AbstractModel # @param TotalTime: 输入时间范围内所有慢sql执行的总时间,单位毫秒(ms) # @type TotalTime: Float # @param TotalCallNum: 输入时间范围内所有慢sql总条数 # @type TotalCallNum: Integer # @param AnalysisItems: 慢SQL统计分析列表 # 注意:此字段可能返回 null,表示取不到有效值。 # @type AnalysisItems: Array attr_accessor :TotalTime, :TotalCallNum, :AnalysisItems def initialize(totaltime=nil, totalcallnum=nil, analysisitems=nil) @TotalTime = totaltime @TotalCallNum = totalcallnum @AnalysisItems = analysisitems end def deserialize(params) @TotalTime = params['TotalTime'] @TotalCallNum = params['TotalCallNum'] unless params['AnalysisItems'].nil? @AnalysisItems = [] params['AnalysisItems'].each do |i| analysisitems_tmp = AnalysisItems.new analysisitems_tmp.deserialize(i) @AnalysisItems << analysisitems_tmp end end end end # DisIsolateDBInstances请求参数结构体 class DisIsolateDBInstancesRequest < TencentCloud::Common::AbstractModel # @param DBInstanceIdSet: 实例ID列表。注意:当前已不支持同时解隔离多个实例,这里只能传入单个实例ID。 # @type DBInstanceIdSet: Array # @param Period: 购买时长,单位:月。 #
  • 预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36 #
  • 后付费:只支持1 # @type Period: Integer # @param AutoVoucher: 是否使用代金券: #
  • true:使用 #
  • false:不使用 # 默认值:false # @type AutoVoucher: Boolean # @param VoucherIds: 代金券id列表。 # @type VoucherIds: Array attr_accessor :DBInstanceIdSet, :Period, :AutoVoucher, :VoucherIds def initialize(dbinstanceidset=nil, period=nil, autovoucher=nil, voucherids=nil) @DBInstanceIdSet = dbinstanceidset @Period = period @AutoVoucher = autovoucher @VoucherIds = voucherids end def deserialize(params) @DBInstanceIdSet = params['DBInstanceIdSet'] @Period = params['Period'] @AutoVoucher = params['AutoVoucher'] @VoucherIds = params['VoucherIds'] end end # DisIsolateDBInstances返回参数结构体 class DisIsolateDBInstancesResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # 慢SQL耗时分段分析 class DurationAnalysis < TencentCloud::Common::AbstractModel # @param TimeSegment: 慢SQL耗时,时段 # @type TimeSegment: String # @param Count: 对应时段区间慢SQL 条数 # @type Count: Integer attr_accessor :TimeSegment, :Count def initialize(timesegment=nil, count=nil) @TimeSegment = timesegment @Count = count end def deserialize(params) @TimeSegment = params['TimeSegment'] @Count = params['Count'] end end # KMS密钥信息 class EncryptionKey < TencentCloud::Common::AbstractModel # @param KeyId: KMS实例加密的KeyId。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type KeyId: String # @param KeyAlias: KMS实例加密Key的别名。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type KeyAlias: String # @param DEKCipherTextBlob: 实例加密密钥DEK的密文。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DEKCipherTextBlob: String # @param IsEnabled: 密钥是否启用,1-启用, 0-未启用。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type IsEnabled: Integer # @param KeyRegion: KMS密钥所在地域。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type KeyRegion: String # @param CreateTime: DEK密钥创建时间。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CreateTime: String attr_accessor :KeyId, :KeyAlias, :DEKCipherTextBlob, :IsEnabled, :KeyRegion, :CreateTime def initialize(keyid=nil, keyalias=nil, dekciphertextblob=nil, isenabled=nil, keyregion=nil, createtime=nil) @KeyId = keyid @KeyAlias = keyalias @DEKCipherTextBlob = dekciphertextblob @IsEnabled = isenabled @KeyRegion = keyregion @CreateTime = createtime end def deserialize(params) @KeyId = params['KeyId'] @KeyAlias = params['KeyAlias'] @DEKCipherTextBlob = params['DEKCipherTextBlob'] @IsEnabled = params['IsEnabled'] @KeyRegion = params['KeyRegion'] @CreateTime = params['CreateTime'] end end # 错误日志详情 class ErrLogDetail < TencentCloud::Common::AbstractModel # @param UserName: 用户名 # @type UserName: String # @param Database: 数据库名字 # @type Database: String # @param ErrTime: 错误发生时间 # @type ErrTime: String # @param ErrMsg: 错误消息 # @type ErrMsg: String attr_accessor :UserName, :Database, :ErrTime, :ErrMsg def initialize(username=nil, database=nil, errtime=nil, errmsg=nil) @UserName = username @Database = database @ErrTime = errtime @ErrMsg = errmsg end def deserialize(params) @UserName = params['UserName'] @Database = params['Database'] @ErrTime = params['ErrTime'] @ErrMsg = params['ErrMsg'] end end # 参数修改事件信息 class EventInfo < TencentCloud::Common::AbstractModel # @param ParamName: 参数名 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ParamName: String # @param OldValue: 原参数值 # 注意:此字段可能返回 null,表示取不到有效值。 # @type OldValue: String # @param NewValue: 本次修改期望参数值 # 注意:此字段可能返回 null,表示取不到有效值。 # @type NewValue: String # @param ModifyTime: 后台参数修改开始时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ModifyTime: String # @param EffectiveTime: 后台参数生效开始时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type EffectiveTime: String # @param State: 修改状态 # 注意:此字段可能返回 null,表示取不到有效值。 # @type State: String # @param Operator: 操作者(一般为用户sub UIN) # 注意:此字段可能返回 null,表示取不到有效值。 # @type Operator: String # @param EventLog: 时间日志。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type EventLog: String attr_accessor :ParamName, :OldValue, :NewValue, :ModifyTime, :EffectiveTime, :State, :Operator, :EventLog def initialize(paramname=nil, oldvalue=nil, newvalue=nil, modifytime=nil, effectivetime=nil, state=nil, operator=nil, eventlog=nil) @ParamName = paramname @OldValue = oldvalue @NewValue = newvalue @ModifyTime = modifytime @EffectiveTime = effectivetime @State = state @Operator = operator @EventLog = eventlog end def deserialize(params) @ParamName = params['ParamName'] @OldValue = params['OldValue'] @NewValue = params['NewValue'] @ModifyTime = params['ModifyTime'] @EffectiveTime = params['EffectiveTime'] @State = params['State'] @Operator = params['Operator'] @EventLog = params['EventLog'] end end # 修改参数条目,以参数为维度 class EventItem < TencentCloud::Common::AbstractModel # @param ParamName: 参数名 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ParamName: String # @param EventCount: 修改事件数 # 注意:此字段可能返回 null,表示取不到有效值。 # @type EventCount: Integer # @param EventDetail: 修改时间详情 # 注意:此字段可能返回 null,表示取不到有效值。 # @type EventDetail: Array attr_accessor :ParamName, :EventCount, :EventDetail def initialize(paramname=nil, eventcount=nil, eventdetail=nil) @ParamName = paramname @EventCount = eventcount @EventDetail = eventdetail end def deserialize(params) @ParamName = params['ParamName'] @EventCount = params['EventCount'] unless params['EventDetail'].nil? @EventDetail = [] params['EventDetail'].each do |i| eventinfo_tmp = EventInfo.new eventinfo_tmp.deserialize(i) @EventDetail << eventinfo_tmp end end end end # 描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称等 # * 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。 # * 若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。 class Filter < TencentCloud::Common::AbstractModel # @param Name: 过滤键的名称。 # @type Name: String # @param Values: 一个或者多个过滤值。 # @type Values: Array attr_accessor :Name, :Values def initialize(name=nil, values=nil) @Name = name @Values = values end def deserialize(params) @Name = params['Name'] @Values = params['Values'] end end # InitDBInstances请求参数结构体 class InitDBInstancesRequest < TencentCloud::Common::AbstractModel # @param DBInstanceIdSet: 实例ID集合。 # @type DBInstanceIdSet: Array # @param AdminName: 实例根账号用户名。 # @type AdminName: String # @param AdminPassword: 实例根账号用户名对应的密码。 # @type AdminPassword: String # @param Charset: 实例字符集,目前只支持:UTF8、LATIN1。 # @type Charset: String attr_accessor :DBInstanceIdSet, :AdminName, :AdminPassword, :Charset def initialize(dbinstanceidset=nil, adminname=nil, adminpassword=nil, charset=nil) @DBInstanceIdSet = dbinstanceidset @AdminName = adminname @AdminPassword = adminpassword @Charset = charset end def deserialize(params) @DBInstanceIdSet = params['DBInstanceIdSet'] @AdminName = params['AdminName'] @AdminPassword = params['AdminPassword'] @Charset = params['Charset'] end end # InitDBInstances返回参数结构体 class InitDBInstancesResponse < TencentCloud::Common::AbstractModel # @param DBInstanceIdSet: 实例ID集合。 # @type DBInstanceIdSet: Array # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :DBInstanceIdSet, :RequestId def initialize(dbinstanceidset=nil, requestid=nil) @DBInstanceIdSet = dbinstanceidset @RequestId = requestid end def deserialize(params) @DBInstanceIdSet = params['DBInstanceIdSet'] @RequestId = params['RequestId'] end end # InquiryPriceCreateDBInstances请求参数结构体 class InquiryPriceCreateDBInstancesRequest < TencentCloud::Common::AbstractModel # @param Zone: 可用区ID。该参数可以通过调用 DescribeZones 接口的返回值中的Zone字段来获取。 # @type Zone: String # @param SpecCode: 规格ID。该参数可以通过调用DescribeClasses接口的返回值中的SpecCode字段来获取。 # @type SpecCode: String # @param Storage: 存储容量大小,单位:GB。 # @type Storage: Integer # @param InstanceCount: 实例数量。目前最大数量不超过100,如需一次性创建更多实例,请联系客服支持。 # @type InstanceCount: Integer # @param Period: 购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值。 # @type Period: Integer # @param Pid: 【弃字段,不再生效】,计费ID。该参数可以通过调用DescribeProductConfig接口的返回值中的Pid字段来获取。 # @type Pid: Integer # @param InstanceChargeType: 实例计费类型。目前只支持:PREPAID(预付费,即包年包月)。 # @type InstanceChargeType: String # @param InstanceType: 实例类型,默认primary,支持如下: # primary(双机高可用(一主一从)) # readonly(只读实例) # @type InstanceType: String # @param DBEngine: DB引擎,默认postgresql,支持如下: # postgresql(云数据库PostgreSQL) # mssql_compatible(MSSQL兼容-云数据库PostgreSQL) # @type DBEngine: String attr_accessor :Zone, :SpecCode, :Storage, :InstanceCount, :Period, :Pid, :InstanceChargeType, :InstanceType, :DBEngine def initialize(zone=nil, speccode=nil, storage=nil, instancecount=nil, period=nil, pid=nil, instancechargetype=nil, instancetype=nil, dbengine=nil) @Zone = zone @SpecCode = speccode @Storage = storage @InstanceCount = instancecount @Period = period @Pid = pid @InstanceChargeType = instancechargetype @InstanceType = instancetype @DBEngine = dbengine end def deserialize(params) @Zone = params['Zone'] @SpecCode = params['SpecCode'] @Storage = params['Storage'] @InstanceCount = params['InstanceCount'] @Period = params['Period'] @Pid = params['Pid'] @InstanceChargeType = params['InstanceChargeType'] @InstanceType = params['InstanceType'] @DBEngine = params['DBEngine'] end end # InquiryPriceCreateDBInstances返回参数结构体 class InquiryPriceCreateDBInstancesResponse < TencentCloud::Common::AbstractModel # @param OriginalPrice: 刊例价,单位:分 # @type OriginalPrice: Integer # @param Price: 折后实际付款金额,单位:分 # @type Price: Integer # @param Currency: 币种。例如,CNY:人民币。 # @type Currency: String # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :OriginalPrice, :Price, :Currency, :RequestId def initialize(originalprice=nil, price=nil, currency=nil, requestid=nil) @OriginalPrice = originalprice @Price = price @Currency = currency @RequestId = requestid end def deserialize(params) @OriginalPrice = params['OriginalPrice'] @Price = params['Price'] @Currency = params['Currency'] @RequestId = params['RequestId'] end end # InquiryPriceRenewDBInstance请求参数结构体 class InquiryPriceRenewDBInstanceRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID # @type DBInstanceId: String # @param Period: 续费周期,按月计算,最大不超过48 # @type Period: Integer attr_accessor :DBInstanceId, :Period def initialize(dbinstanceid=nil, period=nil) @DBInstanceId = dbinstanceid @Period = period end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @Period = params['Period'] end end # InquiryPriceRenewDBInstance返回参数结构体 class InquiryPriceRenewDBInstanceResponse < TencentCloud::Common::AbstractModel # @param OriginalPrice: 刊例价,单位为分。如24650表示246.5元 # @type OriginalPrice: Integer # @param Price: 折后实际付款金额,单位为分。如24650表示246.5元 # @type Price: Integer # @param Currency: 币种。例如,CNY:人民币。 # @type Currency: String # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :OriginalPrice, :Price, :Currency, :RequestId def initialize(originalprice=nil, price=nil, currency=nil, requestid=nil) @OriginalPrice = originalprice @Price = price @Currency = currency @RequestId = requestid end def deserialize(params) @OriginalPrice = params['OriginalPrice'] @Price = params['Price'] @Currency = params['Currency'] @RequestId = params['RequestId'] end end # InquiryPriceUpgradeDBInstance请求参数结构体 class InquiryPriceUpgradeDBInstanceRequest < TencentCloud::Common::AbstractModel # @param Storage: 实例的磁盘大小,单位GB # @type Storage: Integer # @param Memory: 实例的内存大小,单位GB # @type Memory: Integer # @param DBInstanceId: 实例ID,形如postgres-hez4fh0v # @type DBInstanceId: String # @param InstanceChargeType: 【废弃参数,不再生效】,实例计费类型。 # @type InstanceChargeType: String # @param Cpu: 实例的Cpu大小,单位Core # @type Cpu: Integer attr_accessor :Storage, :Memory, :DBInstanceId, :InstanceChargeType, :Cpu def initialize(storage=nil, memory=nil, dbinstanceid=nil, instancechargetype=nil, cpu=nil) @Storage = storage @Memory = memory @DBInstanceId = dbinstanceid @InstanceChargeType = instancechargetype @Cpu = cpu end def deserialize(params) @Storage = params['Storage'] @Memory = params['Memory'] @DBInstanceId = params['DBInstanceId'] @InstanceChargeType = params['InstanceChargeType'] @Cpu = params['Cpu'] end end # InquiryPriceUpgradeDBInstance返回参数结构体 class InquiryPriceUpgradeDBInstanceResponse < TencentCloud::Common::AbstractModel # @param OriginalPrice: 刊例价费用 # @type OriginalPrice: Integer # @param Price: 折后实际付款金额 # @type Price: Integer # @param Currency: 币种。例如,CNY:人民币。 # @type Currency: String # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :OriginalPrice, :Price, :Currency, :RequestId def initialize(originalprice=nil, price=nil, currency=nil, requestid=nil) @OriginalPrice = originalprice @Price = price @Currency = currency @RequestId = requestid end def deserialize(params) @OriginalPrice = params['OriginalPrice'] @Price = params['Price'] @Currency = params['Currency'] @RequestId = params['RequestId'] end end # IsolateDBInstances请求参数结构体 class IsolateDBInstancesRequest < TencentCloud::Common::AbstractModel # @param DBInstanceIdSet: 实例ID集合。注意:当前已不支持同时隔离多个实例,这里只能传入单个实例ID。 # @type DBInstanceIdSet: Array attr_accessor :DBInstanceIdSet def initialize(dbinstanceidset=nil) @DBInstanceIdSet = dbinstanceidset end def deserialize(params) @DBInstanceIdSet = params['DBInstanceIdSet'] end end # IsolateDBInstances返回参数结构体 class IsolateDBInstancesResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # 数据库日志备份信息 class LogBackup < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID。 # @type DBInstanceId: String # @param Id: 备份文件唯一标识。 # @type Id: String # @param Name: 备份文件名称。 # @type Name: String # @param BackupMethod: 备份方式:物理备份、逻辑备份。 # @type BackupMethod: String # @param BackupMode: 备份模式:自动备份、手动备份。 # @type BackupMode: String # @param State: 备份任务状态。 # @type State: String # @param Size: 备份集大小,单位bytes。 # @type Size: Integer # @param StartTime: 备份的开始时间。 # @type StartTime: String # @param FinishTime: 备份的结束时间。 # @type FinishTime: String # @param ExpireTime: 备份的过期时间。 # @type ExpireTime: String attr_accessor :DBInstanceId, :Id, :Name, :BackupMethod, :BackupMode, :State, :Size, :StartTime, :FinishTime, :ExpireTime def initialize(dbinstanceid=nil, id=nil, name=nil, backupmethod=nil, backupmode=nil, state=nil, size=nil, starttime=nil, finishtime=nil, expiretime=nil) @DBInstanceId = dbinstanceid @Id = id @Name = name @BackupMethod = backupmethod @BackupMode = backupmode @State = state @Size = size @StartTime = starttime @FinishTime = finishtime @ExpireTime = expiretime end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @Id = params['Id'] @Name = params['Name'] @BackupMethod = params['BackupMethod'] @BackupMode = params['BackupMode'] @State = params['State'] @Size = params['Size'] @StartTime = params['StartTime'] @FinishTime = params['FinishTime'] @ExpireTime = params['ExpireTime'] end end # ModifyAccountRemark请求参数结构体 class ModifyAccountRemarkRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID,形如postgres-4wdeb0zv # @type DBInstanceId: String # @param UserName: 实例用户名 # @type UserName: String # @param Remark: 用户UserName对应的新备注 # @type Remark: String attr_accessor :DBInstanceId, :UserName, :Remark def initialize(dbinstanceid=nil, username=nil, remark=nil) @DBInstanceId = dbinstanceid @UserName = username @Remark = remark end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @UserName = params['UserName'] @Remark = params['Remark'] end end # ModifyAccountRemark返回参数结构体 class ModifyAccountRemarkResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # ModifyBackupDownloadRestriction请求参数结构体 class ModifyBackupDownloadRestrictionRequest < TencentCloud::Common::AbstractModel # @param RestrictionType: 备份文件下载限制类型,NONE 无限制,内外网都可以下载;INTRANET 只允许内网下载;CUSTOMIZE 自定义限制下载的vpc或ip。 # @type RestrictionType: String # @param VpcRestrictionEffect: vpc限制效力,ALLOW 允许;DENY 拒绝。 # @type VpcRestrictionEffect: String # @param VpcIdSet: 允许或拒绝下载备份文件的vpcId列表。 # @type VpcIdSet: Array # @param IpRestrictionEffect: ip限制效力,ALLOW 允许;DENY 拒绝。 # @type IpRestrictionEffect: String # @param IpSet: 允许或拒绝下载备份文件的ip列表。 # @type IpSet: Array attr_accessor :RestrictionType, :VpcRestrictionEffect, :VpcIdSet, :IpRestrictionEffect, :IpSet def initialize(restrictiontype=nil, vpcrestrictioneffect=nil, vpcidset=nil, iprestrictioneffect=nil, ipset=nil) @RestrictionType = restrictiontype @VpcRestrictionEffect = vpcrestrictioneffect @VpcIdSet = vpcidset @IpRestrictionEffect = iprestrictioneffect @IpSet = ipset end def deserialize(params) @RestrictionType = params['RestrictionType'] @VpcRestrictionEffect = params['VpcRestrictionEffect'] @VpcIdSet = params['VpcIdSet'] @IpRestrictionEffect = params['IpRestrictionEffect'] @IpSet = params['IpSet'] end end # ModifyBackupDownloadRestriction返回参数结构体 class ModifyBackupDownloadRestrictionResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # ModifyBackupPlan请求参数结构体 class ModifyBackupPlanRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID # @type DBInstanceId: String # @param MinBackupStartTime: 实例最早开始备份时间 # @type MinBackupStartTime: String # @param MaxBackupStartTime: 实例最晚开始备份时间 # @type MaxBackupStartTime: String # @param BaseBackupRetentionPeriod: 实例备份保留时长,取值范围为7-1830,单位是天 # @type BaseBackupRetentionPeriod: Integer # @param BackupPeriod: 实例备份周期,按照星期维度,格式为小写星期英文单词 # @type BackupPeriod: Array # @param LogBackupRetentionPeriod: 实例日志备份保留时长,取值范围为7-1830,单位是天 # @type LogBackupRetentionPeriod: Integer attr_accessor :DBInstanceId, :MinBackupStartTime, :MaxBackupStartTime, :BaseBackupRetentionPeriod, :BackupPeriod, :LogBackupRetentionPeriod def initialize(dbinstanceid=nil, minbackupstarttime=nil, maxbackupstarttime=nil, basebackupretentionperiod=nil, backupperiod=nil, logbackupretentionperiod=nil) @DBInstanceId = dbinstanceid @MinBackupStartTime = minbackupstarttime @MaxBackupStartTime = maxbackupstarttime @BaseBackupRetentionPeriod = basebackupretentionperiod @BackupPeriod = backupperiod @LogBackupRetentionPeriod = logbackupretentionperiod end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @MinBackupStartTime = params['MinBackupStartTime'] @MaxBackupStartTime = params['MaxBackupStartTime'] @BaseBackupRetentionPeriod = params['BaseBackupRetentionPeriod'] @BackupPeriod = params['BackupPeriod'] @LogBackupRetentionPeriod = params['LogBackupRetentionPeriod'] end end # ModifyBackupPlan返回参数结构体 class ModifyBackupPlanResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # ModifyBaseBackupExpireTime请求参数结构体 class ModifyBaseBackupExpireTimeRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID。 # @type DBInstanceId: String # @param BaseBackupId: 数据备份ID。 # @type BaseBackupId: String # @param NewExpireTime: 新过期时间。 # @type NewExpireTime: String attr_accessor :DBInstanceId, :BaseBackupId, :NewExpireTime def initialize(dbinstanceid=nil, basebackupid=nil, newexpiretime=nil) @DBInstanceId = dbinstanceid @BaseBackupId = basebackupid @NewExpireTime = newexpiretime end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @BaseBackupId = params['BaseBackupId'] @NewExpireTime = params['NewExpireTime'] end end # ModifyBaseBackupExpireTime返回参数结构体 class ModifyBaseBackupExpireTimeResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # ModifyDBInstanceChargeType请求参数结构体 class ModifyDBInstanceChargeTypeRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID,形如postgres-6fego161 # @type DBInstanceId: String # @param InstanceChargeType: 实例计费类型,目前支持: #
  • PREPAID:预付费,即包年包月 #
  • POSTPAID_BY_HOUR:后付费,即按量计费 # 默认值:PREPAID # @type InstanceChargeType: String # @param Period: 购买时长,单位:月。 #
  • 预付费:支持1,2,3,4,5,6,7,8,9,10,11,12,24,36 #
  • 后付费:只支持1 # @type Period: Integer # @param AutoRenewFlag: 续费标记: #
  • 0:手动续费 #
  • 1:自动续费 # 默认值:0 # @type AutoRenewFlag: Integer # @param AutoVoucher: 是否自动使用代金券: #
  • 0:否 #
  • 1:是 # 默认值:0 # @type AutoVoucher: Integer attr_accessor :DBInstanceId, :InstanceChargeType, :Period, :AutoRenewFlag, :AutoVoucher def initialize(dbinstanceid=nil, instancechargetype=nil, period=nil, autorenewflag=nil, autovoucher=nil) @DBInstanceId = dbinstanceid @InstanceChargeType = instancechargetype @Period = period @AutoRenewFlag = autorenewflag @AutoVoucher = autovoucher end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @InstanceChargeType = params['InstanceChargeType'] @Period = params['Period'] @AutoRenewFlag = params['AutoRenewFlag'] @AutoVoucher = params['AutoVoucher'] end end # ModifyDBInstanceChargeType返回参数结构体 class ModifyDBInstanceChargeTypeResponse < TencentCloud::Common::AbstractModel # @param DealName: 订单名 # @type DealName: String # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :DealName, :RequestId def initialize(dealname=nil, requestid=nil) @DealName = dealname @RequestId = requestid end def deserialize(params) @DealName = params['DealName'] @RequestId = params['RequestId'] end end # ModifyDBInstanceDeployment请求参数结构体 class ModifyDBInstanceDeploymentRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID。 # @type DBInstanceId: String # @param DBNodeSet: 实例节点部署信息,支持多可用区部署时需要指定每个节点的部署可用区信息。 # 可用区信息可以通过调用 [DescribeZones](https://cloud.tencent.com/document/api/409/16769) 接口的返回值中的Zone字段来获取。 # @type DBNodeSet: Array # @param SwitchTag: 指定实例配置完成变更后的切换时间。 #
  • 0:立即切换 #
  • 1:指定时间切换 #
  • 2:维护时间窗口内切换 # 默认值:0 # @type SwitchTag: Integer # @param SwitchStartTime: 切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。当SwitchTag为0或2时,该参数失效。 # @type SwitchStartTime: String # @param SwitchEndTime: 切换截止时间,时间格式:HH:MM:SS,例如:01:30:00。当SwitchTag为0或2时,该参数失效。 # @type SwitchEndTime: String attr_accessor :DBInstanceId, :DBNodeSet, :SwitchTag, :SwitchStartTime, :SwitchEndTime def initialize(dbinstanceid=nil, dbnodeset=nil, switchtag=nil, switchstarttime=nil, switchendtime=nil) @DBInstanceId = dbinstanceid @DBNodeSet = dbnodeset @SwitchTag = switchtag @SwitchStartTime = switchstarttime @SwitchEndTime = switchendtime end def deserialize(params) @DBInstanceId = params['DBInstanceId'] unless params['DBNodeSet'].nil? @DBNodeSet = [] params['DBNodeSet'].each do |i| dbnode_tmp = DBNode.new dbnode_tmp.deserialize(i) @DBNodeSet << dbnode_tmp end end @SwitchTag = params['SwitchTag'] @SwitchStartTime = params['SwitchStartTime'] @SwitchEndTime = params['SwitchEndTime'] end end # ModifyDBInstanceDeployment返回参数结构体 class ModifyDBInstanceDeploymentResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # ModifyDBInstanceHAConfig请求参数结构体 class ModifyDBInstanceHAConfigRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID # @type DBInstanceId: String # @param SyncMode: 主从同步方式: #
  • Semi-sync:半同步 #
  • Async:异步 # @type SyncMode: String # @param MaxStandbyLatency: 高可用备机最大延迟数据量。备节点延迟数据量小于等于该值,且备节点延迟时间小于等于MaxStandbyLag时,可以切换为主节点。 #
  • 单位:byte #
  • 参数范围:[1073741824, 322122547200] # @type MaxStandbyLatency: Integer # @param MaxStandbyLag: 高可用备机最大延迟时间。备节点延迟时间小于等于该值,且备节点延迟数据量小于等于MaxStandbyLatency时,可以切换为主节点。 #
  • 单位:s #
  • 参数范围:[5, 10] # @type MaxStandbyLag: Integer # @param MaxSyncStandbyLatency: 同步备机最大延迟数据量。备机延迟数据量小于等于该值,且该备机延迟时间小于等于MaxSyncStandbyLag时,则该备机采用同步复制;否则,采用异步复制。 # 该参数值针对SyncMode设置为Semi-sync的实例有效。 # 半同步实例禁止退化为异步复制时,不设置MaxSyncStandbyLatency、MaxSyncStandbyLag。 # 半同步实例允许退化异步复制时,PostgreSQL 9版本的实例须设置MaxSyncStandbyLatency且不设置MaxSyncStandbyLag,PostgreSQL 10及以上版本的实例须设置MaxSyncStandbyLatency、MaxSyncStandbyLag。 # @type MaxSyncStandbyLatency: Integer # @param MaxSyncStandbyLag: 同步备机最大延迟时间。备机延迟时间小于等于该值,且该备机延迟数据量小于等于MaxSyncStandbyLatency时,则该备机采用同步复制;否则,采用异步复制。 # 该参数值针对SyncMode设置为Semi-sync的实例有效。 # 半同步实例禁止退化为异步复制时,不设置MaxSyncStandbyLatency、MaxSyncStandbyLag。 # 半同步实例允许退化异步复制时,PostgreSQL 9版本的实例须设置MaxSyncStandbyLatency且不设置MaxSyncStandbyLag,PostgreSQL 10及以上版本的实例须设置MaxSyncStandbyLatency、MaxSyncStandbyLag, # @type MaxSyncStandbyLag: Integer attr_accessor :DBInstanceId, :SyncMode, :MaxStandbyLatency, :MaxStandbyLag, :MaxSyncStandbyLatency, :MaxSyncStandbyLag def initialize(dbinstanceid=nil, syncmode=nil, maxstandbylatency=nil, maxstandbylag=nil, maxsyncstandbylatency=nil, maxsyncstandbylag=nil) @DBInstanceId = dbinstanceid @SyncMode = syncmode @MaxStandbyLatency = maxstandbylatency @MaxStandbyLag = maxstandbylag @MaxSyncStandbyLatency = maxsyncstandbylatency @MaxSyncStandbyLag = maxsyncstandbylag end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @SyncMode = params['SyncMode'] @MaxStandbyLatency = params['MaxStandbyLatency'] @MaxStandbyLag = params['MaxStandbyLag'] @MaxSyncStandbyLatency = params['MaxSyncStandbyLatency'] @MaxSyncStandbyLag = params['MaxSyncStandbyLag'] end end # ModifyDBInstanceHAConfig返回参数结构体 class ModifyDBInstanceHAConfigResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # ModifyDBInstanceName请求参数结构体 class ModifyDBInstanceNameRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 数据库实例ID,形如postgres-6fego161 # @type DBInstanceId: String # @param InstanceName: 实例名称,仅支持长度小于60的中文/英文/数字/"_"/"-",不指定实例名称则默认显示"未命名"。 # @type InstanceName: String attr_accessor :DBInstanceId, :InstanceName def initialize(dbinstanceid=nil, instancename=nil) @DBInstanceId = dbinstanceid @InstanceName = instancename end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @InstanceName = params['InstanceName'] end end # ModifyDBInstanceName返回参数结构体 class ModifyDBInstanceNameResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # ModifyDBInstanceParameters请求参数结构体 class ModifyDBInstanceParametersRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID # @type DBInstanceId: String # @param ParamList: 待修改参数及期望值 # @type ParamList: Array attr_accessor :DBInstanceId, :ParamList def initialize(dbinstanceid=nil, paramlist=nil) @DBInstanceId = dbinstanceid @ParamList = paramlist end def deserialize(params) @DBInstanceId = params['DBInstanceId'] unless params['ParamList'].nil? @ParamList = [] params['ParamList'].each do |i| paramentry_tmp = ParamEntry.new paramentry_tmp.deserialize(i) @ParamList << paramentry_tmp end end end end # ModifyDBInstanceParameters返回参数结构体 class ModifyDBInstanceParametersResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # ModifyDBInstanceReadOnlyGroup请求参数结构体 class ModifyDBInstanceReadOnlyGroupRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID # @type DBInstanceId: String # @param ReadOnlyGroupId: 当前实例所在只读组ID # @type ReadOnlyGroupId: String # @param NewReadOnlyGroupId: 实例修改的目标只读组ID # @type NewReadOnlyGroupId: String attr_accessor :DBInstanceId, :ReadOnlyGroupId, :NewReadOnlyGroupId def initialize(dbinstanceid=nil, readonlygroupid=nil, newreadonlygroupid=nil) @DBInstanceId = dbinstanceid @ReadOnlyGroupId = readonlygroupid @NewReadOnlyGroupId = newreadonlygroupid end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @ReadOnlyGroupId = params['ReadOnlyGroupId'] @NewReadOnlyGroupId = params['NewReadOnlyGroupId'] end end # ModifyDBInstanceReadOnlyGroup返回参数结构体 class ModifyDBInstanceReadOnlyGroupResponse < TencentCloud::Common::AbstractModel # @param FlowId: 流程ID # @type FlowId: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FlowId, :RequestId def initialize(flowid=nil, requestid=nil) @FlowId = flowid @RequestId = requestid end def deserialize(params) @FlowId = params['FlowId'] @RequestId = params['RequestId'] end end # ModifyDBInstanceSecurityGroups请求参数结构体 class ModifyDBInstanceSecurityGroupsRequest < TencentCloud::Common::AbstractModel # @param SecurityGroupIdSet: 实例或只读组要绑定的安全组列表。 # 安全组信息可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来查询。 # @type SecurityGroupIdSet: Array # @param DBInstanceId: 实例ID,DBInstanceId和ReadOnlyGroupId至少传一个;如果都传,忽略ReadOnlyGroupId # @type DBInstanceId: String # @param ReadOnlyGroupId: 只读组ID,DBInstanceId和ReadOnlyGroupId至少传一个;如果要修改只读组关联的安全组,只传ReadOnlyGroupId # @type ReadOnlyGroupId: String attr_accessor :SecurityGroupIdSet, :DBInstanceId, :ReadOnlyGroupId def initialize(securitygroupidset=nil, dbinstanceid=nil, readonlygroupid=nil) @SecurityGroupIdSet = securitygroupidset @DBInstanceId = dbinstanceid @ReadOnlyGroupId = readonlygroupid end def deserialize(params) @SecurityGroupIdSet = params['SecurityGroupIdSet'] @DBInstanceId = params['DBInstanceId'] @ReadOnlyGroupId = params['ReadOnlyGroupId'] end end # ModifyDBInstanceSecurityGroups返回参数结构体 class ModifyDBInstanceSecurityGroupsResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # ModifyDBInstanceSpec请求参数结构体 class ModifyDBInstanceSpecRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID,形如:postgres-6bwgamo3。 # @type DBInstanceId: String # @param Memory: 修改后的实例内存大小,单位GiB。 # @type Memory: Integer # @param Storage: 修改后的实例磁盘大小,单位GiB。 # @type Storage: Integer # @param AutoVoucher: 是否自动使用代金券: #
  • 0:否
  • #
  • 1:是
  • # 默认值:0 # @type AutoVoucher: Integer # @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。 # @type VoucherIds: Array # @param ActivityId: 活动ID。 # @type ActivityId: Integer # @param SwitchTag: 指定实例配置完成变更后的切换时间。 #
  • 0:立即切换
  • #
  • 1:指定时间切换
  • #
  • 2:维护时间窗口内
  • 切换 # 默认值:0 # @type SwitchTag: Integer # @param SwitchStartTime: 切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。当SwitchTag为0或2时,该参数失效。 # @type SwitchStartTime: String # @param SwitchEndTime: 切换截止时间,时间格式:HH:MM:SS,例如:01:30:00。当SwitchTag为0或2时,该参数失效。 # @type SwitchEndTime: String # @param Cpu: 修改后的实例CPU大小,单位Core。 # @type Cpu: Integer attr_accessor :DBInstanceId, :Memory, :Storage, :AutoVoucher, :VoucherIds, :ActivityId, :SwitchTag, :SwitchStartTime, :SwitchEndTime, :Cpu def initialize(dbinstanceid=nil, memory=nil, storage=nil, autovoucher=nil, voucherids=nil, activityid=nil, switchtag=nil, switchstarttime=nil, switchendtime=nil, cpu=nil) @DBInstanceId = dbinstanceid @Memory = memory @Storage = storage @AutoVoucher = autovoucher @VoucherIds = voucherids @ActivityId = activityid @SwitchTag = switchtag @SwitchStartTime = switchstarttime @SwitchEndTime = switchendtime @Cpu = cpu end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @Memory = params['Memory'] @Storage = params['Storage'] @AutoVoucher = params['AutoVoucher'] @VoucherIds = params['VoucherIds'] @ActivityId = params['ActivityId'] @SwitchTag = params['SwitchTag'] @SwitchStartTime = params['SwitchStartTime'] @SwitchEndTime = params['SwitchEndTime'] @Cpu = params['Cpu'] end end # ModifyDBInstanceSpec返回参数结构体 class ModifyDBInstanceSpecResponse < TencentCloud::Common::AbstractModel # @param DealName: 订单号。 # @type DealName: String # @param BillId: 冻结流水号。 # @type BillId: String # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :DealName, :BillId, :RequestId def initialize(dealname=nil, billid=nil, requestid=nil) @DealName = dealname @BillId = billid @RequestId = requestid end def deserialize(params) @DealName = params['DealName'] @BillId = params['BillId'] @RequestId = params['RequestId'] end end # ModifyDBInstancesProject请求参数结构体 class ModifyDBInstancesProjectRequest < TencentCloud::Common::AbstractModel # @param DBInstanceIdSet: 实例ID集合。注意:当前已不支持同时操作多个实例,这里只能传入单个实例ID。 # @type DBInstanceIdSet: Array # @param ProjectId: 所属新项目的ID # @type ProjectId: String attr_accessor :DBInstanceIdSet, :ProjectId def initialize(dbinstanceidset=nil, projectid=nil) @DBInstanceIdSet = dbinstanceidset @ProjectId = projectid end def deserialize(params) @DBInstanceIdSet = params['DBInstanceIdSet'] @ProjectId = params['ProjectId'] end end # ModifyDBInstancesProject返回参数结构体 class ModifyDBInstancesProjectResponse < TencentCloud::Common::AbstractModel # @param Count: 转移项目成功的实例个数 # @type Count: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Count, :RequestId def initialize(count=nil, requestid=nil) @Count = count @RequestId = requestid end def deserialize(params) @Count = params['Count'] @RequestId = params['RequestId'] end end # ModifyParameterTemplate请求参数结构体 class ModifyParameterTemplateRequest < TencentCloud::Common::AbstractModel # @param TemplateId: 参数模板ID,用于唯一确认参数模板,不可修改 # @type TemplateId: String # @param TemplateName: 参数模板名称,长度为1~60个字符,仅支持数字,英文大小写字母、中文以及特殊字符_-./()()[]+=::@ 注:若该字段为空 ,则保持原参数模板名称 # @type TemplateName: String # @param TemplateDescription: 参数模板描述,长度为0~60个字符,仅支持数字,英文大小写字母、中文以及特殊字符_-./()()[]+=::@ 注:若不传入该参数,则保持原参数模板描述 # @type TemplateDescription: String # @param ModifyParamEntrySet: 需要修改或添加的参数集合,注:同一参数不能同时出现在修改添加集合和删除集合中 # @type ModifyParamEntrySet: Array # @param DeleteParamSet: 需要从模板中删除的参数集合,注:同一参数不能同时出现在修改添加集合和删除集合中 # @type DeleteParamSet: Array attr_accessor :TemplateId, :TemplateName, :TemplateDescription, :ModifyParamEntrySet, :DeleteParamSet def initialize(templateid=nil, templatename=nil, templatedescription=nil, modifyparamentryset=nil, deleteparamset=nil) @TemplateId = templateid @TemplateName = templatename @TemplateDescription = templatedescription @ModifyParamEntrySet = modifyparamentryset @DeleteParamSet = deleteparamset end def deserialize(params) @TemplateId = params['TemplateId'] @TemplateName = params['TemplateName'] @TemplateDescription = params['TemplateDescription'] unless params['ModifyParamEntrySet'].nil? @ModifyParamEntrySet = [] params['ModifyParamEntrySet'].each do |i| paramentry_tmp = ParamEntry.new paramentry_tmp.deserialize(i) @ModifyParamEntrySet << paramentry_tmp end end @DeleteParamSet = params['DeleteParamSet'] end end # ModifyParameterTemplate返回参数结构体 class ModifyParameterTemplateResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # ModifyReadOnlyGroupConfig请求参数结构体 class ModifyReadOnlyGroupConfigRequest < TencentCloud::Common::AbstractModel # @param ReadOnlyGroupId: 只读组ID # @type ReadOnlyGroupId: String # @param ReadOnlyGroupName: 只读组名称 # @type ReadOnlyGroupName: String # @param ReplayLagEliminate: 延迟时间配置开关:0关、1开 # @type ReplayLagEliminate: Integer # @param ReplayLatencyEliminate: 延迟日志大小配置开关:0关、1开 # @type ReplayLatencyEliminate: Integer # @param MaxReplayLatency: 延迟日志大小阈值,单位MB # @type MaxReplayLatency: Integer # @param MaxReplayLag: 延迟时间大小阈值,单位ms # @type MaxReplayLag: Integer # @param Rebalance: 自动负载均衡开关:0关、1开 # @type Rebalance: Integer # @param MinDelayEliminateReserve: 延迟剔除最小保留实例数 # @type MinDelayEliminateReserve: Integer attr_accessor :ReadOnlyGroupId, :ReadOnlyGroupName, :ReplayLagEliminate, :ReplayLatencyEliminate, :MaxReplayLatency, :MaxReplayLag, :Rebalance, :MinDelayEliminateReserve def initialize(readonlygroupid=nil, readonlygroupname=nil, replaylageliminate=nil, replaylatencyeliminate=nil, maxreplaylatency=nil, maxreplaylag=nil, rebalance=nil, mindelayeliminatereserve=nil) @ReadOnlyGroupId = readonlygroupid @ReadOnlyGroupName = readonlygroupname @ReplayLagEliminate = replaylageliminate @ReplayLatencyEliminate = replaylatencyeliminate @MaxReplayLatency = maxreplaylatency @MaxReplayLag = maxreplaylag @Rebalance = rebalance @MinDelayEliminateReserve = mindelayeliminatereserve end def deserialize(params) @ReadOnlyGroupId = params['ReadOnlyGroupId'] @ReadOnlyGroupName = params['ReadOnlyGroupName'] @ReplayLagEliminate = params['ReplayLagEliminate'] @ReplayLatencyEliminate = params['ReplayLatencyEliminate'] @MaxReplayLatency = params['MaxReplayLatency'] @MaxReplayLag = params['MaxReplayLag'] @Rebalance = params['Rebalance'] @MinDelayEliminateReserve = params['MinDelayEliminateReserve'] end end # ModifyReadOnlyGroupConfig返回参数结构体 class ModifyReadOnlyGroupConfigResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # ModifySwitchTimePeriod请求参数结构体 class ModifySwitchTimePeriodRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 处于等待切换状态中的实例ID # @type DBInstanceId: String # @param SwitchTag: 入参取值为 0 ,代表立即切换。 # @type SwitchTag: Integer attr_accessor :DBInstanceId, :SwitchTag def initialize(dbinstanceid=nil, switchtag=nil) @DBInstanceId = dbinstanceid @SwitchTag = switchtag end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @SwitchTag = params['SwitchTag'] end end # ModifySwitchTimePeriod返回参数结构体 class ModifySwitchTimePeriodResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # 网络相关信息。(该数据结构已废弃,网络相关信息使用DBInstanceNetInfo) 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: IPV4地址 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Vip: String # @param Vip6: IPV6地址 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Vip6: String # @param Vport: 访问端口 # 注意:此字段可能返回 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: 调用次数 # @type Calls: Integer # @param CallsGrids: 粒度点 # @type CallsGrids: Array # @param CostTime: 花费总时间 # @type CostTime: Float # @param Rows: 影响的行数 # @type Rows: Integer # @param MinCostTime: 花费最小时间 # @type MinCostTime: Float # @param MaxCostTime: 花费最大时间 # @type MaxCostTime: Float # @param FirstTime: 最早一条慢SQL时间 # @type FirstTime: String # @param LastTime: 最晚一条慢SQL时间 # @type LastTime: String # @param SharedReadBlks: 读共享内存块数 # @type SharedReadBlks: Integer # @param SharedWriteBlks: 写共享内存块数 # @type SharedWriteBlks: Integer # @param ReadCostTime: 读io总耗时 # @type ReadCostTime: Integer # @param WriteCostTime: 写io总耗时 # @type WriteCostTime: Integer # @param DatabaseName: 数据库名字 # @type DatabaseName: String # @param NormalQuery: 脱敏后的慢SQL # @type NormalQuery: String attr_accessor :UserName, :Calls, :CallsGrids, :CostTime, :Rows, :MinCostTime, :MaxCostTime, :FirstTime, :LastTime, :SharedReadBlks, :SharedWriteBlks, :ReadCostTime, :WriteCostTime, :DatabaseName, :NormalQuery def initialize(username=nil, calls=nil, callsgrids=nil, costtime=nil, rows=nil, mincosttime=nil, maxcosttime=nil, firsttime=nil, lasttime=nil, sharedreadblks=nil, sharedwriteblks=nil, readcosttime=nil, writecosttime=nil, databasename=nil, normalquery=nil) @UserName = username @Calls = calls @CallsGrids = callsgrids @CostTime = costtime @Rows = rows @MinCostTime = mincosttime @MaxCostTime = maxcosttime @FirstTime = firsttime @LastTime = lasttime @SharedReadBlks = sharedreadblks @SharedWriteBlks = sharedwriteblks @ReadCostTime = readcosttime @WriteCostTime = writecosttime @DatabaseName = databasename @NormalQuery = normalquery end def deserialize(params) @UserName = params['UserName'] @Calls = params['Calls'] @CallsGrids = params['CallsGrids'] @CostTime = params['CostTime'] @Rows = params['Rows'] @MinCostTime = params['MinCostTime'] @MaxCostTime = params['MaxCostTime'] @FirstTime = params['FirstTime'] @LastTime = params['LastTime'] @SharedReadBlks = params['SharedReadBlks'] @SharedWriteBlks = params['SharedWriteBlks'] @ReadCostTime = params['ReadCostTime'] @WriteCostTime = params['WriteCostTime'] @DatabaseName = params['DatabaseName'] @NormalQuery = params['NormalQuery'] end end # OpenDBExtranetAccess请求参数结构体 class OpenDBExtranetAccessRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID,形如postgres-hez4fh0v # @type DBInstanceId: String # @param IsIpv6: 是否开通Ipv6外网,1:是,0:否 # @type IsIpv6: Integer attr_accessor :DBInstanceId, :IsIpv6 def initialize(dbinstanceid=nil, isipv6=nil) @DBInstanceId = dbinstanceid @IsIpv6 = isipv6 end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @IsIpv6 = params['IsIpv6'] end end # OpenDBExtranetAccess返回参数结构体 class OpenDBExtranetAccessResponse < TencentCloud::Common::AbstractModel # @param FlowId: 异步任务流程ID # @type FlowId: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FlowId, :RequestId def initialize(flowid=nil, requestid=nil) @FlowId = flowid @RequestId = requestid end def deserialize(params) @FlowId = params['FlowId'] @RequestId = params['RequestId'] end end # OpenServerlessDBExtranetAccess请求参数结构体 class OpenServerlessDBExtranetAccessRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例的唯一标识符 # @type DBInstanceId: String # @param DBInstanceName: 实例名称 # @type DBInstanceName: String attr_accessor :DBInstanceId, :DBInstanceName def initialize(dbinstanceid=nil, dbinstancename=nil) @DBInstanceId = dbinstanceid @DBInstanceName = dbinstancename end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @DBInstanceName = params['DBInstanceName'] end end # OpenServerlessDBExtranetAccess返回参数结构体 class OpenServerlessDBExtranetAccessResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # 批量修改参数 class ParamEntry < TencentCloud::Common::AbstractModel # @param Name: 参数名 # @type Name: String # @param ExpectedValue: 修改参数值。入参均以字符串形式传递,例如:小数”0.1“、整数”1000“、枚举”replica“ # @type ExpectedValue: String attr_accessor :Name, :ExpectedValue def initialize(name=nil, expectedvalue=nil) @Name = name @ExpectedValue = expectedvalue end def deserialize(params) @Name = params['Name'] @ExpectedValue = params['ExpectedValue'] end end # 参数详情 class ParamInfo < TencentCloud::Common::AbstractModel # @param ID: 参数ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type ID: Integer # @param Name: 参数名 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Name: String # @param ParamValueType: 参数值类型:integer(整型)、real(浮点型)、bool(布尔型)、enum(枚举类型)、mutil_enum(枚举类型、支持多选)。 # 当参数类型为integer(整型)、real(浮点型)时,参数的取值范围根据返回值的Max、Min确定; # 当参数类型为bool(布尔型)时,参数设置值取值范围是true | false; # 当参数类型为enum(枚举类型)、mutil_enum(多枚举类型)时,参数的取值范围由返回值中的EnumValue确定。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ParamValueType: String # @param Unit: 参数值 单位。参数没有单位时,该字段返回空 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Unit: String # @param DefaultValue: 参数默认值。以字符串形式返回 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DefaultValue: String # @param CurrentValue: 参数当前运行值。以字符串形式返回 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CurrentValue: String # @param Max: 数值类型(integer、real)参数,取值下界 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Max: Float # @param EnumValue: 枚举类型参数,取值范围 # 注意:此字段可能返回 null,表示取不到有效值。 # @type EnumValue: Array # @param Min: 数值类型(integer、real)参数,取值上界 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Min: Float # @param ParamDescriptionCH: 参数中文描述 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ParamDescriptionCH: String # @param ParamDescriptionEN: 参数英文描述 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ParamDescriptionEN: String # @param NeedReboot: 参数修改,是否重启生效。(true为需要,false为不需要) # 注意:此字段可能返回 null,表示取不到有效值。 # @type NeedReboot: Boolean # @param ClassificationCN: 参数中文分类 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ClassificationCN: String # @param ClassificationEN: 参数英文分类 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ClassificationEN: String # @param SpecRelated: 是否和规格相关。(true为相关,false为不想关) # 注意:此字段可能返回 null,表示取不到有效值。 # @type SpecRelated: Boolean # @param Advanced: 是否为重点参数。(true为重点参数,修改是需要重点关注,可能会影响实例性能) # 注意:此字段可能返回 null,表示取不到有效值。 # @type Advanced: Boolean # @param LastModifyTime: 参数最后一次修改时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type LastModifyTime: String # @param StandbyRelated: 参数主备制约,0:无主备制约关系,1:备机参数值需比主机大,2:主机参数值需比备机大 # 注意:此字段可能返回 null,表示取不到有效值。 # @type StandbyRelated: Integer # @param VersionRelationSet: 参数版本关联信息,内容为相应内核版本下的参数详细信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type VersionRelationSet: Array # @param SpecRelationSet: 参数规格关联信息,内容为相应规格下的参数详细信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SpecRelationSet: Array attr_accessor :ID, :Name, :ParamValueType, :Unit, :DefaultValue, :CurrentValue, :Max, :EnumValue, :Min, :ParamDescriptionCH, :ParamDescriptionEN, :NeedReboot, :ClassificationCN, :ClassificationEN, :SpecRelated, :Advanced, :LastModifyTime, :StandbyRelated, :VersionRelationSet, :SpecRelationSet def initialize(id=nil, name=nil, paramvaluetype=nil, unit=nil, defaultvalue=nil, currentvalue=nil, max=nil, enumvalue=nil, min=nil, paramdescriptionch=nil, paramdescriptionen=nil, needreboot=nil, classificationcn=nil, classificationen=nil, specrelated=nil, advanced=nil, lastmodifytime=nil, standbyrelated=nil, versionrelationset=nil, specrelationset=nil) @ID = id @Name = name @ParamValueType = paramvaluetype @Unit = unit @DefaultValue = defaultvalue @CurrentValue = currentvalue @Max = max @EnumValue = enumvalue @Min = min @ParamDescriptionCH = paramdescriptionch @ParamDescriptionEN = paramdescriptionen @NeedReboot = needreboot @ClassificationCN = classificationcn @ClassificationEN = classificationen @SpecRelated = specrelated @Advanced = advanced @LastModifyTime = lastmodifytime @StandbyRelated = standbyrelated @VersionRelationSet = versionrelationset @SpecRelationSet = specrelationset end def deserialize(params) @ID = params['ID'] @Name = params['Name'] @ParamValueType = params['ParamValueType'] @Unit = params['Unit'] @DefaultValue = params['DefaultValue'] @CurrentValue = params['CurrentValue'] @Max = params['Max'] @EnumValue = params['EnumValue'] @Min = params['Min'] @ParamDescriptionCH = params['ParamDescriptionCH'] @ParamDescriptionEN = params['ParamDescriptionEN'] @NeedReboot = params['NeedReboot'] @ClassificationCN = params['ClassificationCN'] @ClassificationEN = params['ClassificationEN'] @SpecRelated = params['SpecRelated'] @Advanced = params['Advanced'] @LastModifyTime = params['LastModifyTime'] @StandbyRelated = params['StandbyRelated'] unless params['VersionRelationSet'].nil? @VersionRelationSet = [] params['VersionRelationSet'].each do |i| paramversionrelation_tmp = ParamVersionRelation.new paramversionrelation_tmp.deserialize(i) @VersionRelationSet << paramversionrelation_tmp end end unless params['SpecRelationSet'].nil? @SpecRelationSet = [] params['SpecRelationSet'].each do |i| paramspecrelation_tmp = ParamSpecRelation.new paramspecrelation_tmp.deserialize(i) @SpecRelationSet << paramspecrelation_tmp end end end end # 各规格下的参数信息 class ParamSpecRelation < TencentCloud::Common::AbstractModel # @param Name: 参数名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Name: String # @param Memory: 参数信息所属规格 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Memory: String # @param Value: 参数在该规格下的默认值 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Value: String # @param Unit: 参数值单位。参数没有单位时,该字段返回空 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Unit: String # @param Max: 数值类型(integer、real)参数,取值上界 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Max: Float # @param Min: 数值类型(integer、real)参数,取值下界 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Min: Float # @param EnumValue: 枚举类型参数,取值范围 # 注意:此字段可能返回 null,表示取不到有效值。 # @type EnumValue: Array attr_accessor :Name, :Memory, :Value, :Unit, :Max, :Min, :EnumValue def initialize(name=nil, memory=nil, value=nil, unit=nil, max=nil, min=nil, enumvalue=nil) @Name = name @Memory = memory @Value = value @Unit = unit @Max = max @Min = min @EnumValue = enumvalue end def deserialize(params) @Name = params['Name'] @Memory = params['Memory'] @Value = params['Value'] @Unit = params['Unit'] @Max = params['Max'] @Min = params['Min'] @EnumValue = params['EnumValue'] end end # 各版本下的参数信息 class ParamVersionRelation < TencentCloud::Common::AbstractModel # @param Name: 参数名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Name: String # @param DBKernelVersion: 参数信息所属内核版本 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBKernelVersion: String # @param Value: 参数在该版本该规格下的默认值 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Value: String # @param Unit: 参数值单位。参数没有单位时,该字段返回空 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Unit: String # @param Max: 数值类型(integer、real)参数,取值上界 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Max: Float # @param Min: 数值类型(integer、real)参数,取值下界 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Min: Float # @param EnumValue: 枚举类型参数,取值范围 # 注意:此字段可能返回 null,表示取不到有效值。 # @type EnumValue: Array attr_accessor :Name, :DBKernelVersion, :Value, :Unit, :Max, :Min, :EnumValue def initialize(name=nil, dbkernelversion=nil, value=nil, unit=nil, max=nil, min=nil, enumvalue=nil) @Name = name @DBKernelVersion = dbkernelversion @Value = value @Unit = unit @Max = max @Min = min @EnumValue = enumvalue end def deserialize(params) @Name = params['Name'] @DBKernelVersion = params['DBKernelVersion'] @Value = params['Value'] @Unit = params['Unit'] @Max = params['Max'] @Min = params['Min'] @EnumValue = params['EnumValue'] end end # 参数模板的基本信息 class ParameterTemplate < TencentCloud::Common::AbstractModel # @param TemplateId: 参数模板ID # @type TemplateId: String # @param TemplateName: 参数模板名称 # @type TemplateName: String # @param DBMajorVersion: 参数模板适用的数据库版本 # @type DBMajorVersion: String # @param DBEngine: 参数模板适用的数据库引擎 # @type DBEngine: String # @param TemplateDescription: 参数模板描述 # @type TemplateDescription: String attr_accessor :TemplateId, :TemplateName, :DBMajorVersion, :DBEngine, :TemplateDescription def initialize(templateid=nil, templatename=nil, dbmajorversion=nil, dbengine=nil, templatedescription=nil) @TemplateId = templateid @TemplateName = templatename @DBMajorVersion = dbmajorversion @DBEngine = dbengine @TemplateDescription = templatedescription end def deserialize(params) @TemplateId = params['TemplateId'] @TemplateName = params['TemplateName'] @DBMajorVersion = params['DBMajorVersion'] @DBEngine = params['DBEngine'] @TemplateDescription = params['TemplateDescription'] end end # 订单详情 class PgDeal < TencentCloud::Common::AbstractModel # @param DealName: 订单名 # @type DealName: String # @param OwnerUin: 所属用户 # @type OwnerUin: String # @param Count: 订单涉及多少个实例 # @type Count: Integer # @param PayMode: 付费模式。1-预付费;0-后付费 # @type PayMode: Integer # @param FlowId: 异步任务流程ID # @type FlowId: Integer # @param DBInstanceIdSet: 实例ID数组 # @type DBInstanceIdSet: Array attr_accessor :DealName, :OwnerUin, :Count, :PayMode, :FlowId, :DBInstanceIdSet def initialize(dealname=nil, owneruin=nil, count=nil, paymode=nil, flowid=nil, dbinstanceidset=nil) @DealName = dealname @OwnerUin = owneruin @Count = count @PayMode = paymode @FlowId = flowid @DBInstanceIdSet = dbinstanceidset end def deserialize(params) @DealName = params['DealName'] @OwnerUin = params['OwnerUin'] @Count = params['Count'] @PayMode = params['PayMode'] @FlowId = params['FlowId'] @DBInstanceIdSet = params['DBInstanceIdSet'] end end # 安全组规则信息 class PolicyRule < TencentCloud::Common::AbstractModel # @param Action: 策略,ACCEPT 或者 DROP # @type Action: String # @param CidrIp: 来源或目的 IP 或 IP 段,例如172.16.0.0/12 # @type CidrIp: String # @param PortRange: 端口 # @type PortRange: String # @param IpProtocol: 网络协议,支持 UDP、TCP 等 # @type IpProtocol: String # @param Description: 规则描述 # @type Description: String attr_accessor :Action, :CidrIp, :PortRange, :IpProtocol, :Description def initialize(action=nil, cidrip=nil, portrange=nil, ipprotocol=nil, description=nil) @Action = action @CidrIp = cidrip @PortRange = portrange @IpProtocol = ipprotocol @Description = description end def deserialize(params) @Action = params['Action'] @CidrIp = params['CidrIp'] @PortRange = params['PortRange'] @IpProtocol = params['IpProtocol'] @Description = params['Description'] end end # 慢SQL查询接口返回 慢SQL列表详情 class RawSlowQuery < TencentCloud::Common::AbstractModel # @param RawQuery: 慢SQL 语句 # @type RawQuery: String # @param DatabaseName: 慢SQL 查询的数据库 # @type DatabaseName: String # @param Duration: 慢SQL执行 耗时 # @type Duration: Float # @param ClientAddr: 执行慢SQL的客户端 # @type ClientAddr: String # @param UserName: 执行慢SQL的用户名 # @type UserName: String # @param SessionStartTime: 慢SQL执行的开始时间 # @type SessionStartTime: String attr_accessor :RawQuery, :DatabaseName, :Duration, :ClientAddr, :UserName, :SessionStartTime def initialize(rawquery=nil, databasename=nil, duration=nil, clientaddr=nil, username=nil, sessionstarttime=nil) @RawQuery = rawquery @DatabaseName = databasename @Duration = duration @ClientAddr = clientaddr @UserName = username @SessionStartTime = sessionstarttime end def deserialize(params) @RawQuery = params['RawQuery'] @DatabaseName = params['DatabaseName'] @Duration = params['Duration'] @ClientAddr = params['ClientAddr'] @UserName = params['UserName'] @SessionStartTime = params['SessionStartTime'] end end # 只读组信息 class ReadOnlyGroup < TencentCloud::Common::AbstractModel # @param ReadOnlyGroupId: 只读组标识 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ReadOnlyGroupId: String # @param ReadOnlyGroupName: 只读组名字 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ReadOnlyGroupName: String # @param ProjectId: 项目id # 注意:此字段可能返回 null,表示取不到有效值。 # @type ProjectId: Integer # @param MasterDBInstanceId: 主实例id # 注意:此字段可能返回 null,表示取不到有效值。 # @type MasterDBInstanceId: String # @param MinDelayEliminateReserve: 最小保留实例数 # 注意:此字段可能返回 null,表示取不到有效值。 # @type MinDelayEliminateReserve: Integer # @param MaxReplayLatency: 延迟空间大小阈值 # @type MaxReplayLatency: Integer # @param ReplayLatencyEliminate: 延迟大小开关 # @type ReplayLatencyEliminate: Integer # @param MaxReplayLag: 延迟时间大小阈值 # @type MaxReplayLag: Float # @param ReplayLagEliminate: 延迟时间开关 # @type ReplayLagEliminate: Integer # @param VpcId: 虚拟网络id # @type VpcId: String # @param SubnetId: 子网id # 注意:此字段可能返回 null,表示取不到有效值。 # @type SubnetId: String # @param Region: 地域id # @type Region: String # @param Zone: 地区id # @type Zone: String # @param Status: 状态 # @type Status: String # @param ReadOnlyDBInstanceList: 实例详细信息 # @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, :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, networkaccesslist=nil) @ReadOnlyGroupId = readonlygroupid @ReadOnlyGroupName = readonlygroupname @ProjectId = projectid @MasterDBInstanceId = masterdbinstanceid @MinDelayEliminateReserve = mindelayeliminatereserve @MaxReplayLatency = maxreplaylatency @ReplayLatencyEliminate = replaylatencyeliminate @MaxReplayLag = maxreplaylag @ReplayLagEliminate = replaylageliminate @VpcId = vpcid @SubnetId = subnetid @Region = region @Zone = zone @Status = status @ReadOnlyDBInstanceList = readonlydbinstancelist @Rebalance = rebalance @DBInstanceNetInfo = dbinstancenetinfo @NetworkAccessList = networkaccesslist end def deserialize(params) @ReadOnlyGroupId = params['ReadOnlyGroupId'] @ReadOnlyGroupName = params['ReadOnlyGroupName'] @ProjectId = params['ProjectId'] @MasterDBInstanceId = params['MasterDBInstanceId'] @MinDelayEliminateReserve = params['MinDelayEliminateReserve'] @MaxReplayLatency = params['MaxReplayLatency'] @ReplayLatencyEliminate = params['ReplayLatencyEliminate'] @MaxReplayLag = params['MaxReplayLag'] @ReplayLagEliminate = params['ReplayLagEliminate'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @Region = params['Region'] @Zone = params['Zone'] @Status = params['Status'] unless params['ReadOnlyDBInstanceList'].nil? @ReadOnlyDBInstanceList = [] params['ReadOnlyDBInstanceList'].each do |i| dbinstance_tmp = DBInstance.new dbinstance_tmp.deserialize(i) @ReadOnlyDBInstanceList << dbinstance_tmp end end @Rebalance = params['Rebalance'] unless params['DBInstanceNetInfo'].nil? @DBInstanceNetInfo = [] params['DBInstanceNetInfo'].each do |i| 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 # @param ReadOnlyGroupId: 只读组ID # @type ReadOnlyGroupId: String attr_accessor :ReadOnlyGroupId def initialize(readonlygroupid=nil) @ReadOnlyGroupId = readonlygroupid end def deserialize(params) @ReadOnlyGroupId = params['ReadOnlyGroupId'] end end # RebalanceReadOnlyGroup返回参数结构体 class RebalanceReadOnlyGroupResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # 描述地域的编码和状态等信息 class RegionInfo < TencentCloud::Common::AbstractModel # @param Region: 该地域对应的英文名称 # @type Region: String # @param RegionName: 该地域对应的中文名称 # @type RegionName: String # @param RegionId: 该地域对应的数字编号 # @type RegionId: Integer # @param RegionState: 可用状态,UNAVAILABLE表示不可用,AVAILABLE表示可用 # @type RegionState: String # @param SupportInternational: 该地域是否支持国际站售卖,0:不支持,1:支持 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SupportInternational: Integer attr_accessor :Region, :RegionName, :RegionId, :RegionState, :SupportInternational def initialize(region=nil, regionname=nil, regionid=nil, regionstate=nil, supportinternational=nil) @Region = region @RegionName = regionname @RegionId = regionid @RegionState = regionstate @SupportInternational = supportinternational end def deserialize(params) @Region = params['Region'] @RegionName = params['RegionName'] @RegionId = params['RegionId'] @RegionState = params['RegionState'] @SupportInternational = params['SupportInternational'] end end # RemoveDBInstanceFromReadOnlyGroup请求参数结构体 class RemoveDBInstanceFromReadOnlyGroupRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID # @type DBInstanceId: String # @param ReadOnlyGroupId: 只读组ID # @type ReadOnlyGroupId: String attr_accessor :DBInstanceId, :ReadOnlyGroupId def initialize(dbinstanceid=nil, readonlygroupid=nil) @DBInstanceId = dbinstanceid @ReadOnlyGroupId = readonlygroupid end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @ReadOnlyGroupId = params['ReadOnlyGroupId'] end end # RemoveDBInstanceFromReadOnlyGroup返回参数结构体 class RemoveDBInstanceFromReadOnlyGroupResponse < TencentCloud::Common::AbstractModel # @param FlowId: 流程ID # @type FlowId: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FlowId, :RequestId def initialize(flowid=nil, requestid=nil) @FlowId = flowid @RequestId = requestid end def deserialize(params) @FlowId = params['FlowId'] @RequestId = params['RequestId'] end end # RenewInstance请求参数结构体 class RenewInstanceRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID,形如postgres-6fego161 # @type DBInstanceId: String # @param Period: 续费多少个月 # @type Period: Integer # @param AutoVoucher: 是否自动使用代金券,1是,0否,默认不使用 # @type AutoVoucher: Integer # @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券 # @type VoucherIds: Array attr_accessor :DBInstanceId, :Period, :AutoVoucher, :VoucherIds def initialize(dbinstanceid=nil, period=nil, autovoucher=nil, voucherids=nil) @DBInstanceId = dbinstanceid @Period = period @AutoVoucher = autovoucher @VoucherIds = voucherids end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @Period = params['Period'] @AutoVoucher = params['AutoVoucher'] @VoucherIds = params['VoucherIds'] end end # RenewInstance返回参数结构体 class RenewInstanceResponse < TencentCloud::Common::AbstractModel # @param DealName: 订单名 # @type DealName: String # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :DealName, :RequestId def initialize(dealname=nil, requestid=nil) @DealName = dealname @RequestId = requestid end def deserialize(params) @DealName = params['DealName'] @RequestId = params['RequestId'] end end # ResetAccountPassword请求参数结构体 class ResetAccountPasswordRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID,形如postgres-4wdeb0zv # @type DBInstanceId: String # @param UserName: 实例账户名 # @type UserName: String # @param Password: UserName账户对应的新密码 # @type Password: String attr_accessor :DBInstanceId, :UserName, :Password def initialize(dbinstanceid=nil, username=nil, password=nil) @DBInstanceId = dbinstanceid @UserName = username @Password = password end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @UserName = params['UserName'] @Password = params['Password'] end end # ResetAccountPassword返回参数结构体 class ResetAccountPasswordResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # RestartDBInstance请求参数结构体 class RestartDBInstanceRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID,形如postgres-6r233v55 # @type DBInstanceId: String attr_accessor :DBInstanceId def initialize(dbinstanceid=nil) @DBInstanceId = dbinstanceid end def deserialize(params) @DBInstanceId = params['DBInstanceId'] end end # RestartDBInstance返回参数结构体 class RestartDBInstanceResponse < TencentCloud::Common::AbstractModel # @param FlowId: 异步流程ID # @type FlowId: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FlowId, :RequestId def initialize(flowid=nil, requestid=nil) @FlowId = flowid @RequestId = requestid end def deserialize(params) @FlowId = params['FlowId'] @RequestId = params['RequestId'] end end # 安全组信息 class SecurityGroup < TencentCloud::Common::AbstractModel # @param ProjectId: 项目Id # @type ProjectId: Integer # @param CreateTime: 创建时间 # @type CreateTime: String # @param Inbound: 入站规则 # @type Inbound: Array # @param Outbound: 出站规则 # @type Outbound: Array # @param SecurityGroupId: 安全组ID # @type SecurityGroupId: String # @param SecurityGroupName: 安全组名称 # @type SecurityGroupName: String # @param SecurityGroupDescription: 安全组备注 # @type SecurityGroupDescription: String attr_accessor :ProjectId, :CreateTime, :Inbound, :Outbound, :SecurityGroupId, :SecurityGroupName, :SecurityGroupDescription def initialize(projectid=nil, createtime=nil, inbound=nil, outbound=nil, securitygroupid=nil, securitygroupname=nil, securitygroupdescription=nil) @ProjectId = projectid @CreateTime = createtime @Inbound = inbound @Outbound = outbound @SecurityGroupId = securitygroupid @SecurityGroupName = securitygroupname @SecurityGroupDescription = securitygroupdescription end def deserialize(params) @ProjectId = params['ProjectId'] @CreateTime = params['CreateTime'] unless params['Inbound'].nil? @Inbound = [] params['Inbound'].each do |i| policyrule_tmp = PolicyRule.new policyrule_tmp.deserialize(i) @Inbound << policyrule_tmp end end unless params['Outbound'].nil? @Outbound = [] params['Outbound'].each do |i| policyrule_tmp = PolicyRule.new policyrule_tmp.deserialize(i) @Outbound << policyrule_tmp end end @SecurityGroupId = params['SecurityGroupId'] @SecurityGroupName = params['SecurityGroupName'] @SecurityGroupDescription = params['SecurityGroupDescription'] end end # serverless账号描述 class ServerlessDBAccount < TencentCloud::Common::AbstractModel # @param DBUser: 用户名 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBUser: String # @param DBPassword: 密码 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBPassword: String # @param DBConnLimit: 连接数限制 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBConnLimit: Integer attr_accessor :DBUser, :DBPassword, :DBConnLimit def initialize(dbuser=nil, dbpassword=nil, dbconnlimit=nil) @DBUser = dbuser @DBPassword = dbpassword @DBConnLimit = dbconnlimit end def deserialize(params) @DBUser = params['DBUser'] @DBPassword = params['DBPassword'] @DBConnLimit = params['DBConnLimit'] end end # serverless实例描述 class ServerlessDBInstance < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例id,唯一标识符 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBInstanceId: String # @param DBInstanceName: 实例名称 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBInstanceName: String # @param DBInstanceStatus: 实例状态 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBInstanceStatus: String # @param Region: 地域 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Region: String # @param Zone: 可用区 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Zone: String # @param ProjectId: 项目id # 注意:此字段可能返回 null,表示取不到有效值。 # @type ProjectId: Integer # @param VpcId: 私有网络Id # 注意:此字段可能返回 null,表示取不到有效值。 # @type VpcId: String # @param SubnetId: 子网id # 注意:此字段可能返回 null,表示取不到有效值。 # @type SubnetId: String # @param DBCharset: 字符集 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBCharset: String # @param DBVersion: 数据库版本 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBVersion: String # @param CreateTime: 创建时间 # 注意:此字段可能返回 null,表示取不到有效值。 # @type CreateTime: String # @param DBInstanceNetInfo: 实例网络信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBInstanceNetInfo: Array # @param DBAccountSet: 实例账户信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBAccountSet: Array # @param DBDatabaseList: 实例下的db信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DBDatabaseList: Array # @param TagList: 实例绑定的标签数组 # 注意:此字段可能返回 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, :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, dbmajorversion=nil) @DBInstanceId = dbinstanceid @DBInstanceName = dbinstancename @DBInstanceStatus = dbinstancestatus @Region = region @Zone = zone @ProjectId = projectid @VpcId = vpcid @SubnetId = subnetid @DBCharset = dbcharset @DBVersion = dbversion @CreateTime = createtime @DBInstanceNetInfo = dbinstancenetinfo @DBAccountSet = dbaccountset @DBDatabaseList = dbdatabaselist @TagList = taglist @DBKernelVersion = dbkernelversion @DBMajorVersion = dbmajorversion end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @DBInstanceName = params['DBInstanceName'] @DBInstanceStatus = params['DBInstanceStatus'] @Region = params['Region'] @Zone = params['Zone'] @ProjectId = params['ProjectId'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @DBCharset = params['DBCharset'] @DBVersion = params['DBVersion'] @CreateTime = params['CreateTime'] unless params['DBInstanceNetInfo'].nil? @DBInstanceNetInfo = [] params['DBInstanceNetInfo'].each do |i| serverlessdbinstancenetinfo_tmp = ServerlessDBInstanceNetInfo.new serverlessdbinstancenetinfo_tmp.deserialize(i) @DBInstanceNetInfo << serverlessdbinstancenetinfo_tmp end end unless params['DBAccountSet'].nil? @DBAccountSet = [] params['DBAccountSet'].each do |i| serverlessdbaccount_tmp = ServerlessDBAccount.new serverlessdbaccount_tmp.deserialize(i) @DBAccountSet << serverlessdbaccount_tmp end end @DBDatabaseList = params['DBDatabaseList'] unless params['TagList'].nil? @TagList = [] params['TagList'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @TagList << tag_tmp end end @DBKernelVersion = params['DBKernelVersion'] @DBMajorVersion = params['DBMajorVersion'] end end # serverless实例网络信息描述 class ServerlessDBInstanceNetInfo < TencentCloud::Common::AbstractModel # @param Address: 地址 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Address: String # @param Ip: ip地址 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Ip: String # @param Port: 端口号 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Port: Integer # @param Status: 状态 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Status: String # @param NetType: 网络类型 # 注意:此字段可能返回 null,表示取不到有效值。 # @type NetType: String attr_accessor :Address, :Ip, :Port, :Status, :NetType def initialize(address=nil, ip=nil, port=nil, status=nil, nettype=nil) @Address = address @Ip = ip @Port = port @Status = status @NetType = nettype end def deserialize(params) @Address = params['Address'] @Ip = params['Ip'] @Port = params['Port'] @Status = params['Status'] @NetType = params['NetType'] end end # SetAutoRenewFlag请求参数结构体 class SetAutoRenewFlagRequest < TencentCloud::Common::AbstractModel # @param DBInstanceIdSet: 实例ID集合。注意:当前已不支持同时操作多个实例,这里只能传入单个实例ID。 # @type DBInstanceIdSet: Array # @param AutoRenewFlag: 续费标记。0-正常续费;1-自动续费;2-到期不续费 # @type AutoRenewFlag: Integer attr_accessor :DBInstanceIdSet, :AutoRenewFlag def initialize(dbinstanceidset=nil, autorenewflag=nil) @DBInstanceIdSet = dbinstanceidset @AutoRenewFlag = autorenewflag end def deserialize(params) @DBInstanceIdSet = params['DBInstanceIdSet'] @AutoRenewFlag = params['AutoRenewFlag'] end end # SetAutoRenewFlag返回参数结构体 class SetAutoRenewFlagResponse < TencentCloud::Common::AbstractModel # @param Count: 设置成功的实例个数 # @type Count: Integer # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Count, :RequestId def initialize(count=nil, requestid=nil) @Count = count @RequestId = requestid end def deserialize(params) @Count = params['Count'] @RequestId = params['RequestId'] end end # 慢查询详情 class SlowlogDetail < TencentCloud::Common::AbstractModel # @param TotalTime: 花费总时间 # @type TotalTime: Float # @param TotalCalls: 调用总次数 # @type TotalCalls: Integer # @param NormalQueries: 脱敏后的慢SQL列表 # @type NormalQueries: Array attr_accessor :TotalTime, :TotalCalls, :NormalQueries def initialize(totaltime=nil, totalcalls=nil, normalqueries=nil) @TotalTime = totaltime @TotalCalls = totalcalls @NormalQueries = normalqueries end def deserialize(params) @TotalTime = params['TotalTime'] @TotalCalls = params['TotalCalls'] unless params['NormalQueries'].nil? @NormalQueries = [] params['NormalQueries'].each do |i| normalqueryitem_tmp = NormalQueryItem.new normalqueryitem_tmp.deserialize(i) @NormalQueries << normalqueryitem_tmp end end end end # 描述某个地域下某个可用区的可售卖规格详细信息。 class SpecInfo < TencentCloud::Common::AbstractModel # @param Region: 地域英文编码,对应RegionSet的Region字段 # @type Region: String # @param Zone: 区域英文编码,对应ZoneSet的Zone字段 # @type Zone: String # @param SpecItemInfoList: 规格详细信息列表 # @type SpecItemInfoList: Array # @param SupportKMSRegions: 支持KMS的地域 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SupportKMSRegions: Array attr_accessor :Region, :Zone, :SpecItemInfoList, :SupportKMSRegions def initialize(region=nil, zone=nil, speciteminfolist=nil, supportkmsregions=nil) @Region = region @Zone = zone @SpecItemInfoList = speciteminfolist @SupportKMSRegions = supportkmsregions end def deserialize(params) @Region = params['Region'] @Zone = params['Zone'] unless params['SpecItemInfoList'].nil? @SpecItemInfoList = [] params['SpecItemInfoList'].each do |i| speciteminfo_tmp = SpecItemInfo.new speciteminfo_tmp.deserialize(i) @SpecItemInfoList << speciteminfo_tmp end end @SupportKMSRegions = params['SupportKMSRegions'] end end # 描述一种规格的信息 class SpecItemInfo < TencentCloud::Common::AbstractModel # @param SpecCode: 规格ID # @type SpecCode: String # @param Version: PostgreSQL的版本编号 # @type Version: String # @param VersionName: 内核编号对应的完整版本名称 # @type VersionName: String # @param Cpu: CPU核数 # @type Cpu: Integer # @param Memory: 内存大小,单位:MB # @type Memory: Integer # @param MaxStorage: 该规格所支持最大存储容量,单位:GB # @type MaxStorage: Integer # @param MinStorage: 该规格所支持最小存储容量,单位:GB # @type MinStorage: Integer # @param Qps: 该规格的预估QPS # @type Qps: Integer # @param Pid: 【该字段废弃】 # @type Pid: Integer # @param Type: 机器类型 # @type Type: String # @param MajorVersion: PostgreSQL的主要版本编号 # 注意:此字段可能返回 null,表示取不到有效值。 # @type MajorVersion: String # @param KernelVersion: PostgreSQL的内核版本编号 # 注意:此字段可能返回 null,表示取不到有效值。 # @type KernelVersion: String # @param IsSupportTDE: 是否支持TDE数据加密功能,0-不支持,1-支持 # 注意:此字段可能返回 null,表示取不到有效值。 # @type IsSupportTDE: Integer attr_accessor :SpecCode, :Version, :VersionName, :Cpu, :Memory, :MaxStorage, :MinStorage, :Qps, :Pid, :Type, :MajorVersion, :KernelVersion, :IsSupportTDE 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, issupporttde=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 @IsSupportTDE = issupporttde end def deserialize(params) @SpecCode = params['SpecCode'] @Version = params['Version'] @VersionName = params['VersionName'] @Cpu = params['Cpu'] @Memory = params['Memory'] @MaxStorage = params['MaxStorage'] @MinStorage = params['MinStorage'] @Qps = params['Qps'] @Pid = params['Pid'] @Type = params['Type'] @MajorVersion = params['MajorVersion'] @KernelVersion = params['KernelVersion'] @IsSupportTDE = params['IsSupportTDE'] end end # SwitchDBInstancePrimary请求参数结构体 class SwitchDBInstancePrimaryRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID # @type DBInstanceId: String # @param Force: 是否强制切换。强制切换时只要备节点可访问,无论主备延迟多大都会发起切换。只有SwitchTag为0时,才可使用立即切换。 #
  • 默认:false # @type Force: Boolean # @param SwitchTag: 指定实例配置完成变更后的切换时间。 #
  • 0:立即切换 #
  • 1:指定时间切换 #
  • 2:维护时间窗口内切换 #
  • 默认值:0 # @type SwitchTag: Integer # @param SwitchStartTime: 切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。当SwitchTag为0或2时,该参数失效。 # @type SwitchStartTime: String # @param SwitchEndTime: 切换截止时间,时间格式:HH:MM:SS,例如:01:30:00。当SwitchTag为0或2时,该参数失效。SwitchStartTime和SwitchEndTime时间窗口不能小于30分钟。 # @type SwitchEndTime: String attr_accessor :DBInstanceId, :Force, :SwitchTag, :SwitchStartTime, :SwitchEndTime def initialize(dbinstanceid=nil, force=nil, switchtag=nil, switchstarttime=nil, switchendtime=nil) @DBInstanceId = dbinstanceid @Force = force @SwitchTag = switchtag @SwitchStartTime = switchstarttime @SwitchEndTime = switchendtime end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @Force = params['Force'] @SwitchTag = params['SwitchTag'] @SwitchStartTime = params['SwitchStartTime'] @SwitchEndTime = params['SwitchEndTime'] end end # SwitchDBInstancePrimary返回参数结构体 class SwitchDBInstancePrimaryResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # 实例绑定的标签信息,包含标签键TagKey和标签值TagValue class Tag < TencentCloud::Common::AbstractModel # @param TagKey: 标签键 # @type TagKey: String # @param TagValue: 标签值 # @type TagValue: String attr_accessor :TagKey, :TagValue def initialize(tagkey=nil, tagvalue=nil) @TagKey = tagkey @TagValue = tagvalue end def deserialize(params) @TagKey = params['TagKey'] @TagValue = params['TagValue'] end end # UpgradeDBInstanceKernelVersion请求参数结构体 class UpgradeDBInstanceKernelVersionRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID。 # @type DBInstanceId: String # @param TargetDBKernelVersion: 升级的目标内核版本号。可以通过接口[DescribeDBVersions](https://cloud.tencent.com/document/api/409/89018)的返回字段AvailableUpgradeTarget获取。 # @type TargetDBKernelVersion: String # @param SwitchTag: 指定实例升级内核版本号完成后的切换时间。可选值: #
  • 0:立即切换 #
  • 1:指定时间切换 #
  • 2:维护时间窗口内切换 # 默认值:0 # @type SwitchTag: Integer # @param SwitchStartTime: 切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。当SwitchTag为0或2时,该参数失效。 # @type SwitchStartTime: String # @param SwitchEndTime: 切换截止时间,时间格式:HH:MM:SS,例如:01:30:00。当SwitchTag为0或2时,该参数失效。SwitchStartTime和SwitchEndTime时间窗口不能小于30分钟。 # @type SwitchEndTime: String # @param DryRun: 是否对本次升级实例内核版本号操作执行预检查。 #
  • true:执行预检查操作,不升级内核版本号。检查项目包含请求参数、内核版本号兼容性、实例参数等。 #
  • false:发送正常请求(默认值),通过检查后直接升级内核版本号。 # 默认值:false # @type DryRun: Boolean attr_accessor :DBInstanceId, :TargetDBKernelVersion, :SwitchTag, :SwitchStartTime, :SwitchEndTime, :DryRun def initialize(dbinstanceid=nil, targetdbkernelversion=nil, switchtag=nil, switchstarttime=nil, switchendtime=nil, dryrun=nil) @DBInstanceId = dbinstanceid @TargetDBKernelVersion = targetdbkernelversion @SwitchTag = switchtag @SwitchStartTime = switchstarttime @SwitchEndTime = switchendtime @DryRun = dryrun end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @TargetDBKernelVersion = params['TargetDBKernelVersion'] @SwitchTag = params['SwitchTag'] @SwitchStartTime = params['SwitchStartTime'] @SwitchEndTime = params['SwitchEndTime'] @DryRun = params['DryRun'] end end # UpgradeDBInstanceKernelVersion返回参数结构体 class UpgradeDBInstanceKernelVersionResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # UpgradeDBInstanceMajorVersion请求参数结构体 class UpgradeDBInstanceMajorVersionRequest < TencentCloud::Common::AbstractModel # @param DBInstanceId: 实例ID。 # @type DBInstanceId: String # @param TargetDBKernelVersion: 目标内核版本号,可以通过API DescribeDBVersions获取可以升级的目标内核版本号。 # @type TargetDBKernelVersion: String # @param UpgradeCheck: 是否为校验模式,若UpgradeCheck为True,表示仅进行内核版本兼容性检查,不会进行实质性的升级操作,对原实例无影响。检查结果可以通过升级日志查看。 # @type UpgradeCheck: Boolean # @param BackupBeforeUpgrade: 升级前备份选项。True,表示升级前需要创建全量备份,False,表示升级前不需要创建全量备份。当实例已有备份集可以恢复到升级前的状态时,可选择False,否则需要指定为True。UpgradeCheck为True时,此参数无效。 # @type BackupBeforeUpgrade: Boolean # @param StatisticsRefreshOption: 统计信息收集选项,对主例运行 ANALYZE 以在升级后更新系统统计信息。可选值包括, # 0:不需要收集统计信息; # 1:实例恢复写之前收集统计信息; # 3:实例恢复写之后收集统计信息。 # UpgradeCheck为True时,此参数无效。 # @type StatisticsRefreshOption: Integer # @param ExtensionUpgradeOption: 插件升级选项,pg_upgrade不会升级任何插件,需要在升级完成后在创建过插件的库上执行"ALTER EXTENSION UPDATE"。发起升级实例大版本时可以指定在实例恢复写前/后是否需要升级任务自动升级插件版本。可选值包括: # 0:不需要自动升级插件; # 1:恢复写之前升级插件; # 2:恢复写之后升级插件。 # UpgradeCheck为True时,此参数无效。 # @type ExtensionUpgradeOption: Integer # @param UpgradeTimeOption: 升级时间选项,升级过程中会有一段时间实例只读,并会有一次秒级闪断,发起升级时需要选择这段影响的时间窗。可选值包括: # 0:自动执行,不需要指定时间窗; # 1:指定本次升级任务的时间窗,通过参数UpgradeTimeBegin和UpgradeTimeEnd设置; # 2:在实例运维时间窗内执行。 # UpgradeCheck为True时,此参数无效。 # @type UpgradeTimeOption: Integer # @param UpgradeTimeBegin: 升级时间窗开始时间,时间格式:HH:MM:SS,例如:01:00:00。当UpgradeTimeOption为1时,该参数有效。 # UpgradeCheck为True时,此参数无效。 # @type UpgradeTimeBegin: String # @param UpgradeTimeEnd: 升级时间窗截止时间,时间格式:HH:MM:SS,例如:02:00:00。当UpgradeTimeOption为1时,该参数有效。 # UpgradeCheck为True时,此参数无效。 # @type UpgradeTimeEnd: String attr_accessor :DBInstanceId, :TargetDBKernelVersion, :UpgradeCheck, :BackupBeforeUpgrade, :StatisticsRefreshOption, :ExtensionUpgradeOption, :UpgradeTimeOption, :UpgradeTimeBegin, :UpgradeTimeEnd def initialize(dbinstanceid=nil, targetdbkernelversion=nil, upgradecheck=nil, backupbeforeupgrade=nil, statisticsrefreshoption=nil, extensionupgradeoption=nil, upgradetimeoption=nil, upgradetimebegin=nil, upgradetimeend=nil) @DBInstanceId = dbinstanceid @TargetDBKernelVersion = targetdbkernelversion @UpgradeCheck = upgradecheck @BackupBeforeUpgrade = backupbeforeupgrade @StatisticsRefreshOption = statisticsrefreshoption @ExtensionUpgradeOption = extensionupgradeoption @UpgradeTimeOption = upgradetimeoption @UpgradeTimeBegin = upgradetimebegin @UpgradeTimeEnd = upgradetimeend end def deserialize(params) @DBInstanceId = params['DBInstanceId'] @TargetDBKernelVersion = params['TargetDBKernelVersion'] @UpgradeCheck = params['UpgradeCheck'] @BackupBeforeUpgrade = params['BackupBeforeUpgrade'] @StatisticsRefreshOption = params['StatisticsRefreshOption'] @ExtensionUpgradeOption = params['ExtensionUpgradeOption'] @UpgradeTimeOption = params['UpgradeTimeOption'] @UpgradeTimeBegin = params['UpgradeTimeBegin'] @UpgradeTimeEnd = params['UpgradeTimeEnd'] end end # UpgradeDBInstanceMajorVersion返回参数结构体 class UpgradeDBInstanceMajorVersionResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # UpgradeDBInstance请求参数结构体 class UpgradeDBInstanceRequest < TencentCloud::Common::AbstractModel # @param Memory: 升级后的实例内存大小,单位GB # @type Memory: Integer # @param Storage: 升级后的实例磁盘大小,单位GB # @type Storage: Integer # @param DBInstanceId: 实例ID,形如postgres-lnp6j617 # @type DBInstanceId: String # @param AutoVoucher: 是否自动使用代金券,1是,0否,默认不使用 # @type AutoVoucher: Integer # @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券 # @type VoucherIds: Array # @param ActivityId: 活动ID # @type ActivityId: Integer # @param SwitchTag: 指定实例配置完成变更后的切换时间,默认为 立即切换,入参为 0 :立即切换 。1:指定时间切换。 # @type SwitchTag: Integer # @param SwitchStartTime: 切换开始时间 # @type SwitchStartTime: String # @param SwitchEndTime: 切换截止时间 # @type SwitchEndTime: String attr_accessor :Memory, :Storage, :DBInstanceId, :AutoVoucher, :VoucherIds, :ActivityId, :SwitchTag, :SwitchStartTime, :SwitchEndTime def initialize(memory=nil, storage=nil, dbinstanceid=nil, autovoucher=nil, voucherids=nil, activityid=nil, switchtag=nil, switchstarttime=nil, switchendtime=nil) @Memory = memory @Storage = storage @DBInstanceId = dbinstanceid @AutoVoucher = autovoucher @VoucherIds = voucherids @ActivityId = activityid @SwitchTag = switchtag @SwitchStartTime = switchstarttime @SwitchEndTime = switchendtime end def deserialize(params) @Memory = params['Memory'] @Storage = params['Storage'] @DBInstanceId = params['DBInstanceId'] @AutoVoucher = params['AutoVoucher'] @VoucherIds = params['VoucherIds'] @ActivityId = params['ActivityId'] @SwitchTag = params['SwitchTag'] @SwitchStartTime = params['SwitchStartTime'] @SwitchEndTime = params['SwitchEndTime'] end end # UpgradeDBInstance返回参数结构体 class UpgradeDBInstanceResponse < TencentCloud::Common::AbstractModel # @param DealName: 交易名字。 # @type DealName: String # @param BillId: 冻结流水号 # @type BillId: String # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :DealName, :BillId, :RequestId def initialize(dealname=nil, billid=nil, requestid=nil) @DealName = dealname @BillId = billid @RequestId = requestid end def deserialize(params) @DealName = params['DealName'] @BillId = params['BillId'] @RequestId = params['RequestId'] end end # 数据库版本号信息 class Version < TencentCloud::Common::AbstractModel # @param DBEngine: 数据库引擎,支持: # 1、postgresql(云数据库PostgreSQL); # 2、mssql_compatible(MSSQL兼容-云数据库PostgreSQL); # @type DBEngine: String # @param DBVersion: 数据库版本,例如:12.4 # @type DBVersion: String # @param DBMajorVersion: 数据库主要版本,例如:12 # @type DBMajorVersion: String # @param DBKernelVersion: 数据库内核版本,例如:v12.4_r1.3 # @type DBKernelVersion: String # @param SupportedFeatureNames: 数据库内核支持的特性列表。例如, # TDE:支持数据加密。 # @type SupportedFeatureNames: Array # @param Status: 数据库版本状态,包括: # AVAILABLE:可用; # DEPRECATED:已弃用。 # @type Status: String # @param AvailableUpgradeTarget: 该数据库版本(DBKernelVersion)可以升级到的版本号列表。 # @type AvailableUpgradeTarget: Array attr_accessor :DBEngine, :DBVersion, :DBMajorVersion, :DBKernelVersion, :SupportedFeatureNames, :Status, :AvailableUpgradeTarget def initialize(dbengine=nil, dbversion=nil, dbmajorversion=nil, dbkernelversion=nil, supportedfeaturenames=nil, status=nil, availableupgradetarget=nil) @DBEngine = dbengine @DBVersion = dbversion @DBMajorVersion = dbmajorversion @DBKernelVersion = dbkernelversion @SupportedFeatureNames = supportedfeaturenames @Status = status @AvailableUpgradeTarget = availableupgradetarget end def deserialize(params) @DBEngine = params['DBEngine'] @DBVersion = params['DBVersion'] @DBMajorVersion = params['DBMajorVersion'] @DBKernelVersion = params['DBKernelVersion'] @SupportedFeatureNames = params['SupportedFeatureNames'] @Status = params['Status'] @AvailableUpgradeTarget = params['AvailableUpgradeTarget'] end end # 数据库Xlog信息 class Xlog < TencentCloud::Common::AbstractModel # @param Id: 备份文件唯一标识 # @type Id: Integer # @param StartTime: 文件生成的开始时间 # @type StartTime: String # @param EndTime: 文件生成的结束时间 # @type EndTime: String # @param InternalAddr: 内网下载地址 # @type InternalAddr: String # @param ExternalAddr: 外网下载地址 # @type ExternalAddr: String # @param Size: 备份文件大小 # @type Size: Integer attr_accessor :Id, :StartTime, :EndTime, :InternalAddr, :ExternalAddr, :Size def initialize(id=nil, starttime=nil, endtime=nil, internaladdr=nil, externaladdr=nil, size=nil) @Id = id @StartTime = starttime @EndTime = endtime @InternalAddr = internaladdr @ExternalAddr = externaladdr @Size = size end def deserialize(params) @Id = params['Id'] @StartTime = params['StartTime'] @EndTime = params['EndTime'] @InternalAddr = params['InternalAddr'] @ExternalAddr = params['ExternalAddr'] @Size = params['Size'] end end # 描述可用区的编码和状态信息 class ZoneInfo < TencentCloud::Common::AbstractModel # @param Zone: 该可用区的英文名称 # @type Zone: String # @param ZoneName: 该可用区的中文名称 # @type ZoneName: String # @param ZoneId: 该可用区对应的数字编号 # @type ZoneId: Integer # @param ZoneState: 可用状态包含, # UNAVAILABLE:不可用。 # AVAILABLE:可用。 # SELLOUT:售罄。 # SUPPORTMODIFYONLY:支持变配。 # @type ZoneState: String # @param ZoneSupportIpv6: 该可用区是否支持Ipv6 # @type ZoneSupportIpv6: Integer # @param StandbyZoneSet: 该可用区对应的备可用区集合 # 注意:此字段可能返回 null,表示取不到有效值。 # @type StandbyZoneSet: Array attr_accessor :Zone, :ZoneName, :ZoneId, :ZoneState, :ZoneSupportIpv6, :StandbyZoneSet def initialize(zone=nil, zonename=nil, zoneid=nil, zonestate=nil, zonesupportipv6=nil, standbyzoneset=nil) @Zone = zone @ZoneName = zonename @ZoneId = zoneid @ZoneState = zonestate @ZoneSupportIpv6 = zonesupportipv6 @StandbyZoneSet = standbyzoneset end def deserialize(params) @Zone = params['Zone'] @ZoneName = params['ZoneName'] @ZoneId = params['ZoneId'] @ZoneState = params['ZoneState'] @ZoneSupportIpv6 = params['ZoneSupportIpv6'] @StandbyZoneSet = params['StandbyZoneSet'] end end end end end