tencentcloud-sdk-mariadb 1.0.200 → 1.0.204
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/v20170312/client.rb +48 -0
- data/lib/v20170312/models.rb +83 -3
- 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: 13bfa452cff3683acefcebbfdd2c77e1318b8e82
|
4
|
+
data.tar.gz: 93903602523c82ca5170e811bc60aa7177305323
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d239352fefcba9e5d6f041c37848bdbf0bfdff80d31dbf6f6e31aad5f292615dca7f5a945a9168aa5a7ad7a9b96d99ae35957ad4dbb5682ee6e99edab49df452
|
7
|
+
data.tar.gz: 377d09f41fe59c1aedf29dcd110f50d1c91b7d400ae5be21fe06ad7e5239d405d3c16853e1c6bfa7ee72e4ba0540c0de036165ff9d362fb5a93eedbcf887b101
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.204
|
data/lib/v20170312/client.rb
CHANGED
@@ -1191,6 +1191,30 @@ module TencentCloud
|
|
1191
1191
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1192
1192
|
end
|
1193
1193
|
|
1194
|
+
# 本接口(ModifyDBSyncMode)用于修改云数据库实例的同步模式。
|
1195
|
+
|
1196
|
+
# @param request: Request instance for ModifyDBSyncMode.
|
1197
|
+
# @type request: :class:`Tencentcloud::mariadb::V20170312::ModifyDBSyncModeRequest`
|
1198
|
+
# @rtype: :class:`Tencentcloud::mariadb::V20170312::ModifyDBSyncModeResponse`
|
1199
|
+
def ModifyDBSyncMode(request)
|
1200
|
+
body = send_request('ModifyDBSyncMode', request.serialize)
|
1201
|
+
response = JSON.parse(body)
|
1202
|
+
if response['Response'].key?('Error') == false
|
1203
|
+
model = ModifyDBSyncModeResponse.new
|
1204
|
+
model.deserialize(response['Response'])
|
1205
|
+
model
|
1206
|
+
else
|
1207
|
+
code = response['Response']['Error']['Code']
|
1208
|
+
message = response['Response']['Error']['Message']
|
1209
|
+
reqid = response['Response']['RequestId']
|
1210
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1211
|
+
end
|
1212
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1213
|
+
raise e
|
1214
|
+
rescue StandardError => e
|
1215
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1216
|
+
end
|
1217
|
+
|
1194
1218
|
# 本接口(ModifyLogFileRetentionPeriod)用于修改数据库备份日志保存天数。
|
1195
1219
|
|
1196
1220
|
# @param request: Request instance for ModifyLogFileRetentionPeriod.
|
@@ -1244,6 +1268,30 @@ module TencentCloud
|
|
1244
1268
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1245
1269
|
end
|
1246
1270
|
|
1271
|
+
# 本接口 (ModifySyncTaskAttribute) 用于修改同步任务的属性(目前只支持修改任务名称)
|
1272
|
+
|
1273
|
+
# @param request: Request instance for ModifySyncTaskAttribute.
|
1274
|
+
# @type request: :class:`Tencentcloud::mariadb::V20170312::ModifySyncTaskAttributeRequest`
|
1275
|
+
# @rtype: :class:`Tencentcloud::mariadb::V20170312::ModifySyncTaskAttributeResponse`
|
1276
|
+
def ModifySyncTaskAttribute(request)
|
1277
|
+
body = send_request('ModifySyncTaskAttribute', request.serialize)
|
1278
|
+
response = JSON.parse(body)
|
1279
|
+
if response['Response'].key?('Error') == false
|
1280
|
+
model = ModifySyncTaskAttributeResponse.new
|
1281
|
+
model.deserialize(response['Response'])
|
1282
|
+
model
|
1283
|
+
else
|
1284
|
+
code = response['Response']['Error']['Code']
|
1285
|
+
message = response['Response']['Error']['Message']
|
1286
|
+
reqid = response['Response']['RequestId']
|
1287
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1288
|
+
end
|
1289
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1290
|
+
raise e
|
1291
|
+
rescue StandardError => e
|
1292
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1293
|
+
end
|
1294
|
+
|
1247
1295
|
# 本接口(OpenDBExtranetAccess)用于开通云数据库实例的外网访问。开通外网访问后,您可通过外网域名和端口访问实例,可使用查询实例列表接口获取外网域名和端口信息。
|
1248
1296
|
|
1249
1297
|
# @param request: Request instance for OpenDBExtranetAccess.
|
data/lib/v20170312/models.rb
CHANGED
@@ -2851,7 +2851,7 @@ module TencentCloud
|
|
2851
2851
|
# @type Host: String
|
2852
2852
|
# @param DbName: 数据库名。如果为 \*,表示设置全局权限(即 \*.\*),此时忽略 Type 和 Object 参数。当DbName不为\*时,需要传入参 Type。
|
2853
2853
|
# @type DbName: String
|
2854
|
-
# @param Privileges: 全局权限: SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,INDEX,ALTER,CREATE TEMPORARY TABLES,LOCK TABLES,EXECUTE,CREATE VIEW,SHOW VIEW,CREATE ROUTINE,ALTER ROUTINE,EVENT,TRIGGER,SHOW DATABASES
|
2854
|
+
# @param Privileges: 全局权限: SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,INDEX,ALTER,CREATE TEMPORARY TABLES,LOCK TABLES,EXECUTE,CREATE VIEW,SHOW VIEW,CREATE ROUTINE,ALTER ROUTINE,EVENT,TRIGGER,SHOW DATABASES,REPLICATION CLIENT,REPLICATION SLAVE
|
2855
2855
|
# 库权限: SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,INDEX,ALTER,CREATE TEMPORARY TABLES,LOCK TABLES,EXECUTE,CREATE VIEW,SHOW VIEW,CREATE ROUTINE,ALTER ROUTINE,EVENT,TRIGGER
|
2856
2856
|
# 表/视图权限: SELECT,INSERT,UPDATE,DELETE,CREATE,DROP,REFERENCES,INDEX,ALTER,CREATE VIEW,SHOW VIEW,TRIGGER
|
2857
2857
|
# 存储过程/函数权限: ALTER ROUTINE,EXECUTE
|
@@ -3437,6 +3437,46 @@ module TencentCloud
|
|
3437
3437
|
end
|
3438
3438
|
end
|
3439
3439
|
|
3440
|
+
# ModifyDBSyncMode请求参数结构体
|
3441
|
+
class ModifyDBSyncModeRequest < TencentCloud::Common::AbstractModel
|
3442
|
+
# @param InstanceId: 待修改同步模式的实例ID。形如:tdsql-ow728lmc。
|
3443
|
+
# @type InstanceId: String
|
3444
|
+
# @param SyncMode: 同步模式:0 异步,1 强同步, 2 强同步可退化
|
3445
|
+
# @type SyncMode: Integer
|
3446
|
+
|
3447
|
+
attr_accessor :InstanceId, :SyncMode
|
3448
|
+
|
3449
|
+
def initialize(instanceid=nil, syncmode=nil)
|
3450
|
+
@InstanceId = instanceid
|
3451
|
+
@SyncMode = syncmode
|
3452
|
+
end
|
3453
|
+
|
3454
|
+
def deserialize(params)
|
3455
|
+
@InstanceId = params['InstanceId']
|
3456
|
+
@SyncMode = params['SyncMode']
|
3457
|
+
end
|
3458
|
+
end
|
3459
|
+
|
3460
|
+
# ModifyDBSyncMode返回参数结构体
|
3461
|
+
class ModifyDBSyncModeResponse < TencentCloud::Common::AbstractModel
|
3462
|
+
# @param FlowId: 异步任务Id,可通过 DescribeFlow 查询任务状态。
|
3463
|
+
# @type FlowId: Integer
|
3464
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3465
|
+
# @type RequestId: String
|
3466
|
+
|
3467
|
+
attr_accessor :FlowId, :RequestId
|
3468
|
+
|
3469
|
+
def initialize(flowid=nil, requestid=nil)
|
3470
|
+
@FlowId = flowid
|
3471
|
+
@RequestId = requestid
|
3472
|
+
end
|
3473
|
+
|
3474
|
+
def deserialize(params)
|
3475
|
+
@FlowId = params['FlowId']
|
3476
|
+
@RequestId = params['RequestId']
|
3477
|
+
end
|
3478
|
+
end
|
3479
|
+
|
3440
3480
|
# ModifyLogFileRetentionPeriod请求参数结构体
|
3441
3481
|
class ModifyLogFileRetentionPeriodRequest < TencentCloud::Common::AbstractModel
|
3442
3482
|
# @param InstanceId: 实例 ID,形如:tdsql-ow728lmc。
|
@@ -3513,6 +3553,42 @@ module TencentCloud
|
|
3513
3553
|
end
|
3514
3554
|
end
|
3515
3555
|
|
3556
|
+
# ModifySyncTaskAttribute请求参数结构体
|
3557
|
+
class ModifySyncTaskAttributeRequest < TencentCloud::Common::AbstractModel
|
3558
|
+
# @param TaskIds: 一个或多个待操作的任务ID。可通过[DescribeSyncTasks](https://tcloud-dev.oa.com/document/product/237/32979?!preview&!document=1) API返回值中的TaskId获取。每次请求允许操作的实例数量上限是100。
|
3559
|
+
# @type TaskIds: Array
|
3560
|
+
# @param TaskName: 任务名称。可任意命名,但不得超过100个字符。
|
3561
|
+
# @type TaskName: String
|
3562
|
+
|
3563
|
+
attr_accessor :TaskIds, :TaskName
|
3564
|
+
|
3565
|
+
def initialize(taskids=nil, taskname=nil)
|
3566
|
+
@TaskIds = taskids
|
3567
|
+
@TaskName = taskname
|
3568
|
+
end
|
3569
|
+
|
3570
|
+
def deserialize(params)
|
3571
|
+
@TaskIds = params['TaskIds']
|
3572
|
+
@TaskName = params['TaskName']
|
3573
|
+
end
|
3574
|
+
end
|
3575
|
+
|
3576
|
+
# ModifySyncTaskAttribute返回参数结构体
|
3577
|
+
class ModifySyncTaskAttributeResponse < TencentCloud::Common::AbstractModel
|
3578
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3579
|
+
# @type RequestId: String
|
3580
|
+
|
3581
|
+
attr_accessor :RequestId
|
3582
|
+
|
3583
|
+
def initialize(requestid=nil)
|
3584
|
+
@RequestId = requestid
|
3585
|
+
end
|
3586
|
+
|
3587
|
+
def deserialize(params)
|
3588
|
+
@RequestId = params['RequestId']
|
3589
|
+
end
|
3590
|
+
end
|
3591
|
+
|
3516
3592
|
# 监控数据
|
3517
3593
|
class MonitorData < TencentCloud::Common::AbstractModel
|
3518
3594
|
# @param StartTime: 起始时间,形如 2018-03-24 23:59:59
|
@@ -4155,10 +4231,12 @@ module TencentCloud
|
|
4155
4231
|
# @param ExampleSql: 样例Sql
|
4156
4232
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
4157
4233
|
# @type ExampleSql: String
|
4234
|
+
# @param Host: 账户的域名
|
4235
|
+
# @type Host: String
|
4158
4236
|
|
4159
|
-
attr_accessor :CheckSum, :Db, :FingerPrint, :LockTimeAvg, :LockTimeMax, :LockTimeMin, :LockTimeSum, :QueryCount, :QueryTimeAvg, :QueryTimeMax, :QueryTimeMin, :QueryTimeSum, :RowsExaminedSum, :RowsSentSum, :TsMax, :TsMin, :User, :ExampleSql
|
4237
|
+
attr_accessor :CheckSum, :Db, :FingerPrint, :LockTimeAvg, :LockTimeMax, :LockTimeMin, :LockTimeSum, :QueryCount, :QueryTimeAvg, :QueryTimeMax, :QueryTimeMin, :QueryTimeSum, :RowsExaminedSum, :RowsSentSum, :TsMax, :TsMin, :User, :ExampleSql, :Host
|
4160
4238
|
|
4161
|
-
def initialize(checksum=nil, db=nil, fingerprint=nil, locktimeavg=nil, locktimemax=nil, locktimemin=nil, locktimesum=nil, querycount=nil, querytimeavg=nil, querytimemax=nil, querytimemin=nil, querytimesum=nil, rowsexaminedsum=nil, rowssentsum=nil, tsmax=nil, tsmin=nil, user=nil, examplesql=nil)
|
4239
|
+
def initialize(checksum=nil, db=nil, fingerprint=nil, locktimeavg=nil, locktimemax=nil, locktimemin=nil, locktimesum=nil, querycount=nil, querytimeavg=nil, querytimemax=nil, querytimemin=nil, querytimesum=nil, rowsexaminedsum=nil, rowssentsum=nil, tsmax=nil, tsmin=nil, user=nil, examplesql=nil, host=nil)
|
4162
4240
|
@CheckSum = checksum
|
4163
4241
|
@Db = db
|
4164
4242
|
@FingerPrint = fingerprint
|
@@ -4177,6 +4255,7 @@ module TencentCloud
|
|
4177
4255
|
@TsMin = tsmin
|
4178
4256
|
@User = user
|
4179
4257
|
@ExampleSql = examplesql
|
4258
|
+
@Host = host
|
4180
4259
|
end
|
4181
4260
|
|
4182
4261
|
def deserialize(params)
|
@@ -4198,6 +4277,7 @@ module TencentCloud
|
|
4198
4277
|
@TsMin = params['TsMin']
|
4199
4278
|
@User = params['User']
|
4200
4279
|
@ExampleSql = params['ExampleSql']
|
4280
|
+
@Host = params['Host']
|
4201
4281
|
end
|
4202
4282
|
end
|
4203
4283
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-mariadb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.204
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|