tencentcloud-sdk-dbbrain 1.0.301 → 1.0.302
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/v20210527/client.rb +216 -0
- data/lib/v20210527/models.rb +633 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0842e8c4d7c7bbd2f60fa7b951d592caad55f97
|
4
|
+
data.tar.gz: 4f24ab2777e7299e5a172eebea15d5bcab386b34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be2ab3c090d1a168dbc1dd292cb942070b9936248acfbc607d592543776595542ba74d03ae21c542867cea9f0cdac6685ded9071c3345fe4a1b506ec596d883f
|
7
|
+
data.tar.gz: 6250e807ec32f59f7274ffeb3f2a1ec6345a706e9b2a779f90dfe56d047e26307a8cafae4e23f53446aae572036e090ae7129a14730c4cbb24678e5fbb3c97ba
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.302
|
data/lib/v20210527/client.rb
CHANGED
@@ -53,6 +53,30 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
+
# 终止中断会话任务。
|
57
|
+
|
58
|
+
# @param request: Request instance for CancelKillTask.
|
59
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::CancelKillTaskRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::CancelKillTaskResponse`
|
61
|
+
def CancelKillTask(request)
|
62
|
+
body = send_request('CancelKillTask', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = CancelKillTaskResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
56
80
|
# 创建健康报告,并可以选择是否发送邮件。
|
57
81
|
|
58
82
|
# @param request: Request instance for CreateDBDiagReportTask.
|
@@ -221,6 +245,30 @@ module TencentCloud
|
|
221
245
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
222
246
|
end
|
223
247
|
|
248
|
+
# 创建实例SQL限流任务。
|
249
|
+
|
250
|
+
# @param request: Request instance for CreateSqlFilter.
|
251
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::CreateSqlFilterRequest`
|
252
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::CreateSqlFilterResponse`
|
253
|
+
def CreateSqlFilter(request)
|
254
|
+
body = send_request('CreateSqlFilter', request.serialize)
|
255
|
+
response = JSON.parse(body)
|
256
|
+
if response['Response'].key?('Error') == false
|
257
|
+
model = CreateSqlFilterResponse.new
|
258
|
+
model.deserialize(response['Response'])
|
259
|
+
model
|
260
|
+
else
|
261
|
+
code = response['Response']['Error']['Code']
|
262
|
+
message = response['Response']['Error']['Message']
|
263
|
+
reqid = response['Response']['RequestId']
|
264
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
265
|
+
end
|
266
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
267
|
+
raise e
|
268
|
+
rescue StandardError => e
|
269
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
|
+
end
|
271
|
+
|
224
272
|
# 删除安全审计日志导出任务。
|
225
273
|
|
226
274
|
# @param request: Request instance for DeleteSecurityAuditLogExportTasks.
|
@@ -245,6 +293,30 @@ module TencentCloud
|
|
245
293
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
246
294
|
end
|
247
295
|
|
296
|
+
# 删除实例SQL限流任务。
|
297
|
+
|
298
|
+
# @param request: Request instance for DeleteSqlFilters.
|
299
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::DeleteSqlFiltersRequest`
|
300
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::DeleteSqlFiltersResponse`
|
301
|
+
def DeleteSqlFilters(request)
|
302
|
+
body = send_request('DeleteSqlFilters', request.serialize)
|
303
|
+
response = JSON.parse(body)
|
304
|
+
if response['Response'].key?('Error') == false
|
305
|
+
model = DeleteSqlFiltersResponse.new
|
306
|
+
model.deserialize(response['Response'])
|
307
|
+
model
|
308
|
+
else
|
309
|
+
code = response['Response']['Error']['Code']
|
310
|
+
message = response['Response']['Error']['Message']
|
311
|
+
reqid = response['Response']['RequestId']
|
312
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
313
|
+
end
|
314
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
315
|
+
raise e
|
316
|
+
rescue StandardError => e
|
317
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
318
|
+
end
|
319
|
+
|
248
320
|
# 获取邮件发送中联系人的相关信息。
|
249
321
|
|
250
322
|
# @param request: Request instance for DescribeAllUserContact.
|
@@ -509,6 +581,30 @@ module TencentCloud
|
|
509
581
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
510
582
|
end
|
511
583
|
|
584
|
+
# 查询实例无主键表。
|
585
|
+
|
586
|
+
# @param request: Request instance for DescribeNoPrimaryKeyTables.
|
587
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeNoPrimaryKeyTablesRequest`
|
588
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeNoPrimaryKeyTablesResponse`
|
589
|
+
def DescribeNoPrimaryKeyTables(request)
|
590
|
+
body = send_request('DescribeNoPrimaryKeyTables', request.serialize)
|
591
|
+
response = JSON.parse(body)
|
592
|
+
if response['Response'].key?('Error') == false
|
593
|
+
model = DescribeNoPrimaryKeyTablesResponse.new
|
594
|
+
model.deserialize(response['Response'])
|
595
|
+
model
|
596
|
+
else
|
597
|
+
code = response['Response']['Error']['Code']
|
598
|
+
message = response['Response']['Error']['Message']
|
599
|
+
reqid = response['Response']['RequestId']
|
600
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
601
|
+
end
|
602
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
603
|
+
raise e
|
604
|
+
rescue StandardError => e
|
605
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
606
|
+
end
|
607
|
+
|
512
608
|
# 用于查询 redis 执行 kill 会话任务后代理节点的执行结果,入参异步任务 ID 从接口 CreateProxySessionKillTask 调用成功后取得。当前 product 只支持:redis。
|
513
609
|
|
514
610
|
# @param request: Request instance for DescribeProxySessionKillTasks.
|
@@ -533,6 +629,30 @@ module TencentCloud
|
|
533
629
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
534
630
|
end
|
535
631
|
|
632
|
+
# 查询redis实例大key列表。
|
633
|
+
|
634
|
+
# @param request: Request instance for DescribeRedisTopBigKeys.
|
635
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeRedisTopBigKeysRequest`
|
636
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeRedisTopBigKeysResponse`
|
637
|
+
def DescribeRedisTopBigKeys(request)
|
638
|
+
body = send_request('DescribeRedisTopBigKeys', request.serialize)
|
639
|
+
response = JSON.parse(body)
|
640
|
+
if response['Response'].key?('Error') == false
|
641
|
+
model = DescribeRedisTopBigKeysResponse.new
|
642
|
+
model.deserialize(response['Response'])
|
643
|
+
model
|
644
|
+
else
|
645
|
+
code = response['Response']['Error']['Code']
|
646
|
+
message = response['Response']['Error']['Message']
|
647
|
+
reqid = response['Response']['RequestId']
|
648
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
649
|
+
end
|
650
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
651
|
+
raise e
|
652
|
+
rescue StandardError => e
|
653
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
654
|
+
end
|
655
|
+
|
536
656
|
# 查询安全审计日志导出文件下载链接。目前日志文件下载仅提供腾讯云内网地址,请通过广州地域的腾讯云服务器进行下载。
|
537
657
|
|
538
658
|
# @param request: Request instance for DescribeSecurityAuditLogDownloadUrls.
|
@@ -653,6 +773,54 @@ module TencentCloud
|
|
653
773
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
654
774
|
end
|
655
775
|
|
776
|
+
# 查询实例SQL限流任务列表。
|
777
|
+
|
778
|
+
# @param request: Request instance for DescribeSqlFilters.
|
779
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeSqlFiltersRequest`
|
780
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeSqlFiltersResponse`
|
781
|
+
def DescribeSqlFilters(request)
|
782
|
+
body = send_request('DescribeSqlFilters', request.serialize)
|
783
|
+
response = JSON.parse(body)
|
784
|
+
if response['Response'].key?('Error') == false
|
785
|
+
model = DescribeSqlFiltersResponse.new
|
786
|
+
model.deserialize(response['Response'])
|
787
|
+
model
|
788
|
+
else
|
789
|
+
code = response['Response']['Error']['Code']
|
790
|
+
message = response['Response']['Error']['Message']
|
791
|
+
reqid = response['Response']['RequestId']
|
792
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
793
|
+
end
|
794
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
795
|
+
raise e
|
796
|
+
rescue StandardError => e
|
797
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
798
|
+
end
|
799
|
+
|
800
|
+
# 查询SQL模版。
|
801
|
+
|
802
|
+
# @param request: Request instance for DescribeSqlTemplate.
|
803
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeSqlTemplateRequest`
|
804
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeSqlTemplateResponse`
|
805
|
+
def DescribeSqlTemplate(request)
|
806
|
+
body = send_request('DescribeSqlTemplate', request.serialize)
|
807
|
+
response = JSON.parse(body)
|
808
|
+
if response['Response'].key?('Error') == false
|
809
|
+
model = DescribeSqlTemplateResponse.new
|
810
|
+
model.deserialize(response['Response'])
|
811
|
+
model
|
812
|
+
else
|
813
|
+
code = response['Response']['Error']['Code']
|
814
|
+
message = response['Response']['Error']['Message']
|
815
|
+
reqid = response['Response']['RequestId']
|
816
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
817
|
+
end
|
818
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
819
|
+
raise e
|
820
|
+
rescue StandardError => e
|
821
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
822
|
+
end
|
823
|
+
|
656
824
|
# 获取实例占用空间最大的前几个库在指定时间段内的每日由DBbrain定时采集的空间数据,默认返回按大小排序。
|
657
825
|
|
658
826
|
# @param request: Request instance for DescribeTopSpaceSchemaTimeSeries.
|
@@ -821,6 +989,54 @@ module TencentCloud
|
|
821
989
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
822
990
|
end
|
823
991
|
|
992
|
+
# 更改实例限流任务状态,目前仅用于终止限流。
|
993
|
+
|
994
|
+
# @param request: Request instance for ModifySqlFilters.
|
995
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::ModifySqlFiltersRequest`
|
996
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::ModifySqlFiltersResponse`
|
997
|
+
def ModifySqlFilters(request)
|
998
|
+
body = send_request('ModifySqlFilters', request.serialize)
|
999
|
+
response = JSON.parse(body)
|
1000
|
+
if response['Response'].key?('Error') == false
|
1001
|
+
model = ModifySqlFiltersResponse.new
|
1002
|
+
model.deserialize(response['Response'])
|
1003
|
+
model
|
1004
|
+
else
|
1005
|
+
code = response['Response']['Error']['Code']
|
1006
|
+
message = response['Response']['Error']['Message']
|
1007
|
+
reqid = response['Response']['RequestId']
|
1008
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1009
|
+
end
|
1010
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1011
|
+
raise e
|
1012
|
+
rescue StandardError => e
|
1013
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1014
|
+
end
|
1015
|
+
|
1016
|
+
# 验证用户数据库账号权限,获取会话token。
|
1017
|
+
|
1018
|
+
# @param request: Request instance for VerifyUserAccount.
|
1019
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::VerifyUserAccountRequest`
|
1020
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::VerifyUserAccountResponse`
|
1021
|
+
def VerifyUserAccount(request)
|
1022
|
+
body = send_request('VerifyUserAccount', request.serialize)
|
1023
|
+
response = JSON.parse(body)
|
1024
|
+
if response['Response'].key?('Error') == false
|
1025
|
+
model = VerifyUserAccountResponse.new
|
1026
|
+
model.deserialize(response['Response'])
|
1027
|
+
model
|
1028
|
+
else
|
1029
|
+
code = response['Response']['Error']['Code']
|
1030
|
+
message = response['Response']['Error']['Message']
|
1031
|
+
reqid = response['Response']['RequestId']
|
1032
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1033
|
+
end
|
1034
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1035
|
+
raise e
|
1036
|
+
rescue StandardError => e
|
1037
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1038
|
+
end
|
1039
|
+
|
824
1040
|
|
825
1041
|
end
|
826
1042
|
end
|
data/lib/v20210527/models.rb
CHANGED
@@ -61,6 +61,46 @@ module TencentCloud
|
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
+
# CancelKillTask请求参数结构体
|
65
|
+
class CancelKillTaskRequest < TencentCloud::Common::AbstractModel
|
66
|
+
# @param InstanceId: 实例ID。
|
67
|
+
# @type InstanceId: String
|
68
|
+
# @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
|
69
|
+
# @type Product: String
|
70
|
+
|
71
|
+
attr_accessor :InstanceId, :Product
|
72
|
+
|
73
|
+
def initialize(instanceid=nil, product=nil)
|
74
|
+
@InstanceId = instanceid
|
75
|
+
@Product = product
|
76
|
+
end
|
77
|
+
|
78
|
+
def deserialize(params)
|
79
|
+
@InstanceId = params['InstanceId']
|
80
|
+
@Product = params['Product']
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# CancelKillTask返回参数结构体
|
85
|
+
class CancelKillTaskResponse < TencentCloud::Common::AbstractModel
|
86
|
+
# @param Status: kill会话任务终止成功返回1。
|
87
|
+
# @type Status: Integer
|
88
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
89
|
+
# @type RequestId: String
|
90
|
+
|
91
|
+
attr_accessor :Status, :RequestId
|
92
|
+
|
93
|
+
def initialize(status=nil, requestid=nil)
|
94
|
+
@Status = status
|
95
|
+
@RequestId = requestid
|
96
|
+
end
|
97
|
+
|
98
|
+
def deserialize(params)
|
99
|
+
@Status = params['Status']
|
100
|
+
@RequestId = params['RequestId']
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
64
104
|
# 联系人contact描述。
|
65
105
|
class ContactItem < TencentCloud::Common::AbstractModel
|
66
106
|
# @param Id: 联系人id。
|
@@ -460,6 +500,66 @@ module TencentCloud
|
|
460
500
|
end
|
461
501
|
end
|
462
502
|
|
503
|
+
# CreateSqlFilter请求参数结构体
|
504
|
+
class CreateSqlFilterRequest < TencentCloud::Common::AbstractModel
|
505
|
+
# @param InstanceId: 实例ID。
|
506
|
+
# @type InstanceId: String
|
507
|
+
# @param SessionToken: 通过VerifyUserAccount获取有效期为5分钟的会话token,使用后会自动延长token有效期至五分钟后。
|
508
|
+
# @type SessionToken: String
|
509
|
+
# @param SqlType: SQL类型,取值包括SELECT, UPDATE, DELETE, INSERT, REPLACE。
|
510
|
+
# @type SqlType: String
|
511
|
+
# @param FilterKey: 关键字,用于筛选SQL语句,多个关键字用英文逗号分隔,逗号不能作为关键词,多个关键词之间的关系为“逻辑与”。
|
512
|
+
# @type FilterKey: String
|
513
|
+
# @param MaxConcurrency: 最大并发度,取值不能小于0,如果该值设为 0,则表示限制所有匹配的SQL执行。
|
514
|
+
# @type MaxConcurrency: Integer
|
515
|
+
# @param Duration: 限流时长,单位秒,支持-1和小于2147483647的正整数,-1表示永不过期。
|
516
|
+
# @type Duration: Integer
|
517
|
+
# @param Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
|
518
|
+
# @type Product: String
|
519
|
+
|
520
|
+
attr_accessor :InstanceId, :SessionToken, :SqlType, :FilterKey, :MaxConcurrency, :Duration, :Product
|
521
|
+
|
522
|
+
def initialize(instanceid=nil, sessiontoken=nil, sqltype=nil, filterkey=nil, maxconcurrency=nil, duration=nil, product=nil)
|
523
|
+
@InstanceId = instanceid
|
524
|
+
@SessionToken = sessiontoken
|
525
|
+
@SqlType = sqltype
|
526
|
+
@FilterKey = filterkey
|
527
|
+
@MaxConcurrency = maxconcurrency
|
528
|
+
@Duration = duration
|
529
|
+
@Product = product
|
530
|
+
end
|
531
|
+
|
532
|
+
def deserialize(params)
|
533
|
+
@InstanceId = params['InstanceId']
|
534
|
+
@SessionToken = params['SessionToken']
|
535
|
+
@SqlType = params['SqlType']
|
536
|
+
@FilterKey = params['FilterKey']
|
537
|
+
@MaxConcurrency = params['MaxConcurrency']
|
538
|
+
@Duration = params['Duration']
|
539
|
+
@Product = params['Product']
|
540
|
+
end
|
541
|
+
end
|
542
|
+
|
543
|
+
# CreateSqlFilter返回参数结构体
|
544
|
+
class CreateSqlFilterResponse < TencentCloud::Common::AbstractModel
|
545
|
+
# @param FilterId: 限流任务ID。
|
546
|
+
# @type FilterId: Integer
|
547
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
548
|
+
# @type RequestId: String
|
549
|
+
|
550
|
+
attr_accessor :FilterId, :RequestId
|
551
|
+
|
552
|
+
def initialize(filterid=nil, requestid=nil)
|
553
|
+
@FilterId = filterid
|
554
|
+
@RequestId = requestid
|
555
|
+
end
|
556
|
+
|
557
|
+
def deserialize(params)
|
558
|
+
@FilterId = params['FilterId']
|
559
|
+
@RequestId = params['RequestId']
|
560
|
+
end
|
561
|
+
end
|
562
|
+
|
463
563
|
# DeleteSecurityAuditLogExportTasks请求参数结构体
|
464
564
|
class DeleteSecurityAuditLogExportTasksRequest < TencentCloud::Common::AbstractModel
|
465
565
|
# @param SecAuditGroupId: 安全审计组Id。
|
@@ -500,6 +600,46 @@ module TencentCloud
|
|
500
600
|
end
|
501
601
|
end
|
502
602
|
|
603
|
+
# DeleteSqlFilters请求参数结构体
|
604
|
+
class DeleteSqlFiltersRequest < TencentCloud::Common::AbstractModel
|
605
|
+
# @param InstanceId: 实例ID。
|
606
|
+
# @type InstanceId: String
|
607
|
+
# @param SessionToken: 通过VerifyUserAccount获取有效期为5分钟的会话token,使用后会自动延长token有效期至五分钟后。
|
608
|
+
# @type SessionToken: String
|
609
|
+
# @param FilterIds: 限流任务ID列表。
|
610
|
+
# @type FilterIds: Array
|
611
|
+
|
612
|
+
attr_accessor :InstanceId, :SessionToken, :FilterIds
|
613
|
+
|
614
|
+
def initialize(instanceid=nil, sessiontoken=nil, filterids=nil)
|
615
|
+
@InstanceId = instanceid
|
616
|
+
@SessionToken = sessiontoken
|
617
|
+
@FilterIds = filterids
|
618
|
+
end
|
619
|
+
|
620
|
+
def deserialize(params)
|
621
|
+
@InstanceId = params['InstanceId']
|
622
|
+
@SessionToken = params['SessionToken']
|
623
|
+
@FilterIds = params['FilterIds']
|
624
|
+
end
|
625
|
+
end
|
626
|
+
|
627
|
+
# DeleteSqlFilters返回参数结构体
|
628
|
+
class DeleteSqlFiltersResponse < TencentCloud::Common::AbstractModel
|
629
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
630
|
+
# @type RequestId: String
|
631
|
+
|
632
|
+
attr_accessor :RequestId
|
633
|
+
|
634
|
+
def initialize(requestid=nil)
|
635
|
+
@RequestId = requestid
|
636
|
+
end
|
637
|
+
|
638
|
+
def deserialize(params)
|
639
|
+
@RequestId = params['RequestId']
|
640
|
+
end
|
641
|
+
end
|
642
|
+
|
503
643
|
# DescribeAllUserContact请求参数结构体
|
504
644
|
class DescribeAllUserContactRequest < TencentCloud::Common::AbstractModel
|
505
645
|
# @param Product: 服务产品类型,固定值:mysql。
|
@@ -1216,6 +1356,81 @@ module TencentCloud
|
|
1216
1356
|
end
|
1217
1357
|
end
|
1218
1358
|
|
1359
|
+
# DescribeNoPrimaryKeyTables请求参数结构体
|
1360
|
+
class DescribeNoPrimaryKeyTablesRequest < TencentCloud::Common::AbstractModel
|
1361
|
+
# @param InstanceId: 实例ID。
|
1362
|
+
# @type InstanceId: String
|
1363
|
+
# @param Date: 查询日期,最早为30天前的日期。
|
1364
|
+
# @type Date: String
|
1365
|
+
# @param Limit: 查询数目,默认为20,最大为100。
|
1366
|
+
# @type Limit: Integer
|
1367
|
+
# @param Offset: 偏移量,默认为0。
|
1368
|
+
# @type Offset: Integer
|
1369
|
+
# @param Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
|
1370
|
+
# @type Product: String
|
1371
|
+
|
1372
|
+
attr_accessor :InstanceId, :Date, :Limit, :Offset, :Product
|
1373
|
+
|
1374
|
+
def initialize(instanceid=nil, date=nil, limit=nil, offset=nil, product=nil)
|
1375
|
+
@InstanceId = instanceid
|
1376
|
+
@Date = date
|
1377
|
+
@Limit = limit
|
1378
|
+
@Offset = offset
|
1379
|
+
@Product = product
|
1380
|
+
end
|
1381
|
+
|
1382
|
+
def deserialize(params)
|
1383
|
+
@InstanceId = params['InstanceId']
|
1384
|
+
@Date = params['Date']
|
1385
|
+
@Limit = params['Limit']
|
1386
|
+
@Offset = params['Offset']
|
1387
|
+
@Product = params['Product']
|
1388
|
+
end
|
1389
|
+
end
|
1390
|
+
|
1391
|
+
# DescribeNoPrimaryKeyTables返回参数结构体
|
1392
|
+
class DescribeNoPrimaryKeyTablesResponse < TencentCloud::Common::AbstractModel
|
1393
|
+
# @param NoPrimaryKeyTableCount: 无主键表总数。
|
1394
|
+
# @type NoPrimaryKeyTableCount: Integer
|
1395
|
+
# @param NoPrimaryKeyTableCountDiff: 与昨日扫描无主键表的差值,正数为增加,负数为减少,0为无变化。
|
1396
|
+
# @type NoPrimaryKeyTableCountDiff: Integer
|
1397
|
+
# @param NoPrimaryKeyTableRecordCount: 记录的无主键表总数(不超过无主键表总数),可用于分页查询。
|
1398
|
+
# @type NoPrimaryKeyTableRecordCount: Integer
|
1399
|
+
# @param NoPrimaryKeyTables: 无主键表列表。
|
1400
|
+
# @type NoPrimaryKeyTables: Array
|
1401
|
+
# @param Timestamp: 采集时间戳(秒)。
|
1402
|
+
# @type Timestamp: Integer
|
1403
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1404
|
+
# @type RequestId: String
|
1405
|
+
|
1406
|
+
attr_accessor :NoPrimaryKeyTableCount, :NoPrimaryKeyTableCountDiff, :NoPrimaryKeyTableRecordCount, :NoPrimaryKeyTables, :Timestamp, :RequestId
|
1407
|
+
|
1408
|
+
def initialize(noprimarykeytablecount=nil, noprimarykeytablecountdiff=nil, noprimarykeytablerecordcount=nil, noprimarykeytables=nil, timestamp=nil, requestid=nil)
|
1409
|
+
@NoPrimaryKeyTableCount = noprimarykeytablecount
|
1410
|
+
@NoPrimaryKeyTableCountDiff = noprimarykeytablecountdiff
|
1411
|
+
@NoPrimaryKeyTableRecordCount = noprimarykeytablerecordcount
|
1412
|
+
@NoPrimaryKeyTables = noprimarykeytables
|
1413
|
+
@Timestamp = timestamp
|
1414
|
+
@RequestId = requestid
|
1415
|
+
end
|
1416
|
+
|
1417
|
+
def deserialize(params)
|
1418
|
+
@NoPrimaryKeyTableCount = params['NoPrimaryKeyTableCount']
|
1419
|
+
@NoPrimaryKeyTableCountDiff = params['NoPrimaryKeyTableCountDiff']
|
1420
|
+
@NoPrimaryKeyTableRecordCount = params['NoPrimaryKeyTableRecordCount']
|
1421
|
+
unless params['NoPrimaryKeyTables'].nil?
|
1422
|
+
@NoPrimaryKeyTables = []
|
1423
|
+
params['NoPrimaryKeyTables'].each do |i|
|
1424
|
+
table_tmp = Table.new
|
1425
|
+
table_tmp.deserialize(i)
|
1426
|
+
@NoPrimaryKeyTables << table_tmp
|
1427
|
+
end
|
1428
|
+
end
|
1429
|
+
@Timestamp = params['Timestamp']
|
1430
|
+
@RequestId = params['RequestId']
|
1431
|
+
end
|
1432
|
+
end
|
1433
|
+
|
1219
1434
|
# DescribeProxySessionKillTasks请求参数结构体
|
1220
1435
|
class DescribeProxySessionKillTasksRequest < TencentCloud::Common::AbstractModel
|
1221
1436
|
# @param InstanceId: 实例ID。
|
@@ -1271,6 +1486,73 @@ module TencentCloud
|
|
1271
1486
|
end
|
1272
1487
|
end
|
1273
1488
|
|
1489
|
+
# DescribeRedisTopBigKeys请求参数结构体
|
1490
|
+
class DescribeRedisTopBigKeysRequest < TencentCloud::Common::AbstractModel
|
1491
|
+
# @param InstanceId: 实例ID。
|
1492
|
+
# @type InstanceId: String
|
1493
|
+
# @param Date: 查询日期,最早可为前30天的日期。
|
1494
|
+
# @type Date: String
|
1495
|
+
# @param Product: 服务产品类型,支持值包括 "redis" - 云数据库 Redis。
|
1496
|
+
# @type Product: String
|
1497
|
+
# @param SortBy: 排序字段,取值包括Capacity - 内存,ItemCount - 元素数量。
|
1498
|
+
# @type SortBy: String
|
1499
|
+
# @param KeyType: key类型筛选条件,默认为不进行筛选,取值包括string, list, set, hash, sortedset, stream。
|
1500
|
+
# @type KeyType: String
|
1501
|
+
# @param Limit: 查询数目,默认为20,最大值为100。
|
1502
|
+
# @type Limit: Integer
|
1503
|
+
|
1504
|
+
attr_accessor :InstanceId, :Date, :Product, :SortBy, :KeyType, :Limit
|
1505
|
+
|
1506
|
+
def initialize(instanceid=nil, date=nil, product=nil, sortby=nil, keytype=nil, limit=nil)
|
1507
|
+
@InstanceId = instanceid
|
1508
|
+
@Date = date
|
1509
|
+
@Product = product
|
1510
|
+
@SortBy = sortby
|
1511
|
+
@KeyType = keytype
|
1512
|
+
@Limit = limit
|
1513
|
+
end
|
1514
|
+
|
1515
|
+
def deserialize(params)
|
1516
|
+
@InstanceId = params['InstanceId']
|
1517
|
+
@Date = params['Date']
|
1518
|
+
@Product = params['Product']
|
1519
|
+
@SortBy = params['SortBy']
|
1520
|
+
@KeyType = params['KeyType']
|
1521
|
+
@Limit = params['Limit']
|
1522
|
+
end
|
1523
|
+
end
|
1524
|
+
|
1525
|
+
# DescribeRedisTopBigKeys返回参数结构体
|
1526
|
+
class DescribeRedisTopBigKeysResponse < TencentCloud::Common::AbstractModel
|
1527
|
+
# @param TopKeys: top key列表。
|
1528
|
+
# @type TopKeys: Array
|
1529
|
+
# @param Timestamp: 采集时间戳(秒)。
|
1530
|
+
# @type Timestamp: Integer
|
1531
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1532
|
+
# @type RequestId: String
|
1533
|
+
|
1534
|
+
attr_accessor :TopKeys, :Timestamp, :RequestId
|
1535
|
+
|
1536
|
+
def initialize(topkeys=nil, timestamp=nil, requestid=nil)
|
1537
|
+
@TopKeys = topkeys
|
1538
|
+
@Timestamp = timestamp
|
1539
|
+
@RequestId = requestid
|
1540
|
+
end
|
1541
|
+
|
1542
|
+
def deserialize(params)
|
1543
|
+
unless params['TopKeys'].nil?
|
1544
|
+
@TopKeys = []
|
1545
|
+
params['TopKeys'].each do |i|
|
1546
|
+
rediskeyspacedata_tmp = RedisKeySpaceData.new
|
1547
|
+
rediskeyspacedata_tmp.deserialize(i)
|
1548
|
+
@TopKeys << rediskeyspacedata_tmp
|
1549
|
+
end
|
1550
|
+
end
|
1551
|
+
@Timestamp = params['Timestamp']
|
1552
|
+
@RequestId = params['RequestId']
|
1553
|
+
end
|
1554
|
+
end
|
1555
|
+
|
1274
1556
|
# DescribeSecurityAuditLogDownloadUrls请求参数结构体
|
1275
1557
|
class DescribeSecurityAuditLogDownloadUrlsRequest < TencentCloud::Common::AbstractModel
|
1276
1558
|
# @param SecAuditGroupId: 安全审计组Id。
|
@@ -1593,6 +1875,133 @@ module TencentCloud
|
|
1593
1875
|
end
|
1594
1876
|
end
|
1595
1877
|
|
1878
|
+
# DescribeSqlFilters请求参数结构体
|
1879
|
+
class DescribeSqlFiltersRequest < TencentCloud::Common::AbstractModel
|
1880
|
+
# @param InstanceId: 实例ID。
|
1881
|
+
# @type InstanceId: String
|
1882
|
+
# @param FilterIds: 任务ID列表,用于筛选任务列表。
|
1883
|
+
# @type FilterIds: Array
|
1884
|
+
# @param Statuses: 任务状态列表,用于筛选任务列表,取值包括RUNNING - 运行中, FINISHED - 已完成, TERMINATED - 已终止。
|
1885
|
+
# @type Statuses: Array
|
1886
|
+
# @param Offset: 偏移量,默认为0。
|
1887
|
+
# @type Offset: Integer
|
1888
|
+
# @param Limit: 返回数量,默认为20,最大值为100。
|
1889
|
+
# @type Limit: Integer
|
1890
|
+
|
1891
|
+
attr_accessor :InstanceId, :FilterIds, :Statuses, :Offset, :Limit
|
1892
|
+
|
1893
|
+
def initialize(instanceid=nil, filterids=nil, statuses=nil, offset=nil, limit=nil)
|
1894
|
+
@InstanceId = instanceid
|
1895
|
+
@FilterIds = filterids
|
1896
|
+
@Statuses = statuses
|
1897
|
+
@Offset = offset
|
1898
|
+
@Limit = limit
|
1899
|
+
end
|
1900
|
+
|
1901
|
+
def deserialize(params)
|
1902
|
+
@InstanceId = params['InstanceId']
|
1903
|
+
@FilterIds = params['FilterIds']
|
1904
|
+
@Statuses = params['Statuses']
|
1905
|
+
@Offset = params['Offset']
|
1906
|
+
@Limit = params['Limit']
|
1907
|
+
end
|
1908
|
+
end
|
1909
|
+
|
1910
|
+
# DescribeSqlFilters返回参数结构体
|
1911
|
+
class DescribeSqlFiltersResponse < TencentCloud::Common::AbstractModel
|
1912
|
+
# @param TotalCount: 限流任务总数目。
|
1913
|
+
# @type TotalCount: Integer
|
1914
|
+
# @param Items: 限流任务列表。
|
1915
|
+
# @type Items: Array
|
1916
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1917
|
+
# @type RequestId: String
|
1918
|
+
|
1919
|
+
attr_accessor :TotalCount, :Items, :RequestId
|
1920
|
+
|
1921
|
+
def initialize(totalcount=nil, items=nil, requestid=nil)
|
1922
|
+
@TotalCount = totalcount
|
1923
|
+
@Items = items
|
1924
|
+
@RequestId = requestid
|
1925
|
+
end
|
1926
|
+
|
1927
|
+
def deserialize(params)
|
1928
|
+
@TotalCount = params['TotalCount']
|
1929
|
+
unless params['Items'].nil?
|
1930
|
+
@Items = []
|
1931
|
+
params['Items'].each do |i|
|
1932
|
+
sqlfilter_tmp = SQLFilter.new
|
1933
|
+
sqlfilter_tmp.deserialize(i)
|
1934
|
+
@Items << sqlfilter_tmp
|
1935
|
+
end
|
1936
|
+
end
|
1937
|
+
@RequestId = params['RequestId']
|
1938
|
+
end
|
1939
|
+
end
|
1940
|
+
|
1941
|
+
# DescribeSqlTemplate请求参数结构体
|
1942
|
+
class DescribeSqlTemplateRequest < TencentCloud::Common::AbstractModel
|
1943
|
+
# @param InstanceId: 实例ID。
|
1944
|
+
# @type InstanceId: String
|
1945
|
+
# @param Schema: 数据库名。
|
1946
|
+
# @type Schema: String
|
1947
|
+
# @param SqlText: SQL语句。
|
1948
|
+
# @type SqlText: String
|
1949
|
+
# @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
|
1950
|
+
# @type Product: String
|
1951
|
+
|
1952
|
+
attr_accessor :InstanceId, :Schema, :SqlText, :Product
|
1953
|
+
|
1954
|
+
def initialize(instanceid=nil, schema=nil, sqltext=nil, product=nil)
|
1955
|
+
@InstanceId = instanceid
|
1956
|
+
@Schema = schema
|
1957
|
+
@SqlText = sqltext
|
1958
|
+
@Product = product
|
1959
|
+
end
|
1960
|
+
|
1961
|
+
def deserialize(params)
|
1962
|
+
@InstanceId = params['InstanceId']
|
1963
|
+
@Schema = params['Schema']
|
1964
|
+
@SqlText = params['SqlText']
|
1965
|
+
@Product = params['Product']
|
1966
|
+
end
|
1967
|
+
end
|
1968
|
+
|
1969
|
+
# DescribeSqlTemplate返回参数结构体
|
1970
|
+
class DescribeSqlTemplateResponse < TencentCloud::Common::AbstractModel
|
1971
|
+
# @param Schema: 数据库名。
|
1972
|
+
# @type Schema: String
|
1973
|
+
# @param SqlText: SQL语句。
|
1974
|
+
# @type SqlText: String
|
1975
|
+
# @param SqlType: SQL类型。
|
1976
|
+
# @type SqlType: String
|
1977
|
+
# @param SqlTemplate: SQL模版内容。
|
1978
|
+
# @type SqlTemplate: String
|
1979
|
+
# @param SqlId: SQL模版ID。
|
1980
|
+
# @type SqlId: Integer
|
1981
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1982
|
+
# @type RequestId: String
|
1983
|
+
|
1984
|
+
attr_accessor :Schema, :SqlText, :SqlType, :SqlTemplate, :SqlId, :RequestId
|
1985
|
+
|
1986
|
+
def initialize(schema=nil, sqltext=nil, sqltype=nil, sqltemplate=nil, sqlid=nil, requestid=nil)
|
1987
|
+
@Schema = schema
|
1988
|
+
@SqlText = sqltext
|
1989
|
+
@SqlType = sqltype
|
1990
|
+
@SqlTemplate = sqltemplate
|
1991
|
+
@SqlId = sqlid
|
1992
|
+
@RequestId = requestid
|
1993
|
+
end
|
1994
|
+
|
1995
|
+
def deserialize(params)
|
1996
|
+
@Schema = params['Schema']
|
1997
|
+
@SqlText = params['SqlText']
|
1998
|
+
@SqlType = params['SqlType']
|
1999
|
+
@SqlTemplate = params['SqlTemplate']
|
2000
|
+
@SqlId = params['SqlId']
|
2001
|
+
@RequestId = params['RequestId']
|
2002
|
+
end
|
2003
|
+
end
|
2004
|
+
|
1596
2005
|
# DescribeTopSpaceSchemaTimeSeries请求参数结构体
|
1597
2006
|
class DescribeTopSpaceSchemaTimeSeriesRequest < TencentCloud::Common::AbstractModel
|
1598
2007
|
# @param InstanceId: 实例ID。
|
@@ -2505,6 +2914,54 @@ module TencentCloud
|
|
2505
2914
|
end
|
2506
2915
|
end
|
2507
2916
|
|
2917
|
+
# ModifySqlFilters请求参数结构体
|
2918
|
+
class ModifySqlFiltersRequest < TencentCloud::Common::AbstractModel
|
2919
|
+
# @param InstanceId: 实例ID。
|
2920
|
+
# @type InstanceId: String
|
2921
|
+
# @param SessionToken: 通过VerifyUserAccount获取有效期为5分钟的会话token,使用后会自动延长token有效期至五分钟后。
|
2922
|
+
# @type SessionToken: String
|
2923
|
+
# @param FilterIds: SQL限流任务ID列表。
|
2924
|
+
# @type FilterIds: Array
|
2925
|
+
# @param Status: 限流任务状态,取值支持TERMINATED - 终止。
|
2926
|
+
# @type Status: String
|
2927
|
+
# @param Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
|
2928
|
+
# @type Product: String
|
2929
|
+
|
2930
|
+
attr_accessor :InstanceId, :SessionToken, :FilterIds, :Status, :Product
|
2931
|
+
|
2932
|
+
def initialize(instanceid=nil, sessiontoken=nil, filterids=nil, status=nil, product=nil)
|
2933
|
+
@InstanceId = instanceid
|
2934
|
+
@SessionToken = sessiontoken
|
2935
|
+
@FilterIds = filterids
|
2936
|
+
@Status = status
|
2937
|
+
@Product = product
|
2938
|
+
end
|
2939
|
+
|
2940
|
+
def deserialize(params)
|
2941
|
+
@InstanceId = params['InstanceId']
|
2942
|
+
@SessionToken = params['SessionToken']
|
2943
|
+
@FilterIds = params['FilterIds']
|
2944
|
+
@Status = params['Status']
|
2945
|
+
@Product = params['Product']
|
2946
|
+
end
|
2947
|
+
end
|
2948
|
+
|
2949
|
+
# ModifySqlFilters返回参数结构体
|
2950
|
+
class ModifySqlFiltersResponse < TencentCloud::Common::AbstractModel
|
2951
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2952
|
+
# @type RequestId: String
|
2953
|
+
|
2954
|
+
attr_accessor :RequestId
|
2955
|
+
|
2956
|
+
def initialize(requestid=nil)
|
2957
|
+
@RequestId = requestid
|
2958
|
+
end
|
2959
|
+
|
2960
|
+
def deserialize(params)
|
2961
|
+
@RequestId = params['RequestId']
|
2962
|
+
end
|
2963
|
+
end
|
2964
|
+
|
2508
2965
|
# 监控数据(浮点型)
|
2509
2966
|
class MonitorFloatMetric < TencentCloud::Common::AbstractModel
|
2510
2967
|
# @param Metric: 指标名称。
|
@@ -2676,6 +3133,102 @@ module TencentCloud
|
|
2676
3133
|
end
|
2677
3134
|
end
|
2678
3135
|
|
3136
|
+
# redis key空间信息。
|
3137
|
+
class RedisKeySpaceData < TencentCloud::Common::AbstractModel
|
3138
|
+
# @param Key: key名。
|
3139
|
+
# @type Key: String
|
3140
|
+
# @param Type: key类型。
|
3141
|
+
# @type Type: String
|
3142
|
+
# @param Encoding: key编码方式。
|
3143
|
+
# @type Encoding: String
|
3144
|
+
# @param ExpireTime: key过期时间戳(毫秒),0代表未设置过期时间。
|
3145
|
+
# @type ExpireTime: Integer
|
3146
|
+
# @param Length: key内存大小,单位Byte。
|
3147
|
+
# @type Length: Integer
|
3148
|
+
# @param ItemCount: 元素个数。
|
3149
|
+
# @type ItemCount: Integer
|
3150
|
+
# @param MaxElementSize: 最大元素长度。
|
3151
|
+
# @type MaxElementSize: Integer
|
3152
|
+
|
3153
|
+
attr_accessor :Key, :Type, :Encoding, :ExpireTime, :Length, :ItemCount, :MaxElementSize
|
3154
|
+
|
3155
|
+
def initialize(key=nil, type=nil, encoding=nil, expiretime=nil, length=nil, itemcount=nil, maxelementsize=nil)
|
3156
|
+
@Key = key
|
3157
|
+
@Type = type
|
3158
|
+
@Encoding = encoding
|
3159
|
+
@ExpireTime = expiretime
|
3160
|
+
@Length = length
|
3161
|
+
@ItemCount = itemcount
|
3162
|
+
@MaxElementSize = maxelementsize
|
3163
|
+
end
|
3164
|
+
|
3165
|
+
def deserialize(params)
|
3166
|
+
@Key = params['Key']
|
3167
|
+
@Type = params['Type']
|
3168
|
+
@Encoding = params['Encoding']
|
3169
|
+
@ExpireTime = params['ExpireTime']
|
3170
|
+
@Length = params['Length']
|
3171
|
+
@ItemCount = params['ItemCount']
|
3172
|
+
@MaxElementSize = params['MaxElementSize']
|
3173
|
+
end
|
3174
|
+
end
|
3175
|
+
|
3176
|
+
# 实例SQL限流任务。
|
3177
|
+
class SQLFilter < TencentCloud::Common::AbstractModel
|
3178
|
+
# @param Id: 任务ID。
|
3179
|
+
# @type Id: Integer
|
3180
|
+
# @param Status: 任务状态,取值包括RUNNING - 运行中, FINISHED - 已完成, TERMINATED - 已终止。
|
3181
|
+
# @type Status: String
|
3182
|
+
# @param SqlType: SQL类型,取值包括SELECT, UPDATE, DELETE, INSERT, REPLACE。
|
3183
|
+
# @type SqlType: String
|
3184
|
+
# @param OriginKeys: 筛选SQL的关键词,多个关键词用英文逗号拼接。
|
3185
|
+
# @type OriginKeys: String
|
3186
|
+
# @param OriginRule: 筛选SQL的规则。
|
3187
|
+
# @type OriginRule: String
|
3188
|
+
# @param RejectedSqlCount: 已拒绝SQL数目。
|
3189
|
+
# @type RejectedSqlCount: Integer
|
3190
|
+
# @param CurrentConcurrency: 当前并发数。
|
3191
|
+
# @type CurrentConcurrency: Integer
|
3192
|
+
# @param MaxConcurrency: 最大并发数。
|
3193
|
+
# @type MaxConcurrency: Integer
|
3194
|
+
# @param CreateTime: 任务创建时间。
|
3195
|
+
# @type CreateTime: String
|
3196
|
+
# @param CurrentTime: 当前时间。
|
3197
|
+
# @type CurrentTime: String
|
3198
|
+
# @param ExpireTime: 限流过期时间。
|
3199
|
+
# @type ExpireTime: String
|
3200
|
+
|
3201
|
+
attr_accessor :Id, :Status, :SqlType, :OriginKeys, :OriginRule, :RejectedSqlCount, :CurrentConcurrency, :MaxConcurrency, :CreateTime, :CurrentTime, :ExpireTime
|
3202
|
+
|
3203
|
+
def initialize(id=nil, status=nil, sqltype=nil, originkeys=nil, originrule=nil, rejectedsqlcount=nil, currentconcurrency=nil, maxconcurrency=nil, createtime=nil, currenttime=nil, expiretime=nil)
|
3204
|
+
@Id = id
|
3205
|
+
@Status = status
|
3206
|
+
@SqlType = sqltype
|
3207
|
+
@OriginKeys = originkeys
|
3208
|
+
@OriginRule = originrule
|
3209
|
+
@RejectedSqlCount = rejectedsqlcount
|
3210
|
+
@CurrentConcurrency = currentconcurrency
|
3211
|
+
@MaxConcurrency = maxconcurrency
|
3212
|
+
@CreateTime = createtime
|
3213
|
+
@CurrentTime = currenttime
|
3214
|
+
@ExpireTime = expiretime
|
3215
|
+
end
|
3216
|
+
|
3217
|
+
def deserialize(params)
|
3218
|
+
@Id = params['Id']
|
3219
|
+
@Status = params['Status']
|
3220
|
+
@SqlType = params['SqlType']
|
3221
|
+
@OriginKeys = params['OriginKeys']
|
3222
|
+
@OriginRule = params['OriginRule']
|
3223
|
+
@RejectedSqlCount = params['RejectedSqlCount']
|
3224
|
+
@CurrentConcurrency = params['CurrentConcurrency']
|
3225
|
+
@MaxConcurrency = params['MaxConcurrency']
|
3226
|
+
@CreateTime = params['CreateTime']
|
3227
|
+
@CurrentTime = params['CurrentTime']
|
3228
|
+
@ExpireTime = params['ExpireTime']
|
3229
|
+
end
|
3230
|
+
end
|
3231
|
+
|
2679
3232
|
# SchemaItem数组
|
2680
3233
|
class SchemaItem < TencentCloud::Common::AbstractModel
|
2681
3234
|
# @param Schema: 数据库名称
|
@@ -3022,6 +3575,38 @@ module TencentCloud
|
|
3022
3575
|
end
|
3023
3576
|
end
|
3024
3577
|
|
3578
|
+
# 表结构。
|
3579
|
+
class Table < TencentCloud::Common::AbstractModel
|
3580
|
+
# @param TableSchema: 库名。
|
3581
|
+
# @type TableSchema: String
|
3582
|
+
# @param TableName: 表名。
|
3583
|
+
# @type TableName: String
|
3584
|
+
# @param Engine: 库表的存储引擎。
|
3585
|
+
# @type Engine: String
|
3586
|
+
# @param TableRows: 行数。
|
3587
|
+
# @type TableRows: Integer
|
3588
|
+
# @param TotalLength: 总使用空间(MB)。
|
3589
|
+
# @type TotalLength: Float
|
3590
|
+
|
3591
|
+
attr_accessor :TableSchema, :TableName, :Engine, :TableRows, :TotalLength
|
3592
|
+
|
3593
|
+
def initialize(tableschema=nil, tablename=nil, engine=nil, tablerows=nil, totallength=nil)
|
3594
|
+
@TableSchema = tableschema
|
3595
|
+
@TableName = tablename
|
3596
|
+
@Engine = engine
|
3597
|
+
@TableRows = tablerows
|
3598
|
+
@TotalLength = totallength
|
3599
|
+
end
|
3600
|
+
|
3601
|
+
def deserialize(params)
|
3602
|
+
@TableSchema = params['TableSchema']
|
3603
|
+
@TableName = params['TableName']
|
3604
|
+
@Engine = params['Engine']
|
3605
|
+
@TableRows = params['TableRows']
|
3606
|
+
@TotalLength = params['TotalLength']
|
3607
|
+
end
|
3608
|
+
end
|
3609
|
+
|
3025
3610
|
# 库表空间统计数据。
|
3026
3611
|
class TableSpaceData < TencentCloud::Common::AbstractModel
|
3027
3612
|
# @param TableName: 表名。
|
@@ -3220,6 +3805,54 @@ module TencentCloud
|
|
3220
3805
|
end
|
3221
3806
|
end
|
3222
3807
|
|
3808
|
+
# VerifyUserAccount请求参数结构体
|
3809
|
+
class VerifyUserAccountRequest < TencentCloud::Common::AbstractModel
|
3810
|
+
# @param InstanceId: 实例ID。
|
3811
|
+
# @type InstanceId: String
|
3812
|
+
# @param User: 数据库账号名。
|
3813
|
+
# @type User: String
|
3814
|
+
# @param Password: 数据库账号密码。
|
3815
|
+
# @type Password: String
|
3816
|
+
# @param Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
|
3817
|
+
# @type Product: String
|
3818
|
+
|
3819
|
+
attr_accessor :InstanceId, :User, :Password, :Product
|
3820
|
+
|
3821
|
+
def initialize(instanceid=nil, user=nil, password=nil, product=nil)
|
3822
|
+
@InstanceId = instanceid
|
3823
|
+
@User = user
|
3824
|
+
@Password = password
|
3825
|
+
@Product = product
|
3826
|
+
end
|
3827
|
+
|
3828
|
+
def deserialize(params)
|
3829
|
+
@InstanceId = params['InstanceId']
|
3830
|
+
@User = params['User']
|
3831
|
+
@Password = params['Password']
|
3832
|
+
@Product = params['Product']
|
3833
|
+
end
|
3834
|
+
end
|
3835
|
+
|
3836
|
+
# VerifyUserAccount返回参数结构体
|
3837
|
+
class VerifyUserAccountResponse < TencentCloud::Common::AbstractModel
|
3838
|
+
# @param SessionToken: 会话token,有效期为5分钟。
|
3839
|
+
# @type SessionToken: String
|
3840
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3841
|
+
# @type RequestId: String
|
3842
|
+
|
3843
|
+
attr_accessor :SessionToken, :RequestId
|
3844
|
+
|
3845
|
+
def initialize(sessiontoken=nil, requestid=nil)
|
3846
|
+
@SessionToken = sessiontoken
|
3847
|
+
@RequestId = requestid
|
3848
|
+
end
|
3849
|
+
|
3850
|
+
def deserialize(params)
|
3851
|
+
@SessionToken = params['SessionToken']
|
3852
|
+
@RequestId = params['RequestId']
|
3853
|
+
end
|
3854
|
+
end
|
3855
|
+
|
3223
3856
|
end
|
3224
3857
|
end
|
3225
3858
|
end
|