tencentcloud-sdk-cynosdb 3.0.896 → 3.0.898
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190107/client.rb +48 -0
- data/lib/v20190107/models.rb +158 -14
- 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: a5824a3c1ffc348219dfe55c2d741bf1451a7d50
|
4
|
+
data.tar.gz: 9dca9eccce36cf0d71ba2d93a18a8078eddde47d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73346b24a54be27b4222b8710067c81cc7976c8f0b81cac2bc5ca52e8fd9f028971c5974350a9e11ea2bc3782909b5c0ae4510634ef4dffcde9fb6f5e96d7934
|
7
|
+
data.tar.gz: ac34ef4c6b4f8bbeca8fc4955ab08af4f8335f55a6c74465e85191287f221bc24b2c3d814eca0678ecf54f48ebabb8623ff898988c410d5e77b51e0aa9de5de4
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.898
|
data/lib/v20190107/client.rb
CHANGED
@@ -1831,6 +1831,30 @@ module TencentCloud
|
|
1831
1831
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1832
1832
|
end
|
1833
1833
|
|
1834
|
+
# 查询serverless策略
|
1835
|
+
|
1836
|
+
# @param request: Request instance for DescribeServerlessStrategy.
|
1837
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::DescribeServerlessStrategyRequest`
|
1838
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::DescribeServerlessStrategyResponse`
|
1839
|
+
def DescribeServerlessStrategy(request)
|
1840
|
+
body = send_request('DescribeServerlessStrategy', request.serialize)
|
1841
|
+
response = JSON.parse(body)
|
1842
|
+
if response['Response'].key?('Error') == false
|
1843
|
+
model = DescribeServerlessStrategyResponse.new
|
1844
|
+
model.deserialize(response['Response'])
|
1845
|
+
model
|
1846
|
+
else
|
1847
|
+
code = response['Response']['Error']['Code']
|
1848
|
+
message = response['Response']['Error']['Message']
|
1849
|
+
reqid = response['Response']['RequestId']
|
1850
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1851
|
+
end
|
1852
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1853
|
+
raise e
|
1854
|
+
rescue StandardError => e
|
1855
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1856
|
+
end
|
1857
|
+
|
1834
1858
|
# 查询支持的数据库代理版本
|
1835
1859
|
|
1836
1860
|
# @param request: Request instance for DescribeSupportProxyVersion.
|
@@ -2767,6 +2791,30 @@ module TencentCloud
|
|
2767
2791
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2768
2792
|
end
|
2769
2793
|
|
2794
|
+
# 修改serverless策略
|
2795
|
+
|
2796
|
+
# @param request: Request instance for ModifyServerlessStrategy.
|
2797
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::ModifyServerlessStrategyRequest`
|
2798
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::ModifyServerlessStrategyResponse`
|
2799
|
+
def ModifyServerlessStrategy(request)
|
2800
|
+
body = send_request('ModifyServerlessStrategy', request.serialize)
|
2801
|
+
response = JSON.parse(body)
|
2802
|
+
if response['Response'].key?('Error') == false
|
2803
|
+
model = ModifyServerlessStrategyResponse.new
|
2804
|
+
model.deserialize(response['Response'])
|
2805
|
+
model
|
2806
|
+
else
|
2807
|
+
code = response['Response']['Error']['Code']
|
2808
|
+
message = response['Response']['Error']['Message']
|
2809
|
+
reqid = response['Response']['RequestId']
|
2810
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2811
|
+
end
|
2812
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2813
|
+
raise e
|
2814
|
+
rescue StandardError => e
|
2815
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2816
|
+
end
|
2817
|
+
|
2770
2818
|
# 修改实例组ip,端口
|
2771
2819
|
|
2772
2820
|
# @param request: Request instance for ModifyVipVport.
|
data/lib/v20190107/models.rb
CHANGED
@@ -244,8 +244,8 @@ module TencentCloud
|
|
244
244
|
|
245
245
|
attr_accessor :ClusterId, :Cpu, :Memory, :ReadOnlyCount, :DeviceType, :InstanceGrpId, :VpcId, :SubnetId, :Port, :InstanceName, :AutoVoucher, :DbType, :OrderSource, :DealMode, :ParamTemplateId, :InstanceParams, :SecurityGroupIds, :UpgradeProxy
|
246
246
|
extend Gem::Deprecate
|
247
|
-
deprecate :InstanceGrpId, :none, 2024,
|
248
|
-
deprecate :InstanceGrpId=, :none, 2024,
|
247
|
+
deprecate :InstanceGrpId, :none, 2024, 9
|
248
|
+
deprecate :InstanceGrpId=, :none, 2024, 9
|
249
249
|
|
250
250
|
def initialize(clusterid=nil, cpu=nil, memory=nil, readonlycount=nil, devicetype=nil, instancegrpid=nil, vpcid=nil, subnetid=nil, port=nil, instancename=nil, autovoucher=nil, dbtype=nil, ordersource=nil, dealmode=nil, paramtemplateid=nil, instanceparams=nil, securitygroupids=nil, upgradeproxy=nil)
|
251
251
|
@ClusterId = clusterid
|
@@ -1065,8 +1065,8 @@ module TencentCloud
|
|
1065
1065
|
|
1066
1066
|
attr_accessor :ID, :AppId, :ClusterId, :Region, :CreateTime, :DelayTime, :ErrMsg, :FlowId, :Input, :InstanceGrpId, :InstanceGroupId, :InstanceId, :ObjectId, :ObjectType, :Operator, :Output, :Status, :TaskType, :TriggerTaskId, :UpdateTime, :StartTime, :EndTime, :ClusterName, :InstanceName, :Process, :ModifyParamsData, :CreateClustersData, :RollbackData, :ModifyInstanceData, :ManualBackupData, :ModifyDbVersionData, :ClusterSlaveData, :SwitchClusterLogBin, :ModifyInstanceParamsData, :TaskMaintainInfo, :InstanceCLSDeliveryInfos
|
1067
1067
|
extend Gem::Deprecate
|
1068
|
-
deprecate :InstanceGrpId, :none, 2024,
|
1069
|
-
deprecate :InstanceGrpId=, :none, 2024,
|
1068
|
+
deprecate :InstanceGrpId, :none, 2024, 9
|
1069
|
+
deprecate :InstanceGrpId=, :none, 2024, 9
|
1070
1070
|
|
1071
1071
|
def initialize(id=nil, appid=nil, clusterid=nil, region=nil, createtime=nil, delaytime=nil, errmsg=nil, flowid=nil, input=nil, instancegrpid=nil, instancegroupid=nil, instanceid=nil, objectid=nil, objecttype=nil, operator=nil, output=nil, status=nil, tasktype=nil, triggertaskid=nil, updatetime=nil, starttime=nil, endtime=nil, clustername=nil, instancename=nil, process=nil, modifyparamsdata=nil, createclustersdata=nil, rollbackdata=nil, modifyinstancedata=nil, manualbackupdata=nil, modifydbversiondata=nil, clusterslavedata=nil, switchclusterlogbin=nil, modifyinstanceparamsdata=nil, taskmaintaininfo=nil, instanceclsdeliveryinfos=nil)
|
1072
1072
|
@ID = id
|
@@ -1429,8 +1429,8 @@ module TencentCloud
|
|
1429
1429
|
|
1430
1430
|
attr_accessor :InstanceGrpId, :InstanceGroupId, :InstanceId
|
1431
1431
|
extend Gem::Deprecate
|
1432
|
-
deprecate :InstanceGrpId, :none, 2024,
|
1433
|
-
deprecate :InstanceGrpId=, :none, 2024,
|
1432
|
+
deprecate :InstanceGrpId, :none, 2024, 9
|
1433
|
+
deprecate :InstanceGrpId=, :none, 2024, 9
|
1434
1434
|
|
1435
1435
|
def initialize(instancegrpid=nil, instancegroupid=nil, instanceid=nil)
|
1436
1436
|
@InstanceGrpId = instancegrpid
|
@@ -5543,8 +5543,8 @@ module TencentCloud
|
|
5543
5543
|
|
5544
5544
|
attr_accessor :TotalCount, :InstanceGrpInfoList, :InstanceGroupInfoList, :RequestId
|
5545
5545
|
extend Gem::Deprecate
|
5546
|
-
deprecate :InstanceGrpInfoList, :none, 2024,
|
5547
|
-
deprecate :InstanceGrpInfoList=, :none, 2024,
|
5546
|
+
deprecate :InstanceGrpInfoList, :none, 2024, 9
|
5547
|
+
deprecate :InstanceGrpInfoList=, :none, 2024, 9
|
5548
5548
|
|
5549
5549
|
def initialize(totalcount=nil, instancegrpinfolist=nil, instancegroupinfolist=nil, requestid=nil)
|
5550
5550
|
@TotalCount = totalcount
|
@@ -5866,8 +5866,8 @@ module TencentCloud
|
|
5866
5866
|
|
5867
5867
|
attr_accessor :InstanceId, :InstanceGroupId
|
5868
5868
|
extend Gem::Deprecate
|
5869
|
-
deprecate :InstanceId, :none, 2024,
|
5870
|
-
deprecate :InstanceId=, :none, 2024,
|
5869
|
+
deprecate :InstanceId, :none, 2024, 9
|
5870
|
+
deprecate :InstanceId=, :none, 2024, 9
|
5871
5871
|
|
5872
5872
|
def initialize(instanceid=nil, instancegroupid=nil)
|
5873
5873
|
@InstanceId = instanceid
|
@@ -7243,6 +7243,64 @@ module TencentCloud
|
|
7243
7243
|
end
|
7244
7244
|
end
|
7245
7245
|
|
7246
|
+
# DescribeServerlessStrategy请求参数结构体
|
7247
|
+
class DescribeServerlessStrategyRequest < TencentCloud::Common::AbstractModel
|
7248
|
+
# @param ClusterId: serverless集群id
|
7249
|
+
# @type ClusterId: String
|
7250
|
+
|
7251
|
+
attr_accessor :ClusterId
|
7252
|
+
|
7253
|
+
def initialize(clusterid=nil)
|
7254
|
+
@ClusterId = clusterid
|
7255
|
+
end
|
7256
|
+
|
7257
|
+
def deserialize(params)
|
7258
|
+
@ClusterId = params['ClusterId']
|
7259
|
+
end
|
7260
|
+
end
|
7261
|
+
|
7262
|
+
# DescribeServerlessStrategy返回参数结构体
|
7263
|
+
class DescribeServerlessStrategyResponse < TencentCloud::Common::AbstractModel
|
7264
|
+
# @param AutoPauseDelay: cpu负载为 0 时持续多久(秒)发起自动暂停
|
7265
|
+
# @type AutoPauseDelay: Integer
|
7266
|
+
# @param AutoScaleUpDelay: cpu负载超过当前规格核数时,持续多久(秒)发起自动扩容
|
7267
|
+
# @type AutoScaleUpDelay: Integer
|
7268
|
+
# @param AutoScaleDownDelay: cpu 负载低于低一级规格核数时,持续多久(秒)发起自动缩容
|
7269
|
+
# @type AutoScaleDownDelay: Integer
|
7270
|
+
# @param AutoPause: 是否自动暂停,可能值:
|
7271
|
+
# yes
|
7272
|
+
# no
|
7273
|
+
# @type AutoPause: String
|
7274
|
+
# @param AutoScaleUp: 集群是否允许向上扩容,可选范围<li>yes</li><li>no</li>
|
7275
|
+
# @type AutoScaleUp: String
|
7276
|
+
# @param AutoScaleDown: 集群是否允许向下缩容,可选范围<li>yes</li><li>no</li>
|
7277
|
+
# @type AutoScaleDown: String
|
7278
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7279
|
+
# @type RequestId: String
|
7280
|
+
|
7281
|
+
attr_accessor :AutoPauseDelay, :AutoScaleUpDelay, :AutoScaleDownDelay, :AutoPause, :AutoScaleUp, :AutoScaleDown, :RequestId
|
7282
|
+
|
7283
|
+
def initialize(autopausedelay=nil, autoscaleupdelay=nil, autoscaledowndelay=nil, autopause=nil, autoscaleup=nil, autoscaledown=nil, requestid=nil)
|
7284
|
+
@AutoPauseDelay = autopausedelay
|
7285
|
+
@AutoScaleUpDelay = autoscaleupdelay
|
7286
|
+
@AutoScaleDownDelay = autoscaledowndelay
|
7287
|
+
@AutoPause = autopause
|
7288
|
+
@AutoScaleUp = autoscaleup
|
7289
|
+
@AutoScaleDown = autoscaledown
|
7290
|
+
@RequestId = requestid
|
7291
|
+
end
|
7292
|
+
|
7293
|
+
def deserialize(params)
|
7294
|
+
@AutoPauseDelay = params['AutoPauseDelay']
|
7295
|
+
@AutoScaleUpDelay = params['AutoScaleUpDelay']
|
7296
|
+
@AutoScaleDownDelay = params['AutoScaleDownDelay']
|
7297
|
+
@AutoPause = params['AutoPause']
|
7298
|
+
@AutoScaleUp = params['AutoScaleUp']
|
7299
|
+
@AutoScaleDown = params['AutoScaleDown']
|
7300
|
+
@RequestId = params['RequestId']
|
7301
|
+
end
|
7302
|
+
end
|
7303
|
+
|
7246
7304
|
# DescribeSupportProxyVersion请求参数结构体
|
7247
7305
|
class DescribeSupportProxyVersionRequest < TencentCloud::Common::AbstractModel
|
7248
7306
|
# @param ClusterId: 集群ID
|
@@ -10149,6 +10207,92 @@ module TencentCloud
|
|
10149
10207
|
end
|
10150
10208
|
end
|
10151
10209
|
|
10210
|
+
# ModifyServerlessStrategy请求参数结构体
|
10211
|
+
class ModifyServerlessStrategyRequest < TencentCloud::Common::AbstractModel
|
10212
|
+
# @param ClusterId: serverless集群id
|
10213
|
+
# @type ClusterId: String
|
10214
|
+
# @param AutoPause: 集群是否自动暂停,可选范围
|
10215
|
+
# <li>yes</li>
|
10216
|
+
# <li>no</li>
|
10217
|
+
# @type AutoPause: String
|
10218
|
+
# @param AutoPauseDelay: 集群自动暂停的延迟,单位秒,可选范围[600,691200],默认600
|
10219
|
+
# @type AutoPauseDelay: Integer
|
10220
|
+
# @param AutoScaleUpDelay: 该参数暂时无效
|
10221
|
+
# @type AutoScaleUpDelay: Integer
|
10222
|
+
# @param AutoScaleDownDelay: 该参数暂时无效
|
10223
|
+
# @type AutoScaleDownDelay: Integer
|
10224
|
+
# @param MinCpu: cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回
|
10225
|
+
# @type MinCpu: Float
|
10226
|
+
# @param MaxCpu: cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
|
10227
|
+
# @type MaxCpu: Float
|
10228
|
+
# @param MinRoCpu: 只读实例cpu最小值,可选范围参考DescribeServerlessInstanceSpecs接口返回
|
10229
|
+
# @type MinRoCpu: Float
|
10230
|
+
# @param MaxRoCpu: 只读cpu最大值,可选范围参考DescribeServerlessInstanceSpecs接口返回
|
10231
|
+
# @type MaxRoCpu: Float
|
10232
|
+
# @param MinRoCount: 只读节点最小个数
|
10233
|
+
# @type MinRoCount: Integer
|
10234
|
+
# @param MaxRoCount: 只读节点最大个数
|
10235
|
+
# @type MaxRoCount: Integer
|
10236
|
+
# @param AutoScaleUp: 集群是否允许扩容,可选范围<li>yes</li><li>no</li>
|
10237
|
+
# @type AutoScaleUp: String
|
10238
|
+
# @param AutoScaleDown: 集群是否允许缩容,可选范围<li>yes</li><li>no</li>
|
10239
|
+
# @type AutoScaleDown: String
|
10240
|
+
|
10241
|
+
attr_accessor :ClusterId, :AutoPause, :AutoPauseDelay, :AutoScaleUpDelay, :AutoScaleDownDelay, :MinCpu, :MaxCpu, :MinRoCpu, :MaxRoCpu, :MinRoCount, :MaxRoCount, :AutoScaleUp, :AutoScaleDown
|
10242
|
+
|
10243
|
+
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)
|
10244
|
+
@ClusterId = clusterid
|
10245
|
+
@AutoPause = autopause
|
10246
|
+
@AutoPauseDelay = autopausedelay
|
10247
|
+
@AutoScaleUpDelay = autoscaleupdelay
|
10248
|
+
@AutoScaleDownDelay = autoscaledowndelay
|
10249
|
+
@MinCpu = mincpu
|
10250
|
+
@MaxCpu = maxcpu
|
10251
|
+
@MinRoCpu = minrocpu
|
10252
|
+
@MaxRoCpu = maxrocpu
|
10253
|
+
@MinRoCount = minrocount
|
10254
|
+
@MaxRoCount = maxrocount
|
10255
|
+
@AutoScaleUp = autoscaleup
|
10256
|
+
@AutoScaleDown = autoscaledown
|
10257
|
+
end
|
10258
|
+
|
10259
|
+
def deserialize(params)
|
10260
|
+
@ClusterId = params['ClusterId']
|
10261
|
+
@AutoPause = params['AutoPause']
|
10262
|
+
@AutoPauseDelay = params['AutoPauseDelay']
|
10263
|
+
@AutoScaleUpDelay = params['AutoScaleUpDelay']
|
10264
|
+
@AutoScaleDownDelay = params['AutoScaleDownDelay']
|
10265
|
+
@MinCpu = params['MinCpu']
|
10266
|
+
@MaxCpu = params['MaxCpu']
|
10267
|
+
@MinRoCpu = params['MinRoCpu']
|
10268
|
+
@MaxRoCpu = params['MaxRoCpu']
|
10269
|
+
@MinRoCount = params['MinRoCount']
|
10270
|
+
@MaxRoCount = params['MaxRoCount']
|
10271
|
+
@AutoScaleUp = params['AutoScaleUp']
|
10272
|
+
@AutoScaleDown = params['AutoScaleDown']
|
10273
|
+
end
|
10274
|
+
end
|
10275
|
+
|
10276
|
+
# ModifyServerlessStrategy返回参数结构体
|
10277
|
+
class ModifyServerlessStrategyResponse < TencentCloud::Common::AbstractModel
|
10278
|
+
# @param FlowId: 异步流程id
|
10279
|
+
# @type FlowId: Integer
|
10280
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
10281
|
+
# @type RequestId: String
|
10282
|
+
|
10283
|
+
attr_accessor :FlowId, :RequestId
|
10284
|
+
|
10285
|
+
def initialize(flowid=nil, requestid=nil)
|
10286
|
+
@FlowId = flowid
|
10287
|
+
@RequestId = requestid
|
10288
|
+
end
|
10289
|
+
|
10290
|
+
def deserialize(params)
|
10291
|
+
@FlowId = params['FlowId']
|
10292
|
+
@RequestId = params['RequestId']
|
10293
|
+
end
|
10294
|
+
end
|
10295
|
+
|
10152
10296
|
# ModifyVipVport请求参数结构体
|
10153
10297
|
class ModifyVipVportRequest < TencentCloud::Common::AbstractModel
|
10154
10298
|
# @param ClusterId: 集群id
|
@@ -10169,8 +10313,8 @@ module TencentCloud
|
|
10169
10313
|
|
10170
10314
|
attr_accessor :ClusterId, :InstanceGrpId, :InstanceGroupId, :Vip, :Vport, :DbType, :OldIpReserveHours
|
10171
10315
|
extend Gem::Deprecate
|
10172
|
-
deprecate :InstanceGrpId, :none, 2024,
|
10173
|
-
deprecate :InstanceGrpId=, :none, 2024,
|
10316
|
+
deprecate :InstanceGrpId, :none, 2024, 9
|
10317
|
+
deprecate :InstanceGrpId=, :none, 2024, 9
|
10174
10318
|
|
10175
10319
|
def initialize(clusterid=nil, instancegrpid=nil, instancegroupid=nil, vip=nil, vport=nil, dbtype=nil, oldipreservehours=nil)
|
10176
10320
|
@ClusterId = clusterid
|
@@ -10702,8 +10846,8 @@ module TencentCloud
|
|
10702
10846
|
|
10703
10847
|
attr_accessor :InstanceGrpId, :InstanceId, :InstanceGroupId
|
10704
10848
|
extend Gem::Deprecate
|
10705
|
-
deprecate :InstanceGrpId, :none, 2024,
|
10706
|
-
deprecate :InstanceGrpId=, :none, 2024,
|
10849
|
+
deprecate :InstanceGrpId, :none, 2024, 9
|
10850
|
+
deprecate :InstanceGrpId=, :none, 2024, 9
|
10707
10851
|
|
10708
10852
|
def initialize(instancegrpid=nil, instanceid=nil, instancegroupid=nil)
|
10709
10853
|
@InstanceGrpId = instancegrpid
|
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.
|
4
|
+
version: 3.0.898
|
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-
|
11
|
+
date: 2024-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|