# 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 Dcdb module V20180411 # 数据库账号信息 class Account < TencentCloud::Common::AbstractModel # @param User: 账户的名称 # @type User: String # @param Host: 账户的域名 # @type Host: String attr_accessor :User, :Host def initialize(user=nil, host=nil) @User = user @Host = host end def deserialize(params) @User = params['User'] @Host = params['Host'] end end # ActiveHourDCDBInstance请求参数结构体 class ActiveHourDCDBInstanceRequest < TencentCloud::Common::AbstractModel # @param InstanceIds: 待升级的实例ID列表。形如:["dcdbt-ow728lmc"],可以通过 DescribeDCDBInstances 查询实例详情获得。 # @type InstanceIds: Array attr_accessor :InstanceIds def initialize(instanceids=nil) @InstanceIds = instanceids end def deserialize(params) @InstanceIds = params['InstanceIds'] end end # ActiveHourDCDBInstance返回参数结构体 class ActiveHourDCDBInstanceResponse < TencentCloud::Common::AbstractModel # @param SuccessInstanceIds: 解隔离成功的实例id列表 # @type SuccessInstanceIds: Array # @param FailedInstanceIds: 解隔离失败的实例id列表 # @type FailedInstanceIds: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :SuccessInstanceIds, :FailedInstanceIds, :RequestId def initialize(successinstanceids=nil, failedinstanceids=nil, requestid=nil) @SuccessInstanceIds = successinstanceids @FailedInstanceIds = failedinstanceids @RequestId = requestid end def deserialize(params) @SuccessInstanceIds = params['SuccessInstanceIds'] @FailedInstanceIds = params['FailedInstanceIds'] @RequestId = params['RequestId'] end end # 升级实例 -- 新增分片类型 class AddShardConfig < TencentCloud::Common::AbstractModel # @param ShardCount: 新增分片的数量 # @type ShardCount: Integer # @param ShardMemory: 分片内存大小,单位 GB # @type ShardMemory: Integer # @param ShardStorage: 分片存储大小,单位 GB # @type ShardStorage: Integer attr_accessor :ShardCount, :ShardMemory, :ShardStorage def initialize(shardcount=nil, shardmemory=nil, shardstorage=nil) @ShardCount = shardcount @ShardMemory = shardmemory @ShardStorage = shardstorage end def deserialize(params) @ShardCount = params['ShardCount'] @ShardMemory = params['ShardMemory'] @ShardStorage = params['ShardStorage'] end end # AssociateSecurityGroups请求参数结构体 class AssociateSecurityGroupsRequest < TencentCloud::Common::AbstractModel # @param Product: 数据库引擎名称,本接口取值:dcdb。 # @type Product: String # @param SecurityGroupId: 要绑定的安全组ID,类似sg-efil73jd。 # @type SecurityGroupId: String # @param InstanceIds: 被绑定的实例ID,类似tdsqlshard-lesecurk,支持指定多个实例。 # @type InstanceIds: Array attr_accessor :Product, :SecurityGroupId, :InstanceIds def initialize(product=nil, securitygroupid=nil, instanceids=nil) @Product = product @SecurityGroupId = securitygroupid @InstanceIds = instanceids end def deserialize(params) @Product = params['Product'] @SecurityGroupId = params['SecurityGroupId'] @InstanceIds = params['InstanceIds'] end end # AssociateSecurityGroups返回参数结构体 class AssociateSecurityGroupsResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # 描述分片DB节点信息 class BriefNodeInfo < TencentCloud::Common::AbstractModel # @param NodeId: DB节点ID # @type NodeId: String # @param Role: DB节点角色,取值为master或者slave # @type Role: String # @param ShardId: 节点所属分片的分片ID # @type ShardId: String attr_accessor :NodeId, :Role, :ShardId def initialize(nodeid=nil, role=nil, shardid=nil) @NodeId = nodeid @Role = role @ShardId = shardid end def deserialize(params) @NodeId = params['NodeId'] @Role = params['Role'] @ShardId = params['ShardId'] end end # CancelDcnJob请求参数结构体 class CancelDcnJobRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 灾备实例ID # @type InstanceId: String attr_accessor :InstanceId def initialize(instanceid=nil) @InstanceId = instanceid end def deserialize(params) @InstanceId = params['InstanceId'] end end # CancelDcnJob返回参数结构体 class CancelDcnJobResponse < TencentCloud::Common::AbstractModel # @param FlowId: 流程ID # @type FlowId: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 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 # CloneAccount请求参数结构体 class CloneAccountRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例ID # @type InstanceId: String # @param SrcUser: 源用户账户名 # @type SrcUser: String # @param SrcHost: 源用户HOST # @type SrcHost: String # @param DstUser: 目的用户账户名 # @type DstUser: String # @param DstHost: 目的用户HOST # @type DstHost: String # @param DstDesc: 目的用户账户描述 # @type DstDesc: String attr_accessor :InstanceId, :SrcUser, :SrcHost, :DstUser, :DstHost, :DstDesc def initialize(instanceid=nil, srcuser=nil, srchost=nil, dstuser=nil, dsthost=nil, dstdesc=nil) @InstanceId = instanceid @SrcUser = srcuser @SrcHost = srchost @DstUser = dstuser @DstHost = dsthost @DstDesc = dstdesc end def deserialize(params) @InstanceId = params['InstanceId'] @SrcUser = params['SrcUser'] @SrcHost = params['SrcHost'] @DstUser = params['DstUser'] @DstHost = params['DstHost'] @DstDesc = params['DstDesc'] end end # CloneAccount返回参数结构体 class CloneAccountResponse < TencentCloud::Common::AbstractModel # @param FlowId: 异步任务流程ID # @type FlowId: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 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 # CloseDBExtranetAccess请求参数结构体 class CloseDBExtranetAccessRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 待关闭外网访问的实例ID。形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。 # @type InstanceId: String # @param Ipv6Flag: 是否IPv6,默认0 # @type Ipv6Flag: Integer attr_accessor :InstanceId, :Ipv6Flag def initialize(instanceid=nil, ipv6flag=nil) @InstanceId = instanceid @Ipv6Flag = ipv6flag end def deserialize(params) @InstanceId = params['InstanceId'] @Ipv6Flag = params['Ipv6Flag'] end end # CloseDBExtranetAccess返回参数结构体 class CloseDBExtranetAccessResponse < TencentCloud::Common::AbstractModel # @param FlowId: 异步任务ID,可通过 DescribeFlow 查询任务状态。 # @type FlowId: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 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 ColumnPrivilege < TencentCloud::Common::AbstractModel # @param Database: 数据库名 # @type Database: String # @param Table: 数据库表名 # @type Table: String # @param Column: 数据库列名 # @type Column: String # @param Privileges: 权限信息 # @type Privileges: Array attr_accessor :Database, :Table, :Column, :Privileges def initialize(database=nil, table=nil, column=nil, privileges=nil) @Database = database @Table = table @Column = column @Privileges = privileges end def deserialize(params) @Database = params['Database'] @Table = params['Table'] @Column = params['Column'] @Privileges = params['Privileges'] end end # 约束类型值的范围 class ConstraintRange < TencentCloud::Common::AbstractModel # @param Min: 约束类型为section时的最小值 # @type Min: String # @param Max: 约束类型为section时的最大值 # @type Max: String attr_accessor :Min, :Max def initialize(min=nil, max=nil) @Min = min @Max = max end def deserialize(params) @Min = params['Min'] @Max = params['Max'] end end # CopyAccountPrivileges请求参数结构体 class CopyAccountPrivilegesRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:dcdbt-ow728lmc。 # @type InstanceId: String # @param SrcUserName: 源用户名 # @type SrcUserName: String # @param SrcHost: 源用户允许的访问 host # @type SrcHost: String # @param DstUserName: 目的用户名 # @type DstUserName: String # @param DstHost: 目的用户允许的访问 host # @type DstHost: String # @param SrcReadOnly: 源账号的 ReadOnly 属性 # @type SrcReadOnly: String # @param DstReadOnly: 目的账号的 ReadOnly 属性 # @type DstReadOnly: String attr_accessor :InstanceId, :SrcUserName, :SrcHost, :DstUserName, :DstHost, :SrcReadOnly, :DstReadOnly def initialize(instanceid=nil, srcusername=nil, srchost=nil, dstusername=nil, dsthost=nil, srcreadonly=nil, dstreadonly=nil) @InstanceId = instanceid @SrcUserName = srcusername @SrcHost = srchost @DstUserName = dstusername @DstHost = dsthost @SrcReadOnly = srcreadonly @DstReadOnly = dstreadonly end def deserialize(params) @InstanceId = params['InstanceId'] @SrcUserName = params['SrcUserName'] @SrcHost = params['SrcHost'] @DstUserName = params['DstUserName'] @DstHost = params['DstHost'] @SrcReadOnly = params['SrcReadOnly'] @DstReadOnly = params['DstReadOnly'] end end # CopyAccountPrivileges返回参数结构体 class CopyAccountPrivilegesResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # CreateAccount请求参数结构体 class CreateAccountRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。 # @type InstanceId: String # @param UserName: AccountName # @type UserName: String # @param Host: 可以登录的主机,与mysql 账号的 host 格式一致,可以支持通配符,例如 %,10.%,10.20.%。 # @type Host: String # @param Password: 账号密码,密码需要 8-32 个字符,不能以 '/' 开头,并且必须包含小写字母、大写字母、数字和符号()~!@#$%^&*-+=_|{}[]:<>,.?/。 # @type Password: String # @param ReadOnly: 是否创建为只读账号,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败,3:只从备机读取。 # @type ReadOnly: Integer # @param Description: 账号备注,可以包含中文、英文字符、常见符号和数字,长度为0~256字符 # @type Description: String # @param DelayThresh: 如果备机延迟超过本参数设置值,系统将认为备机发生故障 # 建议该参数值大于10。当ReadOnly选择1、2时该参数生效。 # @type DelayThresh: Integer # @param SlaveConst: 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。 # @type SlaveConst: Integer # @param MaxUserConnections: 用户最大连接数限制参数。不传或者传0表示为不限制,对应max_user_connections参数,目前10.1内核版本不支持设置。 # @type MaxUserConnections: Integer attr_accessor :InstanceId, :UserName, :Host, :Password, :ReadOnly, :Description, :DelayThresh, :SlaveConst, :MaxUserConnections def initialize(instanceid=nil, username=nil, host=nil, password=nil, readonly=nil, description=nil, delaythresh=nil, slaveconst=nil, maxuserconnections=nil) @InstanceId = instanceid @UserName = username @Host = host @Password = password @ReadOnly = readonly @Description = description @DelayThresh = delaythresh @SlaveConst = slaveconst @MaxUserConnections = maxuserconnections end def deserialize(params) @InstanceId = params['InstanceId'] @UserName = params['UserName'] @Host = params['Host'] @Password = params['Password'] @ReadOnly = params['ReadOnly'] @Description = params['Description'] @DelayThresh = params['DelayThresh'] @SlaveConst = params['SlaveConst'] @MaxUserConnections = params['MaxUserConnections'] end end # CreateAccount返回参数结构体 class CreateAccountResponse < TencentCloud::Common::AbstractModel # @param InstanceId: 实例ID,透传入参。 # @type InstanceId: String # @param UserName: 用户名,透传入参。 # @type UserName: String # @param Host: 允许访问的 host,透传入参。 # @type Host: String # @param ReadOnly: 透传入参。 # @type ReadOnly: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :InstanceId, :UserName, :Host, :ReadOnly, :RequestId def initialize(instanceid=nil, username=nil, host=nil, readonly=nil, requestid=nil) @InstanceId = instanceid @UserName = username @Host = host @ReadOnly = readonly @RequestId = requestid end def deserialize(params) @InstanceId = params['InstanceId'] @UserName = params['UserName'] @Host = params['Host'] @ReadOnly = params['ReadOnly'] @RequestId = params['RequestId'] end end # CreateDCDBInstance请求参数结构体 class CreateDCDBInstanceRequest < TencentCloud::Common::AbstractModel # @param Zones: 分片节点可用区分布,最多可填两个可用区。当分片规格为一主两从时,其中两个节点在第一个可用区。 # 注意当前可售卖的可用区需要通过DescribeDCDBSaleInfo接口拉取。 # @type Zones: Array # @param Period: 欲购买的时长,单位:月。 # @type Period: Integer # @param ShardMemory: 分片内存大小,单位:GB,可以通过 DescribeShardSpec # 查询实例规格获得。 # @type ShardMemory: Integer # @param ShardStorage: 分片存储空间大小,单位:GB,可以通过 DescribeShardSpec # 查询实例规格获得。 # @type ShardStorage: Integer # @param ShardNodeCount: 单个分片节点个数,可以通过 DescribeShardSpec # 查询实例规格获得。 # @type ShardNodeCount: Integer # @param ShardCount: 实例分片个数,可选范围2-8,可以通过升级实例进行新增分片到最多64个分片。 # @type ShardCount: Integer # @param Count: 欲购买实例的数量 # @type Count: Integer # @param ProjectId: 项目 ID,可以通过查看项目列表获取,不传则关联到默认项目 # @type ProjectId: Integer # @param VpcId: 虚拟私有网络 ID,不传或传空表示创建为基础网络 # @type VpcId: String # @param SubnetId: 虚拟私有网络子网 ID,VpcId不为空时必填 # @type SubnetId: String # @param DbVersionId: 数据库引擎版本,当前可选:8.0,5.7,10.1,10.0。 # @type DbVersionId: String # @param AutoVoucher: 是否自动使用代金券进行支付,默认不使用。 # @type AutoVoucher: Boolean # @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。 # @type VoucherIds: Array # @param SecurityGroupId: 安全组id # @type SecurityGroupId: String # @param InstanceName: 实例名称, 可以通过该字段自主的设置实例的名字 # @type InstanceName: String # @param Ipv6Flag: 是否支持IPv6 # @type Ipv6Flag: Integer # @param ResourceTags: 标签键值对数组 # @type ResourceTags: Array # @param InitParams: 参数列表。本接口的可选值为:character_set_server(字符集,必传),lower_case_table_names(表名大小写敏感,必传,0 - 敏感;1-不敏感),innodb_page_size(innodb数据页,默认16K),sync_mode(同步模式:0 - 异步; 1 - 强同步;2 - 强同步可退化。默认为强同步可退化)。 # @type InitParams: Array # @param DcnRegion: DCN源地域 # @type DcnRegion: String # @param DcnInstanceId: DCN源实例ID # @type DcnInstanceId: String # @param AutoRenewFlag: 自动续费标记,0表示默认状态(用户未设置,即初始状态即手动续费,用户开通了预付费不停服特权也会进行自动续费), 1表示自动续费,2表示明确不自动续费(用户设置),若业务无续费概念或无需自动续费,需要设置为0 # @type AutoRenewFlag: Integer # @param SecurityGroupIds: 安全组ids,安全组可以传数组形式,兼容之前SecurityGroupId参数 # @type SecurityGroupIds: Array attr_accessor :Zones, :Period, :ShardMemory, :ShardStorage, :ShardNodeCount, :ShardCount, :Count, :ProjectId, :VpcId, :SubnetId, :DbVersionId, :AutoVoucher, :VoucherIds, :SecurityGroupId, :InstanceName, :Ipv6Flag, :ResourceTags, :InitParams, :DcnRegion, :DcnInstanceId, :AutoRenewFlag, :SecurityGroupIds def initialize(zones=nil, period=nil, shardmemory=nil, shardstorage=nil, shardnodecount=nil, shardcount=nil, count=nil, projectid=nil, vpcid=nil, subnetid=nil, dbversionid=nil, autovoucher=nil, voucherids=nil, securitygroupid=nil, instancename=nil, ipv6flag=nil, resourcetags=nil, initparams=nil, dcnregion=nil, dcninstanceid=nil, autorenewflag=nil, securitygroupids=nil) @Zones = zones @Period = period @ShardMemory = shardmemory @ShardStorage = shardstorage @ShardNodeCount = shardnodecount @ShardCount = shardcount @Count = count @ProjectId = projectid @VpcId = vpcid @SubnetId = subnetid @DbVersionId = dbversionid @AutoVoucher = autovoucher @VoucherIds = voucherids @SecurityGroupId = securitygroupid @InstanceName = instancename @Ipv6Flag = ipv6flag @ResourceTags = resourcetags @InitParams = initparams @DcnRegion = dcnregion @DcnInstanceId = dcninstanceid @AutoRenewFlag = autorenewflag @SecurityGroupIds = securitygroupids end def deserialize(params) @Zones = params['Zones'] @Period = params['Period'] @ShardMemory = params['ShardMemory'] @ShardStorage = params['ShardStorage'] @ShardNodeCount = params['ShardNodeCount'] @ShardCount = params['ShardCount'] @Count = params['Count'] @ProjectId = params['ProjectId'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @DbVersionId = params['DbVersionId'] @AutoVoucher = params['AutoVoucher'] @VoucherIds = params['VoucherIds'] @SecurityGroupId = params['SecurityGroupId'] @InstanceName = params['InstanceName'] @Ipv6Flag = params['Ipv6Flag'] unless params['ResourceTags'].nil? @ResourceTags = [] params['ResourceTags'].each do |i| resourcetag_tmp = ResourceTag.new resourcetag_tmp.deserialize(i) @ResourceTags << resourcetag_tmp end end unless params['InitParams'].nil? @InitParams = [] params['InitParams'].each do |i| dbparamvalue_tmp = DBParamValue.new dbparamvalue_tmp.deserialize(i) @InitParams << dbparamvalue_tmp end end @DcnRegion = params['DcnRegion'] @DcnInstanceId = params['DcnInstanceId'] @AutoRenewFlag = params['AutoRenewFlag'] @SecurityGroupIds = params['SecurityGroupIds'] end end # CreateDCDBInstance返回参数结构体 class CreateDCDBInstanceResponse < TencentCloud::Common::AbstractModel # @param DealName: 长订单号。可以据此调用 DescribeOrders # 查询订单详细信息,或在支付失败时调用用户账号相关接口进行支付。 # @type DealName: String # @param InstanceIds: 订单对应的实例 ID 列表,如果此处没有返回实例 ID,可以通过订单查询接口获取。还可通过实例查询接口查询实例是否创建完成。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type InstanceIds: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :DealName, :InstanceIds, :RequestId def initialize(dealname=nil, instanceids=nil, requestid=nil) @DealName = dealname @InstanceIds = instanceids @RequestId = requestid end def deserialize(params) @DealName = params['DealName'] @InstanceIds = params['InstanceIds'] @RequestId = params['RequestId'] end end # CreateDedicatedClusterDCDBInstance请求参数结构体 class CreateDedicatedClusterDCDBInstanceRequest < TencentCloud::Common::AbstractModel # @param GoodsNum: 分配实例个数 # @type GoodsNum: Integer # @param ShardNum: 分片数量 # @type ShardNum: Integer # @param ShardMemory: 分片內存大小, 单位GB # @type ShardMemory: Integer # @param ShardStorage: 分片磁盘大小, 单位GB # @type ShardStorage: Integer # @param ClusterId: 独享集群集群uuid # @type ClusterId: String # @param Zone: (废弃)可用区 # @type Zone: String # @param ProjectId: 项目ID # @type ProjectId: Integer # @param Cpu: (废弃)cpu大小,单位:核 # @type Cpu: Integer # @param VpcId: 网络ID # @type VpcId: String # @param SubnetId: 子网ID # @type SubnetId: String # @param ShardMachine: (废弃)分片机型 # @type ShardMachine: String # @param ShardNodeNum: 分片的节点个数 # @type ShardNodeNum: Integer # @param ShardNodeCpu: (废弃)节点cpu核数,单位:1/100核 # @type ShardNodeCpu: Integer # @param ShardNodeMemory: (废弃)节点內存大小,单位:GB # @type ShardNodeMemory: Integer # @param ShardNodeStorage: (废弃)节点磁盘大小,单位:GB # @type ShardNodeStorage: Integer # @param DbVersionId: db版本 # @type DbVersionId: String # @param SecurityGroupId: 安全组ID # @type SecurityGroupId: String # @param DcnInstanceId: DCN源实例ID # @type DcnInstanceId: String # @param DcnRegion: DCN源实例地域名 # @type DcnRegion: String # @param InstanceName: 自定义实例名称 # @type InstanceName: String # @param ResourceTags: 标签 # @type ResourceTags: Array # @param Ipv6Flag: 支持IPv6标志:1 支持, 0 不支持 # @type Ipv6Flag: Integer # @param Pid: (废弃)Pid,可通过获取独享集群售卖配置接口得到 # @type Pid: Integer # @param InitParams: 参数列表。本接口的可选值为:character_set_server(字符集,必传),lower_case_table_names(表名大小写敏感,必传,0 - 敏感;1-不敏感),innodb_page_size(innodb数据页,默认16K),sync_mode(同步模式:0 - 异步; 1 - 强同步;2 - 强同步可退化。默认为强同步可退化)。 # @type InitParams: Array # @param MasterHostId: 指定主节点uuid,不填随机分配 # @type MasterHostId: String # @param SlaveHostIds: 指定从节点uuid,不填随机分配 # @type SlaveHostIds: Array # @param RollbackInstanceId: 需要回档的源实例ID # @type RollbackInstanceId: String # @param RollbackTime: 回档时间 # @type RollbackTime: String attr_accessor :GoodsNum, :ShardNum, :ShardMemory, :ShardStorage, :ClusterId, :Zone, :ProjectId, :Cpu, :VpcId, :SubnetId, :ShardMachine, :ShardNodeNum, :ShardNodeCpu, :ShardNodeMemory, :ShardNodeStorage, :DbVersionId, :SecurityGroupId, :DcnInstanceId, :DcnRegion, :InstanceName, :ResourceTags, :Ipv6Flag, :Pid, :InitParams, :MasterHostId, :SlaveHostIds, :RollbackInstanceId, :RollbackTime def initialize(goodsnum=nil, shardnum=nil, shardmemory=nil, shardstorage=nil, clusterid=nil, zone=nil, projectid=nil, cpu=nil, vpcid=nil, subnetid=nil, shardmachine=nil, shardnodenum=nil, shardnodecpu=nil, shardnodememory=nil, shardnodestorage=nil, dbversionid=nil, securitygroupid=nil, dcninstanceid=nil, dcnregion=nil, instancename=nil, resourcetags=nil, ipv6flag=nil, pid=nil, initparams=nil, masterhostid=nil, slavehostids=nil, rollbackinstanceid=nil, rollbacktime=nil) @GoodsNum = goodsnum @ShardNum = shardnum @ShardMemory = shardmemory @ShardStorage = shardstorage @ClusterId = clusterid @Zone = zone @ProjectId = projectid @Cpu = cpu @VpcId = vpcid @SubnetId = subnetid @ShardMachine = shardmachine @ShardNodeNum = shardnodenum @ShardNodeCpu = shardnodecpu @ShardNodeMemory = shardnodememory @ShardNodeStorage = shardnodestorage @DbVersionId = dbversionid @SecurityGroupId = securitygroupid @DcnInstanceId = dcninstanceid @DcnRegion = dcnregion @InstanceName = instancename @ResourceTags = resourcetags @Ipv6Flag = ipv6flag @Pid = pid @InitParams = initparams @MasterHostId = masterhostid @SlaveHostIds = slavehostids @RollbackInstanceId = rollbackinstanceid @RollbackTime = rollbacktime end def deserialize(params) @GoodsNum = params['GoodsNum'] @ShardNum = params['ShardNum'] @ShardMemory = params['ShardMemory'] @ShardStorage = params['ShardStorage'] @ClusterId = params['ClusterId'] @Zone = params['Zone'] @ProjectId = params['ProjectId'] @Cpu = params['Cpu'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @ShardMachine = params['ShardMachine'] @ShardNodeNum = params['ShardNodeNum'] @ShardNodeCpu = params['ShardNodeCpu'] @ShardNodeMemory = params['ShardNodeMemory'] @ShardNodeStorage = params['ShardNodeStorage'] @DbVersionId = params['DbVersionId'] @SecurityGroupId = params['SecurityGroupId'] @DcnInstanceId = params['DcnInstanceId'] @DcnRegion = params['DcnRegion'] @InstanceName = params['InstanceName'] unless params['ResourceTags'].nil? @ResourceTags = [] params['ResourceTags'].each do |i| resourcetag_tmp = ResourceTag.new resourcetag_tmp.deserialize(i) @ResourceTags << resourcetag_tmp end end @Ipv6Flag = params['Ipv6Flag'] @Pid = params['Pid'] unless params['InitParams'].nil? @InitParams = [] params['InitParams'].each do |i| dbparamvalue_tmp = DBParamValue.new dbparamvalue_tmp.deserialize(i) @InitParams << dbparamvalue_tmp end end @MasterHostId = params['MasterHostId'] @SlaveHostIds = params['SlaveHostIds'] @RollbackInstanceId = params['RollbackInstanceId'] @RollbackTime = params['RollbackTime'] end end # CreateDedicatedClusterDCDBInstance返回参数结构体 class CreateDedicatedClusterDCDBInstanceResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # CreateHourDCDBInstance请求参数结构体 class CreateHourDCDBInstanceRequest < TencentCloud::Common::AbstractModel # @param ShardMemory: 分片内存大小,单位:GB,可以通过 DescribeShardSpec # 查询实例规格获得。 # @type ShardMemory: Integer # @param ShardStorage: 分片存储空间大小,单位:GB,可以通过 DescribeShardSpec # 查询实例规格获得。 # @type ShardStorage: Integer # @param ShardNodeCount: 单个分片节点个数,可以通过 DescribeShardSpec # 查询实例规格获得。 # @type ShardNodeCount: Integer # @param ShardCount: 实例分片个数,可选范围2-8,可以通过升级实例进行新增分片到最多64个分片。 # @type ShardCount: Integer # @param Count: 欲购买实例的数量 # @type Count: Integer # @param ProjectId: 项目 ID,可以通过查看项目列表获取,不传则关联到默认项目 # @type ProjectId: Integer # @param VpcId: 虚拟私有网络 ID,不传或传空表示创建为基础网络 # @type VpcId: String # @param SubnetId: 虚拟私有网络子网 ID,VpcId不为空时必填 # @type SubnetId: String # @param ShardCpu: 分片cpu大小,单位:核,可以通过 DescribeShardSpec # 查询实例规格获得。 # @type ShardCpu: Integer # @param DbVersionId: 数据库引擎版本,当前可选:8.0,5.7,10.1,10.0。 # @type DbVersionId: String # @param Zones: 分片节点可用区分布,最多可填两个可用区。当分片规格为一主两从时,其中两个节点在第一个可用区。 # @type Zones: Array # @param SecurityGroupId: 安全组id # @type SecurityGroupId: String # @param InstanceName: 实例名称, 可以通过该字段自主的设置实例的名字 # @type InstanceName: String # @param Ipv6Flag: 是否支持IPv6 # @type Ipv6Flag: Integer # @param ResourceTags: 标签键值对数组 # @type ResourceTags: Array # @param DcnRegion: DCN源地域 # @type DcnRegion: String # @param DcnInstanceId: DCN源实例ID # @type DcnInstanceId: String # @param InitParams: 参数列表。本接口的可选值为:character_set_server(字符集,必传),lower_case_table_names(表名大小写敏感,必传,0 - 敏感;1-不敏感),innodb_page_size(innodb数据页,默认16K),sync_mode(同步模式:0 - 异步; 1 - 强同步;2 - 强同步可退化。默认为强同步可退化)。 # @type InitParams: Array # @param RollbackInstanceId: 需要回档的源实例ID # @type RollbackInstanceId: String # @param RollbackTime: 回档时间 # @type RollbackTime: String # @param SecurityGroupIds: 安全组ids,安全组可以传数组形式,兼容之前SecurityGroupId参数 # @type SecurityGroupIds: Array attr_accessor :ShardMemory, :ShardStorage, :ShardNodeCount, :ShardCount, :Count, :ProjectId, :VpcId, :SubnetId, :ShardCpu, :DbVersionId, :Zones, :SecurityGroupId, :InstanceName, :Ipv6Flag, :ResourceTags, :DcnRegion, :DcnInstanceId, :InitParams, :RollbackInstanceId, :RollbackTime, :SecurityGroupIds def initialize(shardmemory=nil, shardstorage=nil, shardnodecount=nil, shardcount=nil, count=nil, projectid=nil, vpcid=nil, subnetid=nil, shardcpu=nil, dbversionid=nil, zones=nil, securitygroupid=nil, instancename=nil, ipv6flag=nil, resourcetags=nil, dcnregion=nil, dcninstanceid=nil, initparams=nil, rollbackinstanceid=nil, rollbacktime=nil, securitygroupids=nil) @ShardMemory = shardmemory @ShardStorage = shardstorage @ShardNodeCount = shardnodecount @ShardCount = shardcount @Count = count @ProjectId = projectid @VpcId = vpcid @SubnetId = subnetid @ShardCpu = shardcpu @DbVersionId = dbversionid @Zones = zones @SecurityGroupId = securitygroupid @InstanceName = instancename @Ipv6Flag = ipv6flag @ResourceTags = resourcetags @DcnRegion = dcnregion @DcnInstanceId = dcninstanceid @InitParams = initparams @RollbackInstanceId = rollbackinstanceid @RollbackTime = rollbacktime @SecurityGroupIds = securitygroupids end def deserialize(params) @ShardMemory = params['ShardMemory'] @ShardStorage = params['ShardStorage'] @ShardNodeCount = params['ShardNodeCount'] @ShardCount = params['ShardCount'] @Count = params['Count'] @ProjectId = params['ProjectId'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @ShardCpu = params['ShardCpu'] @DbVersionId = params['DbVersionId'] @Zones = params['Zones'] @SecurityGroupId = params['SecurityGroupId'] @InstanceName = params['InstanceName'] @Ipv6Flag = params['Ipv6Flag'] unless params['ResourceTags'].nil? @ResourceTags = [] params['ResourceTags'].each do |i| resourcetag_tmp = ResourceTag.new resourcetag_tmp.deserialize(i) @ResourceTags << resourcetag_tmp end end @DcnRegion = params['DcnRegion'] @DcnInstanceId = params['DcnInstanceId'] unless params['InitParams'].nil? @InitParams = [] params['InitParams'].each do |i| dbparamvalue_tmp = DBParamValue.new dbparamvalue_tmp.deserialize(i) @InitParams << dbparamvalue_tmp end end @RollbackInstanceId = params['RollbackInstanceId'] @RollbackTime = params['RollbackTime'] @SecurityGroupIds = params['SecurityGroupIds'] end end # CreateHourDCDBInstance返回参数结构体 class CreateHourDCDBInstanceResponse < TencentCloud::Common::AbstractModel # @param InstanceIds: 订单对应的实例 ID 列表,如果此处没有返回实例 ID,可以通过订单查询接口获取。还可通过实例查询接口查询实例是否创建完成。 # @type InstanceIds: Array # @param FlowId: 流程id,可以根据流程id查询创建进度 # @type FlowId: Integer # @param DealName: 订单号。可以据此调用 DescribeOrders # 查询订单详细信息,或在支付失败时调用用户账号相关接口进行支付。 # @type DealName: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :InstanceIds, :FlowId, :DealName, :RequestId def initialize(instanceids=nil, flowid=nil, dealname=nil, requestid=nil) @InstanceIds = instanceids @FlowId = flowid @DealName = dealname @RequestId = requestid end def deserialize(params) @InstanceIds = params['InstanceIds'] @FlowId = params['FlowId'] @DealName = params['DealName'] @RequestId = params['RequestId'] end end # 云数据库账号信息 class DBAccount < TencentCloud::Common::AbstractModel # @param UserName: 用户名 # @type UserName: String # @param Host: 用户可以从哪台主机登录(对应 MySQL 用户的 host 字段,UserName + Host 唯一标识一个用户,IP形式,IP段以%结尾;支持填入%;为空默认等于%) # @type Host: String # @param Description: 用户备注信息 # @type Description: String # @param CreateTime: 创建时间 # @type CreateTime: String # @param UpdateTime: 最后更新时间 # @type UpdateTime: String # @param ReadOnly: 只读标记,0:否, 1:该账号的sql请求优先选择备机执行,备机不可用时选择主机执行,2:优先选择备机执行,备机不可用时操作失败。 # @type ReadOnly: Integer # @param DelayThresh: 如果备机延迟超过本参数设置值,系统将认为备机发生故障 # 建议该参数值大于10。当ReadOnly选择1、2时该参数生效。 # @type DelayThresh: Integer # @param SlaveConst: 针对只读账号,设置策略是否固定备机,0:不固定备机,即备机不满足条件与客户端不断开连接,Proxy选择其他可用备机,1:备机不满足条件断开连接,确保一个连接固定备机。 # @type SlaveConst: Integer attr_accessor :UserName, :Host, :Description, :CreateTime, :UpdateTime, :ReadOnly, :DelayThresh, :SlaveConst def initialize(username=nil, host=nil, description=nil, createtime=nil, updatetime=nil, readonly=nil, delaythresh=nil, slaveconst=nil) @UserName = username @Host = host @Description = description @CreateTime = createtime @UpdateTime = updatetime @ReadOnly = readonly @DelayThresh = delaythresh @SlaveConst = slaveconst end def deserialize(params) @UserName = params['UserName'] @Host = params['Host'] @Description = params['Description'] @CreateTime = params['CreateTime'] @UpdateTime = params['UpdateTime'] @ReadOnly = params['ReadOnly'] @DelayThresh = params['DelayThresh'] @SlaveConst = params['SlaveConst'] end end # 云数据库参数信息。 class DBParamValue < TencentCloud::Common::AbstractModel # @param Param: 参数名称 # @type Param: String # @param Value: 参数值 # @type Value: String attr_accessor :Param, :Value def initialize(param=nil, value=nil) @Param = param @Value = value end def deserialize(params) @Param = params['Param'] @Value = params['Value'] end end # 分布式数据库实例信息 class DCDBInstanceInfo < TencentCloud::Common::AbstractModel # @param InstanceId: 实例ID # @type InstanceId: String # @param InstanceName: 实例名称 # @type InstanceName: String # @param AppId: 应用ID # @type AppId: Integer # @param ProjectId: 项目ID # @type ProjectId: Integer # @param Region: 地域 # @type Region: String # @param Zone: 可用区 # @type Zone: String # @param VpcId: VPC数字ID # @type VpcId: Integer # @param SubnetId: Subnet数字ID # @type SubnetId: Integer # @param StatusDesc: 状态中文描述 # @type StatusDesc: String # @param Status: 实例状态:0 创建中,1 流程处理中, 2 运行中,3 实例未初始化,-1 实例已隔离,4 实例初始化中,5 实例删除中,6 实例重启中,7 数据迁移中 # @type Status: Integer # @param Vip: 内网IP # @type Vip: String # @param Vport: 内网端口 # @type Vport: Integer # @param CreateTime: 创建时间 # @type CreateTime: String # @param AutoRenewFlag: 自动续费标志 # @type AutoRenewFlag: Integer # @param Memory: 内存大小,单位 GB # @type Memory: Integer # @param Storage: 存储大小,单位 GB # @type Storage: Integer # @param ShardCount: 分片个数 # @type ShardCount: Integer # @param PeriodEndTime: 到期时间 # @type PeriodEndTime: String # @param IsolatedTimestamp: 隔离时间 # @type IsolatedTimestamp: String # @param Uin: 账号ID # @type Uin: String # @param ShardDetail: 分片详情 # @type ShardDetail: Array # @param NodeCount: 节点数,2 为一主一从, 3 为一主二从 # @type NodeCount: Integer # @param IsTmp: 临时实例标记,0 为非临时实例 # @type IsTmp: Integer # @param ExclusterId: 独享集群ID,为空表示非独享集群实例 # @type ExclusterId: String # @param UniqueVpcId: 字符串型的私有网络ID # @type UniqueVpcId: String # @param UniqueSubnetId: 字符串型的私有网络子网ID # @type UniqueSubnetId: String # @param Id: 数字实例ID(过时字段,请勿依赖该值) # @type Id: Integer # @param WanDomain: 外网访问的域名,公网可解析 # @type WanDomain: String # @param WanVip: 外网 IP 地址,公网可访问 # @type WanVip: String # @param WanPort: 外网端口 # @type WanPort: Integer # @param Pid: 产品类型 ID(过时字段,请勿依赖该值) # @type Pid: Integer # @param UpdateTime: 实例最后更新时间,格式为 2006-01-02 15:04:05 # @type UpdateTime: String # @param DbEngine: 数据库引擎 # @type DbEngine: String # @param DbVersion: 数据库引擎版本 # @type DbVersion: String # @param Paymode: 付费模式 # @type Paymode: String # @param Locker: 实例处于异步任务状态时,表示异步任务流程ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type Locker: Integer # @param WanStatus: 外网状态,0-未开通;1-已开通;2-关闭;3-开通中 # @type WanStatus: Integer # @param IsAuditSupported: 该实例是否支持审计。1-支持;0-不支持 # @type IsAuditSupported: Integer # @param Cpu: Cpu核数 # @type Cpu: Integer # @param Ipv6Flag: 实例IPv6标志 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Ipv6Flag: Integer # @param Vipv6: 内网IPv6 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Vipv6: String # @param WanVipv6: 外网IPv6 # 注意:此字段可能返回 null,表示取不到有效值。 # @type WanVipv6: String # @param WanPortIpv6: 外网IPv6端口 # 注意:此字段可能返回 null,表示取不到有效值。 # @type WanPortIpv6: Integer # @param WanStatusIpv6: 外网IPv6状态 # 注意:此字段可能返回 null,表示取不到有效值。 # @type WanStatusIpv6: Integer # @param DcnFlag: DCN标志,0-无,1-主实例,2-灾备实例 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DcnFlag: Integer # @param DcnStatus: DCN状态,0-无,1-创建中,2-同步中,3-已断开 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DcnStatus: Integer # @param DcnDstNum: DCN灾备实例数 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DcnDstNum: Integer # @param InstanceType: 1: 主实例(独享型), 2: 主实例, 3: 灾备实例, 4: 灾备实例(独享型) # 注意:此字段可能返回 null,表示取不到有效值。 # @type InstanceType: Integer # @param ResourceTags: 实例标签信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ResourceTags: Array # @param DbVersionId: 数据库引擎版本 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DbVersionId: String attr_accessor :InstanceId, :InstanceName, :AppId, :ProjectId, :Region, :Zone, :VpcId, :SubnetId, :StatusDesc, :Status, :Vip, :Vport, :CreateTime, :AutoRenewFlag, :Memory, :Storage, :ShardCount, :PeriodEndTime, :IsolatedTimestamp, :Uin, :ShardDetail, :NodeCount, :IsTmp, :ExclusterId, :UniqueVpcId, :UniqueSubnetId, :Id, :WanDomain, :WanVip, :WanPort, :Pid, :UpdateTime, :DbEngine, :DbVersion, :Paymode, :Locker, :WanStatus, :IsAuditSupported, :Cpu, :Ipv6Flag, :Vipv6, :WanVipv6, :WanPortIpv6, :WanStatusIpv6, :DcnFlag, :DcnStatus, :DcnDstNum, :InstanceType, :ResourceTags, :DbVersionId def initialize(instanceid=nil, instancename=nil, appid=nil, projectid=nil, region=nil, zone=nil, vpcid=nil, subnetid=nil, statusdesc=nil, status=nil, vip=nil, vport=nil, createtime=nil, autorenewflag=nil, memory=nil, storage=nil, shardcount=nil, periodendtime=nil, isolatedtimestamp=nil, uin=nil, sharddetail=nil, nodecount=nil, istmp=nil, exclusterid=nil, uniquevpcid=nil, uniquesubnetid=nil, id=nil, wandomain=nil, wanvip=nil, wanport=nil, pid=nil, updatetime=nil, dbengine=nil, dbversion=nil, paymode=nil, locker=nil, wanstatus=nil, isauditsupported=nil, cpu=nil, ipv6flag=nil, vipv6=nil, wanvipv6=nil, wanportipv6=nil, wanstatusipv6=nil, dcnflag=nil, dcnstatus=nil, dcndstnum=nil, instancetype=nil, resourcetags=nil, dbversionid=nil) @InstanceId = instanceid @InstanceName = instancename @AppId = appid @ProjectId = projectid @Region = region @Zone = zone @VpcId = vpcid @SubnetId = subnetid @StatusDesc = statusdesc @Status = status @Vip = vip @Vport = vport @CreateTime = createtime @AutoRenewFlag = autorenewflag @Memory = memory @Storage = storage @ShardCount = shardcount @PeriodEndTime = periodendtime @IsolatedTimestamp = isolatedtimestamp @Uin = uin @ShardDetail = sharddetail @NodeCount = nodecount @IsTmp = istmp @ExclusterId = exclusterid @UniqueVpcId = uniquevpcid @UniqueSubnetId = uniquesubnetid @Id = id @WanDomain = wandomain @WanVip = wanvip @WanPort = wanport @Pid = pid @UpdateTime = updatetime @DbEngine = dbengine @DbVersion = dbversion @Paymode = paymode @Locker = locker @WanStatus = wanstatus @IsAuditSupported = isauditsupported @Cpu = cpu @Ipv6Flag = ipv6flag @Vipv6 = vipv6 @WanVipv6 = wanvipv6 @WanPortIpv6 = wanportipv6 @WanStatusIpv6 = wanstatusipv6 @DcnFlag = dcnflag @DcnStatus = dcnstatus @DcnDstNum = dcndstnum @InstanceType = instancetype @ResourceTags = resourcetags @DbVersionId = dbversionid end def deserialize(params) @InstanceId = params['InstanceId'] @InstanceName = params['InstanceName'] @AppId = params['AppId'] @ProjectId = params['ProjectId'] @Region = params['Region'] @Zone = params['Zone'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @StatusDesc = params['StatusDesc'] @Status = params['Status'] @Vip = params['Vip'] @Vport = params['Vport'] @CreateTime = params['CreateTime'] @AutoRenewFlag = params['AutoRenewFlag'] @Memory = params['Memory'] @Storage = params['Storage'] @ShardCount = params['ShardCount'] @PeriodEndTime = params['PeriodEndTime'] @IsolatedTimestamp = params['IsolatedTimestamp'] @Uin = params['Uin'] unless params['ShardDetail'].nil? @ShardDetail = [] params['ShardDetail'].each do |i| shardinfo_tmp = ShardInfo.new shardinfo_tmp.deserialize(i) @ShardDetail << shardinfo_tmp end end @NodeCount = params['NodeCount'] @IsTmp = params['IsTmp'] @ExclusterId = params['ExclusterId'] @UniqueVpcId = params['UniqueVpcId'] @UniqueSubnetId = params['UniqueSubnetId'] @Id = params['Id'] @WanDomain = params['WanDomain'] @WanVip = params['WanVip'] @WanPort = params['WanPort'] @Pid = params['Pid'] @UpdateTime = params['UpdateTime'] @DbEngine = params['DbEngine'] @DbVersion = params['DbVersion'] @Paymode = params['Paymode'] @Locker = params['Locker'] @WanStatus = params['WanStatus'] @IsAuditSupported = params['IsAuditSupported'] @Cpu = params['Cpu'] @Ipv6Flag = params['Ipv6Flag'] @Vipv6 = params['Vipv6'] @WanVipv6 = params['WanVipv6'] @WanPortIpv6 = params['WanPortIpv6'] @WanStatusIpv6 = params['WanStatusIpv6'] @DcnFlag = params['DcnFlag'] @DcnStatus = params['DcnStatus'] @DcnDstNum = params['DcnDstNum'] @InstanceType = params['InstanceType'] unless params['ResourceTags'].nil? @ResourceTags = [] params['ResourceTags'].each do |i| resourcetag_tmp = ResourceTag.new resourcetag_tmp.deserialize(i) @ResourceTags << resourcetag_tmp end end @DbVersionId = params['DbVersionId'] end end # 描述分布式数据库分片信息。 class DCDBShardInfo < TencentCloud::Common::AbstractModel # @param InstanceId: 所属实例Id # @type InstanceId: String # @param ShardSerialId: 分片SQL透传Id,用于将sql透传到指定分片执行 # @type ShardSerialId: String # @param ShardInstanceId: 全局唯一的分片Id # @type ShardInstanceId: String # @param Status: 状态:0 创建中,1 流程处理中, 2 运行中,3 分片未初始化 # @type Status: Integer # @param StatusDesc: 状态中文描述 # @type StatusDesc: String # @param CreateTime: 创建时间 # @type CreateTime: String # @param VpcId: 字符串格式的私有网络Id # @type VpcId: String # @param SubnetId: 字符串格式的私有网络子网Id # @type SubnetId: String # @param ProjectId: 项目ID # @type ProjectId: Integer # @param Region: 地域 # @type Region: String # @param Zone: 可用区 # @type Zone: String # @param Memory: 内存大小,单位 GB # @type Memory: Integer # @param Storage: 存储大小,单位 GB # @type Storage: Integer # @param PeriodEndTime: 到期时间 # @type PeriodEndTime: String # @param NodeCount: 节点数,2 为一主一从, 3 为一主二从 # @type NodeCount: Integer # @param StorageUsage: 存储使用率,单位为 % # @type StorageUsage: Float # @param MemoryUsage: 内存使用率,单位为 % # @type MemoryUsage: Float # @param ShardId: 数字分片Id(过时字段,请勿依赖该值) # @type ShardId: Integer # @param Pid: 产品ProductID # @type Pid: Integer # @param ProxyVersion: Proxy版本 # @type ProxyVersion: String # @param Paymode: 付费模型 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Paymode: String # @param ShardMasterZone: 分片的主可用区 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ShardMasterZone: String # @param ShardSlaveZones: 分片的从可用区列表 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ShardSlaveZones: Array # @param Cpu: CPU核数 # @type Cpu: Integer # @param Range: 分片ShardKey的范围(总共64个哈希值),例如: 0-31,32-63 # @type Range: String attr_accessor :InstanceId, :ShardSerialId, :ShardInstanceId, :Status, :StatusDesc, :CreateTime, :VpcId, :SubnetId, :ProjectId, :Region, :Zone, :Memory, :Storage, :PeriodEndTime, :NodeCount, :StorageUsage, :MemoryUsage, :ShardId, :Pid, :ProxyVersion, :Paymode, :ShardMasterZone, :ShardSlaveZones, :Cpu, :Range def initialize(instanceid=nil, shardserialid=nil, shardinstanceid=nil, status=nil, statusdesc=nil, createtime=nil, vpcid=nil, subnetid=nil, projectid=nil, region=nil, zone=nil, memory=nil, storage=nil, periodendtime=nil, nodecount=nil, storageusage=nil, memoryusage=nil, shardid=nil, pid=nil, proxyversion=nil, paymode=nil, shardmasterzone=nil, shardslavezones=nil, cpu=nil, range=nil) @InstanceId = instanceid @ShardSerialId = shardserialid @ShardInstanceId = shardinstanceid @Status = status @StatusDesc = statusdesc @CreateTime = createtime @VpcId = vpcid @SubnetId = subnetid @ProjectId = projectid @Region = region @Zone = zone @Memory = memory @Storage = storage @PeriodEndTime = periodendtime @NodeCount = nodecount @StorageUsage = storageusage @MemoryUsage = memoryusage @ShardId = shardid @Pid = pid @ProxyVersion = proxyversion @Paymode = paymode @ShardMasterZone = shardmasterzone @ShardSlaveZones = shardslavezones @Cpu = cpu @Range = range end def deserialize(params) @InstanceId = params['InstanceId'] @ShardSerialId = params['ShardSerialId'] @ShardInstanceId = params['ShardInstanceId'] @Status = params['Status'] @StatusDesc = params['StatusDesc'] @CreateTime = params['CreateTime'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @ProjectId = params['ProjectId'] @Region = params['Region'] @Zone = params['Zone'] @Memory = params['Memory'] @Storage = params['Storage'] @PeriodEndTime = params['PeriodEndTime'] @NodeCount = params['NodeCount'] @StorageUsage = params['StorageUsage'] @MemoryUsage = params['MemoryUsage'] @ShardId = params['ShardId'] @Pid = params['Pid'] @ProxyVersion = params['ProxyVersion'] @Paymode = params['Paymode'] @ShardMasterZone = params['ShardMasterZone'] @ShardSlaveZones = params['ShardSlaveZones'] @Cpu = params['Cpu'] @Range = params['Range'] end end # 数据库信息 class Database < TencentCloud::Common::AbstractModel # @param DbName: 数据库名称 # @type DbName: String attr_accessor :DbName def initialize(dbname=nil) @DbName = dbname end def deserialize(params) @DbName = params['DbName'] end end # 数据库函数信息 class DatabaseFunction < TencentCloud::Common::AbstractModel # @param Func: 函数名称 # @type Func: String attr_accessor :Func def initialize(func=nil) @Func = func end def deserialize(params) @Func = params['Func'] end end # 数据库权限 class DatabasePrivilege < TencentCloud::Common::AbstractModel # @param Privileges: 权限信息 # @type Privileges: Array # @param Database: 数据库名 # @type Database: String attr_accessor :Privileges, :Database def initialize(privileges=nil, database=nil) @Privileges = privileges @Database = database end def deserialize(params) @Privileges = params['Privileges'] @Database = params['Database'] end end # 数据库存储过程信息 class DatabaseProcedure < TencentCloud::Common::AbstractModel # @param Proc: 存储过程名称 # @type Proc: String attr_accessor :Proc def initialize(proc=nil) @Proc = proc end def deserialize(params) @Proc = params['Proc'] end end # 数据库表信息 class DatabaseTable < TencentCloud::Common::AbstractModel # @param Table: 表名 # @type Table: String attr_accessor :Table def initialize(table=nil) @Table = table end def deserialize(params) @Table = params['Table'] end end # 数据库视图信息 class DatabaseView < TencentCloud::Common::AbstractModel # @param View: 视图名称 # @type View: String attr_accessor :View def initialize(view=nil) @View = view end def deserialize(params) @View = params['View'] end end # DCN详情条目 class DcnDetailItem < TencentCloud::Common::AbstractModel # @param InstanceId: 实例ID # @type InstanceId: String # @param InstanceName: 实例名称 # @type InstanceName: String # @param Region: 实例地域 # @type Region: String # @param Zone: 实例可用区 # @type Zone: String # @param Vip: 实例IP地址 # @type Vip: String # @param Vipv6: 实例IPv6地址 # @type Vipv6: String # @param Vport: 实例端口 # @type Vport: Integer # @param Status: 实例状态 # @type Status: Integer # @param StatusDesc: 实例状态描述 # @type StatusDesc: String # @param DcnFlag: 实例DCN标志,1-主,2-备 # @type DcnFlag: Integer # @param DcnStatus: 实例DCN状态,0-无,1-创建中,2-同步中,3-已断开 # @type DcnStatus: Integer # @param Cpu: 实例CPU核数 # @type Cpu: Integer # @param Memory: 实例内存大小,单位 GB # @type Memory: Integer # @param Storage: 实例存储大小,单位 GB # @type Storage: Integer # @param PayMode: 付费模式 # @type PayMode: Integer # @param CreateTime: 实例创建时间,格式为 2006-01-02 15:04:05 # @type CreateTime: String # @param PeriodEndTime: 实例到期时间,格式为 2006-01-02 15:04:05 # @type PeriodEndTime: String # @param InstanceType: 1: 主实例(独享型), 2: 主实例, 3: 灾备实例, 4: 灾备实例(独享型) # @type InstanceType: Integer # @param EncryptStatus: 是否开启了 kms # @type EncryptStatus: Integer attr_accessor :InstanceId, :InstanceName, :Region, :Zone, :Vip, :Vipv6, :Vport, :Status, :StatusDesc, :DcnFlag, :DcnStatus, :Cpu, :Memory, :Storage, :PayMode, :CreateTime, :PeriodEndTime, :InstanceType, :EncryptStatus def initialize(instanceid=nil, instancename=nil, region=nil, zone=nil, vip=nil, vipv6=nil, vport=nil, status=nil, statusdesc=nil, dcnflag=nil, dcnstatus=nil, cpu=nil, memory=nil, storage=nil, paymode=nil, createtime=nil, periodendtime=nil, instancetype=nil, encryptstatus=nil) @InstanceId = instanceid @InstanceName = instancename @Region = region @Zone = zone @Vip = vip @Vipv6 = vipv6 @Vport = vport @Status = status @StatusDesc = statusdesc @DcnFlag = dcnflag @DcnStatus = dcnstatus @Cpu = cpu @Memory = memory @Storage = storage @PayMode = paymode @CreateTime = createtime @PeriodEndTime = periodendtime @InstanceType = instancetype @EncryptStatus = encryptstatus end def deserialize(params) @InstanceId = params['InstanceId'] @InstanceName = params['InstanceName'] @Region = params['Region'] @Zone = params['Zone'] @Vip = params['Vip'] @Vipv6 = params['Vipv6'] @Vport = params['Vport'] @Status = params['Status'] @StatusDesc = params['StatusDesc'] @DcnFlag = params['DcnFlag'] @DcnStatus = params['DcnStatus'] @Cpu = params['Cpu'] @Memory = params['Memory'] @Storage = params['Storage'] @PayMode = params['PayMode'] @CreateTime = params['CreateTime'] @PeriodEndTime = params['PeriodEndTime'] @InstanceType = params['InstanceType'] @EncryptStatus = params['EncryptStatus'] end end # 订单信息 class Deal < TencentCloud::Common::AbstractModel # @param DealName: 订单号 # @type DealName: String # @param OwnerUin: 所属账号 # @type OwnerUin: String # @param Count: 商品数量 # @type Count: Integer # @param FlowId: 关联的流程 Id,可用于查询流程执行状态 # @type FlowId: Integer # @param InstanceIds: 只有创建实例且已完成发货的订单会填充该字段,表示该订单创建的实例的 ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type InstanceIds: Array # @param PayMode: 付费模式,0后付费/1预付费 # @type PayMode: Integer attr_accessor :DealName, :OwnerUin, :Count, :FlowId, :InstanceIds, :PayMode def initialize(dealname=nil, owneruin=nil, count=nil, flowid=nil, instanceids=nil, paymode=nil) @DealName = dealname @OwnerUin = owneruin @Count = count @FlowId = flowid @InstanceIds = instanceids @PayMode = paymode end def deserialize(params) @DealName = params['DealName'] @OwnerUin = params['OwnerUin'] @Count = params['Count'] @FlowId = params['FlowId'] @InstanceIds = params['InstanceIds'] @PayMode = params['PayMode'] end end # DeleteAccount请求参数结构体 class DeleteAccountRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例ID,形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。 # @type InstanceId: String # @param UserName: 用户名 # @type UserName: String # @param Host: 用户允许的访问 host # @type Host: String attr_accessor :InstanceId, :UserName, :Host def initialize(instanceid=nil, username=nil, host=nil) @InstanceId = instanceid @UserName = username @Host = host end def deserialize(params) @InstanceId = params['InstanceId'] @UserName = params['UserName'] @Host = params['Host'] end end # DeleteAccount返回参数结构体 class DeleteAccountResponse < TencentCloud::Common::AbstractModel # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RequestId def initialize(requestid=nil) @RequestId = requestid end def deserialize(params) @RequestId = params['RequestId'] end end # DescribeAccountPrivileges请求参数结构体 class DescribeAccountPrivilegesRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:dcdbt-ow7t8lmc。 # @type InstanceId: String # @param UserName: 登录用户名。 # @type UserName: String # @param Host: 用户允许的访问 host,用户名+host唯一确定一个账号。 # @type Host: String # @param DbName: 数据库名。如果为 \*,表示查询全局权限(即 \*.\*),此时忽略 Type 和 Object 参数 # @type DbName: String # @param Type: 类型,可以填入 table 、 view 、 proc 、 func 和 \*。当 DbName 为具体数据库名,Type为 \* 时,表示查询该数据库权限(即db.\*),此时忽略 Object 参数 # @type Type: String # @param Object: 具体的 Type 的名称,例如 Type 为 table 时就是具体的表名。DbName 和 Type 都为具体名称,则 Object 表示具体对象名,不能为 \* 或者为空 # @type Object: String # @param ColName: 当 Type=table 时,ColName 为 \* 表示查询表的权限,如果为具体字段名,表示查询对应字段的权限 # @type ColName: String attr_accessor :InstanceId, :UserName, :Host, :DbName, :Type, :Object, :ColName def initialize(instanceid=nil, username=nil, host=nil, dbname=nil, type=nil, object=nil, colname=nil) @InstanceId = instanceid @UserName = username @Host = host @DbName = dbname @Type = type @Object = object @ColName = colname end def deserialize(params) @InstanceId = params['InstanceId'] @UserName = params['UserName'] @Host = params['Host'] @DbName = params['DbName'] @Type = params['Type'] @Object = params['Object'] @ColName = params['ColName'] end end # DescribeAccountPrivileges返回参数结构体 class DescribeAccountPrivilegesResponse < TencentCloud::Common::AbstractModel # @param InstanceId: 实例ID # @type InstanceId: String # @param Privileges: 权限列表。 # @type Privileges: Array # @param UserName: 数据库账号用户名 # @type UserName: String # @param Host: 数据库账号Host # @type Host: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :InstanceId, :Privileges, :UserName, :Host, :RequestId def initialize(instanceid=nil, privileges=nil, username=nil, host=nil, requestid=nil) @InstanceId = instanceid @Privileges = privileges @UserName = username @Host = host @RequestId = requestid end def deserialize(params) @InstanceId = params['InstanceId'] @Privileges = params['Privileges'] @UserName = params['UserName'] @Host = params['Host'] @RequestId = params['RequestId'] end end # DescribeAccounts请求参数结构体 class DescribeAccountsRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例ID,形如:dcdbt-ow728lmc。 # @type InstanceId: String attr_accessor :InstanceId def initialize(instanceid=nil) @InstanceId = instanceid end def deserialize(params) @InstanceId = params['InstanceId'] end end # DescribeAccounts返回参数结构体 class DescribeAccountsResponse < TencentCloud::Common::AbstractModel # @param InstanceId: 实例ID,透传入参。 # @type InstanceId: String # @param Users: 实例用户列表。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Users: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :InstanceId, :Users, :RequestId def initialize(instanceid=nil, users=nil, requestid=nil) @InstanceId = instanceid @Users = users @RequestId = requestid end def deserialize(params) @InstanceId = params['InstanceId'] unless params['Users'].nil? @Users = [] params['Users'].each do |i| dbaccount_tmp = DBAccount.new dbaccount_tmp.deserialize(i) @Users << dbaccount_tmp end end @RequestId = params['RequestId'] end end # DescribeBackupFiles请求参数结构体 class DescribeBackupFilesRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 按实例ID查询 # @type InstanceId: String # @param ShardId: 按分片ID查询 # @type ShardId: String # @param BackupType: 备份类型,Data:数据备份,Binlog:Binlog备份,Errlog:错误日志,Slowlog:慢日志 # @type BackupType: String # @param StartTime: 按开始时间查询 # @type StartTime: String # @param EndTime: 按结束时间查询 # @type EndTime: String # @param Limit: 分页参数 # @type Limit: Integer # @param Offset: 分页参数 # @type Offset: Integer # @param OrderBy: 排序参数,可选值:Time,Size # @type OrderBy: String # @param OrderType: 排序参数,可选值:DESC,ASC # @type OrderType: String attr_accessor :InstanceId, :ShardId, :BackupType, :StartTime, :EndTime, :Limit, :Offset, :OrderBy, :OrderType def initialize(instanceid=nil, shardid=nil, backuptype=nil, starttime=nil, endtime=nil, limit=nil, offset=nil, orderby=nil, ordertype=nil) @InstanceId = instanceid @ShardId = shardid @BackupType = backuptype @StartTime = starttime @EndTime = endtime @Limit = limit @Offset = offset @OrderBy = orderby @OrderType = ordertype end def deserialize(params) @InstanceId = params['InstanceId'] @ShardId = params['ShardId'] @BackupType = params['BackupType'] @StartTime = params['StartTime'] @EndTime = params['EndTime'] @Limit = params['Limit'] @Offset = params['Offset'] @OrderBy = params['OrderBy'] @OrderType = params['OrderType'] end end # DescribeBackupFiles返回参数结构体 class DescribeBackupFilesResponse < TencentCloud::Common::AbstractModel # @param Files: 备份文件列表 # @type Files: Array # @param TotalCount: 总条目数 # @type TotalCount: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Files, :TotalCount, :RequestId def initialize(files=nil, totalcount=nil, requestid=nil) @Files = files @TotalCount = totalcount @RequestId = requestid end def deserialize(params) unless params['Files'].nil? @Files = [] params['Files'].each do |i| instancebackupfileitem_tmp = InstanceBackupFileItem.new instancebackupfileitem_tmp.deserialize(i) @Files << instancebackupfileitem_tmp end end @TotalCount = params['TotalCount'] @RequestId = params['RequestId'] end end # DescribeDBEncryptAttributes请求参数结构体 class DescribeDBEncryptAttributesRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例Id,形如:tdsqlshard-ow728lmc。 # @type InstanceId: String attr_accessor :InstanceId def initialize(instanceid=nil) @InstanceId = instanceid end def deserialize(params) @InstanceId = params['InstanceId'] end end # DescribeDBEncryptAttributes返回参数结构体 class DescribeDBEncryptAttributesResponse < TencentCloud::Common::AbstractModel # @param EncryptStatus: 是否启用加密,1-已开启;0-未开启。 # @type EncryptStatus: Integer # @param CipherText: DEK密钥 # @type CipherText: String # @param ExpireDate: DEK密钥过期日期。 # @type ExpireDate: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :EncryptStatus, :CipherText, :ExpireDate, :RequestId def initialize(encryptstatus=nil, ciphertext=nil, expiredate=nil, requestid=nil) @EncryptStatus = encryptstatus @CipherText = ciphertext @ExpireDate = expiredate @RequestId = requestid end def deserialize(params) @EncryptStatus = params['EncryptStatus'] @CipherText = params['CipherText'] @ExpireDate = params['ExpireDate'] @RequestId = params['RequestId'] end end # DescribeDBLogFiles请求参数结构体 class DescribeDBLogFilesRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:dcdbt-ow7t8lmc。 # @type InstanceId: String # @param ShardId: 分片 ID,形如:shard-7noic7tv # @type ShardId: String # @param Type: 请求日志类型,取值只能为1、2、3或者4。1-binlog,2-冷备,3-errlog,4-slowlog。 # @type Type: Integer attr_accessor :InstanceId, :ShardId, :Type def initialize(instanceid=nil, shardid=nil, type=nil) @InstanceId = instanceid @ShardId = shardid @Type = type end def deserialize(params) @InstanceId = params['InstanceId'] @ShardId = params['ShardId'] @Type = params['Type'] end end # DescribeDBLogFiles返回参数结构体 class DescribeDBLogFilesResponse < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:dcdbt-ow728lmc。 # @type InstanceId: String # @param Type: 请求日志类型。1-binlog,2-冷备,3-errlog,4-slowlog。 # @type Type: Integer # @param Total: 请求日志总数 # @type Total: Integer # @param Files: 日志文件列表 # @type Files: Array # @param VpcPrefix: 如果是VPC网络的实例,做用本前缀加上URI为下载地址 # @type VpcPrefix: String # @param NormalPrefix: 如果是普通网络的实例,做用本前缀加上URI为下载地址 # @type NormalPrefix: String # @param ShardId: 分片 ID,形如:shard-7noic7tv # @type ShardId: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :InstanceId, :Type, :Total, :Files, :VpcPrefix, :NormalPrefix, :ShardId, :RequestId def initialize(instanceid=nil, type=nil, total=nil, files=nil, vpcprefix=nil, normalprefix=nil, shardid=nil, requestid=nil) @InstanceId = instanceid @Type = type @Total = total @Files = files @VpcPrefix = vpcprefix @NormalPrefix = normalprefix @ShardId = shardid @RequestId = requestid end def deserialize(params) @InstanceId = params['InstanceId'] @Type = params['Type'] @Total = params['Total'] unless params['Files'].nil? @Files = [] params['Files'].each do |i| logfileinfo_tmp = LogFileInfo.new logfileinfo_tmp.deserialize(i) @Files << logfileinfo_tmp end end @VpcPrefix = params['VpcPrefix'] @NormalPrefix = params['NormalPrefix'] @ShardId = params['ShardId'] @RequestId = params['RequestId'] end end # DescribeDBParameters请求参数结构体 class DescribeDBParametersRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:dcdbt-ow7t8lmc。 # @type InstanceId: String attr_accessor :InstanceId def initialize(instanceid=nil) @InstanceId = instanceid end def deserialize(params) @InstanceId = params['InstanceId'] end end # DescribeDBParameters返回参数结构体 class DescribeDBParametersResponse < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:dcdbt-ow7t8lmc。 # @type InstanceId: String # @param Params: 请求DB的当前参数值 # @type Params: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :InstanceId, :Params, :RequestId def initialize(instanceid=nil, params=nil, requestid=nil) @InstanceId = instanceid @Params = params @RequestId = requestid end def deserialize(params) @InstanceId = params['InstanceId'] unless params['Params'].nil? @Params = [] params['Params'].each do |i| paramdesc_tmp = ParamDesc.new paramdesc_tmp.deserialize(i) @Params << paramdesc_tmp end end @RequestId = params['RequestId'] end end # DescribeDBSecurityGroups请求参数结构体 class DescribeDBSecurityGroupsRequest < TencentCloud::Common::AbstractModel # @param Product: 数据库引擎名称,本接口取值:dcdb。 # @type Product: String # @param InstanceId: 实例ID。 # @type InstanceId: String attr_accessor :Product, :InstanceId def initialize(product=nil, instanceid=nil) @Product = product @InstanceId = instanceid end def deserialize(params) @Product = params['Product'] @InstanceId = params['InstanceId'] end end # DescribeDBSecurityGroups返回参数结构体 class DescribeDBSecurityGroupsResponse < TencentCloud::Common::AbstractModel # @param Groups: 安全组详情。 # @type Groups: Array # @param VIP: 实例VIP # 注意:此字段可能返回 null,表示取不到有效值。 # @type VIP: String # @param VPort: 实例端口 # 注意:此字段可能返回 null,表示取不到有效值。 # @type VPort: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Groups, :VIP, :VPort, :RequestId def initialize(groups=nil, vip=nil, vport=nil, requestid=nil) @Groups = groups @VIP = vip @VPort = vport @RequestId = requestid end def deserialize(params) unless params['Groups'].nil? @Groups = [] params['Groups'].each do |i| securitygroup_tmp = SecurityGroup.new securitygroup_tmp.deserialize(i) @Groups << securitygroup_tmp end end @VIP = params['VIP'] @VPort = params['VPort'] @RequestId = params['RequestId'] end end # DescribeDBSlowLogs请求参数结构体 class DescribeDBSlowLogsRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:dcdbt-hw0qj6m1 # @type InstanceId: String # @param Offset: 从结果的第几条数据开始返回 # @type Offset: Integer # @param Limit: 返回的结果条数 # @type Limit: Integer # @param StartTime: 查询的起始时间,形如2016-07-23 14:55:20 # @type StartTime: String # @param ShardId: 实例的分片ID,形如shard-53ima8ln # @type ShardId: String # @param EndTime: 查询的结束时间,形如2016-08-22 14:55:20。如果不填,那么查询结束时间就是当前时间 # @type EndTime: String # @param Db: 要查询的具体数据库名称 # @type Db: String # @param OrderBy: 排序指标,取值为query_time_sum或者query_count。不填默认按照query_time_sum排序 # @type OrderBy: String # @param OrderByType: 排序类型,desc(降序)或者asc(升序)。不填默认desc排序 # @type OrderByType: String # @param Slave: 是否查询从机的慢查询,0-主机; 1-从机。不填默认查询主机慢查询 # @type Slave: Integer attr_accessor :InstanceId, :Offset, :Limit, :StartTime, :ShardId, :EndTime, :Db, :OrderBy, :OrderByType, :Slave def initialize(instanceid=nil, offset=nil, limit=nil, starttime=nil, shardid=nil, endtime=nil, db=nil, orderby=nil, orderbytype=nil, slave=nil) @InstanceId = instanceid @Offset = offset @Limit = limit @StartTime = starttime @ShardId = shardid @EndTime = endtime @Db = db @OrderBy = orderby @OrderByType = orderbytype @Slave = slave end def deserialize(params) @InstanceId = params['InstanceId'] @Offset = params['Offset'] @Limit = params['Limit'] @StartTime = params['StartTime'] @ShardId = params['ShardId'] @EndTime = params['EndTime'] @Db = params['Db'] @OrderBy = params['OrderBy'] @OrderByType = params['OrderByType'] @Slave = params['Slave'] end end # DescribeDBSlowLogs返回参数结构体 class DescribeDBSlowLogsResponse < TencentCloud::Common::AbstractModel # @param LockTimeSum: 所有语句锁时间总和 # @type LockTimeSum: Float # @param QueryCount: 所有语句查询总次数 # @type QueryCount: Integer # @param Total: 总记录数 # @type Total: Integer # @param QueryTimeSum: 所有语句查询时间总和 # @type QueryTimeSum: Float # @param Data: 慢查询日志数据 # @type Data: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :LockTimeSum, :QueryCount, :Total, :QueryTimeSum, :Data, :RequestId def initialize(locktimesum=nil, querycount=nil, total=nil, querytimesum=nil, data=nil, requestid=nil) @LockTimeSum = locktimesum @QueryCount = querycount @Total = total @QueryTimeSum = querytimesum @Data = data @RequestId = requestid end def deserialize(params) @LockTimeSum = params['LockTimeSum'] @QueryCount = params['QueryCount'] @Total = params['Total'] @QueryTimeSum = params['QueryTimeSum'] unless params['Data'].nil? @Data = [] params['Data'].each do |i| slowlogdata_tmp = SlowLogData.new slowlogdata_tmp.deserialize(i) @Data << slowlogdata_tmp end end @RequestId = params['RequestId'] end end # DescribeDBSyncMode请求参数结构体 class DescribeDBSyncModeRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 待修改同步模式的实例ID。形如:dcdbt-ow728lmc。 # @type InstanceId: String attr_accessor :InstanceId def initialize(instanceid=nil) @InstanceId = instanceid end def deserialize(params) @InstanceId = params['InstanceId'] end end # DescribeDBSyncMode返回参数结构体 class DescribeDBSyncModeResponse < TencentCloud::Common::AbstractModel # @param SyncMode: 同步模式:0 异步,1 强同步, 2 强同步可退化 # @type SyncMode: Integer # @param IsModifying: 是否有修改流程在执行中:1 是, 0 否。 # @type IsModifying: Integer # @param CurrentSyncMode: 当前复制方式,0 异步,1 同步 # @type CurrentSyncMode: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :SyncMode, :IsModifying, :CurrentSyncMode, :RequestId def initialize(syncmode=nil, ismodifying=nil, currentsyncmode=nil, requestid=nil) @SyncMode = syncmode @IsModifying = ismodifying @CurrentSyncMode = currentsyncmode @RequestId = requestid end def deserialize(params) @SyncMode = params['SyncMode'] @IsModifying = params['IsModifying'] @CurrentSyncMode = params['CurrentSyncMode'] @RequestId = params['RequestId'] end end # DescribeDCDBInstanceDetail请求参数结构体 class DescribeDCDBInstanceDetailRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例ID,形如dcdbt-7oaxtcb7 # @type InstanceId: String attr_accessor :InstanceId def initialize(instanceid=nil) @InstanceId = instanceid end def deserialize(params) @InstanceId = params['InstanceId'] end end # DescribeDCDBInstanceDetail返回参数结构体 class DescribeDCDBInstanceDetailResponse < TencentCloud::Common::AbstractModel # @param InstanceId: 实例ID,形如dcdbt-7oaxtcb7 # @type InstanceId: String # @param InstanceName: 实例名称 # @type InstanceName: String # @param Status: 实例状态。0-实例创建中;1-异步任务处理中;2-运行中;3-实例未初始化;-1-实例已隔离 # @type Status: Integer # @param StatusDesc: 实例目前运行状态描述 # @type StatusDesc: String # @param Vip: 实例内网IP地址 # @type Vip: String # @param Vport: 实例内网端口 # @type Vport: Integer # @param NodeCount: 实例节点数。值为2时表示一主一从,值为3时表示一主二从 # @type NodeCount: Integer # @param Region: 实例所在地域名称,形如ap-guangzhou # @type Region: String # @param VpcId: 实例私有网络ID,形如vpc-r9jr0de3 # @type VpcId: String # @param SubnetId: 实例私有网络子网ID,形如subnet-6rqs61o2 # @type SubnetId: String # @param WanStatus: 外网状态,0-未开通;1-已开通;2-关闭;3-开通中;4-关闭中 # @type WanStatus: Integer # @param WanDomain: 外网访问的域名,公网可解析 # @type WanDomain: String # @param WanVip: 外网IP地址,公网可访问 # @type WanVip: String # @param WanPort: 外网访问端口 # @type WanPort: Integer # @param ProjectId: 实例所属项目ID # @type ProjectId: Integer # @param AutoRenewFlag: 实例自动续费标志。0-正常续费;1-自动续费;2-到期不续费 # @type AutoRenewFlag: Integer # @param ExclusterId: 独享集群ID # @type ExclusterId: String # @param PayMode: 付费模式。prepaid-预付费;postpaid-按量计费 # @type PayMode: String # @param CreateTime: 实例创建时间,格式为 2006-01-02 15:04:05 # @type CreateTime: String # @param PeriodEndTime: 实例到期时间,格式为 2006-01-02 15:04:05 # @type PeriodEndTime: String # @param DbVersion: 数据库版本信息 # @type DbVersion: String # @param IsAuditSupported: 实例是否支持审计。0-不支持;1-支持 # @type IsAuditSupported: Integer # @param IsEncryptSupported: 实例是否支持数据加密。0-不支持;1-支持 # @type IsEncryptSupported: Integer # @param Machine: 实例母机机器型号 # @type Machine: String # @param Memory: 实例内存大小,单位 GB,各个分片的内存大小的和 # @type Memory: Integer # @param Storage: 实例磁盘存储大小,单位 GB,各个分片的磁盘大小的和 # @type Storage: Integer # @param StorageUsage: 实例存储空间使用率,计算方式为:各个分片已经使用的磁盘大小的和/各个分片的磁盘大小的和。 # @type StorageUsage: Float # @param LogStorage: 日志存储空间大小,单位GB # @type LogStorage: Integer # @param Pid: 产品类型ID # @type Pid: Integer # @param MasterZone: 主DB可用区 # @type MasterZone: String # @param SlaveZones: 从DB可用区 # @type SlaveZones: Array # @param Shards: 分片信息 # @type Shards: Array # @param Vip6: 内网IPv6 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Vip6: String # @param Cpu: 实例Cpu核数 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Cpu: Integer # @param Qps: 实例QPS # 注意:此字段可能返回 null,表示取不到有效值。 # @type Qps: Integer # @param DbEngine: DB引擎 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DbEngine: String # @param Ipv6Flag: 是否支持IPv6 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Ipv6Flag: Integer # @param WanVipv6: 外网IPv6地址,公网可访问 # 注意:此字段可能返回 null,表示取不到有效值。 # @type WanVipv6: String # @param WanStatusIpv6: 外网状态,0-未开通;1-已开通;2-关闭;3-开通中;4-关闭中 # 注意:此字段可能返回 null,表示取不到有效值。 # @type WanStatusIpv6: Integer # @param WanPortIpv6: 外网IPv6端口 # 注意:此字段可能返回 null,表示取不到有效值。 # @type WanPortIpv6: Integer # @param ResourceTags: 标签信息 # @type ResourceTags: Array # @param DcnFlag: DCN标志,0-无,1-主实例,2-灾备实例 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DcnFlag: Integer # @param DcnStatus: DCN状态,0-无,1-创建中,2-同步中,3-已断开 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DcnStatus: Integer # @param DcnDstNum: DCN灾备实例数 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DcnDstNum: Integer # @param InstanceType: 1: 主实例(独享型), 2: 主实例, 3: 灾备实例, 4: 灾备实例(独享型) # 注意:此字段可能返回 null,表示取不到有效值。 # @type InstanceType: Integer # @param IsMaxUserConnectionsSupported: 实例是否支持设置用户连接数限制,内核为10.1暂不支持。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type IsMaxUserConnectionsSupported: Boolean # @param DbVersionId: 对外显示的数据库版本 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DbVersionId: String # @param EncryptStatus: 加密状态, 0-未开启,1-已开启 # 注意:此字段可能返回 null,表示取不到有效值。 # @type EncryptStatus: Integer # @param ExclusterType: 独享集群类型,0:公有云, 1:金融围笼, 2:CDC集群 # 注意:此字段可能返回 null,表示取不到有效值。 # @type ExclusterType: Integer # @param RsAccessStrategy: VPC就近访问 # 注意:此字段可能返回 null,表示取不到有效值。 # @type RsAccessStrategy: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :InstanceId, :InstanceName, :Status, :StatusDesc, :Vip, :Vport, :NodeCount, :Region, :VpcId, :SubnetId, :WanStatus, :WanDomain, :WanVip, :WanPort, :ProjectId, :AutoRenewFlag, :ExclusterId, :PayMode, :CreateTime, :PeriodEndTime, :DbVersion, :IsAuditSupported, :IsEncryptSupported, :Machine, :Memory, :Storage, :StorageUsage, :LogStorage, :Pid, :MasterZone, :SlaveZones, :Shards, :Vip6, :Cpu, :Qps, :DbEngine, :Ipv6Flag, :WanVipv6, :WanStatusIpv6, :WanPortIpv6, :ResourceTags, :DcnFlag, :DcnStatus, :DcnDstNum, :InstanceType, :IsMaxUserConnectionsSupported, :DbVersionId, :EncryptStatus, :ExclusterType, :RsAccessStrategy, :RequestId def initialize(instanceid=nil, instancename=nil, status=nil, statusdesc=nil, vip=nil, vport=nil, nodecount=nil, region=nil, vpcid=nil, subnetid=nil, wanstatus=nil, wandomain=nil, wanvip=nil, wanport=nil, projectid=nil, autorenewflag=nil, exclusterid=nil, paymode=nil, createtime=nil, periodendtime=nil, dbversion=nil, isauditsupported=nil, isencryptsupported=nil, machine=nil, memory=nil, storage=nil, storageusage=nil, logstorage=nil, pid=nil, masterzone=nil, slavezones=nil, shards=nil, vip6=nil, cpu=nil, qps=nil, dbengine=nil, ipv6flag=nil, wanvipv6=nil, wanstatusipv6=nil, wanportipv6=nil, resourcetags=nil, dcnflag=nil, dcnstatus=nil, dcndstnum=nil, instancetype=nil, ismaxuserconnectionssupported=nil, dbversionid=nil, encryptstatus=nil, exclustertype=nil, rsaccessstrategy=nil, requestid=nil) @InstanceId = instanceid @InstanceName = instancename @Status = status @StatusDesc = statusdesc @Vip = vip @Vport = vport @NodeCount = nodecount @Region = region @VpcId = vpcid @SubnetId = subnetid @WanStatus = wanstatus @WanDomain = wandomain @WanVip = wanvip @WanPort = wanport @ProjectId = projectid @AutoRenewFlag = autorenewflag @ExclusterId = exclusterid @PayMode = paymode @CreateTime = createtime @PeriodEndTime = periodendtime @DbVersion = dbversion @IsAuditSupported = isauditsupported @IsEncryptSupported = isencryptsupported @Machine = machine @Memory = memory @Storage = storage @StorageUsage = storageusage @LogStorage = logstorage @Pid = pid @MasterZone = masterzone @SlaveZones = slavezones @Shards = shards @Vip6 = vip6 @Cpu = cpu @Qps = qps @DbEngine = dbengine @Ipv6Flag = ipv6flag @WanVipv6 = wanvipv6 @WanStatusIpv6 = wanstatusipv6 @WanPortIpv6 = wanportipv6 @ResourceTags = resourcetags @DcnFlag = dcnflag @DcnStatus = dcnstatus @DcnDstNum = dcndstnum @InstanceType = instancetype @IsMaxUserConnectionsSupported = ismaxuserconnectionssupported @DbVersionId = dbversionid @EncryptStatus = encryptstatus @ExclusterType = exclustertype @RsAccessStrategy = rsaccessstrategy @RequestId = requestid end def deserialize(params) @InstanceId = params['InstanceId'] @InstanceName = params['InstanceName'] @Status = params['Status'] @StatusDesc = params['StatusDesc'] @Vip = params['Vip'] @Vport = params['Vport'] @NodeCount = params['NodeCount'] @Region = params['Region'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @WanStatus = params['WanStatus'] @WanDomain = params['WanDomain'] @WanVip = params['WanVip'] @WanPort = params['WanPort'] @ProjectId = params['ProjectId'] @AutoRenewFlag = params['AutoRenewFlag'] @ExclusterId = params['ExclusterId'] @PayMode = params['PayMode'] @CreateTime = params['CreateTime'] @PeriodEndTime = params['PeriodEndTime'] @DbVersion = params['DbVersion'] @IsAuditSupported = params['IsAuditSupported'] @IsEncryptSupported = params['IsEncryptSupported'] @Machine = params['Machine'] @Memory = params['Memory'] @Storage = params['Storage'] @StorageUsage = params['StorageUsage'] @LogStorage = params['LogStorage'] @Pid = params['Pid'] @MasterZone = params['MasterZone'] @SlaveZones = params['SlaveZones'] unless params['Shards'].nil? @Shards = [] params['Shards'].each do |i| shardbriefinfo_tmp = ShardBriefInfo.new shardbriefinfo_tmp.deserialize(i) @Shards << shardbriefinfo_tmp end end @Vip6 = params['Vip6'] @Cpu = params['Cpu'] @Qps = params['Qps'] @DbEngine = params['DbEngine'] @Ipv6Flag = params['Ipv6Flag'] @WanVipv6 = params['WanVipv6'] @WanStatusIpv6 = params['WanStatusIpv6'] @WanPortIpv6 = params['WanPortIpv6'] unless params['ResourceTags'].nil? @ResourceTags = [] params['ResourceTags'].each do |i| resourcetag_tmp = ResourceTag.new resourcetag_tmp.deserialize(i) @ResourceTags << resourcetag_tmp end end @DcnFlag = params['DcnFlag'] @DcnStatus = params['DcnStatus'] @DcnDstNum = params['DcnDstNum'] @InstanceType = params['InstanceType'] @IsMaxUserConnectionsSupported = params['IsMaxUserConnectionsSupported'] @DbVersionId = params['DbVersionId'] @EncryptStatus = params['EncryptStatus'] @ExclusterType = params['ExclusterType'] @RsAccessStrategy = params['RsAccessStrategy'] @RequestId = params['RequestId'] end end # DescribeDCDBInstanceNodeInfo请求参数结构体 class DescribeDCDBInstanceNodeInfoRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例ID # @type InstanceId: String # @param Limit: 单次最多返回多少条,取值范围为(0-100],默认为100 # @type Limit: Integer # @param Offset: 返回数据的偏移值,默认为0 # @type Offset: Integer attr_accessor :InstanceId, :Limit, :Offset def initialize(instanceid=nil, limit=nil, offset=nil) @InstanceId = instanceid @Limit = limit @Offset = offset end def deserialize(params) @InstanceId = params['InstanceId'] @Limit = params['Limit'] @Offset = params['Offset'] end end # DescribeDCDBInstanceNodeInfo返回参数结构体 class DescribeDCDBInstanceNodeInfoResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 节点总个数 # @type TotalCount: Integer # @param NodesInfo: 节点信息 # @type NodesInfo: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :NodesInfo, :RequestId def initialize(totalcount=nil, nodesinfo=nil, requestid=nil) @TotalCount = totalcount @NodesInfo = nodesinfo @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['NodesInfo'].nil? @NodesInfo = [] params['NodesInfo'].each do |i| briefnodeinfo_tmp = BriefNodeInfo.new briefnodeinfo_tmp.deserialize(i) @NodesInfo << briefnodeinfo_tmp end end @RequestId = params['RequestId'] end end # DescribeDCDBInstances请求参数结构体 class DescribeDCDBInstancesRequest < TencentCloud::Common::AbstractModel # @param InstanceIds: 按照一个或者多个实例 ID 查询。实例 ID 形如:dcdbt-2t4cf98d # @type InstanceIds: Array # @param SearchName: 搜索的字段名,当前支持的值有:instancename、vip、all。传 instancename 表示按实例名进行搜索;传 vip 表示按内网IP进行搜索;传 all 将会按实例ID、实例名和内网IP进行搜索。 # @type SearchName: String # @param SearchKey: 搜索的关键字,支持模糊搜索。多个关键字使用换行符('\n')分割。 # @type SearchKey: String # @param ProjectIds: 按项目 ID 查询 # @type ProjectIds: Array # @param IsFilterVpc: 是否根据 VPC 网络来搜索 # @type IsFilterVpc: Boolean # @param VpcId: 私有网络 ID, IsFilterVpc 为 1 时有效 # @type VpcId: String # @param SubnetId: 私有网络的子网 ID, IsFilterVpc 为 1 时有效 # @type SubnetId: String # @param OrderBy: 排序字段, projectId, createtime, instancename 三者之一 # @type OrderBy: String # @param OrderByType: 排序类型, desc 或者 asc # @type OrderByType: String # @param Offset: 偏移量,默认为 0 # @type Offset: Integer # @param Limit: 返回数量,默认为 10,最大值为 100。 # @type Limit: Integer # @param ExclusterType: 1非独享集群,2独享集群, 0全部 # @type ExclusterType: Integer # @param IsFilterExcluster: 标识是否使用ExclusterType字段, false不使用,true使用 # @type IsFilterExcluster: Boolean # @param ExclusterIds: 独享集群ID # @type ExclusterIds: Array # @param TagKeys: 按标签key查询 # @type TagKeys: Array # @param FilterInstanceType: 实例类型过滤,1-独享实例,2-主实例,3-灾备实例,多个按逗号分隔 # @type FilterInstanceType: String # @param Status: 按实例状态筛选 # @type Status: Array # @param ExcludeStatus: 排除实例状态 # @type ExcludeStatus: Array attr_accessor :InstanceIds, :SearchName, :SearchKey, :ProjectIds, :IsFilterVpc, :VpcId, :SubnetId, :OrderBy, :OrderByType, :Offset, :Limit, :ExclusterType, :IsFilterExcluster, :ExclusterIds, :TagKeys, :FilterInstanceType, :Status, :ExcludeStatus def initialize(instanceids=nil, searchname=nil, searchkey=nil, projectids=nil, isfiltervpc=nil, vpcid=nil, subnetid=nil, orderby=nil, orderbytype=nil, offset=nil, limit=nil, exclustertype=nil, isfilterexcluster=nil, exclusterids=nil, tagkeys=nil, filterinstancetype=nil, status=nil, excludestatus=nil) @InstanceIds = instanceids @SearchName = searchname @SearchKey = searchkey @ProjectIds = projectids @IsFilterVpc = isfiltervpc @VpcId = vpcid @SubnetId = subnetid @OrderBy = orderby @OrderByType = orderbytype @Offset = offset @Limit = limit @ExclusterType = exclustertype @IsFilterExcluster = isfilterexcluster @ExclusterIds = exclusterids @TagKeys = tagkeys @FilterInstanceType = filterinstancetype @Status = status @ExcludeStatus = excludestatus end def deserialize(params) @InstanceIds = params['InstanceIds'] @SearchName = params['SearchName'] @SearchKey = params['SearchKey'] @ProjectIds = params['ProjectIds'] @IsFilterVpc = params['IsFilterVpc'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @OrderBy = params['OrderBy'] @OrderByType = params['OrderByType'] @Offset = params['Offset'] @Limit = params['Limit'] @ExclusterType = params['ExclusterType'] @IsFilterExcluster = params['IsFilterExcluster'] @ExclusterIds = params['ExclusterIds'] @TagKeys = params['TagKeys'] @FilterInstanceType = params['FilterInstanceType'] @Status = params['Status'] @ExcludeStatus = params['ExcludeStatus'] end end # DescribeDCDBInstances返回参数结构体 class DescribeDCDBInstancesResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 符合条件的实例数量 # @type TotalCount: Integer # @param Instances: 实例详细信息列表 # @type Instances: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :Instances, :RequestId def initialize(totalcount=nil, instances=nil, requestid=nil) @TotalCount = totalcount @Instances = instances @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['Instances'].nil? @Instances = [] params['Instances'].each do |i| dcdbinstanceinfo_tmp = DCDBInstanceInfo.new dcdbinstanceinfo_tmp.deserialize(i) @Instances << dcdbinstanceinfo_tmp end end @RequestId = params['RequestId'] end end # DescribeDCDBPrice请求参数结构体 class DescribeDCDBPriceRequest < TencentCloud::Common::AbstractModel # @param Zone: 欲新购实例的可用区ID。 # @type Zone: String # @param Count: 欲购买实例的数量,目前支持购买1-10个实例 # @type Count: Integer # @param Period: 欲购买的时长,单位:月。 # @type Period: Integer # @param ShardNodeCount: 单个分片节点个数大小,可以通过 DescribeShardSpec # 查询实例规格获得。 # @type ShardNodeCount: Integer # @param ShardMemory: 分片内存大小,单位:GB,可以通过 DescribeShardSpec # 查询实例规格获得。 # @type ShardMemory: Integer # @param ShardStorage: 分片存储空间大小,单位:GB,可以通过 DescribeShardSpec # 查询实例规格获得。 # @type ShardStorage: Integer # @param ShardCount: 实例分片个数,可选范围2-8,可以通过升级实例进行新增分片到最多64个分片。 # @type ShardCount: Integer # @param Paymode: 付费类型。postpaid:按量付费 prepaid:预付费 # @type Paymode: String # @param AmountUnit: 价格金额单位,不传默认单位为分,取值: # * pent:分 # * microPent:微分 # @type AmountUnit: String attr_accessor :Zone, :Count, :Period, :ShardNodeCount, :ShardMemory, :ShardStorage, :ShardCount, :Paymode, :AmountUnit def initialize(zone=nil, count=nil, period=nil, shardnodecount=nil, shardmemory=nil, shardstorage=nil, shardcount=nil, paymode=nil, amountunit=nil) @Zone = zone @Count = count @Period = period @ShardNodeCount = shardnodecount @ShardMemory = shardmemory @ShardStorage = shardstorage @ShardCount = shardcount @Paymode = paymode @AmountUnit = amountunit end def deserialize(params) @Zone = params['Zone'] @Count = params['Count'] @Period = params['Period'] @ShardNodeCount = params['ShardNodeCount'] @ShardMemory = params['ShardMemory'] @ShardStorage = params['ShardStorage'] @ShardCount = params['ShardCount'] @Paymode = params['Paymode'] @AmountUnit = params['AmountUnit'] end end # DescribeDCDBPrice返回参数结构体 class DescribeDCDBPriceResponse < TencentCloud::Common::AbstractModel # @param OriginalPrice: 原价 # * 单位:默认为分,若请求参数带有AmountUnit,参考AmountUnit描述 # * 币种:国内站为人民币,国际站为美元 # @type OriginalPrice: Integer # @param Price: 实际价格,受折扣等影响,可能和原价不同 # * 单位:默认为分,若请求参数带有AmountUnit,参考AmountUnit描述 # * 币种:国内站人民币,国际站美元 # @type Price: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :OriginalPrice, :Price, :RequestId def initialize(originalprice=nil, price=nil, requestid=nil) @OriginalPrice = originalprice @Price = price @RequestId = requestid end def deserialize(params) @OriginalPrice = params['OriginalPrice'] @Price = params['Price'] @RequestId = params['RequestId'] end end # DescribeDCDBRenewalPrice请求参数结构体 class DescribeDCDBRenewalPriceRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 待续费的实例ID。形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。 # @type InstanceId: String # @param Period: 续费时长,单位:月。不传则默认为1个月。 # @type Period: Integer # @param AmountUnit: 价格金额单位,不传默认单位为分,取值: # * pent:分 # * microPent:微分 # @type AmountUnit: String attr_accessor :InstanceId, :Period, :AmountUnit def initialize(instanceid=nil, period=nil, amountunit=nil) @InstanceId = instanceid @Period = period @AmountUnit = amountunit end def deserialize(params) @InstanceId = params['InstanceId'] @Period = params['Period'] @AmountUnit = params['AmountUnit'] end end # DescribeDCDBRenewalPrice返回参数结构体 class DescribeDCDBRenewalPriceResponse < TencentCloud::Common::AbstractModel # @param OriginalPrice: 原价 # * 单位:默认为分,若请求参数带有AmountUnit,参考AmountUnit描述 # * 币种:国内站为人民币,国际站为美元 # @type OriginalPrice: Integer # @param Price: 实际价格,受折扣等影响,可能和原价不同 # * 单位:默认为分,若请求参数带有AmountUnit,参考AmountUnit描述 # * 币种:国内站人民币,国际站美元 # @type Price: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :OriginalPrice, :Price, :RequestId def initialize(originalprice=nil, price=nil, requestid=nil) @OriginalPrice = originalprice @Price = price @RequestId = requestid end def deserialize(params) @OriginalPrice = params['OriginalPrice'] @Price = params['Price'] @RequestId = params['RequestId'] end end # DescribeDCDBSaleInfo请求参数结构体 class DescribeDCDBSaleInfoRequest < TencentCloud::Common::AbstractModel def initialize() end def deserialize(params) end end # DescribeDCDBSaleInfo返回参数结构体 class DescribeDCDBSaleInfoResponse < TencentCloud::Common::AbstractModel # @param RegionList: 可售卖地域信息列表 # @type RegionList: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :RegionList, :RequestId def initialize(regionlist=nil, requestid=nil) @RegionList = regionlist @RequestId = requestid end def deserialize(params) unless params['RegionList'].nil? @RegionList = [] params['RegionList'].each do |i| regioninfo_tmp = RegionInfo.new regioninfo_tmp.deserialize(i) @RegionList << regioninfo_tmp end end @RequestId = params['RequestId'] end end # DescribeDCDBShards请求参数结构体 class DescribeDCDBShardsRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例ID,形如:dcdbt-ow728lmc。 # @type InstanceId: String # @param ShardInstanceIds: 分片ID列表。 # @type ShardInstanceIds: Array # @param Offset: 偏移量,默认为 0 # @type Offset: Integer # @param Limit: 返回数量,默认为 20,最大值为 100。 # @type Limit: Integer # @param OrderBy: 排序字段, 目前仅支持 createtime # @type OrderBy: String # @param OrderByType: 排序类型, desc 或者 asc # @type OrderByType: String attr_accessor :InstanceId, :ShardInstanceIds, :Offset, :Limit, :OrderBy, :OrderByType def initialize(instanceid=nil, shardinstanceids=nil, offset=nil, limit=nil, orderby=nil, orderbytype=nil) @InstanceId = instanceid @ShardInstanceIds = shardinstanceids @Offset = offset @Limit = limit @OrderBy = orderby @OrderByType = orderbytype end def deserialize(params) @InstanceId = params['InstanceId'] @ShardInstanceIds = params['ShardInstanceIds'] @Offset = params['Offset'] @Limit = params['Limit'] @OrderBy = params['OrderBy'] @OrderByType = params['OrderByType'] end end # DescribeDCDBShards返回参数结构体 class DescribeDCDBShardsResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 符合条件的分片数量 # @type TotalCount: Integer # @param Shards: 分片信息列表 # @type Shards: Array # @param DcnFlag: 灾备标志,0-无,1-主实例,2-灾备实例 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DcnFlag: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :Shards, :DcnFlag, :RequestId def initialize(totalcount=nil, shards=nil, dcnflag=nil, requestid=nil) @TotalCount = totalcount @Shards = shards @DcnFlag = dcnflag @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['Shards'].nil? @Shards = [] params['Shards'].each do |i| dcdbshardinfo_tmp = DCDBShardInfo.new dcdbshardinfo_tmp.deserialize(i) @Shards << dcdbshardinfo_tmp end end @DcnFlag = params['DcnFlag'] @RequestId = params['RequestId'] end end # DescribeDCDBUpgradePrice请求参数结构体 class DescribeDCDBUpgradePriceRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 待升级的实例ID。形如:dcdbt-ow728lmc,可以通过 DescribeDCDBInstances 查询实例详情获得。 # @type InstanceId: String # @param UpgradeType: 升级类型,取值范围: #