tencentcloud-sdk-cynosdb 3.0.1094 → 3.0.1106
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/v20190107/client.rb +24 -0
- data/lib/v20190107/models.rb +105 -28
- 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: 9e351a778cab1653d517891c88677242dfd36609
|
4
|
+
data.tar.gz: 5d1ecb8cd1eaee816516af98289356ed58ea1ebc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5a19640bfb0ddbb724bf700b137dd6bcbf8729a487d9c578f65c22ee25dcf4c6dd0326405867e199646940e9fba71882f87ecfb44876bbdd91ae5aaa5e4e18e
|
7
|
+
data.tar.gz: 02861fa88c365363d9473348f0ddf0cb86d3c476b44e7b10a8f404a331a6031570c91c6b7f100882e71cee1371f91fbacc7b3f5775ae48a085a343203659b48e
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1106
|
data/lib/v20190107/client.rb
CHANGED
@@ -3533,6 +3533,30 @@ module TencentCloud
|
|
3533
3533
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3534
3534
|
end
|
3535
3535
|
|
3536
|
+
# 回放实例审计日志
|
3537
|
+
|
3538
|
+
# @param request: Request instance for ReplayInstanceAuditLog.
|
3539
|
+
# @type request: :class:`Tencentcloud::cynosdb::V20190107::ReplayInstanceAuditLogRequest`
|
3540
|
+
# @rtype: :class:`Tencentcloud::cynosdb::V20190107::ReplayInstanceAuditLogResponse`
|
3541
|
+
def ReplayInstanceAuditLog(request)
|
3542
|
+
body = send_request('ReplayInstanceAuditLog', request.serialize)
|
3543
|
+
response = JSON.parse(body)
|
3544
|
+
if response['Response'].key?('Error') == false
|
3545
|
+
model = ReplayInstanceAuditLogResponse.new
|
3546
|
+
model.deserialize(response['Response'])
|
3547
|
+
model
|
3548
|
+
else
|
3549
|
+
code = response['Response']['Error']['Code']
|
3550
|
+
message = response['Response']['Error']['Message']
|
3551
|
+
reqid = response['Response']['RequestId']
|
3552
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
3553
|
+
end
|
3554
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
3555
|
+
raise e
|
3556
|
+
rescue StandardError => e
|
3557
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
3558
|
+
end
|
3559
|
+
|
3536
3560
|
# 本接口(ResetAccountPassword)用于修改数据库账号密码。
|
3537
3561
|
|
3538
3562
|
# @param request: Request instance for ResetAccountPassword.
|
data/lib/v20190107/models.rb
CHANGED
@@ -165,19 +165,23 @@ module TencentCloud
|
|
165
165
|
# @type SlaveZone: String
|
166
166
|
# @param BinlogSyncWay: binlog同步方式。默认值:async。可选值:sync、semisync、async
|
167
167
|
# @type BinlogSyncWay: String
|
168
|
+
# @param SemiSyncTimeout: 半同步超时时间,单位ms。为保证业务稳定性,半同步复制存在退化逻辑,当主可用区集群在等待备可用区集群确认事务时若超过该超时时间,复制方式将降为异步复制。最低设置为1000ms,最高支持4294967295ms,默认10000ms。
|
169
|
+
# @type SemiSyncTimeout: Integer
|
168
170
|
|
169
|
-
attr_accessor :ClusterId, :SlaveZone, :BinlogSyncWay
|
171
|
+
attr_accessor :ClusterId, :SlaveZone, :BinlogSyncWay, :SemiSyncTimeout
|
170
172
|
|
171
|
-
def initialize(clusterid=nil, slavezone=nil, binlogsyncway=nil)
|
173
|
+
def initialize(clusterid=nil, slavezone=nil, binlogsyncway=nil, semisynctimeout=nil)
|
172
174
|
@ClusterId = clusterid
|
173
175
|
@SlaveZone = slavezone
|
174
176
|
@BinlogSyncWay = binlogsyncway
|
177
|
+
@SemiSyncTimeout = semisynctimeout
|
175
178
|
end
|
176
179
|
|
177
180
|
def deserialize(params)
|
178
181
|
@ClusterId = params['ClusterId']
|
179
182
|
@SlaveZone = params['SlaveZone']
|
180
183
|
@BinlogSyncWay = params['BinlogSyncWay']
|
184
|
+
@SemiSyncTimeout = params['SemiSyncTimeout']
|
181
185
|
end
|
182
186
|
end
|
183
187
|
|
@@ -243,8 +247,8 @@ module TencentCloud
|
|
243
247
|
|
244
248
|
attr_accessor :ClusterId, :Cpu, :Memory, :ReadOnlyCount, :DeviceType, :InstanceGrpId, :VpcId, :SubnetId, :Port, :InstanceName, :AutoVoucher, :DbType, :OrderSource, :DealMode, :ParamTemplateId, :InstanceParams, :SecurityGroupIds, :UpgradeProxy
|
245
249
|
extend Gem::Deprecate
|
246
|
-
deprecate :InstanceGrpId, :none, 2025,
|
247
|
-
deprecate :InstanceGrpId=, :none, 2025,
|
250
|
+
deprecate :InstanceGrpId, :none, 2025, 7
|
251
|
+
deprecate :InstanceGrpId=, :none, 2025, 7
|
248
252
|
|
249
253
|
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)
|
250
254
|
@ClusterId = clusterid
|
@@ -1113,10 +1117,10 @@ module TencentCloud
|
|
1113
1117
|
|
1114
1118
|
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, :TaskProgressInfo, :GdnTaskInfo
|
1115
1119
|
extend Gem::Deprecate
|
1116
|
-
deprecate :InstanceGrpId, :none, 2025,
|
1117
|
-
deprecate :InstanceGrpId=, :none, 2025,
|
1118
|
-
deprecate :ModifyParamsData, :none, 2025,
|
1119
|
-
deprecate :ModifyParamsData=, :none, 2025,
|
1120
|
+
deprecate :InstanceGrpId, :none, 2025, 7
|
1121
|
+
deprecate :InstanceGrpId=, :none, 2025, 7
|
1122
|
+
deprecate :ModifyParamsData, :none, 2025, 7
|
1123
|
+
deprecate :ModifyParamsData=, :none, 2025, 7
|
1120
1124
|
|
1121
1125
|
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, taskprogressinfo=nil, gdntaskinfo=nil)
|
1122
1126
|
@ID = id
|
@@ -1574,8 +1578,8 @@ module TencentCloud
|
|
1574
1578
|
|
1575
1579
|
attr_accessor :InstanceGrpId, :InstanceGroupId, :InstanceId
|
1576
1580
|
extend Gem::Deprecate
|
1577
|
-
deprecate :InstanceGrpId, :none, 2025,
|
1578
|
-
deprecate :InstanceGrpId=, :none, 2025,
|
1581
|
+
deprecate :InstanceGrpId, :none, 2025, 7
|
1582
|
+
deprecate :InstanceGrpId=, :none, 2025, 7
|
1579
1583
|
|
1580
1584
|
def initialize(instancegrpid=nil, instancegroupid=nil, instanceid=nil)
|
1581
1585
|
@InstanceGrpId = instancegrpid
|
@@ -1944,8 +1948,8 @@ module TencentCloud
|
|
1944
1948
|
|
1945
1949
|
attr_accessor :InstanceId, :StartTime, :EndTime, :Order, :OrderBy, :Filter, :LogFilter, :ColumnFilter
|
1946
1950
|
extend Gem::Deprecate
|
1947
|
-
deprecate :Filter, :none, 2025,
|
1948
|
-
deprecate :Filter=, :none, 2025,
|
1951
|
+
deprecate :Filter, :none, 2025, 7
|
1952
|
+
deprecate :Filter=, :none, 2025, 7
|
1949
1953
|
|
1950
1954
|
def initialize(instanceid=nil, starttime=nil, endtime=nil, order=nil, orderby=nil, filter=nil, logfilter=nil, columnfilter=nil)
|
1951
1955
|
@InstanceId = instanceid
|
@@ -4902,8 +4906,8 @@ module TencentCloud
|
|
4902
4906
|
|
4903
4907
|
attr_accessor :InstanceId, :StartTime, :EndTime, :Order, :OrderBy, :Filter, :Limit, :Offset, :LogFilter
|
4904
4908
|
extend Gem::Deprecate
|
4905
|
-
deprecate :Filter, :none, 2025,
|
4906
|
-
deprecate :Filter=, :none, 2025,
|
4909
|
+
deprecate :Filter, :none, 2025, 7
|
4910
|
+
deprecate :Filter=, :none, 2025, 7
|
4907
4911
|
|
4908
4912
|
def initialize(instanceid=nil, starttime=nil, endtime=nil, order=nil, orderby=nil, filter=nil, limit=nil, offset=nil, logfilter=nil)
|
4909
4913
|
@InstanceId = instanceid
|
@@ -5940,8 +5944,8 @@ module TencentCloud
|
|
5940
5944
|
|
5941
5945
|
attr_accessor :TotalCount, :InstanceGrpInfoList, :InstanceGroupInfoList, :RequestId
|
5942
5946
|
extend Gem::Deprecate
|
5943
|
-
deprecate :InstanceGrpInfoList, :none, 2025,
|
5944
|
-
deprecate :InstanceGrpInfoList=, :none, 2025,
|
5947
|
+
deprecate :InstanceGrpInfoList, :none, 2025, 7
|
5948
|
+
deprecate :InstanceGrpInfoList=, :none, 2025, 7
|
5945
5949
|
|
5946
5950
|
def initialize(totalcount=nil, instancegrpinfolist=nil, instancegroupinfolist=nil, requestid=nil)
|
5947
5951
|
@TotalCount = totalcount
|
@@ -6338,8 +6342,8 @@ module TencentCloud
|
|
6338
6342
|
|
6339
6343
|
attr_accessor :InstanceId, :InstanceGroupId
|
6340
6344
|
extend Gem::Deprecate
|
6341
|
-
deprecate :InstanceId, :none, 2025,
|
6342
|
-
deprecate :InstanceId=, :none, 2025,
|
6345
|
+
deprecate :InstanceId, :none, 2025, 7
|
6346
|
+
deprecate :InstanceId=, :none, 2025, 7
|
6343
6347
|
|
6344
6348
|
def initialize(instanceid=nil, instancegroupid=nil)
|
6345
6349
|
@InstanceId = instanceid
|
@@ -10364,14 +10368,17 @@ module TencentCloud
|
|
10364
10368
|
# @type NewSlaveZone: String
|
10365
10369
|
# @param BinlogSyncWay: binlog同步方式。默认值:async。可选值:sync、semisync、async
|
10366
10370
|
# @type BinlogSyncWay: String
|
10371
|
+
# @param SemiSyncTimeout: 半同步超时时间,单位ms。为保证业务稳定性,半同步复制存在退化逻辑,当主可用区集群在等待备可用区集群确认事务时若超过该超时时间,复制方式将降为异步复制。最低设置为1000ms,最高支持4294967295ms,默认10000ms。
|
10372
|
+
# @type SemiSyncTimeout: Integer
|
10367
10373
|
|
10368
|
-
attr_accessor :ClusterId, :OldSlaveZone, :NewSlaveZone, :BinlogSyncWay
|
10374
|
+
attr_accessor :ClusterId, :OldSlaveZone, :NewSlaveZone, :BinlogSyncWay, :SemiSyncTimeout
|
10369
10375
|
|
10370
|
-
def initialize(clusterid=nil, oldslavezone=nil, newslavezone=nil, binlogsyncway=nil)
|
10376
|
+
def initialize(clusterid=nil, oldslavezone=nil, newslavezone=nil, binlogsyncway=nil, semisynctimeout=nil)
|
10371
10377
|
@ClusterId = clusterid
|
10372
10378
|
@OldSlaveZone = oldslavezone
|
10373
10379
|
@NewSlaveZone = newslavezone
|
10374
10380
|
@BinlogSyncWay = binlogsyncway
|
10381
|
+
@SemiSyncTimeout = semisynctimeout
|
10375
10382
|
end
|
10376
10383
|
|
10377
10384
|
def deserialize(params)
|
@@ -10379,6 +10386,7 @@ module TencentCloud
|
|
10379
10386
|
@OldSlaveZone = params['OldSlaveZone']
|
10380
10387
|
@NewSlaveZone = params['NewSlaveZone']
|
10381
10388
|
@BinlogSyncWay = params['BinlogSyncWay']
|
10389
|
+
@SemiSyncTimeout = params['SemiSyncTimeout']
|
10382
10390
|
end
|
10383
10391
|
end
|
10384
10392
|
|
@@ -11244,8 +11252,8 @@ module TencentCloud
|
|
11244
11252
|
|
11245
11253
|
attr_accessor :ClusterId, :InstanceGrpId, :InstanceGroupId, :Vip, :Vport, :DbType, :OldIpReserveHours
|
11246
11254
|
extend Gem::Deprecate
|
11247
|
-
deprecate :InstanceGrpId, :none, 2025,
|
11248
|
-
deprecate :InstanceGrpId=, :none, 2025,
|
11255
|
+
deprecate :InstanceGrpId, :none, 2025, 7
|
11256
|
+
deprecate :InstanceGrpId=, :none, 2025, 7
|
11249
11257
|
|
11250
11258
|
def initialize(clusterid=nil, instancegrpid=nil, instancegroupid=nil, vip=nil, vport=nil, dbtype=nil, oldipreservehours=nil)
|
11251
11259
|
@ClusterId = clusterid
|
@@ -11545,8 +11553,8 @@ module TencentCloud
|
|
11545
11553
|
|
11546
11554
|
attr_accessor :InstanceId, :LogExpireDay, :HighLogExpireDay, :AuditRuleFilters, :RuleTemplateIds, :AuditAll
|
11547
11555
|
extend Gem::Deprecate
|
11548
|
-
deprecate :AuditRuleFilters, :none, 2025,
|
11549
|
-
deprecate :AuditRuleFilters=, :none, 2025,
|
11556
|
+
deprecate :AuditRuleFilters, :none, 2025, 7
|
11557
|
+
deprecate :AuditRuleFilters=, :none, 2025, 7
|
11550
11558
|
|
11551
11559
|
def initialize(instanceid=nil, logexpireday=nil, highlogexpireday=nil, auditrulefilters=nil, ruletemplateids=nil, auditall=nil)
|
11552
11560
|
@InstanceId = instanceid
|
@@ -11853,8 +11861,8 @@ module TencentCloud
|
|
11853
11861
|
|
11854
11862
|
attr_accessor :InstanceGrpId, :InstanceId, :InstanceGroupId
|
11855
11863
|
extend Gem::Deprecate
|
11856
|
-
deprecate :InstanceGrpId, :none, 2025,
|
11857
|
-
deprecate :InstanceGrpId=, :none, 2025,
|
11864
|
+
deprecate :InstanceGrpId, :none, 2025, 7
|
11865
|
+
deprecate :InstanceGrpId=, :none, 2025, 7
|
11858
11866
|
|
11859
11867
|
def initialize(instancegrpid=nil, instanceid=nil, instancegroupid=nil)
|
11860
11868
|
@InstanceGrpId = instancegrpid
|
@@ -13071,6 +13079,71 @@ module TencentCloud
|
|
13071
13079
|
end
|
13072
13080
|
end
|
13073
13081
|
|
13082
|
+
# ReplayInstanceAuditLog请求参数结构体
|
13083
|
+
class ReplayInstanceAuditLogRequest < TencentCloud::Common::AbstractModel
|
13084
|
+
# @param SourceClusterId: 源集群id
|
13085
|
+
# @type SourceClusterId: String
|
13086
|
+
# @param SourceInstanceId: 源实例id
|
13087
|
+
# @type SourceInstanceId: String
|
13088
|
+
# @param TargetClusterId: 目标集群id
|
13089
|
+
# 目标集群必须为原始集群三天内克隆出的集群。
|
13090
|
+
# @type TargetClusterId: String
|
13091
|
+
# @param TargetInstanceId: 目标实例id
|
13092
|
+
# @type TargetInstanceId: String
|
13093
|
+
# @param TargetUserName: 用户名.需要host为%的用户名
|
13094
|
+
# @type TargetUserName: String
|
13095
|
+
# @param TargetPassword: 密码
|
13096
|
+
# @type TargetPassword: String
|
13097
|
+
# @param StartTime: 开始时间。时间格式为:yyyy-DD-mm hh:mm:ss
|
13098
|
+
# @type StartTime: String
|
13099
|
+
# @param EndTime: 结束时间。时间格式为:yyyy-DD-mm hh:mm:ss
|
13100
|
+
# @type EndTime: String
|
13101
|
+
|
13102
|
+
attr_accessor :SourceClusterId, :SourceInstanceId, :TargetClusterId, :TargetInstanceId, :TargetUserName, :TargetPassword, :StartTime, :EndTime
|
13103
|
+
|
13104
|
+
def initialize(sourceclusterid=nil, sourceinstanceid=nil, targetclusterid=nil, targetinstanceid=nil, targetusername=nil, targetpassword=nil, starttime=nil, endtime=nil)
|
13105
|
+
@SourceClusterId = sourceclusterid
|
13106
|
+
@SourceInstanceId = sourceinstanceid
|
13107
|
+
@TargetClusterId = targetclusterid
|
13108
|
+
@TargetInstanceId = targetinstanceid
|
13109
|
+
@TargetUserName = targetusername
|
13110
|
+
@TargetPassword = targetpassword
|
13111
|
+
@StartTime = starttime
|
13112
|
+
@EndTime = endtime
|
13113
|
+
end
|
13114
|
+
|
13115
|
+
def deserialize(params)
|
13116
|
+
@SourceClusterId = params['SourceClusterId']
|
13117
|
+
@SourceInstanceId = params['SourceInstanceId']
|
13118
|
+
@TargetClusterId = params['TargetClusterId']
|
13119
|
+
@TargetInstanceId = params['TargetInstanceId']
|
13120
|
+
@TargetUserName = params['TargetUserName']
|
13121
|
+
@TargetPassword = params['TargetPassword']
|
13122
|
+
@StartTime = params['StartTime']
|
13123
|
+
@EndTime = params['EndTime']
|
13124
|
+
end
|
13125
|
+
end
|
13126
|
+
|
13127
|
+
# ReplayInstanceAuditLog返回参数结构体
|
13128
|
+
class ReplayInstanceAuditLogResponse < TencentCloud::Common::AbstractModel
|
13129
|
+
# @param TaskId: 任务id
|
13130
|
+
# @type TaskId: Integer
|
13131
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
13132
|
+
# @type RequestId: String
|
13133
|
+
|
13134
|
+
attr_accessor :TaskId, :RequestId
|
13135
|
+
|
13136
|
+
def initialize(taskid=nil, requestid=nil)
|
13137
|
+
@TaskId = taskid
|
13138
|
+
@RequestId = requestid
|
13139
|
+
end
|
13140
|
+
|
13141
|
+
def deserialize(params)
|
13142
|
+
@TaskId = params['TaskId']
|
13143
|
+
@RequestId = params['RequestId']
|
13144
|
+
end
|
13145
|
+
end
|
13146
|
+
|
13074
13147
|
# ResetAccountPassword请求参数结构体
|
13075
13148
|
class ResetAccountPasswordRequest < TencentCloud::Common::AbstractModel
|
13076
13149
|
# @param AccountName: 数据库账号名
|
@@ -14369,17 +14442,21 @@ module TencentCloud
|
|
14369
14442
|
# @type Zone: String
|
14370
14443
|
# @param BinlogSyncWay: binlog同步方式
|
14371
14444
|
# @type BinlogSyncWay: String
|
14445
|
+
# @param SemiSyncTimeout: 半同步超时时间,单位ms
|
14446
|
+
# @type SemiSyncTimeout: Integer
|
14372
14447
|
|
14373
|
-
attr_accessor :Zone, :BinlogSyncWay
|
14448
|
+
attr_accessor :Zone, :BinlogSyncWay, :SemiSyncTimeout
|
14374
14449
|
|
14375
|
-
def initialize(zone=nil, binlogsyncway=nil)
|
14450
|
+
def initialize(zone=nil, binlogsyncway=nil, semisynctimeout=nil)
|
14376
14451
|
@Zone = zone
|
14377
14452
|
@BinlogSyncWay = binlogsyncway
|
14453
|
+
@SemiSyncTimeout = semisynctimeout
|
14378
14454
|
end
|
14379
14455
|
|
14380
14456
|
def deserialize(params)
|
14381
14457
|
@Zone = params['Zone']
|
14382
14458
|
@BinlogSyncWay = params['BinlogSyncWay']
|
14459
|
+
@SemiSyncTimeout = params['SemiSyncTimeout']
|
14383
14460
|
end
|
14384
14461
|
end
|
14385
14462
|
|
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.1106
|
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-07-
|
11
|
+
date: 2025-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|