tencentcloud-sdk-python-dbbrain 3.1.50__tar.gz → 3.1.97__tar.gz

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.
Files changed (22) hide show
  1. {tencentcloud_sdk_python_dbbrain-3.1.50 → tencentcloud_sdk_python_dbbrain-3.1.97}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_dbbrain-3.1.50 → tencentcloud_sdk_python_dbbrain-3.1.97}/setup.py +1 -1
  3. {tencentcloud_sdk_python_dbbrain-3.1.50 → tencentcloud_sdk_python_dbbrain-3.1.97}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_dbbrain-3.1.50 → tencentcloud_sdk_python_dbbrain-3.1.97}/tencentcloud/dbbrain/v20210527/dbbrain_client.py +24 -1
  5. {tencentcloud_sdk_python_dbbrain-3.1.50 → tencentcloud_sdk_python_dbbrain-3.1.97}/tencentcloud/dbbrain/v20210527/dbbrain_client_async.py +19 -1
  6. {tencentcloud_sdk_python_dbbrain-3.1.50 → tencentcloud_sdk_python_dbbrain-3.1.97}/tencentcloud/dbbrain/v20210527/models.py +186 -0
  7. {tencentcloud_sdk_python_dbbrain-3.1.50 → tencentcloud_sdk_python_dbbrain-3.1.97}/tencentcloud_sdk_python_dbbrain.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_dbbrain-3.1.97/tencentcloud_sdk_python_dbbrain.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_dbbrain-3.1.50/tencentcloud_sdk_python_dbbrain.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_dbbrain-3.1.50 → tencentcloud_sdk_python_dbbrain-3.1.97}/README.rst +0 -0
  11. {tencentcloud_sdk_python_dbbrain-3.1.50 → tencentcloud_sdk_python_dbbrain-3.1.97}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_dbbrain-3.1.50 → tencentcloud_sdk_python_dbbrain-3.1.97}/tencentcloud/dbbrain/__init__.py +0 -0
  13. {tencentcloud_sdk_python_dbbrain-3.1.50 → tencentcloud_sdk_python_dbbrain-3.1.97}/tencentcloud/dbbrain/v20191016/__init__.py +0 -0
  14. {tencentcloud_sdk_python_dbbrain-3.1.50 → tencentcloud_sdk_python_dbbrain-3.1.97}/tencentcloud/dbbrain/v20191016/dbbrain_client.py +0 -0
  15. {tencentcloud_sdk_python_dbbrain-3.1.50 → tencentcloud_sdk_python_dbbrain-3.1.97}/tencentcloud/dbbrain/v20191016/dbbrain_client_async.py +0 -0
  16. {tencentcloud_sdk_python_dbbrain-3.1.50 → tencentcloud_sdk_python_dbbrain-3.1.97}/tencentcloud/dbbrain/v20191016/errorcodes.py +0 -0
  17. {tencentcloud_sdk_python_dbbrain-3.1.50 → tencentcloud_sdk_python_dbbrain-3.1.97}/tencentcloud/dbbrain/v20191016/models.py +0 -0
  18. {tencentcloud_sdk_python_dbbrain-3.1.50 → tencentcloud_sdk_python_dbbrain-3.1.97}/tencentcloud/dbbrain/v20210527/__init__.py +0 -0
  19. {tencentcloud_sdk_python_dbbrain-3.1.50 → tencentcloud_sdk_python_dbbrain-3.1.97}/tencentcloud/dbbrain/v20210527/errorcodes.py +0 -0
  20. {tencentcloud_sdk_python_dbbrain-3.1.50 → tencentcloud_sdk_python_dbbrain-3.1.97}/tencentcloud_sdk_python_dbbrain.egg-info/SOURCES.txt +0 -0
  21. {tencentcloud_sdk_python_dbbrain-3.1.50 → tencentcloud_sdk_python_dbbrain-3.1.97}/tencentcloud_sdk_python_dbbrain.egg-info/dependency_links.txt +0 -0
  22. {tencentcloud_sdk_python_dbbrain-3.1.50 → tencentcloud_sdk_python_dbbrain-3.1.97}/tencentcloud_sdk_python_dbbrain.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-dbbrain
3
- Version: 3.1.50
3
+ Version: 3.1.97
4
4
  Summary: Tencent Cloud Dbbrain SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.50
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.97
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-dbbrain',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.50,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.97,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Dbbrain SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.50'
17
+ __version__ = '3.1.97'
@@ -279,6 +279,29 @@ class DbbrainClient(AbstractClient):
279
279
  raise TencentCloudSDKException(type(e).__name__, str(e))
280
280
 
281
281
 
282
+ def CreateMongoDBKillTask(self, request):
283
+ r"""创建中断会话的任务。
284
+
285
+ :param request: Request instance for CreateMongoDBKillTask.
286
+ :type request: :class:`tencentcloud.dbbrain.v20210527.models.CreateMongoDBKillTaskRequest`
287
+ :rtype: :class:`tencentcloud.dbbrain.v20210527.models.CreateMongoDBKillTaskResponse`
288
+
289
+ """
290
+ try:
291
+ params = request._serialize()
292
+ headers = request.headers
293
+ body = self.call("CreateMongoDBKillTask", params, headers=headers)
294
+ response = json.loads(body)
295
+ model = models.CreateMongoDBKillTaskResponse()
296
+ model._deserialize(response["Response"])
297
+ return model
298
+ except Exception as e:
299
+ if isinstance(e, TencentCloudSDKException):
300
+ raise
301
+ else:
302
+ raise TencentCloudSDKException(type(e).__name__, str(e))
303
+
304
+
282
305
  def CreateProxySessionKillTask(self, request):
283
306
  r"""创建中止所有代理节点连接会话的异步任务。当前仅支持 Redis。得到的返回值为异步任务 id,可以作为参数传入接口 DescribeProxySessionKillTasks 查询kill会话任务执行状态。
284
307
 
@@ -1752,7 +1775,7 @@ class DbbrainClient(AbstractClient):
1752
1775
 
1753
1776
 
1754
1777
  def KillMySqlThreads(self, request):
1755
- r"""根据会话ID中断当前会话,该接口分为两次提交:第一次为预提交阶段,Stage为"Prepare",得到的返回值包含SqlExecId;第二次为确认提交, Stage为"Commit", 将SqlExecId的值作为参数传入,最终终止会话进程。
1778
+ r"""根据会话ID中断当前会话,该接口分为两次提交:第一次为预提交阶段,Stage为"Prepare",得到的返回值包含SqlExecId;第二次为确认提交, Stage为"Commit", 将SqlExecId的值作为参数传入,最终终止会话进程。注意:Prepare请求与Commit请求的间隔不能超过10秒,否则Prepare阶段生成的执行凭证(SqlExecId)将过期失效,Commit操作不会执行任何kill动作。
1756
1779
 
1757
1780
  :param request: Request instance for KillMySqlThreads.
1758
1781
  :type request: :class:`tencentcloud.dbbrain.v20210527.models.KillMySqlThreadsRequest`
@@ -223,6 +223,24 @@ class DbbrainClient(AbstractClient):
223
223
 
224
224
  return await self.call_and_deserialize(**kwargs)
225
225
 
226
+ async def CreateMongoDBKillTask(
227
+ self,
228
+ request: models.CreateMongoDBKillTaskRequest,
229
+ opts: Dict = None,
230
+ ) -> models.CreateMongoDBKillTaskResponse:
231
+ """
232
+ 创建中断会话的任务。
233
+ """
234
+
235
+ kwargs = {}
236
+ kwargs["action"] = "CreateMongoDBKillTask"
237
+ kwargs["params"] = request._serialize()
238
+ kwargs["resp_cls"] = models.CreateMongoDBKillTaskResponse
239
+ kwargs["headers"] = request.headers
240
+ kwargs["opts"] = opts or {}
241
+
242
+ return await self.call_and_deserialize(**kwargs)
243
+
226
244
  async def CreateProxySessionKillTask(
227
245
  self,
228
246
  request: models.CreateProxySessionKillTaskRequest,
@@ -1381,7 +1399,7 @@ class DbbrainClient(AbstractClient):
1381
1399
  opts: Dict = None,
1382
1400
  ) -> models.KillMySqlThreadsResponse:
1383
1401
  """
1384
- 根据会话ID中断当前会话,该接口分为两次提交:第一次为预提交阶段,Stage为"Prepare",得到的返回值包含SqlExecId;第二次为确认提交, Stage为"Commit", 将SqlExecId的值作为参数传入,最终终止会话进程。
1402
+ 根据会话ID中断当前会话,该接口分为两次提交:第一次为预提交阶段,Stage为"Prepare",得到的返回值包含SqlExecId;第二次为确认提交, Stage为"Commit", 将SqlExecId的值作为参数传入,最终终止会话进程。注意:Prepare请求与Commit请求的间隔不能超过10秒,否则Prepare阶段生成的执行凭证(SqlExecId)将过期失效,Commit操作不会执行任何kill动作。
1385
1403
  """
1386
1404
 
1387
1405
  kwargs = {}
@@ -3167,6 +3167,192 @@ class CreateMailProfileResponse(AbstractModel):
3167
3167
  self._RequestId = params.get("RequestId")
3168
3168
 
3169
3169
 
3170
+ class CreateMongoDBKillTaskRequest(AbstractModel):
3171
+ r"""CreateMongoDBKillTask请求参数结构体
3172
+
3173
+ """
3174
+
3175
+ def __init__(self):
3176
+ r"""
3177
+ :param _InstanceId: kill会话任务的关联实例ID。
3178
+ :type InstanceId: str
3179
+ :param _Duration: 任务持续时间,单位秒,手动关闭任务传-1。
3180
+ :type Duration: int
3181
+ :param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
3182
+ :type Product: str
3183
+ :param _Host: 任务过滤条件,客户端IP。
3184
+ :type Host: str
3185
+ :param _DB: 命名空间
3186
+ :type DB: list of str
3187
+ :param _Type: update,insert,query,getmore,remove,killcursors,command,compressed,none
3188
+ :type Type: str
3189
+ :param _Time: kill任务过滤条件,会话持续时长,单位秒。
3190
+ :type Time: int
3191
+ """
3192
+ self._InstanceId = None
3193
+ self._Duration = None
3194
+ self._Product = None
3195
+ self._Host = None
3196
+ self._DB = None
3197
+ self._Type = None
3198
+ self._Time = None
3199
+
3200
+ @property
3201
+ def InstanceId(self):
3202
+ r"""kill会话任务的关联实例ID。
3203
+ :rtype: str
3204
+ """
3205
+ return self._InstanceId
3206
+
3207
+ @InstanceId.setter
3208
+ def InstanceId(self, InstanceId):
3209
+ self._InstanceId = InstanceId
3210
+
3211
+ @property
3212
+ def Duration(self):
3213
+ r"""任务持续时间,单位秒,手动关闭任务传-1。
3214
+ :rtype: int
3215
+ """
3216
+ return self._Duration
3217
+
3218
+ @Duration.setter
3219
+ def Duration(self, Duration):
3220
+ self._Duration = Duration
3221
+
3222
+ @property
3223
+ def Product(self):
3224
+ r"""服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
3225
+ :rtype: str
3226
+ """
3227
+ return self._Product
3228
+
3229
+ @Product.setter
3230
+ def Product(self, Product):
3231
+ self._Product = Product
3232
+
3233
+ @property
3234
+ def Host(self):
3235
+ r"""任务过滤条件,客户端IP。
3236
+ :rtype: str
3237
+ """
3238
+ return self._Host
3239
+
3240
+ @Host.setter
3241
+ def Host(self, Host):
3242
+ self._Host = Host
3243
+
3244
+ @property
3245
+ def DB(self):
3246
+ r"""命名空间
3247
+ :rtype: list of str
3248
+ """
3249
+ return self._DB
3250
+
3251
+ @DB.setter
3252
+ def DB(self, DB):
3253
+ self._DB = DB
3254
+
3255
+ @property
3256
+ def Type(self):
3257
+ r"""update,insert,query,getmore,remove,killcursors,command,compressed,none
3258
+ :rtype: str
3259
+ """
3260
+ return self._Type
3261
+
3262
+ @Type.setter
3263
+ def Type(self, Type):
3264
+ self._Type = Type
3265
+
3266
+ @property
3267
+ def Time(self):
3268
+ r"""kill任务过滤条件,会话持续时长,单位秒。
3269
+ :rtype: int
3270
+ """
3271
+ return self._Time
3272
+
3273
+ @Time.setter
3274
+ def Time(self, Time):
3275
+ self._Time = Time
3276
+
3277
+
3278
+ def _deserialize(self, params):
3279
+ self._InstanceId = params.get("InstanceId")
3280
+ self._Duration = params.get("Duration")
3281
+ self._Product = params.get("Product")
3282
+ self._Host = params.get("Host")
3283
+ self._DB = params.get("DB")
3284
+ self._Type = params.get("Type")
3285
+ self._Time = params.get("Time")
3286
+ memeber_set = set(params.keys())
3287
+ for name, value in vars(self).items():
3288
+ property_name = name[1:]
3289
+ if property_name in memeber_set:
3290
+ memeber_set.remove(property_name)
3291
+ if len(memeber_set) > 0:
3292
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3293
+
3294
+
3295
+
3296
+ class CreateMongoDBKillTaskResponse(AbstractModel):
3297
+ r"""CreateMongoDBKillTask返回参数结构体
3298
+
3299
+ """
3300
+
3301
+ def __init__(self):
3302
+ r"""
3303
+ :param _Status: kill会话任务创建成功返回1
3304
+ :type Status: int
3305
+ :param _ErrorMsg: 异常信息
3306
+ 注意:此字段可能返回 null,表示取不到有效值。
3307
+ :type ErrorMsg: str
3308
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3309
+ :type RequestId: str
3310
+ """
3311
+ self._Status = None
3312
+ self._ErrorMsg = None
3313
+ self._RequestId = None
3314
+
3315
+ @property
3316
+ def Status(self):
3317
+ r"""kill会话任务创建成功返回1
3318
+ :rtype: int
3319
+ """
3320
+ return self._Status
3321
+
3322
+ @Status.setter
3323
+ def Status(self, Status):
3324
+ self._Status = Status
3325
+
3326
+ @property
3327
+ def ErrorMsg(self):
3328
+ r"""异常信息
3329
+ 注意:此字段可能返回 null,表示取不到有效值。
3330
+ :rtype: str
3331
+ """
3332
+ return self._ErrorMsg
3333
+
3334
+ @ErrorMsg.setter
3335
+ def ErrorMsg(self, ErrorMsg):
3336
+ self._ErrorMsg = ErrorMsg
3337
+
3338
+ @property
3339
+ def RequestId(self):
3340
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3341
+ :rtype: str
3342
+ """
3343
+ return self._RequestId
3344
+
3345
+ @RequestId.setter
3346
+ def RequestId(self, RequestId):
3347
+ self._RequestId = RequestId
3348
+
3349
+
3350
+ def _deserialize(self, params):
3351
+ self._Status = params.get("Status")
3352
+ self._ErrorMsg = params.get("ErrorMsg")
3353
+ self._RequestId = params.get("RequestId")
3354
+
3355
+
3170
3356
  class CreateProxySessionKillTaskRequest(AbstractModel):
3171
3357
  r"""CreateProxySessionKillTask请求参数结构体
3172
3358
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-dbbrain
3
- Version: 3.1.50
3
+ Version: 3.1.97
4
4
  Summary: Tencent Cloud Dbbrain SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.50
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.97
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.97
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.50