# 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 Mariadb module V20170312 # 数据库账号信息 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 # AssociateSecurityGroups请求参数结构体 class AssociateSecurityGroupsRequest < TencentCloud::Common::AbstractModel # @param Product: 数据库引擎名称,本接口取值:mariadb。 # @type Product: String # @param SecurityGroupId: 要绑定的安全组ID,类似sg-efil73jd。 # @type SecurityGroupId: String # @param InstanceIds: 被绑定的实例ID,类似tdsql-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 # 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。形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 # @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,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 # @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,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 # @type InstanceId: String # @param UserName: 登录用户名,由字母、数字、下划线和连字符组成,长度为1~32位。 # @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:优先选择备机执行,备机不可用时操作失败。 # @type ReadOnly: Integer # @param Description: 账号备注,可以包含中文、英文字符、常见符号和数字,长度为0~256字符 # @type Description: String # @param DelayThresh: 根据传入时间判断备机不可用 # @type DelayThresh: Integer attr_accessor :InstanceId, :UserName, :Host, :Password, :ReadOnly, :Description, :DelayThresh def initialize(instanceid=nil, username=nil, host=nil, password=nil, readonly=nil, description=nil, delaythresh=nil) @InstanceId = instanceid @UserName = username @Host = host @Password = password @ReadOnly = readonly @Description = description @DelayThresh = delaythresh 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'] 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 # CreateDBInstance请求参数结构体 class CreateDBInstanceRequest < TencentCloud::Common::AbstractModel # @param Zones: 实例节点可用区分布,最多可填两个可用区。当分片规格为一主两从时,其中两个节点在第一个可用区。 # @type Zones: Array # @param NodeCount: 节点个数大小,可以通过 DescribeDBInstanceSpecs # 查询实例规格获得。 # @type NodeCount: Integer # @param Memory: 内存大小,单位:GB,可以通过 DescribeDBInstanceSpecs # 查询实例规格获得。 # @type Memory: Integer # @param Storage: 存储空间大小,单位:GB,可以通过 DescribeDBInstanceSpecs # 查询实例规格获得不同内存大小对应的磁盘规格下限和上限。 # @type Storage: Integer # @param Period: 欲购买的时长,单位:月。 # @type Period: Integer # @param Count: 欲购买的数量,默认查询购买1个实例的价格。 # @type Count: Integer # @param AutoVoucher: 是否自动使用代金券进行支付,默认不使用。 # @type AutoVoucher: Boolean # @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。 # @type VoucherIds: Array # @param VpcId: 虚拟私有网络 ID,不传表示创建为基础网络 # @type VpcId: String # @param SubnetId: 虚拟私有网络子网 ID,VpcId 不为空时必填 # @type SubnetId: String # @param ProjectId: 项目 ID,可以通过查看项目列表获取,不传则关联到默认项目 # @type ProjectId: Integer # @param DbVersionId: 数据库引擎版本,当前可选:8.0.18,10.1.9,5.7.17。如果不传的话,默认为 Percona 5.7.17。 # @type DbVersionId: String # @param InstanceName: 实例名称, 可以通过该字段自主的设置实例的名字 # @type InstanceName: String # @param SecurityGroupIds: 安全组ID列表 # @type SecurityGroupIds: Array # @param AutoRenewFlag: 自动续费标志,1:自动续费,2:不自动续费 # @type AutoRenewFlag: Integer # @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 attr_accessor :Zones, :NodeCount, :Memory, :Storage, :Period, :Count, :AutoVoucher, :VoucherIds, :VpcId, :SubnetId, :ProjectId, :DbVersionId, :InstanceName, :SecurityGroupIds, :AutoRenewFlag, :Ipv6Flag, :ResourceTags, :InitParams, :DcnRegion, :DcnInstanceId def initialize(zones=nil, nodecount=nil, memory=nil, storage=nil, period=nil, count=nil, autovoucher=nil, voucherids=nil, vpcid=nil, subnetid=nil, projectid=nil, dbversionid=nil, instancename=nil, securitygroupids=nil, autorenewflag=nil, ipv6flag=nil, resourcetags=nil, initparams=nil, dcnregion=nil, dcninstanceid=nil) @Zones = zones @NodeCount = nodecount @Memory = memory @Storage = storage @Period = period @Count = count @AutoVoucher = autovoucher @VoucherIds = voucherids @VpcId = vpcid @SubnetId = subnetid @ProjectId = projectid @DbVersionId = dbversionid @InstanceName = instancename @SecurityGroupIds = securitygroupids @AutoRenewFlag = autorenewflag @Ipv6Flag = ipv6flag @ResourceTags = resourcetags @InitParams = initparams @DcnRegion = dcnregion @DcnInstanceId = dcninstanceid end def deserialize(params) @Zones = params['Zones'] @NodeCount = params['NodeCount'] @Memory = params['Memory'] @Storage = params['Storage'] @Period = params['Period'] @Count = params['Count'] @AutoVoucher = params['AutoVoucher'] @VoucherIds = params['VoucherIds'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @ProjectId = params['ProjectId'] @DbVersionId = params['DbVersionId'] @InstanceName = params['InstanceName'] @SecurityGroupIds = params['SecurityGroupIds'] @AutoRenewFlag = params['AutoRenewFlag'] @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'] end end # CreateDBInstance返回参数结构体 class CreateDBInstanceResponse < 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 # CreateDedicatedClusterDBInstance请求参数结构体 class CreateDedicatedClusterDBInstanceRequest < TencentCloud::Common::AbstractModel # @param GoodsNum: 分配实例个数 # @type GoodsNum: Integer # @param Memory: 內存大小,单位GB # @type Memory: Integer # @param Storage: 磁盘大小,单位GB # @type Storage: Integer # @param ClusterId: 独享集群集群uuid # @type ClusterId: String # @param Zone: (废弃)可用区 # @type Zone: String # @param ProjectId: 项目ID # @type ProjectId: Integer # @param Pid: (废弃)Pid,可通过获取独享集群售卖配置接口得到 # @type Pid: Integer # @param Machine: (废弃)机型 # @type Machine: String # @param VpcId: 网络Id # @type VpcId: String # @param SubnetId: 子网Id # @type SubnetId: String # @param DbVersionId: db类型,不传默认0 # @type DbVersionId: String # @param Manual: (废弃)是否手动指定一组服务器分配, 运维使用 # @type Manual: Integer # @param DeviceNo: (废弃)DeviceNo参数 # @type DeviceNo: String # @param SecurityGroupIds: 安全组ID # @type SecurityGroupIds: Array # @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 InitParams: 参数列表。本接口的可选值为:character_set_server(字符集,必传),lower_case_table_names(表名大小写敏感,必传,0 - 敏感;1-不敏感),innodb_page_size(innodb数据页,默认16K),sync_mode(同步模式:0 - 异步; 1 - 强同步;2 - 强同步可退化。默认为强同步可退化)。 # @type InitParams: Array # @param NodeNum: 实例节点数 # @type NodeNum: Integer # @param MasterHostId: 指定主节点uuid,不填随机分配 # @type MasterHostId: String # @param SlaveHostIds: 指定从节点uuid,不填随机分配 # @type SlaveHostIds: Array attr_accessor :GoodsNum, :Memory, :Storage, :ClusterId, :Zone, :ProjectId, :Pid, :Machine, :VpcId, :SubnetId, :DbVersionId, :Manual, :DeviceNo, :SecurityGroupIds, :DcnInstanceId, :DcnRegion, :InstanceName, :ResourceTags, :Ipv6Flag, :InitParams, :NodeNum, :MasterHostId, :SlaveHostIds def initialize(goodsnum=nil, memory=nil, storage=nil, clusterid=nil, zone=nil, projectid=nil, pid=nil, machine=nil, vpcid=nil, subnetid=nil, dbversionid=nil, manual=nil, deviceno=nil, securitygroupids=nil, dcninstanceid=nil, dcnregion=nil, instancename=nil, resourcetags=nil, ipv6flag=nil, initparams=nil, nodenum=nil, masterhostid=nil, slavehostids=nil) @GoodsNum = goodsnum @Memory = memory @Storage = storage @ClusterId = clusterid @Zone = zone @ProjectId = projectid @Pid = pid @Machine = machine @VpcId = vpcid @SubnetId = subnetid @DbVersionId = dbversionid @Manual = manual @DeviceNo = deviceno @SecurityGroupIds = securitygroupids @DcnInstanceId = dcninstanceid @DcnRegion = dcnregion @InstanceName = instancename @ResourceTags = resourcetags @Ipv6Flag = ipv6flag @InitParams = initparams @NodeNum = nodenum @MasterHostId = masterhostid @SlaveHostIds = slavehostids end def deserialize(params) @GoodsNum = params['GoodsNum'] @Memory = params['Memory'] @Storage = params['Storage'] @ClusterId = params['ClusterId'] @Zone = params['Zone'] @ProjectId = params['ProjectId'] @Pid = params['Pid'] @Machine = params['Machine'] @VpcId = params['VpcId'] @SubnetId = params['SubnetId'] @DbVersionId = params['DbVersionId'] @Manual = params['Manual'] @DeviceNo = params['DeviceNo'] @SecurityGroupIds = params['SecurityGroupIds'] @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'] unless params['InitParams'].nil? @InitParams = [] params['InitParams'].each do |i| dbparamvalue_tmp = DBParamValue.new dbparamvalue_tmp.deserialize(i) @InitParams << dbparamvalue_tmp end end @NodeNum = params['NodeNum'] @MasterHostId = params['MasterHostId'] @SlaveHostIds = params['SlaveHostIds'] end end # CreateDedicatedClusterDBInstance返回参数结构体 class CreateDedicatedClusterDBInstanceResponse < TencentCloud::Common::AbstractModel # @param InstanceIds: 分配资源ID数组 # @type InstanceIds: Array # @param FlowId: 流程ID # @type FlowId: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :InstanceIds, :FlowId, :RequestId def initialize(instanceids=nil, flowid=nil, requestid=nil) @InstanceIds = instanceids @FlowId = flowid @RequestId = requestid end def deserialize(params) @InstanceIds = params['InstanceIds'] @FlowId = params['FlowId'] @RequestId = params['RequestId'] end end # CreateTmpInstances请求参数结构体 class CreateTmpInstancesRequest < TencentCloud::Common::AbstractModel # @param InstanceIds: 回档实例的ID列表,形如:tdsql-ow728lmc。 # @type InstanceIds: Array # @param RollbackTime: 回档时间点 # @type RollbackTime: String attr_accessor :InstanceIds, :RollbackTime def initialize(instanceids=nil, rollbacktime=nil) @InstanceIds = instanceids @RollbackTime = rollbacktime end def deserialize(params) @InstanceIds = params['InstanceIds'] @RollbackTime = params['RollbackTime'] end end # CreateTmpInstances返回参数结构体 class CreateTmpInstancesResponse < 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 # 云数据库账号信息 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: 该字段对只读帐号有意义,表示选择主备延迟小于该值的备机 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DelayThresh: Integer attr_accessor :UserName, :Host, :Description, :CreateTime, :UpdateTime, :ReadOnly, :DelayThresh def initialize(username=nil, host=nil, description=nil, createtime=nil, updatetime=nil, readonly=nil, delaythresh=nil) @UserName = username @Host = host @Description = description @CreateTime = createtime @UpdateTime = updatetime @ReadOnly = readonly @DelayThresh = delaythresh 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'] end end # 云数据库实例备份时间配置信息 class DBBackupTimeConfig < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID # @type InstanceId: String # @param StartBackupTime: 每天备份执行的区间的开始时间,格式 mm:ss,形如 22:00 # @type StartBackupTime: String # @param EndBackupTime: 每天备份执行的区间的结束时间,格式 mm:ss,形如 23:00 # @type EndBackupTime: String attr_accessor :InstanceId, :StartBackupTime, :EndBackupTime def initialize(instanceid=nil, startbackuptime=nil, endbackuptime=nil) @InstanceId = instanceid @StartBackupTime = startbackuptime @EndBackupTime = endbackuptime end def deserialize(params) @InstanceId = params['InstanceId'] @StartBackupTime = params['StartBackupTime'] @EndBackupTime = params['EndBackupTime'] end end # 描述云数据库实例的详细信息。 class DBInstance < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,唯一标识一个 TDSQL 实例 # @type InstanceId: String # @param InstanceName: 实例名称,用户可修改 # @type InstanceName: String # @param AppId: 实例所属应用 ID # @type AppId: Integer # @param ProjectId: 实例所属项目 ID # @type ProjectId: Integer # @param Region: 实例所在地域名称,如 ap-shanghai # @type Region: String # @param Zone: 实例所在可用区名称,如 ap-shanghai-1 # @type Zone: String # @param VpcId: 私有网络 ID,基础网络时为 0 # @type VpcId: Integer # @param SubnetId: 子网 ID,基础网络时为 0 # @type SubnetId: Integer # @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 WanDomain: 外网访问的域名,公网可解析 # @type WanDomain: String # @param WanVip: 外网 IP 地址,公网可访问 # @type WanVip: String # @param WanPort: 外网端口 # @type WanPort: Integer # @param CreateTime: 实例创建时间,格式为 2006-01-02 15:04:05 # @type CreateTime: String # @param UpdateTime: 实例最后更新时间,格式为 2006-01-02 15:04:05 # @type UpdateTime: String # @param AutoRenewFlag: 自动续费标志:0 否,1 是 # @type AutoRenewFlag: Integer # @param PeriodEndTime: 实例到期时间,格式为 2006-01-02 15:04:05 # @type PeriodEndTime: String # @param Uin: 实例所属账号 # @type Uin: String # @param TdsqlVersion: TDSQL 版本信息 # @type TdsqlVersion: String # @param Memory: 实例内存大小,单位 GB # @type Memory: Integer # @param Storage: 实例存储大小,单位 GB # @type Storage: Integer # @param UniqueVpcId: 字符串型的私有网络ID # @type UniqueVpcId: String # @param UniqueSubnetId: 字符串型的私有网络子网ID # @type UniqueSubnetId: String # @param OriginSerialId: 原始实例ID(过时字段,请勿依赖该值) # @type OriginSerialId: String # @param NodeCount: 节点数,2为一主一从,3为一主二从 # @type NodeCount: Integer # @param IsTmp: 是否临时实例,0为否,非0为是 # @type IsTmp: Integer # @param ExclusterId: 独享集群ID,为空表示为普通实例 # @type ExclusterId: String # @param Id: 数字实例ID(过时字段,请勿依赖该值) # @type Id: Integer # @param Pid: 产品类型 ID # @type Pid: Integer # @param Qps: 最大 Qps 值 # @type Qps: Integer # @param Paymode: 付费模式 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Paymode: String # @param Locker: 实例处于异步任务时的异步任务流程ID # 注意:此字段可能返回 null,表示取不到有效值。 # @type Locker: Integer # @param StatusDesc: 实例目前运行状态描述 # 注意:此字段可能返回 null,表示取不到有效值。 # @type StatusDesc: String # @param WanStatus: 外网状态,0-未开通;1-已开通;2-关闭;3-开通中 # @type WanStatus: Integer # @param IsAuditSupported: 该实例是否支持审计。1-支持;0-不支持 # @type IsAuditSupported: Integer # @param Machine: 机器型号 # @type Machine: String # @param IsEncryptSupported: 是否支持数据加密。1-支持;0-不支持 # @type IsEncryptSupported: 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 DbEngine: 数据库引擎 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DbEngine: String # @param DbVersion: 数据库版本 # 注意:此字段可能返回 null,表示取不到有效值。 # @type DbVersion: String # @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 attr_accessor :InstanceId, :InstanceName, :AppId, :ProjectId, :Region, :Zone, :VpcId, :SubnetId, :Status, :Vip, :Vport, :WanDomain, :WanVip, :WanPort, :CreateTime, :UpdateTime, :AutoRenewFlag, :PeriodEndTime, :Uin, :TdsqlVersion, :Memory, :Storage, :UniqueVpcId, :UniqueSubnetId, :OriginSerialId, :NodeCount, :IsTmp, :ExclusterId, :Id, :Pid, :Qps, :Paymode, :Locker, :StatusDesc, :WanStatus, :IsAuditSupported, :Machine, :IsEncryptSupported, :Cpu, :Ipv6Flag, :Vipv6, :WanVipv6, :WanPortIpv6, :WanStatusIpv6, :DbEngine, :DbVersion, :DcnFlag, :DcnStatus, :DcnDstNum, :InstanceType def initialize(instanceid=nil, instancename=nil, appid=nil, projectid=nil, region=nil, zone=nil, vpcid=nil, subnetid=nil, status=nil, vip=nil, vport=nil, wandomain=nil, wanvip=nil, wanport=nil, createtime=nil, updatetime=nil, autorenewflag=nil, periodendtime=nil, uin=nil, tdsqlversion=nil, memory=nil, storage=nil, uniquevpcid=nil, uniquesubnetid=nil, originserialid=nil, nodecount=nil, istmp=nil, exclusterid=nil, id=nil, pid=nil, qps=nil, paymode=nil, locker=nil, statusdesc=nil, wanstatus=nil, isauditsupported=nil, machine=nil, isencryptsupported=nil, cpu=nil, ipv6flag=nil, vipv6=nil, wanvipv6=nil, wanportipv6=nil, wanstatusipv6=nil, dbengine=nil, dbversion=nil, dcnflag=nil, dcnstatus=nil, dcndstnum=nil, instancetype=nil) @InstanceId = instanceid @InstanceName = instancename @AppId = appid @ProjectId = projectid @Region = region @Zone = zone @VpcId = vpcid @SubnetId = subnetid @Status = status @Vip = vip @Vport = vport @WanDomain = wandomain @WanVip = wanvip @WanPort = wanport @CreateTime = createtime @UpdateTime = updatetime @AutoRenewFlag = autorenewflag @PeriodEndTime = periodendtime @Uin = uin @TdsqlVersion = tdsqlversion @Memory = memory @Storage = storage @UniqueVpcId = uniquevpcid @UniqueSubnetId = uniquesubnetid @OriginSerialId = originserialid @NodeCount = nodecount @IsTmp = istmp @ExclusterId = exclusterid @Id = id @Pid = pid @Qps = qps @Paymode = paymode @Locker = locker @StatusDesc = statusdesc @WanStatus = wanstatus @IsAuditSupported = isauditsupported @Machine = machine @IsEncryptSupported = isencryptsupported @Cpu = cpu @Ipv6Flag = ipv6flag @Vipv6 = vipv6 @WanVipv6 = wanvipv6 @WanPortIpv6 = wanportipv6 @WanStatusIpv6 = wanstatusipv6 @DbEngine = dbengine @DbVersion = dbversion @DcnFlag = dcnflag @DcnStatus = dcnstatus @DcnDstNum = dcndstnum @InstanceType = instancetype 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'] @Status = params['Status'] @Vip = params['Vip'] @Vport = params['Vport'] @WanDomain = params['WanDomain'] @WanVip = params['WanVip'] @WanPort = params['WanPort'] @CreateTime = params['CreateTime'] @UpdateTime = params['UpdateTime'] @AutoRenewFlag = params['AutoRenewFlag'] @PeriodEndTime = params['PeriodEndTime'] @Uin = params['Uin'] @TdsqlVersion = params['TdsqlVersion'] @Memory = params['Memory'] @Storage = params['Storage'] @UniqueVpcId = params['UniqueVpcId'] @UniqueSubnetId = params['UniqueSubnetId'] @OriginSerialId = params['OriginSerialId'] @NodeCount = params['NodeCount'] @IsTmp = params['IsTmp'] @ExclusterId = params['ExclusterId'] @Id = params['Id'] @Pid = params['Pid'] @Qps = params['Qps'] @Paymode = params['Paymode'] @Locker = params['Locker'] @StatusDesc = params['StatusDesc'] @WanStatus = params['WanStatus'] @IsAuditSupported = params['IsAuditSupported'] @Machine = params['Machine'] @IsEncryptSupported = params['IsEncryptSupported'] @Cpu = params['Cpu'] @Ipv6Flag = params['Ipv6Flag'] @Vipv6 = params['Vipv6'] @WanVipv6 = params['WanVipv6'] @WanPortIpv6 = params['WanPortIpv6'] @WanStatusIpv6 = params['WanStatusIpv6'] @DbEngine = params['DbEngine'] @DbVersion = params['DbVersion'] @DcnFlag = params['DcnFlag'] @DcnStatus = params['DcnStatus'] @DcnDstNum = params['DcnDstNum'] @InstanceType = params['InstanceType'] 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 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 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 # 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 attr_accessor :InstanceId, :InstanceName, :Region, :Zone, :Vip, :Vipv6, :Vport, :Status, :StatusDesc, :DcnFlag, :DcnStatus, :Cpu, :Memory, :Storage, :PayMode, :CreateTime, :PeriodEndTime, :InstanceType 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) @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 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'] 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,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 # @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,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 # @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,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 # @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: 实例用户列表。 # @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 # DescribeBackupTime请求参数结构体 class DescribeBackupTimeRequest < TencentCloud::Common::AbstractModel # @param InstanceIds: 实例ID,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 # @type InstanceIds: Array attr_accessor :InstanceIds def initialize(instanceids=nil) @InstanceIds = instanceids end def deserialize(params) @InstanceIds = params['InstanceIds'] end end # DescribeBackupTime返回参数结构体 class DescribeBackupTimeResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 返回的配置数量 # @type TotalCount: Integer # @param Items: 实例备份时间配置信息 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Items: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :Items, :RequestId def initialize(totalcount=nil, items=nil, requestid=nil) @TotalCount = totalcount @Items = items @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] unless params['Items'].nil? @Items = [] params['Items'].each do |i| dbbackuptimeconfig_tmp = DBBackupTimeConfig.new dbbackuptimeconfig_tmp.deserialize(i) @Items << dbbackuptimeconfig_tmp end end @RequestId = params['RequestId'] end end # DescribeDBInstanceSpecs请求参数结构体 class DescribeDBInstanceSpecsRequest < TencentCloud::Common::AbstractModel def initialize() end def deserialize(params) end end # DescribeDBInstanceSpecs返回参数结构体 class DescribeDBInstanceSpecsResponse < TencentCloud::Common::AbstractModel # @param Specs: 按机型分类的可售卖规格列表 # @type Specs: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Specs, :RequestId def initialize(specs=nil, requestid=nil) @Specs = specs @RequestId = requestid end def deserialize(params) unless params['Specs'].nil? @Specs = [] params['Specs'].each do |i| instancespec_tmp = InstanceSpec.new instancespec_tmp.deserialize(i) @Specs << instancespec_tmp end end @RequestId = params['RequestId'] end end # DescribeDBInstances请求参数结构体 class DescribeDBInstancesRequest < TencentCloud::Common::AbstractModel # @param InstanceIds: 按照一个或者多个实例 ID 查询。实例 ID 形如:tdsql-ow728lmc。每次请求的实例的上限为100。 # @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: 返回数量,默认为 20,最大值为 100。 # @type Limit: Integer # @param OriginSerialIds: 按 OriginSerialId 查询 # @type OriginSerialIds: Array # @param IsFilterExcluster: 标识是否使用ExclusterType字段, false不使用,true使用 # @type IsFilterExcluster: Boolean # @param ExclusterType: 实例所属独享集群类型。取值范围:1-非独享集群,2-独享集群, 0-全部 # @type ExclusterType: Integer # @param ExclusterIds: 按独享集群ID过滤实例,独享集群ID形如dbdc-4ih6uct9 # @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, :OriginSerialIds, :IsFilterExcluster, :ExclusterType, :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, originserialids=nil, isfilterexcluster=nil, exclustertype=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 @OriginSerialIds = originserialids @IsFilterExcluster = isfilterexcluster @ExclusterType = exclustertype @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'] @OriginSerialIds = params['OriginSerialIds'] @IsFilterExcluster = params['IsFilterExcluster'] @ExclusterType = params['ExclusterType'] @ExclusterIds = params['ExclusterIds'] @TagKeys = params['TagKeys'] @FilterInstanceType = params['FilterInstanceType'] @Status = params['Status'] @ExcludeStatus = params['ExcludeStatus'] end end # DescribeDBInstances返回参数结构体 class DescribeDBInstancesResponse < 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| dbinstance_tmp = DBInstance.new dbinstance_tmp.deserialize(i) @Instances << dbinstance_tmp end end @RequestId = params['RequestId'] end end # DescribeDBLogFiles请求参数结构体 class DescribeDBLogFilesRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:tdsql-ow728lmc。 # @type InstanceId: String # @param Type: 请求日志类型,取值只能为1、2、3或者4。1-binlog,2-冷备,3-errlog,4-slowlog。 # @type Type: Integer attr_accessor :InstanceId, :Type def initialize(instanceid=nil, type=nil) @InstanceId = instanceid @Type = type end def deserialize(params) @InstanceId = params['InstanceId'] @Type = params['Type'] end end # DescribeDBLogFiles返回参数结构体 class DescribeDBLogFilesResponse < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:tdsql-ow728lmc。 # @type InstanceId: String # @param Type: 请求日志类型,取值只能为1、2、3或者4。1-binlog,2-冷备,3-errlog,4-slowlog。 # @type Type: Integer # @param Total: 请求日志总数 # @type Total: Integer # @param Files: 包含uri、length、mtime(修改时间)等信息 # @type Files: Array # @param VpcPrefix: 如果是VPC网络的实例,做用本前缀加上URI为下载地址 # @type VpcPrefix: String # @param NormalPrefix: 如果是普通网络的实例,做用本前缀加上URI为下载地址 # @type NormalPrefix: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :InstanceId, :Type, :Total, :Files, :VpcPrefix, :NormalPrefix, :RequestId def initialize(instanceid=nil, type=nil, total=nil, files=nil, vpcprefix=nil, normalprefix=nil, requestid=nil) @InstanceId = instanceid @Type = type @Total = total @Files = files @VpcPrefix = vpcprefix @NormalPrefix = normalprefix @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'] @RequestId = params['RequestId'] end end # DescribeDBParameters请求参数结构体 class DescribeDBParametersRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:tdsql-ow728lmc。 # @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,形如:tdsql-ow728lmc。 # @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 # DescribeDBPerformanceDetails请求参数结构体 class DescribeDBPerformanceDetailsRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:tdsql-ow728lmc。 # @type InstanceId: String # @param StartTime: 开始日期,格式yyyy-mm-dd # @type StartTime: String # @param EndTime: 结束日期,格式yyyy-mm-dd # @type EndTime: String # @param MetricName: 拉取的指标名,支持的值为:long_query,select_total,update_total,insert_total,delete_total,mem_hit_rate,disk_iops,conn_active,is_master_switched,slave_delay # @type MetricName: String attr_accessor :InstanceId, :StartTime, :EndTime, :MetricName def initialize(instanceid=nil, starttime=nil, endtime=nil, metricname=nil) @InstanceId = instanceid @StartTime = starttime @EndTime = endtime @MetricName = metricname end def deserialize(params) @InstanceId = params['InstanceId'] @StartTime = params['StartTime'] @EndTime = params['EndTime'] @MetricName = params['MetricName'] end end # DescribeDBPerformanceDetails返回参数结构体 class DescribeDBPerformanceDetailsResponse < TencentCloud::Common::AbstractModel # @param Master: 主节点性能监控数据 # @type Master: :class:`Tencentcloud::Mariadb.v20170312.models.PerformanceMonitorSet` # @param Slave1: 备机1性能监控数据 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Slave1: :class:`Tencentcloud::Mariadb.v20170312.models.PerformanceMonitorSet` # @param Slave2: 备机2性能监控数据,如果实例是一主一从,则没有该字段 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Slave2: :class:`Tencentcloud::Mariadb.v20170312.models.PerformanceMonitorSet` # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Master, :Slave1, :Slave2, :RequestId def initialize(master=nil, slave1=nil, slave2=nil, requestid=nil) @Master = master @Slave1 = slave1 @Slave2 = slave2 @RequestId = requestid end def deserialize(params) unless params['Master'].nil? @Master = PerformanceMonitorSet.new @Master.deserialize(params['Master']) end unless params['Slave1'].nil? @Slave1 = PerformanceMonitorSet.new @Slave1.deserialize(params['Slave1']) end unless params['Slave2'].nil? @Slave2 = PerformanceMonitorSet.new @Slave2.deserialize(params['Slave2']) end @RequestId = params['RequestId'] end end # DescribeDBPerformance请求参数结构体 class DescribeDBPerformanceRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:tdsql-ow728lmc。 # @type InstanceId: String # @param StartTime: 开始日期,格式yyyy-mm-dd # @type StartTime: String # @param EndTime: 结束日期,格式yyyy-mm-dd # @type EndTime: String # @param MetricName: 拉取的指标名,支持的值为:long_query,select_total,update_total,insert_total,delete_total,mem_hit_rate,disk_iops,conn_active,is_master_switched,slave_delay # @type MetricName: String attr_accessor :InstanceId, :StartTime, :EndTime, :MetricName def initialize(instanceid=nil, starttime=nil, endtime=nil, metricname=nil) @InstanceId = instanceid @StartTime = starttime @EndTime = endtime @MetricName = metricname end def deserialize(params) @InstanceId = params['InstanceId'] @StartTime = params['StartTime'] @EndTime = params['EndTime'] @MetricName = params['MetricName'] end end # DescribeDBPerformance返回参数结构体 class DescribeDBPerformanceResponse < TencentCloud::Common::AbstractModel # @param LongQuery: 慢查询数 # @type LongQuery: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param SelectTotal: 查询操作数SELECT # @type SelectTotal: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param UpdateTotal: 更新操作数UPDATE # @type UpdateTotal: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param InsertTotal: 插入操作数INSERT # @type InsertTotal: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param DeleteTotal: 删除操作数DELETE # @type DeleteTotal: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param MemHitRate: 缓存命中率 # @type MemHitRate: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param DiskIops: 磁盘每秒IO次数 # @type DiskIops: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param ConnActive: 活跃连接数 # @type ConnActive: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param IsMasterSwitched: 是否发生主备切换,1为发生,0否 # @type IsMasterSwitched: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param SlaveDelay: 主备延迟 # @type SlaveDelay: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :LongQuery, :SelectTotal, :UpdateTotal, :InsertTotal, :DeleteTotal, :MemHitRate, :DiskIops, :ConnActive, :IsMasterSwitched, :SlaveDelay, :RequestId def initialize(longquery=nil, selecttotal=nil, updatetotal=nil, inserttotal=nil, deletetotal=nil, memhitrate=nil, diskiops=nil, connactive=nil, ismasterswitched=nil, slavedelay=nil, requestid=nil) @LongQuery = longquery @SelectTotal = selecttotal @UpdateTotal = updatetotal @InsertTotal = inserttotal @DeleteTotal = deletetotal @MemHitRate = memhitrate @DiskIops = diskiops @ConnActive = connactive @IsMasterSwitched = ismasterswitched @SlaveDelay = slavedelay @RequestId = requestid end def deserialize(params) unless params['LongQuery'].nil? @LongQuery = MonitorData.new @LongQuery.deserialize(params['LongQuery']) end unless params['SelectTotal'].nil? @SelectTotal = MonitorData.new @SelectTotal.deserialize(params['SelectTotal']) end unless params['UpdateTotal'].nil? @UpdateTotal = MonitorData.new @UpdateTotal.deserialize(params['UpdateTotal']) end unless params['InsertTotal'].nil? @InsertTotal = MonitorData.new @InsertTotal.deserialize(params['InsertTotal']) end unless params['DeleteTotal'].nil? @DeleteTotal = MonitorData.new @DeleteTotal.deserialize(params['DeleteTotal']) end unless params['MemHitRate'].nil? @MemHitRate = MonitorData.new @MemHitRate.deserialize(params['MemHitRate']) end unless params['DiskIops'].nil? @DiskIops = MonitorData.new @DiskIops.deserialize(params['DiskIops']) end unless params['ConnActive'].nil? @ConnActive = MonitorData.new @ConnActive.deserialize(params['ConnActive']) end unless params['IsMasterSwitched'].nil? @IsMasterSwitched = MonitorData.new @IsMasterSwitched.deserialize(params['IsMasterSwitched']) end unless params['SlaveDelay'].nil? @SlaveDelay = MonitorData.new @SlaveDelay.deserialize(params['SlaveDelay']) end @RequestId = params['RequestId'] end end # DescribeDBResourceUsageDetails请求参数结构体 class DescribeDBResourceUsageDetailsRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:tdsql-ow728lmc。 # @type InstanceId: String # @param StartTime: 开始日期,格式yyyy-mm-dd # @type StartTime: String # @param EndTime: 结束日期,格式yyyy-mm-dd # @type EndTime: String # @param MetricName: 拉取的指标名称,支持的值为:data_disk_available,binlog_disk_available,mem_available,cpu_usage_rate # @type MetricName: String attr_accessor :InstanceId, :StartTime, :EndTime, :MetricName def initialize(instanceid=nil, starttime=nil, endtime=nil, metricname=nil) @InstanceId = instanceid @StartTime = starttime @EndTime = endtime @MetricName = metricname end def deserialize(params) @InstanceId = params['InstanceId'] @StartTime = params['StartTime'] @EndTime = params['EndTime'] @MetricName = params['MetricName'] end end # DescribeDBResourceUsageDetails返回参数结构体 class DescribeDBResourceUsageDetailsResponse < TencentCloud::Common::AbstractModel # @param Master: 主节点资源使用情况监控数据 # @type Master: :class:`Tencentcloud::Mariadb.v20170312.models.ResourceUsageMonitorSet` # @param Slave1: 备机1资源使用情况监控数据 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Slave1: :class:`Tencentcloud::Mariadb.v20170312.models.ResourceUsageMonitorSet` # @param Slave2: 备机2资源使用情况监控数据 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Slave2: :class:`Tencentcloud::Mariadb.v20170312.models.ResourceUsageMonitorSet` # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Master, :Slave1, :Slave2, :RequestId def initialize(master=nil, slave1=nil, slave2=nil, requestid=nil) @Master = master @Slave1 = slave1 @Slave2 = slave2 @RequestId = requestid end def deserialize(params) unless params['Master'].nil? @Master = ResourceUsageMonitorSet.new @Master.deserialize(params['Master']) end unless params['Slave1'].nil? @Slave1 = ResourceUsageMonitorSet.new @Slave1.deserialize(params['Slave1']) end unless params['Slave2'].nil? @Slave2 = ResourceUsageMonitorSet.new @Slave2.deserialize(params['Slave2']) end @RequestId = params['RequestId'] end end # DescribeDBResourceUsage请求参数结构体 class DescribeDBResourceUsageRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:tdsql-ow728lmc。 # @type InstanceId: String # @param StartTime: 开始日期,格式yyyy-mm-dd # @type StartTime: String # @param EndTime: 结束日期,格式yyyy-mm-dd # @type EndTime: String # @param MetricName: 拉取的指标名称,支持的值为:data_disk_available,binlog_disk_available,mem_available,cpu_usage_rate # @type MetricName: String attr_accessor :InstanceId, :StartTime, :EndTime, :MetricName def initialize(instanceid=nil, starttime=nil, endtime=nil, metricname=nil) @InstanceId = instanceid @StartTime = starttime @EndTime = endtime @MetricName = metricname end def deserialize(params) @InstanceId = params['InstanceId'] @StartTime = params['StartTime'] @EndTime = params['EndTime'] @MetricName = params['MetricName'] end end # DescribeDBResourceUsage返回参数结构体 class DescribeDBResourceUsageResponse < TencentCloud::Common::AbstractModel # @param BinlogDiskAvailable: binlog日志磁盘可用空间,单位GB # @type BinlogDiskAvailable: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param DataDiskAvailable: 磁盘可用空间,单位GB # @type DataDiskAvailable: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param CpuUsageRate: CPU利用率 # @type CpuUsageRate: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param MemAvailable: 内存可用空间,单位GB # @type MemAvailable: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :BinlogDiskAvailable, :DataDiskAvailable, :CpuUsageRate, :MemAvailable, :RequestId def initialize(binlogdiskavailable=nil, datadiskavailable=nil, cpuusagerate=nil, memavailable=nil, requestid=nil) @BinlogDiskAvailable = binlogdiskavailable @DataDiskAvailable = datadiskavailable @CpuUsageRate = cpuusagerate @MemAvailable = memavailable @RequestId = requestid end def deserialize(params) unless params['BinlogDiskAvailable'].nil? @BinlogDiskAvailable = MonitorData.new @BinlogDiskAvailable.deserialize(params['BinlogDiskAvailable']) end unless params['DataDiskAvailable'].nil? @DataDiskAvailable = MonitorData.new @DataDiskAvailable.deserialize(params['DataDiskAvailable']) end unless params['CpuUsageRate'].nil? @CpuUsageRate = MonitorData.new @CpuUsageRate.deserialize(params['CpuUsageRate']) end unless params['MemAvailable'].nil? @MemAvailable = MonitorData.new @MemAvailable.deserialize(params['MemAvailable']) end @RequestId = params['RequestId'] end end # DescribeDBSecurityGroups请求参数结构体 class DescribeDBSecurityGroupsRequest < TencentCloud::Common::AbstractModel # @param Product: 数据库引擎名称,本接口取值:mariadb。 # @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: Integer # @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,形如:tdsql-ow728lmc。 # @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 EndTime: 查询的结束时间,形如2016-08-22 14:55:20 # @type EndTime: String # @param Db: 要查询的具体数据库名称 # @type Db: String # @param OrderBy: 排序指标,取值为query_time_sum或者query_count # @type OrderBy: String # @param OrderByType: 排序类型,desc或者asc # @type OrderByType: String # @param Slave: 是否查询从机的慢查询,0-主机; 1-从机 # @type Slave: Integer attr_accessor :InstanceId, :Offset, :Limit, :StartTime, :EndTime, :Db, :OrderBy, :OrderByType, :Slave def initialize(instanceid=nil, offset=nil, limit=nil, starttime=nil, endtime=nil, db=nil, orderby=nil, orderbytype=nil, slave=nil) @InstanceId = instanceid @Offset = offset @Limit = limit @StartTime = starttime @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'] @EndTime = params['EndTime'] @Db = params['Db'] @OrderBy = params['OrderBy'] @OrderByType = params['OrderByType'] @Slave = params['Slave'] end end # DescribeDBSlowLogs返回参数结构体 class DescribeDBSlowLogsResponse < TencentCloud::Common::AbstractModel # @param Data: 慢查询日志数据 # @type Data: Array # @param LockTimeSum: 所有语句锁时间总和 # @type LockTimeSum: Float # @param QueryCount: 所有语句查询总次数 # @type QueryCount: Integer # @param Total: 总记录数 # @type Total: Integer # @param QueryTimeSum: 所有语句查询时间总和 # @type QueryTimeSum: Float # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Data, :LockTimeSum, :QueryCount, :Total, :QueryTimeSum, :RequestId def initialize(data=nil, locktimesum=nil, querycount=nil, total=nil, querytimesum=nil, requestid=nil) @Data = data @LockTimeSum = locktimesum @QueryCount = querycount @Total = total @QueryTimeSum = querytimesum @RequestId = requestid end def deserialize(params) unless params['Data'].nil? @Data = [] params['Data'].each do |i| slowlogdata_tmp = SlowLogData.new slowlogdata_tmp.deserialize(i) @Data << slowlogdata_tmp end end @LockTimeSum = params['LockTimeSum'] @QueryCount = params['QueryCount'] @Total = params['Total'] @QueryTimeSum = params['QueryTimeSum'] @RequestId = params['RequestId'] end end # DescribeDatabases请求参数结构体 class DescribeDatabasesRequest < 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 # DescribeDatabases返回参数结构体 class DescribeDatabasesResponse < TencentCloud::Common::AbstractModel # @param Databases: 该实例上的数据库列表。 # @type Databases: Array # @param InstanceId: 透传入参。 # @type InstanceId: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Databases, :InstanceId, :RequestId def initialize(databases=nil, instanceid=nil, requestid=nil) @Databases = databases @InstanceId = instanceid @RequestId = requestid end def deserialize(params) unless params['Databases'].nil? @Databases = [] params['Databases'].each do |i| database_tmp = Database.new database_tmp.deserialize(i) @Databases << database_tmp end end @InstanceId = params['InstanceId'] @RequestId = params['RequestId'] end end # DescribeDcnDetail请求参数结构体 class DescribeDcnDetailRequest < 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 # DescribeDcnDetail返回参数结构体 class DescribeDcnDetailResponse < TencentCloud::Common::AbstractModel # @param DcnDetails: DCN同步详情 # @type DcnDetails: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :DcnDetails, :RequestId def initialize(dcndetails=nil, requestid=nil) @DcnDetails = dcndetails @RequestId = requestid end def deserialize(params) unless params['DcnDetails'].nil? @DcnDetails = [] params['DcnDetails'].each do |i| dcndetailitem_tmp = DcnDetailItem.new dcndetailitem_tmp.deserialize(i) @DcnDetails << dcndetailitem_tmp end end @RequestId = params['RequestId'] end end # DescribeFlow请求参数结构体 class DescribeFlowRequest < TencentCloud::Common::AbstractModel # @param FlowId: 异步请求接口返回的任务流程号。 # @type FlowId: Integer attr_accessor :FlowId def initialize(flowid=nil) @FlowId = flowid end def deserialize(params) @FlowId = params['FlowId'] end end # DescribeFlow返回参数结构体 class DescribeFlowResponse < TencentCloud::Common::AbstractModel # @param Status: 流程状态,0:成功,1:失败,2:运行中 # @type Status: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Status, :RequestId def initialize(status=nil, requestid=nil) @Status = status @RequestId = requestid end def deserialize(params) @Status = params['Status'] @RequestId = params['RequestId'] end end # DescribeInstanceNodeInfo请求参数结构体 class DescribeInstanceNodeInfoRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例ID,形如tdsql-6ltok4u9 # @type InstanceId: String # @param Limit: 一次最多返回多少条数据。默认为无穷大,返回符合要求的所有数据 # @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 # DescribeInstanceNodeInfo返回参数结构体 class DescribeInstanceNodeInfoResponse < 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| nodeinfo_tmp = NodeInfo.new nodeinfo_tmp.deserialize(i) @NodesInfo << nodeinfo_tmp end end @RequestId = params['RequestId'] end end # DescribeLogFileRetentionPeriod请求参数结构体 class DescribeLogFileRetentionPeriodRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:tdsql-ow728lmc。 # @type InstanceId: String attr_accessor :InstanceId def initialize(instanceid=nil) @InstanceId = instanceid end def deserialize(params) @InstanceId = params['InstanceId'] end end # DescribeLogFileRetentionPeriod返回参数结构体 class DescribeLogFileRetentionPeriodResponse < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:tdsql-ow728lmc。 # @type InstanceId: String # @param Days: 日志备份天数 # @type Days: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :InstanceId, :Days, :RequestId def initialize(instanceid=nil, days=nil, requestid=nil) @InstanceId = instanceid @Days = days @RequestId = requestid end def deserialize(params) @InstanceId = params['InstanceId'] @Days = params['Days'] @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: Array # @param Deals: 订单信息列表。 # @type Deals: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 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| deal_tmp = Deal.new deal_tmp.deserialize(i) @Deals << deal_tmp end end @RequestId = params['RequestId'] end end # DescribePrice请求参数结构体 class DescribePriceRequest < TencentCloud::Common::AbstractModel # @param Zone: 欲新购实例的可用区ID。 # @type Zone: String # @param NodeCount: 实例节点个数,可以通过 DescribeDBInstanceSpecs # 查询实例规格获得。 # @type NodeCount: Integer # @param Memory: 内存大小,单位:GB,可以通过 DescribeDBInstanceSpecs # 查询实例规格获得。 # @type Memory: Integer # @param Storage: 存储空间大小,单位:GB,可以通过 DescribeDBInstanceSpecs # 查询实例规格获得不同内存大小对应的磁盘规格下限和上限。 # @type Storage: Integer # @param Period: 欲购买的时长,单位:月。 # @type Period: Integer # @param Count: 欲购买的数量,默认查询购买1个实例的价格。 # @type Count: Integer # @param Paymode: 付费类型。postpaid:按量付费 prepaid:预付费 # @type Paymode: String attr_accessor :Zone, :NodeCount, :Memory, :Storage, :Period, :Count, :Paymode def initialize(zone=nil, nodecount=nil, memory=nil, storage=nil, period=nil, count=nil, paymode=nil) @Zone = zone @NodeCount = nodecount @Memory = memory @Storage = storage @Period = period @Count = count @Paymode = paymode end def deserialize(params) @Zone = params['Zone'] @NodeCount = params['NodeCount'] @Memory = params['Memory'] @Storage = params['Storage'] @Period = params['Period'] @Count = params['Count'] @Paymode = params['Paymode'] end end # DescribePrice返回参数结构体 class DescribePriceResponse < TencentCloud::Common::AbstractModel # @param OriginalPrice: 原价,单位:分 # @type OriginalPrice: Integer # @param Price: 实际价格,单位:分。受折扣等影响,可能和原价不同。 # @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 # DescribeProjectSecurityGroups请求参数结构体 class DescribeProjectSecurityGroupsRequest < TencentCloud::Common::AbstractModel # @param Product: 数据库引擎名称,本接口取值:mariadb。 # @type Product: String # @param ProjectId: 项目ID。 # @type ProjectId: Integer attr_accessor :Product, :ProjectId def initialize(product=nil, projectid=nil) @Product = product @ProjectId = projectid end def deserialize(params) @Product = params['Product'] @ProjectId = params['ProjectId'] end end # DescribeProjectSecurityGroups返回参数结构体 class DescribeProjectSecurityGroupsResponse < TencentCloud::Common::AbstractModel # @param Groups: 安全组详情。 # @type Groups: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Groups, :RequestId def initialize(groups=nil, requestid=nil) @Groups = groups @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 @RequestId = params['RequestId'] end end # DescribeRenewalPrice请求参数结构体 class DescribeRenewalPriceRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 待续费的实例ID。形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 # @type InstanceId: String # @param Period: 续费时长,单位:月。不传则默认为1个月。 # @type Period: Integer attr_accessor :InstanceId, :Period def initialize(instanceid=nil, period=nil) @InstanceId = instanceid @Period = period end def deserialize(params) @InstanceId = params['InstanceId'] @Period = params['Period'] end end # DescribeRenewalPrice返回参数结构体 class DescribeRenewalPriceResponse < TencentCloud::Common::AbstractModel # @param OriginalPrice: 原价,单位:分 # @type OriginalPrice: Integer # @param Price: 实际价格,单位:分。受折扣等影响,可能和原价不同。 # @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 # DescribeSaleInfo请求参数结构体 class DescribeSaleInfoRequest < TencentCloud::Common::AbstractModel def initialize() end def deserialize(params) end end # DescribeSaleInfo返回参数结构体 class DescribeSaleInfoResponse < 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 # DescribeSqlLogs请求参数结构体 class DescribeSqlLogsRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 # @type InstanceId: String # @param Offset: SQL日志偏移。 # @type Offset: Integer # @param Limit: 拉取数量(0-10000,为0时拉取总数信息)。 # @type Limit: Integer attr_accessor :InstanceId, :Offset, :Limit def initialize(instanceid=nil, offset=nil, limit=nil) @InstanceId = instanceid @Offset = offset @Limit = limit end def deserialize(params) @InstanceId = params['InstanceId'] @Offset = params['Offset'] @Limit = params['Limit'] end end # DescribeSqlLogs返回参数结构体 class DescribeSqlLogsResponse < TencentCloud::Common::AbstractModel # @param TotalCount: 当前消息队列中的sql日志条目数。 # @type TotalCount: Integer # @param StartOffset: 消息队列中的sql日志起始偏移。 # @type StartOffset: Integer # @param EndOffset: 消息队列中的sql日志结束偏移。 # @type EndOffset: Integer # @param Offset: 返回的第一条sql日志的偏移。 # @type Offset: Integer # @param Count: 返回的sql日志数量。 # @type Count: Integer # @param SqlItems: Sql日志列表。 # @type SqlItems: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TotalCount, :StartOffset, :EndOffset, :Offset, :Count, :SqlItems, :RequestId def initialize(totalcount=nil, startoffset=nil, endoffset=nil, offset=nil, count=nil, sqlitems=nil, requestid=nil) @TotalCount = totalcount @StartOffset = startoffset @EndOffset = endoffset @Offset = offset @Count = count @SqlItems = sqlitems @RequestId = requestid end def deserialize(params) @TotalCount = params['TotalCount'] @StartOffset = params['StartOffset'] @EndOffset = params['EndOffset'] @Offset = params['Offset'] @Count = params['Count'] unless params['SqlItems'].nil? @SqlItems = [] params['SqlItems'].each do |i| sqllogitem_tmp = SqlLogItem.new sqllogitem_tmp.deserialize(i) @SqlItems << sqllogitem_tmp end end @RequestId = params['RequestId'] end end # DescribeUpgradePrice请求参数结构体 class DescribeUpgradePriceRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 待升级的实例ID。形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 # @type InstanceId: String # @param Memory: 内存大小,单位:GB,可以通过 DescribeDBInstanceSpecs # 查询实例规格获得。 # @type Memory: Integer # @param Storage: 存储空间大小,单位:GB,可以通过 DescribeDBInstanceSpecs # 查询实例规格获得不同内存大小对应的磁盘规格下限和上限。 # @type Storage: Integer attr_accessor :InstanceId, :Memory, :Storage def initialize(instanceid=nil, memory=nil, storage=nil) @InstanceId = instanceid @Memory = memory @Storage = storage end def deserialize(params) @InstanceId = params['InstanceId'] @Memory = params['Memory'] @Storage = params['Storage'] end end # DescribeUpgradePrice返回参数结构体 class DescribeUpgradePriceResponse < TencentCloud::Common::AbstractModel # @param OriginalPrice: 原价,单位:分 # @type OriginalPrice: Integer # @param Price: 实际价格,单位:分。受折扣等影响,可能和原价不同。 # @type Price: Integer # @param Formula: 变配明细计算公式 # @type Formula: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :OriginalPrice, :Price, :Formula, :RequestId def initialize(originalprice=nil, price=nil, formula=nil, requestid=nil) @OriginalPrice = originalprice @Price = price @Formula = formula @RequestId = requestid end def deserialize(params) @OriginalPrice = params['OriginalPrice'] @Price = params['Price'] @Formula = params['Formula'] @RequestId = params['RequestId'] end end # DestroyHourDBInstance请求参数结构体 class DestroyHourDBInstanceRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,格式如:tdsql-avw0207d,与云数据库控制台页面中显示的实例 ID 相同。 # @type InstanceId: String attr_accessor :InstanceId def initialize(instanceid=nil) @InstanceId = instanceid end def deserialize(params) @InstanceId = params['InstanceId'] end end # DestroyHourDBInstance返回参数结构体 class DestroyHourDBInstanceResponse < TencentCloud::Common::AbstractModel # @param FlowId: 异步任务的请求 ID,可使用此 ID [查询异步任务的执行结果](https://cloud.tencent.com/document/product/237/16177)。 # @type FlowId: Integer # @param InstanceId: 实例 ID,与入参InstanceId一致。 # @type InstanceId: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FlowId, :InstanceId, :RequestId def initialize(flowid=nil, instanceid=nil, requestid=nil) @FlowId = flowid @InstanceId = instanceid @RequestId = requestid end def deserialize(params) @FlowId = params['FlowId'] @InstanceId = params['InstanceId'] @RequestId = params['RequestId'] end end # DisassociateSecurityGroups请求参数结构体 class DisassociateSecurityGroupsRequest < TencentCloud::Common::AbstractModel # @param Product: 数据库引擎名称,本接口取值:mariadb。 # @type Product: String # @param SecurityGroupId: 安全组Id。 # @type SecurityGroupId: String # @param InstanceIds: 实例ID列表,一个或者多个实例Id组成的数组。 # @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 # DisassociateSecurityGroups返回参数结构体 class DisassociateSecurityGroupsResponse < 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 # FlushBinlog请求参数结构体 class FlushBinlogRequest < 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 # FlushBinlog返回参数结构体 class FlushBinlogResponse < 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 # 函数权限信息 class FunctionPrivilege < TencentCloud::Common::AbstractModel # @param Database: 数据库名 # @type Database: String # @param FunctionName: 数据库函数名 # @type FunctionName: String # @param Privileges: 权限信息 # @type Privileges: Array attr_accessor :Database, :FunctionName, :Privileges def initialize(database=nil, functionname=nil, privileges=nil) @Database = database @FunctionName = functionname @Privileges = privileges end def deserialize(params) @Database = params['Database'] @FunctionName = params['FunctionName'] @Privileges = params['Privileges'] end end # GrantAccountPrivileges请求参数结构体 class GrantAccountPrivilegesRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 # @type InstanceId: String # @param UserName: 登录用户名。 # @type UserName: String # @param Host: 用户允许的访问 host,用户名+host唯一确定一个账号。 # @type Host: String # @param DbName: 数据库名。如果为 \*,表示设置全局权限(即 \*.\*),此时忽略 Type 和 Object 参数。当DbName不为\*时,需要传入参 Type。 # @type DbName: String # @param Privileges: 全局权限: SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,INDEX,ALTER,CREATE TEMPORARY TABLES,LOCK TABLES,EXECUTE,CREATE VIEW,SHOW VIEW,CREATE ROUTINE,ALTER ROUTINE,EVENT,TRIGGER,SHOW DATABASES # 库权限: SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,INDEX,ALTER,CREATE TEMPORARY TABLES,LOCK TABLES,EXECUTE,CREATE VIEW,SHOW VIEW,CREATE ROUTINE,ALTER ROUTINE,EVENT,TRIGGER # 表/视图权限: SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,INDEX,ALTER,CREATE VIEW,SHOW VIEW,TRIGGER # 存储过程/函数权限: ALTER ROUTINE,EXECUTE # 字段权限: INSERT,REFERENCES,SELECT,UPDATE # @type Privileges: Array # @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, :Privileges, :Type, :Object, :ColName def initialize(instanceid=nil, username=nil, host=nil, dbname=nil, privileges=nil, type=nil, object=nil, colname=nil) @InstanceId = instanceid @UserName = username @Host = host @DbName = dbname @Privileges = privileges @Type = type @Object = object @ColName = colname end def deserialize(params) @InstanceId = params['InstanceId'] @UserName = params['UserName'] @Host = params['Host'] @DbName = params['DbName'] @Privileges = params['Privileges'] @Type = params['Type'] @Object = params['Object'] @ColName = params['ColName'] end end # GrantAccountPrivileges返回参数结构体 class GrantAccountPrivilegesResponse < 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 # InitDBInstances请求参数结构体 class InitDBInstancesRequest < TencentCloud::Common::AbstractModel # @param InstanceIds: 待初始化的实例ID列表,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 # @type InstanceIds: Array # @param Params: 参数列表。本接口的可选值为:character_set_server(字符集,必传),lower_case_table_names(表名大小写敏感,必传,0 - 敏感;1-不敏感),innodb_page_size(innodb数据页,默认16K),sync_mode(同步模式:0 - 异步; 1 - 强同步;2 - 强同步可退化。默认为强同步)。 # @type Params: Array attr_accessor :InstanceIds, :Params def initialize(instanceids=nil, params=nil) @InstanceIds = instanceids @Params = params end def deserialize(params) @InstanceIds = params['InstanceIds'] unless params['Params'].nil? @Params = [] params['Params'].each do |i| dbparamvalue_tmp = DBParamValue.new dbparamvalue_tmp.deserialize(i) @Params << dbparamvalue_tmp end end end end # InitDBInstances返回参数结构体 class InitDBInstancesResponse < TencentCloud::Common::AbstractModel # @param FlowId: 异步任务ID,可通过 DescribeFlow 查询任务状态。 # @type FlowId: Integer # @param InstanceIds: 透传入参。 # @type InstanceIds: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :FlowId, :InstanceIds, :RequestId def initialize(flowid=nil, instanceids=nil, requestid=nil) @FlowId = flowid @InstanceIds = instanceids @RequestId = requestid end def deserialize(params) @FlowId = params['FlowId'] @InstanceIds = params['InstanceIds'] @RequestId = params['RequestId'] end end # 按机型归类的实例可售卖规格信息 class InstanceSpec < TencentCloud::Common::AbstractModel # @param Machine: 设备型号 # @type Machine: String # @param SpecInfos: 该机型对应的可售卖规格列表 # @type SpecInfos: Array attr_accessor :Machine, :SpecInfos def initialize(machine=nil, specinfos=nil) @Machine = machine @SpecInfos = specinfos end def deserialize(params) @Machine = params['Machine'] unless params['SpecInfos'].nil? @SpecInfos = [] params['SpecInfos'].each do |i| specconfiginfo_tmp = SpecConfigInfo.new specconfiginfo_tmp.deserialize(i) @SpecInfos << specconfiginfo_tmp end end end end # KillSession请求参数结构体 class KillSessionRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例ID # @type InstanceId: String # @param SessionId: 会话ID列表 # @type SessionId: Array attr_accessor :InstanceId, :SessionId def initialize(instanceid=nil, sessionid=nil) @InstanceId = instanceid @SessionId = sessionid end def deserialize(params) @InstanceId = params['InstanceId'] @SessionId = params['SessionId'] end end # KillSession返回参数结构体 class KillSessionResponse < TencentCloud::Common::AbstractModel # @param TaskId: 任务ID # @type TaskId: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :TaskId, :RequestId def initialize(taskid=nil, requestid=nil) @TaskId = taskid @RequestId = requestid end def deserialize(params) @TaskId = params['TaskId'] @RequestId = params['RequestId'] end end # 拉取的日志信息 class LogFileInfo < TencentCloud::Common::AbstractModel # @param Mtime: Log最后修改时间 # @type Mtime: Integer # @param Length: 文件长度 # @type Length: Integer # @param Uri: 下载Log时用到的统一资源标识符 # @type Uri: String # @param FileName: 文件名 # @type FileName: String attr_accessor :Mtime, :Length, :Uri, :FileName def initialize(mtime=nil, length=nil, uri=nil, filename=nil) @Mtime = mtime @Length = length @Uri = uri @FileName = filename end def deserialize(params) @Mtime = params['Mtime'] @Length = params['Length'] @Uri = params['Uri'] @FileName = params['FileName'] end end # ModifyAccountDescription请求参数结构体 class ModifyAccountDescriptionRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 # @type InstanceId: String # @param UserName: 登录用户名。 # @type UserName: String # @param Host: 用户允许的访问 host,用户名+host唯一确定一个账号。 # @type Host: String # @param Description: 新的账号备注,长度 0~256。 # @type Description: String attr_accessor :InstanceId, :UserName, :Host, :Description def initialize(instanceid=nil, username=nil, host=nil, description=nil) @InstanceId = instanceid @UserName = username @Host = host @Description = description end def deserialize(params) @InstanceId = params['InstanceId'] @UserName = params['UserName'] @Host = params['Host'] @Description = params['Description'] end end # ModifyAccountDescription返回参数结构体 class ModifyAccountDescriptionResponse < 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 # ModifyAccountPrivileges请求参数结构体 class ModifyAccountPrivilegesRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,格式如:tdsql-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 # @type InstanceId: String # @param Accounts: 数据库的账号,包括用户名和域名。 # @type Accounts: Array # @param GlobalPrivileges: 全局权限。其中,GlobalPrivileges 中权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "PROCESS", "DROP","REFERENCES","INDEX","ALTER","SHOW DATABASES","CREATE TEMPORARY TABLES","LOCK TABLES","EXECUTE","CREATE VIEW","SHOW VIEW","CREATE ROUTINE","ALTER ROUTINE","EVENT","TRIGGER"。 # 注意,不传该参数表示保留现有权限,如需清除,该字段传空数组。 # @type GlobalPrivileges: Array # @param DatabasePrivileges: 数据库的权限。Privileges 权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","CREATE TEMPORARY TABLES","LOCK TABLES","EXECUTE","CREATE VIEW","SHOW VIEW","CREATE ROUTINE","ALTER ROUTINE","EVENT","TRIGGER"。 # 注意,不传该参数表示保留现有权限,如需清除,请在复杂类型Privileges字段传空数组。 # @type DatabasePrivileges: Array # @param TablePrivileges: 数据库中表的权限。Privileges 权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","CREATE VIEW","SHOW VIEW", "TRIGGER"。 # 注意,不传该参数表示保留现有权限,如需清除,请在复杂类型Privileges字段传空数组。 # @type TablePrivileges: Array # @param ColumnPrivileges: 数据库表中列的权限。Privileges 权限的可选值为:"SELECT","INSERT","UPDATE","REFERENCES"。 # 注意,不传该参数表示保留现有权限,如需清除,请在复杂类型Privileges字段传空数组。 # @type ColumnPrivileges: Array # @param ViewPrivileges: 数据库视图的权限。Privileges 权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","CREATE VIEW","SHOW VIEW", "TRIGGER"。 # 注意,不传该参数表示保留现有权限,如需清除,请在复杂类型Privileges字段传空数组。 # @type ViewPrivileges: Array # @param FunctionPrivileges: 数据库函数的权限。Privileges 权限的可选值为:"ALTER ROUTINE","EXECUTE"。 # 注意,不传该参数表示保留现有权限,如需清除,请在复杂类型Privileges字段传空数组。 # @type FunctionPrivileges: Array # @param ProcedurePrivileges: 数据库存储过程的权限。Privileges 权限的可选值为:"ALTER ROUTINE","EXECUTE"。 # 注意,不传该参数表示保留现有权限,如需清除,请在复杂类型Privileges字段传空数组。 # @type ProcedurePrivileges: Array attr_accessor :InstanceId, :Accounts, :GlobalPrivileges, :DatabasePrivileges, :TablePrivileges, :ColumnPrivileges, :ViewPrivileges, :FunctionPrivileges, :ProcedurePrivileges def initialize(instanceid=nil, accounts=nil, globalprivileges=nil, databaseprivileges=nil, tableprivileges=nil, columnprivileges=nil, viewprivileges=nil, functionprivileges=nil, procedureprivileges=nil) @InstanceId = instanceid @Accounts = accounts @GlobalPrivileges = globalprivileges @DatabasePrivileges = databaseprivileges @TablePrivileges = tableprivileges @ColumnPrivileges = columnprivileges @ViewPrivileges = viewprivileges @FunctionPrivileges = functionprivileges @ProcedurePrivileges = procedureprivileges end def deserialize(params) @InstanceId = params['InstanceId'] unless params['Accounts'].nil? @Accounts = [] params['Accounts'].each do |i| account_tmp = Account.new account_tmp.deserialize(i) @Accounts << account_tmp end end @GlobalPrivileges = params['GlobalPrivileges'] unless params['DatabasePrivileges'].nil? @DatabasePrivileges = [] params['DatabasePrivileges'].each do |i| databaseprivilege_tmp = DatabasePrivilege.new databaseprivilege_tmp.deserialize(i) @DatabasePrivileges << databaseprivilege_tmp end end unless params['TablePrivileges'].nil? @TablePrivileges = [] params['TablePrivileges'].each do |i| tableprivilege_tmp = TablePrivilege.new tableprivilege_tmp.deserialize(i) @TablePrivileges << tableprivilege_tmp end end unless params['ColumnPrivileges'].nil? @ColumnPrivileges = [] params['ColumnPrivileges'].each do |i| columnprivilege_tmp = ColumnPrivilege.new columnprivilege_tmp.deserialize(i) @ColumnPrivileges << columnprivilege_tmp end end unless params['ViewPrivileges'].nil? @ViewPrivileges = [] params['ViewPrivileges'].each do |i| viewprivileges_tmp = ViewPrivileges.new viewprivileges_tmp.deserialize(i) @ViewPrivileges << viewprivileges_tmp end end unless params['FunctionPrivileges'].nil? @FunctionPrivileges = [] params['FunctionPrivileges'].each do |i| functionprivilege_tmp = FunctionPrivilege.new functionprivilege_tmp.deserialize(i) @FunctionPrivileges << functionprivilege_tmp end end unless params['ProcedurePrivileges'].nil? @ProcedurePrivileges = [] params['ProcedurePrivileges'].each do |i| procedureprivilege_tmp = ProcedurePrivilege.new procedureprivilege_tmp.deserialize(i) @ProcedurePrivileges << procedureprivilege_tmp end end end end # ModifyAccountPrivileges返回参数结构体 class ModifyAccountPrivilegesResponse < TencentCloud::Common::AbstractModel # @param FlowId: 异步任务的请求 ID,可使用此 ID [查询异步任务的执行结果](https://cloud.tencent.com/document/product/237/16177)。 # @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 # ModifyBackupTime请求参数结构体 class ModifyBackupTimeRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例ID,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 # @type InstanceId: String # @param StartBackupTime: 每天备份执行的区间的开始时间,格式 mm:ss,形如 22:00 # @type StartBackupTime: String # @param EndBackupTime: 每天备份执行的区间的结束时间,格式 mm:ss,形如 23:59 # @type EndBackupTime: String attr_accessor :InstanceId, :StartBackupTime, :EndBackupTime def initialize(instanceid=nil, startbackuptime=nil, endbackuptime=nil) @InstanceId = instanceid @StartBackupTime = startbackuptime @EndBackupTime = endbackuptime end def deserialize(params) @InstanceId = params['InstanceId'] @StartBackupTime = params['StartBackupTime'] @EndBackupTime = params['EndBackupTime'] end end # ModifyBackupTime返回参数结构体 class ModifyBackupTimeResponse < TencentCloud::Common::AbstractModel # @param Status: 设置的状态,0 表示成功 # @type Status: Integer # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :Status, :RequestId def initialize(status=nil, requestid=nil) @Status = status @RequestId = requestid end def deserialize(params) @Status = params['Status'] @RequestId = params['RequestId'] end end # ModifyDBInstanceName请求参数结构体 class ModifyDBInstanceNameRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 待修改的实例 ID。形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 # @type InstanceId: String # @param InstanceName: 新的实例名称。允许的字符为字母、数字、下划线、连字符和中文。 # @type InstanceName: String attr_accessor :InstanceId, :InstanceName def initialize(instanceid=nil, instancename=nil) @InstanceId = instanceid @InstanceName = instancename end def deserialize(params) @InstanceId = params['InstanceId'] @InstanceName = params['InstanceName'] end end # ModifyDBInstanceName返回参数结构体 class ModifyDBInstanceNameResponse < TencentCloud::Common::AbstractModel # @param InstanceId: 实例ID # @type InstanceId: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :InstanceId, :RequestId def initialize(instanceid=nil, requestid=nil) @InstanceId = instanceid @RequestId = requestid end def deserialize(params) @InstanceId = params['InstanceId'] @RequestId = params['RequestId'] end end # ModifyDBInstanceSecurityGroups请求参数结构体 class ModifyDBInstanceSecurityGroupsRequest < TencentCloud::Common::AbstractModel # @param Product: 数据库引擎名称,本接口取值:mariadb。 # @type Product: String # @param InstanceId: 实例ID。 # @type InstanceId: String # @param SecurityGroupIds: 要修改的安全组 ID 列表,一个或者多个安全组 ID 组成的数组 # @type SecurityGroupIds: Array attr_accessor :Product, :InstanceId, :SecurityGroupIds def initialize(product=nil, instanceid=nil, securitygroupids=nil) @Product = product @InstanceId = instanceid @SecurityGroupIds = securitygroupids end def deserialize(params) @Product = params['Product'] @InstanceId = params['InstanceId'] @SecurityGroupIds = params['SecurityGroupIds'] end end # ModifyDBInstanceSecurityGroups返回参数结构体 class ModifyDBInstanceSecurityGroupsResponse < 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 # ModifyDBInstancesProject请求参数结构体 class ModifyDBInstancesProjectRequest < TencentCloud::Common::AbstractModel # @param InstanceIds: 待修改的实例ID列表。实例 ID 形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 # @type InstanceIds: Array # @param ProjectId: 要分配的项目 ID,可以通过 DescribeProjects 查询项目列表接口获取。 # @type ProjectId: Integer attr_accessor :InstanceIds, :ProjectId def initialize(instanceids=nil, projectid=nil) @InstanceIds = instanceids @ProjectId = projectid end def deserialize(params) @InstanceIds = params['InstanceIds'] @ProjectId = params['ProjectId'] end end # ModifyDBInstancesProject返回参数结构体 class ModifyDBInstancesProjectResponse < 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 # ModifyDBParameters请求参数结构体 class ModifyDBParametersRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:tdsql-ow728lmc。 # @type InstanceId: String # @param Params: 参数列表,每一个元素是Param和Value的组合 # @type Params: Array attr_accessor :InstanceId, :Params def initialize(instanceid=nil, params=nil) @InstanceId = instanceid @Params = params end def deserialize(params) @InstanceId = params['InstanceId'] unless params['Params'].nil? @Params = [] params['Params'].each do |i| dbparamvalue_tmp = DBParamValue.new dbparamvalue_tmp.deserialize(i) @Params << dbparamvalue_tmp end end end end # ModifyDBParameters返回参数结构体 class ModifyDBParametersResponse < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:tdsql-ow728lmc。 # @type InstanceId: String # @param Result: 参数修改结果 # @type Result: Array # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :InstanceId, :Result, :RequestId def initialize(instanceid=nil, result=nil, requestid=nil) @InstanceId = instanceid @Result = result @RequestId = requestid end def deserialize(params) @InstanceId = params['InstanceId'] unless params['Result'].nil? @Result = [] params['Result'].each do |i| parammodifyresult_tmp = ParamModifyResult.new parammodifyresult_tmp.deserialize(i) @Result << parammodifyresult_tmp end end @RequestId = params['RequestId'] end end # ModifyLogFileRetentionPeriod请求参数结构体 class ModifyLogFileRetentionPeriodRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:tdsql-ow728lmc。 # @type InstanceId: String # @param Days: 保存的天数,不能超过30 # @type Days: Integer attr_accessor :InstanceId, :Days def initialize(instanceid=nil, days=nil) @InstanceId = instanceid @Days = days end def deserialize(params) @InstanceId = params['InstanceId'] @Days = params['Days'] end end # ModifyLogFileRetentionPeriod返回参数结构体 class ModifyLogFileRetentionPeriodResponse < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,形如:tdsql-ow728lmc。 # @type InstanceId: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。 # @type RequestId: String attr_accessor :InstanceId, :RequestId def initialize(instanceid=nil, requestid=nil) @InstanceId = instanceid @RequestId = requestid end def deserialize(params) @InstanceId = params['InstanceId'] @RequestId = params['RequestId'] end end # ModifyRealServerAccessStrategy请求参数结构体 class ModifyRealServerAccessStrategyRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 实例 ID,格式如:tdsql-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。 # @type InstanceId: String # @param RsAccessStrategy: RS就近模式, 0-无策略, 1-可用区就近访问。 # @type RsAccessStrategy: Integer attr_accessor :InstanceId, :RsAccessStrategy def initialize(instanceid=nil, rsaccessstrategy=nil) @InstanceId = instanceid @RsAccessStrategy = rsaccessstrategy end def deserialize(params) @InstanceId = params['InstanceId'] @RsAccessStrategy = params['RsAccessStrategy'] end end # ModifyRealServerAccessStrategy返回参数结构体 class ModifyRealServerAccessStrategyResponse < 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 # 监控数据 class MonitorData < TencentCloud::Common::AbstractModel # @param StartTime: 起始时间,形如 2018-03-24 23:59:59 # @type StartTime: String # @param EndTime: 结束时间,形如 2018-03-24 23:59:59 # @type EndTime: String # @param Data: 监控数据 # @type Data: Array attr_accessor :StartTime, :EndTime, :Data def initialize(starttime=nil, endtime=nil, data=nil) @StartTime = starttime @EndTime = endtime @Data = data end def deserialize(params) @StartTime = params['StartTime'] @EndTime = params['EndTime'] @Data = params['Data'] end end # 描述实例的各个DB节点信息 class NodeInfo < TencentCloud::Common::AbstractModel # @param NodeId: DB节点ID # @type NodeId: String # @param Role: DB节点角色,取值为master或者slave # @type Role: String attr_accessor :NodeId, :Role def initialize(nodeid=nil, role=nil) @NodeId = nodeid @Role = role end def deserialize(params) @NodeId = params['NodeId'] @Role = params['Role'] end end # OpenDBExtranetAccess请求参数结构体 class OpenDBExtranetAccessRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 待开放外网访问的实例ID。形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 # @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 # OpenDBExtranetAccess返回参数结构体 class OpenDBExtranetAccessResponse < 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 ParamConstraint < TencentCloud::Common::AbstractModel # @param Type: 约束类型,如枚举enum,区间section # @type Type: String # @param Enum: 约束类型为enum时的可选值列表 # @type Enum: String # @param Range: 约束类型为section时的范围 # 注意:此字段可能返回 null,表示取不到有效值。 # @type Range: :class:`Tencentcloud::Mariadb.v20170312.models.ConstraintRange` # @param String: 约束类型为string时的可选值列表 # @type String: String attr_accessor :Type, :Enum, :Range, :String def initialize(type=nil, enum=nil, range=nil, string=nil) @Type = type @Enum = enum @Range = range @String = string end def deserialize(params) @Type = params['Type'] @Enum = params['Enum'] unless params['Range'].nil? @Range = ConstraintRange.new @Range.deserialize(params['Range']) end @String = params['String'] end end # DB参数描述 class ParamDesc < TencentCloud::Common::AbstractModel # @param Param: 参数名字 # @type Param: String # @param Value: 当前参数值 # @type Value: String # @param SetValue: 设置过的值,参数生效后,该值和value一样。 # 注意:此字段可能返回 null,表示取不到有效值。 # @type SetValue: String # @param Default: 系统默认值 # @type Default: String # @param Constraint: 参数限制 # @type Constraint: :class:`Tencentcloud::Mariadb.v20170312.models.ParamConstraint` # @param HaveSetValue: 是否有设置过值,false:没有设置过值,true:有设置过值。 # @type HaveSetValue: Boolean attr_accessor :Param, :Value, :SetValue, :Default, :Constraint, :HaveSetValue def initialize(param=nil, value=nil, setvalue=nil, default=nil, constraint=nil, havesetvalue=nil) @Param = param @Value = value @SetValue = setvalue @Default = default @Constraint = constraint @HaveSetValue = havesetvalue end def deserialize(params) @Param = params['Param'] @Value = params['Value'] @SetValue = params['SetValue'] @Default = params['Default'] unless params['Constraint'].nil? @Constraint = ParamConstraint.new @Constraint.deserialize(params['Constraint']) end @HaveSetValue = params['HaveSetValue'] end end # 修改参数结果 class ParamModifyResult < TencentCloud::Common::AbstractModel # @param Param: 修改参数名字 # @type Param: String # @param Code: 参数修改结果。0表示修改成功;-1表示修改失败;-2表示该参数值非法 # @type Code: Integer attr_accessor :Param, :Code def initialize(param=nil, code=nil) @Param = param @Code = code end def deserialize(params) @Param = params['Param'] @Code = params['Code'] end end # DB性能监控指标集合 class PerformanceMonitorSet < TencentCloud::Common::AbstractModel # @param UpdateTotal: 更新操作数UPDATE # @type UpdateTotal: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param DiskIops: 磁盘每秒IO次数 # @type DiskIops: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param ConnActive: 活跃连接数 # @type ConnActive: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param MemHitRate: 缓存命中率 # @type MemHitRate: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param SlaveDelay: 主备延迟 # @type SlaveDelay: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param SelectTotal: 查询操作数SELECT # @type SelectTotal: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param LongQuery: 慢查询数 # @type LongQuery: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param DeleteTotal: 删除操作数DELETE # @type DeleteTotal: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param InsertTotal: 插入操作数INSERT # @type InsertTotal: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param IsMasterSwitched: 是否发生主备切换,1为发生,0否 # @type IsMasterSwitched: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` attr_accessor :UpdateTotal, :DiskIops, :ConnActive, :MemHitRate, :SlaveDelay, :SelectTotal, :LongQuery, :DeleteTotal, :InsertTotal, :IsMasterSwitched def initialize(updatetotal=nil, diskiops=nil, connactive=nil, memhitrate=nil, slavedelay=nil, selecttotal=nil, longquery=nil, deletetotal=nil, inserttotal=nil, ismasterswitched=nil) @UpdateTotal = updatetotal @DiskIops = diskiops @ConnActive = connactive @MemHitRate = memhitrate @SlaveDelay = slavedelay @SelectTotal = selecttotal @LongQuery = longquery @DeleteTotal = deletetotal @InsertTotal = inserttotal @IsMasterSwitched = ismasterswitched end def deserialize(params) unless params['UpdateTotal'].nil? @UpdateTotal = MonitorData.new @UpdateTotal.deserialize(params['UpdateTotal']) end unless params['DiskIops'].nil? @DiskIops = MonitorData.new @DiskIops.deserialize(params['DiskIops']) end unless params['ConnActive'].nil? @ConnActive = MonitorData.new @ConnActive.deserialize(params['ConnActive']) end unless params['MemHitRate'].nil? @MemHitRate = MonitorData.new @MemHitRate.deserialize(params['MemHitRate']) end unless params['SlaveDelay'].nil? @SlaveDelay = MonitorData.new @SlaveDelay.deserialize(params['SlaveDelay']) end unless params['SelectTotal'].nil? @SelectTotal = MonitorData.new @SelectTotal.deserialize(params['SelectTotal']) end unless params['LongQuery'].nil? @LongQuery = MonitorData.new @LongQuery.deserialize(params['LongQuery']) end unless params['DeleteTotal'].nil? @DeleteTotal = MonitorData.new @DeleteTotal.deserialize(params['DeleteTotal']) end unless params['InsertTotal'].nil? @InsertTotal = MonitorData.new @InsertTotal.deserialize(params['InsertTotal']) end unless params['IsMasterSwitched'].nil? @IsMasterSwitched = MonitorData.new @IsMasterSwitched.deserialize(params['IsMasterSwitched']) end end end # 存储过程权限信息 class ProcedurePrivilege < TencentCloud::Common::AbstractModel # @param Database: 数据库名 # @type Database: String # @param Procedure: 数据库存储过程名 # @type Procedure: String # @param Privileges: 权限信息 # @type Privileges: Array attr_accessor :Database, :Procedure, :Privileges def initialize(database=nil, procedure=nil, privileges=nil) @Database = database @Procedure = procedure @Privileges = privileges end def deserialize(params) @Database = params['Database'] @Procedure = params['Procedure'] @Privileges = params['Privileges'] end end # 售卖可用区信息 class RegionInfo < TencentCloud::Common::AbstractModel # @param Region: 地域英文ID # @type Region: String # @param RegionId: 地域数字ID # @type RegionId: Integer # @param RegionName: 地域中文名 # @type RegionName: String # @param ZoneList: 可用区列表 # @type ZoneList: Array # @param AvailableChoice: 可选择的主可用区和从可用区 # @type AvailableChoice: Array attr_accessor :Region, :RegionId, :RegionName, :ZoneList, :AvailableChoice def initialize(region=nil, regionid=nil, regionname=nil, zonelist=nil, availablechoice=nil) @Region = region @RegionId = regionid @RegionName = regionname @ZoneList = zonelist @AvailableChoice = availablechoice end def deserialize(params) @Region = params['Region'] @RegionId = params['RegionId'] @RegionName = params['RegionName'] unless params['ZoneList'].nil? @ZoneList = [] params['ZoneList'].each do |i| zonesinfo_tmp = ZonesInfo.new zonesinfo_tmp.deserialize(i) @ZoneList << zonesinfo_tmp end end unless params['AvailableChoice'].nil? @AvailableChoice = [] params['AvailableChoice'].each do |i| zonechooseinfo_tmp = ZoneChooseInfo.new zonechooseinfo_tmp.deserialize(i) @AvailableChoice << zonechooseinfo_tmp end end end end # RenewDBInstance请求参数结构体 class RenewDBInstanceRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 待续费的实例ID。形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 # @type InstanceId: String # @param Period: 续费时长,单位:月。 # @type Period: Integer # @param AutoVoucher: 是否自动使用代金券进行支付,默认不使用。 # @type AutoVoucher: Boolean # @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。 # @type VoucherIds: Array attr_accessor :InstanceId, :Period, :AutoVoucher, :VoucherIds def initialize(instanceid=nil, period=nil, autovoucher=nil, voucherids=nil) @InstanceId = instanceid @Period = period @AutoVoucher = autovoucher @VoucherIds = voucherids end def deserialize(params) @InstanceId = params['InstanceId'] @Period = params['Period'] @AutoVoucher = params['AutoVoucher'] @VoucherIds = params['VoucherIds'] end end # RenewDBInstance返回参数结构体 class RenewDBInstanceResponse < TencentCloud::Common::AbstractModel # @param DealName: 长订单号。可以据此调用 DescribeOrders # 查询订单详细信息,或在支付失败时调用用户账号相关接口进行支付。 # @type DealName: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 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 InstanceId: 实例 ID,形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 # @type InstanceId: String # @param UserName: 登录用户名。 # @type UserName: String # @param Host: 用户允许的访问 host,用户名+host唯一确定一个账号。 # @type Host: String # @param Password: 新密码,由字母、数字或常见符号组成,不能包含分号、单引号和双引号,长度为6~32位。 # @type Password: String attr_accessor :InstanceId, :UserName, :Host, :Password def initialize(instanceid=nil, username=nil, host=nil, password=nil) @InstanceId = instanceid @UserName = username @Host = host @Password = password end def deserialize(params) @InstanceId = params['InstanceId'] @UserName = params['UserName'] @Host = params['Host'] @Password = params['Password'] end end # ResetAccountPassword返回参数结构体 class ResetAccountPasswordResponse < 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 # 标签对象,包含tagKey & tagValue class ResourceTag < TencentCloud::Common::AbstractModel # @param TagKey: 标签键key # @type TagKey: String # @param TagValue: 标签值value # @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 # DB资源使用情况监控指标集合 class ResourceUsageMonitorSet < TencentCloud::Common::AbstractModel # @param BinlogDiskAvailable: binlog日志磁盘可用空间,单位GB # @type BinlogDiskAvailable: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param CpuUsageRate: CPU利用率 # @type CpuUsageRate: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param MemAvailable: 内存可用空间,单位GB # @type MemAvailable: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` # @param DataDiskAvailable: 磁盘可用空间,单位GB # @type DataDiskAvailable: :class:`Tencentcloud::Mariadb.v20170312.models.MonitorData` attr_accessor :BinlogDiskAvailable, :CpuUsageRate, :MemAvailable, :DataDiskAvailable def initialize(binlogdiskavailable=nil, cpuusagerate=nil, memavailable=nil, datadiskavailable=nil) @BinlogDiskAvailable = binlogdiskavailable @CpuUsageRate = cpuusagerate @MemAvailable = memavailable @DataDiskAvailable = datadiskavailable end def deserialize(params) unless params['BinlogDiskAvailable'].nil? @BinlogDiskAvailable = MonitorData.new @BinlogDiskAvailable.deserialize(params['BinlogDiskAvailable']) end unless params['CpuUsageRate'].nil? @CpuUsageRate = MonitorData.new @CpuUsageRate.deserialize(params['CpuUsageRate']) end unless params['MemAvailable'].nil? @MemAvailable = MonitorData.new @MemAvailable.deserialize(params['MemAvailable']) end unless params['DataDiskAvailable'].nil? @DataDiskAvailable = MonitorData.new @DataDiskAvailable.deserialize(params['DataDiskAvailable']) end end end # RestartDBInstances请求参数结构体 class RestartDBInstancesRequest < TencentCloud::Common::AbstractModel # @param InstanceIds: 实例ID的数组 # @type InstanceIds: Array # @param RestartTime: 重启时间 # @type RestartTime: String attr_accessor :InstanceIds, :RestartTime def initialize(instanceids=nil, restarttime=nil) @InstanceIds = instanceids @RestartTime = restarttime end def deserialize(params) @InstanceIds = params['InstanceIds'] @RestartTime = params['RestartTime'] end end # RestartDBInstances返回参数结构体 class RestartDBInstancesResponse < 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 # 安全组详情 class SecurityGroup < TencentCloud::Common::AbstractModel # @param ProjectId: 项目ID # @type ProjectId: Integer # @param CreateTime: 创建时间,时间格式:yyyy-mm-dd hh:mm:ss # @type CreateTime: String # @param SecurityGroupId: 安全组ID # @type SecurityGroupId: String # @param SecurityGroupName: 安全组名称 # @type SecurityGroupName: String # @param SecurityGroupRemark: 安全组备注 # @type SecurityGroupRemark: String # @param Inbound: 入站规则 # @type Inbound: Array # @param Outbound: 出站规则 # @type Outbound: Array attr_accessor :ProjectId, :CreateTime, :SecurityGroupId, :SecurityGroupName, :SecurityGroupRemark, :Inbound, :Outbound def initialize(projectid=nil, createtime=nil, securitygroupid=nil, securitygroupname=nil, securitygroupremark=nil, inbound=nil, outbound=nil) @ProjectId = projectid @CreateTime = createtime @SecurityGroupId = securitygroupid @SecurityGroupName = securitygroupname @SecurityGroupRemark = securitygroupremark @Inbound = inbound @Outbound = outbound end def deserialize(params) @ProjectId = params['ProjectId'] @CreateTime = params['CreateTime'] @SecurityGroupId = params['SecurityGroupId'] @SecurityGroupName = params['SecurityGroupName'] @SecurityGroupRemark = params['SecurityGroupRemark'] unless params['Inbound'].nil? @Inbound = [] params['Inbound'].each do |i| securitygroupbound_tmp = SecurityGroupBound.new securitygroupbound_tmp.deserialize(i) @Inbound << securitygroupbound_tmp end end unless params['Outbound'].nil? @Outbound = [] params['Outbound'].each do |i| securitygroupbound_tmp = SecurityGroupBound.new securitygroupbound_tmp.deserialize(i) @Outbound << securitygroupbound_tmp end end end end # 安全出入口规则 class SecurityGroupBound < TencentCloud::Common::AbstractModel # @param Action: 策略,ACCEPT 或者 DROP # @type Action: String # @param CidrIp: 来源 IP 或 IP 段,例如192.168.0.0/16 # @type CidrIp: String # @param PortRange: 端口 # @type PortRange: String # @param IpProtocol: 网络协议,支持 UDP、TCP 等 # @type IpProtocol: String attr_accessor :Action, :CidrIp, :PortRange, :IpProtocol def initialize(action=nil, cidrip=nil, portrange=nil, ipprotocol=nil) @Action = action @CidrIp = cidrip @PortRange = portrange @IpProtocol = ipprotocol end def deserialize(params) @Action = params['Action'] @CidrIp = params['CidrIp'] @PortRange = params['PortRange'] @IpProtocol = params['IpProtocol'] end end # 慢查询条目信息 class SlowLogData < TencentCloud::Common::AbstractModel # @param CheckSum: 语句校验和,用于查询详情 # @type CheckSum: String # @param Db: 数据库名称 # @type Db: String # @param FingerPrint: 抽象的SQL语句 # @type FingerPrint: String # @param LockTimeAvg: 平均的锁时间 # @type LockTimeAvg: String # @param LockTimeMax: 最大锁时间 # @type LockTimeMax: String # @param LockTimeMin: 最小锁时间 # @type LockTimeMin: String # @param LockTimeSum: 锁时间总和 # @type LockTimeSum: String # @param QueryCount: 查询次数 # @type QueryCount: String # @param QueryTimeAvg: 平均查询时间 # @type QueryTimeAvg: String # @param QueryTimeMax: 最大查询时间 # @type QueryTimeMax: String # @param QueryTimeMin: 最小查询时间 # @type QueryTimeMin: String # @param QueryTimeSum: 查询时间总和 # @type QueryTimeSum: String # @param RowsExaminedSum: 扫描行数 # @type RowsExaminedSum: String # @param RowsSentSum: 发送行数 # @type RowsSentSum: String # @param TsMax: 最后执行时间 # @type TsMax: String # @param TsMin: 首次执行时间 # @type TsMin: String # @param User: 帐号 # @type User: String # @param ExampleSql: 样例Sql # 注意:此字段可能返回 null,表示取不到有效值。 # @type ExampleSql: String attr_accessor :CheckSum, :Db, :FingerPrint, :LockTimeAvg, :LockTimeMax, :LockTimeMin, :LockTimeSum, :QueryCount, :QueryTimeAvg, :QueryTimeMax, :QueryTimeMin, :QueryTimeSum, :RowsExaminedSum, :RowsSentSum, :TsMax, :TsMin, :User, :ExampleSql def initialize(checksum=nil, db=nil, fingerprint=nil, locktimeavg=nil, locktimemax=nil, locktimemin=nil, locktimesum=nil, querycount=nil, querytimeavg=nil, querytimemax=nil, querytimemin=nil, querytimesum=nil, rowsexaminedsum=nil, rowssentsum=nil, tsmax=nil, tsmin=nil, user=nil, examplesql=nil) @CheckSum = checksum @Db = db @FingerPrint = fingerprint @LockTimeAvg = locktimeavg @LockTimeMax = locktimemax @LockTimeMin = locktimemin @LockTimeSum = locktimesum @QueryCount = querycount @QueryTimeAvg = querytimeavg @QueryTimeMax = querytimemax @QueryTimeMin = querytimemin @QueryTimeSum = querytimesum @RowsExaminedSum = rowsexaminedsum @RowsSentSum = rowssentsum @TsMax = tsmax @TsMin = tsmin @User = user @ExampleSql = examplesql end def deserialize(params) @CheckSum = params['CheckSum'] @Db = params['Db'] @FingerPrint = params['FingerPrint'] @LockTimeAvg = params['LockTimeAvg'] @LockTimeMax = params['LockTimeMax'] @LockTimeMin = params['LockTimeMin'] @LockTimeSum = params['LockTimeSum'] @QueryCount = params['QueryCount'] @QueryTimeAvg = params['QueryTimeAvg'] @QueryTimeMax = params['QueryTimeMax'] @QueryTimeMin = params['QueryTimeMin'] @QueryTimeSum = params['QueryTimeSum'] @RowsExaminedSum = params['RowsExaminedSum'] @RowsSentSum = params['RowsSentSum'] @TsMax = params['TsMax'] @TsMin = params['TsMin'] @User = params['User'] @ExampleSql = params['ExampleSql'] end end # 实例可售卖规格详细信息,创建实例和扩容实例时 Pid+MemSize 唯一确定一种售卖规格,磁盘大小可用区间为[MinDataDisk,MaxDataDisk] class SpecConfigInfo < TencentCloud::Common::AbstractModel # @param Machine: 设备型号 # @type Machine: String # @param Memory: 内存大小,单位 GB # @type Memory: Integer # @param MinStorage: 数据盘规格最小值,单位 GB # @type MinStorage: Integer # @param MaxStorage: 数据盘规格最大值,单位 GB # @type MaxStorage: Integer # @param SuitInfo: 推荐的使用场景 # @type SuitInfo: String # @param Qps: 最大 Qps 值 # @type Qps: Integer # @param Pid: 产品类型 Id # @type Pid: Integer # @param NodeCount: 节点个数,2 表示一主一从,3 表示一主二从 # @type NodeCount: Integer # @param Cpu: Cpu核数 # @type Cpu: Integer attr_accessor :Machine, :Memory, :MinStorage, :MaxStorage, :SuitInfo, :Qps, :Pid, :NodeCount, :Cpu def initialize(machine=nil, memory=nil, minstorage=nil, maxstorage=nil, suitinfo=nil, qps=nil, pid=nil, nodecount=nil, cpu=nil) @Machine = machine @Memory = memory @MinStorage = minstorage @MaxStorage = maxstorage @SuitInfo = suitinfo @Qps = qps @Pid = pid @NodeCount = nodecount @Cpu = cpu end def deserialize(params) @Machine = params['Machine'] @Memory = params['Memory'] @MinStorage = params['MinStorage'] @MaxStorage = params['MaxStorage'] @SuitInfo = params['SuitInfo'] @Qps = params['Qps'] @Pid = params['Pid'] @NodeCount = params['NodeCount'] @Cpu = params['Cpu'] end end # 描述一条sql日志的详细信息。 class SqlLogItem < TencentCloud::Common::AbstractModel # @param Offset: 本条日志在消息队列中的偏移量。 # @type Offset: Integer # @param User: 执行本条sql的用户。 # @type User: String # @param Client: 执行本条sql的客户端IP+端口。 # @type Client: String # @param DbName: 数据库名称。 # @type DbName: String # @param Sql: 执行的sql语句。 # @type Sql: String # @param SelectRowNum: 返回的数据行数。 # @type SelectRowNum: Integer # @param AffectRowNum: 影响行数。 # @type AffectRowNum: Integer # @param Timestamp: Sql执行时间戳。 # @type Timestamp: Integer # @param TimeCostMs: Sql耗时,单位为毫秒。 # @type TimeCostMs: Integer # @param ResultCode: Sql返回码,0为成功。 # @type ResultCode: Integer attr_accessor :Offset, :User, :Client, :DbName, :Sql, :SelectRowNum, :AffectRowNum, :Timestamp, :TimeCostMs, :ResultCode def initialize(offset=nil, user=nil, client=nil, dbname=nil, sql=nil, selectrownum=nil, affectrownum=nil, timestamp=nil, timecostms=nil, resultcode=nil) @Offset = offset @User = user @Client = client @DbName = dbname @Sql = sql @SelectRowNum = selectrownum @AffectRowNum = affectrownum @Timestamp = timestamp @TimeCostMs = timecostms @ResultCode = resultcode end def deserialize(params) @Offset = params['Offset'] @User = params['User'] @Client = params['Client'] @DbName = params['DbName'] @Sql = params['Sql'] @SelectRowNum = params['SelectRowNum'] @AffectRowNum = params['AffectRowNum'] @Timestamp = params['Timestamp'] @TimeCostMs = params['TimeCostMs'] @ResultCode = params['ResultCode'] end end # 数据库表权限 class TablePrivilege < TencentCloud::Common::AbstractModel # @param Database: 数据库名 # @type Database: String # @param Table: 数据库表名 # @type Table: String # @param Privileges: 权限信息 # @type Privileges: Array attr_accessor :Database, :Table, :Privileges def initialize(database=nil, table=nil, privileges=nil) @Database = database @Table = table @Privileges = privileges end def deserialize(params) @Database = params['Database'] @Table = params['Table'] @Privileges = params['Privileges'] end end # UpgradeDBInstance请求参数结构体 class UpgradeDBInstanceRequest < TencentCloud::Common::AbstractModel # @param InstanceId: 待升级的实例ID。形如:tdsql-ow728lmc,可以通过 DescribeDBInstances 查询实例详情获得。 # @type InstanceId: String # @param Memory: 内存大小,单位:GB,可以通过 DescribeDBInstanceSpecs # 查询实例规格获得。 # @type Memory: Integer # @param Storage: 存储空间大小,单位:GB,可以通过 DescribeDBInstanceSpecs # 查询实例规格获得不同内存大小对应的磁盘规格下限和上限。 # @type Storage: Integer # @param AutoVoucher: 是否自动使用代金券进行支付,默认不使用。 # @type AutoVoucher: Boolean # @param VoucherIds: 代金券ID列表,目前仅支持指定一张代金券。 # @type VoucherIds: Array attr_accessor :InstanceId, :Memory, :Storage, :AutoVoucher, :VoucherIds def initialize(instanceid=nil, memory=nil, storage=nil, autovoucher=nil, voucherids=nil) @InstanceId = instanceid @Memory = memory @Storage = storage @AutoVoucher = autovoucher @VoucherIds = voucherids end def deserialize(params) @InstanceId = params['InstanceId'] @Memory = params['Memory'] @Storage = params['Storage'] @AutoVoucher = params['AutoVoucher'] @VoucherIds = params['VoucherIds'] end end # UpgradeDBInstance返回参数结构体 class UpgradeDBInstanceResponse < TencentCloud::Common::AbstractModel # @param DealName: 长订单号。可以据此调用 DescribeOrders # 查询订单详细信息,或在支付失败时调用用户账号相关接口进行支付。 # @type DealName: String # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 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 # 视图权限信息 class ViewPrivileges < TencentCloud::Common::AbstractModel # @param Database: 数据库名 # @type Database: String # @param View: 数据库视图名 # @type View: String # @param Privileges: 权限信息 # @type Privileges: Array attr_accessor :Database, :View, :Privileges def initialize(database=nil, view=nil, privileges=nil) @Database = database @View = view @Privileges = privileges end def deserialize(params) @Database = params['Database'] @View = params['View'] @Privileges = params['Privileges'] end end # 分片节点可用区选择 class ZoneChooseInfo < TencentCloud::Common::AbstractModel # @param MasterZone: 主可用区 # @type MasterZone: :class:`Tencentcloud::Mariadb.v20170312.models.ZonesInfo` # @param SlaveZones: 可选的从可用区 # @type SlaveZones: Array attr_accessor :MasterZone, :SlaveZones def initialize(masterzone=nil, slavezones=nil) @MasterZone = masterzone @SlaveZones = slavezones end def deserialize(params) unless params['MasterZone'].nil? @MasterZone = ZonesInfo.new @MasterZone.deserialize(params['MasterZone']) end unless params['SlaveZones'].nil? @SlaveZones = [] params['SlaveZones'].each do |i| zonesinfo_tmp = ZonesInfo.new zonesinfo_tmp.deserialize(i) @SlaveZones << zonesinfo_tmp end end end end # 可用区信息 class ZonesInfo < TencentCloud::Common::AbstractModel # @param Zone: 可用区英文ID # @type Zone: String # @param ZoneId: 可用区数字ID # @type ZoneId: Integer # @param ZoneName: 可用区中文名 # @type ZoneName: String attr_accessor :Zone, :ZoneId, :ZoneName def initialize(zone=nil, zoneid=nil, zonename=nil) @Zone = zone @ZoneId = zoneid @ZoneName = zonename end def deserialize(params) @Zone = params['Zone'] @ZoneId = params['ZoneId'] @ZoneName = params['ZoneName'] end end end end end