tencentcloud-sdk-cdb 3.0.1140 → 3.0.1152
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 +113 -45
- 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: f6c123149adcf9467bd2188610fae5ffaa27c549
|
|
4
|
+
data.tar.gz: bcd7eee7a4a0a0f793b23626c7dabe5aaa06135f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9873abf559a3cf93433abd4dad1ecb2a32bb6352637b6a1e95d1eb6b3cfce63e76789ad4642c26f7bc6fcfaab18311cab28d97e6b4ac59266d474148d309ef85
|
|
7
|
+
data.tar.gz: 5765fbfe883be6a4f76d94073a9d0b5dbecf5bdf0e13b4e8f37161bdbd2a5d557a928490b738ad2783fe18244d1409f61fa3ee9c2ad55222c9a46cea5f05493a
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1152
|
data/lib/v20170320/client.rb
CHANGED
|
@@ -3185,6 +3185,30 @@ module TencentCloud
|
|
|
3185
3185
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
3186
3186
|
end
|
|
3187
3187
|
|
|
3188
|
+
# 该接口(ModifyDBInstanceModes)用于更改云数据库的模式。
|
|
3189
|
+
|
|
3190
|
+
# @param request: Request instance for ModifyDBInstanceModes.
|
|
3191
|
+
# @type request: :class:`Tencentcloud::cdb::V20170320::ModifyDBInstanceModesRequest`
|
|
3192
|
+
# @rtype: :class:`Tencentcloud::cdb::V20170320::ModifyDBInstanceModesResponse`
|
|
3193
|
+
def ModifyDBInstanceModes(request)
|
|
3194
|
+
body = send_request('ModifyDBInstanceModes', request.serialize)
|
|
3195
|
+
response = JSON.parse(body)
|
|
3196
|
+
if response['Response'].key?('Error') == false
|
|
3197
|
+
model = ModifyDBInstanceModesResponse.new
|
|
3198
|
+
model.deserialize(response['Response'])
|
|
3199
|
+
model
|
|
3200
|
+
else
|
|
3201
|
+
code = response['Response']['Error']['Code']
|
|
3202
|
+
message = response['Response']['Error']['Message']
|
|
3203
|
+
reqid = response['Response']['RequestId']
|
|
3204
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
3205
|
+
end
|
|
3206
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
3207
|
+
raise e
|
|
3208
|
+
rescue StandardError => e
|
|
3209
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
3210
|
+
end
|
|
3211
|
+
|
|
3188
3212
|
# 本接口(ModifyDBInstanceName)用于修改云数据库实例的名称。
|
|
3189
3213
|
|
|
3190
3214
|
# @param request: Request instance for ModifyDBInstanceName.
|
data/lib/v20170320/models.rb
CHANGED
|
@@ -61,8 +61,8 @@ module TencentCloud
|
|
|
61
61
|
|
|
62
62
|
attr_accessor :Notes, :Host, :User, :ModifyTime, :ModifyPasswordTime, :CreateTime, :MaxUserConnections, :OpenCam
|
|
63
63
|
extend Gem::Deprecate
|
|
64
|
-
deprecate :CreateTime, :none, 2025,
|
|
65
|
-
deprecate :CreateTime=, :none, 2025,
|
|
64
|
+
deprecate :CreateTime, :none, 2025, 10
|
|
65
|
+
deprecate :CreateTime=, :none, 2025, 10
|
|
66
66
|
|
|
67
67
|
def initialize(notes=nil, host=nil, user=nil, modifytime=nil, modifypasswordtime=nil, createtime=nil, maxuserconnections=nil, opencam=nil)
|
|
68
68
|
@Notes = notes
|
|
@@ -448,8 +448,8 @@ module TencentCloud
|
|
|
448
448
|
|
|
449
449
|
attr_accessor :InstanceId, :StartTime, :EndTime, :AggregationConditions, :AuditLogFilter, :LogFilter
|
|
450
450
|
extend Gem::Deprecate
|
|
451
|
-
deprecate :AuditLogFilter, :none, 2025,
|
|
452
|
-
deprecate :AuditLogFilter=, :none, 2025,
|
|
451
|
+
deprecate :AuditLogFilter, :none, 2025, 10
|
|
452
|
+
deprecate :AuditLogFilter=, :none, 2025, 10
|
|
453
453
|
|
|
454
454
|
def initialize(instanceid=nil, starttime=nil, endtime=nil, aggregationconditions=nil, auditlogfilter=nil, logfilter=nil)
|
|
455
455
|
@InstanceId = instanceid
|
|
@@ -1108,10 +1108,10 @@ module TencentCloud
|
|
|
1108
1108
|
|
|
1109
1109
|
attr_accessor :ExpandThreshold, :ShrinkThreshold, :ExpandPeriod, :ShrinkPeriod, :ExpandSecondPeriod, :ShrinkSecondPeriod
|
|
1110
1110
|
extend Gem::Deprecate
|
|
1111
|
-
deprecate :ExpandPeriod, :none, 2025,
|
|
1112
|
-
deprecate :ExpandPeriod=, :none, 2025,
|
|
1113
|
-
deprecate :ShrinkPeriod, :none, 2025,
|
|
1114
|
-
deprecate :ShrinkPeriod=, :none, 2025,
|
|
1111
|
+
deprecate :ExpandPeriod, :none, 2025, 10
|
|
1112
|
+
deprecate :ExpandPeriod=, :none, 2025, 10
|
|
1113
|
+
deprecate :ShrinkPeriod, :none, 2025, 10
|
|
1114
|
+
deprecate :ShrinkPeriod=, :none, 2025, 10
|
|
1115
1115
|
|
|
1116
1116
|
def initialize(expandthreshold=nil, shrinkthreshold=nil, expandperiod=nil, shrinkperiod=nil, expandsecondperiod=nil, shrinksecondperiod=nil)
|
|
1117
1117
|
@ExpandThreshold = expandthreshold
|
|
@@ -1424,8 +1424,8 @@ module TencentCloud
|
|
|
1424
1424
|
|
|
1425
1425
|
attr_accessor :Name, :Size, :Date, :IntranetUrl, :InternetUrl, :Type, :BinlogStartTime, :BinlogFinishTime, :Region, :Status, :RemoteInfo, :CosStorageType, :InstanceId
|
|
1426
1426
|
extend Gem::Deprecate
|
|
1427
|
-
deprecate :InstanceId, :none, 2025,
|
|
1428
|
-
deprecate :InstanceId=, :none, 2025,
|
|
1427
|
+
deprecate :InstanceId, :none, 2025, 10
|
|
1428
|
+
deprecate :InstanceId=, :none, 2025, 10
|
|
1429
1429
|
|
|
1430
1430
|
def initialize(name=nil, size=nil, date=nil, intraneturl=nil, interneturl=nil, type=nil, binlogstarttime=nil, binlogfinishtime=nil, region=nil, status=nil, remoteinfo=nil, cosstoragetype=nil, instanceid=nil)
|
|
1431
1431
|
@Name = name
|
|
@@ -2173,7 +2173,7 @@ module TencentCloud
|
|
|
2173
2173
|
end
|
|
2174
2174
|
end
|
|
2175
2175
|
|
|
2176
|
-
#
|
|
2176
|
+
# 云盘版的节点拓扑配置。
|
|
2177
2177
|
class ClusterTopology < TencentCloud::Common::AbstractModel
|
|
2178
2178
|
# @param ReadWriteNode: RW 节点拓扑。
|
|
2179
2179
|
# 说明:NodeId 可通过 [DescribeDBInstances](https://cloud.tencent.com/document/product/236/15872) 获取。
|
|
@@ -2369,8 +2369,8 @@ module TencentCloud
|
|
|
2369
2369
|
|
|
2370
2370
|
attr_accessor :InstanceId, :StartTime, :EndTime, :Order, :OrderBy, :Filter, :LogFilter, :ColumnFilter
|
|
2371
2371
|
extend Gem::Deprecate
|
|
2372
|
-
deprecate :Filter, :none, 2025,
|
|
2373
|
-
deprecate :Filter=, :none, 2025,
|
|
2372
|
+
deprecate :Filter, :none, 2025, 10
|
|
2373
|
+
deprecate :Filter=, :none, 2025, 10
|
|
2374
2374
|
|
|
2375
2375
|
def initialize(instanceid=nil, starttime=nil, endtime=nil, order=nil, orderby=nil, filter=nil, logfilter=nil, columnfilter=nil)
|
|
2376
2376
|
@InstanceId = instanceid
|
|
@@ -4525,17 +4525,20 @@ module TencentCloud
|
|
|
4525
4525
|
# @type LogType: String
|
|
4526
4526
|
# @param IsClosing: 是否正在关闭审计。目前支持的值包括:"false"-否,"true"-是
|
|
4527
4527
|
# @type IsClosing: String
|
|
4528
|
+
# @param IsOpening: 是否正在开启审计。目前支持的值包括:"false"-否,"true"-是
|
|
4529
|
+
# @type IsOpening: String
|
|
4528
4530
|
# @param CreateTime: 审计服务开通时间。
|
|
4529
4531
|
# @type CreateTime: String
|
|
4530
4532
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4531
4533
|
# @type RequestId: String
|
|
4532
4534
|
|
|
4533
|
-
attr_accessor :LogExpireDay, :LogType, :IsClosing, :CreateTime, :RequestId
|
|
4535
|
+
attr_accessor :LogExpireDay, :LogType, :IsClosing, :IsOpening, :CreateTime, :RequestId
|
|
4534
4536
|
|
|
4535
|
-
def initialize(logexpireday=nil, logtype=nil, isclosing=nil, createtime=nil, requestid=nil)
|
|
4537
|
+
def initialize(logexpireday=nil, logtype=nil, isclosing=nil, isopening=nil, createtime=nil, requestid=nil)
|
|
4536
4538
|
@LogExpireDay = logexpireday
|
|
4537
4539
|
@LogType = logtype
|
|
4538
4540
|
@IsClosing = isclosing
|
|
4541
|
+
@IsOpening = isopening
|
|
4539
4542
|
@CreateTime = createtime
|
|
4540
4543
|
@RequestId = requestid
|
|
4541
4544
|
end
|
|
@@ -4544,6 +4547,7 @@ module TencentCloud
|
|
|
4544
4547
|
@LogExpireDay = params['LogExpireDay']
|
|
4545
4548
|
@LogType = params['LogType']
|
|
4546
4549
|
@IsClosing = params['IsClosing']
|
|
4550
|
+
@IsOpening = params['IsOpening']
|
|
4547
4551
|
@CreateTime = params['CreateTime']
|
|
4548
4552
|
@RequestId = params['RequestId']
|
|
4549
4553
|
end
|
|
@@ -5092,10 +5096,10 @@ module TencentCloud
|
|
|
5092
5096
|
|
|
5093
5097
|
attr_accessor :StartTimeMin, :StartTimeMax, :BackupExpireDays, :BackupMethod, :BinlogExpireDays, :BackupTimeWindow, :EnableBackupPeriodSave, :BackupPeriodSaveDays, :BackupPeriodSaveInterval, :BackupPeriodSaveCount, :StartBackupPeriodSaveDate, :EnableBackupArchive, :BackupArchiveDays, :EnableBinlogArchive, :BinlogArchiveDays, :EnableBackupStandby, :BackupStandbyDays, :EnableBinlogStandby, :BinlogStandbyDays, :RequestId
|
|
5094
5098
|
extend Gem::Deprecate
|
|
5095
|
-
deprecate :StartTimeMin, :none, 2025,
|
|
5096
|
-
deprecate :StartTimeMin=, :none, 2025,
|
|
5097
|
-
deprecate :StartTimeMax, :none, 2025,
|
|
5098
|
-
deprecate :StartTimeMax=, :none, 2025,
|
|
5099
|
+
deprecate :StartTimeMin, :none, 2025, 10
|
|
5100
|
+
deprecate :StartTimeMin=, :none, 2025, 10
|
|
5101
|
+
deprecate :StartTimeMax, :none, 2025, 10
|
|
5102
|
+
deprecate :StartTimeMax=, :none, 2025, 10
|
|
5099
5103
|
|
|
5100
5104
|
def initialize(starttimemin=nil, starttimemax=nil, backupexpiredays=nil, backupmethod=nil, binlogexpiredays=nil, backuptimewindow=nil, enablebackupperiodsave=nil, backupperiodsavedays=nil, backupperiodsaveinterval=nil, backupperiodsavecount=nil, startbackupperiodsavedate=nil, enablebackuparchive=nil, backuparchivedays=nil, enablebinlogarchive=nil, binlogarchivedays=nil, enablebackupstandby=nil, backupstandbydays=nil, enablebinlogstandby=nil, binlogstandbydays=nil, requestid=nil)
|
|
5101
5105
|
@StartTimeMin = starttimemin
|
|
@@ -5283,7 +5287,7 @@ module TencentCloud
|
|
|
5283
5287
|
|
|
5284
5288
|
# DescribeBackupOverview请求参数结构体
|
|
5285
5289
|
class DescribeBackupOverviewRequest < TencentCloud::Common::AbstractModel
|
|
5286
|
-
# @param Product: 需要查询备份概览的云数据库产品类型。可取值为:mysql 指双节点/三节点的高可用实例,mysql-basic
|
|
5290
|
+
# @param Product: 需要查询备份概览的云数据库产品类型。可取值为:mysql 指双节点/三节点的高可用实例,mysql-basic 指单节点(云盘)实例,mysql-cluster 指云盘版实例。
|
|
5287
5291
|
# @type Product: String
|
|
5288
5292
|
|
|
5289
5293
|
attr_accessor :Product
|
|
@@ -5343,7 +5347,7 @@ module TencentCloud
|
|
|
5343
5347
|
|
|
5344
5348
|
# DescribeBackupSummaries请求参数结构体
|
|
5345
5349
|
class DescribeBackupSummariesRequest < TencentCloud::Common::AbstractModel
|
|
5346
|
-
# @param Product: 需要查询备份实时统计的云数据库产品类型。可取值为:mysql 指双节点/三节点的高可用实例,mysql-basic
|
|
5350
|
+
# @param Product: 需要查询备份实时统计的云数据库产品类型。可取值为:mysql 指双节点/三节点的高可用实例,mysql-basic 指单节点(云盘)实例,mysql-cluster 指云盘版实例。
|
|
5347
5351
|
# @type Product: String
|
|
5348
5352
|
# @param Offset: 分页查询数据的偏移量,默认为0。
|
|
5349
5353
|
# @type Offset: Integer
|
|
@@ -5461,7 +5465,7 @@ module TencentCloud
|
|
|
5461
5465
|
|
|
5462
5466
|
# DescribeBinlogBackupOverview请求参数结构体
|
|
5463
5467
|
class DescribeBinlogBackupOverviewRequest < TencentCloud::Common::AbstractModel
|
|
5464
|
-
# @param Product: 需要查询日志备份概览的云数据库产品类型。可取值为:mysql 指双节点/三节点的高可用实例,mysql-basic
|
|
5468
|
+
# @param Product: 需要查询日志备份概览的云数据库产品类型。可取值为:mysql 指双节点/三节点的高可用实例,mysql-basic 指单节点(云盘)实例,mysql-cluster 指云盘版实例。
|
|
5465
5469
|
# @type Product: String
|
|
5466
5470
|
|
|
5467
5471
|
attr_accessor :Product
|
|
@@ -6767,7 +6771,7 @@ module TencentCloud
|
|
|
6767
6771
|
|
|
6768
6772
|
# DescribeDataBackupOverview请求参数结构体
|
|
6769
6773
|
class DescribeDataBackupOverviewRequest < TencentCloud::Common::AbstractModel
|
|
6770
|
-
# @param Product: 需要查询数据备份概览的云数据库产品类型。可取值为:mysql 指双节点/三节点的高可用实例,mysql-basic
|
|
6774
|
+
# @param Product: 需要查询数据备份概览的云数据库产品类型。可取值为:mysql 指双节点/三节点的高可用实例,mysql-basic 指单节点(云盘)实例,mysql-cluster 指云盘版实例。
|
|
6771
6775
|
# @type Product: String
|
|
6772
6776
|
|
|
6773
6777
|
attr_accessor :Product
|
|
@@ -7740,8 +7744,8 @@ module TencentCloud
|
|
|
7740
7744
|
|
|
7741
7745
|
attr_accessor :Count, :CustomConf, :WeightRule, :CustomConfInfo, :RequestId
|
|
7742
7746
|
extend Gem::Deprecate
|
|
7743
|
-
deprecate :CustomConf, :none, 2025,
|
|
7744
|
-
deprecate :CustomConf=, :none, 2025,
|
|
7747
|
+
deprecate :CustomConf, :none, 2025, 10
|
|
7748
|
+
deprecate :CustomConf=, :none, 2025, 10
|
|
7745
7749
|
|
|
7746
7750
|
def initialize(count=nil, customconf=nil, weightrule=nil, customconfinfo=nil, requestid=nil)
|
|
7747
7751
|
@Count = count
|
|
@@ -9329,10 +9333,20 @@ module TencentCloud
|
|
|
9329
9333
|
# @type OldRule: Boolean
|
|
9330
9334
|
# @param RuleTemplateIds: 实例所应用的规则模板。
|
|
9331
9335
|
# @type RuleTemplateIds: Array
|
|
9336
|
+
# @param TrialStatus: 限免状态
|
|
9337
|
+
# @type TrialStatus: String
|
|
9338
|
+
# @param TrialStartTime: 限免开启时间
|
|
9339
|
+
# @type TrialStartTime: Integer
|
|
9340
|
+
# @param TrialDuration: 限免持续时间
|
|
9341
|
+
# @type TrialDuration: Integer
|
|
9342
|
+
# @param TrialCloseTime: 限免关闭时间
|
|
9343
|
+
# @type TrialCloseTime: Integer
|
|
9344
|
+
# @param TrialDescribeLogHours: 限免期查询日志时长
|
|
9345
|
+
# @type TrialDescribeLogHours: Integer
|
|
9332
9346
|
|
|
9333
|
-
attr_accessor :InstanceId, :AuditStatus, :AuditTask, :LogExpireDay, :HighLogExpireDay, :LowLogExpireDay, :BillingAmount, :HighRealStorage, :LowRealStorage, :AuditAll, :CreateAt, :InstanceInfo, :RealStorage, :OldRule, :RuleTemplateIds
|
|
9347
|
+
attr_accessor :InstanceId, :AuditStatus, :AuditTask, :LogExpireDay, :HighLogExpireDay, :LowLogExpireDay, :BillingAmount, :HighRealStorage, :LowRealStorage, :AuditAll, :CreateAt, :InstanceInfo, :RealStorage, :OldRule, :RuleTemplateIds, :TrialStatus, :TrialStartTime, :TrialDuration, :TrialCloseTime, :TrialDescribeLogHours
|
|
9334
9348
|
|
|
9335
|
-
def initialize(instanceid=nil, auditstatus=nil, audittask=nil, logexpireday=nil, highlogexpireday=nil, lowlogexpireday=nil, billingamount=nil, highrealstorage=nil, lowrealstorage=nil, auditall=nil, createat=nil, instanceinfo=nil, realstorage=nil, oldrule=nil, ruletemplateids=nil)
|
|
9349
|
+
def initialize(instanceid=nil, auditstatus=nil, audittask=nil, logexpireday=nil, highlogexpireday=nil, lowlogexpireday=nil, billingamount=nil, highrealstorage=nil, lowrealstorage=nil, auditall=nil, createat=nil, instanceinfo=nil, realstorage=nil, oldrule=nil, ruletemplateids=nil, trialstatus=nil, trialstarttime=nil, trialduration=nil, trialclosetime=nil, trialdescribeloghours=nil)
|
|
9336
9350
|
@InstanceId = instanceid
|
|
9337
9351
|
@AuditStatus = auditstatus
|
|
9338
9352
|
@AuditTask = audittask
|
|
@@ -9348,6 +9362,11 @@ module TencentCloud
|
|
|
9348
9362
|
@RealStorage = realstorage
|
|
9349
9363
|
@OldRule = oldrule
|
|
9350
9364
|
@RuleTemplateIds = ruletemplateids
|
|
9365
|
+
@TrialStatus = trialstatus
|
|
9366
|
+
@TrialStartTime = trialstarttime
|
|
9367
|
+
@TrialDuration = trialduration
|
|
9368
|
+
@TrialCloseTime = trialclosetime
|
|
9369
|
+
@TrialDescribeLogHours = trialdescribeloghours
|
|
9351
9370
|
end
|
|
9352
9371
|
|
|
9353
9372
|
def deserialize(params)
|
|
@@ -9369,6 +9388,11 @@ module TencentCloud
|
|
|
9369
9388
|
@RealStorage = params['RealStorage']
|
|
9370
9389
|
@OldRule = params['OldRule']
|
|
9371
9390
|
@RuleTemplateIds = params['RuleTemplateIds']
|
|
9391
|
+
@TrialStatus = params['TrialStatus']
|
|
9392
|
+
@TrialStartTime = params['TrialStartTime']
|
|
9393
|
+
@TrialDuration = params['TrialDuration']
|
|
9394
|
+
@TrialCloseTime = params['TrialCloseTime']
|
|
9395
|
+
@TrialDescribeLogHours = params['TrialDescribeLogHours']
|
|
9372
9396
|
end
|
|
9373
9397
|
end
|
|
9374
9398
|
|
|
@@ -9708,8 +9732,8 @@ module TencentCloud
|
|
|
9708
9732
|
|
|
9709
9733
|
attr_accessor :AsyncRequestId, :RequestId
|
|
9710
9734
|
extend Gem::Deprecate
|
|
9711
|
-
deprecate :AsyncRequestId, :none, 2025,
|
|
9712
|
-
deprecate :AsyncRequestId=, :none, 2025,
|
|
9735
|
+
deprecate :AsyncRequestId, :none, 2025, 10
|
|
9736
|
+
deprecate :AsyncRequestId=, :none, 2025, 10
|
|
9713
9737
|
|
|
9714
9738
|
def initialize(asyncrequestid=nil, requestid=nil)
|
|
9715
9739
|
@AsyncRequestId = asyncrequestid
|
|
@@ -10449,8 +10473,8 @@ module TencentCloud
|
|
|
10449
10473
|
|
|
10450
10474
|
attr_accessor :InstanceId, :LogExpireDay, :HighLogExpireDay, :AuditAll, :AuditRuleFilters, :RuleTemplateIds
|
|
10451
10475
|
extend Gem::Deprecate
|
|
10452
|
-
deprecate :AuditRuleFilters, :none, 2025,
|
|
10453
|
-
deprecate :AuditRuleFilters=, :none, 2025,
|
|
10476
|
+
deprecate :AuditRuleFilters, :none, 2025, 10
|
|
10477
|
+
deprecate :AuditRuleFilters=, :none, 2025, 10
|
|
10454
10478
|
|
|
10455
10479
|
def initialize(instanceid=nil, logexpireday=nil, highlogexpireday=nil, auditall=nil, auditrulefilters=nil, ruletemplateids=nil)
|
|
10456
10480
|
@InstanceId = instanceid
|
|
@@ -10948,6 +10972,50 @@ module TencentCloud
|
|
|
10948
10972
|
end
|
|
10949
10973
|
end
|
|
10950
10974
|
|
|
10975
|
+
# ModifyDBInstanceModes请求参数结构体
|
|
10976
|
+
class ModifyDBInstanceModesRequest < TencentCloud::Common::AbstractModel
|
|
10977
|
+
# @param InstanceId: 实例ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例ID相同。
|
|
10978
|
+
# @type InstanceId: String
|
|
10979
|
+
# @param Mode: 云数据库的模式,目前仅支持传入 "protectMode" 表示修改主从同步方式。
|
|
10980
|
+
# @type Mode: String
|
|
10981
|
+
# @param ProtectMode: 数据同步方式,可选值:0-异步复制,1-半同步复制,2-强同步复制。
|
|
10982
|
+
# @type ProtectMode: Integer
|
|
10983
|
+
|
|
10984
|
+
attr_accessor :InstanceId, :Mode, :ProtectMode
|
|
10985
|
+
|
|
10986
|
+
def initialize(instanceid=nil, mode=nil, protectmode=nil)
|
|
10987
|
+
@InstanceId = instanceid
|
|
10988
|
+
@Mode = mode
|
|
10989
|
+
@ProtectMode = protectmode
|
|
10990
|
+
end
|
|
10991
|
+
|
|
10992
|
+
def deserialize(params)
|
|
10993
|
+
@InstanceId = params['InstanceId']
|
|
10994
|
+
@Mode = params['Mode']
|
|
10995
|
+
@ProtectMode = params['ProtectMode']
|
|
10996
|
+
end
|
|
10997
|
+
end
|
|
10998
|
+
|
|
10999
|
+
# ModifyDBInstanceModes返回参数结构体
|
|
11000
|
+
class ModifyDBInstanceModesResponse < TencentCloud::Common::AbstractModel
|
|
11001
|
+
# @param AsyncRequestId: 异步任务的请求ID,可使用此ID查询异步任务的执行结果。
|
|
11002
|
+
# @type AsyncRequestId: String
|
|
11003
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11004
|
+
# @type RequestId: String
|
|
11005
|
+
|
|
11006
|
+
attr_accessor :AsyncRequestId, :RequestId
|
|
11007
|
+
|
|
11008
|
+
def initialize(asyncrequestid=nil, requestid=nil)
|
|
11009
|
+
@AsyncRequestId = asyncrequestid
|
|
11010
|
+
@RequestId = requestid
|
|
11011
|
+
end
|
|
11012
|
+
|
|
11013
|
+
def deserialize(params)
|
|
11014
|
+
@AsyncRequestId = params['AsyncRequestId']
|
|
11015
|
+
@RequestId = params['RequestId']
|
|
11016
|
+
end
|
|
11017
|
+
end
|
|
11018
|
+
|
|
10951
11019
|
# ModifyDBInstanceName请求参数结构体
|
|
10952
11020
|
class ModifyDBInstanceNameRequest < TencentCloud::Common::AbstractModel
|
|
10953
11021
|
# @param InstanceId: 实例 ID,格式如:cdb-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同,可使用 [查询实例列表](https://cloud.tencent.com/document/api/236/15872) 接口获取,其值为输出参数中字段 InstanceId 的值。
|
|
@@ -11071,7 +11139,7 @@ module TencentCloud
|
|
|
11071
11139
|
# @type SecurityGroupIds: Array
|
|
11072
11140
|
# @param ForReadonlyInstance: 当传入只读实例 ID 时,默认操作的是对应只读组的安全组。如果需要操作只读实例 ID 的安全组, 需要将该入参置为 True。默认为 False。
|
|
11073
11141
|
# @type ForReadonlyInstance: Boolean
|
|
11074
|
-
# @param OpResourceId:
|
|
11142
|
+
# @param OpResourceId: 变更云盘版实例只读组时,InstanceId 传实例 ID,需要额外指定该参数表示操作只读组。 如果操作读写节点则不需指定该参数。
|
|
11075
11143
|
# @type OpResourceId: String
|
|
11076
11144
|
|
|
11077
11145
|
attr_accessor :InstanceId, :SecurityGroupIds, :ForReadonlyInstance, :OpResourceId
|
|
@@ -11156,8 +11224,8 @@ module TencentCloud
|
|
|
11156
11224
|
|
|
11157
11225
|
attr_accessor :AsyncRequestId, :RequestId
|
|
11158
11226
|
extend Gem::Deprecate
|
|
11159
|
-
deprecate :AsyncRequestId, :none, 2025,
|
|
11160
|
-
deprecate :AsyncRequestId=, :none, 2025,
|
|
11227
|
+
deprecate :AsyncRequestId, :none, 2025, 10
|
|
11228
|
+
deprecate :AsyncRequestId=, :none, 2025, 10
|
|
11161
11229
|
|
|
11162
11230
|
def initialize(asyncrequestid=nil, requestid=nil)
|
|
11163
11231
|
@AsyncRequestId = asyncrequestid
|
|
@@ -11582,8 +11650,8 @@ module TencentCloud
|
|
|
11582
11650
|
|
|
11583
11651
|
attr_accessor :RoGroupId, :RoGroupInfo, :RoWeightValues, :IsBalanceRoLoad, :ReplicationDelayTime
|
|
11584
11652
|
extend Gem::Deprecate
|
|
11585
|
-
deprecate :ReplicationDelayTime, :none, 2025,
|
|
11586
|
-
deprecate :ReplicationDelayTime=, :none, 2025,
|
|
11653
|
+
deprecate :ReplicationDelayTime, :none, 2025, 10
|
|
11654
|
+
deprecate :ReplicationDelayTime=, :none, 2025, 10
|
|
11587
11655
|
|
|
11588
11656
|
def initialize(rogroupid=nil, rogroupinfo=nil, roweightvalues=nil, isbalanceroload=nil, replicationdelaytime=nil)
|
|
11589
11657
|
@RoGroupId = rogroupid
|
|
@@ -11814,8 +11882,8 @@ module TencentCloud
|
|
|
11814
11882
|
|
|
11815
11883
|
attr_accessor :InstanceId, :LogExpireDay, :HighLogExpireDay, :AuditRuleFilters, :RuleTemplateIds, :AuditAll
|
|
11816
11884
|
extend Gem::Deprecate
|
|
11817
|
-
deprecate :AuditRuleFilters, :none, 2025,
|
|
11818
|
-
deprecate :AuditRuleFilters=, :none, 2025,
|
|
11885
|
+
deprecate :AuditRuleFilters, :none, 2025, 10
|
|
11886
|
+
deprecate :AuditRuleFilters=, :none, 2025, 10
|
|
11819
11887
|
|
|
11820
11888
|
def initialize(instanceid=nil, logexpireday=nil, highlogexpireday=nil, auditrulefilters=nil, ruletemplateids=nil, auditall=nil)
|
|
11821
11889
|
@InstanceId = instanceid
|
|
@@ -12094,8 +12162,8 @@ module TencentCloud
|
|
|
12094
12162
|
|
|
12095
12163
|
attr_accessor :InstanceId, :ParamName, :OldValue, :NewValue, :IsSucess, :ModifyTime, :IsSuccess
|
|
12096
12164
|
extend Gem::Deprecate
|
|
12097
|
-
deprecate :IsSucess, :none, 2025,
|
|
12098
|
-
deprecate :IsSucess=, :none, 2025,
|
|
12165
|
+
deprecate :IsSucess, :none, 2025, 10
|
|
12166
|
+
deprecate :IsSucess=, :none, 2025, 10
|
|
12099
12167
|
|
|
12100
12168
|
def initialize(instanceid=nil, paramname=nil, oldvalue=nil, newvalue=nil, issucess=nil, modifytime=nil, issuccess=nil)
|
|
12101
12169
|
@InstanceId = instanceid
|
|
@@ -12577,11 +12645,11 @@ module TencentCloud
|
|
|
12577
12645
|
end
|
|
12578
12646
|
end
|
|
12579
12647
|
|
|
12580
|
-
#
|
|
12648
|
+
# 云盘版 RW 节点的配置。
|
|
12581
12649
|
class ReadWriteNode < TencentCloud::Common::AbstractModel
|
|
12582
12650
|
# @param Zone: RW 节点所在可用区。
|
|
12583
12651
|
# @type Zone: String
|
|
12584
|
-
# @param NodeId:
|
|
12652
|
+
# @param NodeId: 升级云盘版实例时,如果要调整只读节点可用区,需要指定节点 ID。
|
|
12585
12653
|
# @type NodeId: String
|
|
12586
12654
|
|
|
12587
12655
|
attr_accessor :Zone, :NodeId
|
|
@@ -12597,13 +12665,13 @@ module TencentCloud
|
|
|
12597
12665
|
end
|
|
12598
12666
|
end
|
|
12599
12667
|
|
|
12600
|
-
#
|
|
12668
|
+
# 云盘版的 RO 节点配置。
|
|
12601
12669
|
class ReadonlyNode < TencentCloud::Common::AbstractModel
|
|
12602
12670
|
# @param IsRandomZone: 是否分布在随机可用区。传入YES表示随机可用区。否则使用Zone指定的可用区。
|
|
12603
12671
|
# @type IsRandomZone: String
|
|
12604
12672
|
# @param Zone: 指定该节点分布在哪个可用区。
|
|
12605
12673
|
# @type Zone: String
|
|
12606
|
-
# @param NodeId:
|
|
12674
|
+
# @param NodeId: 升级云盘版实例时,如果要调整只读节点可用区,需要指定节点 ID。
|
|
12607
12675
|
# @type NodeId: String
|
|
12608
12676
|
|
|
12609
12677
|
attr_accessor :IsRandomZone, :Zone, :NodeId
|
|
@@ -14738,7 +14806,7 @@ module TencentCloud
|
|
|
14738
14806
|
# @type ZoneId: String
|
|
14739
14807
|
# @param RoTransType: 针对跨集群搬迁场景,选择同可用区RO的处理逻辑。together-同可用区RO跟随主实例迁移至目标可用区(默认选项),severally-同可用区RO保持原部署模式、不迁移至目标可用区。
|
|
14740
14808
|
# @type RoTransType: String
|
|
14741
|
-
# @param ClusterTopology:
|
|
14809
|
+
# @param ClusterTopology: 云盘版节点拓扑配置。
|
|
14742
14810
|
# @type ClusterTopology: :class:`Tencentcloud::Cdb.v20170320.models.ClusterTopology`
|
|
14743
14811
|
# @param CheckFastUpgradeReboot: 检查原地升级是否需要重启,1 检查, 0 不检查。如果值为1,检查为原地升级需要重启,则会停止升级并进行返回提示,如果为原地升级不重启,则正常执行升级流程。
|
|
14744
14812
|
# @type CheckFastUpgradeReboot: Integer
|
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.1152
|
|
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-
|
|
11
|
+
date: 2025-10-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|