tencentcloud-sdk-dcdb 3.0.536 → 3.0.538
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180411/client.rb +24 -0
- data/lib/v20180411/models.rb +358 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5474dd848a8caaf5cab810e0c912a5ad2a07d879
|
4
|
+
data.tar.gz: ce99b87d3628086e5408a1e29677f8ca6ce581a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b61b61bb21a57812e7dcdf5db8f5d38f02035c1fd0ff2411312c04cf153fe3f62650b3d080a2c282c493be9dc436194fac7e3464eb9041d620ab7398467898fd
|
7
|
+
data.tar.gz: 2a3ed94f470b5b2e0ccb2df7f863e5fc959f84542b7e01fba1378d2f8368450e353eab4b2307ecbce53a0254d855aed1477cc5a783700dec8e907a8097426553
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.538
|
data/lib/v20180411/client.rb
CHANGED
@@ -439,6 +439,30 @@ module TencentCloud
|
|
439
439
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
440
440
|
end
|
441
441
|
|
442
|
+
# 本接口(DescribeDCDBInstanceDetail)用于获取DCDB实例详情
|
443
|
+
|
444
|
+
# @param request: Request instance for DescribeDCDBInstanceDetail.
|
445
|
+
# @type request: :class:`Tencentcloud::dcdb::V20180411::DescribeDCDBInstanceDetailRequest`
|
446
|
+
# @rtype: :class:`Tencentcloud::dcdb::V20180411::DescribeDCDBInstanceDetailResponse`
|
447
|
+
def DescribeDCDBInstanceDetail(request)
|
448
|
+
body = send_request('DescribeDCDBInstanceDetail', request.serialize)
|
449
|
+
response = JSON.parse(body)
|
450
|
+
if response['Response'].key?('Error') == false
|
451
|
+
model = DescribeDCDBInstanceDetailResponse.new
|
452
|
+
model.deserialize(response['Response'])
|
453
|
+
model
|
454
|
+
else
|
455
|
+
code = response['Response']['Error']['Code']
|
456
|
+
message = response['Response']['Error']['Message']
|
457
|
+
reqid = response['Response']['RequestId']
|
458
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
459
|
+
end
|
460
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
461
|
+
raise e
|
462
|
+
rescue StandardError => e
|
463
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
464
|
+
end
|
465
|
+
|
442
466
|
# 本接口(DescribeDCDBInstanceNodeInfo)用于获取实例节点信息
|
443
467
|
|
444
468
|
# @param request: Request instance for DescribeDCDBInstanceNodeInfo.
|
data/lib/v20180411/models.rb
CHANGED
@@ -1890,6 +1890,264 @@ module TencentCloud
|
|
1890
1890
|
end
|
1891
1891
|
end
|
1892
1892
|
|
1893
|
+
# DescribeDCDBInstanceDetail请求参数结构体
|
1894
|
+
class DescribeDCDBInstanceDetailRequest < TencentCloud::Common::AbstractModel
|
1895
|
+
# @param InstanceId: 实例ID,形如dcdbt-7oaxtcb7
|
1896
|
+
# @type InstanceId: String
|
1897
|
+
|
1898
|
+
attr_accessor :InstanceId
|
1899
|
+
|
1900
|
+
def initialize(instanceid=nil)
|
1901
|
+
@InstanceId = instanceid
|
1902
|
+
end
|
1903
|
+
|
1904
|
+
def deserialize(params)
|
1905
|
+
@InstanceId = params['InstanceId']
|
1906
|
+
end
|
1907
|
+
end
|
1908
|
+
|
1909
|
+
# DescribeDCDBInstanceDetail返回参数结构体
|
1910
|
+
class DescribeDCDBInstanceDetailResponse < TencentCloud::Common::AbstractModel
|
1911
|
+
# @param InstanceId: 实例ID,形如dcdbt-7oaxtcb7
|
1912
|
+
# @type InstanceId: String
|
1913
|
+
# @param InstanceName: 实例名称
|
1914
|
+
# @type InstanceName: String
|
1915
|
+
# @param Status: 实例状态。0-实例创建中;1-异步任务处理中;2-运行中;3-实例未初始化;-1-实例已隔离
|
1916
|
+
# @type Status: Integer
|
1917
|
+
# @param StatusDesc: 实例目前运行状态描述
|
1918
|
+
# @type StatusDesc: String
|
1919
|
+
# @param Vip: 实例内网IP地址
|
1920
|
+
# @type Vip: String
|
1921
|
+
# @param Vport: 实例内网端口
|
1922
|
+
# @type Vport: Integer
|
1923
|
+
# @param NodeCount: 实例节点数。值为2时表示一主一从,值为3时表示一主二从
|
1924
|
+
# @type NodeCount: Integer
|
1925
|
+
# @param Region: 实例所在地域名称,形如ap-guangzhou
|
1926
|
+
# @type Region: String
|
1927
|
+
# @param VpcId: 实例私有网络ID,形如vpc-r9jr0de3
|
1928
|
+
# @type VpcId: String
|
1929
|
+
# @param SubnetId: 实例私有网络子网ID,形如subnet-6rqs61o2
|
1930
|
+
# @type SubnetId: String
|
1931
|
+
# @param WanStatus: 外网状态,0-未开通;1-已开通;2-关闭;3-开通中;4-关闭中
|
1932
|
+
# @type WanStatus: Integer
|
1933
|
+
# @param WanDomain: 外网访问的域名,公网可解析
|
1934
|
+
# @type WanDomain: String
|
1935
|
+
# @param WanVip: 外网IP地址,公网可访问
|
1936
|
+
# @type WanVip: String
|
1937
|
+
# @param WanPort: 外网访问端口
|
1938
|
+
# @type WanPort: Integer
|
1939
|
+
# @param ProjectId: 实例所属项目ID
|
1940
|
+
# @type ProjectId: Integer
|
1941
|
+
# @param AutoRenewFlag: 实例自动续费标志。0-正常续费;1-自动续费;2-到期不续费
|
1942
|
+
# @type AutoRenewFlag: Integer
|
1943
|
+
# @param ExclusterId: 独享集群ID
|
1944
|
+
# @type ExclusterId: String
|
1945
|
+
# @param PayMode: 付费模式。prepaid-预付费;postpaid-按量计费
|
1946
|
+
# @type PayMode: String
|
1947
|
+
# @param CreateTime: 实例创建时间,格式为 2006-01-02 15:04:05
|
1948
|
+
# @type CreateTime: String
|
1949
|
+
# @param PeriodEndTime: 实例到期时间,格式为 2006-01-02 15:04:05
|
1950
|
+
# @type PeriodEndTime: String
|
1951
|
+
# @param DbVersion: 数据库版本信息
|
1952
|
+
# @type DbVersion: String
|
1953
|
+
# @param IsAuditSupported: 实例是否支持审计。0-不支持;1-支持
|
1954
|
+
# @type IsAuditSupported: Integer
|
1955
|
+
# @param IsEncryptSupported: 实例是否支持数据加密。0-不支持;1-支持
|
1956
|
+
# @type IsEncryptSupported: Integer
|
1957
|
+
# @param Machine: 实例母机机器型号
|
1958
|
+
# @type Machine: String
|
1959
|
+
# @param Memory: 实例内存大小,单位 GB,各个分片的内存大小的和
|
1960
|
+
# @type Memory: Integer
|
1961
|
+
# @param Storage: 实例磁盘存储大小,单位 GB,各个分片的磁盘大小的和
|
1962
|
+
# @type Storage: Integer
|
1963
|
+
# @param StorageUsage: 实例存储空间使用率,计算方式为:各个分片已经使用的磁盘大小的和/各个分片的磁盘大小的和。
|
1964
|
+
# @type StorageUsage: Float
|
1965
|
+
# @param LogStorage: 日志存储空间大小,单位GB
|
1966
|
+
# @type LogStorage: Integer
|
1967
|
+
# @param Pid: 产品类型ID
|
1968
|
+
# @type Pid: Integer
|
1969
|
+
# @param MasterZone: 主DB可用区
|
1970
|
+
# @type MasterZone: String
|
1971
|
+
# @param SlaveZones: 从DB可用区
|
1972
|
+
# @type SlaveZones: Array
|
1973
|
+
# @param Shards: 分片信息
|
1974
|
+
# @type Shards: Array
|
1975
|
+
# @param Vip6: 内网IPv6
|
1976
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1977
|
+
# @type Vip6: String
|
1978
|
+
# @param Cpu: 实例Cpu核数
|
1979
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1980
|
+
# @type Cpu: Integer
|
1981
|
+
# @param Qps: 实例QPS
|
1982
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1983
|
+
# @type Qps: Integer
|
1984
|
+
# @param DbEngine: DB引擎
|
1985
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1986
|
+
# @type DbEngine: String
|
1987
|
+
# @param Ipv6Flag: 是否支持IPv6
|
1988
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1989
|
+
# @type Ipv6Flag: Integer
|
1990
|
+
# @param WanVipv6: 外网IPv6地址,公网可访问
|
1991
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1992
|
+
# @type WanVipv6: String
|
1993
|
+
# @param WanStatusIpv6: 外网状态,0-未开通;1-已开通;2-关闭;3-开通中;4-关闭中
|
1994
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1995
|
+
# @type WanStatusIpv6: Integer
|
1996
|
+
# @param WanPortIpv6: 外网IPv6端口
|
1997
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1998
|
+
# @type WanPortIpv6: Integer
|
1999
|
+
# @param ResourceTags: 标签信息
|
2000
|
+
# @type ResourceTags: Array
|
2001
|
+
# @param DcnFlag: DCN标志,0-无,1-主实例,2-灾备实例
|
2002
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2003
|
+
# @type DcnFlag: Integer
|
2004
|
+
# @param DcnStatus: DCN状态,0-无,1-创建中,2-同步中,3-已断开
|
2005
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2006
|
+
# @type DcnStatus: Integer
|
2007
|
+
# @param DcnDstNum: DCN灾备实例数
|
2008
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2009
|
+
# @type DcnDstNum: Integer
|
2010
|
+
# @param InstanceType: 1: 主实例(独享型), 2: 主实例, 3: 灾备实例, 4: 灾备实例(独享型)
|
2011
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2012
|
+
# @type InstanceType: Integer
|
2013
|
+
# @param IsMaxUserConnectionsSupported: 实例是否支持设置用户连接数限制,内核为10.1暂不支持。
|
2014
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2015
|
+
# @type IsMaxUserConnectionsSupported: Boolean
|
2016
|
+
# @param DbVersionId: 对外显示的数据库版本
|
2017
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2018
|
+
# @type DbVersionId: String
|
2019
|
+
# @param EncryptStatus: 加密状态, 0-未开启,1-已开启
|
2020
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2021
|
+
# @type EncryptStatus: Integer
|
2022
|
+
# @param ExclusterType: 独享集群类型,0:公有云, 1:金融围笼, 2:CDC集群
|
2023
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2024
|
+
# @type ExclusterType: Integer
|
2025
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2026
|
+
# @type RequestId: String
|
2027
|
+
|
2028
|
+
attr_accessor :InstanceId, :InstanceName, :Status, :StatusDesc, :Vip, :Vport, :NodeCount, :Region, :VpcId, :SubnetId, :WanStatus, :WanDomain, :WanVip, :WanPort, :ProjectId, :AutoRenewFlag, :ExclusterId, :PayMode, :CreateTime, :PeriodEndTime, :DbVersion, :IsAuditSupported, :IsEncryptSupported, :Machine, :Memory, :Storage, :StorageUsage, :LogStorage, :Pid, :MasterZone, :SlaveZones, :Shards, :Vip6, :Cpu, :Qps, :DbEngine, :Ipv6Flag, :WanVipv6, :WanStatusIpv6, :WanPortIpv6, :ResourceTags, :DcnFlag, :DcnStatus, :DcnDstNum, :InstanceType, :IsMaxUserConnectionsSupported, :DbVersionId, :EncryptStatus, :ExclusterType, :RequestId
|
2029
|
+
|
2030
|
+
def initialize(instanceid=nil, instancename=nil, status=nil, statusdesc=nil, vip=nil, vport=nil, nodecount=nil, region=nil, vpcid=nil, subnetid=nil, wanstatus=nil, wandomain=nil, wanvip=nil, wanport=nil, projectid=nil, autorenewflag=nil, exclusterid=nil, paymode=nil, createtime=nil, periodendtime=nil, dbversion=nil, isauditsupported=nil, isencryptsupported=nil, machine=nil, memory=nil, storage=nil, storageusage=nil, logstorage=nil, pid=nil, masterzone=nil, slavezones=nil, shards=nil, vip6=nil, cpu=nil, qps=nil, dbengine=nil, ipv6flag=nil, wanvipv6=nil, wanstatusipv6=nil, wanportipv6=nil, resourcetags=nil, dcnflag=nil, dcnstatus=nil, dcndstnum=nil, instancetype=nil, ismaxuserconnectionssupported=nil, dbversionid=nil, encryptstatus=nil, exclustertype=nil, requestid=nil)
|
2031
|
+
@InstanceId = instanceid
|
2032
|
+
@InstanceName = instancename
|
2033
|
+
@Status = status
|
2034
|
+
@StatusDesc = statusdesc
|
2035
|
+
@Vip = vip
|
2036
|
+
@Vport = vport
|
2037
|
+
@NodeCount = nodecount
|
2038
|
+
@Region = region
|
2039
|
+
@VpcId = vpcid
|
2040
|
+
@SubnetId = subnetid
|
2041
|
+
@WanStatus = wanstatus
|
2042
|
+
@WanDomain = wandomain
|
2043
|
+
@WanVip = wanvip
|
2044
|
+
@WanPort = wanport
|
2045
|
+
@ProjectId = projectid
|
2046
|
+
@AutoRenewFlag = autorenewflag
|
2047
|
+
@ExclusterId = exclusterid
|
2048
|
+
@PayMode = paymode
|
2049
|
+
@CreateTime = createtime
|
2050
|
+
@PeriodEndTime = periodendtime
|
2051
|
+
@DbVersion = dbversion
|
2052
|
+
@IsAuditSupported = isauditsupported
|
2053
|
+
@IsEncryptSupported = isencryptsupported
|
2054
|
+
@Machine = machine
|
2055
|
+
@Memory = memory
|
2056
|
+
@Storage = storage
|
2057
|
+
@StorageUsage = storageusage
|
2058
|
+
@LogStorage = logstorage
|
2059
|
+
@Pid = pid
|
2060
|
+
@MasterZone = masterzone
|
2061
|
+
@SlaveZones = slavezones
|
2062
|
+
@Shards = shards
|
2063
|
+
@Vip6 = vip6
|
2064
|
+
@Cpu = cpu
|
2065
|
+
@Qps = qps
|
2066
|
+
@DbEngine = dbengine
|
2067
|
+
@Ipv6Flag = ipv6flag
|
2068
|
+
@WanVipv6 = wanvipv6
|
2069
|
+
@WanStatusIpv6 = wanstatusipv6
|
2070
|
+
@WanPortIpv6 = wanportipv6
|
2071
|
+
@ResourceTags = resourcetags
|
2072
|
+
@DcnFlag = dcnflag
|
2073
|
+
@DcnStatus = dcnstatus
|
2074
|
+
@DcnDstNum = dcndstnum
|
2075
|
+
@InstanceType = instancetype
|
2076
|
+
@IsMaxUserConnectionsSupported = ismaxuserconnectionssupported
|
2077
|
+
@DbVersionId = dbversionid
|
2078
|
+
@EncryptStatus = encryptstatus
|
2079
|
+
@ExclusterType = exclustertype
|
2080
|
+
@RequestId = requestid
|
2081
|
+
end
|
2082
|
+
|
2083
|
+
def deserialize(params)
|
2084
|
+
@InstanceId = params['InstanceId']
|
2085
|
+
@InstanceName = params['InstanceName']
|
2086
|
+
@Status = params['Status']
|
2087
|
+
@StatusDesc = params['StatusDesc']
|
2088
|
+
@Vip = params['Vip']
|
2089
|
+
@Vport = params['Vport']
|
2090
|
+
@NodeCount = params['NodeCount']
|
2091
|
+
@Region = params['Region']
|
2092
|
+
@VpcId = params['VpcId']
|
2093
|
+
@SubnetId = params['SubnetId']
|
2094
|
+
@WanStatus = params['WanStatus']
|
2095
|
+
@WanDomain = params['WanDomain']
|
2096
|
+
@WanVip = params['WanVip']
|
2097
|
+
@WanPort = params['WanPort']
|
2098
|
+
@ProjectId = params['ProjectId']
|
2099
|
+
@AutoRenewFlag = params['AutoRenewFlag']
|
2100
|
+
@ExclusterId = params['ExclusterId']
|
2101
|
+
@PayMode = params['PayMode']
|
2102
|
+
@CreateTime = params['CreateTime']
|
2103
|
+
@PeriodEndTime = params['PeriodEndTime']
|
2104
|
+
@DbVersion = params['DbVersion']
|
2105
|
+
@IsAuditSupported = params['IsAuditSupported']
|
2106
|
+
@IsEncryptSupported = params['IsEncryptSupported']
|
2107
|
+
@Machine = params['Machine']
|
2108
|
+
@Memory = params['Memory']
|
2109
|
+
@Storage = params['Storage']
|
2110
|
+
@StorageUsage = params['StorageUsage']
|
2111
|
+
@LogStorage = params['LogStorage']
|
2112
|
+
@Pid = params['Pid']
|
2113
|
+
@MasterZone = params['MasterZone']
|
2114
|
+
@SlaveZones = params['SlaveZones']
|
2115
|
+
unless params['Shards'].nil?
|
2116
|
+
@Shards = []
|
2117
|
+
params['Shards'].each do |i|
|
2118
|
+
shardbriefinfo_tmp = ShardBriefInfo.new
|
2119
|
+
shardbriefinfo_tmp.deserialize(i)
|
2120
|
+
@Shards << shardbriefinfo_tmp
|
2121
|
+
end
|
2122
|
+
end
|
2123
|
+
@Vip6 = params['Vip6']
|
2124
|
+
@Cpu = params['Cpu']
|
2125
|
+
@Qps = params['Qps']
|
2126
|
+
@DbEngine = params['DbEngine']
|
2127
|
+
@Ipv6Flag = params['Ipv6Flag']
|
2128
|
+
@WanVipv6 = params['WanVipv6']
|
2129
|
+
@WanStatusIpv6 = params['WanStatusIpv6']
|
2130
|
+
@WanPortIpv6 = params['WanPortIpv6']
|
2131
|
+
unless params['ResourceTags'].nil?
|
2132
|
+
@ResourceTags = []
|
2133
|
+
params['ResourceTags'].each do |i|
|
2134
|
+
resourcetag_tmp = ResourceTag.new
|
2135
|
+
resourcetag_tmp.deserialize(i)
|
2136
|
+
@ResourceTags << resourcetag_tmp
|
2137
|
+
end
|
2138
|
+
end
|
2139
|
+
@DcnFlag = params['DcnFlag']
|
2140
|
+
@DcnStatus = params['DcnStatus']
|
2141
|
+
@DcnDstNum = params['DcnDstNum']
|
2142
|
+
@InstanceType = params['InstanceType']
|
2143
|
+
@IsMaxUserConnectionsSupported = params['IsMaxUserConnectionsSupported']
|
2144
|
+
@DbVersionId = params['DbVersionId']
|
2145
|
+
@EncryptStatus = params['EncryptStatus']
|
2146
|
+
@ExclusterType = params['ExclusterType']
|
2147
|
+
@RequestId = params['RequestId']
|
2148
|
+
end
|
2149
|
+
end
|
2150
|
+
|
1893
2151
|
# DescribeDCDBInstanceNodeInfo请求参数结构体
|
1894
2152
|
class DescribeDCDBInstanceNodeInfoRequest < TencentCloud::Common::AbstractModel
|
1895
2153
|
# @param InstanceId: 实例ID
|
@@ -4040,6 +4298,26 @@ module TencentCloud
|
|
4040
4298
|
end
|
4041
4299
|
end
|
4042
4300
|
|
4301
|
+
# 描述DB节点信息
|
4302
|
+
class NodeInfo < TencentCloud::Common::AbstractModel
|
4303
|
+
# @param NodeId: DB节点ID
|
4304
|
+
# @type NodeId: String
|
4305
|
+
# @param Role: DB节点角色,取值为master或者slave
|
4306
|
+
# @type Role: String
|
4307
|
+
|
4308
|
+
attr_accessor :NodeId, :Role
|
4309
|
+
|
4310
|
+
def initialize(nodeid=nil, role=nil)
|
4311
|
+
@NodeId = nodeid
|
4312
|
+
@Role = role
|
4313
|
+
end
|
4314
|
+
|
4315
|
+
def deserialize(params)
|
4316
|
+
@NodeId = params['NodeId']
|
4317
|
+
@Role = params['Role']
|
4318
|
+
end
|
4319
|
+
end
|
4320
|
+
|
4043
4321
|
# OpenDBExtranetAccess请求参数结构体
|
4044
4322
|
class OpenDBExtranetAccessRequest < TencentCloud::Common::AbstractModel
|
4045
4323
|
# @param InstanceId: 待开放外网访问的实例ID。形如:dcdbt-ow728lmc。
|
@@ -4474,6 +4752,86 @@ module TencentCloud
|
|
4474
4752
|
end
|
4475
4753
|
end
|
4476
4754
|
|
4755
|
+
# DCDB分片信息
|
4756
|
+
class ShardBriefInfo < TencentCloud::Common::AbstractModel
|
4757
|
+
# @param ShardSerialId: 分片SerialId
|
4758
|
+
# @type ShardSerialId: String
|
4759
|
+
# @param ShardInstanceId: 分片ID,形如shard-7vg1o339
|
4760
|
+
# @type ShardInstanceId: String
|
4761
|
+
# @param Status: 分片运行状态
|
4762
|
+
# @type Status: Integer
|
4763
|
+
# @param StatusDesc: 分片运行状态描述
|
4764
|
+
# @type StatusDesc: String
|
4765
|
+
# @param CreateTime: 分片创建时间
|
4766
|
+
# @type CreateTime: String
|
4767
|
+
# @param Memory: 分片内存大小,单位GB
|
4768
|
+
# @type Memory: Integer
|
4769
|
+
# @param Storage: 分片磁盘大小,单位GB
|
4770
|
+
# @type Storage: Integer
|
4771
|
+
# @param LogDisk: 分片日志磁盘空间大小,单位GB
|
4772
|
+
# @type LogDisk: Integer
|
4773
|
+
# @param NodeCount: 分片节点个数
|
4774
|
+
# @type NodeCount: Integer
|
4775
|
+
# @param StorageUsage: 分片磁盘空间使用率
|
4776
|
+
# @type StorageUsage: Float
|
4777
|
+
# @param ProxyVersion: 分片Proxy版本信息
|
4778
|
+
# @type ProxyVersion: String
|
4779
|
+
# @param ShardMasterZone: 分片主DB可用区
|
4780
|
+
# @type ShardMasterZone: String
|
4781
|
+
# @param ShardSlaveZones: 分片从DB可用区
|
4782
|
+
# @type ShardSlaveZones: Array
|
4783
|
+
# @param Cpu: 分片Cpu核数
|
4784
|
+
# @type Cpu: Integer
|
4785
|
+
# @param NodesInfo: DB节点信息
|
4786
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
4787
|
+
# @type NodesInfo: Array
|
4788
|
+
|
4789
|
+
attr_accessor :ShardSerialId, :ShardInstanceId, :Status, :StatusDesc, :CreateTime, :Memory, :Storage, :LogDisk, :NodeCount, :StorageUsage, :ProxyVersion, :ShardMasterZone, :ShardSlaveZones, :Cpu, :NodesInfo
|
4790
|
+
|
4791
|
+
def initialize(shardserialid=nil, shardinstanceid=nil, status=nil, statusdesc=nil, createtime=nil, memory=nil, storage=nil, logdisk=nil, nodecount=nil, storageusage=nil, proxyversion=nil, shardmasterzone=nil, shardslavezones=nil, cpu=nil, nodesinfo=nil)
|
4792
|
+
@ShardSerialId = shardserialid
|
4793
|
+
@ShardInstanceId = shardinstanceid
|
4794
|
+
@Status = status
|
4795
|
+
@StatusDesc = statusdesc
|
4796
|
+
@CreateTime = createtime
|
4797
|
+
@Memory = memory
|
4798
|
+
@Storage = storage
|
4799
|
+
@LogDisk = logdisk
|
4800
|
+
@NodeCount = nodecount
|
4801
|
+
@StorageUsage = storageusage
|
4802
|
+
@ProxyVersion = proxyversion
|
4803
|
+
@ShardMasterZone = shardmasterzone
|
4804
|
+
@ShardSlaveZones = shardslavezones
|
4805
|
+
@Cpu = cpu
|
4806
|
+
@NodesInfo = nodesinfo
|
4807
|
+
end
|
4808
|
+
|
4809
|
+
def deserialize(params)
|
4810
|
+
@ShardSerialId = params['ShardSerialId']
|
4811
|
+
@ShardInstanceId = params['ShardInstanceId']
|
4812
|
+
@Status = params['Status']
|
4813
|
+
@StatusDesc = params['StatusDesc']
|
4814
|
+
@CreateTime = params['CreateTime']
|
4815
|
+
@Memory = params['Memory']
|
4816
|
+
@Storage = params['Storage']
|
4817
|
+
@LogDisk = params['LogDisk']
|
4818
|
+
@NodeCount = params['NodeCount']
|
4819
|
+
@StorageUsage = params['StorageUsage']
|
4820
|
+
@ProxyVersion = params['ProxyVersion']
|
4821
|
+
@ShardMasterZone = params['ShardMasterZone']
|
4822
|
+
@ShardSlaveZones = params['ShardSlaveZones']
|
4823
|
+
@Cpu = params['Cpu']
|
4824
|
+
unless params['NodesInfo'].nil?
|
4825
|
+
@NodesInfo = []
|
4826
|
+
params['NodesInfo'].each do |i|
|
4827
|
+
nodeinfo_tmp = NodeInfo.new
|
4828
|
+
nodeinfo_tmp.deserialize(i)
|
4829
|
+
@NodesInfo << nodeinfo_tmp
|
4830
|
+
end
|
4831
|
+
end
|
4832
|
+
end
|
4833
|
+
end
|
4834
|
+
|
4477
4835
|
# 分片信息
|
4478
4836
|
class ShardInfo < TencentCloud::Common::AbstractModel
|
4479
4837
|
# @param ShardInstanceId: 分片ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-dcdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.538
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-03-
|
11
|
+
date: 2023-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|