tencentcloud-sdk-cdb 3.0.1068 → 3.0.1070
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 +317 -6
- 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: 94e25ec01f2b1324ea9d929c45975495826d5940
|
4
|
+
data.tar.gz: 9b8313838a6fdaf3935ddaa46bbc8033aa842536
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1d647f7a559022bbf3eee8c58e6d72d81940d97044b1daa8cca31eabd54f6591547f63dc71dc284bb761e4b2aca78ef86d0fb3ce091f3cec352b53a06f1b765
|
7
|
+
data.tar.gz: 8959d3c0863b01284fdd3deb6ca9528cf4998b799c5c02ea638efddaa93cca17c42632186d1c64ec20888c4758dae6359740fd5521e78b0fa46ad6b5c5cd59e9
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1070
|
data/lib/v20170320/client.rb
CHANGED
@@ -1611,6 +1611,30 @@ module TencentCloud
|
|
1611
1611
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1612
1612
|
end
|
1613
1613
|
|
1614
|
+
# 本接口(DescribeCpuExpandHistory)用于查询扩容历史。
|
1615
|
+
|
1616
|
+
# @param request: Request instance for DescribeCpuExpandHistory.
|
1617
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::DescribeCpuExpandHistoryRequest`
|
1618
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::DescribeCpuExpandHistoryResponse`
|
1619
|
+
def DescribeCpuExpandHistory(request)
|
1620
|
+
body = send_request('DescribeCpuExpandHistory', request.serialize)
|
1621
|
+
response = JSON.parse(body)
|
1622
|
+
if response['Response'].key?('Error') == false
|
1623
|
+
model = DescribeCpuExpandHistoryResponse.new
|
1624
|
+
model.deserialize(response['Response'])
|
1625
|
+
model
|
1626
|
+
else
|
1627
|
+
code = response['Response']['Error']['Code']
|
1628
|
+
message = response['Response']['Error']['Message']
|
1629
|
+
reqid = response['Response']['RequestId']
|
1630
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1631
|
+
end
|
1632
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1633
|
+
raise e
|
1634
|
+
rescue StandardError => e
|
1635
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1636
|
+
end
|
1637
|
+
|
1614
1638
|
# 本接口(DescribeDBFeatures)用于查询云数据库版本属性,包括是否支持数据库加密、数据库审计等功能。
|
1615
1639
|
|
1616
1640
|
# @param request: Request instance for DescribeDBFeatures.
|
data/lib/v20170320/models.rb
CHANGED
@@ -57,6 +57,9 @@ module TencentCloud
|
|
57
57
|
# @type OpenCam: Boolean
|
58
58
|
|
59
59
|
attr_accessor :Notes, :Host, :User, :ModifyTime, :ModifyPasswordTime, :CreateTime, :MaxUserConnections, :OpenCam
|
60
|
+
extend Gem::Deprecate
|
61
|
+
deprecate :CreateTime, :none, 2025, 5
|
62
|
+
deprecate :CreateTime=, :none, 2025, 5
|
60
63
|
|
61
64
|
def initialize(notes=nil, host=nil, user=nil, modifytime=nil, modifypasswordtime=nil, createtime=nil, maxuserconnections=nil, opencam=nil)
|
62
65
|
@Notes = notes
|
@@ -372,6 +375,50 @@ module TencentCloud
|
|
372
375
|
end
|
373
376
|
end
|
374
377
|
|
378
|
+
# 分析引擎节点信息
|
379
|
+
class AnalysisNodeInfo < TencentCloud::Common::AbstractModel
|
380
|
+
# @param NodeId: 节点ID
|
381
|
+
# @type NodeId: String
|
382
|
+
# @param Status: 节点状态
|
383
|
+
# @type Status: String
|
384
|
+
# @param DataStatus: 数据加载状态
|
385
|
+
# @type DataStatus: String
|
386
|
+
# @param Cpu: cpu核数,单位:核
|
387
|
+
# @type Cpu: Integer
|
388
|
+
# @param Memory: 内存大小,单位: MB
|
389
|
+
# @type Memory: Integer
|
390
|
+
# @param Storage: 磁盘大小,单位:GB
|
391
|
+
# @type Storage: Integer
|
392
|
+
# @param Zone: 节点所在可用区
|
393
|
+
# @type Zone: String
|
394
|
+
# @param Message: 数据同步错误信息
|
395
|
+
# @type Message: String
|
396
|
+
|
397
|
+
attr_accessor :NodeId, :Status, :DataStatus, :Cpu, :Memory, :Storage, :Zone, :Message
|
398
|
+
|
399
|
+
def initialize(nodeid=nil, status=nil, datastatus=nil, cpu=nil, memory=nil, storage=nil, zone=nil, message=nil)
|
400
|
+
@NodeId = nodeid
|
401
|
+
@Status = status
|
402
|
+
@DataStatus = datastatus
|
403
|
+
@Cpu = cpu
|
404
|
+
@Memory = memory
|
405
|
+
@Storage = storage
|
406
|
+
@Zone = zone
|
407
|
+
@Message = message
|
408
|
+
end
|
409
|
+
|
410
|
+
def deserialize(params)
|
411
|
+
@NodeId = params['NodeId']
|
412
|
+
@Status = params['Status']
|
413
|
+
@DataStatus = params['DataStatus']
|
414
|
+
@Cpu = params['Cpu']
|
415
|
+
@Memory = params['Memory']
|
416
|
+
@Storage = params['Storage']
|
417
|
+
@Zone = params['Zone']
|
418
|
+
@Message = params['Message']
|
419
|
+
end
|
420
|
+
end
|
421
|
+
|
375
422
|
# AnalyzeAuditLogs请求参数结构体
|
376
423
|
class AnalyzeAuditLogsRequest < TencentCloud::Common::AbstractModel
|
377
424
|
# @param InstanceId: 实例ID。
|
@@ -5522,15 +5569,21 @@ module TencentCloud
|
|
5522
5569
|
# @param AutoStrategy: 自动扩容策略。Type 为 auto 时有效
|
5523
5570
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
5524
5571
|
# @type AutoStrategy: :class:`Tencentcloud::Cdb.v20170320.models.AutoStrategy`
|
5572
|
+
# @param PeriodStrategy: 按周期扩容策略。
|
5573
|
+
# @type PeriodStrategy: :class:`Tencentcloud::Cdb.v20170320.models.PeriodStrategy`
|
5574
|
+
# @param TimeIntervalStrategy: 按时间段扩容策略
|
5575
|
+
# @type TimeIntervalStrategy: :class:`Tencentcloud::Cdb.v20170320.models.TimeIntervalStrategy`
|
5525
5576
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5526
5577
|
# @type RequestId: String
|
5527
5578
|
|
5528
|
-
attr_accessor :Type, :ExpandCpu, :AutoStrategy, :RequestId
|
5579
|
+
attr_accessor :Type, :ExpandCpu, :AutoStrategy, :PeriodStrategy, :TimeIntervalStrategy, :RequestId
|
5529
5580
|
|
5530
|
-
def initialize(type=nil, expandcpu=nil, autostrategy=nil, requestid=nil)
|
5581
|
+
def initialize(type=nil, expandcpu=nil, autostrategy=nil, periodstrategy=nil, timeintervalstrategy=nil, requestid=nil)
|
5531
5582
|
@Type = type
|
5532
5583
|
@ExpandCpu = expandcpu
|
5533
5584
|
@AutoStrategy = autostrategy
|
5585
|
+
@PeriodStrategy = periodstrategy
|
5586
|
+
@TimeIntervalStrategy = timeintervalstrategy
|
5534
5587
|
@RequestId = requestid
|
5535
5588
|
end
|
5536
5589
|
|
@@ -5541,6 +5594,14 @@ module TencentCloud
|
|
5541
5594
|
@AutoStrategy = AutoStrategy.new
|
5542
5595
|
@AutoStrategy.deserialize(params['AutoStrategy'])
|
5543
5596
|
end
|
5597
|
+
unless params['PeriodStrategy'].nil?
|
5598
|
+
@PeriodStrategy = PeriodStrategy.new
|
5599
|
+
@PeriodStrategy.deserialize(params['PeriodStrategy'])
|
5600
|
+
end
|
5601
|
+
unless params['TimeIntervalStrategy'].nil?
|
5602
|
+
@TimeIntervalStrategy = TimeIntervalStrategy.new
|
5603
|
+
@TimeIntervalStrategy.deserialize(params['TimeIntervalStrategy'])
|
5604
|
+
end
|
5544
5605
|
@RequestId = params['RequestId']
|
5545
5606
|
end
|
5546
5607
|
end
|
@@ -5758,6 +5819,77 @@ module TencentCloud
|
|
5758
5819
|
end
|
5759
5820
|
end
|
5760
5821
|
|
5822
|
+
# DescribeCpuExpandHistory请求参数结构体
|
5823
|
+
class DescribeCpuExpandHistoryRequest < TencentCloud::Common::AbstractModel
|
5824
|
+
# @param InstanceId: 实例 ID
|
5825
|
+
# @type InstanceId: String
|
5826
|
+
# @param ExpandStrategy: 扩容策略,值包括:all,manual,auto
|
5827
|
+
# @type ExpandStrategy: String
|
5828
|
+
# @param Status: 扩容状态,值包括:all,extend,reduce,extend_failed
|
5829
|
+
# @type Status: String
|
5830
|
+
# @param StartTime: 查询的开始时间。只能查看30天内的扩容历史
|
5831
|
+
# @type StartTime: Integer
|
5832
|
+
# @param EndTime: 查询的结束时间。只能查看30天内的扩容历史
|
5833
|
+
# @type EndTime: Integer
|
5834
|
+
# @param Offset: 分页入参
|
5835
|
+
# @type Offset: Integer
|
5836
|
+
# @param Limit: 分页入参
|
5837
|
+
# @type Limit: Integer
|
5838
|
+
|
5839
|
+
attr_accessor :InstanceId, :ExpandStrategy, :Status, :StartTime, :EndTime, :Offset, :Limit
|
5840
|
+
|
5841
|
+
def initialize(instanceid=nil, expandstrategy=nil, status=nil, starttime=nil, endtime=nil, offset=nil, limit=nil)
|
5842
|
+
@InstanceId = instanceid
|
5843
|
+
@ExpandStrategy = expandstrategy
|
5844
|
+
@Status = status
|
5845
|
+
@StartTime = starttime
|
5846
|
+
@EndTime = endtime
|
5847
|
+
@Offset = offset
|
5848
|
+
@Limit = limit
|
5849
|
+
end
|
5850
|
+
|
5851
|
+
def deserialize(params)
|
5852
|
+
@InstanceId = params['InstanceId']
|
5853
|
+
@ExpandStrategy = params['ExpandStrategy']
|
5854
|
+
@Status = params['Status']
|
5855
|
+
@StartTime = params['StartTime']
|
5856
|
+
@EndTime = params['EndTime']
|
5857
|
+
@Offset = params['Offset']
|
5858
|
+
@Limit = params['Limit']
|
5859
|
+
end
|
5860
|
+
end
|
5861
|
+
|
5862
|
+
# DescribeCpuExpandHistory返回参数结构体
|
5863
|
+
class DescribeCpuExpandHistoryResponse < TencentCloud::Common::AbstractModel
|
5864
|
+
# @param Items: 满足查询要求的扩容历史
|
5865
|
+
# @type Items: Array
|
5866
|
+
# @param TotalCount: 总数出参
|
5867
|
+
# @type TotalCount: Integer
|
5868
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5869
|
+
# @type RequestId: String
|
5870
|
+
|
5871
|
+
attr_accessor :Items, :TotalCount, :RequestId
|
5872
|
+
|
5873
|
+
def initialize(items=nil, totalcount=nil, requestid=nil)
|
5874
|
+
@Items = items
|
5875
|
+
@TotalCount = totalcount
|
5876
|
+
@RequestId = requestid
|
5877
|
+
end
|
5878
|
+
|
5879
|
+
def deserialize(params)
|
5880
|
+
unless params['Items'].nil?
|
5881
|
+
@Items = []
|
5882
|
+
params['Items'].each do |i|
|
5883
|
+
historyjob_tmp = HistoryJob.new
|
5884
|
+
historyjob_tmp.deserialize(i)
|
5885
|
+
@Items << historyjob_tmp
|
5886
|
+
end
|
5887
|
+
end
|
5888
|
+
@TotalCount = params['TotalCount']
|
5889
|
+
@RequestId = params['RequestId']
|
5890
|
+
end
|
5891
|
+
end
|
5892
|
+
|
5761
5893
|
# DescribeDBFeatures请求参数结构体
|
5762
5894
|
class DescribeDBFeaturesRequest < TencentCloud::Common::AbstractModel
|
5763
5895
|
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv 或者 cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
|
@@ -8753,6 +8885,50 @@ module TencentCloud
|
|
8753
8885
|
end
|
8754
8886
|
end
|
8755
8887
|
|
8888
|
+
# 单条扩容历史记录
|
8889
|
+
class HistoryJob < TencentCloud::Common::AbstractModel
|
8890
|
+
# @param OperationType: 操作类型
|
8891
|
+
# @type OperationType: String
|
8892
|
+
# @param ExpandType: 扩容类型
|
8893
|
+
# @type ExpandType: String
|
8894
|
+
# @param StartTime: 扩容开始时间
|
8895
|
+
# @type StartTime: Integer
|
8896
|
+
# @param EndTime: 扩容结束时间
|
8897
|
+
# @type EndTime: Integer
|
8898
|
+
# @param OldCpu: 扩容前核数
|
8899
|
+
# @type OldCpu: Integer
|
8900
|
+
# @param NewCpu: 扩容后核数
|
8901
|
+
# @type NewCpu: Integer
|
8902
|
+
# @param ExtendCPUNum: 增减的cpu数
|
8903
|
+
# @type ExtendCPUNum: Integer
|
8904
|
+
# @param Error: extend_failed操作上报
|
8905
|
+
# @type Error: String
|
8906
|
+
|
8907
|
+
attr_accessor :OperationType, :ExpandType, :StartTime, :EndTime, :OldCpu, :NewCpu, :ExtendCPUNum, :Error
|
8908
|
+
|
8909
|
+
def initialize(operationtype=nil, expandtype=nil, starttime=nil, endtime=nil, oldcpu=nil, newcpu=nil, extendcpunum=nil, error=nil)
|
8910
|
+
@OperationType = operationtype
|
8911
|
+
@ExpandType = expandtype
|
8912
|
+
@StartTime = starttime
|
8913
|
+
@EndTime = endtime
|
8914
|
+
@OldCpu = oldcpu
|
8915
|
+
@NewCpu = newcpu
|
8916
|
+
@ExtendCPUNum = extendcpunum
|
8917
|
+
@Error = error
|
8918
|
+
end
|
8919
|
+
|
8920
|
+
def deserialize(params)
|
8921
|
+
@OperationType = params['OperationType']
|
8922
|
+
@ExpandType = params['ExpandType']
|
8923
|
+
@StartTime = params['StartTime']
|
8924
|
+
@EndTime = params['EndTime']
|
8925
|
+
@OldCpu = params['OldCpu']
|
8926
|
+
@NewCpu = params['NewCpu']
|
8927
|
+
@ExtendCPUNum = params['ExtendCPUNum']
|
8928
|
+
@Error = params['Error']
|
8929
|
+
end
|
8930
|
+
end
|
8931
|
+
|
8756
8932
|
# 导入任务记录
|
8757
8933
|
class ImportRecord < TencentCloud::Common::AbstractModel
|
8758
8934
|
# @param Status: 状态值
|
@@ -9184,10 +9360,14 @@ module TencentCloud
|
|
9184
9360
|
# @type ExpandCpu: Integer
|
9185
9361
|
# @param ClusterInfo: 实例集群版节点信息
|
9186
9362
|
# @type ClusterInfo: Array
|
9363
|
+
# @param AnalysisNodeInfos: 分析引擎节点列表
|
9364
|
+
# @type AnalysisNodeInfos: Array
|
9365
|
+
# @param DeviceBandwidth: 设备带宽,单位G。当DeviceClass不为空时此参数才有效。例:25-表示当前设备带宽为25G;10-表示当前设备带宽为10G。
|
9366
|
+
# @type DeviceBandwidth: Integer
|
9187
9367
|
|
9188
|
-
attr_accessor :WanStatus, :Zone, :InitFlag, :RoVipInfo, :Memory, :Status, :VpcId, :SlaveInfo, :InstanceId, :Volume, :AutoRenew, :ProtectMode, :RoGroups, :SubnetId, :InstanceType, :ProjectId, :Region, :DeadlineTime, :DeployMode, :TaskStatus, :MasterInfo, :DeviceType, :EngineVersion, :InstanceName, :DrInfo, :WanDomain, :WanPort, :PayType, :CreateTime, :Vip, :Vport, :CdbError, :UniqVpcId, :UniqSubnetId, :PhysicalId, :Cpu, :Qps, :ZoneName, :DeviceClass, :DeployGroupId, :ZoneId, :InstanceNodes, :TagList, :EngineType, :MaxDelayTime, :DiskType, :ExpandCpu, :ClusterInfo
|
9368
|
+
attr_accessor :WanStatus, :Zone, :InitFlag, :RoVipInfo, :Memory, :Status, :VpcId, :SlaveInfo, :InstanceId, :Volume, :AutoRenew, :ProtectMode, :RoGroups, :SubnetId, :InstanceType, :ProjectId, :Region, :DeadlineTime, :DeployMode, :TaskStatus, :MasterInfo, :DeviceType, :EngineVersion, :InstanceName, :DrInfo, :WanDomain, :WanPort, :PayType, :CreateTime, :Vip, :Vport, :CdbError, :UniqVpcId, :UniqSubnetId, :PhysicalId, :Cpu, :Qps, :ZoneName, :DeviceClass, :DeployGroupId, :ZoneId, :InstanceNodes, :TagList, :EngineType, :MaxDelayTime, :DiskType, :ExpandCpu, :ClusterInfo, :AnalysisNodeInfos, :DeviceBandwidth
|
9189
9369
|
|
9190
|
-
def initialize(wanstatus=nil, zone=nil, initflag=nil, rovipinfo=nil, memory=nil, status=nil, vpcid=nil, slaveinfo=nil, instanceid=nil, volume=nil, autorenew=nil, protectmode=nil, rogroups=nil, subnetid=nil, instancetype=nil, projectid=nil, region=nil, deadlinetime=nil, deploymode=nil, taskstatus=nil, masterinfo=nil, devicetype=nil, engineversion=nil, instancename=nil, drinfo=nil, wandomain=nil, wanport=nil, paytype=nil, createtime=nil, vip=nil, vport=nil, cdberror=nil, uniqvpcid=nil, uniqsubnetid=nil, physicalid=nil, cpu=nil, qps=nil, zonename=nil, deviceclass=nil, deploygroupid=nil, zoneid=nil, instancenodes=nil, taglist=nil, enginetype=nil, maxdelaytime=nil, disktype=nil, expandcpu=nil, clusterinfo=nil)
|
9370
|
+
def initialize(wanstatus=nil, zone=nil, initflag=nil, rovipinfo=nil, memory=nil, status=nil, vpcid=nil, slaveinfo=nil, instanceid=nil, volume=nil, autorenew=nil, protectmode=nil, rogroups=nil, subnetid=nil, instancetype=nil, projectid=nil, region=nil, deadlinetime=nil, deploymode=nil, taskstatus=nil, masterinfo=nil, devicetype=nil, engineversion=nil, instancename=nil, drinfo=nil, wandomain=nil, wanport=nil, paytype=nil, createtime=nil, vip=nil, vport=nil, cdberror=nil, uniqvpcid=nil, uniqsubnetid=nil, physicalid=nil, cpu=nil, qps=nil, zonename=nil, deviceclass=nil, deploygroupid=nil, zoneid=nil, instancenodes=nil, taglist=nil, enginetype=nil, maxdelaytime=nil, disktype=nil, expandcpu=nil, clusterinfo=nil, analysisnodeinfos=nil, devicebandwidth=nil)
|
9191
9371
|
@WanStatus = wanstatus
|
9192
9372
|
@Zone = zone
|
9193
9373
|
@InitFlag = initflag
|
@@ -9236,6 +9416,8 @@ module TencentCloud
|
|
9236
9416
|
@DiskType = disktype
|
9237
9417
|
@ExpandCpu = expandcpu
|
9238
9418
|
@ClusterInfo = clusterinfo
|
9419
|
+
@AnalysisNodeInfos = analysisnodeinfos
|
9420
|
+
@DeviceBandwidth = devicebandwidth
|
9239
9421
|
end
|
9240
9422
|
|
9241
9423
|
def deserialize(params)
|
@@ -9324,6 +9506,15 @@ module TencentCloud
|
|
9324
9506
|
@ClusterInfo << clusterinfo_tmp
|
9325
9507
|
end
|
9326
9508
|
end
|
9509
|
+
unless params['AnalysisNodeInfos'].nil?
|
9510
|
+
@AnalysisNodeInfos = []
|
9511
|
+
params['AnalysisNodeInfos'].each do |i|
|
9512
|
+
analysisnodeinfo_tmp = AnalysisNodeInfo.new
|
9513
|
+
analysisnodeinfo_tmp.deserialize(i)
|
9514
|
+
@AnalysisNodeInfos << analysisnodeinfo_tmp
|
9515
|
+
end
|
9516
|
+
end
|
9517
|
+
@DeviceBandwidth = params['DeviceBandwidth']
|
9327
9518
|
end
|
9328
9519
|
end
|
9329
9520
|
|
@@ -11858,6 +12049,32 @@ module TencentCloud
|
|
11858
12049
|
end
|
11859
12050
|
end
|
11860
12051
|
|
12052
|
+
# 按周期扩容策略中的所选择的周期
|
12053
|
+
class PeriodStrategy < TencentCloud::Common::AbstractModel
|
12054
|
+
# @param TimeCycle: 扩容周期
|
12055
|
+
# @type TimeCycle: :class:`Tencentcloud::Cdb.v20170320.models.TImeCycle`
|
12056
|
+
# @param TimeInterval: 时间间隔
|
12057
|
+
# @type TimeInterval: :class:`Tencentcloud::Cdb.v20170320.models.TimeInterval`
|
12058
|
+
|
12059
|
+
attr_accessor :TimeCycle, :TimeInterval
|
12060
|
+
|
12061
|
+
def initialize(timecycle=nil, timeinterval=nil)
|
12062
|
+
@TimeCycle = timecycle
|
12063
|
+
@TimeInterval = timeinterval
|
12064
|
+
end
|
12065
|
+
|
12066
|
+
def deserialize(params)
|
12067
|
+
unless params['TimeCycle'].nil?
|
12068
|
+
@TimeCycle = TImeCycle.new
|
12069
|
+
@TimeCycle.deserialize(params['TimeCycle'])
|
12070
|
+
end
|
12071
|
+
unless params['TimeInterval'].nil?
|
12072
|
+
@TimeInterval = TimeInterval.new
|
12073
|
+
@TimeInterval.deserialize(params['TimeInterval'])
|
12074
|
+
end
|
12075
|
+
end
|
12076
|
+
end
|
12077
|
+
|
11861
12078
|
# 数据库代理地址信息
|
11862
12079
|
class ProxyAddress < TencentCloud::Common::AbstractModel
|
11863
12080
|
# @param ProxyAddressId: 代理组地址ID
|
@@ -13408,14 +13625,20 @@ module TencentCloud
|
|
13408
13625
|
# @type ExpandCpu: Integer
|
13409
13626
|
# @param AutoStrategy: 自动扩容策略。Type 为 auto 时必传。
|
13410
13627
|
# @type AutoStrategy: :class:`Tencentcloud::Cdb.v20170320.models.AutoStrategy`
|
13628
|
+
# @param TimeIntervalStrategy: 按时间段扩容策略
|
13629
|
+
# @type TimeIntervalStrategy: :class:`Tencentcloud::Cdb.v20170320.models.TimeIntervalStrategy`
|
13630
|
+
# @param PeriodStrategy: 按周期扩容策略
|
13631
|
+
# @type PeriodStrategy: :class:`Tencentcloud::Cdb.v20170320.models.PeriodStrategy`
|
13411
13632
|
|
13412
|
-
attr_accessor :InstanceId, :Type, :ExpandCpu, :AutoStrategy
|
13633
|
+
attr_accessor :InstanceId, :Type, :ExpandCpu, :AutoStrategy, :TimeIntervalStrategy, :PeriodStrategy
|
13413
13634
|
|
13414
|
-
def initialize(instanceid=nil, type=nil, expandcpu=nil, autostrategy=nil)
|
13635
|
+
def initialize(instanceid=nil, type=nil, expandcpu=nil, autostrategy=nil, timeintervalstrategy=nil, periodstrategy=nil)
|
13415
13636
|
@InstanceId = instanceid
|
13416
13637
|
@Type = type
|
13417
13638
|
@ExpandCpu = expandcpu
|
13418
13639
|
@AutoStrategy = autostrategy
|
13640
|
+
@TimeIntervalStrategy = timeintervalstrategy
|
13641
|
+
@PeriodStrategy = periodstrategy
|
13419
13642
|
end
|
13420
13643
|
|
13421
13644
|
def deserialize(params)
|
@@ -13426,6 +13649,14 @@ module TencentCloud
|
|
13426
13649
|
@AutoStrategy = AutoStrategy.new
|
13427
13650
|
@AutoStrategy.deserialize(params['AutoStrategy'])
|
13428
13651
|
end
|
13652
|
+
unless params['TimeIntervalStrategy'].nil?
|
13653
|
+
@TimeIntervalStrategy = TimeIntervalStrategy.new
|
13654
|
+
@TimeIntervalStrategy.deserialize(params['TimeIntervalStrategy'])
|
13655
|
+
end
|
13656
|
+
unless params['PeriodStrategy'].nil?
|
13657
|
+
@PeriodStrategy = PeriodStrategy.new
|
13658
|
+
@PeriodStrategy.deserialize(params['PeriodStrategy'])
|
13659
|
+
end
|
13429
13660
|
end
|
13430
13661
|
end
|
13431
13662
|
|
@@ -13821,6 +14052,46 @@ module TencentCloud
|
|
13821
14052
|
end
|
13822
14053
|
end
|
13823
14054
|
|
14055
|
+
# 扩容的周期
|
14056
|
+
class TImeCycle < TencentCloud::Common::AbstractModel
|
14057
|
+
# @param Monday: 周一的扩容时间段
|
14058
|
+
# @type Monday: Boolean
|
14059
|
+
# @param Tuesday: 周二的扩容时间段
|
14060
|
+
# @type Tuesday: Boolean
|
14061
|
+
# @param Wednesday: 周三的扩容时间段
|
14062
|
+
# @type Wednesday: Boolean
|
14063
|
+
# @param Thursday: 周四的扩容时间段
|
14064
|
+
# @type Thursday: Boolean
|
14065
|
+
# @param Friday: 周五的扩容时间段
|
14066
|
+
# @type Friday: Boolean
|
14067
|
+
# @param Saturday: 周六的扩容时间段
|
14068
|
+
# @type Saturday: Boolean
|
14069
|
+
# @param Sunday: 周日的扩容时间段
|
14070
|
+
# @type Sunday: Boolean
|
14071
|
+
|
14072
|
+
attr_accessor :Monday, :Tuesday, :Wednesday, :Thursday, :Friday, :Saturday, :Sunday
|
14073
|
+
|
14074
|
+
def initialize(monday=nil, tuesday=nil, wednesday=nil, thursday=nil, friday=nil, saturday=nil, sunday=nil)
|
14075
|
+
@Monday = monday
|
14076
|
+
@Tuesday = tuesday
|
14077
|
+
@Wednesday = wednesday
|
14078
|
+
@Thursday = thursday
|
14079
|
+
@Friday = friday
|
14080
|
+
@Saturday = saturday
|
14081
|
+
@Sunday = sunday
|
14082
|
+
end
|
14083
|
+
|
14084
|
+
def deserialize(params)
|
14085
|
+
@Monday = params['Monday']
|
14086
|
+
@Tuesday = params['Tuesday']
|
14087
|
+
@Wednesday = params['Wednesday']
|
14088
|
+
@Thursday = params['Thursday']
|
14089
|
+
@Friday = params['Friday']
|
14090
|
+
@Saturday = params['Saturday']
|
14091
|
+
@Sunday = params['Sunday']
|
14092
|
+
end
|
14093
|
+
end
|
14094
|
+
|
13824
14095
|
# 数据库表权限
|
13825
14096
|
class TablePrivilege < TencentCloud::Common::AbstractModel
|
13826
14097
|
# @param Database: 数据库名
|
@@ -14058,6 +14329,46 @@ module TencentCloud
|
|
14058
14329
|
end
|
14059
14330
|
end
|
14060
14331
|
|
14332
|
+
# 时间段
|
14333
|
+
class TimeInterval < TencentCloud::Common::AbstractModel
|
14334
|
+
# @param StartTime: 开始时间
|
14335
|
+
# @type StartTime: String
|
14336
|
+
# @param EndTime: 结束时间
|
14337
|
+
# @type EndTime: String
|
14338
|
+
|
14339
|
+
attr_accessor :StartTime, :EndTime
|
14340
|
+
|
14341
|
+
def initialize(starttime=nil, endtime=nil)
|
14342
|
+
@StartTime = starttime
|
14343
|
+
@EndTime = endtime
|
14344
|
+
end
|
14345
|
+
|
14346
|
+
def deserialize(params)
|
14347
|
+
@StartTime = params['StartTime']
|
14348
|
+
@EndTime = params['EndTime']
|
14349
|
+
end
|
14350
|
+
end
|
14351
|
+
|
14352
|
+
# 按时间段扩容策略
|
14353
|
+
class TimeIntervalStrategy < TencentCloud::Common::AbstractModel
|
14354
|
+
# @param StartTime: 开始扩容时间
|
14355
|
+
# @type StartTime: Integer
|
14356
|
+
# @param EndTime: 结束扩容时间
|
14357
|
+
# @type EndTime: Integer
|
14358
|
+
|
14359
|
+
attr_accessor :StartTime, :EndTime
|
14360
|
+
|
14361
|
+
def initialize(starttime=nil, endtime=nil)
|
14362
|
+
@StartTime = starttime
|
14363
|
+
@EndTime = endtime
|
14364
|
+
end
|
14365
|
+
|
14366
|
+
def deserialize(params)
|
14367
|
+
@StartTime = params['StartTime']
|
14368
|
+
@EndTime = params['EndTime']
|
14369
|
+
end
|
14370
|
+
end
|
14371
|
+
|
14061
14372
|
# UpgradeCDBProxyVersion请求参数结构体
|
14062
14373
|
class UpgradeCDBProxyVersionRequest < TencentCloud::Common::AbstractModel
|
14063
14374
|
# @param InstanceId: 实例ID
|
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.1070
|
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-05-
|
11
|
+
date: 2025-05-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|