tencentcloud-sdk-cynosdb 3.0.956 → 3.0.957

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 50e7ace448a40f631f300f6045d473eae0453b02
4
- data.tar.gz: 7c79bafa7dcde72ea3fbaab9363e08a4313e2727
3
+ metadata.gz: c83c2198fa1dce36383c53a613d152a33318564f
4
+ data.tar.gz: 3bff59b317013cb5741fc38662ae42dcadc7fcd3
5
5
  SHA512:
6
- metadata.gz: 6d395e4cbc7131531cdf042fd871c660e3c476182a11270bcc85c20e80d1889f9e7830a8de1351196c10f3192b334bb82bafe766fad9d257a014fe9311b59fe3
7
- data.tar.gz: 030760b60708079bfd0350b41c5b4d17ff9b204d3ebffe99f8bd7852839bd7958e5beeafedaefa00705430621c982697075a497470ee7aab0de27e35445ef6b6
6
+ metadata.gz: b5ce5654f4f8f94c32d58f783f4aff28f7bb9a11dd3f224161cac36aa7cd781cf4d1a53284a37d348ad2a148ad76abd9408d3b3c7ef05ee25e6a0458b95a1e33
7
+ data.tar.gz: 2364ba0fc4c9d12277df613a0ba1b4677c440ed8955521bc43b95aec9dbe8248cdc4bb56369d2bb821f62f9efe57a2a64900d7b4068c5cb7b8b16fa7c06dd25e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.956
1
+ 3.0.957
@@ -1901,6 +1901,30 @@ module TencentCloud
1901
1901
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1902
1902
  end
1903
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
+
1904
1928
  # 查询serverless策略
1905
1929
 
1906
1930
  # @param request: Request instance for DescribeServerlessStrategy.
@@ -7464,6 +7464,49 @@ module TencentCloud
7464
7464
  end
7465
7465
  end
7466
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
+
7467
7510
  # DescribeServerlessStrategy请求参数结构体
7468
7511
  class DescribeServerlessStrategyRequest < TencentCloud::Common::AbstractModel
7469
7512
  # @param ClusterId: serverless集群id
@@ -10568,14 +10611,10 @@ module TencentCloud
10568
10611
  # @type MinRoCount: Integer
10569
10612
  # @param MaxRoCount: 只读节点最大个数
10570
10613
  # @type MaxRoCount: Integer
10571
- # @param AutoScaleUp: 集群是否允许扩容,可选范围<li>yes</li><li>no</li>
10572
- # @type AutoScaleUp: String
10573
- # @param AutoScaleDown: 集群是否允许缩容,可选范围<li>yes</li><li>no</li>
10574
- # @type AutoScaleDown: String
10575
10614
 
10576
- 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
10577
10616
 
10578
- 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)
10579
10618
  @ClusterId = clusterid
10580
10619
  @AutoPause = autopause
10581
10620
  @AutoPauseDelay = autopausedelay
@@ -10587,8 +10626,6 @@ module TencentCloud
10587
10626
  @MaxRoCpu = maxrocpu
10588
10627
  @MinRoCount = minrocount
10589
10628
  @MaxRoCount = maxrocount
10590
- @AutoScaleUp = autoscaleup
10591
- @AutoScaleDown = autoscaledown
10592
10629
  end
10593
10630
 
10594
10631
  def deserialize(params)
@@ -10603,8 +10640,6 @@ module TencentCloud
10603
10640
  @MaxRoCpu = params['MaxRoCpu']
10604
10641
  @MinRoCount = params['MinRoCount']
10605
10642
  @MaxRoCount = params['MaxRoCount']
10606
- @AutoScaleUp = params['AutoScaleUp']
10607
- @AutoScaleDown = params['AutoScaleDown']
10608
10643
  end
10609
10644
  end
10610
10645
 
@@ -13667,6 +13702,93 @@ module TencentCloud
13667
13702
  end
13668
13703
  end
13669
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
+
13670
13792
  # SetRenewFlag请求参数结构体
13671
13793
  class SetRenewFlagRequest < TencentCloud::Common::AbstractModel
13672
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.956
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-06 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