tencentcloud-sdk-dbbrain 1.0.237 → 1.0.238

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f25660e6191c47cedba0b02d4347bf45bf688c8d
4
- data.tar.gz: 874eb837ae2d663ddd3c8b4892b3bd921d281900
3
+ metadata.gz: 416c10d48e1ea1e262a1fc5517c2c2ef22bf8d30
4
+ data.tar.gz: 99f61e749562719a8c50ed65dd7beac87d0cc114
5
5
  SHA512:
6
- metadata.gz: 6e505ca12c709881b954c84f89c3133733d73eb2e78a7a58aebc916f8b76dc12d9715b54aef3b7c8b1ab5682206d6d8c7d26a4e6f3501cff5d243bf07dd7f347
7
- data.tar.gz: 52fbff91634bd5a911a15634bd52d9de84163a86664b784bc0009becf8b9bd98f5b0083e75ac7a6b5b9371bd39e759ce9c47e07e0f53eca41640f377e3224c5d
6
+ metadata.gz: 8123447bfb5b0f9cd9da6810c92e291878093eea3d541e52cda93290fc93a58d611c50fef23e457634709457df72731e80eab6b8b7652c88e52f2c05e7214441
7
+ data.tar.gz: 42bb1cab19cc2f317b2c9e0f52c9aa2d19da227dded191714d4beb048dc23e839381286cfb61a3163d836c1412a676c542c158b5f9f5943111c561cc8544ff68
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.237
1
+ 1.0.238
@@ -101,6 +101,30 @@ module TencentCloud
101
101
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
102
  end
103
103
 
104
+ # 创建中断会话的任务。
105
+
106
+ # @param request: Request instance for CreateKillTask.
107
+ # @type request: :class:`Tencentcloud::dbbrain::V20210527::CreateKillTaskRequest`
108
+ # @rtype: :class:`Tencentcloud::dbbrain::V20210527::CreateKillTaskResponse`
109
+ def CreateKillTask(request)
110
+ body = send_request('CreateKillTask', request.serialize)
111
+ response = JSON.parse(body)
112
+ if response['Response'].key?('Error') == false
113
+ model = CreateKillTaskResponse.new
114
+ model.deserialize(response['Response'])
115
+ model
116
+ else
117
+ code = response['Response']['Error']['Code']
118
+ message = response['Response']['Error']['Message']
119
+ reqid = response['Response']['RequestId']
120
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
121
+ end
122
+ rescue TencentCloud::Common::TencentCloudSDKException => e
123
+ raise e
124
+ rescue StandardError => e
125
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
+ end
127
+
104
128
  # 创建邮件配置。其中入参ProfileType表示所创建配置的类型,ProfileType 取值包括:dbScan_mail_configuration(数据库巡检邮件配置)、scheduler_mail_configuration(定期生成健康报告的邮件发送配置)。Region统一选择广州,和实例所属地域无关。
105
129
 
106
130
  # @param request: Request instance for CreateMailProfile.
@@ -125,6 +149,30 @@ module TencentCloud
125
149
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
150
  end
127
151
 
152
+ # 创建中止所有代理节点连接会话的异步任务。当前仅支持 Redis。得到的返回值为异步任务 id,可以作为参数传入接口 DescribeProxySessionKillTasks 查询kill会话任务执行状态。
153
+
154
+ # @param request: Request instance for CreateProxySessionKillTask.
155
+ # @type request: :class:`Tencentcloud::dbbrain::V20210527::CreateProxySessionKillTaskRequest`
156
+ # @rtype: :class:`Tencentcloud::dbbrain::V20210527::CreateProxySessionKillTaskResponse`
157
+ def CreateProxySessionKillTask(request)
158
+ body = send_request('CreateProxySessionKillTask', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = CreateProxySessionKillTaskResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
128
176
  # 该接口用于创建定期生成健康报告并邮件发送的配置,将健康报告的定期生成时间作为参数传入(周一至周日),用于设置健康报告的定期生成时间,同时保存相应的定期邮件发送的配置。
129
177
 
130
178
  # @param request: Request instance for CreateSchedulerMailProfile.
@@ -194,6 +194,74 @@ module TencentCloud
194
194
  end
195
195
  end
196
196
 
197
+ # CreateKillTask请求参数结构体
198
+ class CreateKillTaskRequest < TencentCloud::Common::AbstractModel
199
+ # @param InstanceId: kill会话任务的关联实例ID。
200
+ # @type InstanceId: String
201
+ # @param Duration: 任务持续时间时间,单位秒,手动关闭任务传-1。
202
+ # @type Duration: Integer
203
+ # @param Host: 任务过滤条件,客户端IP。
204
+ # @type Host: String
205
+ # @param DB: 任务过滤条件,数据库库名,多个","隔开。
206
+ # @type DB: String
207
+ # @param Command: 任务过滤条件,相关命令,多个","隔开。
208
+ # @type Command: String
209
+ # @param Info: 任务过滤条件,支持单条件前缀匹配。
210
+ # @type Info: String
211
+ # @param User: 任务过滤条件,用户类型。
212
+ # @type User: String
213
+ # @param Time: 任务过滤条件,会话持续时长,单位秒。
214
+ # @type Time: Integer
215
+ # @param Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
216
+ # @type Product: String
217
+
218
+ attr_accessor :InstanceId, :Duration, :Host, :DB, :Command, :Info, :User, :Time, :Product
219
+
220
+ def initialize(instanceid=nil, duration=nil, host=nil, db=nil, command=nil, info=nil, user=nil, time=nil, product=nil)
221
+ @InstanceId = instanceid
222
+ @Duration = duration
223
+ @Host = host
224
+ @DB = db
225
+ @Command = command
226
+ @Info = info
227
+ @User = user
228
+ @Time = time
229
+ @Product = product
230
+ end
231
+
232
+ def deserialize(params)
233
+ @InstanceId = params['InstanceId']
234
+ @Duration = params['Duration']
235
+ @Host = params['Host']
236
+ @DB = params['DB']
237
+ @Command = params['Command']
238
+ @Info = params['Info']
239
+ @User = params['User']
240
+ @Time = params['Time']
241
+ @Product = params['Product']
242
+ end
243
+ end
244
+
245
+ # CreateKillTask返回参数结构体
246
+ class CreateKillTaskResponse < TencentCloud::Common::AbstractModel
247
+ # @param Status: kill会话任务创建成功返回1
248
+ # @type Status: Integer
249
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
250
+ # @type RequestId: String
251
+
252
+ attr_accessor :Status, :RequestId
253
+
254
+ def initialize(status=nil, requestid=nil)
255
+ @Status = status
256
+ @RequestId = requestid
257
+ end
258
+
259
+ def deserialize(params)
260
+ @Status = params['Status']
261
+ @RequestId = params['RequestId']
262
+ end
263
+ end
264
+
197
265
  # CreateMailProfile请求参数结构体
198
266
  class CreateMailProfileRequest < TencentCloud::Common::AbstractModel
199
267
  # @param ProfileInfo: 邮件配置内容。
@@ -249,6 +317,46 @@ module TencentCloud
249
317
  end
250
318
  end
251
319
 
320
+ # CreateProxySessionKillTask请求参数结构体
321
+ class CreateProxySessionKillTaskRequest < TencentCloud::Common::AbstractModel
322
+ # @param InstanceId: 实例 ID。
323
+ # @type InstanceId: String
324
+ # @param Product: 服务产品类型,支持值包括: "redis" - 云数据库 Redis。
325
+ # @type Product: String
326
+
327
+ attr_accessor :InstanceId, :Product
328
+
329
+ def initialize(instanceid=nil, product=nil)
330
+ @InstanceId = instanceid
331
+ @Product = product
332
+ end
333
+
334
+ def deserialize(params)
335
+ @InstanceId = params['InstanceId']
336
+ @Product = params['Product']
337
+ end
338
+ end
339
+
340
+ # CreateProxySessionKillTask返回参数结构体
341
+ class CreateProxySessionKillTaskResponse < TencentCloud::Common::AbstractModel
342
+ # @param AsyncRequestId: 创建 kill 会话任务返回的异步任务 id
343
+ # @type AsyncRequestId: Integer
344
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
345
+ # @type RequestId: String
346
+
347
+ attr_accessor :AsyncRequestId, :RequestId
348
+
349
+ def initialize(asyncrequestid=nil, requestid=nil)
350
+ @AsyncRequestId = asyncrequestid
351
+ @RequestId = requestid
352
+ end
353
+
354
+ def deserialize(params)
355
+ @AsyncRequestId = params['AsyncRequestId']
356
+ @RequestId = params['RequestId']
357
+ end
358
+ end
359
+
252
360
  # CreateSchedulerMailProfile请求参数结构体
253
361
  class CreateSchedulerMailProfileRequest < TencentCloud::Common::AbstractModel
254
362
  # @param WeekConfiguration: 取值范围1-7,分别代表周一至周日。
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.237
4
+ version: 1.0.238
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-01-07 00:00:00.000000000 Z
11
+ date: 2022-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common