tencentcloud-sdk-cdb 3.0.678 → 3.0.679

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20170320/models.rb +52 -3
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8d6d7723c4be5c97c46eb6f386f2f18b3809ca30
4
- data.tar.gz: 9d193add670234e13b027132938f605253a480f4
3
+ metadata.gz: fc25fd38ea70e2f9d49c8cfdb414285b7fa01bf2
4
+ data.tar.gz: 4a96534c0460e1233a914a85f3fd3e8b5a8eff1c
5
5
  SHA512:
6
- metadata.gz: e59dbed3b4c199be0edc36380189a5e562a64417444409816f98da270c24191f4dcfdfa1f7163588974b2b07824789eead2d2f8e9d264cb05a4db5dd900de212
7
- data.tar.gz: f53446a3f7823077e1837ea203a4faf673b84cf0867e43dea6038219d68f256f748218197fea125d3a63fa97a04693a7b77ce1453c6be43d3ddd8a36f04910d7
6
+ metadata.gz: bd8584c6fd677b0b91ec15bdf71f8e11cd797ef0ce3d9ab3b60ef02a94ca6733d370e5e69bc169a630ae94ea7822cbd9d4b902a299f25911bd7ec4db83e6b816
7
+ data.tar.gz: 1dbd6d412a629264b9d016cafdec644a51f7a0d0b04ae3e7b0c0c9e54d57a2e0a61918db47b4d9f9eca8c193b793d2f8cc89b8287be99d3daff8427f846036cb
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.678
1
+ 3.0.679
@@ -864,6 +864,34 @@ module TencentCloud
864
864
  end
865
865
  end
866
866
 
867
+ # CPU弹性扩容的自动扩容策略
868
+ class AutoStrategy < TencentCloud::Common::AbstractModel
869
+ # @param ExpandThreshold: 自动扩容阈值,可选值70、80、90,代表CPU利用率达到70%、80%、90%时后台进行自动扩容
870
+ # @type ExpandThreshold: Integer
871
+ # @param ExpandPeriod: 自动扩容观测周期,单位s,可选值1、3、5、10、15、30。后台会按照配置的周期进行扩容判断。
872
+ # @type ExpandPeriod: Integer
873
+ # @param ShrinkThreshold: 自动缩容阈值,可选值10、20、30,代表CPU利用率达到10%、20%、30%时后台进行自动缩容
874
+ # @type ShrinkThreshold: Integer
875
+ # @param ShrinkPeriod: 自动缩容观测周期,单位s,可选值5、10、15、30。后台会按照配置的周期进行缩容判断。
876
+ # @type ShrinkPeriod: Integer
877
+
878
+ attr_accessor :ExpandThreshold, :ExpandPeriod, :ShrinkThreshold, :ShrinkPeriod
879
+
880
+ def initialize(expandthreshold=nil, expandperiod=nil, shrinkthreshold=nil, shrinkperiod=nil)
881
+ @ExpandThreshold = expandthreshold
882
+ @ExpandPeriod = expandperiod
883
+ @ShrinkThreshold = shrinkthreshold
884
+ @ShrinkPeriod = shrinkperiod
885
+ end
886
+
887
+ def deserialize(params)
888
+ @ExpandThreshold = params['ExpandThreshold']
889
+ @ExpandPeriod = params['ExpandPeriod']
890
+ @ShrinkThreshold = params['ShrinkThreshold']
891
+ @ShrinkPeriod = params['ShrinkPeriod']
892
+ end
893
+ end
894
+
867
895
  # ECDB第二个从库的配置信息,只有ECDB实例才有这个字段
868
896
  class BackupConfig < TencentCloud::Common::AbstractModel
869
897
  # @param ReplicationMode: 第二个从库复制方式,可能的返回值:async-异步,semisync-半同步
@@ -9748,8 +9776,8 @@ module TencentCloud
9748
9776
 
9749
9777
  attr_accessor :InstanceId, :ParamName, :OldValue, :NewValue, :IsSucess, :ModifyTime, :IsSuccess
9750
9778
  extend Gem::Deprecate
9751
- deprecate :IsSucess, :none, 2023, 9
9752
- deprecate :IsSucess=, :none, 2023, 9
9779
+ deprecate :IsSucess, :none, 2023, 10
9780
+ deprecate :IsSucess=, :none, 2023, 10
9753
9781
 
9754
9782
  def initialize(instanceid=nil, paramname=nil, oldvalue=nil, newvalue=nil, issucess=nil, modifytime=nil, issuccess=nil)
9755
9783
  @InstanceId = instanceid
@@ -11296,12 +11324,33 @@ module TencentCloud
11296
11324
 
11297
11325
  # StartCpuExpand请求参数结构体
11298
11326
  class StartCpuExpandRequest < TencentCloud::Common::AbstractModel
11327
+ # @param InstanceId: 实例 ID 。
11328
+ # @type InstanceId: String
11329
+ # @param Type: 扩容类型。可选值:auto:代表进行自动扩容
11330
+ # manual:代表进行手动扩容
11331
+ # @type Type: String
11332
+ # @param ExpandCpu: 手动扩容时,扩容的CPU核心数。Type 为 manual 时必传。
11333
+ # @type ExpandCpu: Integer
11334
+ # @param AutoStrategy: 自动扩容策略。Type 为 auto 时必传。
11335
+ # @type AutoStrategy: :class:`Tencentcloud::Cdb.v20170320.models.AutoStrategy`
11299
11336
 
11337
+ attr_accessor :InstanceId, :Type, :ExpandCpu, :AutoStrategy
11300
11338
 
11301
- def initialize()
11339
+ def initialize(instanceid=nil, type=nil, expandcpu=nil, autostrategy=nil)
11340
+ @InstanceId = instanceid
11341
+ @Type = type
11342
+ @ExpandCpu = expandcpu
11343
+ @AutoStrategy = autostrategy
11302
11344
  end
11303
11345
 
11304
11346
  def deserialize(params)
11347
+ @InstanceId = params['InstanceId']
11348
+ @Type = params['Type']
11349
+ @ExpandCpu = params['ExpandCpu']
11350
+ unless params['AutoStrategy'].nil?
11351
+ @AutoStrategy = AutoStrategy.new
11352
+ @AutoStrategy.deserialize(params['AutoStrategy'])
11353
+ end
11305
11354
  end
11306
11355
  end
11307
11356
 
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.678
4
+ version: 3.0.679
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-10-17 00:00:00.000000000 Z
11
+ date: 2023-10-18 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: