lib/v20201029/models.rb in tencentcloud-sdk-dbdc-1.0.363 vs lib/v20201029/models.rb in tencentcloud-sdk-dbdc-1.0.364
- old
+ new
@@ -47,22 +47,26 @@
# @type Memory: Integer
# @param Disk: 磁盘规格(单位:GB)
# @type Disk: Integer
# @param ShardNum: 分布式类型的实例的分片数
# @type ShardNum: Integer
+ # @param Region: 地域
+ # @type Region: String
# @param Zone: 可用区
# @type Zone: String
# @param DbHosts: Db所在主机列表, 格式: m1,s1|m2,s2
# @type DbHosts: String
# @param HostRole: 主机角色, 1:主, 2:从, 3:主+从
# @type HostRole: Integer
# @param DbEngine: DB引擎,MySQL,Percona,MariaDB
# @type DbEngine: String
+ # @param CreateTime: 创建时间
+ # @type CreateTime: String
- attr_accessor :InstanceId, :InstanceName, :Status, :StatusDesc, :DbVersion, :Vip, :Vport, :UniqueVpcId, :UniqueSubnetId, :Shard, :NodeNum, :Cpu, :Memory, :Disk, :ShardNum, :Zone, :DbHosts, :HostRole, :DbEngine
+ attr_accessor :InstanceId, :InstanceName, :Status, :StatusDesc, :DbVersion, :Vip, :Vport, :UniqueVpcId, :UniqueSubnetId, :Shard, :NodeNum, :Cpu, :Memory, :Disk, :ShardNum, :Region, :Zone, :DbHosts, :HostRole, :DbEngine, :CreateTime
- def initialize(instanceid=nil, instancename=nil, status=nil, statusdesc=nil, dbversion=nil, vip=nil, vport=nil, uniquevpcid=nil, uniquesubnetid=nil, shard=nil, nodenum=nil, cpu=nil, memory=nil, disk=nil, shardnum=nil, zone=nil, dbhosts=nil, hostrole=nil, dbengine=nil)
+ def initialize(instanceid=nil, instancename=nil, status=nil, statusdesc=nil, dbversion=nil, vip=nil, vport=nil, uniquevpcid=nil, uniquesubnetid=nil, shard=nil, nodenum=nil, cpu=nil, memory=nil, disk=nil, shardnum=nil, region=nil, zone=nil, dbhosts=nil, hostrole=nil, dbengine=nil, createtime=nil)
@InstanceId = instanceid
@InstanceName = instancename
@Status = status
@StatusDesc = statusdesc
@DbVersion = dbversion
@@ -74,14 +78,16 @@
@NodeNum = nodenum
@Cpu = cpu
@Memory = memory
@Disk = disk
@ShardNum = shardnum
+ @Region = region
@Zone = zone
@DbHosts = dbhosts
@HostRole = hostrole
@DbEngine = dbengine
+ @CreateTime = createtime
end
def deserialize(params)
@InstanceId = params['InstanceId']
@InstanceName = params['InstanceName']
@@ -96,14 +102,16 @@
@NodeNum = params['NodeNum']
@Cpu = params['Cpu']
@Memory = params['Memory']
@Disk = params['Disk']
@ShardNum = params['ShardNum']
+ @Region = params['Region']
@Zone = params['Zone']
@DbHosts = params['DbHosts']
@HostRole = params['HostRole']
@DbEngine = params['DbEngine']
+ @CreateTime = params['CreateTime']
end
end
# DescribeDBInstances请求参数结构体
class DescribeDBInstancesRequest < TencentCloud::Common::AbstractModel
@@ -235,13 +243,13 @@
# @type InstanceName: String
# @param Region: 地域
# @type Region: String
# @param ProductId: 产品ID, 0:CDB, 1:TDSQL
# @type ProductId: Integer
- # @param Type: 集群类型, 0:公有云, 1:金融围笼
+ # @param Type: 集群类型, 0:公有云, 1:金融围笼, 2:CDC集群
# @type Type: Integer
- # @param HostType: 主机类型, 0:物理机, 1:cvm本地盘, 2:cvm云盘
+ # @param HostType: 主机类型, 0:物理机, 1:CVM机型, 2:CDC机型
# @type HostType: Integer
# @param AutoRenewFlag: 自动续费标志, 0:未设置, 1:自动续费, 2:到期不续费
# @type AutoRenewFlag: Integer
# @param Status: 集群状态
# @type Status: Integer
@@ -275,17 +283,20 @@
# @type DiskAssigned: Integer
# @param DiskAssignable: 总可分配磁盘(单位:GB)
# @type DiskAssignable: Integer
# @param Zone: 可用区
# @type Zone: String
- # @param FenceId: 围笼ID
+ # @param FenceId: 金融围笼ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FenceId: String
+ # @param ClusterId: 所属集群ID(默认集群为空)
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type ClusterId: String
- attr_accessor :InstanceId, :InstanceName, :Region, :ProductId, :Type, :HostType, :AutoRenewFlag, :Status, :StatusDesc, :CreateTime, :PeriodEndTime, :HostNum, :DbNum, :AssignStrategy, :CpuSpec, :CpuAssigned, :CpuAssignable, :MemorySpec, :MemoryAssigned, :MemoryAssignable, :DiskSpec, :DiskAssigned, :DiskAssignable, :Zone, :FenceId
+ attr_accessor :InstanceId, :InstanceName, :Region, :ProductId, :Type, :HostType, :AutoRenewFlag, :Status, :StatusDesc, :CreateTime, :PeriodEndTime, :HostNum, :DbNum, :AssignStrategy, :CpuSpec, :CpuAssigned, :CpuAssignable, :MemorySpec, :MemoryAssigned, :MemoryAssignable, :DiskSpec, :DiskAssigned, :DiskAssignable, :Zone, :FenceId, :ClusterId
- def initialize(instanceid=nil, instancename=nil, region=nil, productid=nil, type=nil, hosttype=nil, autorenewflag=nil, status=nil, statusdesc=nil, createtime=nil, periodendtime=nil, hostnum=nil, dbnum=nil, assignstrategy=nil, cpuspec=nil, cpuassigned=nil, cpuassignable=nil, memoryspec=nil, memoryassigned=nil, memoryassignable=nil, diskspec=nil, diskassigned=nil, diskassignable=nil, zone=nil, fenceid=nil)
+ def initialize(instanceid=nil, instancename=nil, region=nil, productid=nil, type=nil, hosttype=nil, autorenewflag=nil, status=nil, statusdesc=nil, createtime=nil, periodendtime=nil, hostnum=nil, dbnum=nil, assignstrategy=nil, cpuspec=nil, cpuassigned=nil, cpuassignable=nil, memoryspec=nil, memoryassigned=nil, memoryassignable=nil, diskspec=nil, diskassigned=nil, diskassignable=nil, zone=nil, fenceid=nil, clusterid=nil)
@InstanceId = instanceid
@InstanceName = instancename
@Region = region
@ProductId = productid
@Type = type
@@ -307,10 +318,11 @@
@DiskSpec = diskspec
@DiskAssigned = diskassigned
@DiskAssignable = diskassignable
@Zone = zone
@FenceId = fenceid
+ @ClusterId = clusterid
end
def deserialize(params)
@InstanceId = params['InstanceId']
@InstanceName = params['InstanceName']
@@ -335,10 +347,11 @@
@DiskSpec = params['DiskSpec']
@DiskAssigned = params['DiskAssigned']
@DiskAssignable = params['DiskAssignable']
@Zone = params['Zone']
@FenceId = params['FenceId']
+ @ClusterId = params['ClusterId']
end
end
# DescribeInstanceDetail请求参数结构体
class DescribeInstanceDetailRequest < TencentCloud::Common::AbstractModel
@@ -404,19 +417,22 @@
# @type DiskAssigned: Integer
# @param DiskAssignable: 总可分配磁盘(单位:GB)
# @type DiskAssignable: Integer
# @param Zone: 可用区
# @type Zone: String
- # @param FenceId: 围笼ID
+ # @param FenceId: 金融围笼ID
# 注意:此字段可能返回 null,表示取不到有效值。
# @type FenceId: String
+ # @param ClusterId: 所属集群ID(默认集群为空)
+ # 注意:此字段可能返回 null,表示取不到有效值。
+ # @type ClusterId: String
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
# @type RequestId: String
- attr_accessor :InstanceId, :InstanceName, :Region, :ProductId, :Type, :HostType, :AutoRenewFlag, :Status, :StatusDesc, :CreateTime, :PeriodEndTime, :HostNum, :DbNum, :AssignStrategy, :CpuSpec, :CpuAssigned, :CpuAssignable, :MemorySpec, :MemoryAssigned, :MemoryAssignable, :DiskSpec, :DiskAssigned, :DiskAssignable, :Zone, :FenceId, :RequestId
+ attr_accessor :InstanceId, :InstanceName, :Region, :ProductId, :Type, :HostType, :AutoRenewFlag, :Status, :StatusDesc, :CreateTime, :PeriodEndTime, :HostNum, :DbNum, :AssignStrategy, :CpuSpec, :CpuAssigned, :CpuAssignable, :MemorySpec, :MemoryAssigned, :MemoryAssignable, :DiskSpec, :DiskAssigned, :DiskAssignable, :Zone, :FenceId, :ClusterId, :RequestId
- def initialize(instanceid=nil, instancename=nil, region=nil, productid=nil, type=nil, hosttype=nil, autorenewflag=nil, status=nil, statusdesc=nil, createtime=nil, periodendtime=nil, hostnum=nil, dbnum=nil, assignstrategy=nil, cpuspec=nil, cpuassigned=nil, cpuassignable=nil, memoryspec=nil, memoryassigned=nil, memoryassignable=nil, diskspec=nil, diskassigned=nil, diskassignable=nil, zone=nil, fenceid=nil, requestid=nil)
+ def initialize(instanceid=nil, instancename=nil, region=nil, productid=nil, type=nil, hosttype=nil, autorenewflag=nil, status=nil, statusdesc=nil, createtime=nil, periodendtime=nil, hostnum=nil, dbnum=nil, assignstrategy=nil, cpuspec=nil, cpuassigned=nil, cpuassignable=nil, memoryspec=nil, memoryassigned=nil, memoryassignable=nil, diskspec=nil, diskassigned=nil, diskassignable=nil, zone=nil, fenceid=nil, clusterid=nil, requestid=nil)
@InstanceId = instanceid
@InstanceName = instancename
@Region = region
@ProductId = productid
@Type = type
@@ -438,10 +454,11 @@
@DiskSpec = diskspec
@DiskAssigned = diskassigned
@DiskAssignable = diskassignable
@Zone = zone
@FenceId = fenceid
+ @ClusterId = clusterid
@RequestId = requestid
end
def deserialize(params)
@InstanceId = params['InstanceId']
@@ -467,10 +484,11 @@
@DiskSpec = params['DiskSpec']
@DiskAssigned = params['DiskAssigned']
@DiskAssignable = params['DiskAssignable']
@Zone = params['Zone']
@FenceId = params['FenceId']
+ @ClusterId = params['ClusterId']
@RequestId = params['RequestId']
end
end
# DescribeInstanceList请求参数结构体
@@ -491,23 +509,26 @@
# @type InstanceName: Array
# @param FenceId: 按金融围笼ID过滤
# @type FenceId: Array
# @param Status: 按实例状态过滤, -1:已隔离, 0:创建中, 1:运行中, 2:扩容中, 3:删除中
# @type Status: Array
+ # @param ClusterId: 按所属集群ID过滤
+ # @type ClusterId: Array
- attr_accessor :Limit, :Offset, :OrderBy, :SortBy, :ProductId, :InstanceId, :InstanceName, :FenceId, :Status
+ attr_accessor :Limit, :Offset, :OrderBy, :SortBy, :ProductId, :InstanceId, :InstanceName, :FenceId, :Status, :ClusterId
- def initialize(limit=nil, offset=nil, orderby=nil, sortby=nil, productid=nil, instanceid=nil, instancename=nil, fenceid=nil, status=nil)
+ def initialize(limit=nil, offset=nil, orderby=nil, sortby=nil, productid=nil, instanceid=nil, instancename=nil, fenceid=nil, status=nil, clusterid=nil)
@Limit = limit
@Offset = offset
@OrderBy = orderby
@SortBy = sortby
@ProductId = productid
@InstanceId = instanceid
@InstanceName = instancename
@FenceId = fenceid
@Status = status
+ @ClusterId = clusterid
end
def deserialize(params)
@Limit = params['Limit']
@Offset = params['Offset']
@@ -516,9 +537,10 @@
@ProductId = params['ProductId']
@InstanceId = params['InstanceId']
@InstanceName = params['InstanceName']
@FenceId = params['FenceId']
@Status = params['Status']
+ @ClusterId = params['ClusterId']
end
end
# DescribeInstanceList返回参数结构体
class DescribeInstanceListResponse < TencentCloud::Common::AbstractModel