tencentcloud-sdk-cynosdb 3.0.955 → 3.0.957

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: 8e2d1e5fbe376d9b972e0f9f795d4be13b84d5bc
4
- data.tar.gz: 6d0e25826f6b23a6a9bc644f2cf758dd7a7cbd7c
3
+ metadata.gz: c83c2198fa1dce36383c53a613d152a33318564f
4
+ data.tar.gz: 3bff59b317013cb5741fc38662ae42dcadc7fcd3
5
5
  SHA512:
6
- metadata.gz: 5894f6f4d9030a0e307e785a65baa5c1d203860d00e4d90ece3e6b94e2773142ace2fcd498c86d90406a3e35182658a449eb0dc6be43cd1d7ca1bf4fe85e0d2a
7
- data.tar.gz: 884f7fdbbd8d4b0e50eceed4c2c40e02ca964ba7f832cc2b54e95b18ef8ef4a77e27f051d27ec1868d7781a27530b16ee6fc126e24d4a937091263d0e204ebc4
6
+ metadata.gz: b5ce5654f4f8f94c32d58f783f4aff28f7bb9a11dd3f224161cac36aa7cd781cf4d1a53284a37d348ad2a148ad76abd9408d3b3c7ef05ee25e6a0458b95a1e33
7
+ data.tar.gz: 2364ba0fc4c9d12277df613a0ba1b4677c440ed8955521bc43b95aec9dbe8248cdc4bb56369d2bb821f62f9efe57a2a64900d7b4068c5cb7b8b16fa7c06dd25e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.955
1
+ 3.0.957
@@ -221,6 +221,30 @@ module TencentCloud
221
221
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
222
  end
223
223
 
224
+ # 关闭数据库代理连接地址
225
+
226
+ # @param request: Request instance for CloseProxyEndPoint.
227
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::CloseProxyEndPointRequest`
228
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::CloseProxyEndPointResponse`
229
+ def CloseProxyEndPoint(request)
230
+ body = send_request('CloseProxyEndPoint', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = CloseProxyEndPointResponse.new
234
+ model.deserialize(response['Response'])
235
+ model
236
+ else
237
+ code = response['Response']['Error']['Code']
238
+ message = response['Response']['Error']['Message']
239
+ reqid = response['Response']['RequestId']
240
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
241
+ end
242
+ rescue TencentCloud::Common::TencentCloudSDKException => e
243
+ raise e
244
+ rescue StandardError => e
245
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
+ end
247
+
224
248
  # 本接口(CloseWan)用于关闭外网。
225
249
 
226
250
  # @param request: Request instance for CloseWan.
@@ -1541,6 +1565,30 @@ module TencentCloud
1541
1565
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1542
1566
  end
1543
1567
 
1568
+ # 本接口(DescribeInstancesWithinSameCluster)用于查询同一集群下实例列表
1569
+
1570
+ # @param request: Request instance for DescribeInstancesWithinSameCluster.
1571
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeInstancesWithinSameClusterRequest`
1572
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeInstancesWithinSameClusterResponse`
1573
+ def DescribeInstancesWithinSameCluster(request)
1574
+ body = send_request('DescribeInstancesWithinSameCluster', request.serialize)
1575
+ response = JSON.parse(body)
1576
+ if response['Response'].key?('Error') == false
1577
+ model = DescribeInstancesWithinSameClusterResponse.new
1578
+ model.deserialize(response['Response'])
1579
+ model
1580
+ else
1581
+ code = response['Response']['Error']['Code']
1582
+ message = response['Response']['Error']['Message']
1583
+ reqid = response['Response']['RequestId']
1584
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1585
+ end
1586
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1587
+ raise e
1588
+ rescue StandardError => e
1589
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1590
+ end
1591
+
1544
1592
  # 本接口(DescribeIsolatedInstances)用于查询回收站实例列表。
1545
1593
 
1546
1594
  # @param request: Request instance for DescribeIsolatedInstances.
@@ -1853,6 +1901,30 @@ module TencentCloud
1853
1901
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1854
1902
  end
1855
1903
 
1904
+ # 查询Serverless实例可选规格
1905
+
1906
+ # @param request: Request instance for DescribeServerlessInstanceSpecs.
1907
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeServerlessInstanceSpecsRequest`
1908
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeServerlessInstanceSpecsResponse`
1909
+ def DescribeServerlessInstanceSpecs(request)
1910
+ body = send_request('DescribeServerlessInstanceSpecs', request.serialize)
1911
+ response = JSON.parse(body)
1912
+ if response['Response'].key?('Error') == false
1913
+ model = DescribeServerlessInstanceSpecsResponse.new
1914
+ model.deserialize(response['Response'])
1915
+ model
1916
+ else
1917
+ code = response['Response']['Error']['Code']
1918
+ message = response['Response']['Error']['Message']
1919
+ reqid = response['Response']['RequestId']
1920
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1921
+ end
1922
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1923
+ raise e
1924
+ rescue StandardError => e
1925
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1926
+ end
1927
+
1856
1928
  # 查询serverless策略
1857
1929
 
1858
1930
  # @param request: Request instance for DescribeServerlessStrategy.
@@ -1378,6 +1378,50 @@ module TencentCloud
1378
1378
  end
1379
1379
  end
1380
1380
 
1381
+ # CloseProxyEndPoint请求参数结构体
1382
+ class CloseProxyEndPointRequest < TencentCloud::Common::AbstractModel
1383
+ # @param ClusterId: 集群ID
1384
+ # @type ClusterId: String
1385
+ # @param ProxyGroupId: 数据库代理组ID
1386
+ # @type ProxyGroupId: String
1387
+
1388
+ attr_accessor :ClusterId, :ProxyGroupId
1389
+
1390
+ def initialize(clusterid=nil, proxygroupid=nil)
1391
+ @ClusterId = clusterid
1392
+ @ProxyGroupId = proxygroupid
1393
+ end
1394
+
1395
+ def deserialize(params)
1396
+ @ClusterId = params['ClusterId']
1397
+ @ProxyGroupId = params['ProxyGroupId']
1398
+ end
1399
+ end
1400
+
1401
+ # CloseProxyEndPoint返回参数结构体
1402
+ class CloseProxyEndPointResponse < TencentCloud::Common::AbstractModel
1403
+ # @param FlowId: 异步流程ID
1404
+ # @type FlowId: Integer
1405
+ # @param TaskId: 异步任务ID
1406
+ # @type TaskId: Integer
1407
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1408
+ # @type RequestId: String
1409
+
1410
+ attr_accessor :FlowId, :TaskId, :RequestId
1411
+
1412
+ def initialize(flowid=nil, taskid=nil, requestid=nil)
1413
+ @FlowId = flowid
1414
+ @TaskId = taskid
1415
+ @RequestId = requestid
1416
+ end
1417
+
1418
+ def deserialize(params)
1419
+ @FlowId = params['FlowId']
1420
+ @TaskId = params['TaskId']
1421
+ @RequestId = params['RequestId']
1422
+ end
1423
+ end
1424
+
1381
1425
  # CloseProxy请求参数结构体
1382
1426
  class CloseProxyRequest < TencentCloud::Common::AbstractModel
1383
1427
  # @param ClusterId: 集群ID
@@ -6503,6 +6547,50 @@ module TencentCloud
6503
6547
  end
6504
6548
  end
6505
6549
 
6550
+ # DescribeInstancesWithinSameCluster请求参数结构体
6551
+ class DescribeInstancesWithinSameClusterRequest < TencentCloud::Common::AbstractModel
6552
+ # @param UniqVpcId: vpcId
6553
+ # @type UniqVpcId: String
6554
+ # @param Vip: vip
6555
+ # @type Vip: String
6556
+
6557
+ attr_accessor :UniqVpcId, :Vip
6558
+
6559
+ def initialize(uniqvpcid=nil, vip=nil)
6560
+ @UniqVpcId = uniqvpcid
6561
+ @Vip = vip
6562
+ end
6563
+
6564
+ def deserialize(params)
6565
+ @UniqVpcId = params['UniqVpcId']
6566
+ @Vip = params['Vip']
6567
+ end
6568
+ end
6569
+
6570
+ # DescribeInstancesWithinSameCluster返回参数结构体
6571
+ class DescribeInstancesWithinSameClusterResponse < TencentCloud::Common::AbstractModel
6572
+ # @param TotalCount: 实例个数
6573
+ # @type TotalCount: Integer
6574
+ # @param InstanceIds: 实例ID列表
6575
+ # @type InstanceIds: Array
6576
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6577
+ # @type RequestId: String
6578
+
6579
+ attr_accessor :TotalCount, :InstanceIds, :RequestId
6580
+
6581
+ def initialize(totalcount=nil, instanceids=nil, requestid=nil)
6582
+ @TotalCount = totalcount
6583
+ @InstanceIds = instanceids
6584
+ @RequestId = requestid
6585
+ end
6586
+
6587
+ def deserialize(params)
6588
+ @TotalCount = params['TotalCount']
6589
+ @InstanceIds = params['InstanceIds']
6590
+ @RequestId = params['RequestId']
6591
+ end
6592
+ end
6593
+
6506
6594
  # DescribeIsolatedInstances请求参数结构体
6507
6595
  class DescribeIsolatedInstancesRequest < TencentCloud::Common::AbstractModel
6508
6596
  # @param Limit: 返回数量,默认为 20,最大值为 100
@@ -7376,6 +7464,49 @@ module TencentCloud
7376
7464
  end
7377
7465
  end
7378
7466
 
7467
+ # DescribeServerlessInstanceSpecs请求参数结构体
7468
+ class DescribeServerlessInstanceSpecsRequest < TencentCloud::Common::AbstractModel
7469
+ # @param Zone: 可用区
7470
+ # @type Zone: String
7471
+
7472
+ attr_accessor :Zone
7473
+
7474
+ def initialize(zone=nil)
7475
+ @Zone = zone
7476
+ end
7477
+
7478
+ def deserialize(params)
7479
+ @Zone = params['Zone']
7480
+ end
7481
+ end
7482
+
7483
+ # DescribeServerlessInstanceSpecs返回参数结构体
7484
+ class DescribeServerlessInstanceSpecsResponse < TencentCloud::Common::AbstractModel
7485
+ # @param Specs: Serverless实例可选规格
7486
+ # @type Specs: Array
7487
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7488
+ # @type RequestId: String
7489
+
7490
+ attr_accessor :Specs, :RequestId
7491
+
7492
+ def initialize(specs=nil, requestid=nil)
7493
+ @Specs = specs
7494
+ @RequestId = requestid
7495
+ end
7496
+
7497
+ def deserialize(params)
7498
+ unless params['Specs'].nil?
7499
+ @Specs = []
7500
+ params['Specs'].each do |i|
7501
+ serverlessspec_tmp = ServerlessSpec.new
7502
+ serverlessspec_tmp.deserialize(i)
7503
+ @Specs << serverlessspec_tmp
7504
+ end
7505
+ end
7506
+ @RequestId = params['RequestId']
7507
+ end
7508
+ end
7509
+
7379
7510
  # DescribeServerlessStrategy请求参数结构体
7380
7511
  class DescribeServerlessStrategyRequest < TencentCloud::Common::AbstractModel
7381
7512
  # @param ClusterId: serverless集群id
@@ -10480,14 +10611,10 @@ module TencentCloud
10480
10611
  # @type MinRoCount: Integer
10481
10612
  # @param MaxRoCount: 只读节点最大个数
10482
10613
  # @type MaxRoCount: Integer
10483
- # @param AutoScaleUp: 集群是否允许扩容,可选范围<li>yes</li><li>no</li>
10484
- # @type AutoScaleUp: String
10485
- # @param AutoScaleDown: 集群是否允许缩容,可选范围<li>yes</li><li>no</li>
10486
- # @type AutoScaleDown: String
10487
10614
 
10488
- attr_accessor :ClusterId, :AutoPause, :AutoPauseDelay, :AutoScaleUpDelay, :AutoScaleDownDelay, :MinCpu, :MaxCpu, :MinRoCpu, :MaxRoCpu, :MinRoCount, :MaxRoCount, :AutoScaleUp, :AutoScaleDown
10615
+ attr_accessor :ClusterId, :AutoPause, :AutoPauseDelay, :AutoScaleUpDelay, :AutoScaleDownDelay, :MinCpu, :MaxCpu, :MinRoCpu, :MaxRoCpu, :MinRoCount, :MaxRoCount
10489
10616
 
10490
- def initialize(clusterid=nil, autopause=nil, autopausedelay=nil, autoscaleupdelay=nil, autoscaledowndelay=nil, mincpu=nil, maxcpu=nil, minrocpu=nil, maxrocpu=nil, minrocount=nil, maxrocount=nil, autoscaleup=nil, autoscaledown=nil)
10617
+ def initialize(clusterid=nil, autopause=nil, autopausedelay=nil, autoscaleupdelay=nil, autoscaledowndelay=nil, mincpu=nil, maxcpu=nil, minrocpu=nil, maxrocpu=nil, minrocount=nil, maxrocount=nil)
10491
10618
  @ClusterId = clusterid
10492
10619
  @AutoPause = autopause
10493
10620
  @AutoPauseDelay = autopausedelay
@@ -10499,8 +10626,6 @@ module TencentCloud
10499
10626
  @MaxRoCpu = maxrocpu
10500
10627
  @MinRoCount = minrocount
10501
10628
  @MaxRoCount = maxrocount
10502
- @AutoScaleUp = autoscaleup
10503
- @AutoScaleDown = autoscaledown
10504
10629
  end
10505
10630
 
10506
10631
  def deserialize(params)
@@ -10515,8 +10640,6 @@ module TencentCloud
10515
10640
  @MaxRoCpu = params['MaxRoCpu']
10516
10641
  @MinRoCount = params['MinRoCount']
10517
10642
  @MaxRoCount = params['MaxRoCount']
10518
- @AutoScaleUp = params['AutoScaleUp']
10519
- @AutoScaleDown = params['AutoScaleDown']
10520
10643
  end
10521
10644
  end
10522
10645
 
@@ -13579,6 +13702,93 @@ module TencentCloud
13579
13702
  end
13580
13703
  end
13581
13704
 
13705
+ # serverless规格
13706
+ class ServerlessSpec < TencentCloud::Common::AbstractModel
13707
+ # @param MinCpu: cpu最小值
13708
+ # @type MinCpu: Float
13709
+ # @param MaxCpu: cpu最大值
13710
+ # @type MaxCpu: Float
13711
+ # @param MaxStorageSize: 最大存储空间
13712
+ # @type MaxStorageSize: Integer
13713
+ # @param IsDefault: 是否为默认规格
13714
+ # @type IsDefault: Integer
13715
+ # @param HasStock: 是否有库存
13716
+ # @type HasStock: Boolean
13717
+ # @param StockCount: 库存数量
13718
+ # @type StockCount: Integer
13719
+ # @param ZoneStockInfos: 可用区库存信息
13720
+ # 注意:此字段可能返回 null,表示取不到有效值。
13721
+ # @type ZoneStockInfos: Array
13722
+
13723
+ attr_accessor :MinCpu, :MaxCpu, :MaxStorageSize, :IsDefault, :HasStock, :StockCount, :ZoneStockInfos
13724
+
13725
+ def initialize(mincpu=nil, maxcpu=nil, maxstoragesize=nil, isdefault=nil, hasstock=nil, stockcount=nil, zonestockinfos=nil)
13726
+ @MinCpu = mincpu
13727
+ @MaxCpu = maxcpu
13728
+ @MaxStorageSize = maxstoragesize
13729
+ @IsDefault = isdefault
13730
+ @HasStock = hasstock
13731
+ @StockCount = stockcount
13732
+ @ZoneStockInfos = zonestockinfos
13733
+ end
13734
+
13735
+ def deserialize(params)
13736
+ @MinCpu = params['MinCpu']
13737
+ @MaxCpu = params['MaxCpu']
13738
+ @MaxStorageSize = params['MaxStorageSize']
13739
+ @IsDefault = params['IsDefault']
13740
+ @HasStock = params['HasStock']
13741
+ @StockCount = params['StockCount']
13742
+ unless params['ZoneStockInfos'].nil?
13743
+ @ZoneStockInfos = []
13744
+ params['ZoneStockInfos'].each do |i|
13745
+ serverlesszonestockinfo_tmp = ServerlessZoneStockInfo.new
13746
+ serverlesszonestockinfo_tmp.deserialize(i)
13747
+ @ZoneStockInfos << serverlesszonestockinfo_tmp
13748
+ end
13749
+ end
13750
+ end
13751
+ end
13752
+
13753
+ # serverless类型的可用区库存信息
13754
+ class ServerlessZoneStockInfo < TencentCloud::Common::AbstractModel
13755
+ # @param Zone: 可用区
13756
+ # 注意:此字段可能返回 null,表示取不到有效值。
13757
+ # @type Zone: String
13758
+ # @param StockCount: 存储量
13759
+ # 注意:此字段可能返回 null,表示取不到有效值。
13760
+ # @type StockCount: Integer
13761
+ # @param HasStock: 是否包含库存
13762
+ # 注意:此字段可能返回 null,表示取不到有效值。
13763
+ # @type HasStock: Boolean
13764
+ # @param SlaveZoneStockInfos: 从可用区库存信息
13765
+ # 注意:此字段可能返回 null,表示取不到有效值。
13766
+ # @type SlaveZoneStockInfos: Array
13767
+
13768
+ attr_accessor :Zone, :StockCount, :HasStock, :SlaveZoneStockInfos
13769
+
13770
+ def initialize(zone=nil, stockcount=nil, hasstock=nil, slavezonestockinfos=nil)
13771
+ @Zone = zone
13772
+ @StockCount = stockcount
13773
+ @HasStock = hasstock
13774
+ @SlaveZoneStockInfos = slavezonestockinfos
13775
+ end
13776
+
13777
+ def deserialize(params)
13778
+ @Zone = params['Zone']
13779
+ @StockCount = params['StockCount']
13780
+ @HasStock = params['HasStock']
13781
+ unless params['SlaveZoneStockInfos'].nil?
13782
+ @SlaveZoneStockInfos = []
13783
+ params['SlaveZoneStockInfos'].each do |i|
13784
+ slavezonestockinfo_tmp = SlaveZoneStockInfo.new
13785
+ slavezonestockinfo_tmp.deserialize(i)
13786
+ @SlaveZoneStockInfos << slavezonestockinfo_tmp
13787
+ end
13788
+ end
13789
+ end
13790
+ end
13791
+
13582
13792
  # SetRenewFlag请求参数结构体
13583
13793
  class SetRenewFlagRequest < TencentCloud::Common::AbstractModel
13584
13794
  # @param ResourceIds: 需操作的集群ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cynosdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.955
4
+ version: 3.0.957
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-12-04 00:00:00.000000000 Z
11
+ date: 2024-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common