tencentcloud-sdk-python-dbbrain 3.1.25__py2.py3-none-any.whl → 3.1.108__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 +535 -78
- {tencentcloud_sdk_python_dbbrain-3.1.25.dist-info → tencentcloud_sdk_python_dbbrain-3.1.108.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_dbbrain-3.1.108.dist-info/RECORD +16 -0
- {tencentcloud_sdk_python_dbbrain-3.1.25.dist-info → tencentcloud_sdk_python_dbbrain-3.1.108.dist-info}/WHEEL +1 -1
- tencentcloud_sdk_python_dbbrain-3.1.25.dist-info/RECORD +0 -16
- {tencentcloud_sdk_python_dbbrain-3.1.25.dist-info → tencentcloud_sdk_python_dbbrain-3.1.108.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,
|
|
@@ -2524,19 +2524,19 @@ class CreateDBDiagReportTaskRequest(AbstractModel):
|
|
|
2524
2524
|
|
|
2525
2525
|
def __init__(self):
|
|
2526
2526
|
r"""
|
|
2527
|
-
:param _InstanceId:
|
|
2527
|
+
:param _InstanceId: <p>实例 ID。可通过 <a href="https://cloud.tencent.com/document/api/1130/57798">DescribeDiagDBInstances</a> 接口获取。TDSQL MySQL数据库类型,实例ID应填写为“实例ID&分片ID”的格式。</p>
|
|
2528
2528
|
:type InstanceId: str
|
|
2529
|
-
:param _StartTime:
|
|
2529
|
+
:param _StartTime: <p>开始时间,如“2020-11-08T14:00:00+08:00”。</p>
|
|
2530
2530
|
:type StartTime: str
|
|
2531
|
-
:param _EndTime:
|
|
2531
|
+
:param _EndTime: <p>结束时间,如“2020-11-09T14:00:00+08:00”。</p>
|
|
2532
2532
|
:type EndTime: str
|
|
2533
|
-
:param _SendMailFlag:
|
|
2533
|
+
:param _SendMailFlag: <p>是否发送邮件: 0 - 否,1 - 是。</p>
|
|
2534
2534
|
:type SendMailFlag: int
|
|
2535
|
-
:param _ContactPerson:
|
|
2535
|
+
:param _ContactPerson: <p>接收邮件的联系人ID数组。</p>
|
|
2536
2536
|
:type ContactPerson: list of int
|
|
2537
|
-
:param _ContactGroup:
|
|
2537
|
+
:param _ContactGroup: <p>接收邮件的联系组ID数组。</p>
|
|
2538
2538
|
:type ContactGroup: list of int
|
|
2539
|
-
:param _Product:
|
|
2539
|
+
:param _Product: <p>服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,"mongodb" - 云数据库 MongoDB,"mariadb" - 云数据库 MariaDB,"dcdb" - 云数据库 TDSQL MySQL,默认为"mysql"。</p>
|
|
2540
2540
|
:type Product: str
|
|
2541
2541
|
"""
|
|
2542
2542
|
self._InstanceId = None
|
|
@@ -2549,7 +2549,7 @@ class CreateDBDiagReportTaskRequest(AbstractModel):
|
|
|
2549
2549
|
|
|
2550
2550
|
@property
|
|
2551
2551
|
def InstanceId(self):
|
|
2552
|
-
r"""
|
|
2552
|
+
r"""<p>实例 ID。可通过 <a href="https://cloud.tencent.com/document/api/1130/57798">DescribeDiagDBInstances</a> 接口获取。TDSQL MySQL数据库类型,实例ID应填写为“实例ID&分片ID”的格式。</p>
|
|
2553
2553
|
:rtype: str
|
|
2554
2554
|
"""
|
|
2555
2555
|
return self._InstanceId
|
|
@@ -2560,7 +2560,7 @@ class CreateDBDiagReportTaskRequest(AbstractModel):
|
|
|
2560
2560
|
|
|
2561
2561
|
@property
|
|
2562
2562
|
def StartTime(self):
|
|
2563
|
-
r"""
|
|
2563
|
+
r"""<p>开始时间,如“2020-11-08T14:00:00+08:00”。</p>
|
|
2564
2564
|
:rtype: str
|
|
2565
2565
|
"""
|
|
2566
2566
|
return self._StartTime
|
|
@@ -2571,7 +2571,7 @@ class CreateDBDiagReportTaskRequest(AbstractModel):
|
|
|
2571
2571
|
|
|
2572
2572
|
@property
|
|
2573
2573
|
def EndTime(self):
|
|
2574
|
-
r"""
|
|
2574
|
+
r"""<p>结束时间,如“2020-11-09T14:00:00+08:00”。</p>
|
|
2575
2575
|
:rtype: str
|
|
2576
2576
|
"""
|
|
2577
2577
|
return self._EndTime
|
|
@@ -2582,7 +2582,7 @@ class CreateDBDiagReportTaskRequest(AbstractModel):
|
|
|
2582
2582
|
|
|
2583
2583
|
@property
|
|
2584
2584
|
def SendMailFlag(self):
|
|
2585
|
-
r"""
|
|
2585
|
+
r"""<p>是否发送邮件: 0 - 否,1 - 是。</p>
|
|
2586
2586
|
:rtype: int
|
|
2587
2587
|
"""
|
|
2588
2588
|
return self._SendMailFlag
|
|
@@ -2593,7 +2593,7 @@ class CreateDBDiagReportTaskRequest(AbstractModel):
|
|
|
2593
2593
|
|
|
2594
2594
|
@property
|
|
2595
2595
|
def ContactPerson(self):
|
|
2596
|
-
r"""
|
|
2596
|
+
r"""<p>接收邮件的联系人ID数组。</p>
|
|
2597
2597
|
:rtype: list of int
|
|
2598
2598
|
"""
|
|
2599
2599
|
return self._ContactPerson
|
|
@@ -2604,7 +2604,7 @@ class CreateDBDiagReportTaskRequest(AbstractModel):
|
|
|
2604
2604
|
|
|
2605
2605
|
@property
|
|
2606
2606
|
def ContactGroup(self):
|
|
2607
|
-
r"""
|
|
2607
|
+
r"""<p>接收邮件的联系组ID数组。</p>
|
|
2608
2608
|
:rtype: list of int
|
|
2609
2609
|
"""
|
|
2610
2610
|
return self._ContactGroup
|
|
@@ -2615,7 +2615,7 @@ class CreateDBDiagReportTaskRequest(AbstractModel):
|
|
|
2615
2615
|
|
|
2616
2616
|
@property
|
|
2617
2617
|
def Product(self):
|
|
2618
|
-
r"""
|
|
2618
|
+
r"""<p>服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,"mongodb" - 云数据库 MongoDB,"mariadb" - 云数据库 MariaDB,"dcdb" - 云数据库 TDSQL MySQL,默认为"mysql"。</p>
|
|
2619
2619
|
:rtype: str
|
|
2620
2620
|
"""
|
|
2621
2621
|
return self._Product
|
|
@@ -2650,7 +2650,7 @@ class CreateDBDiagReportTaskResponse(AbstractModel):
|
|
|
2650
2650
|
|
|
2651
2651
|
def __init__(self):
|
|
2652
2652
|
r"""
|
|
2653
|
-
:param _AsyncRequestId:
|
|
2653
|
+
:param _AsyncRequestId: <p>异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。</p>
|
|
2654
2654
|
:type AsyncRequestId: int
|
|
2655
2655
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2656
2656
|
:type RequestId: str
|
|
@@ -2660,7 +2660,7 @@ class CreateDBDiagReportTaskResponse(AbstractModel):
|
|
|
2660
2660
|
|
|
2661
2661
|
@property
|
|
2662
2662
|
def AsyncRequestId(self):
|
|
2663
|
-
r"""
|
|
2663
|
+
r"""<p>异步任务的请求 ID,可使用此 ID 查询异步任务的执行结果。</p>
|
|
2664
2664
|
:rtype: int
|
|
2665
2665
|
"""
|
|
2666
2666
|
return self._AsyncRequestId
|
|
@@ -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
|
|
|
@@ -6056,20 +6242,19 @@ class DescribeDBDiagEventsRequest(AbstractModel):
|
|
|
6056
6242
|
|
|
6057
6243
|
def __init__(self):
|
|
6058
6244
|
r"""
|
|
6059
|
-
:param _StartTime:
|
|
6245
|
+
:param _StartTime: <p>开始时间,如“2021-05-27 00:00:00”,支持的最早查询时间为当前时间的前30天。</p>
|
|
6060
6246
|
:type StartTime: str
|
|
6061
|
-
:param _EndTime:
|
|
6247
|
+
:param _EndTime: <p>结束时间,如“2021-05-27 01:00:00”,支持的最早查询时间为当前时间的前30天。</p>
|
|
6062
6248
|
:type EndTime: str
|
|
6063
|
-
:param _Severities:
|
|
6249
|
+
:param _Severities: <p>风险等级列表,取值按影响程度从高至低分别为:1 - 致命、2 -严重、3 - 告警、4 - 提示、5 -健康。</p>
|
|
6064
6250
|
:type Severities: list of int
|
|
6065
|
-
:param _InstanceIds:
|
|
6066
|
-
查询TDSQL MySQL分布式实例:Instanceld:填写集群ID&Shard实例ID,如:dcdbt-157xxxk&shard-qxxxx
|
|
6251
|
+
:param _InstanceIds: <p>实例ID列表。可通过 <a href="https://cloud.tencent.com/document/api/1130/57798">DescribeDiagDBInstances</a> 接口获取。<br>查询TDSQL MySQL分布式实例:Instanceld:填写集群ID&Shard实例ID,如:dcdbt-157xxxk&shard-qxxxx</p>
|
|
6067
6252
|
:type InstanceIds: list of str
|
|
6068
|
-
:param _Product:
|
|
6253
|
+
:param _Product: <p>服务产品类型,支持值包括:"mysql" - 云数据库 MySQL,"redis" - 云数据库 Redis,"mariadb"-数据库mariadb,"cynosdb"-数据库 TDSQL-C, "dcdb"-数据库TDSQL MySQL 默认为"mysql"。</p>
|
|
6069
6254
|
:type Product: str
|
|
6070
|
-
:param _Offset:
|
|
6255
|
+
:param _Offset: <p>偏移量,默认0。</p>
|
|
6071
6256
|
:type Offset: int
|
|
6072
|
-
:param _Limit:
|
|
6257
|
+
:param _Limit: <p>返回数量,默认20,最大值为50。</p>
|
|
6073
6258
|
:type Limit: int
|
|
6074
6259
|
"""
|
|
6075
6260
|
self._StartTime = None
|
|
@@ -6082,7 +6267,7 @@ class DescribeDBDiagEventsRequest(AbstractModel):
|
|
|
6082
6267
|
|
|
6083
6268
|
@property
|
|
6084
6269
|
def StartTime(self):
|
|
6085
|
-
r"""
|
|
6270
|
+
r"""<p>开始时间,如“2021-05-27 00:00:00”,支持的最早查询时间为当前时间的前30天。</p>
|
|
6086
6271
|
:rtype: str
|
|
6087
6272
|
"""
|
|
6088
6273
|
return self._StartTime
|
|
@@ -6093,7 +6278,7 @@ class DescribeDBDiagEventsRequest(AbstractModel):
|
|
|
6093
6278
|
|
|
6094
6279
|
@property
|
|
6095
6280
|
def EndTime(self):
|
|
6096
|
-
r"""
|
|
6281
|
+
r"""<p>结束时间,如“2021-05-27 01:00:00”,支持的最早查询时间为当前时间的前30天。</p>
|
|
6097
6282
|
:rtype: str
|
|
6098
6283
|
"""
|
|
6099
6284
|
return self._EndTime
|
|
@@ -6104,7 +6289,7 @@ class DescribeDBDiagEventsRequest(AbstractModel):
|
|
|
6104
6289
|
|
|
6105
6290
|
@property
|
|
6106
6291
|
def Severities(self):
|
|
6107
|
-
r"""
|
|
6292
|
+
r"""<p>风险等级列表,取值按影响程度从高至低分别为:1 - 致命、2 -严重、3 - 告警、4 - 提示、5 -健康。</p>
|
|
6108
6293
|
:rtype: list of int
|
|
6109
6294
|
"""
|
|
6110
6295
|
return self._Severities
|
|
@@ -6115,8 +6300,7 @@ class DescribeDBDiagEventsRequest(AbstractModel):
|
|
|
6115
6300
|
|
|
6116
6301
|
@property
|
|
6117
6302
|
def InstanceIds(self):
|
|
6118
|
-
r"""
|
|
6119
|
-
查询TDSQL MySQL分布式实例:Instanceld:填写集群ID&Shard实例ID,如:dcdbt-157xxxk&shard-qxxxx
|
|
6303
|
+
r"""<p>实例ID列表。可通过 <a href="https://cloud.tencent.com/document/api/1130/57798">DescribeDiagDBInstances</a> 接口获取。<br>查询TDSQL MySQL分布式实例:Instanceld:填写集群ID&Shard实例ID,如:dcdbt-157xxxk&shard-qxxxx</p>
|
|
6120
6304
|
:rtype: list of str
|
|
6121
6305
|
"""
|
|
6122
6306
|
return self._InstanceIds
|
|
@@ -6127,7 +6311,7 @@ class DescribeDBDiagEventsRequest(AbstractModel):
|
|
|
6127
6311
|
|
|
6128
6312
|
@property
|
|
6129
6313
|
def Product(self):
|
|
6130
|
-
r"""
|
|
6314
|
+
r"""<p>服务产品类型,支持值包括:"mysql" - 云数据库 MySQL,"redis" - 云数据库 Redis,"mariadb"-数据库mariadb,"cynosdb"-数据库 TDSQL-C, "dcdb"-数据库TDSQL MySQL 默认为"mysql"。</p>
|
|
6131
6315
|
:rtype: str
|
|
6132
6316
|
"""
|
|
6133
6317
|
return self._Product
|
|
@@ -6138,7 +6322,7 @@ class DescribeDBDiagEventsRequest(AbstractModel):
|
|
|
6138
6322
|
|
|
6139
6323
|
@property
|
|
6140
6324
|
def Offset(self):
|
|
6141
|
-
r"""
|
|
6325
|
+
r"""<p>偏移量,默认0。</p>
|
|
6142
6326
|
:rtype: int
|
|
6143
6327
|
"""
|
|
6144
6328
|
return self._Offset
|
|
@@ -6149,7 +6333,7 @@ class DescribeDBDiagEventsRequest(AbstractModel):
|
|
|
6149
6333
|
|
|
6150
6334
|
@property
|
|
6151
6335
|
def Limit(self):
|
|
6152
|
-
r"""
|
|
6336
|
+
r"""<p>返回数量,默认20,最大值为50。</p>
|
|
6153
6337
|
:rtype: int
|
|
6154
6338
|
"""
|
|
6155
6339
|
return self._Limit
|
|
@@ -6184,9 +6368,9 @@ class DescribeDBDiagEventsResponse(AbstractModel):
|
|
|
6184
6368
|
|
|
6185
6369
|
def __init__(self):
|
|
6186
6370
|
r"""
|
|
6187
|
-
:param _TotalCount:
|
|
6371
|
+
:param _TotalCount: <p>诊断事件的总数目。</p>
|
|
6188
6372
|
:type TotalCount: int
|
|
6189
|
-
:param _Items:
|
|
6373
|
+
:param _Items: <p>诊断事件的列表。</p>
|
|
6190
6374
|
:type Items: list of DiagHistoryEventItem
|
|
6191
6375
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6192
6376
|
:type RequestId: str
|
|
@@ -6197,7 +6381,7 @@ class DescribeDBDiagEventsResponse(AbstractModel):
|
|
|
6197
6381
|
|
|
6198
6382
|
@property
|
|
6199
6383
|
def TotalCount(self):
|
|
6200
|
-
r"""
|
|
6384
|
+
r"""<p>诊断事件的总数目。</p>
|
|
6201
6385
|
:rtype: int
|
|
6202
6386
|
"""
|
|
6203
6387
|
return self._TotalCount
|
|
@@ -6208,7 +6392,7 @@ class DescribeDBDiagEventsResponse(AbstractModel):
|
|
|
6208
6392
|
|
|
6209
6393
|
@property
|
|
6210
6394
|
def Items(self):
|
|
6211
|
-
r"""
|
|
6395
|
+
r"""<p>诊断事件的列表。</p>
|
|
6212
6396
|
:rtype: list of DiagHistoryEventItem
|
|
6213
6397
|
"""
|
|
6214
6398
|
return self._Items
|
|
@@ -7071,6 +7255,115 @@ class DescribeDBSpaceStatusResponse(AbstractModel):
|
|
|
7071
7255
|
self._RequestId = params.get("RequestId")
|
|
7072
7256
|
|
|
7073
7257
|
|
|
7258
|
+
class DescribeDatabaseAutonomyStatusRequest(AbstractModel):
|
|
7259
|
+
r"""DescribeDatabaseAutonomyStatus请求参数结构体
|
|
7260
|
+
|
|
7261
|
+
"""
|
|
7262
|
+
|
|
7263
|
+
def __init__(self):
|
|
7264
|
+
r"""
|
|
7265
|
+
:param _InstanceId: <p>实例 ID。</p>
|
|
7266
|
+
:type InstanceId: str
|
|
7267
|
+
:param _Product: <p>服务产品类型。取值:mongodb(云数据库 MongoDB)。</p>
|
|
7268
|
+
:type Product: str
|
|
7269
|
+
:param _Type: <p>自治功能类型。取值:AutoIndexAdvice(索引推荐)。</p>
|
|
7270
|
+
:type Type: str
|
|
7271
|
+
"""
|
|
7272
|
+
self._InstanceId = None
|
|
7273
|
+
self._Product = None
|
|
7274
|
+
self._Type = None
|
|
7275
|
+
|
|
7276
|
+
@property
|
|
7277
|
+
def InstanceId(self):
|
|
7278
|
+
r"""<p>实例 ID。</p>
|
|
7279
|
+
:rtype: str
|
|
7280
|
+
"""
|
|
7281
|
+
return self._InstanceId
|
|
7282
|
+
|
|
7283
|
+
@InstanceId.setter
|
|
7284
|
+
def InstanceId(self, InstanceId):
|
|
7285
|
+
self._InstanceId = InstanceId
|
|
7286
|
+
|
|
7287
|
+
@property
|
|
7288
|
+
def Product(self):
|
|
7289
|
+
r"""<p>服务产品类型。取值:mongodb(云数据库 MongoDB)。</p>
|
|
7290
|
+
:rtype: str
|
|
7291
|
+
"""
|
|
7292
|
+
return self._Product
|
|
7293
|
+
|
|
7294
|
+
@Product.setter
|
|
7295
|
+
def Product(self, Product):
|
|
7296
|
+
self._Product = Product
|
|
7297
|
+
|
|
7298
|
+
@property
|
|
7299
|
+
def Type(self):
|
|
7300
|
+
r"""<p>自治功能类型。取值:AutoIndexAdvice(索引推荐)。</p>
|
|
7301
|
+
:rtype: str
|
|
7302
|
+
"""
|
|
7303
|
+
return self._Type
|
|
7304
|
+
|
|
7305
|
+
@Type.setter
|
|
7306
|
+
def Type(self, Type):
|
|
7307
|
+
self._Type = Type
|
|
7308
|
+
|
|
7309
|
+
|
|
7310
|
+
def _deserialize(self, params):
|
|
7311
|
+
self._InstanceId = params.get("InstanceId")
|
|
7312
|
+
self._Product = params.get("Product")
|
|
7313
|
+
self._Type = params.get("Type")
|
|
7314
|
+
memeber_set = set(params.keys())
|
|
7315
|
+
for name, value in vars(self).items():
|
|
7316
|
+
property_name = name[1:]
|
|
7317
|
+
if property_name in memeber_set:
|
|
7318
|
+
memeber_set.remove(property_name)
|
|
7319
|
+
if len(memeber_set) > 0:
|
|
7320
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7321
|
+
|
|
7322
|
+
|
|
7323
|
+
|
|
7324
|
+
class DescribeDatabaseAutonomyStatusResponse(AbstractModel):
|
|
7325
|
+
r"""DescribeDatabaseAutonomyStatus返回参数结构体
|
|
7326
|
+
|
|
7327
|
+
"""
|
|
7328
|
+
|
|
7329
|
+
def __init__(self):
|
|
7330
|
+
r"""
|
|
7331
|
+
:param _Status: <p>自治功能开关状态。取值:0(关闭)、1(开启)。</p>
|
|
7332
|
+
:type Status: int
|
|
7333
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7334
|
+
:type RequestId: str
|
|
7335
|
+
"""
|
|
7336
|
+
self._Status = None
|
|
7337
|
+
self._RequestId = None
|
|
7338
|
+
|
|
7339
|
+
@property
|
|
7340
|
+
def Status(self):
|
|
7341
|
+
r"""<p>自治功能开关状态。取值:0(关闭)、1(开启)。</p>
|
|
7342
|
+
:rtype: int
|
|
7343
|
+
"""
|
|
7344
|
+
return self._Status
|
|
7345
|
+
|
|
7346
|
+
@Status.setter
|
|
7347
|
+
def Status(self, Status):
|
|
7348
|
+
self._Status = Status
|
|
7349
|
+
|
|
7350
|
+
@property
|
|
7351
|
+
def RequestId(self):
|
|
7352
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7353
|
+
:rtype: str
|
|
7354
|
+
"""
|
|
7355
|
+
return self._RequestId
|
|
7356
|
+
|
|
7357
|
+
@RequestId.setter
|
|
7358
|
+
def RequestId(self, RequestId):
|
|
7359
|
+
self._RequestId = RequestId
|
|
7360
|
+
|
|
7361
|
+
|
|
7362
|
+
def _deserialize(self, params):
|
|
7363
|
+
self._Status = params.get("Status")
|
|
7364
|
+
self._RequestId = params.get("RequestId")
|
|
7365
|
+
|
|
7366
|
+
|
|
7074
7367
|
class DescribeDiagDBInstancesRequest(AbstractModel):
|
|
7075
7368
|
r"""DescribeDiagDBInstances请求参数结构体
|
|
7076
7369
|
|
|
@@ -7282,11 +7575,11 @@ class DescribeHealthScoreRequest(AbstractModel):
|
|
|
7282
7575
|
|
|
7283
7576
|
def __init__(self):
|
|
7284
7577
|
r"""
|
|
7285
|
-
:param _InstanceId:
|
|
7578
|
+
:param _InstanceId: <p>需要获取健康得分的实例ID。可通过 <a href="https://cloud.tencent.com/document/api/1130/57798">DescribeDiagDBInstances</a> 接口获取。如果是dcdb(TDSQL MySQL),请使用 <code>{ClusterId}&{InstanceId}</code> 拼接结果代替入参</p>
|
|
7286
7579
|
:type InstanceId: str
|
|
7287
|
-
:param _Time:
|
|
7580
|
+
:param _Time: <p>获取健康得分的时间,时间格式如:2019-09-10 12:13:14。</p>
|
|
7288
7581
|
:type Time: str
|
|
7289
|
-
:param _Product:
|
|
7582
|
+
:param _Product: <p>服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。</p>
|
|
7290
7583
|
:type Product: str
|
|
7291
7584
|
"""
|
|
7292
7585
|
self._InstanceId = None
|
|
@@ -7295,7 +7588,7 @@ class DescribeHealthScoreRequest(AbstractModel):
|
|
|
7295
7588
|
|
|
7296
7589
|
@property
|
|
7297
7590
|
def InstanceId(self):
|
|
7298
|
-
r"""
|
|
7591
|
+
r"""<p>需要获取健康得分的实例ID。可通过 <a href="https://cloud.tencent.com/document/api/1130/57798">DescribeDiagDBInstances</a> 接口获取。如果是dcdb(TDSQL MySQL),请使用 <code>{ClusterId}&{InstanceId}</code> 拼接结果代替入参</p>
|
|
7299
7592
|
:rtype: str
|
|
7300
7593
|
"""
|
|
7301
7594
|
return self._InstanceId
|
|
@@ -7306,7 +7599,7 @@ class DescribeHealthScoreRequest(AbstractModel):
|
|
|
7306
7599
|
|
|
7307
7600
|
@property
|
|
7308
7601
|
def Time(self):
|
|
7309
|
-
r"""
|
|
7602
|
+
r"""<p>获取健康得分的时间,时间格式如:2019-09-10 12:13:14。</p>
|
|
7310
7603
|
:rtype: str
|
|
7311
7604
|
"""
|
|
7312
7605
|
return self._Time
|
|
@@ -7317,7 +7610,7 @@ class DescribeHealthScoreRequest(AbstractModel):
|
|
|
7317
7610
|
|
|
7318
7611
|
@property
|
|
7319
7612
|
def Product(self):
|
|
7320
|
-
r"""
|
|
7613
|
+
r"""<p>服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。</p>
|
|
7321
7614
|
:rtype: str
|
|
7322
7615
|
"""
|
|
7323
7616
|
return self._Product
|
|
@@ -7348,7 +7641,7 @@ class DescribeHealthScoreResponse(AbstractModel):
|
|
|
7348
7641
|
|
|
7349
7642
|
def __init__(self):
|
|
7350
7643
|
r"""
|
|
7351
|
-
:param _Data:
|
|
7644
|
+
:param _Data: <p>健康得分以及异常扣分项。</p>
|
|
7352
7645
|
:type Data: :class:`tencentcloud.dbbrain.v20210527.models.HealthScoreInfo`
|
|
7353
7646
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7354
7647
|
:type RequestId: str
|
|
@@ -7358,7 +7651,7 @@ class DescribeHealthScoreResponse(AbstractModel):
|
|
|
7358
7651
|
|
|
7359
7652
|
@property
|
|
7360
7653
|
def Data(self):
|
|
7361
|
-
r"""
|
|
7654
|
+
r"""<p>健康得分以及异常扣分项。</p>
|
|
7362
7655
|
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.HealthScoreInfo`
|
|
7363
7656
|
"""
|
|
7364
7657
|
return self._Data
|
|
@@ -11808,26 +12101,32 @@ class DescribeSlowLogUserHostStatsRequest(AbstractModel):
|
|
|
11808
12101
|
|
|
11809
12102
|
def __init__(self):
|
|
11810
12103
|
r"""
|
|
11811
|
-
:param _InstanceId: 实例ID
|
|
12104
|
+
:param _InstanceId: 实例 ID。可通过 [DescribeDiagDBInstances](https://cloud.tencent.com/document/api/1130/57798) 接口获取。
|
|
11812
12105
|
:type InstanceId: str
|
|
11813
|
-
:param _StartTime:
|
|
12106
|
+
:param _StartTime: 查询范围的开始时间,格式: "yyyy-MM-dd'T'HH:mm:ssXXX"。
|
|
11814
12107
|
:type StartTime: str
|
|
11815
|
-
:param _EndTime:
|
|
12108
|
+
:param _EndTime: 查询范围的结束时间,格式: "yyyy-MM-dd'T'HH:mm:ssXXX"。
|
|
11816
12109
|
:type EndTime: str
|
|
11817
12110
|
:param _Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
|
|
11818
12111
|
:type Product: str
|
|
11819
12112
|
:param _Md5: SQL模板的MD5值
|
|
11820
12113
|
:type Md5: str
|
|
12114
|
+
:param _InstanceProxyId: 仅Redis产品使用;实例Proxy ID。
|
|
12115
|
+
:type InstanceProxyId: str
|
|
12116
|
+
:param _Cmd: 仅Redis产品使用;命令。
|
|
12117
|
+
:type Cmd: str
|
|
11821
12118
|
"""
|
|
11822
12119
|
self._InstanceId = None
|
|
11823
12120
|
self._StartTime = None
|
|
11824
12121
|
self._EndTime = None
|
|
11825
12122
|
self._Product = None
|
|
11826
12123
|
self._Md5 = None
|
|
12124
|
+
self._InstanceProxyId = None
|
|
12125
|
+
self._Cmd = None
|
|
11827
12126
|
|
|
11828
12127
|
@property
|
|
11829
12128
|
def InstanceId(self):
|
|
11830
|
-
r"""实例ID
|
|
12129
|
+
r"""实例 ID。可通过 [DescribeDiagDBInstances](https://cloud.tencent.com/document/api/1130/57798) 接口获取。
|
|
11831
12130
|
:rtype: str
|
|
11832
12131
|
"""
|
|
11833
12132
|
return self._InstanceId
|
|
@@ -11838,7 +12137,7 @@ class DescribeSlowLogUserHostStatsRequest(AbstractModel):
|
|
|
11838
12137
|
|
|
11839
12138
|
@property
|
|
11840
12139
|
def StartTime(self):
|
|
11841
|
-
r"""
|
|
12140
|
+
r"""查询范围的开始时间,格式: "yyyy-MM-dd'T'HH:mm:ssXXX"。
|
|
11842
12141
|
:rtype: str
|
|
11843
12142
|
"""
|
|
11844
12143
|
return self._StartTime
|
|
@@ -11849,7 +12148,7 @@ class DescribeSlowLogUserHostStatsRequest(AbstractModel):
|
|
|
11849
12148
|
|
|
11850
12149
|
@property
|
|
11851
12150
|
def EndTime(self):
|
|
11852
|
-
r"""
|
|
12151
|
+
r"""查询范围的结束时间,格式: "yyyy-MM-dd'T'HH:mm:ssXXX"。
|
|
11853
12152
|
:rtype: str
|
|
11854
12153
|
"""
|
|
11855
12154
|
return self._EndTime
|
|
@@ -11880,6 +12179,28 @@ class DescribeSlowLogUserHostStatsRequest(AbstractModel):
|
|
|
11880
12179
|
def Md5(self, Md5):
|
|
11881
12180
|
self._Md5 = Md5
|
|
11882
12181
|
|
|
12182
|
+
@property
|
|
12183
|
+
def InstanceProxyId(self):
|
|
12184
|
+
r"""仅Redis产品使用;实例Proxy ID。
|
|
12185
|
+
:rtype: str
|
|
12186
|
+
"""
|
|
12187
|
+
return self._InstanceProxyId
|
|
12188
|
+
|
|
12189
|
+
@InstanceProxyId.setter
|
|
12190
|
+
def InstanceProxyId(self, InstanceProxyId):
|
|
12191
|
+
self._InstanceProxyId = InstanceProxyId
|
|
12192
|
+
|
|
12193
|
+
@property
|
|
12194
|
+
def Cmd(self):
|
|
12195
|
+
r"""仅Redis产品使用;命令。
|
|
12196
|
+
:rtype: str
|
|
12197
|
+
"""
|
|
12198
|
+
return self._Cmd
|
|
12199
|
+
|
|
12200
|
+
@Cmd.setter
|
|
12201
|
+
def Cmd(self, Cmd):
|
|
12202
|
+
self._Cmd = Cmd
|
|
12203
|
+
|
|
11883
12204
|
|
|
11884
12205
|
def _deserialize(self, params):
|
|
11885
12206
|
self._InstanceId = params.get("InstanceId")
|
|
@@ -11887,6 +12208,8 @@ class DescribeSlowLogUserHostStatsRequest(AbstractModel):
|
|
|
11887
12208
|
self._EndTime = params.get("EndTime")
|
|
11888
12209
|
self._Product = params.get("Product")
|
|
11889
12210
|
self._Md5 = params.get("Md5")
|
|
12211
|
+
self._InstanceProxyId = params.get("InstanceProxyId")
|
|
12212
|
+
self._Cmd = params.get("Cmd")
|
|
11890
12213
|
memeber_set = set(params.keys())
|
|
11891
12214
|
for name, value in vars(self).items():
|
|
11892
12215
|
property_name = name[1:]
|
|
@@ -13403,13 +13726,13 @@ class DescribeUserSqlAdviceRequest(AbstractModel):
|
|
|
13403
13726
|
|
|
13404
13727
|
def __init__(self):
|
|
13405
13728
|
r"""
|
|
13406
|
-
:param _InstanceId:
|
|
13729
|
+
:param _InstanceId: <p>实例 ID。可通过 <a href="https://cloud.tencent.com/document/api/1130/57798">DescribeDiagDBInstances</a> 接口获取。</p>
|
|
13407
13730
|
:type InstanceId: str
|
|
13408
|
-
:param _SqlText: SQL
|
|
13731
|
+
:param _SqlText: <p>SQL语句。</p>
|
|
13409
13732
|
:type SqlText: str
|
|
13410
|
-
:param _Schema:
|
|
13733
|
+
:param _Schema: <p>库名。</p>
|
|
13411
13734
|
:type Schema: str
|
|
13412
|
-
:param _Product:
|
|
13735
|
+
:param _Product: <p>服务产品类型,支持值"dcdb" - 云数据库TDSQL MySQL;"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL;"dbbrain-mysql" - 自建 MySQL,默认为"mysql"。</p>
|
|
13413
13736
|
:type Product: str
|
|
13414
13737
|
"""
|
|
13415
13738
|
self._InstanceId = None
|
|
@@ -13419,7 +13742,7 @@ class DescribeUserSqlAdviceRequest(AbstractModel):
|
|
|
13419
13742
|
|
|
13420
13743
|
@property
|
|
13421
13744
|
def InstanceId(self):
|
|
13422
|
-
r"""
|
|
13745
|
+
r"""<p>实例 ID。可通过 <a href="https://cloud.tencent.com/document/api/1130/57798">DescribeDiagDBInstances</a> 接口获取。</p>
|
|
13423
13746
|
:rtype: str
|
|
13424
13747
|
"""
|
|
13425
13748
|
return self._InstanceId
|
|
@@ -13430,7 +13753,7 @@ class DescribeUserSqlAdviceRequest(AbstractModel):
|
|
|
13430
13753
|
|
|
13431
13754
|
@property
|
|
13432
13755
|
def SqlText(self):
|
|
13433
|
-
r"""SQL
|
|
13756
|
+
r"""<p>SQL语句。</p>
|
|
13434
13757
|
:rtype: str
|
|
13435
13758
|
"""
|
|
13436
13759
|
return self._SqlText
|
|
@@ -13441,7 +13764,7 @@ class DescribeUserSqlAdviceRequest(AbstractModel):
|
|
|
13441
13764
|
|
|
13442
13765
|
@property
|
|
13443
13766
|
def Schema(self):
|
|
13444
|
-
r"""
|
|
13767
|
+
r"""<p>库名。</p>
|
|
13445
13768
|
:rtype: str
|
|
13446
13769
|
"""
|
|
13447
13770
|
return self._Schema
|
|
@@ -13452,7 +13775,7 @@ class DescribeUserSqlAdviceRequest(AbstractModel):
|
|
|
13452
13775
|
|
|
13453
13776
|
@property
|
|
13454
13777
|
def Product(self):
|
|
13455
|
-
r"""
|
|
13778
|
+
r"""<p>服务产品类型,支持值"dcdb" - 云数据库TDSQL MySQL;"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL;"dbbrain-mysql" - 自建 MySQL,默认为"mysql"。</p>
|
|
13456
13779
|
:rtype: str
|
|
13457
13780
|
"""
|
|
13458
13781
|
return self._Product
|
|
@@ -13484,19 +13807,19 @@ class DescribeUserSqlAdviceResponse(AbstractModel):
|
|
|
13484
13807
|
|
|
13485
13808
|
def __init__(self):
|
|
13486
13809
|
r"""
|
|
13487
|
-
:param _Advices: SQL优化建议,可解析为JSON
|
|
13810
|
+
:param _Advices: <p>SQL优化建议,可解析为JSON数组,无需优化时输出为空。</p>
|
|
13488
13811
|
:type Advices: str
|
|
13489
|
-
:param _Comments: SQL优化建议备注,可解析为String
|
|
13812
|
+
:param _Comments: <p>SQL优化建议备注,可解析为String数组,无需优化时输出为空。</p>
|
|
13490
13813
|
:type Comments: str
|
|
13491
|
-
:param _SqlText: SQL
|
|
13814
|
+
:param _SqlText: <p>SQL语句。</p>
|
|
13492
13815
|
:type SqlText: str
|
|
13493
|
-
:param _Schema:
|
|
13816
|
+
:param _Schema: <p>库名。</p>
|
|
13494
13817
|
:type Schema: str
|
|
13495
|
-
:param _Tables:
|
|
13818
|
+
:param _Tables: <p>相关表的DDL信息,可解析为JSON数组。</p>
|
|
13496
13819
|
:type Tables: str
|
|
13497
|
-
:param _SqlPlan: SQL执行计划,可解析为JSON
|
|
13820
|
+
:param _SqlPlan: <p>SQL执行计划,可解析为JSON,无需优化时输出为空。</p>
|
|
13498
13821
|
:type SqlPlan: str
|
|
13499
|
-
:param _Cost: SQL优化后的成本节约详情,可解析为JSON
|
|
13822
|
+
:param _Cost: <p>SQL优化后的成本节约详情,可解析为JSON,无需优化时输出为空。</p>
|
|
13500
13823
|
:type Cost: str
|
|
13501
13824
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
13502
13825
|
:type RequestId: str
|
|
@@ -13512,7 +13835,7 @@ class DescribeUserSqlAdviceResponse(AbstractModel):
|
|
|
13512
13835
|
|
|
13513
13836
|
@property
|
|
13514
13837
|
def Advices(self):
|
|
13515
|
-
r"""SQL优化建议,可解析为JSON
|
|
13838
|
+
r"""<p>SQL优化建议,可解析为JSON数组,无需优化时输出为空。</p>
|
|
13516
13839
|
:rtype: str
|
|
13517
13840
|
"""
|
|
13518
13841
|
return self._Advices
|
|
@@ -13523,7 +13846,7 @@ class DescribeUserSqlAdviceResponse(AbstractModel):
|
|
|
13523
13846
|
|
|
13524
13847
|
@property
|
|
13525
13848
|
def Comments(self):
|
|
13526
|
-
r"""SQL优化建议备注,可解析为String
|
|
13849
|
+
r"""<p>SQL优化建议备注,可解析为String数组,无需优化时输出为空。</p>
|
|
13527
13850
|
:rtype: str
|
|
13528
13851
|
"""
|
|
13529
13852
|
return self._Comments
|
|
@@ -13534,7 +13857,7 @@ class DescribeUserSqlAdviceResponse(AbstractModel):
|
|
|
13534
13857
|
|
|
13535
13858
|
@property
|
|
13536
13859
|
def SqlText(self):
|
|
13537
|
-
r"""SQL
|
|
13860
|
+
r"""<p>SQL语句。</p>
|
|
13538
13861
|
:rtype: str
|
|
13539
13862
|
"""
|
|
13540
13863
|
return self._SqlText
|
|
@@ -13545,7 +13868,7 @@ class DescribeUserSqlAdviceResponse(AbstractModel):
|
|
|
13545
13868
|
|
|
13546
13869
|
@property
|
|
13547
13870
|
def Schema(self):
|
|
13548
|
-
r"""
|
|
13871
|
+
r"""<p>库名。</p>
|
|
13549
13872
|
:rtype: str
|
|
13550
13873
|
"""
|
|
13551
13874
|
return self._Schema
|
|
@@ -13556,7 +13879,7 @@ class DescribeUserSqlAdviceResponse(AbstractModel):
|
|
|
13556
13879
|
|
|
13557
13880
|
@property
|
|
13558
13881
|
def Tables(self):
|
|
13559
|
-
r"""
|
|
13882
|
+
r"""<p>相关表的DDL信息,可解析为JSON数组。</p>
|
|
13560
13883
|
:rtype: str
|
|
13561
13884
|
"""
|
|
13562
13885
|
return self._Tables
|
|
@@ -13567,7 +13890,7 @@ class DescribeUserSqlAdviceResponse(AbstractModel):
|
|
|
13567
13890
|
|
|
13568
13891
|
@property
|
|
13569
13892
|
def SqlPlan(self):
|
|
13570
|
-
r"""SQL执行计划,可解析为JSON
|
|
13893
|
+
r"""<p>SQL执行计划,可解析为JSON,无需优化时输出为空。</p>
|
|
13571
13894
|
:rtype: str
|
|
13572
13895
|
"""
|
|
13573
13896
|
return self._SqlPlan
|
|
@@ -13578,7 +13901,7 @@ class DescribeUserSqlAdviceResponse(AbstractModel):
|
|
|
13578
13901
|
|
|
13579
13902
|
@property
|
|
13580
13903
|
def Cost(self):
|
|
13581
|
-
r"""SQL优化后的成本节约详情,可解析为JSON
|
|
13904
|
+
r"""<p>SQL优化后的成本节约详情,可解析为JSON,无需优化时输出为空。</p>
|
|
13582
13905
|
:rtype: str
|
|
13583
13906
|
"""
|
|
13584
13907
|
return self._Cost
|
|
@@ -13850,11 +14173,11 @@ class EventInfo(AbstractModel):
|
|
|
13850
14173
|
r"""
|
|
13851
14174
|
:param _EventId: 事件 ID 。
|
|
13852
14175
|
:type EventId: int
|
|
13853
|
-
:param _DiagType:
|
|
14176
|
+
:param _DiagType: 诊断类型。包含以下值:内存利用率,CPU利用率,磁盘空间利用率,复制,复制IO线程中断。
|
|
13854
14177
|
:type DiagType: str
|
|
13855
|
-
:param _StartTime:
|
|
14178
|
+
:param _StartTime: 开始时间。格式: "yyyy-MM-dd'T'HH:mm:ssXXX"
|
|
13856
14179
|
:type StartTime: str
|
|
13857
|
-
:param _EndTime:
|
|
14180
|
+
:param _EndTime: 结束时间。格式: "yyyy-MM-dd'T'HH:mm:ssXXX"
|
|
13858
14181
|
:type EndTime: str
|
|
13859
14182
|
:param _Outline: 概要。
|
|
13860
14183
|
:type Outline: str
|
|
@@ -13890,7 +14213,7 @@ class EventInfo(AbstractModel):
|
|
|
13890
14213
|
|
|
13891
14214
|
@property
|
|
13892
14215
|
def DiagType(self):
|
|
13893
|
-
r"""
|
|
14216
|
+
r"""诊断类型。包含以下值:内存利用率,CPU利用率,磁盘空间利用率,复制,复制IO线程中断。
|
|
13894
14217
|
:rtype: str
|
|
13895
14218
|
"""
|
|
13896
14219
|
return self._DiagType
|
|
@@ -13901,7 +14224,7 @@ class EventInfo(AbstractModel):
|
|
|
13901
14224
|
|
|
13902
14225
|
@property
|
|
13903
14226
|
def StartTime(self):
|
|
13904
|
-
r"""
|
|
14227
|
+
r"""开始时间。格式: "yyyy-MM-dd'T'HH:mm:ssXXX"
|
|
13905
14228
|
:rtype: str
|
|
13906
14229
|
"""
|
|
13907
14230
|
return self._StartTime
|
|
@@ -13912,7 +14235,7 @@ class EventInfo(AbstractModel):
|
|
|
13912
14235
|
|
|
13913
14236
|
@property
|
|
13914
14237
|
def EndTime(self):
|
|
13915
|
-
r"""
|
|
14238
|
+
r"""结束时间。格式: "yyyy-MM-dd'T'HH:mm:ssXXX"
|
|
13916
14239
|
:rtype: str
|
|
13917
14240
|
"""
|
|
13918
14241
|
return self._EndTime
|
|
@@ -14222,6 +14545,11 @@ class HealthScoreInfo(AbstractModel):
|
|
|
14222
14545
|
:param _HealthScore: 健康得分。
|
|
14223
14546
|
:type HealthScore: int
|
|
14224
14547
|
:param _HealthLevel: 健康等级, 如:"HEALTH", "SUB_HEALTH", "RISK", "HIGH_RISK"。
|
|
14548
|
+
其中:
|
|
14549
|
+
HEALTH - 健康
|
|
14550
|
+
SUB_HEALTH - 亚健康
|
|
14551
|
+
RISK - 危险
|
|
14552
|
+
HIGH_RISK - 高危
|
|
14225
14553
|
:type HealthLevel: str
|
|
14226
14554
|
"""
|
|
14227
14555
|
self._IssueTypes = None
|
|
@@ -14265,6 +14593,11 @@ class HealthScoreInfo(AbstractModel):
|
|
|
14265
14593
|
@property
|
|
14266
14594
|
def HealthLevel(self):
|
|
14267
14595
|
r"""健康等级, 如:"HEALTH", "SUB_HEALTH", "RISK", "HIGH_RISK"。
|
|
14596
|
+
其中:
|
|
14597
|
+
HEALTH - 健康
|
|
14598
|
+
SUB_HEALTH - 亚健康
|
|
14599
|
+
RISK - 危险
|
|
14600
|
+
HIGH_RISK - 高危
|
|
14268
14601
|
:rtype: str
|
|
14269
14602
|
"""
|
|
14270
14603
|
return self._HealthLevel
|
|
@@ -21725,6 +22058,130 @@ class UpdateAgentSwitchResponse(AbstractModel):
|
|
|
21725
22058
|
self._RequestId = params.get("RequestId")
|
|
21726
22059
|
|
|
21727
22060
|
|
|
22061
|
+
class UpdateDatabaseAutonomyStatusRequest(AbstractModel):
|
|
22062
|
+
r"""UpdateDatabaseAutonomyStatus请求参数结构体
|
|
22063
|
+
|
|
22064
|
+
"""
|
|
22065
|
+
|
|
22066
|
+
def __init__(self):
|
|
22067
|
+
r"""
|
|
22068
|
+
:param _InstanceId: <p>实例 ID。</p>
|
|
22069
|
+
:type InstanceId: str
|
|
22070
|
+
:param _Product: <p>服务产品类型。取值:mongodb(云数据库 MongoDB)。</p>
|
|
22071
|
+
:type Product: str
|
|
22072
|
+
:param _Type: <p>自治功能类型。取值:AutoIndexAdvice(索引推荐)。</p>
|
|
22073
|
+
:type Type: str
|
|
22074
|
+
:param _Status: <p>开关状态。取值:0(关闭)、1(开启)。</p>
|
|
22075
|
+
:type Status: int
|
|
22076
|
+
"""
|
|
22077
|
+
self._InstanceId = None
|
|
22078
|
+
self._Product = None
|
|
22079
|
+
self._Type = None
|
|
22080
|
+
self._Status = None
|
|
22081
|
+
|
|
22082
|
+
@property
|
|
22083
|
+
def InstanceId(self):
|
|
22084
|
+
r"""<p>实例 ID。</p>
|
|
22085
|
+
:rtype: str
|
|
22086
|
+
"""
|
|
22087
|
+
return self._InstanceId
|
|
22088
|
+
|
|
22089
|
+
@InstanceId.setter
|
|
22090
|
+
def InstanceId(self, InstanceId):
|
|
22091
|
+
self._InstanceId = InstanceId
|
|
22092
|
+
|
|
22093
|
+
@property
|
|
22094
|
+
def Product(self):
|
|
22095
|
+
r"""<p>服务产品类型。取值:mongodb(云数据库 MongoDB)。</p>
|
|
22096
|
+
:rtype: str
|
|
22097
|
+
"""
|
|
22098
|
+
return self._Product
|
|
22099
|
+
|
|
22100
|
+
@Product.setter
|
|
22101
|
+
def Product(self, Product):
|
|
22102
|
+
self._Product = Product
|
|
22103
|
+
|
|
22104
|
+
@property
|
|
22105
|
+
def Type(self):
|
|
22106
|
+
r"""<p>自治功能类型。取值:AutoIndexAdvice(索引推荐)。</p>
|
|
22107
|
+
:rtype: str
|
|
22108
|
+
"""
|
|
22109
|
+
return self._Type
|
|
22110
|
+
|
|
22111
|
+
@Type.setter
|
|
22112
|
+
def Type(self, Type):
|
|
22113
|
+
self._Type = Type
|
|
22114
|
+
|
|
22115
|
+
@property
|
|
22116
|
+
def Status(self):
|
|
22117
|
+
r"""<p>开关状态。取值:0(关闭)、1(开启)。</p>
|
|
22118
|
+
:rtype: int
|
|
22119
|
+
"""
|
|
22120
|
+
return self._Status
|
|
22121
|
+
|
|
22122
|
+
@Status.setter
|
|
22123
|
+
def Status(self, Status):
|
|
22124
|
+
self._Status = Status
|
|
22125
|
+
|
|
22126
|
+
|
|
22127
|
+
def _deserialize(self, params):
|
|
22128
|
+
self._InstanceId = params.get("InstanceId")
|
|
22129
|
+
self._Product = params.get("Product")
|
|
22130
|
+
self._Type = params.get("Type")
|
|
22131
|
+
self._Status = params.get("Status")
|
|
22132
|
+
memeber_set = set(params.keys())
|
|
22133
|
+
for name, value in vars(self).items():
|
|
22134
|
+
property_name = name[1:]
|
|
22135
|
+
if property_name in memeber_set:
|
|
22136
|
+
memeber_set.remove(property_name)
|
|
22137
|
+
if len(memeber_set) > 0:
|
|
22138
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
22139
|
+
|
|
22140
|
+
|
|
22141
|
+
|
|
22142
|
+
class UpdateDatabaseAutonomyStatusResponse(AbstractModel):
|
|
22143
|
+
r"""UpdateDatabaseAutonomyStatus返回参数结构体
|
|
22144
|
+
|
|
22145
|
+
"""
|
|
22146
|
+
|
|
22147
|
+
def __init__(self):
|
|
22148
|
+
r"""
|
|
22149
|
+
:param _Status: <p>操作结果状态。取值:1(操作成功)。</p>
|
|
22150
|
+
:type Status: int
|
|
22151
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
22152
|
+
:type RequestId: str
|
|
22153
|
+
"""
|
|
22154
|
+
self._Status = None
|
|
22155
|
+
self._RequestId = None
|
|
22156
|
+
|
|
22157
|
+
@property
|
|
22158
|
+
def Status(self):
|
|
22159
|
+
r"""<p>操作结果状态。取值:1(操作成功)。</p>
|
|
22160
|
+
:rtype: int
|
|
22161
|
+
"""
|
|
22162
|
+
return self._Status
|
|
22163
|
+
|
|
22164
|
+
@Status.setter
|
|
22165
|
+
def Status(self, Status):
|
|
22166
|
+
self._Status = Status
|
|
22167
|
+
|
|
22168
|
+
@property
|
|
22169
|
+
def RequestId(self):
|
|
22170
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
22171
|
+
:rtype: str
|
|
22172
|
+
"""
|
|
22173
|
+
return self._RequestId
|
|
22174
|
+
|
|
22175
|
+
@RequestId.setter
|
|
22176
|
+
def RequestId(self, RequestId):
|
|
22177
|
+
self._RequestId = RequestId
|
|
22178
|
+
|
|
22179
|
+
|
|
22180
|
+
def _deserialize(self, params):
|
|
22181
|
+
self._Status = params.get("Status")
|
|
22182
|
+
self._RequestId = params.get("RequestId")
|
|
22183
|
+
|
|
22184
|
+
|
|
21728
22185
|
class UpdateMonitorSwitchRequest(AbstractModel):
|
|
21729
22186
|
r"""UpdateMonitorSwitch请求参数结构体
|
|
21730
22187
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-dbbrain
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.108
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.108
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=y_Ei4GlucUPYsVQTMES7tt4djSfJ9rzhbEoWIhX23W0,630
|
|
2
|
+
tencentcloud/dbbrain/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
tencentcloud/dbbrain/v20191016/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
tencentcloud/dbbrain/v20191016/dbbrain_client.py,sha256=D8k7Ql1i2UiOCXIfggsfn7IqwcMkuHYuo2nddMygKEI,28717
|
|
5
|
+
tencentcloud/dbbrain/v20191016/dbbrain_client_async.py,sha256=yEPUVmQLNQSYIn2XUfsgbaP7unL_xjhVgPL8aJ-JTVA,19831
|
|
6
|
+
tencentcloud/dbbrain/v20191016/errorcodes.py,sha256=tpmfN_Xls8IKwIUcXWGH6yQUndtIjH7zeAQYL2A8NDc,1625
|
|
7
|
+
tencentcloud/dbbrain/v20191016/models.py,sha256=BNLnWNNu2-UhQ8rHtA4Np--o4YTQWdtDuHMnDDn8hXk,250045
|
|
8
|
+
tencentcloud/dbbrain/v20210527/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
+
tencentcloud/dbbrain/v20210527/dbbrain_client.py,sha256=wh2YNCPlLEmGZuEl6WjDQpZUTL6iF3jkVyQdF59fyP0,86629
|
|
10
|
+
tencentcloud/dbbrain/v20210527/dbbrain_client_async.py,sha256=ga8RA0C2Gomdj5jfnegZDDlw9SaJygE-A44NQ9sukEE,58921
|
|
11
|
+
tencentcloud/dbbrain/v20210527/errorcodes.py,sha256=Sh30b_ChoDx9THeOrRvW0NNP7SzDta04u5sUulDMa54,2457
|
|
12
|
+
tencentcloud/dbbrain/v20210527/models.py,sha256=WTf0THz6cgnXvUqJyRA7ma16yC_RqHO1TF-PTyV66uE,684913
|
|
13
|
+
tencentcloud_sdk_python_dbbrain-3.1.108.dist-info/METADATA,sha256=hb4WJ8UrZFTsiLlUyr6QsQgG15hQXLi8JL1T-erPRME,1517
|
|
14
|
+
tencentcloud_sdk_python_dbbrain-3.1.108.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
15
|
+
tencentcloud_sdk_python_dbbrain-3.1.108.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
16
|
+
tencentcloud_sdk_python_dbbrain-3.1.108.dist-info/RECORD,,
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=8cXII7AMHdm87pMJh3Q_PwjlZBE6E2xQJkI3SqJHQ7Y,629
|
|
2
|
-
tencentcloud/dbbrain/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
tencentcloud/dbbrain/v20191016/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
tencentcloud/dbbrain/v20191016/dbbrain_client.py,sha256=D8k7Ql1i2UiOCXIfggsfn7IqwcMkuHYuo2nddMygKEI,28717
|
|
5
|
-
tencentcloud/dbbrain/v20191016/dbbrain_client_async.py,sha256=yEPUVmQLNQSYIn2XUfsgbaP7unL_xjhVgPL8aJ-JTVA,19831
|
|
6
|
-
tencentcloud/dbbrain/v20191016/errorcodes.py,sha256=tpmfN_Xls8IKwIUcXWGH6yQUndtIjH7zeAQYL2A8NDc,1625
|
|
7
|
-
tencentcloud/dbbrain/v20191016/models.py,sha256=wfc9dk4NPf4Z-wjESL3E1DbnHItQEosnb5V5XRije2I,249909
|
|
8
|
-
tencentcloud/dbbrain/v20210527/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
tencentcloud/dbbrain/v20210527/dbbrain_client.py,sha256=yEVFl9R8cd35OmrwSvAsfNq3O_1WjDUqQf64LER2XHw,83417
|
|
10
|
-
tencentcloud/dbbrain/v20210527/dbbrain_client_async.py,sha256=2sZfJdOWuxz015VEnHsiFWOUAqT95UnPjfA_gIDTshE,56658
|
|
11
|
-
tencentcloud/dbbrain/v20210527/errorcodes.py,sha256=0Ght_rObA-R7NQh0RCJ3oXd3u4UgL7tH31XThHcUCzk,2413
|
|
12
|
-
tencentcloud/dbbrain/v20210527/models.py,sha256=F9C83TO46tm_DLf-mY4UCdO2dsm7v1pCQTozEf7yoww,669183
|
|
13
|
-
tencentcloud_sdk_python_dbbrain-3.1.25.dist-info/METADATA,sha256=apBoyH2ZZfsgfk3v0mmwmVq7mrxxs0mgmUSFK-2rs6k,1515
|
|
14
|
-
tencentcloud_sdk_python_dbbrain-3.1.25.dist-info/WHEEL,sha256=Ll72iyqtt6Rbxp-Q7FSafYA1LeRv98X15xcZWRsFEmY,109
|
|
15
|
-
tencentcloud_sdk_python_dbbrain-3.1.25.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
16
|
-
tencentcloud_sdk_python_dbbrain-3.1.25.dist-info/RECORD,,
|
|
File without changes
|