# 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 Cdb
module V20170320
# 数据库账号信息
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
# 账号详细信息
class AccountInfo < TencentCloud::Common::AbstractModel
# @param Notes: 账号备注信息
# @type Notes: String
# @param Host: 账号的域名
# @type Host: String
# @param User: 账号的名称
# @type User: String
# @param ModifyTime: 账号信息修改时间
# @type ModifyTime: String
# @param ModifyPasswordTime: 修改密码的时间
# @type ModifyPasswordTime: String
# @param CreateTime: 该值已废弃
# @type CreateTime: String
# @param MaxUserConnections: 用户最大可用实例连接数
# @type MaxUserConnections: Integer
attr_accessor :Notes, :Host, :User, :ModifyTime, :ModifyPasswordTime, :CreateTime, :MaxUserConnections
def initialize(notes=nil, host=nil, user=nil, modifytime=nil, modifypasswordtime=nil, createtime=nil, maxuserconnections=nil)
@Notes = notes
@Host = host
@User = user
@ModifyTime = modifytime
@ModifyPasswordTime = modifypasswordtime
@CreateTime = createtime
@MaxUserConnections = maxuserconnections
end
def deserialize(params)
@Notes = params['Notes']
@Host = params['Host']
@User = params['User']
@ModifyTime = params['ModifyTime']
@ModifyPasswordTime = params['ModifyPasswordTime']
@CreateTime = params['CreateTime']
@MaxUserConnections = params['MaxUserConnections']
end
end
# AddTimeWindow请求参数结构体
class AddTimeWindowRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param Monday: 星期一的可维护时间段,其中每一个时间段的格式形如:10:00-12:00;起始时间按半个小时对齐;最短半个小时,最长三个小时;可设置多个时间段。 一周中应至少设置一天的时间窗。下同。
# @type Monday: Array
# @param Tuesday: 星期二的可维护时间窗口。 一周中应至少设置一天的时间窗。
# @type Tuesday: Array
# @param Wednesday: 星期三的可维护时间窗口。 一周中应至少设置一天的时间窗。
# @type Wednesday: Array
# @param Thursday: 星期四的可维护时间窗口。 一周中应至少设置一天的时间窗。
# @type Thursday: Array
# @param Friday: 星期五的可维护时间窗口。 一周中应至少设置一天的时间窗。
# @type Friday: Array
# @param Saturday: 星期六的可维护时间窗口。 一周中应至少设置一天的时间窗。
# @type Saturday: Array
# @param Sunday: 星期日的可维护时间窗口。 一周中应至少设置一天的时间窗。
# @type Sunday: Array
attr_accessor :InstanceId, :Monday, :Tuesday, :Wednesday, :Thursday, :Friday, :Saturday, :Sunday
def initialize(instanceid=nil, monday=nil, tuesday=nil, wednesday=nil, thursday=nil, friday=nil, saturday=nil, sunday=nil)
@InstanceId = instanceid
@Monday = monday
@Tuesday = tuesday
@Wednesday = wednesday
@Thursday = thursday
@Friday = friday
@Saturday = saturday
@Sunday = sunday
end
def deserialize(params)
@InstanceId = params['InstanceId']
@Monday = params['Monday']
@Tuesday = params['Tuesday']
@Wednesday = params['Wednesday']
@Thursday = params['Thursday']
@Friday = params['Friday']
@Saturday = params['Saturday']
@Sunday = params['Sunday']
end
end
# AddTimeWindow返回参数结构体
class AddTimeWindowResponse < 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 Address < TencentCloud::Common::AbstractModel
# @param Vip: 地址
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Vip: String
# @param VPort: 端口
# 注意:此字段可能返回 null,表示取不到有效值。
# @type VPort: Integer
# @param UniqVpcId: 私有网络ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UniqVpcId: String
# @param UniqSubnet: 私有网络子网ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UniqSubnet: String
# @param Desc: 描述
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Desc: String
attr_accessor :Vip, :VPort, :UniqVpcId, :UniqSubnet, :Desc
def initialize(vip=nil, vport=nil, uniqvpcid=nil, uniqsubnet=nil, desc=nil)
@Vip = vip
@VPort = vport
@UniqVpcId = uniqvpcid
@UniqSubnet = uniqsubnet
@Desc = desc
end
def deserialize(params)
@Vip = params['Vip']
@VPort = params['VPort']
@UniqVpcId = params['UniqVpcId']
@UniqSubnet = params['UniqSubnet']
@Desc = params['Desc']
end
end
# ApplyCDBProxy请求参数结构体
class ApplyCDBProxyRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 主实例唯一标识ID
# @type InstanceId: String
# @param UniqVpcId: 私有网络ID
# @type UniqVpcId: String
# @param UniqSubnetId: 私有网络子网ID
# @type UniqSubnetId: String
# @param ProxyCount: 代理组节点个数
# @type ProxyCount: Integer
# @param Cpu: cpu核数
# @type Cpu: Integer
# @param Mem: 内存
# @type Mem: Integer
# @param SecurityGroup: 安全组
# @type SecurityGroup: Array
# @param Desc: 描述说明,最大支持256位。
# @type Desc: String
attr_accessor :InstanceId, :UniqVpcId, :UniqSubnetId, :ProxyCount, :Cpu, :Mem, :SecurityGroup, :Desc
def initialize(instanceid=nil, uniqvpcid=nil, uniqsubnetid=nil, proxycount=nil, cpu=nil, mem=nil, securitygroup=nil, desc=nil)
@InstanceId = instanceid
@UniqVpcId = uniqvpcid
@UniqSubnetId = uniqsubnetid
@ProxyCount = proxycount
@Cpu = cpu
@Mem = mem
@SecurityGroup = securitygroup
@Desc = desc
end
def deserialize(params)
@InstanceId = params['InstanceId']
@UniqVpcId = params['UniqVpcId']
@UniqSubnetId = params['UniqSubnetId']
@ProxyCount = params['ProxyCount']
@Cpu = params['Cpu']
@Mem = params['Mem']
@SecurityGroup = params['SecurityGroup']
@Desc = params['Desc']
end
end
# ApplyCDBProxy返回参数结构体
class ApplyCDBProxyResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步处理ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# AssociateSecurityGroups请求参数结构体
class AssociateSecurityGroupsRequest < TencentCloud::Common::AbstractModel
# @param SecurityGroupId: 安全组 ID。
# @type SecurityGroupId: String
# @param InstanceIds: 实例 ID 列表,一个或者多个实例 ID 组成的数组。
# @type InstanceIds: Array
# @param ForReadonlyInstance: 当传入只读实例ID时,默认操作的是对应只读组的安全组。如果需要操作只读实例ID的安全组, 需要将该入参置为True
# @type ForReadonlyInstance: Boolean
attr_accessor :SecurityGroupId, :InstanceIds, :ForReadonlyInstance
def initialize(securitygroupid=nil, instanceids=nil, forreadonlyinstance=nil)
@SecurityGroupId = securitygroupid
@InstanceIds = instanceids
@ForReadonlyInstance = forreadonlyinstance
end
def deserialize(params)
@SecurityGroupId = params['SecurityGroupId']
@InstanceIds = params['InstanceIds']
@ForReadonlyInstance = params['ForReadonlyInstance']
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
# 审计规则过滤条件
class AuditFilter < TencentCloud::Common::AbstractModel
# @param Type: 过滤条件参数名称。目前支持:
# SrcIp – 客户端 IP;
# User – 数据库账户;
# DB – 数据库名称;
# @type Type: String
# @param Compare: 过滤条件匹配类型。目前支持:
# INC – 包含;
# EXC – 不包含;
# EQ – 等于;
# NEQ – 不等于;
# @type Compare: String
# @param Value: 过滤条件匹配值。
# @type Value: String
attr_accessor :Type, :Compare, :Value
def initialize(type=nil, compare=nil, value=nil)
@Type = type
@Compare = compare
@Value = value
end
def deserialize(params)
@Type = params['Type']
@Compare = params['Compare']
@Value = params['Value']
end
end
# 审计日志文件
class AuditLogFile < TencentCloud::Common::AbstractModel
# @param FileName: 审计日志文件名称
# @type FileName: String
# @param CreateTime: 审计日志文件创建时间。格式为 : "2019-03-20 17:09:13"。
# @type CreateTime: String
# @param Status: 文件状态值。可能返回的值为:
# "creating" - 生成中;
# "failed" - 创建失败;
# "success" - 已生成;
# @type Status: String
# @param FileSize: 文件大小,单位为 KB。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FileSize: Integer
# @param DownloadUrl: 审计日志下载地址。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DownloadUrl: String
# @param ErrMsg: 错误信息。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ErrMsg: String
attr_accessor :FileName, :CreateTime, :Status, :FileSize, :DownloadUrl, :ErrMsg
def initialize(filename=nil, createtime=nil, status=nil, filesize=nil, downloadurl=nil, errmsg=nil)
@FileName = filename
@CreateTime = createtime
@Status = status
@FileSize = filesize
@DownloadUrl = downloadurl
@ErrMsg = errmsg
end
def deserialize(params)
@FileName = params['FileName']
@CreateTime = params['CreateTime']
@Status = params['Status']
@FileSize = params['FileSize']
@DownloadUrl = params['DownloadUrl']
@ErrMsg = params['ErrMsg']
end
end
# 审计日志过滤条件。查询审计日志时,用户过滤返回的审计日志。
class AuditLogFilter < TencentCloud::Common::AbstractModel
# @param Host: 客户端地址。
# @type Host: Array
# @param User: 用户名。
# @type User: Array
# @param DBName: 数据库名称。
# @type DBName: Array
# @param TableName: 表名称。
# @type TableName: Array
# @param PolicyName: 审计策略名称。
# @type PolicyName: Array
# @param Sql: SQL 语句。支持模糊匹配。
# @type Sql: String
# @param SqlType: SQL 类型。目前支持:"SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "ALTER", "SET", "REPLACE", "EXECUTE"。
# @type SqlType: String
# @param ExecTime: 执行时间。单位为:ms。表示筛选执行时间大于该值的审计日志。
# @type ExecTime: Integer
# @param AffectRows: 影响行数。表示筛选影响行数大于该值的审计日志。
# @type AffectRows: Integer
# @param SqlTypes: SQL 类型。支持多个类型同时查询。目前支持:"SELECT", "INSERT", "UPDATE", "DELETE", "CREATE", "DROP", "ALTER", "SET", "REPLACE", "EXECUTE"。
# @type SqlTypes: Array
# @param Sqls: SQL 语句。支持传递多个sql语句。
# @type Sqls: Array
attr_accessor :Host, :User, :DBName, :TableName, :PolicyName, :Sql, :SqlType, :ExecTime, :AffectRows, :SqlTypes, :Sqls
def initialize(host=nil, user=nil, dbname=nil, tablename=nil, policyname=nil, sql=nil, sqltype=nil, exectime=nil, affectrows=nil, sqltypes=nil, sqls=nil)
@Host = host
@User = user
@DBName = dbname
@TableName = tablename
@PolicyName = policyname
@Sql = sql
@SqlType = sqltype
@ExecTime = exectime
@AffectRows = affectrows
@SqlTypes = sqltypes
@Sqls = sqls
end
def deserialize(params)
@Host = params['Host']
@User = params['User']
@DBName = params['DBName']
@TableName = params['TableName']
@PolicyName = params['PolicyName']
@Sql = params['Sql']
@SqlType = params['SqlType']
@ExecTime = params['ExecTime']
@AffectRows = params['AffectRows']
@SqlTypes = params['SqlTypes']
@Sqls = params['Sqls']
end
end
# 审计策略
class AuditPolicy < TencentCloud::Common::AbstractModel
# @param PolicyId: 审计策略 ID。
# @type PolicyId: String
# @param Status: 审计策略的状态。可能返回的值为:
# "creating" - 创建中;
# "running" - 运行中;
# "paused" - 暂停中;
# "failed" - 创建失败。
# @type Status: String
# @param InstanceId: 数据库实例 ID。
# @type InstanceId: String
# @param CreateTime: 审计策略创建时间。格式为 : "2019-03-20 17:09:13"。
# @type CreateTime: String
# @param ModifyTime: 审计策略最后修改时间。格式为 : "2019-03-20 17:09:13"。
# @type ModifyTime: String
# @param PolicyName: 审计策略名称。
# @type PolicyName: String
# @param RuleId: 审计规则 ID。
# @type RuleId: String
# @param RuleName: 审计规则名称。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RuleName: String
# @param InstanceName: 数据库实例名称
# 注意:此字段可能返回 null,表示取不到有效值。
# @type InstanceName: String
attr_accessor :PolicyId, :Status, :InstanceId, :CreateTime, :ModifyTime, :PolicyName, :RuleId, :RuleName, :InstanceName
def initialize(policyid=nil, status=nil, instanceid=nil, createtime=nil, modifytime=nil, policyname=nil, ruleid=nil, rulename=nil, instancename=nil)
@PolicyId = policyid
@Status = status
@InstanceId = instanceid
@CreateTime = createtime
@ModifyTime = modifytime
@PolicyName = policyname
@RuleId = ruleid
@RuleName = rulename
@InstanceName = instancename
end
def deserialize(params)
@PolicyId = params['PolicyId']
@Status = params['Status']
@InstanceId = params['InstanceId']
@CreateTime = params['CreateTime']
@ModifyTime = params['ModifyTime']
@PolicyName = params['PolicyName']
@RuleId = params['RuleId']
@RuleName = params['RuleName']
@InstanceName = params['InstanceName']
end
end
# 审计规则
class AuditRule < TencentCloud::Common::AbstractModel
# @param RuleId: 审计规则 Id。
# @type RuleId: String
# @param CreateTime: 审计规则创建时间。格式为 : "2019-03-20 17:09:13"。
# @type CreateTime: String
# @param ModifyTime: 审计规则最后修改时间。格式为 : "2019-03-20 17:09:13"。
# @type ModifyTime: String
# @param RuleName: 审计规则名称。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RuleName: String
# @param Description: 审计规则描述。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Description: String
# @param RuleFilters: 审计规则过滤条件。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RuleFilters: Array
# @param AuditAll: 是否开启全审计。
# @type AuditAll: Boolean
attr_accessor :RuleId, :CreateTime, :ModifyTime, :RuleName, :Description, :RuleFilters, :AuditAll
def initialize(ruleid=nil, createtime=nil, modifytime=nil, rulename=nil, description=nil, rulefilters=nil, auditall=nil)
@RuleId = ruleid
@CreateTime = createtime
@ModifyTime = modifytime
@RuleName = rulename
@Description = description
@RuleFilters = rulefilters
@AuditAll = auditall
end
def deserialize(params)
@RuleId = params['RuleId']
@CreateTime = params['CreateTime']
@ModifyTime = params['ModifyTime']
@RuleName = params['RuleName']
@Description = params['Description']
unless params['RuleFilters'].nil?
@RuleFilters = []
params['RuleFilters'].each do |i|
auditfilter_tmp = AuditFilter.new
auditfilter_tmp.deserialize(i)
@RuleFilters << auditfilter_tmp
end
end
@AuditAll = params['AuditAll']
end
end
# ECDB第二个从库的配置信息,只有ECDB实例才有这个字段
class BackupConfig < TencentCloud::Common::AbstractModel
# @param ReplicationMode: 第二个从库复制方式,可能的返回值:async-异步,semisync-半同步
# @type ReplicationMode: String
# @param Zone: 第二个从库可用区的正式名称,如ap-shanghai-1
# @type Zone: String
# @param Vip: 第二个从库内网IP地址
# @type Vip: String
# @param Vport: 第二个从库访问端口
# @type Vport: Integer
attr_accessor :ReplicationMode, :Zone, :Vip, :Vport
def initialize(replicationmode=nil, zone=nil, vip=nil, vport=nil)
@ReplicationMode = replicationmode
@Zone = zone
@Vip = vip
@Vport = vport
end
def deserialize(params)
@ReplicationMode = params['ReplicationMode']
@Zone = params['Zone']
@Vip = params['Vip']
@Vport = params['Vport']
end
end
# 备份详细信息
class BackupInfo < TencentCloud::Common::AbstractModel
# @param Name: 备份文件名
# @type Name: String
# @param Size: 备份文件大小,单位:Byte
# @type Size: Integer
# @param Date: 备份快照时间,时间格式:2016-03-17 02:10:37
# @type Date: String
# @param IntranetUrl: 下载地址
# @type IntranetUrl: String
# @param InternetUrl: 下载地址
# @type InternetUrl: String
# @param Type: 日志具体类型。可能的值有 "logical": 逻辑冷备, "physical": 物理冷备。
# @type Type: String
# @param BackupId: 备份子任务的ID,删除备份文件时使用
# @type BackupId: Integer
# @param Status: 备份任务状态。可能的值有 "SUCCESS": 备份成功, "FAILED": 备份失败, "RUNNING": 备份进行中。
# @type Status: String
# @param FinishTime: 备份任务的完成时间
# @type FinishTime: String
# @param Creator: (该值将废弃,不建议使用)备份的创建者,可能的值:SYSTEM - 系统创建,Uin - 发起者Uin值。
# @type Creator: String
# @param StartTime: 备份任务的开始时间
# @type StartTime: String
# @param Method: 备份方法。可能的值有 "full": 全量备份, "partial": 部分备份。
# @type Method: String
# @param Way: 备份方式。可能的值有 "manual": 手动备份, "automatic": 自动备份。
# @type Way: String
# @param ManualBackupName: 手动备份别名
# @type ManualBackupName: String
attr_accessor :Name, :Size, :Date, :IntranetUrl, :InternetUrl, :Type, :BackupId, :Status, :FinishTime, :Creator, :StartTime, :Method, :Way, :ManualBackupName
def initialize(name=nil, size=nil, date=nil, intraneturl=nil, interneturl=nil, type=nil, backupid=nil, status=nil, finishtime=nil, creator=nil, starttime=nil, method=nil, way=nil, manualbackupname=nil)
@Name = name
@Size = size
@Date = date
@IntranetUrl = intraneturl
@InternetUrl = interneturl
@Type = type
@BackupId = backupid
@Status = status
@FinishTime = finishtime
@Creator = creator
@StartTime = starttime
@Method = method
@Way = way
@ManualBackupName = manualbackupname
end
def deserialize(params)
@Name = params['Name']
@Size = params['Size']
@Date = params['Date']
@IntranetUrl = params['IntranetUrl']
@InternetUrl = params['InternetUrl']
@Type = params['Type']
@BackupId = params['BackupId']
@Status = params['Status']
@FinishTime = params['FinishTime']
@Creator = params['Creator']
@StartTime = params['StartTime']
@Method = params['Method']
@Way = params['Way']
@ManualBackupName = params['ManualBackupName']
end
end
# 创建备份时,指定需要备份的库表信息
class BackupItem < TencentCloud::Common::AbstractModel
# @param Db: 需要备份的库名
# @type Db: String
# @param Table: 需要备份的表名。 如果传该参数,表示备份该库中的指定表。如果不传该参数则备份该db库
# @type Table: String
attr_accessor :Db, :Table
def initialize(db=nil, table=nil)
@Db = db
@Table = table
end
def deserialize(params)
@Db = params['Db']
@Table = params['Table']
end
end
# 备份文件限制下载来源VPC设置项
class BackupLimitVpcItem < TencentCloud::Common::AbstractModel
# @param Region: 限制下载来源的地域。目前仅支持当前地域。
# @type Region: String
# @param VpcList: 限制下载的vpc列表。
# @type VpcList: Array
attr_accessor :Region, :VpcList
def initialize(region=nil, vpclist=nil)
@Region = region
@VpcList = vpclist
end
def deserialize(params)
@Region = params['Region']
@VpcList = params['VpcList']
end
end
# 实例备份统计项
class BackupSummaryItem < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例ID。
# @type InstanceId: String
# @param AutoBackupCount: 该实例自动数据备份的个数。
# @type AutoBackupCount: Integer
# @param AutoBackupVolume: 该实例自动数据备份的容量。
# @type AutoBackupVolume: Integer
# @param ManualBackupCount: 该实例手动数据备份的个数。
# @type ManualBackupCount: Integer
# @param ManualBackupVolume: 该实例手动数据备份的容量。
# @type ManualBackupVolume: Integer
# @param DataBackupCount: 该实例总的数据备份(包含自动备份和手动备份)个数。
# @type DataBackupCount: Integer
# @param DataBackupVolume: 该实例总的数据备份容量。
# @type DataBackupVolume: Integer
# @param BinlogBackupCount: 该实例日志备份的个数。
# @type BinlogBackupCount: Integer
# @param BinlogBackupVolume: 该实例日志备份的容量。
# @type BinlogBackupVolume: Integer
# @param BackupVolume: 该实例的总备份(包含数据备份和日志备份)占用容量。
# @type BackupVolume: Integer
attr_accessor :InstanceId, :AutoBackupCount, :AutoBackupVolume, :ManualBackupCount, :ManualBackupVolume, :DataBackupCount, :DataBackupVolume, :BinlogBackupCount, :BinlogBackupVolume, :BackupVolume
def initialize(instanceid=nil, autobackupcount=nil, autobackupvolume=nil, manualbackupcount=nil, manualbackupvolume=nil, databackupcount=nil, databackupvolume=nil, binlogbackupcount=nil, binlogbackupvolume=nil, backupvolume=nil)
@InstanceId = instanceid
@AutoBackupCount = autobackupcount
@AutoBackupVolume = autobackupvolume
@ManualBackupCount = manualbackupcount
@ManualBackupVolume = manualbackupvolume
@DataBackupCount = databackupcount
@DataBackupVolume = databackupvolume
@BinlogBackupCount = binlogbackupcount
@BinlogBackupVolume = binlogbackupvolume
@BackupVolume = backupvolume
end
def deserialize(params)
@InstanceId = params['InstanceId']
@AutoBackupCount = params['AutoBackupCount']
@AutoBackupVolume = params['AutoBackupVolume']
@ManualBackupCount = params['ManualBackupCount']
@ManualBackupVolume = params['ManualBackupVolume']
@DataBackupCount = params['DataBackupCount']
@DataBackupVolume = params['DataBackupVolume']
@BinlogBackupCount = params['BinlogBackupCount']
@BinlogBackupVolume = params['BinlogBackupVolume']
@BackupVolume = params['BackupVolume']
end
end
# BalanceRoGroupLoad请求参数结构体
class BalanceRoGroupLoadRequest < TencentCloud::Common::AbstractModel
# @param RoGroupId: RO 组的 ID,格式如:cdbrg-c1nl9rpv。
# @type RoGroupId: String
attr_accessor :RoGroupId
def initialize(rogroupid=nil)
@RoGroupId = rogroupid
end
def deserialize(params)
@RoGroupId = params['RoGroupId']
end
end
# BalanceRoGroupLoad返回参数结构体
class BalanceRoGroupLoadResponse < 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
# proxy代理组信息
class BaseGroupInfo < TencentCloud::Common::AbstractModel
# @param ProxyGroupId: 代理组ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProxyGroupId: String
# @param NodeCount: 代理节点数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type NodeCount: Integer
# @param Status: 状态:发货中(init)运行中(online)下线中(offline)销毁中(destroy)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: String
# @param Region: 地域
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Region: String
# @param Zone: 可用区
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Zone: String
# @param OpenRW: 是否开启读写分离
# 注意:此字段可能返回 null,表示取不到有效值。
# @type OpenRW: Boolean
# @param CurrentProxyVersion: 当前代理版本
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CurrentProxyVersion: String
# @param SupportUpgradeProxyVersion: 支持升级版本
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SupportUpgradeProxyVersion: String
attr_accessor :ProxyGroupId, :NodeCount, :Status, :Region, :Zone, :OpenRW, :CurrentProxyVersion, :SupportUpgradeProxyVersion
def initialize(proxygroupid=nil, nodecount=nil, status=nil, region=nil, zone=nil, openrw=nil, currentproxyversion=nil, supportupgradeproxyversion=nil)
@ProxyGroupId = proxygroupid
@NodeCount = nodecount
@Status = status
@Region = region
@Zone = zone
@OpenRW = openrw
@CurrentProxyVersion = currentproxyversion
@SupportUpgradeProxyVersion = supportupgradeproxyversion
end
def deserialize(params)
@ProxyGroupId = params['ProxyGroupId']
@NodeCount = params['NodeCount']
@Status = params['Status']
@Region = params['Region']
@Zone = params['Zone']
@OpenRW = params['OpenRW']
@CurrentProxyVersion = params['CurrentProxyVersion']
@SupportUpgradeProxyVersion = params['SupportUpgradeProxyVersion']
end
end
# 二进制日志信息
class BinlogInfo < TencentCloud::Common::AbstractModel
# @param Name: binlog 日志备份文件名
# @type Name: String
# @param Size: 备份文件大小,单位:Byte
# @type Size: Integer
# @param Date: 文件存储时间,时间格式:2016-03-17 02:10:37
# @type Date: String
# @param IntranetUrl: 下载地址
# @type IntranetUrl: String
# @param InternetUrl: 下载地址
# @type InternetUrl: String
# @param Type: 日志具体类型,可能的值有:binlog - 二进制日志
# @type Type: String
# @param BinlogStartTime: binlog 文件起始时间
# @type BinlogStartTime: String
# @param BinlogFinishTime: binlog 文件截止时间
# @type BinlogFinishTime: String
attr_accessor :Name, :Size, :Date, :IntranetUrl, :InternetUrl, :Type, :BinlogStartTime, :BinlogFinishTime
def initialize(name=nil, size=nil, date=nil, intraneturl=nil, interneturl=nil, type=nil, binlogstarttime=nil, binlogfinishtime=nil)
@Name = name
@Size = size
@Date = date
@IntranetUrl = intraneturl
@InternetUrl = interneturl
@Type = type
@BinlogStartTime = binlogstarttime
@BinlogFinishTime = binlogfinishtime
end
def deserialize(params)
@Name = params['Name']
@Size = params['Size']
@Date = params['Date']
@IntranetUrl = params['IntranetUrl']
@InternetUrl = params['InternetUrl']
@Type = params['Type']
@BinlogStartTime = params['BinlogStartTime']
@BinlogFinishTime = params['BinlogFinishTime']
end
end
# 克隆任务记录。
class CloneItem < TencentCloud::Common::AbstractModel
# @param SrcInstanceId: 克隆任务的源实例Id。
# @type SrcInstanceId: String
# @param DstInstanceId: 克隆任务的新产生实例Id。
# @type DstInstanceId: String
# @param CloneJobId: 克隆任务对应的任务列表Id。
# @type CloneJobId: Integer
# @param RollbackStrategy: 克隆实例使用的策略, 包括以下类型: timepoint:指定时间点回档, backupset: 指定备份文件回档。
# @type RollbackStrategy: String
# @param RollbackTargetTime: 克隆实例回档的时间点。
# @type RollbackTargetTime: String
# @param StartTime: 任务开始时间。
# @type StartTime: String
# @param EndTime: 任务结束时间。
# @type EndTime: String
# @param TaskStatus: 任务状态,包括以下状态:initial,running,wait_complete,success,failed
# @type TaskStatus: String
attr_accessor :SrcInstanceId, :DstInstanceId, :CloneJobId, :RollbackStrategy, :RollbackTargetTime, :StartTime, :EndTime, :TaskStatus
def initialize(srcinstanceid=nil, dstinstanceid=nil, clonejobid=nil, rollbackstrategy=nil, rollbacktargettime=nil, starttime=nil, endtime=nil, taskstatus=nil)
@SrcInstanceId = srcinstanceid
@DstInstanceId = dstinstanceid
@CloneJobId = clonejobid
@RollbackStrategy = rollbackstrategy
@RollbackTargetTime = rollbacktargettime
@StartTime = starttime
@EndTime = endtime
@TaskStatus = taskstatus
end
def deserialize(params)
@SrcInstanceId = params['SrcInstanceId']
@DstInstanceId = params['DstInstanceId']
@CloneJobId = params['CloneJobId']
@RollbackStrategy = params['RollbackStrategy']
@RollbackTargetTime = params['RollbackTargetTime']
@StartTime = params['StartTime']
@EndTime = params['EndTime']
@TaskStatus = params['TaskStatus']
end
end
# CloseCDBProxy请求参数结构体
class CloseCDBProxyRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例ID
# @type InstanceId: String
# @param ProxyGroupId: 代理组ID
# @type ProxyGroupId: String
# @param OnlyCloseRW: 是否只关闭读写分离,取值:"true" | "false",默认为"false"
# @type OnlyCloseRW: Boolean
attr_accessor :InstanceId, :ProxyGroupId, :OnlyCloseRW
def initialize(instanceid=nil, proxygroupid=nil, onlycloserw=nil)
@InstanceId = instanceid
@ProxyGroupId = proxygroupid
@OnlyCloseRW = onlycloserw
end
def deserialize(params)
@InstanceId = params['InstanceId']
@ProxyGroupId = params['ProxyGroupId']
@OnlyCloseRW = params['OnlyCloseRW']
end
end
# CloseCDBProxy返回参数结构体
class CloseCDBProxyResponse < 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
# CloseWanService请求参数结构体
class CloseWanServiceRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
# @type InstanceId: String
attr_accessor :InstanceId
def initialize(instanceid=nil)
@InstanceId = instanceid
end
def deserialize(params)
@InstanceId = params['InstanceId']
end
end
# CloseWanService返回参数结构体
class CloseWanServiceResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@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 CommonTimeWindow < TencentCloud::Common::AbstractModel
# @param Monday: 周一的时间窗,格式如: 02:00-06:00
# @type Monday: String
# @param Tuesday: 周二的时间窗,格式如: 02:00-06:00
# @type Tuesday: String
# @param Wednesday: 周三的时间窗,格式如: 02:00-06:00
# @type Wednesday: String
# @param Thursday: 周四的时间窗,格式如: 02:00-06:00
# @type Thursday: String
# @param Friday: 周五的时间窗,格式如: 02:00-06:00
# @type Friday: String
# @param Saturday: 周六的时间窗,格式如: 02:00-06:00
# @type Saturday: String
# @param Sunday: 周日的时间窗,格式如: 02:00-06:00
# @type Sunday: String
attr_accessor :Monday, :Tuesday, :Wednesday, :Thursday, :Friday, :Saturday, :Sunday
def initialize(monday=nil, tuesday=nil, wednesday=nil, thursday=nil, friday=nil, saturday=nil, sunday=nil)
@Monday = monday
@Tuesday = tuesday
@Wednesday = wednesday
@Thursday = thursday
@Friday = friday
@Saturday = saturday
@Sunday = sunday
end
def deserialize(params)
@Monday = params['Monday']
@Tuesday = params['Tuesday']
@Wednesday = params['Wednesday']
@Thursday = params['Thursday']
@Friday = params['Friday']
@Saturday = params['Saturday']
@Sunday = params['Sunday']
end
end
# 连接池信息
class ConnectionPoolInfo < TencentCloud::Common::AbstractModel
# @param ConnectionPool: 是否开启了连接池
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ConnectionPool: Boolean
# @param ConnectionPoolType: 连接池类型:SessionConnectionPool(会话级别连接池)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ConnectionPoolType: String
# @param PoolConnectionTimeOut: 连接池保持阈值:单位(秒)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PoolConnectionTimeOut: Integer
attr_accessor :ConnectionPool, :ConnectionPoolType, :PoolConnectionTimeOut
def initialize(connectionpool=nil, connectionpooltype=nil, poolconnectiontimeout=nil)
@ConnectionPool = connectionpool
@ConnectionPoolType = connectionpooltype
@PoolConnectionTimeOut = poolconnectiontimeout
end
def deserialize(params)
@ConnectionPool = params['ConnectionPool']
@ConnectionPoolType = params['ConnectionPoolType']
@PoolConnectionTimeOut = params['PoolConnectionTimeOut']
end
end
# CreateAccounts请求参数结构体
class CreateAccountsRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param Accounts: 云数据库账号。
# @type Accounts: Array
# @param Password: 新账户的密码。
# @type Password: String
# @param Description: 备注信息。
# @type Description: String
# @param MaxUserConnections: 新账户最大可用连接数,默认值为10240,最大可设置值为10240。
# @type MaxUserConnections: Integer
attr_accessor :InstanceId, :Accounts, :Password, :Description, :MaxUserConnections
def initialize(instanceid=nil, accounts=nil, password=nil, description=nil, maxuserconnections=nil)
@InstanceId = instanceid
@Accounts = accounts
@Password = password
@Description = description
@MaxUserConnections = maxuserconnections
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
@Password = params['Password']
@Description = params['Description']
@MaxUserConnections = params['MaxUserConnections']
end
end
# CreateAccounts返回参数结构体
class CreateAccountsResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# CreateAuditLogFile请求参数结构体
class CreateAuditLogFileRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param StartTime: 开始时间,格式为:"2017-07-12 10:29:20"。
# @type StartTime: String
# @param EndTime: 结束时间,格式为:"2017-07-12 10:29:20"。
# @type EndTime: String
# @param Order: 排序方式。支持值包括:"ASC" - 升序,"DESC" - 降序。
# @type Order: String
# @param OrderBy: 排序字段。支持值包括:
# "timestamp" - 时间戳;
# "affectRows" - 影响行数;
# "execTime" - 执行时间。
# @type OrderBy: String
# @param Filter: 过滤条件。可按设置的过滤条件过滤日志。
# @type Filter: :class:`Tencentcloud::Cdb.v20170320.models.AuditLogFilter`
attr_accessor :InstanceId, :StartTime, :EndTime, :Order, :OrderBy, :Filter
def initialize(instanceid=nil, starttime=nil, endtime=nil, order=nil, orderby=nil, filter=nil)
@InstanceId = instanceid
@StartTime = starttime
@EndTime = endtime
@Order = order
@OrderBy = orderby
@Filter = filter
end
def deserialize(params)
@InstanceId = params['InstanceId']
@StartTime = params['StartTime']
@EndTime = params['EndTime']
@Order = params['Order']
@OrderBy = params['OrderBy']
unless params['Filter'].nil?
@Filter = AuditLogFilter.new
@Filter.deserialize(params['Filter'])
end
end
end
# CreateAuditLogFile返回参数结构体
class CreateAuditLogFileResponse < TencentCloud::Common::AbstractModel
# @param FileName: 审计日志文件名称。
# @type FileName: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :FileName, :RequestId
def initialize(filename=nil, requestid=nil)
@FileName = filename
@RequestId = requestid
end
def deserialize(params)
@FileName = params['FileName']
@RequestId = params['RequestId']
end
end
# CreateAuditPolicy请求参数结构体
class CreateAuditPolicyRequest < TencentCloud::Common::AbstractModel
# @param Name: 审计策略名称。
# @type Name: String
# @param RuleId: 审计规则 ID。
# @type RuleId: String
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param LogExpireDay: 审计日志保存时长。支持值包括:
# 7 - 一周
# 30 - 一个月;
# 180 - 六个月;
# 365 - 一年;
# 1095 - 三年;
# 1825 - 五年;
# 实例首次开通审计策略时,可传该值,用于设置存储日志保存天数,默认为 30 天。若实例已存在审计策略,则此参数无效,可使用 更改审计服务配置 接口修改日志存储时长。
# @type LogExpireDay: Integer
attr_accessor :Name, :RuleId, :InstanceId, :LogExpireDay
def initialize(name=nil, ruleid=nil, instanceid=nil, logexpireday=nil)
@Name = name
@RuleId = ruleid
@InstanceId = instanceid
@LogExpireDay = logexpireday
end
def deserialize(params)
@Name = params['Name']
@RuleId = params['RuleId']
@InstanceId = params['InstanceId']
@LogExpireDay = params['LogExpireDay']
end
end
# CreateAuditPolicy返回参数结构体
class CreateAuditPolicyResponse < TencentCloud::Common::AbstractModel
# @param PolicyId: 审计策略 ID。
# @type PolicyId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :PolicyId, :RequestId
def initialize(policyid=nil, requestid=nil)
@PolicyId = policyid
@RequestId = requestid
end
def deserialize(params)
@PolicyId = params['PolicyId']
@RequestId = params['RequestId']
end
end
# CreateAuditRule请求参数结构体
class CreateAuditRuleRequest < TencentCloud::Common::AbstractModel
# @param RuleName: 审计规则名称。
# @type RuleName: String
# @param Description: 审计规则描述。
# @type Description: String
# @param RuleFilters: 审计规则过滤条件。若设置了过滤条件,则不会开启全审计。
# @type RuleFilters: Array
# @param AuditAll: 是否开启全审计。支持值包括:false – 不开启全审计,true – 开启全审计。用户未设置审计规则过滤条件时,默认开启全审计。
# @type AuditAll: Boolean
attr_accessor :RuleName, :Description, :RuleFilters, :AuditAll
def initialize(rulename=nil, description=nil, rulefilters=nil, auditall=nil)
@RuleName = rulename
@Description = description
@RuleFilters = rulefilters
@AuditAll = auditall
end
def deserialize(params)
@RuleName = params['RuleName']
@Description = params['Description']
unless params['RuleFilters'].nil?
@RuleFilters = []
params['RuleFilters'].each do |i|
auditfilter_tmp = AuditFilter.new
auditfilter_tmp.deserialize(i)
@RuleFilters << auditfilter_tmp
end
end
@AuditAll = params['AuditAll']
end
end
# CreateAuditRule返回参数结构体
class CreateAuditRuleResponse < TencentCloud::Common::AbstractModel
# @param RuleId: 审计规则 ID。
# @type RuleId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RuleId, :RequestId
def initialize(ruleid=nil, requestid=nil)
@RuleId = ruleid
@RequestId = requestid
end
def deserialize(params)
@RuleId = params['RuleId']
@RequestId = params['RequestId']
end
end
# CreateBackup请求参数结构体
class CreateBackupRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param BackupMethod: 目标备份方法,可选的值:logical - 逻辑冷备,physical - 物理冷备。
# @type BackupMethod: String
# @param BackupDBTableList: 需要备份的库表信息,如果不设置该参数,则默认整实例备份。在 BackupMethod=logical 逻辑备份中才可设置该参数。指定的库表必须存在,否则可能导致备份失败。
# 例:如果需要备份 db1 库的 tb1、tb2 表 和 db2 库。则该参数设置为 [{"Db": "db1", "Table": "tb1"}, {"Db": "db1", "Table": "tb2"}, {"Db": "db2"} ]。
# @type BackupDBTableList: Array
# @param ManualBackupName: 手动备份别名
# @type ManualBackupName: String
attr_accessor :InstanceId, :BackupMethod, :BackupDBTableList, :ManualBackupName
def initialize(instanceid=nil, backupmethod=nil, backupdbtablelist=nil, manualbackupname=nil)
@InstanceId = instanceid
@BackupMethod = backupmethod
@BackupDBTableList = backupdbtablelist
@ManualBackupName = manualbackupname
end
def deserialize(params)
@InstanceId = params['InstanceId']
@BackupMethod = params['BackupMethod']
unless params['BackupDBTableList'].nil?
@BackupDBTableList = []
params['BackupDBTableList'].each do |i|
backupitem_tmp = BackupItem.new
backupitem_tmp.deserialize(i)
@BackupDBTableList << backupitem_tmp
end
end
@ManualBackupName = params['ManualBackupName']
end
end
# CreateBackup返回参数结构体
class CreateBackupResponse < TencentCloud::Common::AbstractModel
# @param BackupId: 备份任务 ID。
# @type BackupId: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :BackupId, :RequestId
def initialize(backupid=nil, requestid=nil)
@BackupId = backupid
@RequestId = requestid
end
def deserialize(params)
@BackupId = params['BackupId']
@RequestId = params['RequestId']
end
end
# CreateCloneInstance请求参数结构体
class CreateCloneInstanceRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 克隆源实例Id。
# @type InstanceId: String
# @param SpecifiedRollbackTime: 如果需要克隆实例回档到指定时间,则指定该值。时间格式为: yyyy-mm-dd hh:mm:ss 。
# @type SpecifiedRollbackTime: String
# @param SpecifiedBackupId: 如果需要克隆实例回档到指定备份的时间点,则指定该值为物理备份的Id。请使用 [查询数据备份文件列表](/document/api/236/15842) 。
# @type SpecifiedBackupId: Integer
# @param UniqVpcId: 私有网络 ID,如果不传则默认选择基础网络,请使用 [查询私有网络列表](/document/api/215/15778) 。
# @type UniqVpcId: String
# @param UniqSubnetId: 私有网络下的子网 ID,如果设置了 UniqVpcId,则 UniqSubnetId 必填,请使用 [查询子网列表](/document/api/215/15784)。
# @type UniqSubnetId: String
# @param Memory: 实例内存大小,单位:MB,需要不低于克隆源实例,默认和源实例相同。
# @type Memory: Integer
# @param Volume: 实例硬盘大小,单位:GB,需要不低于克隆源实例,默认和源实例相同。
# @type Volume: Integer
# @param InstanceName: 新产生的克隆实例名称。
# @type InstanceName: String
# @param SecurityGroup: 安全组参数,可使用 [查询项目安全组信息](https://cloud.tencent.com/document/api/236/15850) 接口查询某个项目的安全组详情。
# @type SecurityGroup: Array
# @param ResourceTags: 实例标签信息。
# @type ResourceTags: Array
# @param Cpu: 实例Cpu核数,需要不低于克隆源实例,默认和源实例相同。
# @type Cpu: Integer
# @param ProtectMode: 数据复制方式,默认为 0,支持值包括:0 - 表示异步复制,1 - 表示半同步复制,2 - 表示强同步复制。
# @type ProtectMode: Integer
# @param DeployMode: 多可用区域,默认为 0,支持值包括:0 - 表示单可用区,1 - 表示多可用区。
# @type DeployMode: Integer
# @param SlaveZone: 新产生的克隆实例备库 1 的可用区信息,默认同源实例 Zone 的值。
# @type SlaveZone: String
# @param BackupZone: 备库 2 的可用区信息,默认为空,克隆强同步主实例时可指定该参数。
# @type BackupZone: String
# @param DeviceType: 克隆实例类型。支持值包括: "UNIVERSAL" - 通用型实例, "EXCLUSIVE" - 独享型实例。 不指定则默认为通用型。
# @type DeviceType: String
# @param InstanceNodes: 新克隆实例节点数。如果需要克隆出三节点实例, 请将该值设置为3 或指定 BackupZone 参数。如果需要克隆出两节点实例,请将该值设置为2。默认克隆出两节点实例。
# @type InstanceNodes: Integer
# @param DeployGroupId: 置放群组 ID。
# @type DeployGroupId: String
# @param DryRun: 是否只预检此次请求。true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制等。如果检查不通过,则返回对应错误码;如果检查通过,则返回RequestId.默认为false:发送正常请求,通过检查后直接创建实例。
# @type DryRun: Boolean
# @param CageId: 金融围拢 ID 。
# @type CageId: String
attr_accessor :InstanceId, :SpecifiedRollbackTime, :SpecifiedBackupId, :UniqVpcId, :UniqSubnetId, :Memory, :Volume, :InstanceName, :SecurityGroup, :ResourceTags, :Cpu, :ProtectMode, :DeployMode, :SlaveZone, :BackupZone, :DeviceType, :InstanceNodes, :DeployGroupId, :DryRun, :CageId
def initialize(instanceid=nil, specifiedrollbacktime=nil, specifiedbackupid=nil, uniqvpcid=nil, uniqsubnetid=nil, memory=nil, volume=nil, instancename=nil, securitygroup=nil, resourcetags=nil, cpu=nil, protectmode=nil, deploymode=nil, slavezone=nil, backupzone=nil, devicetype=nil, instancenodes=nil, deploygroupid=nil, dryrun=nil, cageid=nil)
@InstanceId = instanceid
@SpecifiedRollbackTime = specifiedrollbacktime
@SpecifiedBackupId = specifiedbackupid
@UniqVpcId = uniqvpcid
@UniqSubnetId = uniqsubnetid
@Memory = memory
@Volume = volume
@InstanceName = instancename
@SecurityGroup = securitygroup
@ResourceTags = resourcetags
@Cpu = cpu
@ProtectMode = protectmode
@DeployMode = deploymode
@SlaveZone = slavezone
@BackupZone = backupzone
@DeviceType = devicetype
@InstanceNodes = instancenodes
@DeployGroupId = deploygroupid
@DryRun = dryrun
@CageId = cageid
end
def deserialize(params)
@InstanceId = params['InstanceId']
@SpecifiedRollbackTime = params['SpecifiedRollbackTime']
@SpecifiedBackupId = params['SpecifiedBackupId']
@UniqVpcId = params['UniqVpcId']
@UniqSubnetId = params['UniqSubnetId']
@Memory = params['Memory']
@Volume = params['Volume']
@InstanceName = params['InstanceName']
@SecurityGroup = params['SecurityGroup']
unless params['ResourceTags'].nil?
@ResourceTags = []
params['ResourceTags'].each do |i|
taginfo_tmp = TagInfo.new
taginfo_tmp.deserialize(i)
@ResourceTags << taginfo_tmp
end
end
@Cpu = params['Cpu']
@ProtectMode = params['ProtectMode']
@DeployMode = params['DeployMode']
@SlaveZone = params['SlaveZone']
@BackupZone = params['BackupZone']
@DeviceType = params['DeviceType']
@InstanceNodes = params['InstanceNodes']
@DeployGroupId = params['DeployGroupId']
@DryRun = params['DryRun']
@CageId = params['CageId']
end
end
# CreateCloneInstance返回参数结构体
class CreateCloneInstanceResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务的请求ID,可使用此 ID 查询异步任务的执行结果。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# CreateDBImportJob请求参数结构体
class CreateDBImportJobRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例的 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param User: 云数据库的用户名。
# @type User: String
# @param FileName: 文件名称。该文件是指用户已上传到腾讯云的文件,仅支持.sql文件。
# @type FileName: String
# @param Password: 云数据库实例 User 账号的密码。
# @type Password: String
# @param DbName: 导入的目标数据库名,不传表示不指定数据库。
# @type DbName: String
# @param CosUrl: 腾讯云COS文件链接。 用户需要指定 FileName 或者 CosUrl 其中一个。 COS文件需要是 .sql 文件。
# @type CosUrl: String
attr_accessor :InstanceId, :User, :FileName, :Password, :DbName, :CosUrl
def initialize(instanceid=nil, user=nil, filename=nil, password=nil, dbname=nil, cosurl=nil)
@InstanceId = instanceid
@User = user
@FileName = filename
@Password = password
@DbName = dbname
@CosUrl = cosurl
end
def deserialize(params)
@InstanceId = params['InstanceId']
@User = params['User']
@FileName = params['FileName']
@Password = params['Password']
@DbName = params['DbName']
@CosUrl = params['CosUrl']
end
end
# CreateDBImportJob返回参数结构体
class CreateDBImportJobResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# CreateDBInstanceHour请求参数结构体
class CreateDBInstanceHourRequest < TencentCloud::Common::AbstractModel
# @param GoodsNum: 实例数量,默认值为 1,最小值 1,最大值为 100。
# @type GoodsNum: Integer
# @param Memory: 实例内存大小,单位:MB,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的内存规格。
# @type Memory: Integer
# @param Volume: 实例硬盘大小,单位:GB,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的硬盘范围。
# @type Volume: Integer
# @param EngineVersion: MySQL 版本,值包括:5.5、5.6 、5.7 、8.0,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的实例版本。
# @type EngineVersion: String
# @param UniqVpcId: 私有网络 ID,如果不传则默认选择基础网络,请使用 [查询私有网络列表](/document/api/215/15778) 。
# @type UniqVpcId: String
# @param UniqSubnetId: 私有网络下的子网 ID,如果设置了 UniqVpcId,则 UniqSubnetId 必填,请使用[查询子网列表](/document/api/215/15784)。
# @type UniqSubnetId: String
# @param ProjectId: 项目 ID,不填为默认项目。请使用 [查询项目列表](https://cloud.tencent.com/document/product/378/4400) 接口获取项目 ID。
# @type ProjectId: Integer
# @param Zone: 可用区信息,该参数缺省时,系统会自动选择一个可用区,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的可用区。
# @type Zone: String
# @param MasterInstanceId: 实例 ID,购买只读实例或者灾备实例时必填,该字段表示只读实例或者灾备实例的主实例 ID,请使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口查询云数据库实例 ID。
# @type MasterInstanceId: String
# @param InstanceRole: 实例类型,默认为 master,支持值包括:master - 表示主实例,dr - 表示灾备实例,ro - 表示只读实例。
# @type InstanceRole: String
# @param MasterRegion: 主实例的可用区信息,购买灾备实例时必填。
# @type MasterRegion: String
# @param Port: 自定义端口,端口支持范围:[ 1024-65535 ] 。
# @type Port: Integer
# @param Password: 设置 root 帐号密码,密码规则:8 - 64 个字符,至少包含字母、数字、字符(支持的字符:_+-&=!@#$%^*())中的两种,购买主实例时可指定该参数,购买只读实例或者灾备实例时指定该参数无意义。
# @type Password: String
# @param ParamList: 参数列表,参数格式如 ParamList.0.Name=auto_increment&ParamList.0.Value=1。可通过 [查询默认的可设置参数列表](https://cloud.tencent.com/document/api/236/32662) 查询支持设置的参数。
# @type ParamList: Array
# @param ProtectMode: 数据复制方式,默认为 0,支持值包括:0 - 表示异步复制,1 - 表示半同步复制,2 - 表示强同步复制,购买主实例时可指定该参数,购买只读实例或者灾备实例时指定该参数无意义。
# @type ProtectMode: Integer
# @param DeployMode: 多可用区域,默认为 0,支持值包括:0 - 表示单可用区,1 - 表示多可用区,购买主实例时可指定该参数,购买只读实例或者灾备实例时指定该参数无意义。
# @type DeployMode: Integer
# @param SlaveZone: 备库 1 的可用区信息,默认为 Zone 的值,购买主实例时可指定该参数,购买只读实例或者灾备实例时指定该参数无意义。
# @type SlaveZone: String
# @param BackupZone: 备库 2 的可用区信息,默认为空,购买三节点主实例时可指定该参数。
# @type BackupZone: String
# @param SecurityGroup: 安全组参数,可使用 [查询项目安全组信息](https://cloud.tencent.com/document/api/236/15850) 接口查询某个项目的安全组详情。
# @type SecurityGroup: Array
# @param RoGroup: 只读实例信息。购买只读实例时,该参数必传。
# @type RoGroup: :class:`Tencentcloud::Cdb.v20170320.models.RoGroup`
# @param AutoRenewFlag: 购买按量计费实例该字段无意义。
# @type AutoRenewFlag: Integer
# @param InstanceName: 实例名称。
# @type InstanceName: String
# @param ResourceTags: 实例标签信息。
# @type ResourceTags: Array
# @param DeployGroupId: 置放群组 ID。
# @type DeployGroupId: String
# @param ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间在当天内唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
# @type ClientToken: String
# @param DeviceType: 实例隔离类型。支持值包括: "UNIVERSAL" - 通用型实例, "EXCLUSIVE" - 独享型实例, "BASIC" - 基础版实例。 不指定则默认为通用型实例。
# @type DeviceType: String
# @param ParamTemplateId: 参数模板id。
# @type ParamTemplateId: Integer
# @param AlarmPolicyList: 告警策略id数组。
# @type AlarmPolicyList: Array
# @param InstanceNodes: 实例节点数。对于 RO 和 基础版实例, 该值默认为1。 如果需要购买三节点实例, 请将该值设置为3 或指定 BackupZone 参数。当购买主实例,且未指定该参数和 BackupZone 参数时,该值默认是 2, 即购买两节点实例。
# @type InstanceNodes: Integer
# @param Cpu: 实例cpu核数, 如果不传将根据memory指定的内存值自动填充对应的cpu值。
# @type Cpu: Integer
# @param AutoSyncFlag: 是否自动发起灾备同步功能。该参数仅对购买灾备实例生效。 可选值为:0 - 不自动发起灾备同步;1 - 自动发起灾备同步。该值默认为0。
# @type AutoSyncFlag: Integer
# @param CageId: 金融围拢 ID 。
# @type CageId: String
# @param ParamTemplateType: 默认参数模板类型。支持值包括:"HIGH_STABILITY" - 高稳定模板,"HIGH_PERFORMANCE" - 高性能模板。
# @type ParamTemplateType: String
# @param AlarmPolicyIdList: 告警策略名数组,例如:["policy-uyoee9wg"],AlarmPolicyList不为空时该参数无效。
# @type AlarmPolicyIdList: Array
# @param DryRun: 是否只预检此次请求。true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制等。如果检查不通过,则返回对应错误码;如果检查通过,则返回RequestId.默认为false:发送正常请求,通过检查后直接创建实例。
# @type DryRun: Boolean
attr_accessor :GoodsNum, :Memory, :Volume, :EngineVersion, :UniqVpcId, :UniqSubnetId, :ProjectId, :Zone, :MasterInstanceId, :InstanceRole, :MasterRegion, :Port, :Password, :ParamList, :ProtectMode, :DeployMode, :SlaveZone, :BackupZone, :SecurityGroup, :RoGroup, :AutoRenewFlag, :InstanceName, :ResourceTags, :DeployGroupId, :ClientToken, :DeviceType, :ParamTemplateId, :AlarmPolicyList, :InstanceNodes, :Cpu, :AutoSyncFlag, :CageId, :ParamTemplateType, :AlarmPolicyIdList, :DryRun
def initialize(goodsnum=nil, memory=nil, volume=nil, engineversion=nil, uniqvpcid=nil, uniqsubnetid=nil, projectid=nil, zone=nil, masterinstanceid=nil, instancerole=nil, masterregion=nil, port=nil, password=nil, paramlist=nil, protectmode=nil, deploymode=nil, slavezone=nil, backupzone=nil, securitygroup=nil, rogroup=nil, autorenewflag=nil, instancename=nil, resourcetags=nil, deploygroupid=nil, clienttoken=nil, devicetype=nil, paramtemplateid=nil, alarmpolicylist=nil, instancenodes=nil, cpu=nil, autosyncflag=nil, cageid=nil, paramtemplatetype=nil, alarmpolicyidlist=nil, dryrun=nil)
@GoodsNum = goodsnum
@Memory = memory
@Volume = volume
@EngineVersion = engineversion
@UniqVpcId = uniqvpcid
@UniqSubnetId = uniqsubnetid
@ProjectId = projectid
@Zone = zone
@MasterInstanceId = masterinstanceid
@InstanceRole = instancerole
@MasterRegion = masterregion
@Port = port
@Password = password
@ParamList = paramlist
@ProtectMode = protectmode
@DeployMode = deploymode
@SlaveZone = slavezone
@BackupZone = backupzone
@SecurityGroup = securitygroup
@RoGroup = rogroup
@AutoRenewFlag = autorenewflag
@InstanceName = instancename
@ResourceTags = resourcetags
@DeployGroupId = deploygroupid
@ClientToken = clienttoken
@DeviceType = devicetype
@ParamTemplateId = paramtemplateid
@AlarmPolicyList = alarmpolicylist
@InstanceNodes = instancenodes
@Cpu = cpu
@AutoSyncFlag = autosyncflag
@CageId = cageid
@ParamTemplateType = paramtemplatetype
@AlarmPolicyIdList = alarmpolicyidlist
@DryRun = dryrun
end
def deserialize(params)
@GoodsNum = params['GoodsNum']
@Memory = params['Memory']
@Volume = params['Volume']
@EngineVersion = params['EngineVersion']
@UniqVpcId = params['UniqVpcId']
@UniqSubnetId = params['UniqSubnetId']
@ProjectId = params['ProjectId']
@Zone = params['Zone']
@MasterInstanceId = params['MasterInstanceId']
@InstanceRole = params['InstanceRole']
@MasterRegion = params['MasterRegion']
@Port = params['Port']
@Password = params['Password']
unless params['ParamList'].nil?
@ParamList = []
params['ParamList'].each do |i|
paraminfo_tmp = ParamInfo.new
paraminfo_tmp.deserialize(i)
@ParamList << paraminfo_tmp
end
end
@ProtectMode = params['ProtectMode']
@DeployMode = params['DeployMode']
@SlaveZone = params['SlaveZone']
@BackupZone = params['BackupZone']
@SecurityGroup = params['SecurityGroup']
unless params['RoGroup'].nil?
@RoGroup = RoGroup.new
@RoGroup.deserialize(params['RoGroup'])
end
@AutoRenewFlag = params['AutoRenewFlag']
@InstanceName = params['InstanceName']
unless params['ResourceTags'].nil?
@ResourceTags = []
params['ResourceTags'].each do |i|
taginfo_tmp = TagInfo.new
taginfo_tmp.deserialize(i)
@ResourceTags << taginfo_tmp
end
end
@DeployGroupId = params['DeployGroupId']
@ClientToken = params['ClientToken']
@DeviceType = params['DeviceType']
@ParamTemplateId = params['ParamTemplateId']
@AlarmPolicyList = params['AlarmPolicyList']
@InstanceNodes = params['InstanceNodes']
@Cpu = params['Cpu']
@AutoSyncFlag = params['AutoSyncFlag']
@CageId = params['CageId']
@ParamTemplateType = params['ParamTemplateType']
@AlarmPolicyIdList = params['AlarmPolicyIdList']
@DryRun = params['DryRun']
end
end
# CreateDBInstanceHour返回参数结构体
class CreateDBInstanceHourResponse < TencentCloud::Common::AbstractModel
# @param DealIds: 短订单 ID。
# @type DealIds: Array
# @param InstanceIds: 实例 ID 列表。
# @type InstanceIds: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :DealIds, :InstanceIds, :RequestId
def initialize(dealids=nil, instanceids=nil, requestid=nil)
@DealIds = dealids
@InstanceIds = instanceids
@RequestId = requestid
end
def deserialize(params)
@DealIds = params['DealIds']
@InstanceIds = params['InstanceIds']
@RequestId = params['RequestId']
end
end
# CreateDBInstance请求参数结构体
class CreateDBInstanceRequest < TencentCloud::Common::AbstractModel
# @param Memory: 实例内存大小,单位:MB,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的内存规格。
# @type Memory: Integer
# @param Volume: 实例硬盘大小,单位:GB,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的硬盘范围。
# @type Volume: Integer
# @param Period: 实例时长,单位:月,可选值包括 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。
# @type Period: Integer
# @param GoodsNum: 实例数量,默认值为1, 最小值1,最大值为100。
# @type GoodsNum: Integer
# @param Zone: 可用区信息,该参数缺省时,系统会自动选择一个可用区,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的可用区。
# @type Zone: String
# @param UniqVpcId: 私有网络 ID,如果不传则默认选择基础网络,请使用 [查询私有网络列表](/document/api/215/15778) 。
# @type UniqVpcId: String
# @param UniqSubnetId: 私有网络下的子网 ID,如果设置了 UniqVpcId,则 UniqSubnetId 必填,请使用 [查询子网列表](/document/api/215/15784)。
# @type UniqSubnetId: String
# @param ProjectId: 项目 ID,不填为默认项目。请使用 [查询项目列表](https://cloud.tencent.com/document/product/378/4400) 接口获取项目 ID。购买只读实例和灾备实例时,项目 ID 默认和主实例保持一致。
# @type ProjectId: Integer
# @param Port: 自定义端口,端口支持范围:[ 1024-65535 ]。
# @type Port: Integer
# @param InstanceRole: 实例类型,默认为 master,支持值包括:master - 表示主实例,dr - 表示灾备实例,ro - 表示只读实例。
# @type InstanceRole: String
# @param MasterInstanceId: 实例 ID,购买只读实例时必填,该字段表示只读实例的主实例ID,请使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口查询云数据库实例 ID。
# @type MasterInstanceId: String
# @param EngineVersion: MySQL 版本,值包括:5.5、5.6 和 5.7,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/api/236/17229) 接口获取可创建的实例版本。
# @type EngineVersion: String
# @param Password: 设置 root 帐号密码,密码规则:8 - 64 个字符,至少包含字母、数字、字符(支持的字符:_+-&=!@#$%^*())中的两种,购买主实例时可指定该参数,购买只读实例或者灾备实例时指定该参数无意义。
# @type Password: String
# @param ProtectMode: 数据复制方式,默认为 0,支持值包括:0 - 表示异步复制,1 - 表示半同步复制,2 - 表示强同步复制。
# @type ProtectMode: Integer
# @param DeployMode: 多可用区域,默认为 0,支持值包括:0 - 表示单可用区,1 - 表示多可用区。
# @type DeployMode: Integer
# @param SlaveZone: 备库 1 的可用区信息,默认为 Zone 的值。
# @type SlaveZone: String
# @param ParamList: 参数列表,参数格式如 ParamList.0.Name=auto_increment&ParamList.0.Value=1。可通过 [查询默认的可设置参数列表](https://cloud.tencent.com/document/api/236/32662) 查询支持设置的参数。
# @type ParamList: Array
# @param BackupZone: 备库 2 的可用区信息,默认为空,购买三节点主实例时可指定该参数。
# @type BackupZone: String
# @param AutoRenewFlag: 自动续费标记,可选值为:0 - 不自动续费;1 - 自动续费。
# @type AutoRenewFlag: Integer
# @param MasterRegion: 主实例地域信息,购买灾备实例时,该字段必填。
# @type MasterRegion: String
# @param SecurityGroup: 安全组参数,可使用 [查询项目安全组信息](https://cloud.tencent.com/document/api/236/15850) 接口查询某个项目的安全组详情。
# @type SecurityGroup: Array
# @param RoGroup: 只读实例参数。购买只读实例时,该参数必传。
# @type RoGroup: :class:`Tencentcloud::Cdb.v20170320.models.RoGroup`
# @param InstanceName: 实例名称。
# @type InstanceName: String
# @param ResourceTags: 实例标签信息。
# @type ResourceTags: Array
# @param DeployGroupId: 置放群组 ID。
# @type DeployGroupId: String
# @param ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间在当天内唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。
# @type ClientToken: String
# @param DeviceType: 实例隔离类型。支持值包括: "UNIVERSAL" - 通用型实例, "EXCLUSIVE" - 独享型实例, "BASIC" - 基础版实例。 不指定则默认为通用型实例。
# @type DeviceType: String
# @param ParamTemplateId: 参数模板id。
# @type ParamTemplateId: Integer
# @param AlarmPolicyList: 告警策略id数组。
# @type AlarmPolicyList: Array
# @param InstanceNodes: 实例节点数。对于 RO 和 基础版实例, 该值默认为1。 如果需要购买三节点实例, 请将该值设置为3 或指定 BackupZone 参数。当购买主实例,且未指定该参数和 BackupZone 参数时,该值默认是 2, 即购买两节点实例。
# @type InstanceNodes: Integer
# @param Cpu: 实例cpu核数, 如果不传将根据memory指定的内存值自动填充对应的cpu值。
# @type Cpu: Integer
# @param AutoSyncFlag: 是否自动发起灾备同步功能。该参数仅对购买灾备实例生效。 可选值为:0 - 不自动发起灾备同步;1 - 自动发起灾备同步。该值默认为0。
# @type AutoSyncFlag: Integer
# @param CageId: 金融围拢 ID。
# @type CageId: String
# @param ParamTemplateType: 默认参数模板类型。支持值包括:"HIGH_STABILITY" - 高稳定模板,"HIGH_PERFORMANCE" - 高性能模板。
# @type ParamTemplateType: String
# @param AlarmPolicyIdList: 告警策略名数组,例如:["policy-uyoee9wg"],AlarmPolicyList不为空时该参数无效。
# @type AlarmPolicyIdList: Array
# @param DryRun: 是否只预检此次请求。true:发送检查请求,不会创建实例。检查项包括是否填写了必需参数,请求格式,业务限制等。如果检查不通过,则返回对应错误码;如果检查通过,则返回RequestId.默认为false:发送正常请求,通过检查后直接创建实例。
# @type DryRun: Boolean
attr_accessor :Memory, :Volume, :Period, :GoodsNum, :Zone, :UniqVpcId, :UniqSubnetId, :ProjectId, :Port, :InstanceRole, :MasterInstanceId, :EngineVersion, :Password, :ProtectMode, :DeployMode, :SlaveZone, :ParamList, :BackupZone, :AutoRenewFlag, :MasterRegion, :SecurityGroup, :RoGroup, :InstanceName, :ResourceTags, :DeployGroupId, :ClientToken, :DeviceType, :ParamTemplateId, :AlarmPolicyList, :InstanceNodes, :Cpu, :AutoSyncFlag, :CageId, :ParamTemplateType, :AlarmPolicyIdList, :DryRun
def initialize(memory=nil, volume=nil, period=nil, goodsnum=nil, zone=nil, uniqvpcid=nil, uniqsubnetid=nil, projectid=nil, port=nil, instancerole=nil, masterinstanceid=nil, engineversion=nil, password=nil, protectmode=nil, deploymode=nil, slavezone=nil, paramlist=nil, backupzone=nil, autorenewflag=nil, masterregion=nil, securitygroup=nil, rogroup=nil, instancename=nil, resourcetags=nil, deploygroupid=nil, clienttoken=nil, devicetype=nil, paramtemplateid=nil, alarmpolicylist=nil, instancenodes=nil, cpu=nil, autosyncflag=nil, cageid=nil, paramtemplatetype=nil, alarmpolicyidlist=nil, dryrun=nil)
@Memory = memory
@Volume = volume
@Period = period
@GoodsNum = goodsnum
@Zone = zone
@UniqVpcId = uniqvpcid
@UniqSubnetId = uniqsubnetid
@ProjectId = projectid
@Port = port
@InstanceRole = instancerole
@MasterInstanceId = masterinstanceid
@EngineVersion = engineversion
@Password = password
@ProtectMode = protectmode
@DeployMode = deploymode
@SlaveZone = slavezone
@ParamList = paramlist
@BackupZone = backupzone
@AutoRenewFlag = autorenewflag
@MasterRegion = masterregion
@SecurityGroup = securitygroup
@RoGroup = rogroup
@InstanceName = instancename
@ResourceTags = resourcetags
@DeployGroupId = deploygroupid
@ClientToken = clienttoken
@DeviceType = devicetype
@ParamTemplateId = paramtemplateid
@AlarmPolicyList = alarmpolicylist
@InstanceNodes = instancenodes
@Cpu = cpu
@AutoSyncFlag = autosyncflag
@CageId = cageid
@ParamTemplateType = paramtemplatetype
@AlarmPolicyIdList = alarmpolicyidlist
@DryRun = dryrun
end
def deserialize(params)
@Memory = params['Memory']
@Volume = params['Volume']
@Period = params['Period']
@GoodsNum = params['GoodsNum']
@Zone = params['Zone']
@UniqVpcId = params['UniqVpcId']
@UniqSubnetId = params['UniqSubnetId']
@ProjectId = params['ProjectId']
@Port = params['Port']
@InstanceRole = params['InstanceRole']
@MasterInstanceId = params['MasterInstanceId']
@EngineVersion = params['EngineVersion']
@Password = params['Password']
@ProtectMode = params['ProtectMode']
@DeployMode = params['DeployMode']
@SlaveZone = params['SlaveZone']
unless params['ParamList'].nil?
@ParamList = []
params['ParamList'].each do |i|
paraminfo_tmp = ParamInfo.new
paraminfo_tmp.deserialize(i)
@ParamList << paraminfo_tmp
end
end
@BackupZone = params['BackupZone']
@AutoRenewFlag = params['AutoRenewFlag']
@MasterRegion = params['MasterRegion']
@SecurityGroup = params['SecurityGroup']
unless params['RoGroup'].nil?
@RoGroup = RoGroup.new
@RoGroup.deserialize(params['RoGroup'])
end
@InstanceName = params['InstanceName']
unless params['ResourceTags'].nil?
@ResourceTags = []
params['ResourceTags'].each do |i|
taginfo_tmp = TagInfo.new
taginfo_tmp.deserialize(i)
@ResourceTags << taginfo_tmp
end
end
@DeployGroupId = params['DeployGroupId']
@ClientToken = params['ClientToken']
@DeviceType = params['DeviceType']
@ParamTemplateId = params['ParamTemplateId']
@AlarmPolicyList = params['AlarmPolicyList']
@InstanceNodes = params['InstanceNodes']
@Cpu = params['Cpu']
@AutoSyncFlag = params['AutoSyncFlag']
@CageId = params['CageId']
@ParamTemplateType = params['ParamTemplateType']
@AlarmPolicyIdList = params['AlarmPolicyIdList']
@DryRun = params['DryRun']
end
end
# CreateDBInstance返回参数结构体
class CreateDBInstanceResponse < TencentCloud::Common::AbstractModel
# @param DealIds: 短订单 ID。
# @type DealIds: Array
# @param InstanceIds: 实例 ID 列表。
# @type InstanceIds: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :DealIds, :InstanceIds, :RequestId
def initialize(dealids=nil, instanceids=nil, requestid=nil)
@DealIds = dealids
@InstanceIds = instanceids
@RequestId = requestid
end
def deserialize(params)
@DealIds = params['DealIds']
@InstanceIds = params['InstanceIds']
@RequestId = params['RequestId']
end
end
# CreateDeployGroup请求参数结构体
class CreateDeployGroupRequest < TencentCloud::Common::AbstractModel
# @param DeployGroupName: 置放群组名称,最长不能超过60个字符。
# @type DeployGroupName: String
# @param Description: 置放群组描述,最长不能超过200个字符。
# @type Description: String
# @param Affinity: 置放群组的亲和性策略,目前仅支持取值为1,策略1表示同台物理机上限制实例的个数。
# @type Affinity: Array
# @param LimitNum: 置放群组亲和性策略1中同台物理机上实例的限制个数。
# @type LimitNum: Integer
# @param DevClass: 置放群组机型属性,可选参数:SH12+SH02、TS85。
# @type DevClass: Array
attr_accessor :DeployGroupName, :Description, :Affinity, :LimitNum, :DevClass
def initialize(deploygroupname=nil, description=nil, affinity=nil, limitnum=nil, devclass=nil)
@DeployGroupName = deploygroupname
@Description = description
@Affinity = affinity
@LimitNum = limitnum
@DevClass = devclass
end
def deserialize(params)
@DeployGroupName = params['DeployGroupName']
@Description = params['Description']
@Affinity = params['Affinity']
@LimitNum = params['LimitNum']
@DevClass = params['DevClass']
end
end
# CreateDeployGroup返回参数结构体
class CreateDeployGroupResponse < TencentCloud::Common::AbstractModel
# @param DeployGroupId: 置放群组ID。
# @type DeployGroupId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :DeployGroupId, :RequestId
def initialize(deploygroupid=nil, requestid=nil)
@DeployGroupId = deploygroupid
@RequestId = requestid
end
def deserialize(params)
@DeployGroupId = params['DeployGroupId']
@RequestId = params['RequestId']
end
end
# CreateParamTemplate请求参数结构体
class CreateParamTemplateRequest < TencentCloud::Common::AbstractModel
# @param Name: 参数模板名称。
# @type Name: String
# @param Description: 参数模板描述。
# @type Description: String
# @param EngineVersion: MySQL 版本号。
# @type EngineVersion: String
# @param TemplateId: 源参数模板 ID。
# @type TemplateId: Integer
# @param ParamList: 参数列表。
# @type ParamList: Array
# @param TemplateType: 默认参数模板类型。支持值包括:"HIGH_STABILITY" - 高稳定模板,"HIGH_PERFORMANCE" - 高性能模板。
# @type TemplateType: String
attr_accessor :Name, :Description, :EngineVersion, :TemplateId, :ParamList, :TemplateType
def initialize(name=nil, description=nil, engineversion=nil, templateid=nil, paramlist=nil, templatetype=nil)
@Name = name
@Description = description
@EngineVersion = engineversion
@TemplateId = templateid
@ParamList = paramlist
@TemplateType = templatetype
end
def deserialize(params)
@Name = params['Name']
@Description = params['Description']
@EngineVersion = params['EngineVersion']
@TemplateId = params['TemplateId']
unless params['ParamList'].nil?
@ParamList = []
params['ParamList'].each do |i|
parameter_tmp = Parameter.new
parameter_tmp.deserialize(i)
@ParamList << parameter_tmp
end
end
@TemplateType = params['TemplateType']
end
end
# CreateParamTemplate返回参数结构体
class CreateParamTemplateResponse < TencentCloud::Common::AbstractModel
# @param TemplateId: 参数模板 ID。
# @type TemplateId: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TemplateId, :RequestId
def initialize(templateid=nil, requestid=nil)
@TemplateId = templateid
@RequestId = requestid
end
def deserialize(params)
@TemplateId = params['TemplateId']
@RequestId = params['RequestId']
end
end
# CreateRoInstanceIp请求参数结构体
class CreateRoInstanceIpRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 只读实例ID,格式如:cdbro-3i70uj0k,与云数据库控制台页面中显示的只读实例ID相同。
# @type InstanceId: String
# @param UniqSubnetId: 子网描述符,例如:subnet-1typ0s7d。
# @type UniqSubnetId: String
# @param UniqVpcId: vpc描述符,例如:vpc-a23yt67j,如果传了该字段则UniqSubnetId必传
# @type UniqVpcId: String
attr_accessor :InstanceId, :UniqSubnetId, :UniqVpcId
def initialize(instanceid=nil, uniqsubnetid=nil, uniqvpcid=nil)
@InstanceId = instanceid
@UniqSubnetId = uniqsubnetid
@UniqVpcId = uniqvpcid
end
def deserialize(params)
@InstanceId = params['InstanceId']
@UniqSubnetId = params['UniqSubnetId']
@UniqVpcId = params['UniqVpcId']
end
end
# CreateRoInstanceIp返回参数结构体
class CreateRoInstanceIpResponse < TencentCloud::Common::AbstractModel
# @param RoVpcId: 只读实例的私有网络的ID。
# @type RoVpcId: Integer
# @param RoSubnetId: 只读实例的子网ID。
# @type RoSubnetId: Integer
# @param RoVip: 只读实例的内网IP地址。
# @type RoVip: String
# @param RoVport: 只读实例的内网端口号。
# @type RoVport: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RoVpcId, :RoSubnetId, :RoVip, :RoVport, :RequestId
def initialize(rovpcid=nil, rosubnetid=nil, rovip=nil, rovport=nil, requestid=nil)
@RoVpcId = rovpcid
@RoSubnetId = rosubnetid
@RoVip = rovip
@RoVport = rovport
@RequestId = requestid
end
def deserialize(params)
@RoVpcId = params['RoVpcId']
@RoSubnetId = params['RoSubnetId']
@RoVip = params['RoVip']
@RoVport = params['RoVport']
@RequestId = params['RequestId']
end
end
# proxy配置
class CustomConfig < TencentCloud::Common::AbstractModel
# @param Device: 设备
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Device: String
# @param Type: 类型
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Type: String
# @param DeviceType: 设备类型
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DeviceType: String
# @param Memory: 内存
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Memory: Integer
# @param Cpu: 核数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Cpu: Integer
attr_accessor :Device, :Type, :DeviceType, :Memory, :Cpu
def initialize(device=nil, type=nil, devicetype=nil, memory=nil, cpu=nil)
@Device = device
@Type = type
@DeviceType = devicetype
@Memory = memory
@Cpu = cpu
end
def deserialize(params)
@Device = params['Device']
@Type = params['Type']
@DeviceType = params['DeviceType']
@Memory = params['Memory']
@Cpu = params['Cpu']
end
end
# 云数据库切换记录
class DBSwitchInfo < TencentCloud::Common::AbstractModel
# @param SwitchTime: 切换时间,格式为:2017-09-03 01:34:31
# @type SwitchTime: String
# @param SwitchType: 切换类型,可能的返回值为:TRANSFER - 数据迁移;MASTER2SLAVE - 主备切换;RECOVERY - 主从恢复
# @type SwitchType: String
attr_accessor :SwitchTime, :SwitchType
def initialize(switchtime=nil, switchtype=nil)
@SwitchTime = switchtime
@SwitchType = switchtype
end
def deserialize(params)
@SwitchTime = params['SwitchTime']
@SwitchType = params['SwitchType']
end
end
# 数据库表名
class DatabaseName < TencentCloud::Common::AbstractModel
# @param DatabaseName: 数据库表名
# @type DatabaseName: String
attr_accessor :DatabaseName
def initialize(databasename=nil)
@DatabaseName = databasename
end
def deserialize(params)
@DatabaseName = params['DatabaseName']
end
end
# 数据库权限
class DatabasePrivilege < TencentCloud::Common::AbstractModel
# @param Privileges: 权限信息
# @type Privileges: Array
# @param Database: 数据库名
# @type Database: String
attr_accessor :Privileges, :Database
def initialize(privileges=nil, database=nil)
@Privileges = privileges
@Database = database
end
def deserialize(params)
@Privileges = params['Privileges']
@Database = params['Database']
end
end
# 数据库名以及字符集
class DatabasesWithCharacterLists < TencentCloud::Common::AbstractModel
# @param DatabaseName: 数据库名
# @type DatabaseName: String
# @param CharacterSet: 字符集类型
# @type CharacterSet: String
attr_accessor :DatabaseName, :CharacterSet
def initialize(databasename=nil, characterset=nil)
@DatabaseName = databasename
@CharacterSet = characterset
end
def deserialize(params)
@DatabaseName = params['DatabaseName']
@CharacterSet = params['CharacterSet']
end
end
# DeleteAccounts请求参数结构体
class DeleteAccountsRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param Accounts: 云数据库账号。
# @type Accounts: Array
attr_accessor :InstanceId, :Accounts
def initialize(instanceid=nil, accounts=nil)
@InstanceId = instanceid
@Accounts = accounts
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
end
end
# DeleteAccounts返回参数结构体
class DeleteAccountsResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# DeleteAuditLogFile请求参数结构体
class DeleteAuditLogFileRequest < TencentCloud::Common::AbstractModel
# @param FileName: 审计日志文件名称。
# @type FileName: String
# @param InstanceId: 实例 ID。
# @type InstanceId: String
attr_accessor :FileName, :InstanceId
def initialize(filename=nil, instanceid=nil)
@FileName = filename
@InstanceId = instanceid
end
def deserialize(params)
@FileName = params['FileName']
@InstanceId = params['InstanceId']
end
end
# DeleteAuditLogFile返回参数结构体
class DeleteAuditLogFileResponse < 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
# DeleteAuditPolicy请求参数结构体
class DeleteAuditPolicyRequest < TencentCloud::Common::AbstractModel
# @param PolicyId: 审计策略 ID。
# @type PolicyId: String
# @param InstanceId: 实例 ID。
# @type InstanceId: String
attr_accessor :PolicyId, :InstanceId
def initialize(policyid=nil, instanceid=nil)
@PolicyId = policyid
@InstanceId = instanceid
end
def deserialize(params)
@PolicyId = params['PolicyId']
@InstanceId = params['InstanceId']
end
end
# DeleteAuditPolicy返回参数结构体
class DeleteAuditPolicyResponse < 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
# DeleteAuditRule请求参数结构体
class DeleteAuditRuleRequest < TencentCloud::Common::AbstractModel
# @param RuleId: 审计规则 ID。
# @type RuleId: String
attr_accessor :RuleId
def initialize(ruleid=nil)
@RuleId = ruleid
end
def deserialize(params)
@RuleId = params['RuleId']
end
end
# DeleteAuditRule返回参数结构体
class DeleteAuditRuleResponse < 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
# DeleteBackup请求参数结构体
class DeleteBackupRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param BackupId: 备份任务 ID。该任务 ID 为 [创建云数据库备份](https://cloud.tencent.com/document/api/236/15844) 接口返回的任务 ID。
# @type BackupId: Integer
attr_accessor :InstanceId, :BackupId
def initialize(instanceid=nil, backupid=nil)
@InstanceId = instanceid
@BackupId = backupid
end
def deserialize(params)
@InstanceId = params['InstanceId']
@BackupId = params['BackupId']
end
end
# DeleteBackup返回参数结构体
class DeleteBackupResponse < 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
# DeleteDeployGroups请求参数结构体
class DeleteDeployGroupsRequest < TencentCloud::Common::AbstractModel
# @param DeployGroupIds: 要删除的置放群组 ID 列表。
# @type DeployGroupIds: Array
attr_accessor :DeployGroupIds
def initialize(deploygroupids=nil)
@DeployGroupIds = deploygroupids
end
def deserialize(params)
@DeployGroupIds = params['DeployGroupIds']
end
end
# DeleteDeployGroups返回参数结构体
class DeleteDeployGroupsResponse < 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
# DeleteParamTemplate请求参数结构体
class DeleteParamTemplateRequest < TencentCloud::Common::AbstractModel
# @param TemplateId: 参数模板ID。
# @type TemplateId: Integer
attr_accessor :TemplateId
def initialize(templateid=nil)
@TemplateId = templateid
end
def deserialize(params)
@TemplateId = params['TemplateId']
end
end
# DeleteParamTemplate返回参数结构体
class DeleteParamTemplateResponse < 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
# DeleteTimeWindow请求参数结构体
class DeleteTimeWindowRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
attr_accessor :InstanceId
def initialize(instanceid=nil)
@InstanceId = instanceid
end
def deserialize(params)
@InstanceId = params['InstanceId']
end
end
# DeleteTimeWindow返回参数结构体
class DeleteTimeWindowResponse < 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 DeployGroupInfo < TencentCloud::Common::AbstractModel
# @param DeployGroupId: 置放群组 ID。
# @type DeployGroupId: String
# @param DeployGroupName: 置放群组名称。
# @type DeployGroupName: String
# @param CreateTime: 创建时间。
# @type CreateTime: String
# @param Quota: 置放群组实例配额,表示一个置放群组中可容纳的最大实例数目。
# @type Quota: Integer
# @param Affinity: 置放群组亲和性策略,目前仅支持策略1,即在物理机纬度打散实例的分布。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Affinity: String
# @param LimitNum: 置放群组亲和性策略1中,同台物理机上同个置放群组实例的限制个数。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type LimitNum: Integer
# @param Description: 置放群组详细信息。
# @type Description: String
# @param DevClass: 置放群组物理机型属性。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DevClass: String
attr_accessor :DeployGroupId, :DeployGroupName, :CreateTime, :Quota, :Affinity, :LimitNum, :Description, :DevClass
def initialize(deploygroupid=nil, deploygroupname=nil, createtime=nil, quota=nil, affinity=nil, limitnum=nil, description=nil, devclass=nil)
@DeployGroupId = deploygroupid
@DeployGroupName = deploygroupname
@CreateTime = createtime
@Quota = quota
@Affinity = affinity
@LimitNum = limitnum
@Description = description
@DevClass = devclass
end
def deserialize(params)
@DeployGroupId = params['DeployGroupId']
@DeployGroupName = params['DeployGroupName']
@CreateTime = params['CreateTime']
@Quota = params['Quota']
@Affinity = params['Affinity']
@LimitNum = params['LimitNum']
@Description = params['Description']
@DevClass = params['DevClass']
end
end
# DescribeAccountPrivileges请求参数结构体
class DescribeAccountPrivilegesRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param User: 数据库的账号名称。
# @type User: String
# @param Host: 数据库的账号域名。
# @type Host: String
attr_accessor :InstanceId, :User, :Host
def initialize(instanceid=nil, user=nil, host=nil)
@InstanceId = instanceid
@User = user
@Host = host
end
def deserialize(params)
@InstanceId = params['InstanceId']
@User = params['User']
@Host = params['Host']
end
end
# DescribeAccountPrivileges返回参数结构体
class DescribeAccountPrivilegesResponse < TencentCloud::Common::AbstractModel
# @param GlobalPrivileges: 全局权限数组。
# @type GlobalPrivileges: Array
# @param DatabasePrivileges: 数据库权限数组。
# @type DatabasePrivileges: Array
# @param TablePrivileges: 数据库中的表权限数组。
# @type TablePrivileges: Array
# @param ColumnPrivileges: 数据库表中的列权限数组。
# @type ColumnPrivileges: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :GlobalPrivileges, :DatabasePrivileges, :TablePrivileges, :ColumnPrivileges, :RequestId
def initialize(globalprivileges=nil, databaseprivileges=nil, tableprivileges=nil, columnprivileges=nil, requestid=nil)
@GlobalPrivileges = globalprivileges
@DatabasePrivileges = databaseprivileges
@TablePrivileges = tableprivileges
@ColumnPrivileges = columnprivileges
@RequestId = requestid
end
def deserialize(params)
@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
@RequestId = params['RequestId']
end
end
# DescribeAccounts请求参数结构体
class DescribeAccountsRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param Offset: 记录偏移量,默认值为0。
# @type Offset: Integer
# @param Limit: 单次请求返回的数量,默认值为20,最小值为1,最大值为100。
# @type Limit: Integer
# @param AccountRegexp: 匹配账号名的正则表达式,规则同 MySQL 官网。
# @type AccountRegexp: String
attr_accessor :InstanceId, :Offset, :Limit, :AccountRegexp
def initialize(instanceid=nil, offset=nil, limit=nil, accountregexp=nil)
@InstanceId = instanceid
@Offset = offset
@Limit = limit
@AccountRegexp = accountregexp
end
def deserialize(params)
@InstanceId = params['InstanceId']
@Offset = params['Offset']
@Limit = params['Limit']
@AccountRegexp = params['AccountRegexp']
end
end
# DescribeAccounts返回参数结构体
class DescribeAccountsResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 符合查询条件的账号数量。
# @type TotalCount: Integer
# @param Items: 符合查询条件的账号详细信息。
# @type Items: Array
# @param MaxUserConnections: 用户可设置实例最大连接数。
# @type MaxUserConnections: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TotalCount, :Items, :MaxUserConnections, :RequestId
def initialize(totalcount=nil, items=nil, maxuserconnections=nil, requestid=nil)
@TotalCount = totalcount
@Items = items
@MaxUserConnections = maxuserconnections
@RequestId = requestid
end
def deserialize(params)
@TotalCount = params['TotalCount']
unless params['Items'].nil?
@Items = []
params['Items'].each do |i|
accountinfo_tmp = AccountInfo.new
accountinfo_tmp.deserialize(i)
@Items << accountinfo_tmp
end
end
@MaxUserConnections = params['MaxUserConnections']
@RequestId = params['RequestId']
end
end
# DescribeAsyncRequestInfo请求参数结构体
class DescribeAsyncRequestInfoRequest < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务的请求 ID。
# @type AsyncRequestId: String
attr_accessor :AsyncRequestId
def initialize(asyncrequestid=nil)
@AsyncRequestId = asyncrequestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
end
end
# DescribeAsyncRequestInfo返回参数结构体
class DescribeAsyncRequestInfoResponse < TencentCloud::Common::AbstractModel
# @param Status: 任务执行结果。可能的取值:INITIAL - 初始化,RUNNING - 运行中,SUCCESS - 执行成功,FAILED - 执行失败,KILLED - 已终止,REMOVED - 已删除,PAUSED - 终止中。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Status: String
# @param Info: 任务执行信息描述。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Info: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Status, :Info, :RequestId
def initialize(status=nil, info=nil, requestid=nil)
@Status = status
@Info = info
@RequestId = requestid
end
def deserialize(params)
@Status = params['Status']
@Info = params['Info']
@RequestId = params['RequestId']
end
end
# DescribeAuditConfig请求参数结构体
class DescribeAuditConfigRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
attr_accessor :InstanceId
def initialize(instanceid=nil)
@InstanceId = instanceid
end
def deserialize(params)
@InstanceId = params['InstanceId']
end
end
# DescribeAuditConfig返回参数结构体
class DescribeAuditConfigResponse < TencentCloud::Common::AbstractModel
# @param LogExpireDay: 审计日志保存时长。目前支持的值包括:[0,7,30,180,365,1095,1825]。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type LogExpireDay: Integer
# @param LogType: 审计日志存储类型。目前支持的值包括:"storage" - 存储型。
# @type LogType: String
# @param IsClosing: 是否正在关闭审计。目前支持的值包括:"false"-否,"true"-是
# @type IsClosing: String
# @param CreateTime: 审计服务开通时间。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CreateTime: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :LogExpireDay, :LogType, :IsClosing, :CreateTime, :RequestId
def initialize(logexpireday=nil, logtype=nil, isclosing=nil, createtime=nil, requestid=nil)
@LogExpireDay = logexpireday
@LogType = logtype
@IsClosing = isclosing
@CreateTime = createtime
@RequestId = requestid
end
def deserialize(params)
@LogExpireDay = params['LogExpireDay']
@LogType = params['LogType']
@IsClosing = params['IsClosing']
@CreateTime = params['CreateTime']
@RequestId = params['RequestId']
end
end
# DescribeAuditLogFiles请求参数结构体
class DescribeAuditLogFilesRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param Limit: 分页大小参数。默认值为 20,最小值为 1,最大值为 100。
# @type Limit: Integer
# @param Offset: 分页偏移量。
# @type Offset: Integer
# @param FileName: 审计日志文件名。
# @type FileName: String
attr_accessor :InstanceId, :Limit, :Offset, :FileName
def initialize(instanceid=nil, limit=nil, offset=nil, filename=nil)
@InstanceId = instanceid
@Limit = limit
@Offset = offset
@FileName = filename
end
def deserialize(params)
@InstanceId = params['InstanceId']
@Limit = params['Limit']
@Offset = params['Offset']
@FileName = params['FileName']
end
end
# DescribeAuditLogFiles返回参数结构体
class DescribeAuditLogFilesResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 符合条件的审计日志文件个数。
# @type TotalCount: Integer
# @param Items: 审计日志文件详情。
# @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|
auditlogfile_tmp = AuditLogFile.new
auditlogfile_tmp.deserialize(i)
@Items << auditlogfile_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeAuditPolicies请求参数结构体
class DescribeAuditPoliciesRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param PolicyId: 审计策略 ID。
# @type PolicyId: String
# @param PolicyName: 审计策略名称。支持按审计策略名称进行模糊匹配查询。
# @type PolicyName: String
# @param Limit: 分页大小参数。默认值为 20,最小值为 1,最大值为 100。
# @type Limit: Integer
# @param Offset: 分页偏移量。
# @type Offset: Integer
# @param RuleId: 审计规则 ID。可使用该审计规则 ID 查询到其关联的审计策略。
# 注意,参数 RuleId,InstanceId,PolicyId,PolicyName 必须至少传一个。
# @type RuleId: String
# @param InstanceName: 实例名称
# @type InstanceName: String
attr_accessor :InstanceId, :PolicyId, :PolicyName, :Limit, :Offset, :RuleId, :InstanceName
def initialize(instanceid=nil, policyid=nil, policyname=nil, limit=nil, offset=nil, ruleid=nil, instancename=nil)
@InstanceId = instanceid
@PolicyId = policyid
@PolicyName = policyname
@Limit = limit
@Offset = offset
@RuleId = ruleid
@InstanceName = instancename
end
def deserialize(params)
@InstanceId = params['InstanceId']
@PolicyId = params['PolicyId']
@PolicyName = params['PolicyName']
@Limit = params['Limit']
@Offset = params['Offset']
@RuleId = params['RuleId']
@InstanceName = params['InstanceName']
end
end
# DescribeAuditPolicies返回参数结构体
class DescribeAuditPoliciesResponse < 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|
auditpolicy_tmp = AuditPolicy.new
auditpolicy_tmp.deserialize(i)
@Items << auditpolicy_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeAuditRules请求参数结构体
class DescribeAuditRulesRequest < TencentCloud::Common::AbstractModel
# @param RuleId: 审计规则 ID。
# @type RuleId: String
# @param RuleName: 审计规则名称。支持按审计规则名称进行模糊匹配查询。
# @type RuleName: String
# @param Limit: 分页大小参数。默认值为 20,最小值为 1,最大值为 100。
# @type Limit: Integer
# @param Offset: 分页偏移量。默认值为0。
# @type Offset: Integer
attr_accessor :RuleId, :RuleName, :Limit, :Offset
def initialize(ruleid=nil, rulename=nil, limit=nil, offset=nil)
@RuleId = ruleid
@RuleName = rulename
@Limit = limit
@Offset = offset
end
def deserialize(params)
@RuleId = params['RuleId']
@RuleName = params['RuleName']
@Limit = params['Limit']
@Offset = params['Offset']
end
end
# DescribeAuditRules返回参数结构体
class DescribeAuditRulesResponse < 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|
auditrule_tmp = AuditRule.new
auditrule_tmp.deserialize(i)
@Items << auditrule_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeBackupConfig请求参数结构体
class DescribeBackupConfigRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
attr_accessor :InstanceId
def initialize(instanceid=nil)
@InstanceId = instanceid
end
def deserialize(params)
@InstanceId = params['InstanceId']
end
end
# DescribeBackupConfig返回参数结构体
class DescribeBackupConfigResponse < TencentCloud::Common::AbstractModel
# @param StartTimeMin: 自动备份开始的最早时间点,单位为时刻。例如,2 - 凌晨 2:00。(该字段已废弃,建议使用 BackupTimeWindow 字段)
# @type StartTimeMin: Integer
# @param StartTimeMax: 自动备份开始的最晚时间点,单位为时刻。例如,6 - 凌晨 6:00。(该字段已废弃,建议使用 BackupTimeWindow 字段)
# @type StartTimeMax: Integer
# @param BackupExpireDays: 备份文件保留时间,单位为天。
# @type BackupExpireDays: Integer
# @param BackupMethod: 备份方式,可能的值为:physical - 物理备份,logical - 逻辑备份。
# @type BackupMethod: String
# @param BinlogExpireDays: Binlog 文件保留时间,单位为天。
# @type BinlogExpireDays: Integer
# @param BackupTimeWindow: 实例自动备份的时间窗。
# @type BackupTimeWindow: :class:`Tencentcloud::Cdb.v20170320.models.CommonTimeWindow`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :StartTimeMin, :StartTimeMax, :BackupExpireDays, :BackupMethod, :BinlogExpireDays, :BackupTimeWindow, :RequestId
def initialize(starttimemin=nil, starttimemax=nil, backupexpiredays=nil, backupmethod=nil, binlogexpiredays=nil, backuptimewindow=nil, requestid=nil)
@StartTimeMin = starttimemin
@StartTimeMax = starttimemax
@BackupExpireDays = backupexpiredays
@BackupMethod = backupmethod
@BinlogExpireDays = binlogexpiredays
@BackupTimeWindow = backuptimewindow
@RequestId = requestid
end
def deserialize(params)
@StartTimeMin = params['StartTimeMin']
@StartTimeMax = params['StartTimeMax']
@BackupExpireDays = params['BackupExpireDays']
@BackupMethod = params['BackupMethod']
@BinlogExpireDays = params['BinlogExpireDays']
unless params['BackupTimeWindow'].nil?
@BackupTimeWindow = CommonTimeWindow.new
@BackupTimeWindow.deserialize(params['BackupTimeWindow'])
end
@RequestId = params['RequestId']
end
end
# DescribeBackupDatabases请求参数结构体
class DescribeBackupDatabasesRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param StartTime: 开始时间,格式为:2017-07-12 10:29:20。
# @type StartTime: String
# @param SearchDatabase: 要查询的数据库名前缀。
# @type SearchDatabase: String
# @param Offset: 分页偏移量。
# @type Offset: Integer
# @param Limit: 分页大小,最小值为1,最大值为2000。
# @type Limit: Integer
attr_accessor :InstanceId, :StartTime, :SearchDatabase, :Offset, :Limit
def initialize(instanceid=nil, starttime=nil, searchdatabase=nil, offset=nil, limit=nil)
@InstanceId = instanceid
@StartTime = starttime
@SearchDatabase = searchdatabase
@Offset = offset
@Limit = limit
end
def deserialize(params)
@InstanceId = params['InstanceId']
@StartTime = params['StartTime']
@SearchDatabase = params['SearchDatabase']
@Offset = params['Offset']
@Limit = params['Limit']
end
end
# DescribeBackupDatabases返回参数结构体
class DescribeBackupDatabasesResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 返回的数据个数。
# @type TotalCount: Integer
# @param Items: 符合查询条件的数据库数组。
# @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|
databasename_tmp = DatabaseName.new
databasename_tmp.deserialize(i)
@Items << databasename_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeBackupDownloadRestriction请求参数结构体
class DescribeBackupDownloadRestrictionRequest < TencentCloud::Common::AbstractModel
def initialize()
end
def deserialize(params)
end
end
# DescribeBackupDownloadRestriction返回参数结构体
class DescribeBackupDownloadRestrictionResponse < TencentCloud::Common::AbstractModel
# @param LimitType: NoLimit 不限制,内外网都可以下载; LimitOnlyIntranet 仅内网可下载; Customize 用户自定义vpc:ip可下载。 只有该值为 Customize 时, LimitVpc 和 LimitIp 才有意义。
# @type LimitType: String
# @param VpcComparisonSymbol: 该参数仅支持 In, 表示 LimitVpc 指定的vpc可以下载。
# @type VpcComparisonSymbol: String
# @param IpComparisonSymbol: In: 指定的ip可以下载; NotIn: 指定的ip不可以下载。
# @type IpComparisonSymbol: String
# @param LimitVpc: 限制下载的vpc设置。
# @type LimitVpc: Array
# @param LimitIp: 限制下载的ip设置。
# @type LimitIp: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :LimitType, :VpcComparisonSymbol, :IpComparisonSymbol, :LimitVpc, :LimitIp, :RequestId
def initialize(limittype=nil, vpccomparisonsymbol=nil, ipcomparisonsymbol=nil, limitvpc=nil, limitip=nil, requestid=nil)
@LimitType = limittype
@VpcComparisonSymbol = vpccomparisonsymbol
@IpComparisonSymbol = ipcomparisonsymbol
@LimitVpc = limitvpc
@LimitIp = limitip
@RequestId = requestid
end
def deserialize(params)
@LimitType = params['LimitType']
@VpcComparisonSymbol = params['VpcComparisonSymbol']
@IpComparisonSymbol = params['IpComparisonSymbol']
unless params['LimitVpc'].nil?
@LimitVpc = []
params['LimitVpc'].each do |i|
backuplimitvpcitem_tmp = BackupLimitVpcItem.new
backuplimitvpcitem_tmp.deserialize(i)
@LimitVpc << backuplimitvpcitem_tmp
end
end
@LimitIp = params['LimitIp']
@RequestId = params['RequestId']
end
end
# DescribeBackupOverview请求参数结构体
class DescribeBackupOverviewRequest < TencentCloud::Common::AbstractModel
# @param Product: 需要查询的云数据库产品类型,目前仅支持 "mysql"。
# @type Product: String
attr_accessor :Product
def initialize(product=nil)
@Product = product
end
def deserialize(params)
@Product = params['Product']
end
end
# DescribeBackupOverview返回参数结构体
class DescribeBackupOverviewResponse < TencentCloud::Common::AbstractModel
# @param BackupCount: 用户在当前地域备份的总个数(包含数据备份和日志备份)。
# @type BackupCount: Integer
# @param BackupVolume: 用户在当前地域备份的总容量
# @type BackupVolume: Integer
# @param BillingVolume: 用户在当前地域备份的计费容量,即超出赠送容量的部分。
# @type BillingVolume: Integer
# @param FreeVolume: 用户在当前地域获得的赠送备份容量。
# @type FreeVolume: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :BackupCount, :BackupVolume, :BillingVolume, :FreeVolume, :RequestId
def initialize(backupcount=nil, backupvolume=nil, billingvolume=nil, freevolume=nil, requestid=nil)
@BackupCount = backupcount
@BackupVolume = backupvolume
@BillingVolume = billingvolume
@FreeVolume = freevolume
@RequestId = requestid
end
def deserialize(params)
@BackupCount = params['BackupCount']
@BackupVolume = params['BackupVolume']
@BillingVolume = params['BillingVolume']
@FreeVolume = params['FreeVolume']
@RequestId = params['RequestId']
end
end
# DescribeBackupSummaries请求参数结构体
class DescribeBackupSummariesRequest < TencentCloud::Common::AbstractModel
# @param Product: 需要查询的云数据库产品类型,目前仅支持 "mysql"。
# @type Product: String
# @param Offset: 分页查询数据的偏移量,默认为0。
# @type Offset: Integer
# @param Limit: 分页查询数据的条目限制,默认值为20。最小值为1,最大值为100。
# @type Limit: Integer
# @param OrderBy: 指定按某一项排序,可选值包括: BackupVolume: 备份容量, DataBackupVolume: 数据备份容量, BinlogBackupVolume: 日志备份容量, AutoBackupVolume: 自动备份容量, ManualBackupVolume: 手动备份容量。默认按照BackupVolume排序。
# @type OrderBy: String
# @param OrderDirection: 指定排序方向,可选值包括: ASC: 正序, DESC: 逆序。默认值为 ASC。
# @type OrderDirection: String
attr_accessor :Product, :Offset, :Limit, :OrderBy, :OrderDirection
def initialize(product=nil, offset=nil, limit=nil, orderby=nil, orderdirection=nil)
@Product = product
@Offset = offset
@Limit = limit
@OrderBy = orderby
@OrderDirection = orderdirection
end
def deserialize(params)
@Product = params['Product']
@Offset = params['Offset']
@Limit = params['Limit']
@OrderBy = params['OrderBy']
@OrderDirection = params['OrderDirection']
end
end
# DescribeBackupSummaries返回参数结构体
class DescribeBackupSummariesResponse < TencentCloud::Common::AbstractModel
# @param Items: 实例备份统计条目。
# @type Items: Array
# @param TotalCount: 实例备份统计总条目数。
# @type TotalCount: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Items, :TotalCount, :RequestId
def initialize(items=nil, totalcount=nil, requestid=nil)
@Items = items
@TotalCount = totalcount
@RequestId = requestid
end
def deserialize(params)
unless params['Items'].nil?
@Items = []
params['Items'].each do |i|
backupsummaryitem_tmp = BackupSummaryItem.new
backupsummaryitem_tmp.deserialize(i)
@Items << backupsummaryitem_tmp
end
end
@TotalCount = params['TotalCount']
@RequestId = params['RequestId']
end
end
# DescribeBackupTables请求参数结构体
class DescribeBackupTablesRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例ID相同。
# @type InstanceId: String
# @param StartTime: 开始时间,格式为:2017-07-12 10:29:20。
# @type StartTime: String
# @param DatabaseName: 指定的数据库名。
# @type DatabaseName: String
# @param SearchTable: 要查询的数据表名前缀。
# @type SearchTable: String
# @param Offset: 分页偏移。
# @type Offset: Integer
# @param Limit: 分页大小,最小值为1,最大值为2000。
# @type Limit: Integer
attr_accessor :InstanceId, :StartTime, :DatabaseName, :SearchTable, :Offset, :Limit
def initialize(instanceid=nil, starttime=nil, databasename=nil, searchtable=nil, offset=nil, limit=nil)
@InstanceId = instanceid
@StartTime = starttime
@DatabaseName = databasename
@SearchTable = searchtable
@Offset = offset
@Limit = limit
end
def deserialize(params)
@InstanceId = params['InstanceId']
@StartTime = params['StartTime']
@DatabaseName = params['DatabaseName']
@SearchTable = params['SearchTable']
@Offset = params['Offset']
@Limit = params['Limit']
end
end
# DescribeBackupTables返回参数结构体
class DescribeBackupTablesResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 返回的数据个数。
# @type TotalCount: Integer
# @param Items: 符合条件的数据表数组。
# @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|
tablename_tmp = TableName.new
tablename_tmp.deserialize(i)
@Items << tablename_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeBackups请求参数结构体
class DescribeBackupsRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param Offset: 偏移量,最小值为0。
# @type Offset: Integer
# @param Limit: 分页大小,默认值为20,最小值为1,最大值为100。
# @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
# DescribeBackups返回参数结构体
class DescribeBackupsResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 符合查询条件的实例总数。
# @type TotalCount: Integer
# @param Items: 符合查询条件的备份信息详情。
# @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|
backupinfo_tmp = BackupInfo.new
backupinfo_tmp.deserialize(i)
@Items << backupinfo_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeBinlogBackupOverview请求参数结构体
class DescribeBinlogBackupOverviewRequest < TencentCloud::Common::AbstractModel
# @param Product: 需要查询的云数据库产品类型,目前仅支持 "mysql"。
# @type Product: String
attr_accessor :Product
def initialize(product=nil)
@Product = product
end
def deserialize(params)
@Product = params['Product']
end
end
# DescribeBinlogBackupOverview返回参数结构体
class DescribeBinlogBackupOverviewResponse < TencentCloud::Common::AbstractModel
# @param BinlogBackupVolume: 总的日志备份容量(单位为字节)。
# @type BinlogBackupVolume: Integer
# @param BinlogBackupCount: 总的日志备份个数。
# @type BinlogBackupCount: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :BinlogBackupVolume, :BinlogBackupCount, :RequestId
def initialize(binlogbackupvolume=nil, binlogbackupcount=nil, requestid=nil)
@BinlogBackupVolume = binlogbackupvolume
@BinlogBackupCount = binlogbackupcount
@RequestId = requestid
end
def deserialize(params)
@BinlogBackupVolume = params['BinlogBackupVolume']
@BinlogBackupCount = params['BinlogBackupCount']
@RequestId = params['RequestId']
end
end
# DescribeBinlogs请求参数结构体
class DescribeBinlogsRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param Offset: 偏移量,最小值为0。
# @type Offset: Integer
# @param Limit: 分页大小,默认值为20,最小值为1,最大值为100。
# @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
# DescribeBinlogs返回参数结构体
class DescribeBinlogsResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 符合查询条件的日志文件总数。
# @type TotalCount: Integer
# @param Items: 符合查询条件的二进制日志文件详情。
# @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|
binloginfo_tmp = BinlogInfo.new
binloginfo_tmp.deserialize(i)
@Items << binloginfo_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeCDBProxy请求参数结构体
class DescribeCDBProxyRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例ID
# @type InstanceId: String
# @param ProxyGroupId: 代理组ID
# @type ProxyGroupId: String
attr_accessor :InstanceId, :ProxyGroupId
def initialize(instanceid=nil, proxygroupid=nil)
@InstanceId = instanceid
@ProxyGroupId = proxygroupid
end
def deserialize(params)
@InstanceId = params['InstanceId']
@ProxyGroupId = params['ProxyGroupId']
end
end
# DescribeCDBProxy返回参数结构体
class DescribeCDBProxyResponse < TencentCloud::Common::AbstractModel
# @param BaseGroup: 代理组基本信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BaseGroup: :class:`Tencentcloud::Cdb.v20170320.models.BaseGroupInfo`
# @param Address: 代理组地址信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Address: :class:`Tencentcloud::Cdb.v20170320.models.Address`
# @param ProxyNode: 代理组节点信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProxyNode: :class:`Tencentcloud::Cdb.v20170320.models.ProxyNodeInfo`
# @param RWInstInfo: 读写分析信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RWInstInfo: :class:`Tencentcloud::Cdb.v20170320.models.RWInfo`
# @param ConnectionPoolInfo: 连接池信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ConnectionPoolInfo: :class:`Tencentcloud::Cdb.v20170320.models.ConnectionPoolInfo`
# @param Count: 代理数量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Count: Integer
# @param ProxyGroup: 代理信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProxyGroup: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :BaseGroup, :Address, :ProxyNode, :RWInstInfo, :ConnectionPoolInfo, :Count, :ProxyGroup, :RequestId
def initialize(basegroup=nil, address=nil, proxynode=nil, rwinstinfo=nil, connectionpoolinfo=nil, count=nil, proxygroup=nil, requestid=nil)
@BaseGroup = basegroup
@Address = address
@ProxyNode = proxynode
@RWInstInfo = rwinstinfo
@ConnectionPoolInfo = connectionpoolinfo
@Count = count
@ProxyGroup = proxygroup
@RequestId = requestid
end
def deserialize(params)
unless params['BaseGroup'].nil?
@BaseGroup = BaseGroupInfo.new
@BaseGroup.deserialize(params['BaseGroup'])
end
unless params['Address'].nil?
@Address = Address.new
@Address.deserialize(params['Address'])
end
unless params['ProxyNode'].nil?
@ProxyNode = ProxyNodeInfo.new
@ProxyNode.deserialize(params['ProxyNode'])
end
unless params['RWInstInfo'].nil?
@RWInstInfo = RWInfo.new
@RWInstInfo.deserialize(params['RWInstInfo'])
end
unless params['ConnectionPoolInfo'].nil?
@ConnectionPoolInfo = ConnectionPoolInfo.new
@ConnectionPoolInfo.deserialize(params['ConnectionPoolInfo'])
end
@Count = params['Count']
unless params['ProxyGroup'].nil?
@ProxyGroup = []
params['ProxyGroup'].each do |i|
proxygroup_tmp = ProxyGroup.new
proxygroup_tmp.deserialize(i)
@ProxyGroup << proxygroup_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeCloneList请求参数结构体
class DescribeCloneListRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 查询指定源实例的克隆任务列表。
# @type InstanceId: String
# @param Offset: 分页查询时的偏移量,默认值为0。
# @type Offset: Integer
# @param Limit: 分页查询时的每页条目数,默认值为20。
# @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
# DescribeCloneList返回参数结构体
class DescribeCloneListResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 满足条件的条目数。
# @type TotalCount: Integer
# @param Items: 克隆任务列表。
# @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|
cloneitem_tmp = CloneItem.new
cloneitem_tmp.deserialize(i)
@Items << cloneitem_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeDBImportRecords请求参数结构体
class DescribeDBImportRecordsRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param StartTime: 开始时间,时间格式如:2016-01-01 00:00:01。
# @type StartTime: String
# @param EndTime: 结束时间,时间格式如:2016-01-01 23:59:59。
# @type EndTime: String
# @param Offset: 分页参数,偏移量,默认值为0。
# @type Offset: Integer
# @param Limit: 分页参数,单次请求返回的数量,默认值为20,最小值为1,最大值为100。
# @type Limit: Integer
attr_accessor :InstanceId, :StartTime, :EndTime, :Offset, :Limit
def initialize(instanceid=nil, starttime=nil, endtime=nil, offset=nil, limit=nil)
@InstanceId = instanceid
@StartTime = starttime
@EndTime = endtime
@Offset = offset
@Limit = limit
end
def deserialize(params)
@InstanceId = params['InstanceId']
@StartTime = params['StartTime']
@EndTime = params['EndTime']
@Offset = params['Offset']
@Limit = params['Limit']
end
end
# DescribeDBImportRecords返回参数结构体
class DescribeDBImportRecordsResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 符合查询条件的导入任务操作日志总数。
# @type TotalCount: Integer
# @param Items: 返回的导入操作记录列表。
# @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|
importrecord_tmp = ImportRecord.new
importrecord_tmp.deserialize(i)
@Items << importrecord_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeDBInstanceCharset请求参数结构体
class DescribeDBInstanceCharsetRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
# @type InstanceId: String
attr_accessor :InstanceId
def initialize(instanceid=nil)
@InstanceId = instanceid
end
def deserialize(params)
@InstanceId = params['InstanceId']
end
end
# DescribeDBInstanceCharset返回参数结构体
class DescribeDBInstanceCharsetResponse < TencentCloud::Common::AbstractModel
# @param Charset: 实例的默认字符集,如 "latin1","utf8" 等。
# @type Charset: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Charset, :RequestId
def initialize(charset=nil, requestid=nil)
@Charset = charset
@RequestId = requestid
end
def deserialize(params)
@Charset = params['Charset']
@RequestId = params['RequestId']
end
end
# DescribeDBInstanceConfig请求参数结构体
class DescribeDBInstanceConfigRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
attr_accessor :InstanceId
def initialize(instanceid=nil)
@InstanceId = instanceid
end
def deserialize(params)
@InstanceId = params['InstanceId']
end
end
# DescribeDBInstanceConfig返回参数结构体
class DescribeDBInstanceConfigResponse < TencentCloud::Common::AbstractModel
# @param ProtectMode: 主实例数据保护方式,可能的返回值:0 - 异步复制方式,1 - 半同步复制方式,2 - 强同步复制方式。
# @type ProtectMode: Integer
# @param DeployMode: 主实例部署方式,可能的返回值:0 - 单可用部署,1 - 多可用区部署。
# @type DeployMode: Integer
# @param Zone: 实例可用区信息,格式如 "ap-shanghai-1"。
# @type Zone: String
# @param SlaveConfig: 备库的配置信息。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SlaveConfig: :class:`Tencentcloud::Cdb.v20170320.models.SlaveConfig`
# @param BackupConfig: 强同步实例第二备库的配置信息。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BackupConfig: :class:`Tencentcloud::Cdb.v20170320.models.BackupConfig`
# @param Switched: 是否切换备库。
# @type Switched: Boolean
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :ProtectMode, :DeployMode, :Zone, :SlaveConfig, :BackupConfig, :Switched, :RequestId
def initialize(protectmode=nil, deploymode=nil, zone=nil, slaveconfig=nil, backupconfig=nil, switched=nil, requestid=nil)
@ProtectMode = protectmode
@DeployMode = deploymode
@Zone = zone
@SlaveConfig = slaveconfig
@BackupConfig = backupconfig
@Switched = switched
@RequestId = requestid
end
def deserialize(params)
@ProtectMode = params['ProtectMode']
@DeployMode = params['DeployMode']
@Zone = params['Zone']
unless params['SlaveConfig'].nil?
@SlaveConfig = SlaveConfig.new
@SlaveConfig.deserialize(params['SlaveConfig'])
end
unless params['BackupConfig'].nil?
@BackupConfig = BackupConfig.new
@BackupConfig.deserialize(params['BackupConfig'])
end
@Switched = params['Switched']
@RequestId = params['RequestId']
end
end
# DescribeDBInstanceGTID请求参数结构体
class DescribeDBInstanceGTIDRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
# @type InstanceId: String
attr_accessor :InstanceId
def initialize(instanceid=nil)
@InstanceId = instanceid
end
def deserialize(params)
@InstanceId = params['InstanceId']
end
end
# DescribeDBInstanceGTID返回参数结构体
class DescribeDBInstanceGTIDResponse < TencentCloud::Common::AbstractModel
# @param IsGTIDOpen: GTID 是否开通的标记,可能的取值为:0 - 未开通,1 - 已开通。
# @type IsGTIDOpen: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :IsGTIDOpen, :RequestId
def initialize(isgtidopen=nil, requestid=nil)
@IsGTIDOpen = isgtidopen
@RequestId = requestid
end
def deserialize(params)
@IsGTIDOpen = params['IsGTIDOpen']
@RequestId = params['RequestId']
end
end
# DescribeDBInstanceInfo请求参数结构体
class DescribeDBInstanceInfoRequest < 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
# DescribeDBInstanceInfo返回参数结构体
class DescribeDBInstanceInfoResponse < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID 。
# @type InstanceId: String
# @param InstanceName: 实例名称。
# @type InstanceName: String
# @param Encryption: 是否开通加密,YES 已开通,NO 未开通。
# @type Encryption: String
# @param KeyId: 加密使用的密钥 ID 。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type KeyId: String
# @param KeyRegion: 密钥所在地域。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type KeyRegion: String
# @param DefaultKmsRegion: 当前 CDB 后端服务使用的 KMS 服务的默认地域。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DefaultKmsRegion: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :InstanceId, :InstanceName, :Encryption, :KeyId, :KeyRegion, :DefaultKmsRegion, :RequestId
def initialize(instanceid=nil, instancename=nil, encryption=nil, keyid=nil, keyregion=nil, defaultkmsregion=nil, requestid=nil)
@InstanceId = instanceid
@InstanceName = instancename
@Encryption = encryption
@KeyId = keyid
@KeyRegion = keyregion
@DefaultKmsRegion = defaultkmsregion
@RequestId = requestid
end
def deserialize(params)
@InstanceId = params['InstanceId']
@InstanceName = params['InstanceName']
@Encryption = params['Encryption']
@KeyId = params['KeyId']
@KeyRegion = params['KeyRegion']
@DefaultKmsRegion = params['DefaultKmsRegion']
@RequestId = params['RequestId']
end
end
# DescribeDBInstanceRebootTime请求参数结构体
class DescribeDBInstanceRebootTimeRequest < TencentCloud::Common::AbstractModel
# @param InstanceIds: 实例的 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceIds: Array
attr_accessor :InstanceIds
def initialize(instanceids=nil)
@InstanceIds = instanceids
end
def deserialize(params)
@InstanceIds = params['InstanceIds']
end
end
# DescribeDBInstanceRebootTime返回参数结构体
class DescribeDBInstanceRebootTimeResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 符合查询条件的实例总数。
# @type TotalCount: Integer
# @param Items: 返回的参数信息。
# @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|
instancereboottime_tmp = InstanceRebootTime.new
instancereboottime_tmp.deserialize(i)
@Items << instancereboottime_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeDBInstances请求参数结构体
class DescribeDBInstancesRequest < TencentCloud::Common::AbstractModel
# @param ProjectId: 项目 ID,可使用 [查询项目列表](https://cloud.tencent.com/document/product/378/4400) 接口查询项目 ID。
# @type ProjectId: Integer
# @param InstanceTypes: 实例类型,可取值:1 - 主实例,2 - 灾备实例,3 - 只读实例。
# @type InstanceTypes: Array
# @param Vips: 实例的内网 IP 地址。
# @type Vips: Array
# @param Status: 实例状态,可取值:
0 - 创建中
1 - 运行中
4 - 正在进行隔离操作
5 - 隔离中(可在回收站恢复开机)
# @type Status: Array
# @param Offset: 偏移量,默认值为 0。
# @type Offset: Integer
# @param Limit: 单次请求返回的数量,默认值为 20,最大值为 2000。
# @type Limit: Integer
# @param SecurityGroupId: 安全组 ID。当使用安全组 ID 为过滤条件时,需指定 WithSecurityGroup 参数为 1。
# @type SecurityGroupId: String
# @param PayTypes: 付费类型,可取值:0 - 包年包月,1 - 小时计费。
# @type PayTypes: Array
# @param InstanceNames: 实例名称。
# @type InstanceNames: Array
# @param TaskStatus: 实例任务状态,可能取值:
0 - 没有任务
1 - 升级中
2 - 数据导入中
3 - 开放Slave中
4 - 外网访问开通中
5 - 批量操作执行中
6 - 回档中
7 - 外网访问关闭中
8 - 密码修改中
9 - 实例名修改中
10 - 重启中
12 - 自建迁移中
13 - 删除库表中
14 - 灾备实例创建同步中
15 - 升级待切换
16 - 升级切换中
17 - 升级切换完成
19 - 参数设置待执行
# @type TaskStatus: Array
# @param EngineVersions: 实例数据库引擎版本,可能取值:5.1、5.5、5.6 和 5.7。
# @type EngineVersions: Array
# @param VpcIds: 私有网络的 ID。
# @type VpcIds: Array
# @param ZoneIds: 可用区的 ID。
# @type ZoneIds: Array
# @param SubnetIds: 子网 ID。
# @type SubnetIds: Array
# @param CdbErrors: 是否锁定标记。
# @type CdbErrors: Array
# @param OrderBy: 返回结果集排序的字段,目前支持:"InstanceId","InstanceName","CreateTime","DeadlineTime"。
# @type OrderBy: String
# @param OrderDirection: 返回结果集排序方式,目前支持:"ASC" 或者 "DESC"。
# @type OrderDirection: String
# @param WithSecurityGroup: 是否以安全组 ID 为过滤条件。
# @type WithSecurityGroup: Integer
# @param WithExCluster: 是否包含独享集群详细信息,可取值:0 - 不包含,1 - 包含。
# @type WithExCluster: Integer
# @param ExClusterId: 独享集群 ID。
# @type ExClusterId: String
# @param InstanceIds: 实例 ID。
# @type InstanceIds: Array
# @param InitFlag: 初始化标记,可取值:0 - 未初始化,1 - 初始化。
# @type InitFlag: Integer
# @param WithDr: 是否包含灾备关系对应的实例,可取值:0 - 不包含,1 - 包含。默认取值为1。如果拉取主实例,则灾备关系的数据在DrInfo字段中, 如果拉取灾备实例, 则灾备关系的数据在MasterInfo字段中。灾备关系中只包含部分基本的数据,详细的数据需要自行调接口拉取。
# @type WithDr: Integer
# @param WithRo: 是否包含只读实例,可取值:0 - 不包含,1 - 包含。默认取值为1。
# @type WithRo: Integer
# @param WithMaster: 是否包含主实例,可取值:0 - 不包含,1 - 包含。默认取值为1。
# @type WithMaster: Integer
# @param DeployGroupIds: 置放群组ID列表。
# @type DeployGroupIds: Array
# @param TagKeysForSearch: 是否以标签键为过滤条件。
# @type TagKeysForSearch: Array
# @param CageIds: 金融围拢 ID 。
# @type CageIds: Array
attr_accessor :ProjectId, :InstanceTypes, :Vips, :Status, :Offset, :Limit, :SecurityGroupId, :PayTypes, :InstanceNames, :TaskStatus, :EngineVersions, :VpcIds, :ZoneIds, :SubnetIds, :CdbErrors, :OrderBy, :OrderDirection, :WithSecurityGroup, :WithExCluster, :ExClusterId, :InstanceIds, :InitFlag, :WithDr, :WithRo, :WithMaster, :DeployGroupIds, :TagKeysForSearch, :CageIds
def initialize(projectid=nil, instancetypes=nil, vips=nil, status=nil, offset=nil, limit=nil, securitygroupid=nil, paytypes=nil, instancenames=nil, taskstatus=nil, engineversions=nil, vpcids=nil, zoneids=nil, subnetids=nil, cdberrors=nil, orderby=nil, orderdirection=nil, withsecuritygroup=nil, withexcluster=nil, exclusterid=nil, instanceids=nil, initflag=nil, withdr=nil, withro=nil, withmaster=nil, deploygroupids=nil, tagkeysforsearch=nil, cageids=nil)
@ProjectId = projectid
@InstanceTypes = instancetypes
@Vips = vips
@Status = status
@Offset = offset
@Limit = limit
@SecurityGroupId = securitygroupid
@PayTypes = paytypes
@InstanceNames = instancenames
@TaskStatus = taskstatus
@EngineVersions = engineversions
@VpcIds = vpcids
@ZoneIds = zoneids
@SubnetIds = subnetids
@CdbErrors = cdberrors
@OrderBy = orderby
@OrderDirection = orderdirection
@WithSecurityGroup = withsecuritygroup
@WithExCluster = withexcluster
@ExClusterId = exclusterid
@InstanceIds = instanceids
@InitFlag = initflag
@WithDr = withdr
@WithRo = withro
@WithMaster = withmaster
@DeployGroupIds = deploygroupids
@TagKeysForSearch = tagkeysforsearch
@CageIds = cageids
end
def deserialize(params)
@ProjectId = params['ProjectId']
@InstanceTypes = params['InstanceTypes']
@Vips = params['Vips']
@Status = params['Status']
@Offset = params['Offset']
@Limit = params['Limit']
@SecurityGroupId = params['SecurityGroupId']
@PayTypes = params['PayTypes']
@InstanceNames = params['InstanceNames']
@TaskStatus = params['TaskStatus']
@EngineVersions = params['EngineVersions']
@VpcIds = params['VpcIds']
@ZoneIds = params['ZoneIds']
@SubnetIds = params['SubnetIds']
@CdbErrors = params['CdbErrors']
@OrderBy = params['OrderBy']
@OrderDirection = params['OrderDirection']
@WithSecurityGroup = params['WithSecurityGroup']
@WithExCluster = params['WithExCluster']
@ExClusterId = params['ExClusterId']
@InstanceIds = params['InstanceIds']
@InitFlag = params['InitFlag']
@WithDr = params['WithDr']
@WithRo = params['WithRo']
@WithMaster = params['WithMaster']
@DeployGroupIds = params['DeployGroupIds']
@TagKeysForSearch = params['TagKeysForSearch']
@CageIds = params['CageIds']
end
end
# DescribeDBInstances返回参数结构体
class DescribeDBInstancesResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 符合查询条件的实例总数。
# @type TotalCount: Integer
# @param Items: 实例详细信息。
# @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|
instanceinfo_tmp = InstanceInfo.new
instanceinfo_tmp.deserialize(i)
@Items << instanceinfo_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeDBPrice请求参数结构体
class DescribeDBPriceRequest < TencentCloud::Common::AbstractModel
# @param Period: 实例时长,单位:月,最小值 1,最大值为 36;查询按量计费价格时,该字段无效。
# @type Period: Integer
# @param Zone: 可用区信息,格式如 "ap-guangzhou-2"。具体能设置的值请通过 DescribeDBZoneConfig 接口查询。InstanceId为空时该参数为必填项。
# @type Zone: String
# @param GoodsNum: 实例数量,默认值为 1,最小值 1,最大值为 100。InstanceId为空时该参数为必填项。
# @type GoodsNum: Integer
# @param Memory: 实例内存大小,单位:MB。InstanceId为空时该参数为必填项。
# @type Memory: Integer
# @param Volume: 实例硬盘大小,单位:GB。InstanceId为空时该参数为必填项。
# @type Volume: Integer
# @param InstanceRole: 实例类型,默认为 master,支持值包括:master - 表示主实例,ro - 表示只读实例,dr - 表示灾备实例。InstanceId为空时该参数为必填项。
# @type InstanceRole: String
# @param PayType: 付费类型,支持值包括:PRE_PAID - 包年包月,HOUR_PAID - 按量计费。InstanceId为空时该参数为必填项。
# @type PayType: String
# @param ProtectMode: 数据复制方式,默认为 0,支持值包括:0 - 表示异步复制,1 - 表示半同步复制,2 - 表示强同步复制。
# @type ProtectMode: Integer
# @param DeviceType: 实例隔离类型。支持值包括: "UNIVERSAL" - 通用型实例, "EXCLUSIVE" - 独享型实例, "BASIC" - 基础版实例。 不指定则默认为通用型实例。
# @type DeviceType: String
# @param InstanceNodes: 实例节点数。对于 RO 和 基础版实例, 该值默认为1。 如果需要询价三节点实例, 请将该值设置为3。其余主实例该值默认为2。
# @type InstanceNodes: Integer
# @param Cpu: 询价实例的CPU核心数目,单位:核,为保证传入 CPU 值有效,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/product/236/17229) 接口获取可售卖的核心数目,当未指定该值时,将按照 Memory 大小补全一个默认值。
# @type Cpu: Integer
# @param InstanceId: 续费询价实例ID。如需查询实例续费价格,填写InstanceId和Period即可。
# @type InstanceId: String
attr_accessor :Period, :Zone, :GoodsNum, :Memory, :Volume, :InstanceRole, :PayType, :ProtectMode, :DeviceType, :InstanceNodes, :Cpu, :InstanceId
def initialize(period=nil, zone=nil, goodsnum=nil, memory=nil, volume=nil, instancerole=nil, paytype=nil, protectmode=nil, devicetype=nil, instancenodes=nil, cpu=nil, instanceid=nil)
@Period = period
@Zone = zone
@GoodsNum = goodsnum
@Memory = memory
@Volume = volume
@InstanceRole = instancerole
@PayType = paytype
@ProtectMode = protectmode
@DeviceType = devicetype
@InstanceNodes = instancenodes
@Cpu = cpu
@InstanceId = instanceid
end
def deserialize(params)
@Period = params['Period']
@Zone = params['Zone']
@GoodsNum = params['GoodsNum']
@Memory = params['Memory']
@Volume = params['Volume']
@InstanceRole = params['InstanceRole']
@PayType = params['PayType']
@ProtectMode = params['ProtectMode']
@DeviceType = params['DeviceType']
@InstanceNodes = params['InstanceNodes']
@Cpu = params['Cpu']
@InstanceId = params['InstanceId']
end
end
# DescribeDBPrice返回参数结构体
class DescribeDBPriceResponse < TencentCloud::Common::AbstractModel
# @param Price: 实例价格,单位:分(人民币)。
# @type Price: Integer
# @param OriginalPrice: 实例原价,单位:分(人民币)。
# @type OriginalPrice: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Price, :OriginalPrice, :RequestId
def initialize(price=nil, originalprice=nil, requestid=nil)
@Price = price
@OriginalPrice = originalprice
@RequestId = requestid
end
def deserialize(params)
@Price = params['Price']
@OriginalPrice = params['OriginalPrice']
@RequestId = params['RequestId']
end
end
# DescribeDBSecurityGroups请求参数结构体
class DescribeDBSecurityGroupsRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例ID,格式如:cdb-c1nl9rpv或者cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
# @type InstanceId: String
# @param ForReadonlyInstance: 该值默认为False,表示当传入只读实例ID时,查询操作的是对应只读组的安全组。如果需要操作只读实例ID的安全组, 需要将该入参置为True。
# @type ForReadonlyInstance: Boolean
attr_accessor :InstanceId, :ForReadonlyInstance
def initialize(instanceid=nil, forreadonlyinstance=nil)
@InstanceId = instanceid
@ForReadonlyInstance = forreadonlyinstance
end
def deserialize(params)
@InstanceId = params['InstanceId']
@ForReadonlyInstance = params['ForReadonlyInstance']
end
end
# DescribeDBSecurityGroups返回参数结构体
class DescribeDBSecurityGroupsResponse < 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
# DescribeDBSwitchRecords请求参数结构体
class DescribeDBSwitchRecordsRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param Offset: 分页偏移量。
# @type Offset: Integer
# @param Limit: 分页大小,默认值为 50,最小值为 1,最大值为 2000。
# @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
# DescribeDBSwitchRecords返回参数结构体
class DescribeDBSwitchRecordsResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 实例切换记录的总数。
# @type TotalCount: Integer
# @param Items: 实例切换记录详情。
# @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|
dbswitchinfo_tmp = DBSwitchInfo.new
dbswitchinfo_tmp.deserialize(i)
@Items << dbswitchinfo_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeDBZoneConfig请求参数结构体
class DescribeDBZoneConfigRequest < TencentCloud::Common::AbstractModel
def initialize()
end
def deserialize(params)
end
end
# DescribeDBZoneConfig返回参数结构体
class DescribeDBZoneConfigResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 可售卖地域配置数量
# @type TotalCount: Integer
# @param Items: 可售卖地域配置详情
# @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|
regionsellconf_tmp = RegionSellConf.new
regionsellconf_tmp.deserialize(i)
@Items << regionsellconf_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeDataBackupOverview请求参数结构体
class DescribeDataBackupOverviewRequest < TencentCloud::Common::AbstractModel
# @param Product: 需要查询的云数据库产品类型,目前仅支持 "mysql"。
# @type Product: String
attr_accessor :Product
def initialize(product=nil)
@Product = product
end
def deserialize(params)
@Product = params['Product']
end
end
# DescribeDataBackupOverview返回参数结构体
class DescribeDataBackupOverviewResponse < TencentCloud::Common::AbstractModel
# @param DataBackupVolume: 当前地域的数据备份总容量(包含自动备份和手动备份,单位为字节)。
# @type DataBackupVolume: Integer
# @param DataBackupCount: 当前地域的数据备份总个数。
# @type DataBackupCount: Integer
# @param AutoBackupVolume: 当前地域的自动备份总容量。
# @type AutoBackupVolume: Integer
# @param AutoBackupCount: 当前地域的自动备份总个数。
# @type AutoBackupCount: Integer
# @param ManualBackupVolume: 当前地域的手动备份总容量。
# @type ManualBackupVolume: Integer
# @param ManualBackupCount: 当前地域的手动备份总个数。
# @type ManualBackupCount: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :DataBackupVolume, :DataBackupCount, :AutoBackupVolume, :AutoBackupCount, :ManualBackupVolume, :ManualBackupCount, :RequestId
def initialize(databackupvolume=nil, databackupcount=nil, autobackupvolume=nil, autobackupcount=nil, manualbackupvolume=nil, manualbackupcount=nil, requestid=nil)
@DataBackupVolume = databackupvolume
@DataBackupCount = databackupcount
@AutoBackupVolume = autobackupvolume
@AutoBackupCount = autobackupcount
@ManualBackupVolume = manualbackupvolume
@ManualBackupCount = manualbackupcount
@RequestId = requestid
end
def deserialize(params)
@DataBackupVolume = params['DataBackupVolume']
@DataBackupCount = params['DataBackupCount']
@AutoBackupVolume = params['AutoBackupVolume']
@AutoBackupCount = params['AutoBackupCount']
@ManualBackupVolume = params['ManualBackupVolume']
@ManualBackupCount = params['ManualBackupCount']
@RequestId = params['RequestId']
end
end
# DescribeDatabases请求参数结构体
class DescribeDatabasesRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param Offset: 偏移量,最小值为0。
# @type Offset: Integer
# @param Limit: 单次请求数量,默认值为20,最小值为1,最大值为100。
# @type Limit: Integer
# @param DatabaseRegexp: 匹配数据库库名的正则表达式。
# @type DatabaseRegexp: String
attr_accessor :InstanceId, :Offset, :Limit, :DatabaseRegexp
def initialize(instanceid=nil, offset=nil, limit=nil, databaseregexp=nil)
@InstanceId = instanceid
@Offset = offset
@Limit = limit
@DatabaseRegexp = databaseregexp
end
def deserialize(params)
@InstanceId = params['InstanceId']
@Offset = params['Offset']
@Limit = params['Limit']
@DatabaseRegexp = params['DatabaseRegexp']
end
end
# DescribeDatabases返回参数结构体
class DescribeDatabasesResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 符合查询条件的实例总数。
# @type TotalCount: Integer
# @param Items: 返回的实例信息。
# @type Items: Array
# @param DatabaseList: 数据库名以及字符集
# @type DatabaseList: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TotalCount, :Items, :DatabaseList, :RequestId
def initialize(totalcount=nil, items=nil, databaselist=nil, requestid=nil)
@TotalCount = totalcount
@Items = items
@DatabaseList = databaselist
@RequestId = requestid
end
def deserialize(params)
@TotalCount = params['TotalCount']
@Items = params['Items']
unless params['DatabaseList'].nil?
@DatabaseList = []
params['DatabaseList'].each do |i|
databaseswithcharacterlists_tmp = DatabasesWithCharacterLists.new
databaseswithcharacterlists_tmp.deserialize(i)
@DatabaseList << databaseswithcharacterlists_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeDefaultParams请求参数结构体
class DescribeDefaultParamsRequest < TencentCloud::Common::AbstractModel
# @param EngineVersion: mysql版本,目前支持 ["5.1", "5.5", "5.6", "5.7"]。
# @type EngineVersion: String
# @param TemplateType: 默认参数模板类型。支持值包括:"HIGH_STABILITY" - 高稳定模版,"HIGH_PERFORMANCE" - 高性能模版。
# @type TemplateType: String
attr_accessor :EngineVersion, :TemplateType
def initialize(engineversion=nil, templatetype=nil)
@EngineVersion = engineversion
@TemplateType = templatetype
end
def deserialize(params)
@EngineVersion = params['EngineVersion']
@TemplateType = params['TemplateType']
end
end
# DescribeDefaultParams返回参数结构体
class DescribeDefaultParamsResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 参数个数。
# @type TotalCount: Integer
# @param Items: 参数详情。
# @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|
parameterdetail_tmp = ParameterDetail.new
parameterdetail_tmp.deserialize(i)
@Items << parameterdetail_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeDeployGroupList请求参数结构体
class DescribeDeployGroupListRequest < TencentCloud::Common::AbstractModel
# @param DeployGroupId: 置放群组 ID。
# @type DeployGroupId: String
# @param DeployGroupName: 置放群组名称。
# @type DeployGroupName: String
# @param Limit: 返回数量,默认为20,最大值为100。
# @type Limit: Integer
# @param Offset: 偏移量,默认为0。
# @type Offset: Integer
attr_accessor :DeployGroupId, :DeployGroupName, :Limit, :Offset
def initialize(deploygroupid=nil, deploygroupname=nil, limit=nil, offset=nil)
@DeployGroupId = deploygroupid
@DeployGroupName = deploygroupname
@Limit = limit
@Offset = offset
end
def deserialize(params)
@DeployGroupId = params['DeployGroupId']
@DeployGroupName = params['DeployGroupName']
@Limit = params['Limit']
@Offset = params['Offset']
end
end
# DescribeDeployGroupList返回参数结构体
class DescribeDeployGroupListResponse < TencentCloud::Common::AbstractModel
# @param Total: 符合条件的记录总数。
# @type Total: Integer
# @param Items: 返回列表。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Items: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Total, :Items, :RequestId
def initialize(total=nil, items=nil, requestid=nil)
@Total = total
@Items = items
@RequestId = requestid
end
def deserialize(params)
@Total = params['Total']
unless params['Items'].nil?
@Items = []
params['Items'].each do |i|
deploygroupinfo_tmp = DeployGroupInfo.new
deploygroupinfo_tmp.deserialize(i)
@Items << deploygroupinfo_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeDeviceMonitorInfo请求参数结构体
class DescribeDeviceMonitorInfoRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例ID相同。
# @type InstanceId: String
# @param Count: 返回当天最近Count个5分钟粒度的监控数据。最小值1,最大值288,不传该参数默认返回当天所有5分钟粒度监控数据。
# @type Count: Integer
attr_accessor :InstanceId, :Count
def initialize(instanceid=nil, count=nil)
@InstanceId = instanceid
@Count = count
end
def deserialize(params)
@InstanceId = params['InstanceId']
@Count = params['Count']
end
end
# DescribeDeviceMonitorInfo返回参数结构体
class DescribeDeviceMonitorInfoResponse < TencentCloud::Common::AbstractModel
# @param Cpu: 实例CPU监控数据
# @type Cpu: :class:`Tencentcloud::Cdb.v20170320.models.DeviceCpuInfo`
# @param Mem: 实例内存监控数据
# @type Mem: :class:`Tencentcloud::Cdb.v20170320.models.DeviceMemInfo`
# @param Net: 实例网络监控数据
# @type Net: :class:`Tencentcloud::Cdb.v20170320.models.DeviceNetInfo`
# @param Disk: 实例磁盘监控数据
# @type Disk: :class:`Tencentcloud::Cdb.v20170320.models.DeviceDiskInfo`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Cpu, :Mem, :Net, :Disk, :RequestId
def initialize(cpu=nil, mem=nil, net=nil, disk=nil, requestid=nil)
@Cpu = cpu
@Mem = mem
@Net = net
@Disk = disk
@RequestId = requestid
end
def deserialize(params)
unless params['Cpu'].nil?
@Cpu = DeviceCpuInfo.new
@Cpu.deserialize(params['Cpu'])
end
unless params['Mem'].nil?
@Mem = DeviceMemInfo.new
@Mem.deserialize(params['Mem'])
end
unless params['Net'].nil?
@Net = DeviceNetInfo.new
@Net.deserialize(params['Net'])
end
unless params['Disk'].nil?
@Disk = DeviceDiskInfo.new
@Disk.deserialize(params['Disk'])
end
@RequestId = params['RequestId']
end
end
# DescribeErrorLogData请求参数结构体
class DescribeErrorLogDataRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID 。
# @type InstanceId: String
# @param StartTime: 开始时间戳。
# @type StartTime: Integer
# @param EndTime: 结束时间戳。
# @type EndTime: Integer
# @param KeyWords: 要匹配的关键字列表,最多支持15个关键字。
# @type KeyWords: Array
# @param Limit: 分页的返回数量,默认为100,最大为400。
# @type Limit: Integer
# @param Offset: 偏移量,默认为0。
# @type Offset: Integer
# @param InstType: 仅在实例为主实例或者灾备实例时生效,可选值:slave,代表拉取从机的日志。
# @type InstType: String
attr_accessor :InstanceId, :StartTime, :EndTime, :KeyWords, :Limit, :Offset, :InstType
def initialize(instanceid=nil, starttime=nil, endtime=nil, keywords=nil, limit=nil, offset=nil, insttype=nil)
@InstanceId = instanceid
@StartTime = starttime
@EndTime = endtime
@KeyWords = keywords
@Limit = limit
@Offset = offset
@InstType = insttype
end
def deserialize(params)
@InstanceId = params['InstanceId']
@StartTime = params['StartTime']
@EndTime = params['EndTime']
@KeyWords = params['KeyWords']
@Limit = params['Limit']
@Offset = params['Offset']
@InstType = params['InstType']
end
end
# DescribeErrorLogData返回参数结构体
class DescribeErrorLogDataResponse < 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|
errlogitem_tmp = ErrlogItem.new
errlogitem_tmp.deserialize(i)
@Items << errlogitem_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeInstanceParamRecords请求参数结构体
class DescribeInstanceParamRecordsRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
# @type InstanceId: String
# @param Offset: 分页偏移量,默认值:0。
# @type Offset: Integer
# @param Limit: 分页大小,默认值:20。
# @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
# DescribeInstanceParamRecords返回参数结构体
class DescribeInstanceParamRecordsResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 符合条件的记录数。
# @type TotalCount: Integer
# @param Items: 参数修改记录。
# @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|
paramrecord_tmp = ParamRecord.new
paramrecord_tmp.deserialize(i)
@Items << paramrecord_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeInstanceParams请求参数结构体
class DescribeInstanceParamsRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
# @type InstanceId: String
attr_accessor :InstanceId
def initialize(instanceid=nil)
@InstanceId = instanceid
end
def deserialize(params)
@InstanceId = params['InstanceId']
end
end
# DescribeInstanceParams返回参数结构体
class DescribeInstanceParamsResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 实例的参数总数。
# @type TotalCount: Integer
# @param Items: 参数详情。
# @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|
parameterdetail_tmp = ParameterDetail.new
parameterdetail_tmp.deserialize(i)
@Items << parameterdetail_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeLocalBinlogConfig请求参数结构体
class DescribeLocalBinlogConfigRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例ID相同。
# @type InstanceId: String
attr_accessor :InstanceId
def initialize(instanceid=nil)
@InstanceId = instanceid
end
def deserialize(params)
@InstanceId = params['InstanceId']
end
end
# DescribeLocalBinlogConfig返回参数结构体
class DescribeLocalBinlogConfigResponse < TencentCloud::Common::AbstractModel
# @param LocalBinlogConfig: 实例binlog保留策略。
# @type LocalBinlogConfig: :class:`Tencentcloud::Cdb.v20170320.models.LocalBinlogConfig`
# @param LocalBinlogConfigDefault: 该地域默认binlog保留策略。
# @type LocalBinlogConfigDefault: :class:`Tencentcloud::Cdb.v20170320.models.LocalBinlogConfigDefault`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :LocalBinlogConfig, :LocalBinlogConfigDefault, :RequestId
def initialize(localbinlogconfig=nil, localbinlogconfigdefault=nil, requestid=nil)
@LocalBinlogConfig = localbinlogconfig
@LocalBinlogConfigDefault = localbinlogconfigdefault
@RequestId = requestid
end
def deserialize(params)
unless params['LocalBinlogConfig'].nil?
@LocalBinlogConfig = LocalBinlogConfig.new
@LocalBinlogConfig.deserialize(params['LocalBinlogConfig'])
end
unless params['LocalBinlogConfigDefault'].nil?
@LocalBinlogConfigDefault = LocalBinlogConfigDefault.new
@LocalBinlogConfigDefault.deserialize(params['LocalBinlogConfigDefault'])
end
@RequestId = params['RequestId']
end
end
# DescribeParamTemplateInfo请求参数结构体
class DescribeParamTemplateInfoRequest < TencentCloud::Common::AbstractModel
# @param TemplateId: 参数模板 ID。
# @type TemplateId: Integer
attr_accessor :TemplateId
def initialize(templateid=nil)
@TemplateId = templateid
end
def deserialize(params)
@TemplateId = params['TemplateId']
end
end
# DescribeParamTemplateInfo返回参数结构体
class DescribeParamTemplateInfoResponse < TencentCloud::Common::AbstractModel
# @param TemplateId: 参数模板 ID。
# @type TemplateId: Integer
# @param Name: 参数模板名称。
# @type Name: String
# @param EngineVersion: 参数模板对应实例版本
# @type EngineVersion: String
# @param TotalCount: 参数模板中的参数数量
# @type TotalCount: Integer
# @param Items: 参数详情
# @type Items: Array
# @param Description: 参数模板描述
# @type Description: String
# @param TemplateType: 参数模板类型。支持值包括:"HIGH_STABILITY" - 高稳定模板,"HIGH_PERFORMANCE" - 高性能模板。
# @type TemplateType: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :TemplateId, :Name, :EngineVersion, :TotalCount, :Items, :Description, :TemplateType, :RequestId
def initialize(templateid=nil, name=nil, engineversion=nil, totalcount=nil, items=nil, description=nil, templatetype=nil, requestid=nil)
@TemplateId = templateid
@Name = name
@EngineVersion = engineversion
@TotalCount = totalcount
@Items = items
@Description = description
@TemplateType = templatetype
@RequestId = requestid
end
def deserialize(params)
@TemplateId = params['TemplateId']
@Name = params['Name']
@EngineVersion = params['EngineVersion']
@TotalCount = params['TotalCount']
unless params['Items'].nil?
@Items = []
params['Items'].each do |i|
parameterdetail_tmp = ParameterDetail.new
parameterdetail_tmp.deserialize(i)
@Items << parameterdetail_tmp
end
end
@Description = params['Description']
@TemplateType = params['TemplateType']
@RequestId = params['RequestId']
end
end
# DescribeParamTemplates请求参数结构体
class DescribeParamTemplatesRequest < TencentCloud::Common::AbstractModel
# @param EngineVersions: 引擎版本,缺省则查询所有
# @type EngineVersions: Array
attr_accessor :EngineVersions
def initialize(engineversions=nil)
@EngineVersions = engineversions
end
def deserialize(params)
@EngineVersions = params['EngineVersions']
end
end
# DescribeParamTemplates返回参数结构体
class DescribeParamTemplatesResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 该用户的参数模板数量。
# @type TotalCount: Integer
# @param Items: 参数模板详情。
# @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|
paramtemplateinfo_tmp = ParamTemplateInfo.new
paramtemplateinfo_tmp.deserialize(i)
@Items << paramtemplateinfo_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeProjectSecurityGroups请求参数结构体
class DescribeProjectSecurityGroupsRequest < TencentCloud::Common::AbstractModel
# @param ProjectId: 项目ID。
# @type ProjectId: Integer
attr_accessor :ProjectId
def initialize(projectid=nil)
@ProjectId = projectid
end
def deserialize(params)
@ProjectId = params['ProjectId']
end
end
# DescribeProjectSecurityGroups返回参数结构体
class DescribeProjectSecurityGroupsResponse < TencentCloud::Common::AbstractModel
# @param Groups: 安全组详情。
# @type Groups: Array
# @param TotalCount: 安全组规则数量。
# @type TotalCount: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Groups, :TotalCount, :RequestId
def initialize(groups=nil, totalcount=nil, requestid=nil)
@Groups = groups
@TotalCount = totalcount
@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
@TotalCount = params['TotalCount']
@RequestId = params['RequestId']
end
end
# DescribeProxyConnectionPoolConf请求参数结构体
class DescribeProxyConnectionPoolConfRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例ID
# @type InstanceId: String
# @param Offset: 分页
# @type Offset: Integer
# @param Limit: 限制
# @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
# DescribeProxyConnectionPoolConf返回参数结构体
class DescribeProxyConnectionPoolConfResponse < TencentCloud::Common::AbstractModel
# @param Count: 配置规格数量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Count: Integer
# @param PoolConf: 连接池配置规格
# 注意:此字段可能返回 null,表示取不到有效值。
# @type PoolConf: :class:`Tencentcloud::Cdb.v20170320.models.PoolConf`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Count, :PoolConf, :RequestId
def initialize(count=nil, poolconf=nil, requestid=nil)
@Count = count
@PoolConf = poolconf
@RequestId = requestid
end
def deserialize(params)
@Count = params['Count']
unless params['PoolConf'].nil?
@PoolConf = PoolConf.new
@PoolConf.deserialize(params['PoolConf'])
end
@RequestId = params['RequestId']
end
end
# DescribeProxyCustomConf请求参数结构体
class DescribeProxyCustomConfRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例ID
# @type InstanceId: String
# @param Offset: 分页
# @type Offset: Integer
# @param Limit: 限制
# @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
# DescribeProxyCustomConf返回参数结构体
class DescribeProxyCustomConfResponse < TencentCloud::Common::AbstractModel
# @param Count: 代理配置数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Count: Integer
# @param CustomConf: 代理配置
# 注意:此字段可能返回 null,表示取不到有效值。
# @type CustomConf: :class:`Tencentcloud::Cdb.v20170320.models.CustomConfig`
# @param WeightRule: 权重限制
# 注意:此字段可能返回 null,表示取不到有效值。
# @type WeightRule: :class:`Tencentcloud::Cdb.v20170320.models.Rule`
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Count, :CustomConf, :WeightRule, :RequestId
def initialize(count=nil, customconf=nil, weightrule=nil, requestid=nil)
@Count = count
@CustomConf = customconf
@WeightRule = weightrule
@RequestId = requestid
end
def deserialize(params)
@Count = params['Count']
unless params['CustomConf'].nil?
@CustomConf = CustomConfig.new
@CustomConf.deserialize(params['CustomConf'])
end
unless params['WeightRule'].nil?
@WeightRule = Rule.new
@WeightRule.deserialize(params['WeightRule'])
end
@RequestId = params['RequestId']
end
end
# DescribeRoGroups请求参数结构体
class DescribeRoGroupsRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例ID,格式如:cdb-c1nl9rpv或者cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
# @type InstanceId: String
attr_accessor :InstanceId
def initialize(instanceid=nil)
@InstanceId = instanceid
end
def deserialize(params)
@InstanceId = params['InstanceId']
end
end
# DescribeRoGroups返回参数结构体
class DescribeRoGroupsResponse < TencentCloud::Common::AbstractModel
# @param RoGroups: RO组信息数组,一个实例可关联多个RO组。
# @type RoGroups: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RoGroups, :RequestId
def initialize(rogroups=nil, requestid=nil)
@RoGroups = rogroups
@RequestId = requestid
end
def deserialize(params)
unless params['RoGroups'].nil?
@RoGroups = []
params['RoGroups'].each do |i|
rogroup_tmp = RoGroup.new
rogroup_tmp.deserialize(i)
@RoGroups << rogroup_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeRoMinScale请求参数结构体
class DescribeRoMinScaleRequest < TencentCloud::Common::AbstractModel
# @param RoInstanceId: 只读实例ID,格式如:cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同,该参数与MasterInstanceId参数不能同时为空。
# @type RoInstanceId: String
# @param MasterInstanceId: 主实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同,该参数与RoInstanceId参数不能同时为空。注意,当传入参数包含RoInstanceId时,返回值为只读实例升级时的最小规格;当传入参数只包含MasterInstanceId时,返回值为只读实例购买时的最小规格。
# @type MasterInstanceId: String
attr_accessor :RoInstanceId, :MasterInstanceId
def initialize(roinstanceid=nil, masterinstanceid=nil)
@RoInstanceId = roinstanceid
@MasterInstanceId = masterinstanceid
end
def deserialize(params)
@RoInstanceId = params['RoInstanceId']
@MasterInstanceId = params['MasterInstanceId']
end
end
# DescribeRoMinScale返回参数结构体
class DescribeRoMinScaleResponse < TencentCloud::Common::AbstractModel
# @param Memory: 内存规格大小, 单位为:MB。
# @type Memory: Integer
# @param Volume: 磁盘规格大小, 单位为:GB。
# @type Volume: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Memory, :Volume, :RequestId
def initialize(memory=nil, volume=nil, requestid=nil)
@Memory = memory
@Volume = volume
@RequestId = requestid
end
def deserialize(params)
@Memory = params['Memory']
@Volume = params['Volume']
@RequestId = params['RequestId']
end
end
# DescribeRollbackRangeTime请求参数结构体
class DescribeRollbackRangeTimeRequest < TencentCloud::Common::AbstractModel
# @param InstanceIds: 实例 ID 列表,单个实例 ID 的格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceIds: Array
attr_accessor :InstanceIds
def initialize(instanceids=nil)
@InstanceIds = instanceids
end
def deserialize(params)
@InstanceIds = params['InstanceIds']
end
end
# DescribeRollbackRangeTime返回参数结构体
class DescribeRollbackRangeTimeResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 符合查询条件的实例总数。
# @type TotalCount: Integer
# @param Items: 返回的参数信息。
# @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|
instancerollbackrangetime_tmp = InstanceRollbackRangeTime.new
instancerollbackrangetime_tmp.deserialize(i)
@Items << instancerollbackrangetime_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeRollbackTaskDetail请求参数结构体
class DescribeRollbackTaskDetailRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID。与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872)。
# @type InstanceId: String
# @param AsyncRequestId: 异步任务 ID。
# @type AsyncRequestId: String
# @param Limit: 分页参数,每次请求返回的记录数。默认值为 20,最大值为 100。
# @type Limit: Integer
# @param Offset: 分页偏移量。默认为 0。
# @type Offset: Integer
attr_accessor :InstanceId, :AsyncRequestId, :Limit, :Offset
def initialize(instanceid=nil, asyncrequestid=nil, limit=nil, offset=nil)
@InstanceId = instanceid
@AsyncRequestId = asyncrequestid
@Limit = limit
@Offset = offset
end
def deserialize(params)
@InstanceId = params['InstanceId']
@AsyncRequestId = params['AsyncRequestId']
@Limit = params['Limit']
@Offset = params['Offset']
end
end
# DescribeRollbackTaskDetail返回参数结构体
class DescribeRollbackTaskDetailResponse < 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|
rollbacktask_tmp = RollbackTask.new
rollbacktask_tmp.deserialize(i)
@Items << rollbacktask_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeSlowLogData请求参数结构体
class DescribeSlowLogDataRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID。
# @type InstanceId: String
# @param StartTime: 开始时间戳。
# @type StartTime: Integer
# @param EndTime: 结束时间戳。
# @type EndTime: Integer
# @param UserHosts: 客户端 Host 列表。
# @type UserHosts: Array
# @param UserNames: 客户端 用户名 列表。
# @type UserNames: Array
# @param DataBases: 访问的 数据库 列表。
# @type DataBases: Array
# @param SortBy: 排序字段。当前支持:Timestamp,QueryTime,LockTime,RowsExamined,RowsSent 。
# @type SortBy: String
# @param OrderBy: 升序还是降序排列。当前支持:ASC,DESC 。
# @type OrderBy: String
# @param Offset: 偏移量,默认为0。
# @type Offset: Integer
# @param Limit: 一次性返回的记录数量,默认为100,最大为400。
# @type Limit: Integer
# @param InstType: 仅在实例为主实例或者灾备实例时生效,可选值:slave,代表拉取从机的日志。
# @type InstType: String
attr_accessor :InstanceId, :StartTime, :EndTime, :UserHosts, :UserNames, :DataBases, :SortBy, :OrderBy, :Offset, :Limit, :InstType
def initialize(instanceid=nil, starttime=nil, endtime=nil, userhosts=nil, usernames=nil, databases=nil, sortby=nil, orderby=nil, offset=nil, limit=nil, insttype=nil)
@InstanceId = instanceid
@StartTime = starttime
@EndTime = endtime
@UserHosts = userhosts
@UserNames = usernames
@DataBases = databases
@SortBy = sortby
@OrderBy = orderby
@Offset = offset
@Limit = limit
@InstType = insttype
end
def deserialize(params)
@InstanceId = params['InstanceId']
@StartTime = params['StartTime']
@EndTime = params['EndTime']
@UserHosts = params['UserHosts']
@UserNames = params['UserNames']
@DataBases = params['DataBases']
@SortBy = params['SortBy']
@OrderBy = params['OrderBy']
@Offset = params['Offset']
@Limit = params['Limit']
@InstType = params['InstType']
end
end
# DescribeSlowLogData返回参数结构体
class DescribeSlowLogDataResponse < 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|
slowlogitem_tmp = SlowLogItem.new
slowlogitem_tmp.deserialize(i)
@Items << slowlogitem_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeSlowLogs请求参数结构体
class DescribeSlowLogsRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param Offset: 偏移量,默认值为0,最小值为0。
# @type Offset: Integer
# @param Limit: 分页大小,默认值为20,最小值为1,最大值为100。
# @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
# DescribeSlowLogs返回参数结构体
class DescribeSlowLogsResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 符合查询条件的慢查询日志总数。
# @type TotalCount: Integer
# @param Items: 符合查询条件的慢查询日志详情。
# @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|
slowloginfo_tmp = SlowLogInfo.new
slowloginfo_tmp.deserialize(i)
@Items << slowloginfo_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeSupportedPrivileges请求参数结构体
class DescribeSupportedPrivilegesRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
attr_accessor :InstanceId
def initialize(instanceid=nil)
@InstanceId = instanceid
end
def deserialize(params)
@InstanceId = params['InstanceId']
end
end
# DescribeSupportedPrivileges返回参数结构体
class DescribeSupportedPrivilegesResponse < TencentCloud::Common::AbstractModel
# @param GlobalSupportedPrivileges: 实例支持的全局权限。
# @type GlobalSupportedPrivileges: Array
# @param DatabaseSupportedPrivileges: 实例支持的数据库权限。
# @type DatabaseSupportedPrivileges: Array
# @param TableSupportedPrivileges: 实例支持的数据库表权限。
# @type TableSupportedPrivileges: Array
# @param ColumnSupportedPrivileges: 实例支持的数据库列权限。
# @type ColumnSupportedPrivileges: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :GlobalSupportedPrivileges, :DatabaseSupportedPrivileges, :TableSupportedPrivileges, :ColumnSupportedPrivileges, :RequestId
def initialize(globalsupportedprivileges=nil, databasesupportedprivileges=nil, tablesupportedprivileges=nil, columnsupportedprivileges=nil, requestid=nil)
@GlobalSupportedPrivileges = globalsupportedprivileges
@DatabaseSupportedPrivileges = databasesupportedprivileges
@TableSupportedPrivileges = tablesupportedprivileges
@ColumnSupportedPrivileges = columnsupportedprivileges
@RequestId = requestid
end
def deserialize(params)
@GlobalSupportedPrivileges = params['GlobalSupportedPrivileges']
@DatabaseSupportedPrivileges = params['DatabaseSupportedPrivileges']
@TableSupportedPrivileges = params['TableSupportedPrivileges']
@ColumnSupportedPrivileges = params['ColumnSupportedPrivileges']
@RequestId = params['RequestId']
end
end
# DescribeTables请求参数结构体
class DescribeTablesRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param Database: 数据库的名称。
# @type Database: String
# @param Offset: 记录偏移量,默认值为0。
# @type Offset: Integer
# @param Limit: 单次请求返回的数量,默认值为20,最大值为2000。
# @type Limit: Integer
# @param TableRegexp: 匹配数据库表名的正则表达式,规则同 MySQL 官网
# @type TableRegexp: String
attr_accessor :InstanceId, :Database, :Offset, :Limit, :TableRegexp
def initialize(instanceid=nil, database=nil, offset=nil, limit=nil, tableregexp=nil)
@InstanceId = instanceid
@Database = database
@Offset = offset
@Limit = limit
@TableRegexp = tableregexp
end
def deserialize(params)
@InstanceId = params['InstanceId']
@Database = params['Database']
@Offset = params['Offset']
@Limit = params['Limit']
@TableRegexp = params['TableRegexp']
end
end
# DescribeTables返回参数结构体
class DescribeTablesResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 符合查询条件的数据库表总数。
# @type TotalCount: Integer
# @param Items: 返回的数据库表信息。
# @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']
@Items = params['Items']
@RequestId = params['RequestId']
end
end
# DescribeTagsOfInstanceIds请求参数结构体
class DescribeTagsOfInstanceIdsRequest < TencentCloud::Common::AbstractModel
# @param InstanceIds: 实例列表。
# @type InstanceIds: Array
# @param Offset: 分页偏移量。
# @type Offset: Integer
# @param Limit: 分页大小。
# @type Limit: Integer
attr_accessor :InstanceIds, :Offset, :Limit
def initialize(instanceids=nil, offset=nil, limit=nil)
@InstanceIds = instanceids
@Offset = offset
@Limit = limit
end
def deserialize(params)
@InstanceIds = params['InstanceIds']
@Offset = params['Offset']
@Limit = params['Limit']
end
end
# DescribeTagsOfInstanceIds返回参数结构体
class DescribeTagsOfInstanceIdsResponse < TencentCloud::Common::AbstractModel
# @param Offset: 分页偏移量。
# @type Offset: Integer
# @param Limit: 分页大小。
# @type Limit: Integer
# @param Rows: 实例标签信息。
# @type Rows: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Offset, :Limit, :Rows, :RequestId
def initialize(offset=nil, limit=nil, rows=nil, requestid=nil)
@Offset = offset
@Limit = limit
@Rows = rows
@RequestId = requestid
end
def deserialize(params)
@Offset = params['Offset']
@Limit = params['Limit']
unless params['Rows'].nil?
@Rows = []
params['Rows'].each do |i|
tagsinfoofinstance_tmp = TagsInfoOfInstance.new
tagsinfoofinstance_tmp.deserialize(i)
@Rows << tagsinfoofinstance_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeTasks请求参数结构体
class DescribeTasksRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
# @type InstanceId: String
# @param AsyncRequestId: 异步任务请求 ID,执行云数据库相关操作返回的 AsyncRequestId。
# @type AsyncRequestId: String
# @param TaskTypes: 任务类型,不传值则查询所有任务类型,支持的值包括:
# 1 - 数据库回档;
# 2 - SQL操作;
# 3 - 数据导入;
# 5 - 参数设置;
# 6 - 初始化云数据库实例;
# 7 - 重启云数据库实例;
# 8 - 开启云数据库实例GTID;
# 9 - 只读实例升级;
# 10 - 数据库批量回档;
# 11 - 主实例升级;
# 12 - 删除云数据库库表;
# 13 - 灾备实例提升为主。
# @type TaskTypes: Array
# @param TaskStatus: 任务状态,不传值则查询所有任务状态,支持的值包括:
# -1 - 未定义;
# 0 - 初始化;
# 1 - 运行中;
# 2 - 执行成功;
# 3 - 执行失败;
# 4 - 已终止;
# 5 - 已删除;
# 6 - 已暂停。
# @type TaskStatus: Array
# @param StartTimeBegin: 第一个任务的开始时间,用于范围查询,时间格式如:2017-12-31 10:40:01。
# @type StartTimeBegin: String
# @param StartTimeEnd: 最后一个任务的开始时间,用于范围查询,时间格式如:2017-12-31 10:40:01。
# @type StartTimeEnd: String
# @param Offset: 记录偏移量,默认值为0。
# @type Offset: Integer
# @param Limit: 单次请求返回的数量,默认值为20,最大值为100。
# @type Limit: Integer
attr_accessor :InstanceId, :AsyncRequestId, :TaskTypes, :TaskStatus, :StartTimeBegin, :StartTimeEnd, :Offset, :Limit
def initialize(instanceid=nil, asyncrequestid=nil, tasktypes=nil, taskstatus=nil, starttimebegin=nil, starttimeend=nil, offset=nil, limit=nil)
@InstanceId = instanceid
@AsyncRequestId = asyncrequestid
@TaskTypes = tasktypes
@TaskStatus = taskstatus
@StartTimeBegin = starttimebegin
@StartTimeEnd = starttimeend
@Offset = offset
@Limit = limit
end
def deserialize(params)
@InstanceId = params['InstanceId']
@AsyncRequestId = params['AsyncRequestId']
@TaskTypes = params['TaskTypes']
@TaskStatus = params['TaskStatus']
@StartTimeBegin = params['StartTimeBegin']
@StartTimeEnd = params['StartTimeEnd']
@Offset = params['Offset']
@Limit = params['Limit']
end
end
# DescribeTasks返回参数结构体
class DescribeTasksResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 符合查询条件的实例总数。
# @type TotalCount: Integer
# @param Items: 返回的实例任务信息。
# @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|
taskdetail_tmp = TaskDetail.new
taskdetail_tmp.deserialize(i)
@Items << taskdetail_tmp
end
end
@RequestId = params['RequestId']
end
end
# DescribeTimeWindow请求参数结构体
class DescribeTimeWindowRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例ID,格式如:cdb-c1nl9rpv或者cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
# @type InstanceId: String
attr_accessor :InstanceId
def initialize(instanceid=nil)
@InstanceId = instanceid
end
def deserialize(params)
@InstanceId = params['InstanceId']
end
end
# DescribeTimeWindow返回参数结构体
class DescribeTimeWindowResponse < TencentCloud::Common::AbstractModel
# @param Monday: 星期一的可维护时间列表。
# @type Monday: Array
# @param Tuesday: 星期二的可维护时间列表。
# @type Tuesday: Array
# @param Wednesday: 星期三的可维护时间列表。
# @type Wednesday: Array
# @param Thursday: 星期四的可维护时间列表。
# @type Thursday: Array
# @param Friday: 星期五的可维护时间列表。
# @type Friday: Array
# @param Saturday: 星期六的可维护时间列表。
# @type Saturday: Array
# @param Sunday: 星期日的可维护时间列表。
# @type Sunday: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Monday, :Tuesday, :Wednesday, :Thursday, :Friday, :Saturday, :Sunday, :RequestId
def initialize(monday=nil, tuesday=nil, wednesday=nil, thursday=nil, friday=nil, saturday=nil, sunday=nil, requestid=nil)
@Monday = monday
@Tuesday = tuesday
@Wednesday = wednesday
@Thursday = thursday
@Friday = friday
@Saturday = saturday
@Sunday = sunday
@RequestId = requestid
end
def deserialize(params)
@Monday = params['Monday']
@Tuesday = params['Tuesday']
@Wednesday = params['Wednesday']
@Thursday = params['Thursday']
@Friday = params['Friday']
@Saturday = params['Saturday']
@Sunday = params['Sunday']
@RequestId = params['RequestId']
end
end
# DescribeUploadedFiles请求参数结构体
class DescribeUploadedFilesRequest < TencentCloud::Common::AbstractModel
# @param Path: 文件路径。该字段应填用户主账号的OwnerUin信息。
# @type Path: String
# @param Offset: 记录偏移量,默认值为0。
# @type Offset: Integer
# @param Limit: 单次请求返回的数量,默认值为20。
# @type Limit: Integer
attr_accessor :Path, :Offset, :Limit
def initialize(path=nil, offset=nil, limit=nil)
@Path = path
@Offset = offset
@Limit = limit
end
def deserialize(params)
@Path = params['Path']
@Offset = params['Offset']
@Limit = params['Limit']
end
end
# DescribeUploadedFiles返回参数结构体
class DescribeUploadedFilesResponse < TencentCloud::Common::AbstractModel
# @param TotalCount: 符合查询条件的SQL文件总数。
# @type TotalCount: Integer
# @param Items: 返回的SQL文件列表。
# @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|
sqlfileinfo_tmp = SqlFileInfo.new
sqlfileinfo_tmp.deserialize(i)
@Items << sqlfileinfo_tmp
end
end
@RequestId = params['RequestId']
end
end
# CPU负载
class DeviceCpuInfo < TencentCloud::Common::AbstractModel
# @param Rate: 实例CPU平均使用率
# @type Rate: Array
# @param Load: 实例CPU监控数据
# @type Load: Array
attr_accessor :Rate, :Load
def initialize(rate=nil, load=nil)
@Rate = rate
@Load = load
end
def deserialize(params)
unless params['Rate'].nil?
@Rate = []
params['Rate'].each do |i|
devicecpurateinfo_tmp = DeviceCpuRateInfo.new
devicecpurateinfo_tmp.deserialize(i)
@Rate << devicecpurateinfo_tmp
end
end
@Load = params['Load']
end
end
# 实例CPU平均使用率
class DeviceCpuRateInfo < TencentCloud::Common::AbstractModel
# @param CpuCore: Cpu核编号
# @type CpuCore: Integer
# @param Rate: Cpu使用率
# @type Rate: Array
attr_accessor :CpuCore, :Rate
def initialize(cpucore=nil, rate=nil)
@CpuCore = cpucore
@Rate = rate
end
def deserialize(params)
@CpuCore = params['CpuCore']
@Rate = params['Rate']
end
end
# 实例磁盘监控数据
class DeviceDiskInfo < TencentCloud::Common::AbstractModel
# @param IoRatioPerSec: 平均每秒有百分之几的时间用于IO操作
# @type IoRatioPerSec: Array
# @param IoWaitTime: 平均每次设备I/O操作的等待时间*100,单位为毫秒。例如:该值为201,表示平均每次I/O操作等待时间为:201/100=2.1毫秒
# @type IoWaitTime: Array
# @param Read: 磁盘平均每秒完成的读操作次数总和*100。例如:该值为2002,表示磁盘平均每秒完成读操作为:2002/100=20.2次
# @type Read: Array
# @param Write: 磁盘平均每秒完成的写操作次数总和*100。例如:该值为30001,表示磁盘平均每秒完成写操作为:30001/100=300.01次
# @type Write: Array
# @param CapacityRatio: 磁盘空间容量,每两个一组,第一个为已使用容量,第二个为磁盘总容量
# @type CapacityRatio: Array
attr_accessor :IoRatioPerSec, :IoWaitTime, :Read, :Write, :CapacityRatio
def initialize(ioratiopersec=nil, iowaittime=nil, read=nil, write=nil, capacityratio=nil)
@IoRatioPerSec = ioratiopersec
@IoWaitTime = iowaittime
@Read = read
@Write = write
@CapacityRatio = capacityratio
end
def deserialize(params)
@IoRatioPerSec = params['IoRatioPerSec']
@IoWaitTime = params['IoWaitTime']
@Read = params['Read']
@Write = params['Write']
@CapacityRatio = params['CapacityRatio']
end
end
# 实例所在物理机内存监控信息
class DeviceMemInfo < TencentCloud::Common::AbstractModel
# @param Total: 总内存大小。free命令中Mem:一行total的值,单位:KB
# @type Total: Array
# @param Used: 已使用内存。free命令中Mem:一行used的值,单位:KB
# @type Used: Array
attr_accessor :Total, :Used
def initialize(total=nil, used=nil)
@Total = total
@Used = used
end
def deserialize(params)
@Total = params['Total']
@Used = params['Used']
end
end
# 实例所在物理机网络监控信息
class DeviceNetInfo < TencentCloud::Common::AbstractModel
# @param Conn: tcp连接数
# @type Conn: Array
# @param PackageIn: 网卡入包量,单位:个/秒
# @type PackageIn: Array
# @param PackageOut: 网卡出包量,单位:个/秒
# @type PackageOut: Array
# @param FlowIn: 入流量,单位:kbps
# @type FlowIn: Array
# @param FlowOut: 出流量,单位:kbps
# @type FlowOut: Array
attr_accessor :Conn, :PackageIn, :PackageOut, :FlowIn, :FlowOut
def initialize(conn=nil, packagein=nil, packageout=nil, flowin=nil, flowout=nil)
@Conn = conn
@PackageIn = packagein
@PackageOut = packageout
@FlowIn = flowin
@FlowOut = flowout
end
def deserialize(params)
@Conn = params['Conn']
@PackageIn = params['PackageIn']
@PackageOut = params['PackageOut']
@FlowIn = params['FlowIn']
@FlowOut = params['FlowOut']
end
end
# DisassociateSecurityGroups请求参数结构体
class DisassociateSecurityGroupsRequest < TencentCloud::Common::AbstractModel
# @param SecurityGroupId: 安全组 ID。
# @type SecurityGroupId: String
# @param InstanceIds: 实例 ID 列表,一个或者多个实例 ID 组成的数组。
# @type InstanceIds: Array
# @param ForReadonlyInstance: 当传入只读实例ID时,默认操作的是对应只读组的安全组。如果需要操作只读实例ID的安全组, 需要将该入参置为True
# @type ForReadonlyInstance: Boolean
attr_accessor :SecurityGroupId, :InstanceIds, :ForReadonlyInstance
def initialize(securitygroupid=nil, instanceids=nil, forreadonlyinstance=nil)
@SecurityGroupId = securitygroupid
@InstanceIds = instanceids
@ForReadonlyInstance = forreadonlyinstance
end
def deserialize(params)
@SecurityGroupId = params['SecurityGroupId']
@InstanceIds = params['InstanceIds']
@ForReadonlyInstance = params['ForReadonlyInstance']
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
# 灾备实例信息
class DrInfo < TencentCloud::Common::AbstractModel
# @param Status: 灾备实例状态
# @type Status: Integer
# @param Zone: 可用区信息
# @type Zone: String
# @param InstanceId: 实例ID
# @type InstanceId: String
# @param Region: 地域信息
# @type Region: String
# @param SyncStatus: 实例同步状态。可能的返回值为:
# 0 - 灾备未同步;
# 1 - 灾备同步中;
# 2 - 灾备同步成功;
# 3 - 灾备同步失败;
# 4 - 灾备同步修复中。
# @type SyncStatus: Integer
# @param InstanceName: 实例名称
# @type InstanceName: String
# @param InstanceType: 实例类型
# @type InstanceType: Integer
attr_accessor :Status, :Zone, :InstanceId, :Region, :SyncStatus, :InstanceName, :InstanceType
def initialize(status=nil, zone=nil, instanceid=nil, region=nil, syncstatus=nil, instancename=nil, instancetype=nil)
@Status = status
@Zone = zone
@InstanceId = instanceid
@Region = region
@SyncStatus = syncstatus
@InstanceName = instancename
@InstanceType = instancetype
end
def deserialize(params)
@Status = params['Status']
@Zone = params['Zone']
@InstanceId = params['InstanceId']
@Region = params['Region']
@SyncStatus = params['SyncStatus']
@InstanceName = params['InstanceName']
@InstanceType = params['InstanceType']
end
end
# 结构化的错误日志详情
class ErrlogItem < TencentCloud::Common::AbstractModel
# @param Timestamp: 错误发生时间。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Timestamp: Integer
# @param Content: 错误详情
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Content: String
attr_accessor :Timestamp, :Content
def initialize(timestamp=nil, content=nil)
@Timestamp = timestamp
@Content = content
end
def deserialize(params)
@Timestamp = params['Timestamp']
@Content = params['Content']
end
end
# 导入任务记录
class ImportRecord < TencentCloud::Common::AbstractModel
# @param Status: 状态值
# @type Status: Integer
# @param Code: 状态值
# @type Code: Integer
# @param CostTime: 执行时间
# @type CostTime: Integer
# @param InstanceId: 实例ID
# @type InstanceId: String
# @param WorkId: 后端任务ID
# @type WorkId: String
# @param FileName: 导入文件名
# @type FileName: String
# @param Process: 执行进度
# @type Process: Integer
# @param CreateTime: 任务创建时间
# @type CreateTime: String
# @param FileSize: 文件大小
# @type FileSize: String
# @param Message: 任务执行信息
# @type Message: String
# @param JobId: 任务ID
# @type JobId: Integer
# @param DbName: 导入库表名
# @type DbName: String
# @param AsyncRequestId: 异步任务的请求ID
# @type AsyncRequestId: String
attr_accessor :Status, :Code, :CostTime, :InstanceId, :WorkId, :FileName, :Process, :CreateTime, :FileSize, :Message, :JobId, :DbName, :AsyncRequestId
def initialize(status=nil, code=nil, costtime=nil, instanceid=nil, workid=nil, filename=nil, process=nil, createtime=nil, filesize=nil, message=nil, jobid=nil, dbname=nil, asyncrequestid=nil)
@Status = status
@Code = code
@CostTime = costtime
@InstanceId = instanceid
@WorkId = workid
@FileName = filename
@Process = process
@CreateTime = createtime
@FileSize = filesize
@Message = message
@JobId = jobid
@DbName = dbname
@AsyncRequestId = asyncrequestid
end
def deserialize(params)
@Status = params['Status']
@Code = params['Code']
@CostTime = params['CostTime']
@InstanceId = params['InstanceId']
@WorkId = params['WorkId']
@FileName = params['FileName']
@Process = params['Process']
@CreateTime = params['CreateTime']
@FileSize = params['FileSize']
@Message = params['Message']
@JobId = params['JobId']
@DbName = params['DbName']
@AsyncRequestId = params['AsyncRequestId']
end
end
# 安全组入站规则
class Inbound < 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
# @param Dir: 规则限定的方向,进站规则为 INPUT
# @type Dir: String
# @param Desc: 规则描述
# @type Desc: String
attr_accessor :Action, :CidrIp, :PortRange, :IpProtocol, :Dir, :Desc
def initialize(action=nil, cidrip=nil, portrange=nil, ipprotocol=nil, dir=nil, desc=nil)
@Action = action
@CidrIp = cidrip
@PortRange = portrange
@IpProtocol = ipprotocol
@Dir = dir
@Desc = desc
end
def deserialize(params)
@Action = params['Action']
@CidrIp = params['CidrIp']
@PortRange = params['PortRange']
@IpProtocol = params['IpProtocol']
@Dir = params['Dir']
@Desc = params['Desc']
end
end
# InitDBInstances请求参数结构体
class InitDBInstancesRequest < TencentCloud::Common::AbstractModel
# @param InstanceIds: 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同,可使用[查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
# @type InstanceIds: Array
# @param NewPassword: 实例新的密码,密码规则:8-64个字符,至少包含字母、数字、字符(支持的字符:!@#$%^*())中的两种。
# @type NewPassword: String
# @param Parameters: 实例的参数列表,目前支持设置“character_set_server”、“lower_case_table_names”参数。其中,“character_set_server”参数可选值为["utf8","latin1","gbk","utf8mb4"];“lower_case_table_names”可选值为[“0”,“1”]。
# @type Parameters: Array
# @param Vport: 实例的端口,取值范围为[1024, 65535]
# @type Vport: Integer
attr_accessor :InstanceIds, :NewPassword, :Parameters, :Vport
def initialize(instanceids=nil, newpassword=nil, parameters=nil, vport=nil)
@InstanceIds = instanceids
@NewPassword = newpassword
@Parameters = parameters
@Vport = vport
end
def deserialize(params)
@InstanceIds = params['InstanceIds']
@NewPassword = params['NewPassword']
unless params['Parameters'].nil?
@Parameters = []
params['Parameters'].each do |i|
paraminfo_tmp = ParamInfo.new
paraminfo_tmp.deserialize(i)
@Parameters << paraminfo_tmp
end
end
@Vport = params['Vport']
end
end
# InitDBInstances返回参数结构体
class InitDBInstancesResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestIds: 异步任务的请求ID数组,可使用此ID查询异步任务的执行结果
# @type AsyncRequestIds: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestIds, :RequestId
def initialize(asyncrequestids=nil, requestid=nil)
@AsyncRequestIds = asyncrequestids
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestIds = params['AsyncRequestIds']
@RequestId = params['RequestId']
end
end
# InquiryPriceUpgradeInstances请求参数结构体
class InquiryPriceUpgradeInstancesRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
# @type InstanceId: String
# @param Memory: 升级后的内存大小,单位:MB,为保证传入 Memory 值有效,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/product/236/17229) 接口获取可升级的内存规格。
# @type Memory: Integer
# @param Volume: 升级后的硬盘大小,单位:GB,为保证传入 Volume 值有效,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/product/236/17229) 接口获取可升级的硬盘范围。
# @type Volume: Integer
# @param Cpu: 升级后的核心数目,单位:核,为保证传入 CPU 值有效,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/product/236/17229) 接口获取可升级的核心数目,当未指定该值时,将按照 Memory 大小补全一个默认值。
# @type Cpu: Integer
# @param ProtectMode: 数据复制方式,支持值包括:0 - 异步复制,1 - 半同步复制,2 - 强同步复制,升级主实例时可指定该参数,升级只读实例或者灾备实例时指定该参数无意义。
# @type ProtectMode: Integer
# @param DeviceType: 实例隔离类型。支持值包括: "UNIVERSAL" - 通用型实例, "EXCLUSIVE" - 独享型实例, "BASIC" - 基础版实例。 不指定则默认为通用型实例。
# @type DeviceType: String
# @param InstanceNodes: 实例节点数。对于 RO 和 基础版实例, 该值默认为1。 如果需要询价三节点实例, 请将该值设置为3。其余主实例该值默认为2。
# @type InstanceNodes: Integer
attr_accessor :InstanceId, :Memory, :Volume, :Cpu, :ProtectMode, :DeviceType, :InstanceNodes
def initialize(instanceid=nil, memory=nil, volume=nil, cpu=nil, protectmode=nil, devicetype=nil, instancenodes=nil)
@InstanceId = instanceid
@Memory = memory
@Volume = volume
@Cpu = cpu
@ProtectMode = protectmode
@DeviceType = devicetype
@InstanceNodes = instancenodes
end
def deserialize(params)
@InstanceId = params['InstanceId']
@Memory = params['Memory']
@Volume = params['Volume']
@Cpu = params['Cpu']
@ProtectMode = params['ProtectMode']
@DeviceType = params['DeviceType']
@InstanceNodes = params['InstanceNodes']
end
end
# InquiryPriceUpgradeInstances返回参数结构体
class InquiryPriceUpgradeInstancesResponse < TencentCloud::Common::AbstractModel
# @param Price: 实例价格,单位:分(人民币)。
# @type Price: Integer
# @param OriginalPrice: 实例原价,单位:分(人民币)。
# @type OriginalPrice: Integer
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Price, :OriginalPrice, :RequestId
def initialize(price=nil, originalprice=nil, requestid=nil)
@Price = price
@OriginalPrice = originalprice
@RequestId = requestid
end
def deserialize(params)
@Price = params['Price']
@OriginalPrice = params['OriginalPrice']
@RequestId = params['RequestId']
end
end
# 实例详细信息
class InstanceInfo < TencentCloud::Common::AbstractModel
# @param WanStatus: 外网状态,可能的返回值为:0-未开通外网;1-已开通外网;2-已关闭外网
# @type WanStatus: Integer
# @param Zone: 可用区信息
# @type Zone: String
# @param InitFlag: 初始化标志,可能的返回值为:0-未初始化;1-已初始化
# @type InitFlag: Integer
# @param RoVipInfo: 只读vip信息。单独开通只读实例访问的只读实例才有该字段
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RoVipInfo: :class:`Tencentcloud::Cdb.v20170320.models.RoVipInfo`
# @param Memory: 内存容量,单位为 MB
# @type Memory: Integer
# @param Status: 实例状态,可能的返回值:0-创建中;1-运行中;4-隔离中;5-已隔离
# @type Status: Integer
# @param VpcId: 私有网络 ID,例如:51102
# @type VpcId: Integer
# @param SlaveInfo: 备机信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SlaveInfo: :class:`Tencentcloud::Cdb.v20170320.models.SlaveInfo`
# @param InstanceId: 实例 ID
# @type InstanceId: String
# @param Volume: 硬盘容量,单位为 GB
# @type Volume: Integer
# @param AutoRenew: 自动续费标志,可能的返回值:0-未开通自动续费;1-已开通自动续费;2-已关闭自动续费
# @type AutoRenew: Integer
# @param ProtectMode: 数据复制方式。0 - 异步复制;1 - 半同步复制;2 - 强同步复制
# @type ProtectMode: Integer
# @param RoGroups: 只读组详细信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RoGroups: Array
# @param SubnetId: 子网 ID,例如:2333
# @type SubnetId: Integer
# @param InstanceType: 实例类型,可能的返回值:1-主实例;2-灾备实例;3-只读实例
# @type InstanceType: Integer
# @param ProjectId: 项目 ID
# @type ProjectId: Integer
# @param Region: 地域信息
# @type Region: String
# @param DeadlineTime: 实例到期时间
# @type DeadlineTime: String
# @param DeployMode: 可用区部署方式。可能的值为:0 - 单可用区;1 - 多可用区
# @type DeployMode: Integer
# @param TaskStatus: 实例任务状态。0 - 没有任务 ,1 - 升级中,2 - 数据导入中,3 - 开放Slave中,4 - 外网访问开通中,5 - 批量操作执行中,6 - 回档中,7 - 外网访问关闭中,8 - 密码修改中,9 - 实例名修改中,10 - 重启中,12 - 自建迁移中,13 - 删除库表中,14 - 灾备实例创建同步中,15 - 升级待切换,16 - 升级切换中,17 - 升级切换完成
# @type TaskStatus: Integer
# @param MasterInfo: 主实例详细信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MasterInfo: :class:`Tencentcloud::Cdb.v20170320.models.MasterInfo`
# @param DeviceType: 实例类型
# @type DeviceType: String
# @param EngineVersion: 内核版本
# @type EngineVersion: String
# @param InstanceName: 实例名称
# @type InstanceName: String
# @param DrInfo: 灾备实例详细信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DrInfo: Array
# @param WanDomain: 外网域名
# @type WanDomain: String
# @param WanPort: 外网端口号
# @type WanPort: Integer
# @param PayType: 付费类型,可能的返回值:0-包年包月;1-按量计费
# @type PayType: Integer
# @param CreateTime: 实例创建时间
# @type CreateTime: String
# @param Vip: 实例 IP
# @type Vip: String
# @param Vport: 端口号
# @type Vport: Integer
# @param CdbError: 是否锁定标记
# @type CdbError: Integer
# @param UniqVpcId: 私有网络描述符,例如:“vpc-5v8wn9mg”
# @type UniqVpcId: String
# @param UniqSubnetId: 子网描述符,例如:“subnet-1typ0s7d”
# @type UniqSubnetId: String
# @param PhysicalId: 物理 ID
# @type PhysicalId: String
# @param Cpu: 核心数
# @type Cpu: Integer
# @param Qps: 每秒查询数量
# @type Qps: Integer
# @param ZoneName: 可用区中文名称
# @type ZoneName: String
# @param DeviceClass: 物理机型
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DeviceClass: String
# @param DeployGroupId: 置放群组 ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DeployGroupId: String
# @param ZoneId: 可用区 ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ZoneId: Integer
# @param InstanceNodes: 节点数
# @type InstanceNodes: Integer
# @param TagList: 标签列表
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TagList: Array
attr_accessor :WanStatus, :Zone, :InitFlag, :RoVipInfo, :Memory, :Status, :VpcId, :SlaveInfo, :InstanceId, :Volume, :AutoRenew, :ProtectMode, :RoGroups, :SubnetId, :InstanceType, :ProjectId, :Region, :DeadlineTime, :DeployMode, :TaskStatus, :MasterInfo, :DeviceType, :EngineVersion, :InstanceName, :DrInfo, :WanDomain, :WanPort, :PayType, :CreateTime, :Vip, :Vport, :CdbError, :UniqVpcId, :UniqSubnetId, :PhysicalId, :Cpu, :Qps, :ZoneName, :DeviceClass, :DeployGroupId, :ZoneId, :InstanceNodes, :TagList
def initialize(wanstatus=nil, zone=nil, initflag=nil, rovipinfo=nil, memory=nil, status=nil, vpcid=nil, slaveinfo=nil, instanceid=nil, volume=nil, autorenew=nil, protectmode=nil, rogroups=nil, subnetid=nil, instancetype=nil, projectid=nil, region=nil, deadlinetime=nil, deploymode=nil, taskstatus=nil, masterinfo=nil, devicetype=nil, engineversion=nil, instancename=nil, drinfo=nil, wandomain=nil, wanport=nil, paytype=nil, createtime=nil, vip=nil, vport=nil, cdberror=nil, uniqvpcid=nil, uniqsubnetid=nil, physicalid=nil, cpu=nil, qps=nil, zonename=nil, deviceclass=nil, deploygroupid=nil, zoneid=nil, instancenodes=nil, taglist=nil)
@WanStatus = wanstatus
@Zone = zone
@InitFlag = initflag
@RoVipInfo = rovipinfo
@Memory = memory
@Status = status
@VpcId = vpcid
@SlaveInfo = slaveinfo
@InstanceId = instanceid
@Volume = volume
@AutoRenew = autorenew
@ProtectMode = protectmode
@RoGroups = rogroups
@SubnetId = subnetid
@InstanceType = instancetype
@ProjectId = projectid
@Region = region
@DeadlineTime = deadlinetime
@DeployMode = deploymode
@TaskStatus = taskstatus
@MasterInfo = masterinfo
@DeviceType = devicetype
@EngineVersion = engineversion
@InstanceName = instancename
@DrInfo = drinfo
@WanDomain = wandomain
@WanPort = wanport
@PayType = paytype
@CreateTime = createtime
@Vip = vip
@Vport = vport
@CdbError = cdberror
@UniqVpcId = uniqvpcid
@UniqSubnetId = uniqsubnetid
@PhysicalId = physicalid
@Cpu = cpu
@Qps = qps
@ZoneName = zonename
@DeviceClass = deviceclass
@DeployGroupId = deploygroupid
@ZoneId = zoneid
@InstanceNodes = instancenodes
@TagList = taglist
end
def deserialize(params)
@WanStatus = params['WanStatus']
@Zone = params['Zone']
@InitFlag = params['InitFlag']
unless params['RoVipInfo'].nil?
@RoVipInfo = RoVipInfo.new
@RoVipInfo.deserialize(params['RoVipInfo'])
end
@Memory = params['Memory']
@Status = params['Status']
@VpcId = params['VpcId']
unless params['SlaveInfo'].nil?
@SlaveInfo = SlaveInfo.new
@SlaveInfo.deserialize(params['SlaveInfo'])
end
@InstanceId = params['InstanceId']
@Volume = params['Volume']
@AutoRenew = params['AutoRenew']
@ProtectMode = params['ProtectMode']
unless params['RoGroups'].nil?
@RoGroups = []
params['RoGroups'].each do |i|
rogroup_tmp = RoGroup.new
rogroup_tmp.deserialize(i)
@RoGroups << rogroup_tmp
end
end
@SubnetId = params['SubnetId']
@InstanceType = params['InstanceType']
@ProjectId = params['ProjectId']
@Region = params['Region']
@DeadlineTime = params['DeadlineTime']
@DeployMode = params['DeployMode']
@TaskStatus = params['TaskStatus']
unless params['MasterInfo'].nil?
@MasterInfo = MasterInfo.new
@MasterInfo.deserialize(params['MasterInfo'])
end
@DeviceType = params['DeviceType']
@EngineVersion = params['EngineVersion']
@InstanceName = params['InstanceName']
unless params['DrInfo'].nil?
@DrInfo = []
params['DrInfo'].each do |i|
drinfo_tmp = DrInfo.new
drinfo_tmp.deserialize(i)
@DrInfo << drinfo_tmp
end
end
@WanDomain = params['WanDomain']
@WanPort = params['WanPort']
@PayType = params['PayType']
@CreateTime = params['CreateTime']
@Vip = params['Vip']
@Vport = params['Vport']
@CdbError = params['CdbError']
@UniqVpcId = params['UniqVpcId']
@UniqSubnetId = params['UniqSubnetId']
@PhysicalId = params['PhysicalId']
@Cpu = params['Cpu']
@Qps = params['Qps']
@ZoneName = params['ZoneName']
@DeviceClass = params['DeviceClass']
@DeployGroupId = params['DeployGroupId']
@ZoneId = params['ZoneId']
@InstanceNodes = params['InstanceNodes']
unless params['TagList'].nil?
@TagList = []
params['TagList'].each do |i|
taginfoitem_tmp = TagInfoItem.new
taginfoitem_tmp.deserialize(i)
@TagList << taginfoitem_tmp
end
end
end
end
# 实例预期重启时间
class InstanceRebootTime < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同
# @type InstanceId: String
# @param TimeInSeconds: 预期重启时间
# @type TimeInSeconds: Integer
attr_accessor :InstanceId, :TimeInSeconds
def initialize(instanceid=nil, timeinseconds=nil)
@InstanceId = instanceid
@TimeInSeconds = timeinseconds
end
def deserialize(params)
@InstanceId = params['InstanceId']
@TimeInSeconds = params['TimeInSeconds']
end
end
# 实例可回档时间范围
class InstanceRollbackRangeTime < TencentCloud::Common::AbstractModel
# @param Code: 查询数据库错误码
# @type Code: Integer
# @param Message: 查询数据库错误信息
# @type Message: String
# @param InstanceId: 实例ID列表,单个实例Id的格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例ID相同
# @type InstanceId: String
# @param Times: 可回档时间范围
# @type Times: Array
attr_accessor :Code, :Message, :InstanceId, :Times
def initialize(code=nil, message=nil, instanceid=nil, times=nil)
@Code = code
@Message = message
@InstanceId = instanceid
@Times = times
end
def deserialize(params)
@Code = params['Code']
@Message = params['Message']
@InstanceId = params['InstanceId']
unless params['Times'].nil?
@Times = []
params['Times'].each do |i|
rollbacktimerange_tmp = RollbackTimeRange.new
rollbacktimerange_tmp.deserialize(i)
@Times << rollbacktimerange_tmp
end
end
end
end
# IsolateDBInstance请求参数结构体
class IsolateDBInstanceRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
# @type InstanceId: String
attr_accessor :InstanceId
def initialize(instanceid=nil)
@InstanceId = instanceid
end
def deserialize(params)
@InstanceId = params['InstanceId']
end
end
# IsolateDBInstance返回参数结构体
class IsolateDBInstanceResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。(该返回字段目前已废弃,可以通过 DescribeDBInstances 接口查询实例的隔离状态)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# 本地binlog保留配置
class LocalBinlogConfig < TencentCloud::Common::AbstractModel
# @param SaveHours: 本地binlog保留时长,可取值范围:[72,168]。
# @type SaveHours: Integer
# @param MaxUsage: 本地binlog空间使用率,可取值范围:[30,50]。
# @type MaxUsage: Integer
attr_accessor :SaveHours, :MaxUsage
def initialize(savehours=nil, maxusage=nil)
@SaveHours = savehours
@MaxUsage = maxusage
end
def deserialize(params)
@SaveHours = params['SaveHours']
@MaxUsage = params['MaxUsage']
end
end
# 本地binlog保留策略默认配置。
class LocalBinlogConfigDefault < TencentCloud::Common::AbstractModel
# @param SaveHours: 本地binlog保留时长,可取值范围:[72,168]。
# @type SaveHours: Integer
# @param MaxUsage: 本地binlog空间使用率,可取值范围:[30,50]。
# @type MaxUsage: Integer
attr_accessor :SaveHours, :MaxUsage
def initialize(savehours=nil, maxusage=nil)
@SaveHours = savehours
@MaxUsage = maxusage
end
def deserialize(params)
@SaveHours = params['SaveHours']
@MaxUsage = params['MaxUsage']
end
end
# 主实例信息
class MasterInfo < TencentCloud::Common::AbstractModel
# @param Region: 地域信息
# @type Region: String
# @param RegionId: 地域ID
# @type RegionId: Integer
# @param ZoneId: 可用区ID
# @type ZoneId: Integer
# @param Zone: 可用区信息
# @type Zone: String
# @param InstanceId: 实例ID
# @type InstanceId: String
# @param ResourceId: 实例长ID
# @type ResourceId: String
# @param Status: 实例状态
# @type Status: Integer
# @param InstanceName: 实例名称
# @type InstanceName: String
# @param InstanceType: 实例类型
# @type InstanceType: Integer
# @param TaskStatus: 任务状态
# @type TaskStatus: Integer
# @param Memory: 内存容量
# @type Memory: Integer
# @param Volume: 硬盘容量
# @type Volume: Integer
# @param DeviceType: 实例机型
# @type DeviceType: String
# @param Qps: 每秒查询数
# @type Qps: Integer
# @param VpcId: 私有网络ID
# @type VpcId: Integer
# @param SubnetId: 子网ID
# @type SubnetId: Integer
# @param ExClusterId: 独享集群ID
# @type ExClusterId: String
# @param ExClusterName: 独享集群名称
# @type ExClusterName: String
attr_accessor :Region, :RegionId, :ZoneId, :Zone, :InstanceId, :ResourceId, :Status, :InstanceName, :InstanceType, :TaskStatus, :Memory, :Volume, :DeviceType, :Qps, :VpcId, :SubnetId, :ExClusterId, :ExClusterName
def initialize(region=nil, regionid=nil, zoneid=nil, zone=nil, instanceid=nil, resourceid=nil, status=nil, instancename=nil, instancetype=nil, taskstatus=nil, memory=nil, volume=nil, devicetype=nil, qps=nil, vpcid=nil, subnetid=nil, exclusterid=nil, exclustername=nil)
@Region = region
@RegionId = regionid
@ZoneId = zoneid
@Zone = zone
@InstanceId = instanceid
@ResourceId = resourceid
@Status = status
@InstanceName = instancename
@InstanceType = instancetype
@TaskStatus = taskstatus
@Memory = memory
@Volume = volume
@DeviceType = devicetype
@Qps = qps
@VpcId = vpcid
@SubnetId = subnetid
@ExClusterId = exclusterid
@ExClusterName = exclustername
end
def deserialize(params)
@Region = params['Region']
@RegionId = params['RegionId']
@ZoneId = params['ZoneId']
@Zone = params['Zone']
@InstanceId = params['InstanceId']
@ResourceId = params['ResourceId']
@Status = params['Status']
@InstanceName = params['InstanceName']
@InstanceType = params['InstanceType']
@TaskStatus = params['TaskStatus']
@Memory = params['Memory']
@Volume = params['Volume']
@DeviceType = params['DeviceType']
@Qps = params['Qps']
@VpcId = params['VpcId']
@SubnetId = params['SubnetId']
@ExClusterId = params['ExClusterId']
@ExClusterName = params['ExClusterName']
end
end
# ModifyAccountDescription请求参数结构体
class ModifyAccountDescriptionRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param Accounts: 云数据库账号。
# @type Accounts: Array
# @param Description: 数据库账号的备注信息。
# @type Description: String
attr_accessor :InstanceId, :Accounts, :Description
def initialize(instanceid=nil, accounts=nil, description=nil)
@InstanceId = instanceid
@Accounts = accounts
@Description = description
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
@Description = params['Description']
end
end
# ModifyAccountDescription返回参数结构体
class ModifyAccountDescriptionResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# ModifyAccountHost请求参数结构体
class ModifyAccountHostRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param User: 账户的名称
# @type User: String
# @param Host: 账户的旧主机
# @type Host: String
# @param NewHost: 账户的新主机
# @type NewHost: String
attr_accessor :InstanceId, :User, :Host, :NewHost
def initialize(instanceid=nil, user=nil, host=nil, newhost=nil)
@InstanceId = instanceid
@User = user
@Host = host
@NewHost = newhost
end
def deserialize(params)
@InstanceId = params['InstanceId']
@User = params['User']
@Host = params['Host']
@NewHost = params['NewHost']
end
end
# ModifyAccountHost返回参数结构体
class ModifyAccountHostResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# ModifyAccountMaxUserConnections请求参数结构体
class ModifyAccountMaxUserConnectionsRequest < TencentCloud::Common::AbstractModel
# @param Accounts: 云数据库账号。
# @type Accounts: Array
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param MaxUserConnections: 设置账户最大可用连接数,最大可设置值为10240。
# @type MaxUserConnections: Integer
attr_accessor :Accounts, :InstanceId, :MaxUserConnections
def initialize(accounts=nil, instanceid=nil, maxuserconnections=nil)
@Accounts = accounts
@InstanceId = instanceid
@MaxUserConnections = maxuserconnections
end
def deserialize(params)
unless params['Accounts'].nil?
@Accounts = []
params['Accounts'].each do |i|
account_tmp = Account.new
account_tmp.deserialize(i)
@Accounts << account_tmp
end
end
@InstanceId = params['InstanceId']
@MaxUserConnections = params['MaxUserConnections']
end
end
# ModifyAccountMaxUserConnections返回参数结构体
class ModifyAccountMaxUserConnectionsResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# ModifyAccountPassword请求参数结构体
class ModifyAccountPasswordRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param NewPassword: 数据库账号的新密码。密码应至少包含字母、数字和字符(_+-&=!@#$%^*())中的两种,长度为8-64个字符。
# @type NewPassword: String
# @param Accounts: 云数据库账号。
# @type Accounts: Array
attr_accessor :InstanceId, :NewPassword, :Accounts
def initialize(instanceid=nil, newpassword=nil, accounts=nil)
@InstanceId = instanceid
@NewPassword = newpassword
@Accounts = accounts
end
def deserialize(params)
@InstanceId = params['InstanceId']
@NewPassword = params['NewPassword']
unless params['Accounts'].nil?
@Accounts = []
params['Accounts'].each do |i|
account_tmp = Account.new
account_tmp.deserialize(i)
@Accounts << account_tmp
end
end
end
end
# ModifyAccountPassword返回参数结构体
class ModifyAccountPasswordResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# ModifyAccountPrivileges请求参数结构体
class ModifyAccountPrivilegesRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-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","CREATE USER","RELOAD","REPLICATION CLIENT","REPLICATION SLAVE","UPDATE"。
# 注意,不传该参数表示清除该权限。
# @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"。
# 注意,不传该参数表示清除该权限。
# @type DatabasePrivileges: Array
# @param TablePrivileges: 数据库中表的权限。Privileges 权限的可选值为:权限的可选值为:"SELECT","INSERT","UPDATE","DELETE","CREATE", "DROP","REFERENCES","INDEX","ALTER","CREATE VIEW","SHOW VIEW", "TRIGGER"。
# 注意,不传该参数表示清除该权限。
# @type TablePrivileges: Array
# @param ColumnPrivileges: 数据库表中列的权限。Privileges 权限的可选值为:"SELECT","INSERT","UPDATE","REFERENCES"。
# 注意,不传该参数表示清除该权限。
# @type ColumnPrivileges: Array
# @param ModifyAction: 该参数不为空时,为批量修改权限。可选值为:grant - 授予权限,revoke - 回收权限。
# @type ModifyAction: String
attr_accessor :InstanceId, :Accounts, :GlobalPrivileges, :DatabasePrivileges, :TablePrivileges, :ColumnPrivileges, :ModifyAction
def initialize(instanceid=nil, accounts=nil, globalprivileges=nil, databaseprivileges=nil, tableprivileges=nil, columnprivileges=nil, modifyaction=nil)
@InstanceId = instanceid
@Accounts = accounts
@GlobalPrivileges = globalprivileges
@DatabasePrivileges = databaseprivileges
@TablePrivileges = tableprivileges
@ColumnPrivileges = columnprivileges
@ModifyAction = modifyaction
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
@ModifyAction = params['ModifyAction']
end
end
# ModifyAccountPrivileges返回参数结构体
class ModifyAccountPrivilegesResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# ModifyAuditConfig请求参数结构体
class ModifyAuditConfigRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID。
# @type InstanceId: String
# @param LogExpireDay: 审计日志保存时长。支持值包括:
# 7 - 一周
# 30 - 一个月;
# 180 - 六个月;
# 365 - 一年;
# 1095 - 三年;
# 1825 - 五年;
# @type LogExpireDay: Integer
# @param CloseAudit: 是否关闭审计服务。可选值:true - 关闭审计服务;false - 不关闭审计服务。默认值为 false。
# 当关闭审计服务时,会删除用户的审计日志和文件,并删除该实例的所有审计策略。
# CloseAudit、LogExpireDay必须至少提供一个,如果两个都提供则按照CloseAudit优先的逻辑处理。
# @type CloseAudit: Boolean
attr_accessor :InstanceId, :LogExpireDay, :CloseAudit
def initialize(instanceid=nil, logexpireday=nil, closeaudit=nil)
@InstanceId = instanceid
@LogExpireDay = logexpireday
@CloseAudit = closeaudit
end
def deserialize(params)
@InstanceId = params['InstanceId']
@LogExpireDay = params['LogExpireDay']
@CloseAudit = params['CloseAudit']
end
end
# ModifyAuditConfig返回参数结构体
class ModifyAuditConfigResponse < 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
# ModifyAuditRule请求参数结构体
class ModifyAuditRuleRequest < TencentCloud::Common::AbstractModel
# @param RuleId: 审计规则 ID。
# @type RuleId: String
# @param RuleName: 审计规则名称。
# @type RuleName: String
# @param Description: 审计规则描述。
# @type Description: String
# @param RuleFilters: 审计规则过滤条件。若设置了过滤条件,则不会开启全审计。
# @type RuleFilters: Array
# @param AuditAll: 是否开启全审计。支持值包括:false – 不开启全审计,true – 开启全审计。用户未设置审计规则过滤条件时,默认开启全审计。
# @type AuditAll: Boolean
attr_accessor :RuleId, :RuleName, :Description, :RuleFilters, :AuditAll
def initialize(ruleid=nil, rulename=nil, description=nil, rulefilters=nil, auditall=nil)
@RuleId = ruleid
@RuleName = rulename
@Description = description
@RuleFilters = rulefilters
@AuditAll = auditall
end
def deserialize(params)
@RuleId = params['RuleId']
@RuleName = params['RuleName']
@Description = params['Description']
unless params['RuleFilters'].nil?
@RuleFilters = []
params['RuleFilters'].each do |i|
auditfilter_tmp = AuditFilter.new
auditfilter_tmp.deserialize(i)
@RuleFilters << auditfilter_tmp
end
end
@AuditAll = params['AuditAll']
end
end
# ModifyAuditRule返回参数结构体
class ModifyAuditRuleResponse < 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
# ModifyAutoRenewFlag请求参数结构体
class ModifyAutoRenewFlagRequest < TencentCloud::Common::AbstractModel
# @param InstanceIds: 实例的 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceIds: Array
# @param AutoRenew: 自动续费标记,可取值的有:0 - 不自动续费,1 - 自动续费。
# @type AutoRenew: Integer
attr_accessor :InstanceIds, :AutoRenew
def initialize(instanceids=nil, autorenew=nil)
@InstanceIds = instanceids
@AutoRenew = autorenew
end
def deserialize(params)
@InstanceIds = params['InstanceIds']
@AutoRenew = params['AutoRenew']
end
end
# ModifyAutoRenewFlag返回参数结构体
class ModifyAutoRenewFlagResponse < 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
# ModifyBackupConfig请求参数结构体
class ModifyBackupConfigRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例ID相同。
# @type InstanceId: String
# @param ExpireDays: 备份文件的保留时间,单位为天。最小值为7天,最大值为732天。
# @type ExpireDays: Integer
# @param StartTime: (将废弃,建议使用 BackupTimeWindow 参数) 备份时间范围,格式为:02:00-06:00,起点和终点时间目前限制为整点,目前可以选择的范围为: 00:00-12:00,02:00-06:00,06:00-10:00,10:00-14:00,14:00-18:00,18:00-22:00,22:00-02:00。
# @type StartTime: String
# @param BackupMethod: 自动备份方式,仅支持:physical - 物理冷备
# @type BackupMethod: String
# @param BinlogExpireDays: binlog的保留时间,单位为天。最小值为7天,最大值为732天。该值的设置不能大于备份文件的保留时间。
# @type BinlogExpireDays: Integer
# @param BackupTimeWindow: 备份时间窗,比如要设置每周二和周日 10:00-14:00之间备份,该参数如下:{"Monday": "", "Tuesday": "10:00-14:00", "Wednesday": "", "Thursday": "", "Friday": "", "Saturday": "", "Sunday": "10:00-14:00"} (注:可以设置一周的某几天备份,但是每天的备份时间需要设置为相同的时间段。 如果设置了该字段,将忽略StartTime字段的设置)
# @type BackupTimeWindow: :class:`Tencentcloud::Cdb.v20170320.models.CommonTimeWindow`
attr_accessor :InstanceId, :ExpireDays, :StartTime, :BackupMethod, :BinlogExpireDays, :BackupTimeWindow
def initialize(instanceid=nil, expiredays=nil, starttime=nil, backupmethod=nil, binlogexpiredays=nil, backuptimewindow=nil)
@InstanceId = instanceid
@ExpireDays = expiredays
@StartTime = starttime
@BackupMethod = backupmethod
@BinlogExpireDays = binlogexpiredays
@BackupTimeWindow = backuptimewindow
end
def deserialize(params)
@InstanceId = params['InstanceId']
@ExpireDays = params['ExpireDays']
@StartTime = params['StartTime']
@BackupMethod = params['BackupMethod']
@BinlogExpireDays = params['BinlogExpireDays']
unless params['BackupTimeWindow'].nil?
@BackupTimeWindow = CommonTimeWindow.new
@BackupTimeWindow.deserialize(params['BackupTimeWindow'])
end
end
end
# ModifyBackupConfig返回参数结构体
class ModifyBackupConfigResponse < 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
# ModifyBackupDownloadRestriction请求参数结构体
class ModifyBackupDownloadRestrictionRequest < TencentCloud::Common::AbstractModel
# @param LimitType: NoLimit 不限制,内外网都可以下载; LimitOnlyIntranet 仅内网可下载; Customize 用户自定义vpc:ip可下载。 只有该值为 Customize 时,才可以设置 LimitVpc 和 LimitIp 。
# @type LimitType: String
# @param VpcComparisonSymbol: 该参数仅支持 In, 表示 LimitVpc 指定的vpc可以下载。默认为In。
# @type VpcComparisonSymbol: String
# @param IpComparisonSymbol: In: 指定的ip可以下载; NotIn: 指定的ip不可以下载。 默认为In。
# @type IpComparisonSymbol: String
# @param LimitVpc: 限制下载的vpc设置。
# @type LimitVpc: Array
# @param LimitIp: 限制下载的ip设置
# @type LimitIp: Array
attr_accessor :LimitType, :VpcComparisonSymbol, :IpComparisonSymbol, :LimitVpc, :LimitIp
def initialize(limittype=nil, vpccomparisonsymbol=nil, ipcomparisonsymbol=nil, limitvpc=nil, limitip=nil)
@LimitType = limittype
@VpcComparisonSymbol = vpccomparisonsymbol
@IpComparisonSymbol = ipcomparisonsymbol
@LimitVpc = limitvpc
@LimitIp = limitip
end
def deserialize(params)
@LimitType = params['LimitType']
@VpcComparisonSymbol = params['VpcComparisonSymbol']
@IpComparisonSymbol = params['IpComparisonSymbol']
unless params['LimitVpc'].nil?
@LimitVpc = []
params['LimitVpc'].each do |i|
backuplimitvpcitem_tmp = BackupLimitVpcItem.new
backuplimitvpcitem_tmp.deserialize(i)
@LimitVpc << backuplimitvpcitem_tmp
end
end
@LimitIp = params['LimitIp']
end
end
# ModifyBackupDownloadRestriction返回参数结构体
class ModifyBackupDownloadRestrictionResponse < 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
# ModifyCDBProxyConnectionPool请求参数结构体
class ModifyCDBProxyConnectionPoolRequest < TencentCloud::Common::AbstractModel
# @param ProxyGroupId: 数据库代理ID
# @type ProxyGroupId: String
# @param OpenConnectionPool: 是否开启连接池,true:开启连接池;
# false:关闭连接池。
# @type OpenConnectionPool: Boolean
# @param ConnectionPoolType: 连接池类型,
# 通过DescribeProxyConnectionPoolConf获取连接池类型值
# @type ConnectionPoolType: String
# @param PoolConnectionTimeOut: 连接保留阈值:单位(秒)
# @type PoolConnectionTimeOut: Integer
attr_accessor :ProxyGroupId, :OpenConnectionPool, :ConnectionPoolType, :PoolConnectionTimeOut
def initialize(proxygroupid=nil, openconnectionpool=nil, connectionpooltype=nil, poolconnectiontimeout=nil)
@ProxyGroupId = proxygroupid
@OpenConnectionPool = openconnectionpool
@ConnectionPoolType = connectionpooltype
@PoolConnectionTimeOut = poolconnectiontimeout
end
def deserialize(params)
@ProxyGroupId = params['ProxyGroupId']
@OpenConnectionPool = params['OpenConnectionPool']
@ConnectionPoolType = params['ConnectionPoolType']
@PoolConnectionTimeOut = params['PoolConnectionTimeOut']
end
end
# ModifyCDBProxyConnectionPool返回参数结构体
class ModifyCDBProxyConnectionPoolResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步处理ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# ModifyCDBProxyDesc请求参数结构体
class ModifyCDBProxyDescRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例ID
# @type InstanceId: String
# @param ProxyGroupId: 数据库代理ID
# @type ProxyGroupId: String
# @param Desc: 数据库代理描述
# @type Desc: String
attr_accessor :InstanceId, :ProxyGroupId, :Desc
def initialize(instanceid=nil, proxygroupid=nil, desc=nil)
@InstanceId = instanceid
@ProxyGroupId = proxygroupid
@Desc = desc
end
def deserialize(params)
@InstanceId = params['InstanceId']
@ProxyGroupId = params['ProxyGroupId']
@Desc = params['Desc']
end
end
# ModifyCDBProxyDesc返回参数结构体
class ModifyCDBProxyDescResponse < 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
# ModifyCDBProxy请求参数结构体
class ModifyCDBProxyRequest < TencentCloud::Common::AbstractModel
# @param ProxyGroupId: 数据库代理组唯一ID
# @type ProxyGroupId: String
# @param IsKickout: 是否开始延迟剔除,默认false,取值:"true" | "false"
# @type IsKickout: Boolean
# @param MinCount: 最少保留数,最小为0,最大为实例数量
# @type MinCount: Integer
# @param MaxDelay: 延迟剔除的阈值;如果IsKickOut="true", 该字段必填
# @type MaxDelay: Integer
# @param WeightMode: 读写权重分配模式;系统自动分配:"system", 自定义:"custom"
# @type WeightMode: String
# @param RoWeightValues: 实例只读权重
# @type RoWeightValues: :class:`Tencentcloud::Cdb.v20170320.models.RoWeight`
# @param FailOver: 是否开启故障转移,代理出现故障后,连接地址将路由到主实例,默认false,取值:"true" | "false"
# @type FailOver: Boolean
# @param AutoAddRo: 是否自动添加只读实例,默认false,取值:"true" | "false"
# @type AutoAddRo: Boolean
attr_accessor :ProxyGroupId, :IsKickout, :MinCount, :MaxDelay, :WeightMode, :RoWeightValues, :FailOver, :AutoAddRo
def initialize(proxygroupid=nil, iskickout=nil, mincount=nil, maxdelay=nil, weightmode=nil, roweightvalues=nil, failover=nil, autoaddro=nil)
@ProxyGroupId = proxygroupid
@IsKickout = iskickout
@MinCount = mincount
@MaxDelay = maxdelay
@WeightMode = weightmode
@RoWeightValues = roweightvalues
@FailOver = failover
@AutoAddRo = autoaddro
end
def deserialize(params)
@ProxyGroupId = params['ProxyGroupId']
@IsKickout = params['IsKickout']
@MinCount = params['MinCount']
@MaxDelay = params['MaxDelay']
@WeightMode = params['WeightMode']
unless params['RoWeightValues'].nil?
@RoWeightValues = RoWeight.new
@RoWeightValues.deserialize(params['RoWeightValues'])
end
@FailOver = params['FailOver']
@AutoAddRo = params['AutoAddRo']
end
end
# ModifyCDBProxy返回参数结构体
class ModifyCDBProxyResponse < 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
# ModifyCDBProxyVipVPort请求参数结构体
class ModifyCDBProxyVipVPortRequest < TencentCloud::Common::AbstractModel
# @param ProxyGroupId: 代理组ID
# @type ProxyGroupId: String
# @param UniqVpcId: 私有网络ID
# @type UniqVpcId: String
# @param UniqSubnetId: 私有网络子网ID
# @type UniqSubnetId: String
# @param DstIp: 目标IP
# @type DstIp: String
# @param DstPort: 目标端口
# @type DstPort: Integer
# @param ReleaseDuration: 旧IP回收时间 单位小时
# @type ReleaseDuration: Integer
attr_accessor :ProxyGroupId, :UniqVpcId, :UniqSubnetId, :DstIp, :DstPort, :ReleaseDuration
def initialize(proxygroupid=nil, uniqvpcid=nil, uniqsubnetid=nil, dstip=nil, dstport=nil, releaseduration=nil)
@ProxyGroupId = proxygroupid
@UniqVpcId = uniqvpcid
@UniqSubnetId = uniqsubnetid
@DstIp = dstip
@DstPort = dstport
@ReleaseDuration = releaseduration
end
def deserialize(params)
@ProxyGroupId = params['ProxyGroupId']
@UniqVpcId = params['UniqVpcId']
@UniqSubnetId = params['UniqSubnetId']
@DstIp = params['DstIp']
@DstPort = params['DstPort']
@ReleaseDuration = params['ReleaseDuration']
end
end
# ModifyCDBProxyVipVPort返回参数结构体
class ModifyCDBProxyVipVPortResponse < 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
# ModifyDBInstanceName请求参数结构体
class ModifyDBInstanceNameRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
# @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 RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :RequestId
def initialize(requestid=nil)
@RequestId = requestid
end
def deserialize(params)
@RequestId = params['RequestId']
end
end
# ModifyDBInstanceProject请求参数结构体
class ModifyDBInstanceProjectRequest < TencentCloud::Common::AbstractModel
# @param InstanceIds: 实例 ID 数组,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
# @type InstanceIds: Array
# @param NewProjectId: 项目的 ID。
# @type NewProjectId: Integer
attr_accessor :InstanceIds, :NewProjectId
def initialize(instanceids=nil, newprojectid=nil)
@InstanceIds = instanceids
@NewProjectId = newprojectid
end
def deserialize(params)
@InstanceIds = params['InstanceIds']
@NewProjectId = params['NewProjectId']
end
end
# ModifyDBInstanceProject返回参数结构体
class ModifyDBInstanceProjectResponse < 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
# ModifyDBInstanceSecurityGroups请求参数结构体
class ModifyDBInstanceSecurityGroupsRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param SecurityGroupIds: 要修改的安全组 ID 列表,一个或者多个安全组 ID 组成的数组。
# @type SecurityGroupIds: Array
# @param ForReadonlyInstance: 当传入只读实例ID时,默认操作的是对应只读组的安全组。如果需要操作只读实例ID的安全组, 需要将该入参置为True
# @type ForReadonlyInstance: Boolean
attr_accessor :InstanceId, :SecurityGroupIds, :ForReadonlyInstance
def initialize(instanceid=nil, securitygroupids=nil, forreadonlyinstance=nil)
@InstanceId = instanceid
@SecurityGroupIds = securitygroupids
@ForReadonlyInstance = forreadonlyinstance
end
def deserialize(params)
@InstanceId = params['InstanceId']
@SecurityGroupIds = params['SecurityGroupIds']
@ForReadonlyInstance = params['ForReadonlyInstance']
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
# ModifyDBInstanceVipVport请求参数结构体
class ModifyDBInstanceVipVportRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
# @type InstanceId: String
# @param DstIp: 目标 IP。该参数和 DstPort 参数,两者必传一个。
# @type DstIp: String
# @param DstPort: 目标端口,支持范围为:[1024-65535]。该参数和 DstIp 参数,两者必传一个。
# @type DstPort: Integer
# @param UniqVpcId: 私有网络统一 ID。
# @type UniqVpcId: String
# @param UniqSubnetId: 子网统一 ID。
# @type UniqSubnetId: String
# @param ReleaseDuration: 进行基础网络转 VPC 网络和 VPC 网络下的子网变更时,原网络中旧IP的回收时间,单位为小时,取值范围为0-168,默认值为24小时。
# @type ReleaseDuration: Integer
attr_accessor :InstanceId, :DstIp, :DstPort, :UniqVpcId, :UniqSubnetId, :ReleaseDuration
def initialize(instanceid=nil, dstip=nil, dstport=nil, uniqvpcid=nil, uniqsubnetid=nil, releaseduration=nil)
@InstanceId = instanceid
@DstIp = dstip
@DstPort = dstport
@UniqVpcId = uniqvpcid
@UniqSubnetId = uniqsubnetid
@ReleaseDuration = releaseduration
end
def deserialize(params)
@InstanceId = params['InstanceId']
@DstIp = params['DstIp']
@DstPort = params['DstPort']
@UniqVpcId = params['UniqVpcId']
@UniqSubnetId = params['UniqSubnetId']
@ReleaseDuration = params['ReleaseDuration']
end
end
# ModifyDBInstanceVipVport返回参数结构体
class ModifyDBInstanceVipVportResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务ID。(该返回字段目前已废弃)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# ModifyInstanceParam请求参数结构体
class ModifyInstanceParamRequest < TencentCloud::Common::AbstractModel
# @param InstanceIds: 实例短 ID 列表。
# @type InstanceIds: Array
# @param ParamList: 要修改的参数列表。每一个元素是 Name 和 CurrentValue 的组合。Name 是参数名,CurrentValue 是要修改成的值。
# @type ParamList: Array
# @param TemplateId: 模板id,ParamList和TemplateId必须至少传其中之一
# @type TemplateId: Integer
# @param WaitSwitch: 执行参数调整任务的方式,默认为 0。支持值包括:0 - 立刻执行,1 - 时间窗执行;当该值为 1 时,每次只能传一个实例(InstanceIds数量为1)
# @type WaitSwitch: Integer
attr_accessor :InstanceIds, :ParamList, :TemplateId, :WaitSwitch
def initialize(instanceids=nil, paramlist=nil, templateid=nil, waitswitch=nil)
@InstanceIds = instanceids
@ParamList = paramlist
@TemplateId = templateid
@WaitSwitch = waitswitch
end
def deserialize(params)
@InstanceIds = params['InstanceIds']
unless params['ParamList'].nil?
@ParamList = []
params['ParamList'].each do |i|
parameter_tmp = Parameter.new
parameter_tmp.deserialize(i)
@ParamList << parameter_tmp
end
end
@TemplateId = params['TemplateId']
@WaitSwitch = params['WaitSwitch']
end
end
# ModifyInstanceParam返回参数结构体
class ModifyInstanceParamResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务 ID,可用于查询任务进度。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# ModifyInstanceTag请求参数结构体
class ModifyInstanceTagRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID。
# @type InstanceId: String
# @param ReplaceTags: 要增加或修改的标签。
# @type ReplaceTags: Array
# @param DeleteTags: 要删除的标签。
# @type DeleteTags: Array
attr_accessor :InstanceId, :ReplaceTags, :DeleteTags
def initialize(instanceid=nil, replacetags=nil, deletetags=nil)
@InstanceId = instanceid
@ReplaceTags = replacetags
@DeleteTags = deletetags
end
def deserialize(params)
@InstanceId = params['InstanceId']
unless params['ReplaceTags'].nil?
@ReplaceTags = []
params['ReplaceTags'].each do |i|
taginfo_tmp = TagInfo.new
taginfo_tmp.deserialize(i)
@ReplaceTags << taginfo_tmp
end
end
unless params['DeleteTags'].nil?
@DeleteTags = []
params['DeleteTags'].each do |i|
taginfo_tmp = TagInfo.new
taginfo_tmp.deserialize(i)
@DeleteTags << taginfo_tmp
end
end
end
end
# ModifyInstanceTag返回参数结构体
class ModifyInstanceTagResponse < 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
# ModifyLocalBinlogConfig请求参数结构体
class ModifyLocalBinlogConfigRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例ID相同。
# @type InstanceId: String
# @param SaveHours: 本地binlog保留时长,可取值范围:[72,168]。
# @type SaveHours: Integer
# @param MaxUsage: 本地binlog空间使用率,可取值范围:[30,50]。
# @type MaxUsage: Integer
attr_accessor :InstanceId, :SaveHours, :MaxUsage
def initialize(instanceid=nil, savehours=nil, maxusage=nil)
@InstanceId = instanceid
@SaveHours = savehours
@MaxUsage = maxusage
end
def deserialize(params)
@InstanceId = params['InstanceId']
@SaveHours = params['SaveHours']
@MaxUsage = params['MaxUsage']
end
end
# ModifyLocalBinlogConfig返回参数结构体
class ModifyLocalBinlogConfigResponse < 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
# ModifyNameOrDescByDpId请求参数结构体
class ModifyNameOrDescByDpIdRequest < TencentCloud::Common::AbstractModel
# @param DeployGroupId: 置放群组 ID。
# @type DeployGroupId: String
# @param DeployGroupName: 置放群组名称,最长不能超过60个字符。置放群组名和置放群组描述不能都为空。
# @type DeployGroupName: String
# @param Description: 置放群组描述,最长不能超过200个字符。置放群组名和置放群组描述不能都为空。
# @type Description: String
attr_accessor :DeployGroupId, :DeployGroupName, :Description
def initialize(deploygroupid=nil, deploygroupname=nil, description=nil)
@DeployGroupId = deploygroupid
@DeployGroupName = deploygroupname
@Description = description
end
def deserialize(params)
@DeployGroupId = params['DeployGroupId']
@DeployGroupName = params['DeployGroupName']
@Description = params['Description']
end
end
# ModifyNameOrDescByDpId返回参数结构体
class ModifyNameOrDescByDpIdResponse < 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
# ModifyParamTemplate请求参数结构体
class ModifyParamTemplateRequest < TencentCloud::Common::AbstractModel
# @param TemplateId: 模板 ID。
# @type TemplateId: Integer
# @param Name: 模板名称,长度不超过64。
# @type Name: String
# @param Description: 模板描述,长度不超过255。
# @type Description: String
# @param ParamList: 参数列表。
# @type ParamList: Array
attr_accessor :TemplateId, :Name, :Description, :ParamList
def initialize(templateid=nil, name=nil, description=nil, paramlist=nil)
@TemplateId = templateid
@Name = name
@Description = description
@ParamList = paramlist
end
def deserialize(params)
@TemplateId = params['TemplateId']
@Name = params['Name']
@Description = params['Description']
unless params['ParamList'].nil?
@ParamList = []
params['ParamList'].each do |i|
parameter_tmp = Parameter.new
parameter_tmp.deserialize(i)
@ParamList << parameter_tmp
end
end
end
end
# ModifyParamTemplate返回参数结构体
class ModifyParamTemplateResponse < 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
# ModifyRoGroupInfo请求参数结构体
class ModifyRoGroupInfoRequest < TencentCloud::Common::AbstractModel
# @param RoGroupId: RO 组的 ID。
# @type RoGroupId: String
# @param RoGroupInfo: RO 组的详细信息。
# @type RoGroupInfo: :class:`Tencentcloud::Cdb.v20170320.models.RoGroupAttr`
# @param RoWeightValues: RO 组内实例的权重。若修改 RO 组的权重模式为用户自定义模式(custom),则必须设置该参数,且需要设置每个 RO 实例的权重值。
# @type RoWeightValues: Array
# @param IsBalanceRoLoad: 是否重新均衡 RO 组内的 RO 实例的负载。支持值包括:1 - 重新均衡负载;0 - 不重新均衡负载。默认值为 0。注意,设置为重新均衡负载时,RO 组内 RO 实例会有一次数据库连接瞬断,请确保应用程序能重连数据库。
# @type IsBalanceRoLoad: Integer
# @param ReplicationDelayTime: 废弃参数,无意义。
# @type ReplicationDelayTime: Integer
attr_accessor :RoGroupId, :RoGroupInfo, :RoWeightValues, :IsBalanceRoLoad, :ReplicationDelayTime
def initialize(rogroupid=nil, rogroupinfo=nil, roweightvalues=nil, isbalanceroload=nil, replicationdelaytime=nil)
@RoGroupId = rogroupid
@RoGroupInfo = rogroupinfo
@RoWeightValues = roweightvalues
@IsBalanceRoLoad = isbalanceroload
@ReplicationDelayTime = replicationdelaytime
end
def deserialize(params)
@RoGroupId = params['RoGroupId']
unless params['RoGroupInfo'].nil?
@RoGroupInfo = RoGroupAttr.new
@RoGroupInfo.deserialize(params['RoGroupInfo'])
end
unless params['RoWeightValues'].nil?
@RoWeightValues = []
params['RoWeightValues'].each do |i|
roweightvalue_tmp = RoWeightValue.new
roweightvalue_tmp.deserialize(i)
@RoWeightValues << roweightvalue_tmp
end
end
@IsBalanceRoLoad = params['IsBalanceRoLoad']
@ReplicationDelayTime = params['ReplicationDelayTime']
end
end
# ModifyRoGroupInfo返回参数结构体
class ModifyRoGroupInfoResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务 ID。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# ModifyTimeWindow请求参数结构体
class ModifyTimeWindowRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param TimeRanges: 修改后的可维护时间段,其中每一个时间段的格式形如:10:00-12:00;起止时间按半个小时对齐;最短半个小时,最长三个小时;最多设置两个时间段;起止时间范围为:[00:00, 24:00]。
# @type TimeRanges: Array
# @param Weekdays: 指定修改哪一天的客户时间段,可能的取值为:monday,tuesday,wednesday,thursday,friday,saturday,sunday。如果不指定该值或者为空,则默认一周七天都修改。
# @type Weekdays: Array
attr_accessor :InstanceId, :TimeRanges, :Weekdays
def initialize(instanceid=nil, timeranges=nil, weekdays=nil)
@InstanceId = instanceid
@TimeRanges = timeranges
@Weekdays = weekdays
end
def deserialize(params)
@InstanceId = params['InstanceId']
@TimeRanges = params['TimeRanges']
@Weekdays = params['Weekdays']
end
end
# ModifyTimeWindow返回参数结构体
class ModifyTimeWindowResponse < 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
# OfflineIsolatedInstances请求参数结构体
class OfflineIsolatedInstancesRequest < TencentCloud::Common::AbstractModel
# @param InstanceIds: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceIds: Array
attr_accessor :InstanceIds
def initialize(instanceids=nil)
@InstanceIds = instanceids
end
def deserialize(params)
@InstanceIds = params['InstanceIds']
end
end
# OfflineIsolatedInstances返回参数结构体
class OfflineIsolatedInstancesResponse < 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
# OpenDBInstanceGTID请求参数结构体
class OpenDBInstanceGTIDRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
attr_accessor :InstanceId
def initialize(instanceid=nil)
@InstanceId = instanceid
end
def deserialize(params)
@InstanceId = params['InstanceId']
end
end
# OpenDBInstanceGTID返回参数结构体
class OpenDBInstanceGTIDResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# OpenWanService请求参数结构体
class OpenWanServiceRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
# @type InstanceId: String
attr_accessor :InstanceId
def initialize(instanceid=nil)
@InstanceId = instanceid
end
def deserialize(params)
@InstanceId = params['InstanceId']
end
end
# OpenWanService返回参数结构体
class OpenWanServiceResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# 安全组出站规则
class Outbound < TencentCloud::Common::AbstractModel
# @param Action: 策略,ACCEPT 或者 DROP
# @type Action: String
# @param CidrIp: 目的 IP 或 IP 段,例如172.16.0.0/12
# @type CidrIp: String
# @param PortRange: 端口或者端口范围
# @type PortRange: String
# @param IpProtocol: 网络协议,支持 UDP、TCP等
# @type IpProtocol: String
# @param Dir: 规则限定的方向,进站规则为 OUTPUT
# @type Dir: String
# @param Desc: 规则描述
# @type Desc: String
attr_accessor :Action, :CidrIp, :PortRange, :IpProtocol, :Dir, :Desc
def initialize(action=nil, cidrip=nil, portrange=nil, ipprotocol=nil, dir=nil, desc=nil)
@Action = action
@CidrIp = cidrip
@PortRange = portrange
@IpProtocol = ipprotocol
@Dir = dir
@Desc = desc
end
def deserialize(params)
@Action = params['Action']
@CidrIp = params['CidrIp']
@PortRange = params['PortRange']
@IpProtocol = params['IpProtocol']
@Dir = params['Dir']
@Desc = params['Desc']
end
end
# 实例参数信息
class ParamInfo < TencentCloud::Common::AbstractModel
# @param Name: 参数名
# @type Name: String
# @param Value: 参数值
# @type Value: String
attr_accessor :Name, :Value
def initialize(name=nil, value=nil)
@Name = name
@Value = value
end
def deserialize(params)
@Name = params['Name']
@Value = params['Value']
end
end
# 参数修改记录
class ParamRecord < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例ID
# @type InstanceId: String
# @param ParamName: 参数名称
# @type ParamName: String
# @param OldValue: 参数修改前的值
# @type OldValue: String
# @param NewValue: 参数修改后的值
# @type NewValue: String
# @param IsSucess: 参数是否修改成功
# @type IsSucess: Boolean
# @param ModifyTime: 修改时间
# @type ModifyTime: String
attr_accessor :InstanceId, :ParamName, :OldValue, :NewValue, :IsSucess, :ModifyTime
def initialize(instanceid=nil, paramname=nil, oldvalue=nil, newvalue=nil, issucess=nil, modifytime=nil)
@InstanceId = instanceid
@ParamName = paramname
@OldValue = oldvalue
@NewValue = newvalue
@IsSucess = issucess
@ModifyTime = modifytime
end
def deserialize(params)
@InstanceId = params['InstanceId']
@ParamName = params['ParamName']
@OldValue = params['OldValue']
@NewValue = params['NewValue']
@IsSucess = params['IsSucess']
@ModifyTime = params['ModifyTime']
end
end
# 参数模板信息
class ParamTemplateInfo < TencentCloud::Common::AbstractModel
# @param TemplateId: 参数模板ID
# @type TemplateId: Integer
# @param Name: 参数模板名称
# @type Name: String
# @param Description: 参数模板描述
# @type Description: String
# @param EngineVersion: 实例引擎版本
# @type EngineVersion: String
# @param TemplateType: 参数模板类型
# @type TemplateType: String
attr_accessor :TemplateId, :Name, :Description, :EngineVersion, :TemplateType
def initialize(templateid=nil, name=nil, description=nil, engineversion=nil, templatetype=nil)
@TemplateId = templateid
@Name = name
@Description = description
@EngineVersion = engineversion
@TemplateType = templatetype
end
def deserialize(params)
@TemplateId = params['TemplateId']
@Name = params['Name']
@Description = params['Description']
@EngineVersion = params['EngineVersion']
@TemplateType = params['TemplateType']
end
end
# 数据库实例参数
class Parameter < TencentCloud::Common::AbstractModel
# @param Name: 参数名称
# @type Name: String
# @param CurrentValue: 参数值
# @type CurrentValue: String
attr_accessor :Name, :CurrentValue
def initialize(name=nil, currentvalue=nil)
@Name = name
@CurrentValue = currentvalue
end
def deserialize(params)
@Name = params['Name']
@CurrentValue = params['CurrentValue']
end
end
# 实例参数的详细描述
class ParameterDetail < TencentCloud::Common::AbstractModel
# @param Name: 参数名称
# @type Name: String
# @param ParamType: 参数类型:integer,enum,float,string,func
# @type ParamType: String
# @param Default: 参数默认值
# @type Default: String
# @param Description: 参数描述
# @type Description: String
# @param CurrentValue: 参数当前值
# @type CurrentValue: String
# @param NeedReboot: 修改参数后,是否需要重启数据库以使参数生效。可能的值包括:0-不需要重启;1-需要重启
# @type NeedReboot: Integer
# @param Max: 参数允许的最大值
# @type Max: Integer
# @param Min: 参数允许的最小值
# @type Min: Integer
# @param EnumValue: 参数的可选枚举值。如果为非枚举参数,则为空
# @type EnumValue: Array
# @param MaxFunc: 参数是公式类型时,该字段有效,表示公式类型最大值
# @type MaxFunc: String
# @param MinFunc: 参数是公式类型时,该字段有效,表示公式类型最小值
# @type MinFunc: String
attr_accessor :Name, :ParamType, :Default, :Description, :CurrentValue, :NeedReboot, :Max, :Min, :EnumValue, :MaxFunc, :MinFunc
def initialize(name=nil, paramtype=nil, default=nil, description=nil, currentvalue=nil, needreboot=nil, max=nil, min=nil, enumvalue=nil, maxfunc=nil, minfunc=nil)
@Name = name
@ParamType = paramtype
@Default = default
@Description = description
@CurrentValue = currentvalue
@NeedReboot = needreboot
@Max = max
@Min = min
@EnumValue = enumvalue
@MaxFunc = maxfunc
@MinFunc = minfunc
end
def deserialize(params)
@Name = params['Name']
@ParamType = params['ParamType']
@Default = params['Default']
@Description = params['Description']
@CurrentValue = params['CurrentValue']
@NeedReboot = params['NeedReboot']
@Max = params['Max']
@Min = params['Min']
@EnumValue = params['EnumValue']
@MaxFunc = params['MaxFunc']
@MinFunc = params['MinFunc']
end
end
# 数据库代理连接池规格配置
class PoolConf < TencentCloud::Common::AbstractModel
# @param ConnectionPoolType: 连接池类型:SessionConnectionPool(会话级别连接池
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ConnectionPoolType: String
# @param MaxPoolConnectionTimeOut: 最大可保持连接阈值:单位(秒)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MaxPoolConnectionTimeOut: Integer
# @param MinPoolConnectionTimeOut: 最小可保持连接阈值:单位(秒)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MinPoolConnectionTimeOut: Integer
attr_accessor :ConnectionPoolType, :MaxPoolConnectionTimeOut, :MinPoolConnectionTimeOut
def initialize(connectionpooltype=nil, maxpoolconnectiontimeout=nil, minpoolconnectiontimeout=nil)
@ConnectionPoolType = connectionpooltype
@MaxPoolConnectionTimeOut = maxpoolconnectiontimeout
@MinPoolConnectionTimeOut = minpoolconnectiontimeout
end
def deserialize(params)
@ConnectionPoolType = params['ConnectionPoolType']
@MaxPoolConnectionTimeOut = params['MaxPoolConnectionTimeOut']
@MinPoolConnectionTimeOut = params['MinPoolConnectionTimeOut']
end
end
# 数据代理组信息
class ProxyGroup < TencentCloud::Common::AbstractModel
# @param BaseGroup: 代理基本信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BaseGroup: :class:`Tencentcloud::Cdb.v20170320.models.BaseGroupInfo`
# @param Address: 代理地址信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Address: Array
# @param ConnectionPoolInfo: 代理连接池信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ConnectionPoolInfo: :class:`Tencentcloud::Cdb.v20170320.models.ConnectionPoolInfo`
# @param ProxyNode: 代理节点信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProxyNode: Array
# @param RWInstInfo: 代理路由信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RWInstInfo: :class:`Tencentcloud::Cdb.v20170320.models.RWInfo`
attr_accessor :BaseGroup, :Address, :ConnectionPoolInfo, :ProxyNode, :RWInstInfo
def initialize(basegroup=nil, address=nil, connectionpoolinfo=nil, proxynode=nil, rwinstinfo=nil)
@BaseGroup = basegroup
@Address = address
@ConnectionPoolInfo = connectionpoolinfo
@ProxyNode = proxynode
@RWInstInfo = rwinstinfo
end
def deserialize(params)
unless params['BaseGroup'].nil?
@BaseGroup = BaseGroupInfo.new
@BaseGroup.deserialize(params['BaseGroup'])
end
unless params['Address'].nil?
@Address = []
params['Address'].each do |i|
address_tmp = Address.new
address_tmp.deserialize(i)
@Address << address_tmp
end
end
unless params['ConnectionPoolInfo'].nil?
@ConnectionPoolInfo = ConnectionPoolInfo.new
@ConnectionPoolInfo.deserialize(params['ConnectionPoolInfo'])
end
unless params['ProxyNode'].nil?
@ProxyNode = []
params['ProxyNode'].each do |i|
proxynodeinfo_tmp = ProxyNodeInfo.new
proxynodeinfo_tmp.deserialize(i)
@ProxyNode << proxynodeinfo_tmp
end
end
unless params['RWInstInfo'].nil?
@RWInstInfo = RWInfo.new
@RWInstInfo.deserialize(params['RWInstInfo'])
end
end
end
# 数据代理组信息
class ProxyGroups < TencentCloud::Common::AbstractModel
# @param BaseGroup: 代理基本信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type BaseGroup: :class:`Tencentcloud::Cdb.v20170320.models.BaseGroupInfo`
# @param Address: 代理地址信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Address: Array
# @param ConnectionPoolInfo: 代理连接池信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ConnectionPoolInfo: :class:`Tencentcloud::Cdb.v20170320.models.ConnectionPoolInfo`
# @param ProxyNode: 代理节点信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProxyNode: Array
# @param RWInstInfo: 代理路由信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RWInstInfo: :class:`Tencentcloud::Cdb.v20170320.models.RWInfos`
attr_accessor :BaseGroup, :Address, :ConnectionPoolInfo, :ProxyNode, :RWInstInfo
def initialize(basegroup=nil, address=nil, connectionpoolinfo=nil, proxynode=nil, rwinstinfo=nil)
@BaseGroup = basegroup
@Address = address
@ConnectionPoolInfo = connectionpoolinfo
@ProxyNode = proxynode
@RWInstInfo = rwinstinfo
end
def deserialize(params)
unless params['BaseGroup'].nil?
@BaseGroup = BaseGroupInfo.new
@BaseGroup.deserialize(params['BaseGroup'])
end
unless params['Address'].nil?
@Address = []
params['Address'].each do |i|
address_tmp = Address.new
address_tmp.deserialize(i)
@Address << address_tmp
end
end
unless params['ConnectionPoolInfo'].nil?
@ConnectionPoolInfo = ConnectionPoolInfo.new
@ConnectionPoolInfo.deserialize(params['ConnectionPoolInfo'])
end
unless params['ProxyNode'].nil?
@ProxyNode = []
params['ProxyNode'].each do |i|
proxynodeinfo_tmp = ProxyNodeInfo.new
proxynodeinfo_tmp.deserialize(i)
@ProxyNode << proxynodeinfo_tmp
end
end
unless params['RWInstInfo'].nil?
@RWInstInfo = RWInfos.new
@RWInstInfo.deserialize(params['RWInstInfo'])
end
end
end
# 代理节点信息
class ProxyNodeInfo < TencentCloud::Common::AbstractModel
# @param ProxyNodeId: 代理节点ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProxyNodeId: String
# @param ProxyNodeConnections: 节点当前连接数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProxyNodeConnections: Integer
# @param ProxyNodeCpu: cup
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProxyNodeCpu: Integer
# @param ProxyNodeMem: 内存
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProxyNodeMem: Integer
# @param ProxyStatus: 节点状态:
# init(申请中)
# online(运行中)
# offline(离线中)
# destroy(已销毁)
# recovering(故障恢复中)
# error(节点故障)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProxyStatus: String
attr_accessor :ProxyNodeId, :ProxyNodeConnections, :ProxyNodeCpu, :ProxyNodeMem, :ProxyStatus
def initialize(proxynodeid=nil, proxynodeconnections=nil, proxynodecpu=nil, proxynodemem=nil, proxystatus=nil)
@ProxyNodeId = proxynodeid
@ProxyNodeConnections = proxynodeconnections
@ProxyNodeCpu = proxynodecpu
@ProxyNodeMem = proxynodemem
@ProxyStatus = proxystatus
end
def deserialize(params)
@ProxyNodeId = params['ProxyNodeId']
@ProxyNodeConnections = params['ProxyNodeConnections']
@ProxyNodeCpu = params['ProxyNodeCpu']
@ProxyNodeMem = params['ProxyNodeMem']
@ProxyStatus = params['ProxyStatus']
end
end
# QueryCDBProxy请求参数结构体
class QueryCDBProxyRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例ID
# @type InstanceId: String
# @param ProxyGroupId: 代理ID
# @type ProxyGroupId: String
attr_accessor :InstanceId, :ProxyGroupId
def initialize(instanceid=nil, proxygroupid=nil)
@InstanceId = instanceid
@ProxyGroupId = proxygroupid
end
def deserialize(params)
@InstanceId = params['InstanceId']
@ProxyGroupId = params['ProxyGroupId']
end
end
# QueryCDBProxy返回参数结构体
class QueryCDBProxyResponse < TencentCloud::Common::AbstractModel
# @param Count: 代理数量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Count: Integer
# @param ProxyGroup: 代理信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ProxyGroup: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Count, :ProxyGroup, :RequestId
def initialize(count=nil, proxygroup=nil, requestid=nil)
@Count = count
@ProxyGroup = proxygroup
@RequestId = requestid
end
def deserialize(params)
@Count = params['Count']
unless params['ProxyGroup'].nil?
@ProxyGroup = []
params['ProxyGroup'].each do |i|
proxygroups_tmp = ProxyGroups.new
proxygroups_tmp.deserialize(i)
@ProxyGroup << proxygroups_tmp
end
end
@RequestId = params['RequestId']
end
end
# proxy读写分离信息
class RWInfo < TencentCloud::Common::AbstractModel
# @param InstCount: 代理实例数量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type InstCount: Integer
# @param WeightMode: 权重分配模式;
# 系统自动分配:"system", 自定义:"custom"
# 注意:此字段可能返回 null,表示取不到有效值。
# @type WeightMode: String
# @param IsKickOut: 是否开启延迟剔除
# 注意:此字段可能返回 null,表示取不到有效值。
# @type IsKickOut: Boolean
# @param MinCount: 最小保留数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MinCount: Integer
# @param MaxDelay: 延迟剔除阈值
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MaxDelay: Integer
# @param FailOver: 是否开启故障转移
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FailOver: Boolean
# @param AutoAddRo: 是否自动添加RO
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AutoAddRo: Boolean
# @param RWInstInfo: 代理实例信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RWInstInfo: :class:`Tencentcloud::Cdb.v20170320.models.RWInstanceInfo`
attr_accessor :InstCount, :WeightMode, :IsKickOut, :MinCount, :MaxDelay, :FailOver, :AutoAddRo, :RWInstInfo
def initialize(instcount=nil, weightmode=nil, iskickout=nil, mincount=nil, maxdelay=nil, failover=nil, autoaddro=nil, rwinstinfo=nil)
@InstCount = instcount
@WeightMode = weightmode
@IsKickOut = iskickout
@MinCount = mincount
@MaxDelay = maxdelay
@FailOver = failover
@AutoAddRo = autoaddro
@RWInstInfo = rwinstinfo
end
def deserialize(params)
@InstCount = params['InstCount']
@WeightMode = params['WeightMode']
@IsKickOut = params['IsKickOut']
@MinCount = params['MinCount']
@MaxDelay = params['MaxDelay']
@FailOver = params['FailOver']
@AutoAddRo = params['AutoAddRo']
unless params['RWInstInfo'].nil?
@RWInstInfo = RWInstanceInfo.new
@RWInstInfo.deserialize(params['RWInstInfo'])
end
end
end
# proxy读写分离信息
class RWInfos < TencentCloud::Common::AbstractModel
# @param InstCount: 代理实例数量
# 注意:此字段可能返回 null,表示取不到有效值。
# @type InstCount: Integer
# @param WeightMode: 权重分配模式;
# 系统自动分配:"system", 自定义:"custom"
# 注意:此字段可能返回 null,表示取不到有效值。
# @type WeightMode: String
# @param IsKickOut: 是否开启延迟剔除
# 注意:此字段可能返回 null,表示取不到有效值。
# @type IsKickOut: Boolean
# @param MinCount: 最小保留数
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MinCount: Integer
# @param MaxDelay: 延迟剔除阈值
# 注意:此字段可能返回 null,表示取不到有效值。
# @type MaxDelay: Integer
# @param FailOver: 是否开启故障转移
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FailOver: Boolean
# @param AutoAddRo: 是否自动添加RO
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AutoAddRo: Boolean
# @param RWInstInfo: 代理实例信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RWInstInfo: Array
attr_accessor :InstCount, :WeightMode, :IsKickOut, :MinCount, :MaxDelay, :FailOver, :AutoAddRo, :RWInstInfo
def initialize(instcount=nil, weightmode=nil, iskickout=nil, mincount=nil, maxdelay=nil, failover=nil, autoaddro=nil, rwinstinfo=nil)
@InstCount = instcount
@WeightMode = weightmode
@IsKickOut = iskickout
@MinCount = mincount
@MaxDelay = maxdelay
@FailOver = failover
@AutoAddRo = autoaddro
@RWInstInfo = rwinstinfo
end
def deserialize(params)
@InstCount = params['InstCount']
@WeightMode = params['WeightMode']
@IsKickOut = params['IsKickOut']
@MinCount = params['MinCount']
@MaxDelay = params['MaxDelay']
@FailOver = params['FailOver']
@AutoAddRo = params['AutoAddRo']
unless params['RWInstInfo'].nil?
@RWInstInfo = []
params['RWInstInfo'].each do |i|
rwinstanceinfo_tmp = RWInstanceInfo.new
rwinstanceinfo_tmp.deserialize(i)
@RWInstInfo << rwinstanceinfo_tmp
end
end
end
end
# 代理实例信息
class RWInstanceInfo < TencentCloud::Common::AbstractModel
def initialize()
end
def deserialize(params)
end
end
# 地域售卖配置
class RegionSellConf < TencentCloud::Common::AbstractModel
# @param RegionName: 地域中文名称
# @type RegionName: String
# @param Area: 所属大区
# @type Area: String
# @param IsDefaultRegion: 是否为默认地域
# @type IsDefaultRegion: Integer
# @param Region: 地域名称
# @type Region: String
# @param ZonesConf: 可用区售卖配置
# @type ZonesConf: Array
attr_accessor :RegionName, :Area, :IsDefaultRegion, :Region, :ZonesConf
def initialize(regionname=nil, area=nil, isdefaultregion=nil, region=nil, zonesconf=nil)
@RegionName = regionname
@Area = area
@IsDefaultRegion = isdefaultregion
@Region = region
@ZonesConf = zonesconf
end
def deserialize(params)
@RegionName = params['RegionName']
@Area = params['Area']
@IsDefaultRegion = params['IsDefaultRegion']
@Region = params['Region']
unless params['ZonesConf'].nil?
@ZonesConf = []
params['ZonesConf'].each do |i|
zonesellconf_tmp = ZoneSellConf.new
zonesellconf_tmp.deserialize(i)
@ZonesConf << zonesellconf_tmp
end
end
end
end
# ReleaseIsolatedDBInstances请求参数结构体
class ReleaseIsolatedDBInstancesRequest < TencentCloud::Common::AbstractModel
# @param InstanceIds: 实例 ID 数组,单个实例 ID 格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
# @type InstanceIds: Array
attr_accessor :InstanceIds
def initialize(instanceids=nil)
@InstanceIds = instanceids
end
def deserialize(params)
@InstanceIds = params['InstanceIds']
end
end
# ReleaseIsolatedDBInstances返回参数结构体
class ReleaseIsolatedDBInstancesResponse < TencentCloud::Common::AbstractModel
# @param Items: 解隔离操作的结果集。
# @type Items: Array
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :Items, :RequestId
def initialize(items=nil, requestid=nil)
@Items = items
@RequestId = requestid
end
def deserialize(params)
unless params['Items'].nil?
@Items = []
params['Items'].each do |i|
releaseresult_tmp = ReleaseResult.new
releaseresult_tmp.deserialize(i)
@Items << releaseresult_tmp
end
end
@RequestId = params['RequestId']
end
end
# 解隔离任务结果
class ReleaseResult < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID。
# @type InstanceId: String
# @param Code: 实例解隔离操作的结果值。返回值为0表示成功。
# @type Code: Integer
# @param Message: 实例解隔离操作的错误信息。
# @type Message: String
attr_accessor :InstanceId, :Code, :Message
def initialize(instanceid=nil, code=nil, message=nil)
@InstanceId = instanceid
@Code = code
@Message = message
end
def deserialize(params)
@InstanceId = params['InstanceId']
@Code = params['Code']
@Message = params['Message']
end
end
# ReloadBalanceProxyNode请求参数结构体
class ReloadBalanceProxyNodeRequest < TencentCloud::Common::AbstractModel
# @param ProxyGroupId: 代理组ID
# @type ProxyGroupId: String
attr_accessor :ProxyGroupId
def initialize(proxygroupid=nil)
@ProxyGroupId = proxygroupid
end
def deserialize(params)
@ProxyGroupId = params['ProxyGroupId']
end
end
# ReloadBalanceProxyNode返回参数结构体
class ReloadBalanceProxyNodeResponse < 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
# RenewDBInstance请求参数结构体
class RenewDBInstanceRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 待续费的实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872)。
# @type InstanceId: String
# @param TimeSpan: 续费时长,单位:月,可选值包括 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。
# @type TimeSpan: Integer
# @param ModifyPayType: 如果需要将按量计费实例续费为包年包月的实例,该入参的值需要指定为 "PREPAID" 。
# @type ModifyPayType: String
attr_accessor :InstanceId, :TimeSpan, :ModifyPayType
def initialize(instanceid=nil, timespan=nil, modifypaytype=nil)
@InstanceId = instanceid
@TimeSpan = timespan
@ModifyPayType = modifypaytype
end
def deserialize(params)
@InstanceId = params['InstanceId']
@TimeSpan = params['TimeSpan']
@ModifyPayType = params['ModifyPayType']
end
end
# RenewDBInstance返回参数结构体
class RenewDBInstanceResponse < TencentCloud::Common::AbstractModel
# @param DealId: 订单 ID。
# @type DealId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :DealId, :RequestId
def initialize(dealid=nil, requestid=nil)
@DealId = dealid
@RequestId = requestid
end
def deserialize(params)
@DealId = params['DealId']
@RequestId = params['RequestId']
end
end
# RestartDBInstances请求参数结构体
class RestartDBInstancesRequest < TencentCloud::Common::AbstractModel
# @param InstanceIds: 实例 ID 数组,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceIds: Array
attr_accessor :InstanceIds
def initialize(instanceids=nil)
@InstanceIds = instanceids
end
def deserialize(params)
@InstanceIds = params['InstanceIds']
end
end
# RestartDBInstances返回参数结构体
class RestartDBInstancesResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# 只读组参数
class RoGroup < TencentCloud::Common::AbstractModel
# @param RoGroupMode: 只读组模式,可选值为:alone-系统自动分配只读组;allinone-新建只读组;join-使用现有只读组。
# @type RoGroupMode: String
# @param RoGroupId: 只读组 ID。
# @type RoGroupId: String
# @param RoGroupName: 只读组名称。
# @type RoGroupName: String
# @param RoOfflineDelay: 是否启用延迟超限剔除功能,启用该功能后,只读实例与主实例的延迟超过延迟阈值,只读实例将被隔离。可选值:1-启用;0-不启用。
# @type RoOfflineDelay: Integer
# @param RoMaxDelayTime: 延迟阈值。
# @type RoMaxDelayTime: Integer
# @param MinRoInGroup: 最少实例保留个数,若购买只读实例数量小于设置数量将不做剔除。
# @type MinRoInGroup: Integer
# @param WeightMode: 读写权重分配模式,可选值:system-系统自动分配;custom-自定义。
# @type WeightMode: String
# @param Weight: 权重值。
# @type Weight: Integer
# @param RoInstances: 只读组中的只读实例详情。
# @type RoInstances: Array
# @param Vip: 只读组的内网 IP。
# @type Vip: String
# @param Vport: 只读组的内网端口号。
# @type Vport: Integer
# @param UniqVpcId: 私有网络 ID。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UniqVpcId: String
# @param UniqSubnetId: 子网 ID。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UniqSubnetId: String
# @param RoGroupRegion: 只读组所在的地域。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RoGroupRegion: String
# @param RoGroupZone: 只读组所在的可用区。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RoGroupZone: String
# @param DelayReplicationTime: 延迟复制时间。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DelayReplicationTime: Integer
attr_accessor :RoGroupMode, :RoGroupId, :RoGroupName, :RoOfflineDelay, :RoMaxDelayTime, :MinRoInGroup, :WeightMode, :Weight, :RoInstances, :Vip, :Vport, :UniqVpcId, :UniqSubnetId, :RoGroupRegion, :RoGroupZone, :DelayReplicationTime
def initialize(rogroupmode=nil, rogroupid=nil, rogroupname=nil, roofflinedelay=nil, romaxdelaytime=nil, minroingroup=nil, weightmode=nil, weight=nil, roinstances=nil, vip=nil, vport=nil, uniqvpcid=nil, uniqsubnetid=nil, rogroupregion=nil, rogroupzone=nil, delayreplicationtime=nil)
@RoGroupMode = rogroupmode
@RoGroupId = rogroupid
@RoGroupName = rogroupname
@RoOfflineDelay = roofflinedelay
@RoMaxDelayTime = romaxdelaytime
@MinRoInGroup = minroingroup
@WeightMode = weightmode
@Weight = weight
@RoInstances = roinstances
@Vip = vip
@Vport = vport
@UniqVpcId = uniqvpcid
@UniqSubnetId = uniqsubnetid
@RoGroupRegion = rogroupregion
@RoGroupZone = rogroupzone
@DelayReplicationTime = delayreplicationtime
end
def deserialize(params)
@RoGroupMode = params['RoGroupMode']
@RoGroupId = params['RoGroupId']
@RoGroupName = params['RoGroupName']
@RoOfflineDelay = params['RoOfflineDelay']
@RoMaxDelayTime = params['RoMaxDelayTime']
@MinRoInGroup = params['MinRoInGroup']
@WeightMode = params['WeightMode']
@Weight = params['Weight']
unless params['RoInstances'].nil?
@RoInstances = []
params['RoInstances'].each do |i|
roinstanceinfo_tmp = RoInstanceInfo.new
roinstanceinfo_tmp.deserialize(i)
@RoInstances << roinstanceinfo_tmp
end
end
@Vip = params['Vip']
@Vport = params['Vport']
@UniqVpcId = params['UniqVpcId']
@UniqSubnetId = params['UniqSubnetId']
@RoGroupRegion = params['RoGroupRegion']
@RoGroupZone = params['RoGroupZone']
@DelayReplicationTime = params['DelayReplicationTime']
end
end
# RO 组的配置信息
class RoGroupAttr < TencentCloud::Common::AbstractModel
# @param RoGroupName: RO 组名称。
# @type RoGroupName: String
# @param RoMaxDelayTime: RO 实例最大延迟阈值。单位为秒,最小值为 1。注意,RO 组必须设置了开启实例延迟剔除策略,该值才有效。
# @type RoMaxDelayTime: Integer
# @param RoOfflineDelay: 是否开启实例延迟剔除。支持的值包括:1 - 开启;0 - 不开启。注意,若设置开启实例延迟剔除,则必须设置延迟阈值(RoMaxDelayTime)参数。
# @type RoOfflineDelay: Integer
# @param MinRoInGroup: 最少保留实例数。可设置为小于或等于该 RO 组下 RO 实例个数的任意值。注意,若设置值大于 RO 实例数量将不做剔除;若设置为 0,所有实例延迟超限都会被剔除。
# @type MinRoInGroup: Integer
# @param WeightMode: 权重模式。支持值包括:"system" - 系统自动分配; "custom" - 用户自定义设置。注意,若设置 "custom" 模式,则必须设置 RO 实例权重配置(RoWeightValues)参数。
# @type WeightMode: String
# @param ReplicationDelayTime: 延迟复制时间。
# @type ReplicationDelayTime: Integer
attr_accessor :RoGroupName, :RoMaxDelayTime, :RoOfflineDelay, :MinRoInGroup, :WeightMode, :ReplicationDelayTime
def initialize(rogroupname=nil, romaxdelaytime=nil, roofflinedelay=nil, minroingroup=nil, weightmode=nil, replicationdelaytime=nil)
@RoGroupName = rogroupname
@RoMaxDelayTime = romaxdelaytime
@RoOfflineDelay = roofflinedelay
@MinRoInGroup = minroingroup
@WeightMode = weightmode
@ReplicationDelayTime = replicationdelaytime
end
def deserialize(params)
@RoGroupName = params['RoGroupName']
@RoMaxDelayTime = params['RoMaxDelayTime']
@RoOfflineDelay = params['RoOfflineDelay']
@MinRoInGroup = params['MinRoInGroup']
@WeightMode = params['WeightMode']
@ReplicationDelayTime = params['ReplicationDelayTime']
end
end
# RO实例的详细信息
class RoInstanceInfo < TencentCloud::Common::AbstractModel
# @param MasterInstanceId: RO组对应的主实例的ID
# @type MasterInstanceId: String
# @param RoStatus: RO实例在RO组内的状态,可能的值:online-在线,offline-下线
# @type RoStatus: String
# @param OfflineTime: RO实例在RO组内上一次下线的时间
# @type OfflineTime: String
# @param Weight: RO实例在RO组内的权重
# @type Weight: Integer
# @param Region: RO实例所在区域名称,如ap-shanghai
# @type Region: String
# @param Zone: RO可用区的正式名称,如ap-shanghai-1
# @type Zone: String
# @param InstanceId: RO实例ID,格式如:cdbro-c1nl9rpv
# @type InstanceId: String
# @param Status: RO实例状态,可能返回值:0-创建中,1-运行中,3-异地RO(仅在使用DescribeDBInstances查询主实例信息时,返回值中异地RO的状态恒等于3,其他场景下无此值),4-删除中
# @type Status: Integer
# @param InstanceType: 实例类型,可能返回值:1-主实例,2-灾备实例,3-只读实例
# @type InstanceType: Integer
# @param InstanceName: RO实例名称
# @type InstanceName: String
# @param HourFeeStatus: 按量计费状态,可能的取值:1-正常,2-欠费
# @type HourFeeStatus: Integer
# @param TaskStatus: RO实例任务状态,可能返回值:
0-没有任务
1-升级中
2-数据导入中
3-开放Slave中
4-外网访问开通中
5-批量操作执行中
6-回档中
7-外网访问关闭中
8-密码修改中
9-实例名修改中
10-重启中
12-自建迁移中
13-删除库表中
14-灾备实例创建同步中
# @type TaskStatus: Integer
# @param Memory: RO实例内存大小,单位:MB
# @type Memory: Integer
# @param Volume: RO实例硬盘大小,单位:GB
# @type Volume: Integer
# @param Qps: 每次查询数量
# @type Qps: Integer
# @param Vip: RO实例的内网IP地址
# @type Vip: String
# @param Vport: RO实例访问端口
# @type Vport: Integer
# @param VpcId: RO实例所在私有网络ID
# @type VpcId: Integer
# @param SubnetId: RO实例所在私有网络子网ID
# @type SubnetId: Integer
# @param DeviceType: RO实例规格描述,目前可取值 CUSTOM
# @type DeviceType: String
# @param EngineVersion: RO实例数据库引擎版本,可能返回值:5.1、5.5、5.6、5.7、8.0
# @type EngineVersion: String
# @param DeadlineTime: RO实例到期时间,时间格式:yyyy-mm-dd hh:mm:ss,如实例为按量计费模式,则此字段值为0000-00-00 00:00:00
# @type DeadlineTime: String
# @param PayType: RO实例计费类型,可能返回值:0-包年包月,1-按量计费,2-后付费月结
# @type PayType: Integer
attr_accessor :MasterInstanceId, :RoStatus, :OfflineTime, :Weight, :Region, :Zone, :InstanceId, :Status, :InstanceType, :InstanceName, :HourFeeStatus, :TaskStatus, :Memory, :Volume, :Qps, :Vip, :Vport, :VpcId, :SubnetId, :DeviceType, :EngineVersion, :DeadlineTime, :PayType
def initialize(masterinstanceid=nil, rostatus=nil, offlinetime=nil, weight=nil, region=nil, zone=nil, instanceid=nil, status=nil, instancetype=nil, instancename=nil, hourfeestatus=nil, taskstatus=nil, memory=nil, volume=nil, qps=nil, vip=nil, vport=nil, vpcid=nil, subnetid=nil, devicetype=nil, engineversion=nil, deadlinetime=nil, paytype=nil)
@MasterInstanceId = masterinstanceid
@RoStatus = rostatus
@OfflineTime = offlinetime
@Weight = weight
@Region = region
@Zone = zone
@InstanceId = instanceid
@Status = status
@InstanceType = instancetype
@InstanceName = instancename
@HourFeeStatus = hourfeestatus
@TaskStatus = taskstatus
@Memory = memory
@Volume = volume
@Qps = qps
@Vip = vip
@Vport = vport
@VpcId = vpcid
@SubnetId = subnetid
@DeviceType = devicetype
@EngineVersion = engineversion
@DeadlineTime = deadlinetime
@PayType = paytype
end
def deserialize(params)
@MasterInstanceId = params['MasterInstanceId']
@RoStatus = params['RoStatus']
@OfflineTime = params['OfflineTime']
@Weight = params['Weight']
@Region = params['Region']
@Zone = params['Zone']
@InstanceId = params['InstanceId']
@Status = params['Status']
@InstanceType = params['InstanceType']
@InstanceName = params['InstanceName']
@HourFeeStatus = params['HourFeeStatus']
@TaskStatus = params['TaskStatus']
@Memory = params['Memory']
@Volume = params['Volume']
@Qps = params['Qps']
@Vip = params['Vip']
@Vport = params['Vport']
@VpcId = params['VpcId']
@SubnetId = params['SubnetId']
@DeviceType = params['DeviceType']
@EngineVersion = params['EngineVersion']
@DeadlineTime = params['DeadlineTime']
@PayType = params['PayType']
end
end
# 只读vip信息
class RoVipInfo < TencentCloud::Common::AbstractModel
# @param RoVipStatus: 只读vip状态
# @type RoVipStatus: Integer
# @param RoSubnetId: 只读vip的子网
# @type RoSubnetId: Integer
# @param RoVpcId: 只读vip的私有网络
# @type RoVpcId: Integer
# @param RoVport: 只读vip的端口号
# @type RoVport: Integer
# @param RoVip: 只读vip
# @type RoVip: String
attr_accessor :RoVipStatus, :RoSubnetId, :RoVpcId, :RoVport, :RoVip
def initialize(rovipstatus=nil, rosubnetid=nil, rovpcid=nil, rovport=nil, rovip=nil)
@RoVipStatus = rovipstatus
@RoSubnetId = rosubnetid
@RoVpcId = rovpcid
@RoVport = rovport
@RoVip = rovip
end
def deserialize(params)
@RoVipStatus = params['RoVipStatus']
@RoSubnetId = params['RoSubnetId']
@RoVpcId = params['RoVpcId']
@RoVport = params['RoVport']
@RoVip = params['RoVip']
end
end
# 实例权重
class RoWeight < TencentCloud::Common::AbstractModel
def initialize()
end
def deserialize(params)
end
end
# RO 实例的权重值
class RoWeightValue < TencentCloud::Common::AbstractModel
# @param InstanceId: RO 实例 ID。
# @type InstanceId: String
# @param Weight: 权重值。取值范围为 [0, 100]。
# @type Weight: Integer
attr_accessor :InstanceId, :Weight
def initialize(instanceid=nil, weight=nil)
@InstanceId = instanceid
@Weight = weight
end
def deserialize(params)
@InstanceId = params['InstanceId']
@Weight = params['Weight']
end
end
# 用于回档的数据库名
class RollbackDBName < TencentCloud::Common::AbstractModel
# @param DatabaseName: 回档前的原数据库名
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DatabaseName: String
# @param NewDatabaseName: 回档后的新数据库名
# 注意:此字段可能返回 null,表示取不到有效值。
# @type NewDatabaseName: String
attr_accessor :DatabaseName, :NewDatabaseName
def initialize(databasename=nil, newdatabasename=nil)
@DatabaseName = databasename
@NewDatabaseName = newdatabasename
end
def deserialize(params)
@DatabaseName = params['DatabaseName']
@NewDatabaseName = params['NewDatabaseName']
end
end
# 用于回档的实例详情
class RollbackInstancesInfo < TencentCloud::Common::AbstractModel
# @param InstanceId: 云数据库实例ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type InstanceId: String
# @param Strategy: 回档策略。可选值为:table、db、full;默认值为full。table - 极速回档模式,仅导入所选中表级别的备份和binlog,如有跨表操作,且关联表未被同时选中,将会导致回档失败,该模式下参数Databases必须为空;db - 快速模式,仅导入所选中库级别的备份和binlog,如有跨库操作,且关联库未被同时选中,将会导致回档失败;full - 普通回档模式,将导入整个实例的备份和binlog,速度较慢。
# @type Strategy: String
# @param RollbackTime: 数据库回档时间,时间格式为:yyyy-mm-dd hh:mm:ss
# @type RollbackTime: String
# @param Databases: 待回档的数据库信息,表示整库回档
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Databases: Array
# @param Tables: 待回档的数据库表信息,表示按表回档
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Tables: Array
attr_accessor :InstanceId, :Strategy, :RollbackTime, :Databases, :Tables
def initialize(instanceid=nil, strategy=nil, rollbacktime=nil, databases=nil, tables=nil)
@InstanceId = instanceid
@Strategy = strategy
@RollbackTime = rollbacktime
@Databases = databases
@Tables = tables
end
def deserialize(params)
@InstanceId = params['InstanceId']
@Strategy = params['Strategy']
@RollbackTime = params['RollbackTime']
unless params['Databases'].nil?
@Databases = []
params['Databases'].each do |i|
rollbackdbname_tmp = RollbackDBName.new
rollbackdbname_tmp.deserialize(i)
@Databases << rollbackdbname_tmp
end
end
unless params['Tables'].nil?
@Tables = []
params['Tables'].each do |i|
rollbacktables_tmp = RollbackTables.new
rollbacktables_tmp.deserialize(i)
@Tables << rollbacktables_tmp
end
end
end
end
# 用于回档的数据库表名
class RollbackTableName < TencentCloud::Common::AbstractModel
# @param TableName: 回档前的原数据库表名
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TableName: String
# @param NewTableName: 回档后的新数据库表名
# 注意:此字段可能返回 null,表示取不到有效值。
# @type NewTableName: String
attr_accessor :TableName, :NewTableName
def initialize(tablename=nil, newtablename=nil)
@TableName = tablename
@NewTableName = newtablename
end
def deserialize(params)
@TableName = params['TableName']
@NewTableName = params['NewTableName']
end
end
# 用于回档的数据库表详情
class RollbackTables < TencentCloud::Common::AbstractModel
# @param Database: 数据库名
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Database: String
# @param Table: 数据库表详情
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Table: Array
attr_accessor :Database, :Table
def initialize(database=nil, table=nil)
@Database = database
@Table = table
end
def deserialize(params)
@Database = params['Database']
unless params['Table'].nil?
@Table = []
params['Table'].each do |i|
rollbacktablename_tmp = RollbackTableName.new
rollbacktablename_tmp.deserialize(i)
@Table << rollbacktablename_tmp
end
end
end
end
# 回档任务详情
class RollbackTask < TencentCloud::Common::AbstractModel
# @param Info: 任务执行信息描述。
# @type Info: String
# @param Status: 任务执行结果。可能的取值:INITIAL - 初始化,RUNNING - 运行中,SUCCESS - 执行成功,FAILED - 执行失败,KILLED - 已终止,REMOVED - 已删除,PAUSED - 终止中。
# @type Status: String
# @param Progress: 任务执行进度。取值范围为[0, 100]。
# @type Progress: Integer
# @param StartTime: 任务开始时间。
# @type StartTime: String
# @param EndTime: 任务结束时间。
# @type EndTime: String
# @param Detail: 回档任务详情。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Detail: Array
attr_accessor :Info, :Status, :Progress, :StartTime, :EndTime, :Detail
def initialize(info=nil, status=nil, progress=nil, starttime=nil, endtime=nil, detail=nil)
@Info = info
@Status = status
@Progress = progress
@StartTime = starttime
@EndTime = endtime
@Detail = detail
end
def deserialize(params)
@Info = params['Info']
@Status = params['Status']
@Progress = params['Progress']
@StartTime = params['StartTime']
@EndTime = params['EndTime']
unless params['Detail'].nil?
@Detail = []
params['Detail'].each do |i|
rollbackinstancesinfo_tmp = RollbackInstancesInfo.new
rollbackinstancesinfo_tmp.deserialize(i)
@Detail << rollbackinstancesinfo_tmp
end
end
end
end
# 可回档时间范围
class RollbackTimeRange < TencentCloud::Common::AbstractModel
# @param Begin: 实例可回档开始时间,时间格式:2016-10-29 01:06:04
# @type Begin: String
# @param End: 实例可回档结束时间,时间格式:2016-11-02 11:44:47
# @type End: String
attr_accessor :Begin, :End
def initialize(_begin=nil, _end=nil)
@Begin = _begin
@End = _end
end
def deserialize(params)
@Begin = params['Begin']
@End = params['End']
end
end
# 权重分配规则
class Rule < TencentCloud::Common::AbstractModel
# @param LessThan: 划分上限
# 注意:此字段可能返回 null,表示取不到有效值。
# @type LessThan: Integer
# @param Weight: 权重
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Weight: Integer
attr_accessor :LessThan, :Weight
def initialize(lessthan=nil, weight=nil)
@LessThan = lessthan
@Weight = weight
end
def deserialize(params)
@LessThan = params['LessThan']
@Weight = params['Weight']
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 Inbound: 入站规则
# @type Inbound: Array
# @param Outbound: 出站规则
# @type Outbound: Array
# @param SecurityGroupId: 安全组ID
# @type SecurityGroupId: String
# @param SecurityGroupName: 安全组名称
# @type SecurityGroupName: String
# @param SecurityGroupRemark: 安全组备注
# @type SecurityGroupRemark: String
attr_accessor :ProjectId, :CreateTime, :Inbound, :Outbound, :SecurityGroupId, :SecurityGroupName, :SecurityGroupRemark
def initialize(projectid=nil, createtime=nil, inbound=nil, outbound=nil, securitygroupid=nil, securitygroupname=nil, securitygroupremark=nil)
@ProjectId = projectid
@CreateTime = createtime
@Inbound = inbound
@Outbound = outbound
@SecurityGroupId = securitygroupid
@SecurityGroupName = securitygroupname
@SecurityGroupRemark = securitygroupremark
end
def deserialize(params)
@ProjectId = params['ProjectId']
@CreateTime = params['CreateTime']
unless params['Inbound'].nil?
@Inbound = []
params['Inbound'].each do |i|
inbound_tmp = Inbound.new
inbound_tmp.deserialize(i)
@Inbound << inbound_tmp
end
end
unless params['Outbound'].nil?
@Outbound = []
params['Outbound'].each do |i|
outbound_tmp = Outbound.new
outbound_tmp.deserialize(i)
@Outbound << outbound_tmp
end
end
@SecurityGroupId = params['SecurityGroupId']
@SecurityGroupName = params['SecurityGroupName']
@SecurityGroupRemark = params['SecurityGroupRemark']
end
end
# 售卖配置详情
class SellConfig < TencentCloud::Common::AbstractModel
# @param Device: 设备类型(废弃)
# @type Device: String
# @param Type: 售卖规格描述(废弃)
# @type Type: String
# @param CdbType: 实例类型(废弃)
# @type CdbType: String
# @param Memory: 内存大小,单位为MB
# @type Memory: Integer
# @param Cpu: CPU核心数
# @type Cpu: Integer
# @param VolumeMin: 磁盘最小规格,单位为GB
# @type VolumeMin: Integer
# @param VolumeMax: 磁盘最大规格,单位为GB
# @type VolumeMax: Integer
# @param VolumeStep: 磁盘步长,单位为GB
# @type VolumeStep: Integer
# @param Connection: 链接数
# @type Connection: Integer
# @param Qps: 每秒查询数量
# @type Qps: Integer
# @param Iops: 每秒IO数量
# @type Iops: Integer
# @param Info: 应用场景描述
# @type Info: String
# @param Status: 状态值,0 表示该规格对外售卖
# @type Status: Integer
# @param Tag: 标签值(废弃)
# @type Tag: Integer
# @param DeviceType: 实例类型,可能的取值范围有:UNIVERSAL (通用型), EXCLUSIVE (独享型), BASIC (基础型)
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DeviceType: String
# @param DeviceTypeName: 实例类型描述,可能的取值范围有:通用型, 独享型, 基础型
# 注意:此字段可能返回 null,表示取不到有效值。
# @type DeviceTypeName: String
attr_accessor :Device, :Type, :CdbType, :Memory, :Cpu, :VolumeMin, :VolumeMax, :VolumeStep, :Connection, :Qps, :Iops, :Info, :Status, :Tag, :DeviceType, :DeviceTypeName
def initialize(device=nil, type=nil, cdbtype=nil, memory=nil, cpu=nil, volumemin=nil, volumemax=nil, volumestep=nil, connection=nil, qps=nil, iops=nil, info=nil, status=nil, tag=nil, devicetype=nil, devicetypename=nil)
@Device = device
@Type = type
@CdbType = cdbtype
@Memory = memory
@Cpu = cpu
@VolumeMin = volumemin
@VolumeMax = volumemax
@VolumeStep = volumestep
@Connection = connection
@Qps = qps
@Iops = iops
@Info = info
@Status = status
@Tag = tag
@DeviceType = devicetype
@DeviceTypeName = devicetypename
end
def deserialize(params)
@Device = params['Device']
@Type = params['Type']
@CdbType = params['CdbType']
@Memory = params['Memory']
@Cpu = params['Cpu']
@VolumeMin = params['VolumeMin']
@VolumeMax = params['VolumeMax']
@VolumeStep = params['VolumeStep']
@Connection = params['Connection']
@Qps = params['Qps']
@Iops = params['Iops']
@Info = params['Info']
@Status = params['Status']
@Tag = params['Tag']
@DeviceType = params['DeviceType']
@DeviceTypeName = params['DeviceTypeName']
end
end
# 售卖实例类型
class SellType < TencentCloud::Common::AbstractModel
# @param TypeName: 售卖实例名称
# @type TypeName: String
# @param EngineVersion: 内核版本号
# @type EngineVersion: Array
# @param Configs: 售卖规格详细配置
# @type Configs: Array
attr_accessor :TypeName, :EngineVersion, :Configs
def initialize(typename=nil, engineversion=nil, configs=nil)
@TypeName = typename
@EngineVersion = engineversion
@Configs = configs
end
def deserialize(params)
@TypeName = params['TypeName']
@EngineVersion = params['EngineVersion']
unless params['Configs'].nil?
@Configs = []
params['Configs'].each do |i|
sellconfig_tmp = SellConfig.new
sellconfig_tmp.deserialize(i)
@Configs << sellconfig_tmp
end
end
end
end
# 从库的配置信息
class SlaveConfig < TencentCloud::Common::AbstractModel
# @param ReplicationMode: 从库复制方式,可能的返回值:aysnc-异步,semisync-半同步
# @type ReplicationMode: String
# @param Zone: 从库可用区的正式名称,如ap-shanghai-1
# @type Zone: String
attr_accessor :ReplicationMode, :Zone
def initialize(replicationmode=nil, zone=nil)
@ReplicationMode = replicationmode
@Zone = zone
end
def deserialize(params)
@ReplicationMode = params['ReplicationMode']
@Zone = params['Zone']
end
end
# 备机信息
class SlaveInfo < TencentCloud::Common::AbstractModel
# @param First: 第一备机信息
# @type First: :class:`Tencentcloud::Cdb.v20170320.models.SlaveInstanceInfo`
# @param Second: 第二备机信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Second: :class:`Tencentcloud::Cdb.v20170320.models.SlaveInstanceInfo`
attr_accessor :First, :Second
def initialize(first=nil, second=nil)
@First = first
@Second = second
end
def deserialize(params)
unless params['First'].nil?
@First = SlaveInstanceInfo.new
@First.deserialize(params['First'])
end
unless params['Second'].nil?
@Second = SlaveInstanceInfo.new
@Second.deserialize(params['Second'])
end
end
end
# 备机信息
class SlaveInstanceInfo < TencentCloud::Common::AbstractModel
# @param Vport: 端口号
# @type Vport: Integer
# @param Region: 地域信息
# @type Region: String
# @param Vip: 虚拟 IP 信息
# @type Vip: String
# @param Zone: 可用区信息
# @type Zone: String
attr_accessor :Vport, :Region, :Vip, :Zone
def initialize(vport=nil, region=nil, vip=nil, zone=nil)
@Vport = vport
@Region = region
@Vip = vip
@Zone = zone
end
def deserialize(params)
@Vport = params['Vport']
@Region = params['Region']
@Vip = params['Vip']
@Zone = params['Zone']
end
end
# 慢查询日志详情
class SlowLogInfo < TencentCloud::Common::AbstractModel
# @param Name: 备份文件名
# @type Name: String
# @param Size: 备份文件大小,单位:Byte
# @type Size: Integer
# @param Date: 备份快照时间,时间格式:2016-03-17 02:10:37
# @type Date: String
# @param IntranetUrl: 内网下载地址
# @type IntranetUrl: String
# @param InternetUrl: 外网下载地址
# @type InternetUrl: String
# @param Type: 日志具体类型,可能的值:slowlog - 慢日志
# @type Type: String
attr_accessor :Name, :Size, :Date, :IntranetUrl, :InternetUrl, :Type
def initialize(name=nil, size=nil, date=nil, intraneturl=nil, interneturl=nil, type=nil)
@Name = name
@Size = size
@Date = date
@IntranetUrl = intraneturl
@InternetUrl = interneturl
@Type = type
end
def deserialize(params)
@Name = params['Name']
@Size = params['Size']
@Date = params['Date']
@IntranetUrl = params['IntranetUrl']
@InternetUrl = params['InternetUrl']
@Type = params['Type']
end
end
# 结构化的慢日志详情
class SlowLogItem < TencentCloud::Common::AbstractModel
# @param Timestamp: Sql的执行时间。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Timestamp: Integer
# @param QueryTime: Sql的执行时长(秒)。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type QueryTime: Float
# @param SqlText: Sql语句。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SqlText: String
# @param UserHost: 客户端地址。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UserHost: String
# @param UserName: 用户名。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type UserName: String
# @param Database: 数据库名。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Database: String
# @param LockTime: 锁时长(秒)。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type LockTime: Float
# @param RowsExamined: 扫描行数。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RowsExamined: Integer
# @param RowsSent: 结果集行数。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RowsSent: Integer
# @param SqlTemplate: Sql模板。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type SqlTemplate: String
# @param Md5: Sql语句的md5。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type Md5: String
attr_accessor :Timestamp, :QueryTime, :SqlText, :UserHost, :UserName, :Database, :LockTime, :RowsExamined, :RowsSent, :SqlTemplate, :Md5
def initialize(timestamp=nil, querytime=nil, sqltext=nil, userhost=nil, username=nil, database=nil, locktime=nil, rowsexamined=nil, rowssent=nil, sqltemplate=nil, md5=nil)
@Timestamp = timestamp
@QueryTime = querytime
@SqlText = sqltext
@UserHost = userhost
@UserName = username
@Database = database
@LockTime = locktime
@RowsExamined = rowsexamined
@RowsSent = rowssent
@SqlTemplate = sqltemplate
@Md5 = md5
end
def deserialize(params)
@Timestamp = params['Timestamp']
@QueryTime = params['QueryTime']
@SqlText = params['SqlText']
@UserHost = params['UserHost']
@UserName = params['UserName']
@Database = params['Database']
@LockTime = params['LockTime']
@RowsExamined = params['RowsExamined']
@RowsSent = params['RowsSent']
@SqlTemplate = params['SqlTemplate']
@Md5 = params['Md5']
end
end
# sql文件信息
class SqlFileInfo < TencentCloud::Common::AbstractModel
# @param UploadTime: 上传时间
# @type UploadTime: String
# @param UploadInfo: 上传进度
# @type UploadInfo: :class:`Tencentcloud::Cdb.v20170320.models.UploadInfo`
# @param FileName: 文件名
# @type FileName: String
# @param FileSize: 文件大小,单位为Bytes
# @type FileSize: Integer
# @param IsUploadFinished: 上传是否完成标志,可选值:0 - 未完成,1 - 已完成
# @type IsUploadFinished: Integer
# @param FileId: 文件ID
# @type FileId: String
attr_accessor :UploadTime, :UploadInfo, :FileName, :FileSize, :IsUploadFinished, :FileId
def initialize(uploadtime=nil, uploadinfo=nil, filename=nil, filesize=nil, isuploadfinished=nil, fileid=nil)
@UploadTime = uploadtime
@UploadInfo = uploadinfo
@FileName = filename
@FileSize = filesize
@IsUploadFinished = isuploadfinished
@FileId = fileid
end
def deserialize(params)
@UploadTime = params['UploadTime']
unless params['UploadInfo'].nil?
@UploadInfo = UploadInfo.new
@UploadInfo.deserialize(params['UploadInfo'])
end
@FileName = params['FileName']
@FileSize = params['FileSize']
@IsUploadFinished = params['IsUploadFinished']
@FileId = params['FileId']
end
end
# StartBatchRollback请求参数结构体
class StartBatchRollbackRequest < TencentCloud::Common::AbstractModel
# @param Instances: 用于回档的实例详情信息。
# @type Instances: Array
attr_accessor :Instances
def initialize(instances=nil)
@Instances = instances
end
def deserialize(params)
unless params['Instances'].nil?
@Instances = []
params['Instances'].each do |i|
rollbackinstancesinfo_tmp = RollbackInstancesInfo.new
rollbackinstancesinfo_tmp.deserialize(i)
@Instances << rollbackinstancesinfo_tmp
end
end
end
end
# StartBatchRollback返回参数结构体
class StartBatchRollbackResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# StartReplication请求参数结构体
class StartReplicationRequest < 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
# StartReplication返回参数结构体
class StartReplicationResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务 ID。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# StopDBImportJob请求参数结构体
class StopDBImportJobRequest < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务的请求 ID。
# @type AsyncRequestId: String
attr_accessor :AsyncRequestId
def initialize(asyncrequestid=nil)
@AsyncRequestId = asyncrequestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
end
end
# StopDBImportJob返回参数结构体
class StopDBImportJobResponse < 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
# StopReplication请求参数结构体
class StopReplicationRequest < 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
# StopReplication返回参数结构体
class StopReplicationResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务 ID。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# StopRollback请求参数结构体
class StopRollbackRequest < 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
# StopRollback返回参数结构体
class StopRollbackResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 执行请求的异步任务ID
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# SwitchCDBProxy请求参数结构体
class SwitchCDBProxyRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例ID
# @type InstanceId: String
# @param ProxyGroupId: 数据库代理ID
# @type ProxyGroupId: String
attr_accessor :InstanceId, :ProxyGroupId
def initialize(instanceid=nil, proxygroupid=nil)
@InstanceId = instanceid
@ProxyGroupId = proxygroupid
end
def deserialize(params)
@InstanceId = params['InstanceId']
@ProxyGroupId = params['ProxyGroupId']
end
end
# SwitchCDBProxy返回参数结构体
class SwitchCDBProxyResponse < 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
# SwitchDBInstanceMasterSlave请求参数结构体
class SwitchDBInstanceMasterSlaveRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID。
# @type InstanceId: String
# @param DstSlave: 目标从实例。可选值:"first" - 第一备机;"second" - 第二备机。默认值为 "first",仅多可用区实例支持设置为 "second"。
# @type DstSlave: String
# @param ForceSwitch: 是否强制切换。默认为 False。注意,若设置强制切换为 True,实例存在丢失数据的风险,请谨慎使用。
# @type ForceSwitch: Boolean
# @param WaitSwitch: 是否时间窗内切换。默认为 False,即不在时间窗内切换。注意,如果设置了 ForceSwitch 参数为 True,则该参数不生效。
# @type WaitSwitch: Boolean
attr_accessor :InstanceId, :DstSlave, :ForceSwitch, :WaitSwitch
def initialize(instanceid=nil, dstslave=nil, forceswitch=nil, waitswitch=nil)
@InstanceId = instanceid
@DstSlave = dstslave
@ForceSwitch = forceswitch
@WaitSwitch = waitswitch
end
def deserialize(params)
@InstanceId = params['InstanceId']
@DstSlave = params['DstSlave']
@ForceSwitch = params['ForceSwitch']
@WaitSwitch = params['WaitSwitch']
end
end
# SwitchDBInstanceMasterSlave返回参数结构体
class SwitchDBInstanceMasterSlaveResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务 ID。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# SwitchDrInstanceToMaster请求参数结构体
class SwitchDrInstanceToMasterRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 灾备实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
# @type InstanceId: String
attr_accessor :InstanceId
def initialize(instanceid=nil)
@InstanceId = instanceid
end
def deserialize(params)
@InstanceId = params['InstanceId']
end
end
# SwitchDrInstanceToMaster返回参数结构体
class SwitchDrInstanceToMasterResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务的请求ID,可使用此ID查询异步任务的执行结果。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# SwitchForUpgrade请求参数结构体
class SwitchForUpgradeRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
attr_accessor :InstanceId
def initialize(instanceid=nil)
@InstanceId = instanceid
end
def deserialize(params)
@InstanceId = params['InstanceId']
end
end
# SwitchForUpgrade返回参数结构体
class SwitchForUpgradeResponse < 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 TableName < TencentCloud::Common::AbstractModel
# @param TableName: 表名
# @type TableName: String
attr_accessor :TableName
def initialize(tablename=nil)
@TableName = tablename
end
def deserialize(params)
@TableName = params['TableName']
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
# 标签信息
class TagInfo < TencentCloud::Common::AbstractModel
# @param TagKey: 标签键
# @type TagKey: String
# @param TagValue: 标签值
# @type TagValue: Array
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
# 标签信息
class TagInfoItem < TencentCloud::Common::AbstractModel
# @param TagKey: 标签键
# 注意:此字段可能返回 null,表示取不到有效值。
# @type TagKey: String
# @param TagValue: 标签值
# 注意:此字段可能返回 null,表示取不到有效值。
# @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
# tag信息单元
class TagInfoUnit < TencentCloud::Common::AbstractModel
# @param TagKey: 标签键
# @type TagKey: String
# @param TagValue: 标签值
# @type TagValue: String
attr_accessor :TagKey, :TagValue
def initialize(tagkey=nil, tagvalue=nil)
@TagKey = tagkey
@TagValue = tagvalue
end
def deserialize(params)
@TagKey = params['TagKey']
@TagValue = params['TagValue']
end
end
# 实例的标签信息
class TagsInfoOfInstance < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例Id
# @type InstanceId: String
# @param Tags: 标签信息
# @type Tags: Array
attr_accessor :InstanceId, :Tags
def initialize(instanceid=nil, tags=nil)
@InstanceId = instanceid
@Tags = tags
end
def deserialize(params)
@InstanceId = params['InstanceId']
unless params['Tags'].nil?
@Tags = []
params['Tags'].each do |i|
taginfounit_tmp = TagInfoUnit.new
taginfounit_tmp.deserialize(i)
@Tags << taginfounit_tmp
end
end
end
end
# 实例任务详情
class TaskDetail < TencentCloud::Common::AbstractModel
# @param Code: 错误码。
# @type Code: Integer
# @param Message: 错误信息。
# @type Message: String
# @param JobId: 实例任务 ID。
# @type JobId: Integer
# @param Progress: 实例任务进度。
# @type Progress: Integer
# @param TaskStatus: 实例任务状态,可能的值包括:
# "UNDEFINED" - 未定义;
# "INITIAL" - 初始化;
# "RUNNING" - 运行中;
# "SUCCEED" - 执行成功;
# "FAILED" - 执行失败;
# "KILLED" - 已终止;
# "REMOVED" - 已删除;
# "PAUSED" - 已暂停。
# "WAITING" - 等待中(可撤销)
# @type TaskStatus: String
# @param TaskType: 实例任务类型,可能的值包括:
# "ROLLBACK" - 数据库回档;
# "SQL OPERATION" - SQL操作;
# "IMPORT DATA" - 数据导入;
# "MODIFY PARAM" - 参数设置;
# "INITIAL" - 初始化云数据库实例;
# "REBOOT" - 重启云数据库实例;
# "OPEN GTID" - 开启云数据库实例GTID;
# "UPGRADE RO" - 只读实例升级;
# "BATCH ROLLBACK" - 数据库批量回档;
# "UPGRADE MASTER" - 主实例升级;
# "DROP TABLES" - 删除云数据库库表;
# "SWITCH DR TO MASTER" - 灾备实例提升为主。
# @type TaskType: String
# @param StartTime: 实例任务开始时间。
# @type StartTime: String
# @param EndTime: 实例任务结束时间。
# @type EndTime: String
# @param InstanceIds: 任务关联的实例 ID。
# 注意:此字段可能返回 null,表示取不到有效值。
# @type InstanceIds: Array
# @param AsyncRequestId: 异步任务的请求 ID。
# @type AsyncRequestId: String
attr_accessor :Code, :Message, :JobId, :Progress, :TaskStatus, :TaskType, :StartTime, :EndTime, :InstanceIds, :AsyncRequestId
def initialize(code=nil, message=nil, jobid=nil, progress=nil, taskstatus=nil, tasktype=nil, starttime=nil, endtime=nil, instanceids=nil, asyncrequestid=nil)
@Code = code
@Message = message
@JobId = jobid
@Progress = progress
@TaskStatus = taskstatus
@TaskType = tasktype
@StartTime = starttime
@EndTime = endtime
@InstanceIds = instanceids
@AsyncRequestId = asyncrequestid
end
def deserialize(params)
@Code = params['Code']
@Message = params['Message']
@JobId = params['JobId']
@Progress = params['Progress']
@TaskStatus = params['TaskStatus']
@TaskType = params['TaskType']
@StartTime = params['StartTime']
@EndTime = params['EndTime']
@InstanceIds = params['InstanceIds']
@AsyncRequestId = params['AsyncRequestId']
end
end
# UpgradeCDBProxy请求参数结构体
class UpgradeCDBProxyRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例ID
# @type InstanceId: String
# @param ProxyGroupId: 数据库代理ID
# @type ProxyGroupId: String
# @param ProxyCount: 代理节点个数,实际规格支持数
# @type ProxyCount: Integer
# @param Cpu: 代理节点核数,实际规格支持数
# @type Cpu: Integer
# @param Mem: 代理节点内存大小
# @type Mem: Integer
# @param ReloadBalance: 重新负载均衡:auto(自动),manual(手动)
# @type ReloadBalance: String
# @param UpgradeTime: 升级时间 nowTime(升级完成时)timeWindow(实例维护时间)
# @type UpgradeTime: String
attr_accessor :InstanceId, :ProxyGroupId, :ProxyCount, :Cpu, :Mem, :ReloadBalance, :UpgradeTime
def initialize(instanceid=nil, proxygroupid=nil, proxycount=nil, cpu=nil, mem=nil, reloadbalance=nil, upgradetime=nil)
@InstanceId = instanceid
@ProxyGroupId = proxygroupid
@ProxyCount = proxycount
@Cpu = cpu
@Mem = mem
@ReloadBalance = reloadbalance
@UpgradeTime = upgradetime
end
def deserialize(params)
@InstanceId = params['InstanceId']
@ProxyGroupId = params['ProxyGroupId']
@ProxyCount = params['ProxyCount']
@Cpu = params['Cpu']
@Mem = params['Mem']
@ReloadBalance = params['ReloadBalance']
@UpgradeTime = params['UpgradeTime']
end
end
# UpgradeCDBProxy返回参数结构体
class UpgradeCDBProxyResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步处理ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# UpgradeCDBProxyVersion请求参数结构体
class UpgradeCDBProxyVersionRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例ID
# @type InstanceId: String
# @param ProxyGroupId: 数据库代理ID
# @type ProxyGroupId: String
# @param SrcProxyVersion: 数据库代理当前版本
# @type SrcProxyVersion: String
# @param DstProxyVersion: 数据库代理升级版本
# @type DstProxyVersion: String
# @param UpgradeTime: 升级时间 :nowTime(升级完成时)timeWindow(实例维护时间)
# @type UpgradeTime: String
attr_accessor :InstanceId, :ProxyGroupId, :SrcProxyVersion, :DstProxyVersion, :UpgradeTime
def initialize(instanceid=nil, proxygroupid=nil, srcproxyversion=nil, dstproxyversion=nil, upgradetime=nil)
@InstanceId = instanceid
@ProxyGroupId = proxygroupid
@SrcProxyVersion = srcproxyversion
@DstProxyVersion = dstproxyversion
@UpgradeTime = upgradetime
end
def deserialize(params)
@InstanceId = params['InstanceId']
@ProxyGroupId = params['ProxyGroupId']
@SrcProxyVersion = params['SrcProxyVersion']
@DstProxyVersion = params['DstProxyVersion']
@UpgradeTime = params['UpgradeTime']
end
end
# UpgradeCDBProxyVersion返回参数结构体
class UpgradeCDBProxyVersionResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步处理ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# UpgradeDBInstanceEngineVersion请求参数结构体
class UpgradeDBInstanceEngineVersionRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
# @type InstanceId: String
# @param EngineVersion: 主实例数据库引擎版本,支持值包括:5.6 和 5.7。
# @type EngineVersion: String
# @param WaitSwitch: 切换访问新实例的方式,默认为 0。支持值包括:0 - 立刻切换,1 - 时间窗切换;当该值为 1 时,升级中过程中,切换访问新实例的流程将会在时间窗内进行,或者用户主动调用接口 [切换访问新实例](https://cloud.tencent.com/document/product/236/15864) 触发该流程。
# @type WaitSwitch: Integer
# @param UpgradeSubversion: 是否是内核子版本升级,支持的值:1 - 升级内核子版本;0 - 升级数据库引擎版本。
# @type UpgradeSubversion: Integer
# @param MaxDelayTime: 延迟阈值。取值范围1~10
# @type MaxDelayTime: Integer
attr_accessor :InstanceId, :EngineVersion, :WaitSwitch, :UpgradeSubversion, :MaxDelayTime
def initialize(instanceid=nil, engineversion=nil, waitswitch=nil, upgradesubversion=nil, maxdelaytime=nil)
@InstanceId = instanceid
@EngineVersion = engineversion
@WaitSwitch = waitswitch
@UpgradeSubversion = upgradesubversion
@MaxDelayTime = maxdelaytime
end
def deserialize(params)
@InstanceId = params['InstanceId']
@EngineVersion = params['EngineVersion']
@WaitSwitch = params['WaitSwitch']
@UpgradeSubversion = params['UpgradeSubversion']
@MaxDelayTime = params['MaxDelayTime']
end
end
# UpgradeDBInstanceEngineVersion返回参数结构体
class UpgradeDBInstanceEngineVersionResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务 ID,可使用 [查询异步任务的执行结果](https://cloud.tencent.com/document/api/236/20410) 获取其执行情况。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# UpgradeDBInstance请求参数结构体
class UpgradeDBInstanceRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv。与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
# @type InstanceId: String
# @param Memory: 升级后的内存大小,单位:MB,为保证传入 Memory 值有效,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/product/236/17229) 接口获取可升级的内存规格。
# @type Memory: Integer
# @param Volume: 升级后的硬盘大小,单位:GB,为保证传入 Volume 值有效,请使用 [获取云数据库可售卖规格](https://cloud.tencent.com/document/product/236/17229) 接口获取可升级的硬盘范围。
# @type Volume: Integer
# @param ProtectMode: 数据复制方式,支持值包括:0 - 异步复制,1 - 半同步复制,2 - 强同步复制,升级主实例时可指定该参数,升级只读实例或者灾备实例时指定该参数无意义。
# @type ProtectMode: Integer
# @param DeployMode: 部署模式,默认为 0,支持值包括:0 - 单可用区部署,1 - 多可用区部署,升级主实例时可指定该参数,升级只读实例或者灾备实例时指定该参数无意义。
# @type DeployMode: Integer
# @param SlaveZone: 备库1的可用区信息,默认和实例的 Zone 参数一致,升级主实例为多可用区部署时可指定该参数,升级只读实例或者灾备实例时指定该参数无意义。可通过 [获取云数据库可售卖规格](https://cloud.tencent.com/document/product/236/17229) 接口查询支持的可用区。
# @type SlaveZone: String
# @param EngineVersion: 主实例数据库引擎版本,支持值包括:5.5、5.6 和 5.7。
# @type EngineVersion: String
# @param WaitSwitch: 切换访问新实例的方式,默认为 0。支持值包括:0 - 立刻切换,1 - 时间窗切换;当该值为 1 时,升级中过程中,切换访问新实例的流程将会在时间窗内进行,或者用户主动调用接口 [切换访问新实例](https://cloud.tencent.com/document/product/236/15864) 触发该流程。
# @type WaitSwitch: Integer
# @param BackupZone: 备库 2 的可用区信息,默认为空,升级主实例时可指定该参数,升级只读实例或者灾备实例时指定该参数无意义。
# @type BackupZone: String
# @param InstanceRole: 实例类型,默认为 master,支持值包括:master - 表示主实例,dr - 表示灾备实例,ro - 表示只读实例。
# @type InstanceRole: String
# @param DeviceType: 实例隔离类型。支持值包括: "UNIVERSAL" - 通用型实例, "EXCLUSIVE" - 独享型实例, "BASIC" - 基础版实例。
# @type DeviceType: String
# @param Cpu: 升级后的实例cpu核数, 如果不传将根据 Memory 指定的内存值自动填充对应的cpu值。
# @type Cpu: Integer
# @param FastUpgrade: 是否极速变配。0-普通升级,1-极速变配。选择极速变配会根据资源状况校验是否可以进行极速变配,满足条件则进行极速变配,不满足条件会返回报错信息。
# @type FastUpgrade: Integer
# @param MaxDelayTime: 延迟阈值。取值范围1~10,默认值为10。
# @type MaxDelayTime: Integer
# @param CrossCluster: 是否跨区迁移。0-普通迁移,1-跨区迁移,默认值为0。该值为1时支持变更实例主节点可用区。
# @type CrossCluster: Integer
# @param ZoneId: 主节点可用区,该值仅在跨区迁移时生效。仅支持同地域下的可用区进行迁移。
# @type ZoneId: String
attr_accessor :InstanceId, :Memory, :Volume, :ProtectMode, :DeployMode, :SlaveZone, :EngineVersion, :WaitSwitch, :BackupZone, :InstanceRole, :DeviceType, :Cpu, :FastUpgrade, :MaxDelayTime, :CrossCluster, :ZoneId
def initialize(instanceid=nil, memory=nil, volume=nil, protectmode=nil, deploymode=nil, slavezone=nil, engineversion=nil, waitswitch=nil, backupzone=nil, instancerole=nil, devicetype=nil, cpu=nil, fastupgrade=nil, maxdelaytime=nil, crosscluster=nil, zoneid=nil)
@InstanceId = instanceid
@Memory = memory
@Volume = volume
@ProtectMode = protectmode
@DeployMode = deploymode
@SlaveZone = slavezone
@EngineVersion = engineversion
@WaitSwitch = waitswitch
@BackupZone = backupzone
@InstanceRole = instancerole
@DeviceType = devicetype
@Cpu = cpu
@FastUpgrade = fastupgrade
@MaxDelayTime = maxdelaytime
@CrossCluster = crosscluster
@ZoneId = zoneid
end
def deserialize(params)
@InstanceId = params['InstanceId']
@Memory = params['Memory']
@Volume = params['Volume']
@ProtectMode = params['ProtectMode']
@DeployMode = params['DeployMode']
@SlaveZone = params['SlaveZone']
@EngineVersion = params['EngineVersion']
@WaitSwitch = params['WaitSwitch']
@BackupZone = params['BackupZone']
@InstanceRole = params['InstanceRole']
@DeviceType = params['DeviceType']
@Cpu = params['Cpu']
@FastUpgrade = params['FastUpgrade']
@MaxDelayTime = params['MaxDelayTime']
@CrossCluster = params['CrossCluster']
@ZoneId = params['ZoneId']
end
end
# UpgradeDBInstance返回参数结构体
class UpgradeDBInstanceResponse < TencentCloud::Common::AbstractModel
# @param DealIds: 订单 ID。
# @type DealIds: Array
# @param AsyncRequestId: 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :DealIds, :AsyncRequestId, :RequestId
def initialize(dealids=nil, asyncrequestid=nil, requestid=nil)
@DealIds = dealids
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@DealIds = params['DealIds']
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# 文件上传描述
class UploadInfo < TencentCloud::Common::AbstractModel
# @param AllSliceNum: 文件所有分片数
# @type AllSliceNum: Integer
# @param CompleteNum: 已完成分片数
# @type CompleteNum: Integer
attr_accessor :AllSliceNum, :CompleteNum
def initialize(allslicenum=nil, completenum=nil)
@AllSliceNum = allslicenum
@CompleteNum = completenum
end
def deserialize(params)
@AllSliceNum = params['AllSliceNum']
@CompleteNum = params['CompleteNum']
end
end
# VerifyRootAccount请求参数结构体
class VerifyRootAccountRequest < TencentCloud::Common::AbstractModel
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
# @type InstanceId: String
# @param Password: 实例 ROOT 账号的密码。
# @type Password: String
attr_accessor :InstanceId, :Password
def initialize(instanceid=nil, password=nil)
@InstanceId = instanceid
@Password = password
end
def deserialize(params)
@InstanceId = params['InstanceId']
@Password = params['Password']
end
end
# VerifyRootAccount返回参数结构体
class VerifyRootAccountResponse < TencentCloud::Common::AbstractModel
# @param AsyncRequestId: 异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果
# @type AsyncRequestId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
attr_accessor :AsyncRequestId, :RequestId
def initialize(asyncrequestid=nil, requestid=nil)
@AsyncRequestId = asyncrequestid
@RequestId = requestid
end
def deserialize(params)
@AsyncRequestId = params['AsyncRequestId']
@RequestId = params['RequestId']
end
end
# 多可用区信息
class ZoneConf < TencentCloud::Common::AbstractModel
# @param DeployMode: 可用区部署方式,可能的值为:0-单可用区;1-多可用区
# @type DeployMode: Array
# @param MasterZone: 主实例所在的可用区
# @type MasterZone: Array
# @param SlaveZone: 实例为多可用区部署时,备库1所在的可用区
# @type SlaveZone: Array
# @param BackupZone: 实例为多可用区部署时,备库2所在的可用区
# @type BackupZone: Array
attr_accessor :DeployMode, :MasterZone, :SlaveZone, :BackupZone
def initialize(deploymode=nil, masterzone=nil, slavezone=nil, backupzone=nil)
@DeployMode = deploymode
@MasterZone = masterzone
@SlaveZone = slavezone
@BackupZone = backupzone
end
def deserialize(params)
@DeployMode = params['DeployMode']
@MasterZone = params['MasterZone']
@SlaveZone = params['SlaveZone']
@BackupZone = params['BackupZone']
end
end
# 可用区售卖配置
class ZoneSellConf < TencentCloud::Common::AbstractModel
# @param Status: 可用区状态。可能的返回值为:1-上线;3-停售;4-不展示
# @type Status: Integer
# @param ZoneName: 可用区中文名称
# @type ZoneName: String
# @param IsCustom: 实例类型是否为自定义类型
# @type IsCustom: Boolean
# @param IsSupportDr: 是否支持灾备
# @type IsSupportDr: Boolean
# @param IsSupportVpc: 是否支持私有网络
# @type IsSupportVpc: Boolean
# @param HourInstanceSaleMaxNum: 小时计费实例最大售卖数量
# @type HourInstanceSaleMaxNum: Integer
# @param IsDefaultZone: 是否为默认可用区
# @type IsDefaultZone: Boolean
# @param IsBm: 是否为黑石区
# @type IsBm: Boolean
# @param PayType: 支持的付费类型。可能的返回值为:0-包年包月;1-小时计费;2-后付费
# @type PayType: Array
# @param ProtectMode: 数据复制类型。0-异步复制;1-半同步复制;2-强同步复制
# @type ProtectMode: Array
# @param Zone: 可用区名称
# @type Zone: String
# @param SellType: 售卖实例类型数组
# @type SellType: Array
# @param ZoneConf: 多可用区信息
# @type ZoneConf: :class:`Tencentcloud::Cdb.v20170320.models.ZoneConf`
# @param DrZone: 可支持的灾备可用区信息
# @type DrZone: Array
# @param IsSupportRemoteRo: 是否支持跨可用区只读
# @type IsSupportRemoteRo: Boolean
# @param RemoteRoZone: 可支持的跨可用区只读区信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type RemoteRoZone: Array
# @param ExClusterStatus: 独享型可用区状态。可能的返回值为:1-上线;3-停售;4-不展示
# @type ExClusterStatus: Integer
# @param ExClusterRemoteRoZone: 独享型可支持的跨可用区只读区信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExClusterRemoteRoZone: Array
# @param ExClusterZoneConf: 独享型多可用区信息
# 注意:此字段可能返回 null,表示取不到有效值。
# @type ExClusterZoneConf: :class:`Tencentcloud::Cdb.v20170320.models.ZoneConf`
attr_accessor :Status, :ZoneName, :IsCustom, :IsSupportDr, :IsSupportVpc, :HourInstanceSaleMaxNum, :IsDefaultZone, :IsBm, :PayType, :ProtectMode, :Zone, :SellType, :ZoneConf, :DrZone, :IsSupportRemoteRo, :RemoteRoZone, :ExClusterStatus, :ExClusterRemoteRoZone, :ExClusterZoneConf
def initialize(status=nil, zonename=nil, iscustom=nil, issupportdr=nil, issupportvpc=nil, hourinstancesalemaxnum=nil, isdefaultzone=nil, isbm=nil, paytype=nil, protectmode=nil, zone=nil, selltype=nil, zoneconf=nil, drzone=nil, issupportremotero=nil, remoterozone=nil, exclusterstatus=nil, exclusterremoterozone=nil, exclusterzoneconf=nil)
@Status = status
@ZoneName = zonename
@IsCustom = iscustom
@IsSupportDr = issupportdr
@IsSupportVpc = issupportvpc
@HourInstanceSaleMaxNum = hourinstancesalemaxnum
@IsDefaultZone = isdefaultzone
@IsBm = isbm
@PayType = paytype
@ProtectMode = protectmode
@Zone = zone
@SellType = selltype
@ZoneConf = zoneconf
@DrZone = drzone
@IsSupportRemoteRo = issupportremotero
@RemoteRoZone = remoterozone
@ExClusterStatus = exclusterstatus
@ExClusterRemoteRoZone = exclusterremoterozone
@ExClusterZoneConf = exclusterzoneconf
end
def deserialize(params)
@Status = params['Status']
@ZoneName = params['ZoneName']
@IsCustom = params['IsCustom']
@IsSupportDr = params['IsSupportDr']
@IsSupportVpc = params['IsSupportVpc']
@HourInstanceSaleMaxNum = params['HourInstanceSaleMaxNum']
@IsDefaultZone = params['IsDefaultZone']
@IsBm = params['IsBm']
@PayType = params['PayType']
@ProtectMode = params['ProtectMode']
@Zone = params['Zone']
unless params['SellType'].nil?
@SellType = []
params['SellType'].each do |i|
selltype_tmp = SellType.new
selltype_tmp.deserialize(i)
@SellType << selltype_tmp
end
end
unless params['ZoneConf'].nil?
@ZoneConf = ZoneConf.new
@ZoneConf.deserialize(params['ZoneConf'])
end
@DrZone = params['DrZone']
@IsSupportRemoteRo = params['IsSupportRemoteRo']
@RemoteRoZone = params['RemoteRoZone']
@ExClusterStatus = params['ExClusterStatus']
@ExClusterRemoteRoZone = params['ExClusterRemoteRoZone']
unless params['ExClusterZoneConf'].nil?
@ExClusterZoneConf = ZoneConf.new
@ExClusterZoneConf.deserialize(params['ExClusterZoneConf'])
end
end
end
end
end
end