tencentcloud-sdk-cdb 3.0.801 → 3.0.802

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: 918b807275dbfe9d6bb56e117445ddda5ea4b58c
4
- data.tar.gz: 407a85db483bc7020677fd40228d7fb04bf891f1
3
+ metadata.gz: 7f068dee48415d4d7361e1270131cf5cac1a07b9
4
+ data.tar.gz: 7b565d3b3f99a83eed3ef53f5542d2ee12d3a659
5
5
  SHA512:
6
- metadata.gz: 1c687e29b77686ef18e4435cbfdad0fc29ae31e09776e9941ff1bdac0611f712599907740324fb8309ad8ca5b125b8005e1498205bd9eaeff97d42d26bbd7f05
7
- data.tar.gz: 056526f1e2781ae07ac01a854ddf8d26217a1c2ef8eae0b51a9aec333acbd63597a2f25c6863c27df8aebe25a62d341ae04ddce7e51f1b3b188c31a4e72bf94c
6
+ metadata.gz: b2183ce84ce254433e285b19acbdd1488d2ccf632383ade186d1ed3daf3cd125fabafad9849d2e582f95130b08c7aac43d9f69c32bccf90aeb636213fa51c356
7
+ data.tar.gz: b8f291f1a64feb92693b1a7aed1dd86f04e3c1ffa12b997475c626561c46aafb8048416c490426f31510456c0bf1df7823f87944eae2db3858fcc2511eb18b52
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.801
1
+ 3.0.802
@@ -173,6 +173,30 @@ module TencentCloud
173
173
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
174
  end
175
175
 
176
+ # 高可用实例一键迁移到集群版校验
177
+
178
+ # @param request: Request instance for CheckMigrateCluster.
179
+ # @type request: :class:`Tencentcloud::cdb::V20170320::CheckMigrateClusterRequest`
180
+ # @rtype: :class:`Tencentcloud::cdb::V20170320::CheckMigrateClusterResponse`
181
+ def CheckMigrateCluster(request)
182
+ body = send_request('CheckMigrateCluster', request.serialize)
183
+ response = JSON.parse(body)
184
+ if response['Response'].key?('Error') == false
185
+ model = CheckMigrateClusterResponse.new
186
+ model.deserialize(response['Response'])
187
+ model
188
+ else
189
+ code = response['Response']['Error']['Code']
190
+ message = response['Response']['Error']['Message']
191
+ reqid = response['Response']['RequestId']
192
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
193
+ end
194
+ rescue TencentCloud::Common::TencentCloudSDKException => e
195
+ raise e
196
+ rescue StandardError => e
197
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
198
+ end
199
+
176
200
  # 实例关闭审计服务
177
201
 
178
202
  # @param request: Request instance for CloseAuditService.
@@ -1464,6 +1488,30 @@ module TencentCloud
1464
1488
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1465
1489
  end
1466
1490
 
1491
+ # 本接口(DescribeClusterInfo)用于查询集群版实例信息。
1492
+
1493
+ # @param request: Request instance for DescribeClusterInfo.
1494
+ # @type request: :class:`Tencentcloud::cdb::V20170320::DescribeClusterInfoRequest`
1495
+ # @rtype: :class:`Tencentcloud::cdb::V20170320::DescribeClusterInfoResponse`
1496
+ def DescribeClusterInfo(request)
1497
+ body = send_request('DescribeClusterInfo', request.serialize)
1498
+ response = JSON.parse(body)
1499
+ if response['Response'].key?('Error') == false
1500
+ model = DescribeClusterInfoResponse.new
1501
+ model.deserialize(response['Response'])
1502
+ model
1503
+ else
1504
+ code = response['Response']['Error']['Code']
1505
+ message = response['Response']['Error']['Message']
1506
+ reqid = response['Response']['RequestId']
1507
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1508
+ end
1509
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1510
+ raise e
1511
+ rescue StandardError => e
1512
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1513
+ end
1514
+
1467
1515
  # 通过该 API 可以查询实例的 CPU 弹性扩容策略
1468
1516
 
1469
1517
  # @param request: Request instance for DescribeCpuExpandStrategy.
@@ -141,6 +141,46 @@ module TencentCloud
141
141
  end
142
142
  end
143
143
 
144
+ # 实例地址信息
145
+ class AddressInfo < TencentCloud::Common::AbstractModel
146
+ # @param ResourceId: 地址的资源id标识。
147
+ # @type ResourceId: String
148
+ # @param UniqVpcId: 地址所在的vpc。
149
+ # @type UniqVpcId: String
150
+ # @param UniqSubnetId: 地址所在的子网。
151
+ # @type UniqSubnetId: String
152
+ # @param Vip: 地址的vip。
153
+ # @type Vip: String
154
+ # @param VPort: 地址的端口。
155
+ # @type VPort: Integer
156
+ # @param WanDomain: 外网地址域名。
157
+ # @type WanDomain: String
158
+ # @param WanPort: 外网地址端口。
159
+ # @type WanPort: Integer
160
+
161
+ attr_accessor :ResourceId, :UniqVpcId, :UniqSubnetId, :Vip, :VPort, :WanDomain, :WanPort
162
+
163
+ def initialize(resourceid=nil, uniqvpcid=nil, uniqsubnetid=nil, vip=nil, vport=nil, wandomain=nil, wanport=nil)
164
+ @ResourceId = resourceid
165
+ @UniqVpcId = uniqvpcid
166
+ @UniqSubnetId = uniqsubnetid
167
+ @Vip = vip
168
+ @VPort = vport
169
+ @WanDomain = wandomain
170
+ @WanPort = wanport
171
+ end
172
+
173
+ def deserialize(params)
174
+ @ResourceId = params['ResourceId']
175
+ @UniqVpcId = params['UniqVpcId']
176
+ @UniqSubnetId = params['UniqSubnetId']
177
+ @Vip = params['Vip']
178
+ @VPort = params['VPort']
179
+ @WanDomain = params['WanDomain']
180
+ @WanPort = params['WanPort']
181
+ end
182
+ end
183
+
144
184
  # AdjustCdbProxyAddress请求参数结构体
145
185
  class AdjustCdbProxyAddressRequest < TencentCloud::Common::AbstractModel
146
186
  # @param ProxyGroupId: 代理组ID
@@ -1636,6 +1676,33 @@ module TencentCloud
1636
1676
  end
1637
1677
  end
1638
1678
 
1679
+ # CheckMigrateCluster请求参数结构体
1680
+ class CheckMigrateClusterRequest < TencentCloud::Common::AbstractModel
1681
+
1682
+
1683
+ def initialize()
1684
+ end
1685
+
1686
+ def deserialize(params)
1687
+ end
1688
+ end
1689
+
1690
+ # CheckMigrateCluster返回参数结构体
1691
+ class CheckMigrateClusterResponse < TencentCloud::Common::AbstractModel
1692
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1693
+ # @type RequestId: String
1694
+
1695
+ attr_accessor :RequestId
1696
+
1697
+ def initialize(requestid=nil)
1698
+ @RequestId = requestid
1699
+ end
1700
+
1701
+ def deserialize(params)
1702
+ @RequestId = params['RequestId']
1703
+ end
1704
+ end
1705
+
1639
1706
  # 克隆任务记录。
1640
1707
  class CloneItem < TencentCloud::Common::AbstractModel
1641
1708
  # @param SrcInstanceId: 克隆任务的源实例Id。
@@ -1832,6 +1899,39 @@ module TencentCloud
1832
1899
  end
1833
1900
  end
1834
1901
 
1902
+ # 集群版实例节点信息
1903
+ class ClusterNodeInfo < TencentCloud::Common::AbstractModel
1904
+ # @param NodeId: 节点id。
1905
+ # @type NodeId: String
1906
+ # @param Role: 节点的角色。
1907
+ # @type Role: String
1908
+ # @param Zone: 节点所在可用区。
1909
+ # @type Zone: String
1910
+ # @param Weight: 节点的权重
1911
+ # @type Weight: Integer
1912
+ # @param Status: 节点状态。
1913
+ # 注意:此字段可能返回 null,表示取不到有效值。
1914
+ # @type Status: String
1915
+
1916
+ attr_accessor :NodeId, :Role, :Zone, :Weight, :Status
1917
+
1918
+ def initialize(nodeid=nil, role=nil, zone=nil, weight=nil, status=nil)
1919
+ @NodeId = nodeid
1920
+ @Role = role
1921
+ @Zone = zone
1922
+ @Weight = weight
1923
+ @Status = status
1924
+ end
1925
+
1926
+ def deserialize(params)
1927
+ @NodeId = params['NodeId']
1928
+ @Role = params['Role']
1929
+ @Zone = params['Zone']
1930
+ @Weight = params['Weight']
1931
+ @Status = params['Status']
1932
+ end
1933
+ end
1934
+
1835
1935
  # 列权限信息
1836
1936
  class ColumnPrivilege < TencentCloud::Common::AbstractModel
1837
1937
  # @param Database: 数据库名
@@ -5172,6 +5272,79 @@ module TencentCloud
5172
5272
  end
5173
5273
  end
5174
5274
 
5275
+ # DescribeClusterInfo请求参数结构体
5276
+ class DescribeClusterInfoRequest < TencentCloud::Common::AbstractModel
5277
+ # @param InstanceId: 实例id。
5278
+ # @type InstanceId: String
5279
+
5280
+ attr_accessor :InstanceId
5281
+
5282
+ def initialize(instanceid=nil)
5283
+ @InstanceId = instanceid
5284
+ end
5285
+
5286
+ def deserialize(params)
5287
+ @InstanceId = params['InstanceId']
5288
+ end
5289
+ end
5290
+
5291
+ # DescribeClusterInfo返回参数结构体
5292
+ class DescribeClusterInfoResponse < TencentCloud::Common::AbstractModel
5293
+ # @param ClusterName: 实例名称。
5294
+ # @type ClusterName: String
5295
+ # @param ReadWriteAddress: 集群读写地址信息。
5296
+ # @type ReadWriteAddress: :class:`Tencentcloud::Cdb.v20170320.models.AddressInfo`
5297
+ # @param ReadOnlyAddress: 集群只读地址信息。
5298
+ # @type ReadOnlyAddress: Array
5299
+ # @param NodeList: 集群节点列表信息。
5300
+ # @type NodeList: Array
5301
+ # @param ReadonlyLimit: 只读空间保护阈值,单位GB
5302
+ # @type ReadonlyLimit: Integer
5303
+ # @param NodeCount: 实例节点数。
5304
+ # @type NodeCount: Integer
5305
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5306
+ # @type RequestId: String
5307
+
5308
+ attr_accessor :ClusterName, :ReadWriteAddress, :ReadOnlyAddress, :NodeList, :ReadonlyLimit, :NodeCount, :RequestId
5309
+
5310
+ def initialize(clustername=nil, readwriteaddress=nil, readonlyaddress=nil, nodelist=nil, readonlylimit=nil, nodecount=nil, requestid=nil)
5311
+ @ClusterName = clustername
5312
+ @ReadWriteAddress = readwriteaddress
5313
+ @ReadOnlyAddress = readonlyaddress
5314
+ @NodeList = nodelist
5315
+ @ReadonlyLimit = readonlylimit
5316
+ @NodeCount = nodecount
5317
+ @RequestId = requestid
5318
+ end
5319
+
5320
+ def deserialize(params)
5321
+ @ClusterName = params['ClusterName']
5322
+ unless params['ReadWriteAddress'].nil?
5323
+ @ReadWriteAddress = AddressInfo.new
5324
+ @ReadWriteAddress.deserialize(params['ReadWriteAddress'])
5325
+ end
5326
+ unless params['ReadOnlyAddress'].nil?
5327
+ @ReadOnlyAddress = []
5328
+ params['ReadOnlyAddress'].each do |i|
5329
+ addressinfo_tmp = AddressInfo.new
5330
+ addressinfo_tmp.deserialize(i)
5331
+ @ReadOnlyAddress << addressinfo_tmp
5332
+ end
5333
+ end
5334
+ unless params['NodeList'].nil?
5335
+ @NodeList = []
5336
+ params['NodeList'].each do |i|
5337
+ clusternodeinfo_tmp = ClusterNodeInfo.new
5338
+ clusternodeinfo_tmp.deserialize(i)
5339
+ @NodeList << clusternodeinfo_tmp
5340
+ end
5341
+ end
5342
+ @ReadonlyLimit = params['ReadonlyLimit']
5343
+ @NodeCount = params['NodeCount']
5344
+ @RequestId = params['RequestId']
5345
+ end
5346
+ end
5347
+
5175
5348
  # DescribeCpuExpandStrategy请求参数结构体
5176
5349
  class DescribeCpuExpandStrategyRequest < TencentCloud::Common::AbstractModel
5177
5350
  # @param InstanceId: 实例 ID 。
@@ -10687,8 +10860,8 @@ module TencentCloud
10687
10860
 
10688
10861
  attr_accessor :InstanceId, :ParamName, :OldValue, :NewValue, :IsSucess, :ModifyTime, :IsSuccess
10689
10862
  extend Gem::Deprecate
10690
- deprecate :IsSucess, :none, 2024, 3
10691
- deprecate :IsSucess=, :none, 2024, 3
10863
+ deprecate :IsSucess, :none, 2024, 4
10864
+ deprecate :IsSucess=, :none, 2024, 4
10692
10865
 
10693
10866
  def initialize(instanceid=nil, paramname=nil, oldvalue=nil, newvalue=nil, issucess=nil, modifytime=nil, issuccess=nil)
10694
10867
  @InstanceId = 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.801
4
+ version: 3.0.802
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-04-10 00:00:00.000000000 Z
11
+ date: 2024-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common