tencentcloud-sdk-dbbrain 1.0.254 → 1.0.255
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 +24 -0
- data/lib/v20210527/models.rb +111 -0
- 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: 93b184dcfebb759749c3c8a488f6fd2cf50aacde
|
4
|
+
data.tar.gz: 74554a728c653e0aa42b31bc6c212374aa069357
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72c30df32e4d6558360d290f09625075101859e9e7a0bd0404b17a4d404b4fcf9732924805512f46ed9422bd5d8c73897cd05f56ccf61f4f8c91027754705452
|
7
|
+
data.tar.gz: 37b89aa8992a1fadc9a662167674e3a15faf092fdfbdc7bdb3ae7d9a6dac364700fbf73d9ec6f5d752dda78f51def561990dc4e3dd34815a573cbce55e32253f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.255
|
data/lib/v20210527/client.rb
CHANGED
@@ -509,6 +509,30 @@ module TencentCloud
|
|
509
509
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
510
510
|
end
|
511
511
|
|
512
|
+
# 用于查询 redis 执行 kill 会话任务后代理节点的执行结果,入参异步任务 ID 从接口 CreateProxySessionKillTask 调用成功后取得。当前 product 只支持:redis。
|
513
|
+
|
514
|
+
# @param request: Request instance for DescribeProxySessionKillTasks.
|
515
|
+
# @type request: :class:`Tencentcloud::dbbrain::V20210527::DescribeProxySessionKillTasksRequest`
|
516
|
+
# @rtype: :class:`Tencentcloud::dbbrain::V20210527::DescribeProxySessionKillTasksResponse`
|
517
|
+
def DescribeProxySessionKillTasks(request)
|
518
|
+
body = send_request('DescribeProxySessionKillTasks', request.serialize)
|
519
|
+
response = JSON.parse(body)
|
520
|
+
if response['Response'].key?('Error') == false
|
521
|
+
model = DescribeProxySessionKillTasksResponse.new
|
522
|
+
model.deserialize(response['Response'])
|
523
|
+
model
|
524
|
+
else
|
525
|
+
code = response['Response']['Error']['Code']
|
526
|
+
message = response['Response']['Error']['Message']
|
527
|
+
reqid = response['Response']['RequestId']
|
528
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
529
|
+
end
|
530
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
531
|
+
raise e
|
532
|
+
rescue StandardError => e
|
533
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
534
|
+
end
|
535
|
+
|
512
536
|
# 查询安全审计日志导出文件下载链接。目前日志文件下载仅提供腾讯云内网地址,请通过广州地域的腾讯云服务器进行下载。
|
513
537
|
|
514
538
|
# @param request: Request instance for DescribeSecurityAuditLogDownloadUrls.
|
data/lib/v20210527/models.rb
CHANGED
@@ -1216,6 +1216,61 @@ module TencentCloud
|
|
1216
1216
|
end
|
1217
1217
|
end
|
1218
1218
|
|
1219
|
+
# DescribeProxySessionKillTasks请求参数结构体
|
1220
|
+
class DescribeProxySessionKillTasksRequest < TencentCloud::Common::AbstractModel
|
1221
|
+
# @param InstanceId: 实例ID。
|
1222
|
+
# @type InstanceId: String
|
1223
|
+
# @param AsyncRequestIds: kill 会话异步任务 ID, 接口 CreateProxySessionKillTask 调用成功后获取。
|
1224
|
+
# @type AsyncRequestIds: Array
|
1225
|
+
# @param Product: 服务产品类型,支持值包括: "redis" - 云数据库 Redis。
|
1226
|
+
# @type Product: String
|
1227
|
+
|
1228
|
+
attr_accessor :InstanceId, :AsyncRequestIds, :Product
|
1229
|
+
|
1230
|
+
def initialize(instanceid=nil, asyncrequestids=nil, product=nil)
|
1231
|
+
@InstanceId = instanceid
|
1232
|
+
@AsyncRequestIds = asyncrequestids
|
1233
|
+
@Product = product
|
1234
|
+
end
|
1235
|
+
|
1236
|
+
def deserialize(params)
|
1237
|
+
@InstanceId = params['InstanceId']
|
1238
|
+
@AsyncRequestIds = params['AsyncRequestIds']
|
1239
|
+
@Product = params['Product']
|
1240
|
+
end
|
1241
|
+
end
|
1242
|
+
|
1243
|
+
# DescribeProxySessionKillTasks返回参数结构体
|
1244
|
+
class DescribeProxySessionKillTasksResponse < TencentCloud::Common::AbstractModel
|
1245
|
+
# @param Tasks: kill 任务的详情。
|
1246
|
+
# @type Tasks: Array
|
1247
|
+
# @param TotalCount: 任务总数。
|
1248
|
+
# @type TotalCount: Integer
|
1249
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1250
|
+
# @type RequestId: String
|
1251
|
+
|
1252
|
+
attr_accessor :Tasks, :TotalCount, :RequestId
|
1253
|
+
|
1254
|
+
def initialize(tasks=nil, totalcount=nil, requestid=nil)
|
1255
|
+
@Tasks = tasks
|
1256
|
+
@TotalCount = totalcount
|
1257
|
+
@RequestId = requestid
|
1258
|
+
end
|
1259
|
+
|
1260
|
+
def deserialize(params)
|
1261
|
+
unless params['Tasks'].nil?
|
1262
|
+
@Tasks = []
|
1263
|
+
params['Tasks'].each do |i|
|
1264
|
+
taskinfo_tmp = TaskInfo.new
|
1265
|
+
taskinfo_tmp.deserialize(i)
|
1266
|
+
@Tasks << taskinfo_tmp
|
1267
|
+
end
|
1268
|
+
end
|
1269
|
+
@TotalCount = params['TotalCount']
|
1270
|
+
@RequestId = params['RequestId']
|
1271
|
+
end
|
1272
|
+
end
|
1273
|
+
|
1219
1274
|
# DescribeSecurityAuditLogDownloadUrls请求参数结构体
|
1220
1275
|
class DescribeSecurityAuditLogDownloadUrlsRequest < TencentCloud::Common::AbstractModel
|
1221
1276
|
# @param SecAuditGroupId: 安全审计组Id。
|
@@ -3046,6 +3101,62 @@ module TencentCloud
|
|
3046
3101
|
end
|
3047
3102
|
end
|
3048
3103
|
|
3104
|
+
# 展示 redis kill 会话任务状态。
|
3105
|
+
class TaskInfo < TencentCloud::Common::AbstractModel
|
3106
|
+
# @param AsyncRequestId: 异步任务 ID。
|
3107
|
+
# @type AsyncRequestId: Integer
|
3108
|
+
# @param InstProxyList: 当前实例所有 proxy 列表。
|
3109
|
+
# @type InstProxyList: Array
|
3110
|
+
# @param InstProxyCount: 当前实例所有 proxy 数量。
|
3111
|
+
# @type InstProxyCount: Integer
|
3112
|
+
# @param CreateTime: 任务创建时间。
|
3113
|
+
# @type CreateTime: String
|
3114
|
+
# @param StartTime: 任务启动时间。
|
3115
|
+
# @type StartTime: String
|
3116
|
+
# @param TaskStatus: 任务的状态,支持的取值包括:"created" - 新建;"chosen" - 待执行; "running" - 执行中;"failed" - 失败;"finished" - 已完成。
|
3117
|
+
# @type TaskStatus: String
|
3118
|
+
# @param FinishedProxyList: 完成 kill 任务的 proxyId。
|
3119
|
+
# @type FinishedProxyList: Array
|
3120
|
+
# @param FailedProxyList: kill 任务实行失败的 proxyId。
|
3121
|
+
# @type FailedProxyList: Array
|
3122
|
+
# @param EndTime: 任务结束时间。
|
3123
|
+
# @type EndTime: String
|
3124
|
+
# @param Progress: 任务执行进度。
|
3125
|
+
# @type Progress: Integer
|
3126
|
+
# @param InstanceId: 实例 ID。
|
3127
|
+
# @type InstanceId: String
|
3128
|
+
|
3129
|
+
attr_accessor :AsyncRequestId, :InstProxyList, :InstProxyCount, :CreateTime, :StartTime, :TaskStatus, :FinishedProxyList, :FailedProxyList, :EndTime, :Progress, :InstanceId
|
3130
|
+
|
3131
|
+
def initialize(asyncrequestid=nil, instproxylist=nil, instproxycount=nil, createtime=nil, starttime=nil, taskstatus=nil, finishedproxylist=nil, failedproxylist=nil, endtime=nil, progress=nil, instanceid=nil)
|
3132
|
+
@AsyncRequestId = asyncrequestid
|
3133
|
+
@InstProxyList = instproxylist
|
3134
|
+
@InstProxyCount = instproxycount
|
3135
|
+
@CreateTime = createtime
|
3136
|
+
@StartTime = starttime
|
3137
|
+
@TaskStatus = taskstatus
|
3138
|
+
@FinishedProxyList = finishedproxylist
|
3139
|
+
@FailedProxyList = failedproxylist
|
3140
|
+
@EndTime = endtime
|
3141
|
+
@Progress = progress
|
3142
|
+
@InstanceId = instanceid
|
3143
|
+
end
|
3144
|
+
|
3145
|
+
def deserialize(params)
|
3146
|
+
@AsyncRequestId = params['AsyncRequestId']
|
3147
|
+
@InstProxyList = params['InstProxyList']
|
3148
|
+
@InstProxyCount = params['InstProxyCount']
|
3149
|
+
@CreateTime = params['CreateTime']
|
3150
|
+
@StartTime = params['StartTime']
|
3151
|
+
@TaskStatus = params['TaskStatus']
|
3152
|
+
@FinishedProxyList = params['FinishedProxyList']
|
3153
|
+
@FailedProxyList = params['FailedProxyList']
|
3154
|
+
@EndTime = params['EndTime']
|
3155
|
+
@Progress = params['Progress']
|
3156
|
+
@InstanceId = params['InstanceId']
|
3157
|
+
end
|
3158
|
+
end
|
3159
|
+
|
3049
3160
|
# 单位时间间隔内的慢日志统计
|
3050
3161
|
class TimeSlice < TencentCloud::Common::AbstractModel
|
3051
3162
|
# @param Count: 总数
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-dbbrain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.255
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|