tencentcloud-sdk-cdb 3.0.847 → 3.0.849

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 380fe5ce54d97a2eebb9aab1bf4c363fd56c93d1
4
- data.tar.gz: 5aa0d787eefe1ff5dbd697a78fcaf516785b3bbc
3
+ metadata.gz: b2cacac5fbf6bc3564264336f746553bf7ba1325
4
+ data.tar.gz: 5e3c0e39f19bd6d5e735e2456f7652b1fa6e38fd
5
5
  SHA512:
6
- metadata.gz: c273266ee353543c1eb0b5531b34b3a8aedb21aaf162ceff7eeeef8b7079e3663cd75e4ad1bb96f408f9aaeea374bd4eb80daee697b8f8a86a48226dca899c49
7
- data.tar.gz: 84318c5902f7c56c074eec7177683fbc37db9b7eafd73fd3dd82108d6f1c7f9c947f9b47773a3636bdbcfb6094f1e47c50074e758b51d1a7a1bfe6dcba2db10e
6
+ metadata.gz: 01e998cbe62ab3d15c70f505b6c98f709092d476601e6e1ea75b52aaee24f6370088440e71b6780e11f525e852a21c4403e21ebf27e027e92fe32ed1815c0eb8
7
+ data.tar.gz: 25a74fe05f79f225ae85fe8b3620f197c9d15fa9593c55e3aa65ddb69ab48fe771829bac9ebe84c2750abe8e1d0be961aa01c0738d2fd1b189945ac14e8cd701
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.847
1
+ 3.0.849
@@ -2067,6 +2067,30 @@ module TencentCloud
2067
2067
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2068
2068
  end
2069
2069
 
2070
+ # 本接口(DescribeInstanceUpgradeType)用于查询数据库实例升级类型。
2071
+
2072
+ # @param request: Request instance for DescribeInstanceUpgradeType.
2073
+ # @type request: :class:`Tencentcloud::cdb::V20170320::DescribeInstanceUpgradeTypeRequest`
2074
+ # @rtype: :class:`Tencentcloud::cdb::V20170320::DescribeInstanceUpgradeTypeResponse`
2075
+ def DescribeInstanceUpgradeType(request)
2076
+ body = send_request('DescribeInstanceUpgradeType', request.serialize)
2077
+ response = JSON.parse(body)
2078
+ if response['Response'].key?('Error') == false
2079
+ model = DescribeInstanceUpgradeTypeResponse.new
2080
+ model.deserialize(response['Response'])
2081
+ model
2082
+ else
2083
+ code = response['Response']['Error']['Code']
2084
+ message = response['Response']['Error']['Message']
2085
+ reqid = response['Response']['RequestId']
2086
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2087
+ end
2088
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2089
+ raise e
2090
+ rescue StandardError => e
2091
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2092
+ end
2093
+
2070
2094
  # 该接口用于查询实例本地binlog保留策略。
2071
2095
 
2072
2096
  # @param request: Request instance for DescribeLocalBinlogConfig.
@@ -1988,6 +1988,36 @@ module TencentCloud
1988
1988
  end
1989
1989
  end
1990
1990
 
1991
+ # 集群版的节点拓扑配置。
1992
+ class ClusterTopology < TencentCloud::Common::AbstractModel
1993
+ # @param ReadWriteNode: RW 节点拓扑。
1994
+ # @type ReadWriteNode: :class:`Tencentcloud::Cdb.v20170320.models.ReadWriteNode`
1995
+ # @param ReadOnlyNodes: RO 节点拓扑。
1996
+ # @type ReadOnlyNodes: Array
1997
+
1998
+ attr_accessor :ReadWriteNode, :ReadOnlyNodes
1999
+
2000
+ def initialize(readwritenode=nil, readonlynodes=nil)
2001
+ @ReadWriteNode = readwritenode
2002
+ @ReadOnlyNodes = readonlynodes
2003
+ end
2004
+
2005
+ def deserialize(params)
2006
+ unless params['ReadWriteNode'].nil?
2007
+ @ReadWriteNode = ReadWriteNode.new
2008
+ @ReadWriteNode.deserialize(params['ReadWriteNode'])
2009
+ end
2010
+ unless params['ReadOnlyNodes'].nil?
2011
+ @ReadOnlyNodes = []
2012
+ params['ReadOnlyNodes'].each do |i|
2013
+ readonlynode_tmp = ReadonlyNode.new
2014
+ readonlynode_tmp.deserialize(i)
2015
+ @ReadOnlyNodes << readonlynode_tmp
2016
+ end
2017
+ end
2018
+ end
2019
+ end
2020
+
1991
2021
  # 列权限信息
1992
2022
  class ColumnPrivilege < TencentCloud::Common::AbstractModel
1993
2023
  # @param Database: 数据库名
@@ -6811,6 +6841,100 @@ module TencentCloud
6811
6841
  end
6812
6842
  end
6813
6843
 
6844
+ # DescribeInstanceUpgradeType请求参数结构体
6845
+ class DescribeInstanceUpgradeTypeRequest < TencentCloud::Common::AbstractModel
6846
+ # @param InstanceId: 实例id
6847
+ # @type InstanceId: String
6848
+ # @param DstCpu: 目标实例cpu
6849
+ # @type DstCpu: Float
6850
+ # @param DstMemory: 目标实例内存
6851
+ # @type DstMemory: Integer
6852
+ # @param DstDisk: 目标实例磁盘
6853
+ # @type DstDisk: Integer
6854
+ # @param DstVersion: 目标实例版本
6855
+ # @type DstVersion: String
6856
+ # @param DstDeployMode: 目标实例部署模型
6857
+ # @type DstDeployMode: Integer
6858
+ # @param DstProtectMode: 目标实例复制类型
6859
+ # @type DstProtectMode: Integer
6860
+ # @param DstSlaveZone: 目标实例备机1可用区
6861
+ # @type DstSlaveZone: Integer
6862
+ # @param DstBackupZone: 目标实例备机2可用区
6863
+ # @type DstBackupZone: Integer
6864
+ # @param DstCdbType: 目标实例类型
6865
+ # @type DstCdbType: String
6866
+ # @param DstZoneId: 目标实例主可用区
6867
+ # @type DstZoneId: Integer
6868
+ # @param NodeDistribution: 独享集群CDB实例的节点分布情况
6869
+ # @type NodeDistribution: :class:`Tencentcloud::Cdb.v20170320.models.NodeDistribution`
6870
+ # @param ClusterTopology: 集群版的节点拓扑配置
6871
+ # @type ClusterTopology: :class:`Tencentcloud::Cdb.v20170320.models.ClusterTopology`
6872
+
6873
+ attr_accessor :InstanceId, :DstCpu, :DstMemory, :DstDisk, :DstVersion, :DstDeployMode, :DstProtectMode, :DstSlaveZone, :DstBackupZone, :DstCdbType, :DstZoneId, :NodeDistribution, :ClusterTopology
6874
+
6875
+ def initialize(instanceid=nil, dstcpu=nil, dstmemory=nil, dstdisk=nil, dstversion=nil, dstdeploymode=nil, dstprotectmode=nil, dstslavezone=nil, dstbackupzone=nil, dstcdbtype=nil, dstzoneid=nil, nodedistribution=nil, clustertopology=nil)
6876
+ @InstanceId = instanceid
6877
+ @DstCpu = dstcpu
6878
+ @DstMemory = dstmemory
6879
+ @DstDisk = dstdisk
6880
+ @DstVersion = dstversion
6881
+ @DstDeployMode = dstdeploymode
6882
+ @DstProtectMode = dstprotectmode
6883
+ @DstSlaveZone = dstslavezone
6884
+ @DstBackupZone = dstbackupzone
6885
+ @DstCdbType = dstcdbtype
6886
+ @DstZoneId = dstzoneid
6887
+ @NodeDistribution = nodedistribution
6888
+ @ClusterTopology = clustertopology
6889
+ end
6890
+
6891
+ def deserialize(params)
6892
+ @InstanceId = params['InstanceId']
6893
+ @DstCpu = params['DstCpu']
6894
+ @DstMemory = params['DstMemory']
6895
+ @DstDisk = params['DstDisk']
6896
+ @DstVersion = params['DstVersion']
6897
+ @DstDeployMode = params['DstDeployMode']
6898
+ @DstProtectMode = params['DstProtectMode']
6899
+ @DstSlaveZone = params['DstSlaveZone']
6900
+ @DstBackupZone = params['DstBackupZone']
6901
+ @DstCdbType = params['DstCdbType']
6902
+ @DstZoneId = params['DstZoneId']
6903
+ unless params['NodeDistribution'].nil?
6904
+ @NodeDistribution = NodeDistribution.new
6905
+ @NodeDistribution.deserialize(params['NodeDistribution'])
6906
+ end
6907
+ unless params['ClusterTopology'].nil?
6908
+ @ClusterTopology = ClusterTopology.new
6909
+ @ClusterTopology.deserialize(params['ClusterTopology'])
6910
+ end
6911
+ end
6912
+ end
6913
+
6914
+ # DescribeInstanceUpgradeType返回参数结构体
6915
+ class DescribeInstanceUpgradeTypeResponse < TencentCloud::Common::AbstractModel
6916
+ # @param InstanceId: 实例id
6917
+ # @type InstanceId: String
6918
+ # @param UpgradeType: 实例升级类型
6919
+ # @type UpgradeType: String
6920
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6921
+ # @type RequestId: String
6922
+
6923
+ attr_accessor :InstanceId, :UpgradeType, :RequestId
6924
+
6925
+ def initialize(instanceid=nil, upgradetype=nil, requestid=nil)
6926
+ @InstanceId = instanceid
6927
+ @UpgradeType = upgradetype
6928
+ @RequestId = requestid
6929
+ end
6930
+
6931
+ def deserialize(params)
6932
+ @InstanceId = params['InstanceId']
6933
+ @UpgradeType = params['UpgradeType']
6934
+ @RequestId = params['RequestId']
6935
+ end
6936
+ end
6937
+
6814
6938
  # DescribeLocalBinlogConfig请求参数结构体
6815
6939
  class DescribeLocalBinlogConfigRequest < TencentCloud::Common::AbstractModel
6816
6940
  # @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv。与云数据库控制台页面中显示的实例ID相同。
@@ -10707,6 +10831,30 @@ module TencentCloud
10707
10831
  end
10708
10832
  end
10709
10833
 
10834
+ # 独享集群CDB实例的节点分布情况
10835
+ class NodeDistribution < TencentCloud::Common::AbstractModel
10836
+ # @param Node: 主实例Master节点所在主机ID或者只读实例所在主机ID
10837
+ # @type Node: String
10838
+ # @param SlaveNodeOne: 主实例第一Slave节点所在主机ID
10839
+ # @type SlaveNodeOne: String
10840
+ # @param SlaveNodeTwo: 主实例第二Slave节点所在主机ID
10841
+ # @type SlaveNodeTwo: String
10842
+
10843
+ attr_accessor :Node, :SlaveNodeOne, :SlaveNodeTwo
10844
+
10845
+ def initialize(node=nil, slavenodeone=nil, slavenodetwo=nil)
10846
+ @Node = node
10847
+ @SlaveNodeOne = slavenodeone
10848
+ @SlaveNodeTwo = slavenodetwo
10849
+ end
10850
+
10851
+ def deserialize(params)
10852
+ @Node = params['Node']
10853
+ @SlaveNodeOne = params['SlaveNodeOne']
10854
+ @SlaveNodeTwo = params['SlaveNodeTwo']
10855
+ end
10856
+ end
10857
+
10710
10858
  # OfflineIsolatedInstances请求参数结构体
10711
10859
  class OfflineIsolatedInstancesRequest < TencentCloud::Common::AbstractModel
10712
10860
  # @param InstanceIds: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
@@ -11527,6 +11675,46 @@ module TencentCloud
11527
11675
  end
11528
11676
  end
11529
11677
 
11678
+ # 集群版 RW 节点的配置。
11679
+ class ReadWriteNode < TencentCloud::Common::AbstractModel
11680
+ # @param Zone: RW 节点所在可用区。
11681
+ # @type Zone: String
11682
+ # @param NodeId: 升级集群版实例时,如果要调整只读节点可用区,需要指定节点id。
11683
+ # @type NodeId: String
11684
+
11685
+ attr_accessor :Zone, :NodeId
11686
+
11687
+ def initialize(zone=nil, nodeid=nil)
11688
+ @Zone = zone
11689
+ @NodeId = nodeid
11690
+ end
11691
+
11692
+ def deserialize(params)
11693
+ @Zone = params['Zone']
11694
+ @NodeId = params['NodeId']
11695
+ end
11696
+ end
11697
+
11698
+ # 集群版的 RO 节点配置。
11699
+ class ReadonlyNode < TencentCloud::Common::AbstractModel
11700
+ # @param IsRandomZone: 是否分布在随机可用区。传入YES表示随机可用区。否则使用Zone指定的可用区。
11701
+ # @type IsRandomZone: String
11702
+ # @param Zone: 指定该节点分布在哪个可用区。
11703
+ # @type Zone: String
11704
+
11705
+ attr_accessor :IsRandomZone, :Zone
11706
+
11707
+ def initialize(israndomzone=nil, zone=nil)
11708
+ @IsRandomZone = israndomzone
11709
+ @Zone = zone
11710
+ end
11711
+
11712
+ def deserialize(params)
11713
+ @IsRandomZone = params['IsRandomZone']
11714
+ @Zone = params['Zone']
11715
+ end
11716
+ end
11717
+
11530
11718
  # ReleaseIsolatedDBInstances请求参数结构体
11531
11719
  class ReleaseIsolatedDBInstancesRequest < TencentCloud::Common::AbstractModel
11532
11720
  # @param InstanceIds: 实例 ID 数组,单个实例 ID 格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.847
4
+ version: 3.0.849
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-19 00:00:00.000000000 Z
11
+ date: 2024-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/tencentcloud-sdk-cdb.rb
37
36
  - lib/v20170320/models.rb
38
37
  - lib/v20170320/client.rb
38
+ - lib/tencentcloud-sdk-cdb.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: