tencentcloud-sdk-python-dbbrain 3.1.50__py2.py3-none-any.whl → 3.1.112__py2.py3-none-any.whl
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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/dbbrain/v20191016/models.py +4 -4
- tencentcloud/dbbrain/v20210527/dbbrain_client.py +70 -1
- tencentcloud/dbbrain/v20210527/dbbrain_client_async.py +55 -1
- tencentcloud/dbbrain/v20210527/errorcodes.py +3 -0
- tencentcloud/dbbrain/v20210527/models.py +548 -110
- {tencentcloud_sdk_python_dbbrain-3.1.50.dist-info → tencentcloud_sdk_python_dbbrain-3.1.112.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_dbbrain-3.1.112.dist-info/RECORD +16 -0
- tencentcloud_sdk_python_dbbrain-3.1.50.dist-info/RECORD +0 -16
- {tencentcloud_sdk_python_dbbrain-3.1.50.dist-info → tencentcloud_sdk_python_dbbrain-3.1.112.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.50.dist-info → tencentcloud_sdk_python_dbbrain-3.1.112.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -4548,9 +4548,9 @@ class EventInfo(AbstractModel):
|
|
|
4548
4548
|
:type EventId: int
|
|
4549
4549
|
:param _DiagType: 诊断类型。
|
|
4550
4550
|
:type DiagType: str
|
|
4551
|
-
:param _StartTime:
|
|
4551
|
+
:param _StartTime: 开始时间。格式: "yyyy-MM-dd'T'HH:mm:ssXXX"
|
|
4552
4552
|
:type StartTime: str
|
|
4553
|
-
:param _EndTime:
|
|
4553
|
+
:param _EndTime: 结束时间。格式: "yyyy-MM-dd'T'HH:mm:ssXXX"
|
|
4554
4554
|
:type EndTime: str
|
|
4555
4555
|
:param _Outline: 概要。
|
|
4556
4556
|
:type Outline: str
|
|
@@ -4597,7 +4597,7 @@ class EventInfo(AbstractModel):
|
|
|
4597
4597
|
|
|
4598
4598
|
@property
|
|
4599
4599
|
def StartTime(self):
|
|
4600
|
-
r"""
|
|
4600
|
+
r"""开始时间。格式: "yyyy-MM-dd'T'HH:mm:ssXXX"
|
|
4601
4601
|
:rtype: str
|
|
4602
4602
|
"""
|
|
4603
4603
|
return self._StartTime
|
|
@@ -4608,7 +4608,7 @@ class EventInfo(AbstractModel):
|
|
|
4608
4608
|
|
|
4609
4609
|
@property
|
|
4610
4610
|
def EndTime(self):
|
|
4611
|
-
r"""
|
|
4611
|
+
r"""结束时间。格式: "yyyy-MM-dd'T'HH:mm:ssXXX"
|
|
4612
4612
|
:rtype: str
|
|
4613
4613
|
"""
|
|
4614
4614
|
return self._EndTime
|
|
@@ -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
|
|
|
@@ -877,6 +900,29 @@ class DbbrainClient(AbstractClient):
|
|
|
877
900
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
878
901
|
|
|
879
902
|
|
|
903
|
+
def DescribeDatabaseAutonomyStatus(self, request):
|
|
904
|
+
r"""查询数据库自治功能的开关状态。当前支持 MongoDB 的索引推荐(AutoIndexAdvice)功能状态查询。
|
|
905
|
+
|
|
906
|
+
:param request: Request instance for DescribeDatabaseAutonomyStatus.
|
|
907
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.DescribeDatabaseAutonomyStatusRequest`
|
|
908
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.DescribeDatabaseAutonomyStatusResponse`
|
|
909
|
+
|
|
910
|
+
"""
|
|
911
|
+
try:
|
|
912
|
+
params = request._serialize()
|
|
913
|
+
headers = request.headers
|
|
914
|
+
body = self.call("DescribeDatabaseAutonomyStatus", params, headers=headers)
|
|
915
|
+
response = json.loads(body)
|
|
916
|
+
model = models.DescribeDatabaseAutonomyStatusResponse()
|
|
917
|
+
model._deserialize(response["Response"])
|
|
918
|
+
return model
|
|
919
|
+
except Exception as e:
|
|
920
|
+
if isinstance(e, TencentCloudSDKException):
|
|
921
|
+
raise
|
|
922
|
+
else:
|
|
923
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
924
|
+
|
|
925
|
+
|
|
880
926
|
def DescribeDiagDBInstances(self, request):
|
|
881
927
|
r"""获取实例信息列表。Region统一选择广州。
|
|
882
928
|
|
|
@@ -1752,7 +1798,7 @@ class DbbrainClient(AbstractClient):
|
|
|
1752
1798
|
|
|
1753
1799
|
|
|
1754
1800
|
def KillMySqlThreads(self, request):
|
|
1755
|
-
r"""根据会话ID中断当前会话,该接口分为两次提交:第一次为预提交阶段,Stage为"Prepare",得到的返回值包含SqlExecId;第二次为确认提交, Stage为"Commit", 将SqlExecId
|
|
1801
|
+
r"""根据会话ID中断当前会话,该接口分为两次提交:第一次为预提交阶段,Stage为"Prepare",得到的返回值包含SqlExecId;第二次为确认提交, Stage为"Commit", 将SqlExecId的值作为参数传入,最终终止会话进程。注意:Prepare请求与Commit请求的间隔不能超过10秒,否则Prepare阶段生成的执行凭证(SqlExecId)将过期失效,Commit操作不会执行任何kill动作。
|
|
1756
1802
|
|
|
1757
1803
|
:param request: Request instance for KillMySqlThreads.
|
|
1758
1804
|
:type request: :class:`tencentcloud.dbbrain.v20210527.models.KillMySqlThreadsRequest`
|
|
@@ -1935,6 +1981,29 @@ class DbbrainClient(AbstractClient):
|
|
|
1935
1981
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1936
1982
|
|
|
1937
1983
|
|
|
1984
|
+
def UpdateDatabaseAutonomyStatus(self, request):
|
|
1985
|
+
r"""设置数据库自治功能的开关状态。当前支持 MongoDB 的索引推荐(AutoIndexAdvice)功能的开启或关闭。
|
|
1986
|
+
|
|
1987
|
+
:param request: Request instance for UpdateDatabaseAutonomyStatus.
|
|
1988
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.UpdateDatabaseAutonomyStatusRequest`
|
|
1989
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.UpdateDatabaseAutonomyStatusResponse`
|
|
1990
|
+
|
|
1991
|
+
"""
|
|
1992
|
+
try:
|
|
1993
|
+
params = request._serialize()
|
|
1994
|
+
headers = request.headers
|
|
1995
|
+
body = self.call("UpdateDatabaseAutonomyStatus", params, headers=headers)
|
|
1996
|
+
response = json.loads(body)
|
|
1997
|
+
model = models.UpdateDatabaseAutonomyStatusResponse()
|
|
1998
|
+
model._deserialize(response["Response"])
|
|
1999
|
+
return model
|
|
2000
|
+
except Exception as e:
|
|
2001
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2002
|
+
raise
|
|
2003
|
+
else:
|
|
2004
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2005
|
+
|
|
2006
|
+
|
|
1938
2007
|
def UpdateMonitorSwitch(self, request):
|
|
1939
2008
|
r"""更新Agent实例状态(停止或重连实例)
|
|
1940
2009
|
|
|
@@ -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,
|
|
@@ -691,6 +709,24 @@ class DbbrainClient(AbstractClient):
|
|
|
691
709
|
|
|
692
710
|
return await self.call_and_deserialize(**kwargs)
|
|
693
711
|
|
|
712
|
+
async def DescribeDatabaseAutonomyStatus(
|
|
713
|
+
self,
|
|
714
|
+
request: models.DescribeDatabaseAutonomyStatusRequest,
|
|
715
|
+
opts: Dict = None,
|
|
716
|
+
) -> models.DescribeDatabaseAutonomyStatusResponse:
|
|
717
|
+
"""
|
|
718
|
+
查询数据库自治功能的开关状态。当前支持 MongoDB 的索引推荐(AutoIndexAdvice)功能状态查询。
|
|
719
|
+
"""
|
|
720
|
+
|
|
721
|
+
kwargs = {}
|
|
722
|
+
kwargs["action"] = "DescribeDatabaseAutonomyStatus"
|
|
723
|
+
kwargs["params"] = request._serialize()
|
|
724
|
+
kwargs["resp_cls"] = models.DescribeDatabaseAutonomyStatusResponse
|
|
725
|
+
kwargs["headers"] = request.headers
|
|
726
|
+
kwargs["opts"] = opts or {}
|
|
727
|
+
|
|
728
|
+
return await self.call_and_deserialize(**kwargs)
|
|
729
|
+
|
|
694
730
|
async def DescribeDiagDBInstances(
|
|
695
731
|
self,
|
|
696
732
|
request: models.DescribeDiagDBInstancesRequest,
|
|
@@ -1381,7 +1417,7 @@ class DbbrainClient(AbstractClient):
|
|
|
1381
1417
|
opts: Dict = None,
|
|
1382
1418
|
) -> models.KillMySqlThreadsResponse:
|
|
1383
1419
|
"""
|
|
1384
|
-
根据会话ID中断当前会话,该接口分为两次提交:第一次为预提交阶段,Stage为"Prepare",得到的返回值包含SqlExecId;第二次为确认提交, Stage为"Commit", 将SqlExecId
|
|
1420
|
+
根据会话ID中断当前会话,该接口分为两次提交:第一次为预提交阶段,Stage为"Prepare",得到的返回值包含SqlExecId;第二次为确认提交, Stage为"Commit", 将SqlExecId的值作为参数传入,最终终止会话进程。注意:Prepare请求与Commit请求的间隔不能超过10秒,否则Prepare阶段生成的执行凭证(SqlExecId)将过期失效,Commit操作不会执行任何kill动作。
|
|
1385
1421
|
"""
|
|
1386
1422
|
|
|
1387
1423
|
kwargs = {}
|
|
@@ -1519,6 +1555,24 @@ class DbbrainClient(AbstractClient):
|
|
|
1519
1555
|
|
|
1520
1556
|
return await self.call_and_deserialize(**kwargs)
|
|
1521
1557
|
|
|
1558
|
+
async def UpdateDatabaseAutonomyStatus(
|
|
1559
|
+
self,
|
|
1560
|
+
request: models.UpdateDatabaseAutonomyStatusRequest,
|
|
1561
|
+
opts: Dict = None,
|
|
1562
|
+
) -> models.UpdateDatabaseAutonomyStatusResponse:
|
|
1563
|
+
"""
|
|
1564
|
+
设置数据库自治功能的开关状态。当前支持 MongoDB 的索引推荐(AutoIndexAdvice)功能的开启或关闭。
|
|
1565
|
+
"""
|
|
1566
|
+
|
|
1567
|
+
kwargs = {}
|
|
1568
|
+
kwargs["action"] = "UpdateDatabaseAutonomyStatus"
|
|
1569
|
+
kwargs["params"] = request._serialize()
|
|
1570
|
+
kwargs["resp_cls"] = models.UpdateDatabaseAutonomyStatusResponse
|
|
1571
|
+
kwargs["headers"] = request.headers
|
|
1572
|
+
kwargs["opts"] = opts or {}
|
|
1573
|
+
|
|
1574
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1575
|
+
|
|
1522
1576
|
async def UpdateMonitorSwitch(
|
|
1523
1577
|
self,
|
|
1524
1578
|
request: models.UpdateMonitorSwitchRequest,
|