tencentcloud-sdk-cdb 3.0.1022 → 3.0.1023
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20170320/client.rb +24 -0
- data/lib/v20170320/models.rb +58 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73e88a8ace9eba838537684ae58ded1e4fb8a7d6
|
4
|
+
data.tar.gz: cae00a3033eb36c3be72a90d0b4ea5b49c7a9821
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 70f9d70a59d1221e66dcd9066c04e1aba13b5e4d614ab9eeebb95c45a3df37cd7413c19e4715211335c9499390cc9a1c6424a1278043bf1bf8165e5f1070a5b4
|
7
|
+
data.tar.gz: da8347d332e311c6405e81232a839dbd4b030cc9df4d626d3c3651cb4782e4fabaf530a2e3d97da426feb2fa62791c69a0c807cfe3542bd503a96f59359543b4
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1023
|
data/lib/v20170320/client.rb
CHANGED
@@ -1491,6 +1491,30 @@ module TencentCloud
|
|
1491
1491
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1492
1492
|
end
|
1493
1493
|
|
1494
|
+
# 通过该 API 可以查询实例的 CPU 弹性扩容信息
|
1495
|
+
|
1496
|
+
# @param request: Request instance for DescribeCPUExpandStrategyInfo.
|
1497
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::DescribeCPUExpandStrategyInfoRequest`
|
1498
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::DescribeCPUExpandStrategyInfoResponse`
|
1499
|
+
def DescribeCPUExpandStrategyInfo(request)
|
1500
|
+
body = send_request('DescribeCPUExpandStrategyInfo', request.serialize)
|
1501
|
+
response = JSON.parse(body)
|
1502
|
+
if response['Response'].key?('Error') == false
|
1503
|
+
model = DescribeCPUExpandStrategyInfoResponse.new
|
1504
|
+
model.deserialize(response['Response'])
|
1505
|
+
model
|
1506
|
+
else
|
1507
|
+
code = response['Response']['Error']['Code']
|
1508
|
+
message = response['Response']['Error']['Message']
|
1509
|
+
reqid = response['Response']['RequestId']
|
1510
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1511
|
+
end
|
1512
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1513
|
+
raise e
|
1514
|
+
rescue StandardError => e
|
1515
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1516
|
+
end
|
1517
|
+
|
1494
1518
|
# 本接口(DescribeCdbProxyInfo)用于查询数据库代理详情信息。
|
1495
1519
|
|
1496
1520
|
# @param request: Request instance for DescribeCdbProxyInfo.
|
data/lib/v20170320/models.rb
CHANGED
@@ -1046,10 +1046,10 @@ module TencentCloud
|
|
1046
1046
|
|
1047
1047
|
attr_accessor :ExpandThreshold, :ShrinkThreshold, :ExpandPeriod, :ShrinkPeriod, :ExpandSecondPeriod, :ShrinkSecondPeriod
|
1048
1048
|
extend Gem::Deprecate
|
1049
|
-
deprecate :ExpandPeriod, :none, 2025,
|
1050
|
-
deprecate :ExpandPeriod=, :none, 2025,
|
1051
|
-
deprecate :ShrinkPeriod, :none, 2025,
|
1052
|
-
deprecate :ShrinkPeriod=, :none, 2025,
|
1049
|
+
deprecate :ExpandPeriod, :none, 2025, 3
|
1050
|
+
deprecate :ExpandPeriod=, :none, 2025, 3
|
1051
|
+
deprecate :ShrinkPeriod, :none, 2025, 3
|
1052
|
+
deprecate :ShrinkPeriod=, :none, 2025, 3
|
1053
1053
|
|
1054
1054
|
def initialize(expandthreshold=nil, shrinkthreshold=nil, expandperiod=nil, shrinkperiod=nil, expandsecondperiod=nil, shrinksecondperiod=nil)
|
1055
1055
|
@ExpandThreshold = expandthreshold
|
@@ -5478,6 +5478,56 @@ module TencentCloud
|
|
5478
5478
|
end
|
5479
5479
|
end
|
5480
5480
|
|
5481
|
+
# DescribeCPUExpandStrategyInfo请求参数结构体
|
5482
|
+
class DescribeCPUExpandStrategyInfoRequest < TencentCloud::Common::AbstractModel
|
5483
|
+
# @param InstanceId: 实例 ID 。
|
5484
|
+
# @type InstanceId: String
|
5485
|
+
|
5486
|
+
attr_accessor :InstanceId
|
5487
|
+
|
5488
|
+
def initialize(instanceid=nil)
|
5489
|
+
@InstanceId = instanceid
|
5490
|
+
end
|
5491
|
+
|
5492
|
+
def deserialize(params)
|
5493
|
+
@InstanceId = params['InstanceId']
|
5494
|
+
end
|
5495
|
+
end
|
5496
|
+
|
5497
|
+
# DescribeCPUExpandStrategyInfo返回参数结构体
|
5498
|
+
class DescribeCPUExpandStrategyInfoResponse < TencentCloud::Common::AbstractModel
|
5499
|
+
# @param Type: 策略类型。可选值 auto、manual。如果返回为NULL说明尚未开通弹性扩容策略
|
5500
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5501
|
+
# @type Type: String
|
5502
|
+
# @param ExpandCpu: 手动扩容的 CPU 。Type为 manual 时有效。
|
5503
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5504
|
+
# @type ExpandCpu: Integer
|
5505
|
+
# @param AutoStrategy: 自动扩容策略。Type 为 auto 时有效
|
5506
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5507
|
+
# @type AutoStrategy: :class:`Tencentcloud::Cdb.v20170320.models.AutoStrategy`
|
5508
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5509
|
+
# @type RequestId: String
|
5510
|
+
|
5511
|
+
attr_accessor :Type, :ExpandCpu, :AutoStrategy, :RequestId
|
5512
|
+
|
5513
|
+
def initialize(type=nil, expandcpu=nil, autostrategy=nil, requestid=nil)
|
5514
|
+
@Type = type
|
5515
|
+
@ExpandCpu = expandcpu
|
5516
|
+
@AutoStrategy = autostrategy
|
5517
|
+
@RequestId = requestid
|
5518
|
+
end
|
5519
|
+
|
5520
|
+
def deserialize(params)
|
5521
|
+
@Type = params['Type']
|
5522
|
+
@ExpandCpu = params['ExpandCpu']
|
5523
|
+
unless params['AutoStrategy'].nil?
|
5524
|
+
@AutoStrategy = AutoStrategy.new
|
5525
|
+
@AutoStrategy.deserialize(params['AutoStrategy'])
|
5526
|
+
end
|
5527
|
+
@RequestId = params['RequestId']
|
5528
|
+
end
|
5529
|
+
end
|
5530
|
+
|
5481
5531
|
# DescribeCdbProxyInfo请求参数结构体
|
5482
5532
|
class DescribeCdbProxyInfoRequest < TencentCloud::Common::AbstractModel
|
5483
5533
|
# @param InstanceId: 实例ID
|
@@ -5720,8 +5770,8 @@ module TencentCloud
|
|
5720
5770
|
|
5721
5771
|
attr_accessor :Type, :ExpandCpu, :AutoStrategy, :RequestId
|
5722
5772
|
extend Gem::Deprecate
|
5723
|
-
deprecate :AutoStrategy, :none, 2025,
|
5724
|
-
deprecate :AutoStrategy=, :none, 2025,
|
5773
|
+
deprecate :AutoStrategy, :none, 2025, 3
|
5774
|
+
deprecate :AutoStrategy=, :none, 2025, 3
|
5725
5775
|
|
5726
5776
|
def initialize(type=nil, expandcpu=nil, autostrategy=nil, requestid=nil)
|
5727
5777
|
@Type = type
|
@@ -11665,8 +11715,8 @@ module TencentCloud
|
|
11665
11715
|
|
11666
11716
|
attr_accessor :InstanceId, :ParamName, :OldValue, :NewValue, :IsSucess, :ModifyTime, :IsSuccess
|
11667
11717
|
extend Gem::Deprecate
|
11668
|
-
deprecate :IsSucess, :none, 2025,
|
11669
|
-
deprecate :IsSucess=, :none, 2025,
|
11718
|
+
deprecate :IsSucess, :none, 2025, 3
|
11719
|
+
deprecate :IsSucess=, :none, 2025, 3
|
11670
11720
|
|
11671
11721
|
def initialize(instanceid=nil, paramname=nil, oldvalue=nil, newvalue=nil, issucess=nil, modifytime=nil, issuccess=nil)
|
11672
11722
|
@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.
|
4
|
+
version: 3.0.1023
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|