tencentcloud-sdk-python-dbbrain 3.1.196__py2.py3-none-any.whl → 3.1.206__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/v20210527/dbbrain_client.py +23 -0
- tencentcloud/dbbrain/v20210527/dbbrain_client_async.py +18 -0
- tencentcloud/dbbrain/v20210527/models.py +405 -0
- {tencentcloud_sdk_python_dbbrain-3.1.196.dist-info → tencentcloud_sdk_python_dbbrain-3.1.206.dist-info}/METADATA +2 -2
- {tencentcloud_sdk_python_dbbrain-3.1.196.dist-info → tencentcloud_sdk_python_dbbrain-3.1.206.dist-info}/RECORD +8 -8
- {tencentcloud_sdk_python_dbbrain-3.1.196.dist-info → tencentcloud_sdk_python_dbbrain-3.1.206.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_dbbrain-3.1.196.dist-info → tencentcloud_sdk_python_dbbrain-3.1.206.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -1843,6 +1843,29 @@ class DbbrainClient(AbstractClient):
|
|
|
1843
1843
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1844
1844
|
|
|
1845
1845
|
|
|
1846
|
+
def DescribeSqlExplainV2(self, request):
|
|
1847
|
+
r"""查询指定 SELECT SQL 在实例上的执行计划,常用于慢 SQL 分析、SQL 优化等场景。仅支持 SELECT 类语句
|
|
1848
|
+
|
|
1849
|
+
:param request: Request instance for DescribeSqlExplainV2.
|
|
1850
|
+
:type request: :class:`tencentcloud.dbbrain.v20210527.models.DescribeSqlExplainV2Request`
|
|
1851
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.DescribeSqlExplainV2Response`
|
|
1852
|
+
|
|
1853
|
+
"""
|
|
1854
|
+
try:
|
|
1855
|
+
params = request._serialize()
|
|
1856
|
+
headers = request.headers
|
|
1857
|
+
body = self.call("DescribeSqlExplainV2", params, headers=headers)
|
|
1858
|
+
response = json.loads(body)
|
|
1859
|
+
model = models.DescribeSqlExplainV2Response()
|
|
1860
|
+
model._deserialize(response["Response"])
|
|
1861
|
+
return model
|
|
1862
|
+
except Exception as e:
|
|
1863
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1864
|
+
raise
|
|
1865
|
+
else:
|
|
1866
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1867
|
+
|
|
1868
|
+
|
|
1846
1869
|
def DescribeSqlFilters(self, request):
|
|
1847
1870
|
r"""查询实例SQL限流任务列表。
|
|
1848
1871
|
|
|
@@ -1447,6 +1447,24 @@ class DbbrainClient(AbstractClient):
|
|
|
1447
1447
|
|
|
1448
1448
|
return await self.call_and_deserialize(**kwargs)
|
|
1449
1449
|
|
|
1450
|
+
async def DescribeSqlExplainV2(
|
|
1451
|
+
self,
|
|
1452
|
+
request: models.DescribeSqlExplainV2Request,
|
|
1453
|
+
opts: Dict = None,
|
|
1454
|
+
) -> models.DescribeSqlExplainV2Response:
|
|
1455
|
+
"""
|
|
1456
|
+
查询指定 SELECT SQL 在实例上的执行计划,常用于慢 SQL 分析、SQL 优化等场景。仅支持 SELECT 类语句
|
|
1457
|
+
"""
|
|
1458
|
+
|
|
1459
|
+
kwargs = {}
|
|
1460
|
+
kwargs["action"] = "DescribeSqlExplainV2"
|
|
1461
|
+
kwargs["params"] = request._serialize()
|
|
1462
|
+
kwargs["resp_cls"] = models.DescribeSqlExplainV2Response
|
|
1463
|
+
kwargs["headers"] = request.headers
|
|
1464
|
+
kwargs["opts"] = opts or {}
|
|
1465
|
+
|
|
1466
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1467
|
+
|
|
1450
1468
|
async def DescribeSqlFilters(
|
|
1451
1469
|
self,
|
|
1452
1470
|
request: models.DescribeSqlFiltersRequest,
|
|
@@ -18715,6 +18715,247 @@ class DescribeSlowLogsResponse(AbstractModel):
|
|
|
18715
18715
|
self._RequestId = params.get("RequestId")
|
|
18716
18716
|
|
|
18717
18717
|
|
|
18718
|
+
class DescribeSqlExplainV2Request(AbstractModel):
|
|
18719
|
+
r"""DescribeSqlExplainV2请求参数结构体
|
|
18720
|
+
|
|
18721
|
+
"""
|
|
18722
|
+
|
|
18723
|
+
def __init__(self):
|
|
18724
|
+
r"""
|
|
18725
|
+
:param _Product: <p>服务产品类型。取值:mysql(云数据库 MySQL)、cynosdb(TDSQL-C MySQL 版)、dcdb(TDSQL MySQL 版)、mariadb(TDSQL MariaDB 版)。</p>
|
|
18726
|
+
:type Product: str
|
|
18727
|
+
:param _SqlText: <p>待分析的 SQL 语句。仅支持单条 SELECT 语句;若以 EXPLAIN 开头会自动剥离 EXPLAIN 前缀后分析。最大 4096 字符。</p>
|
|
18728
|
+
:type SqlText: str
|
|
18729
|
+
:param _InstanceId: <p>实例 ID。MySQL: cdb-xxxxxxx,TDSQL-C: cynosdbmysql-ins-xxxxxxx,MariaDB: tdsql-xxxxx,TDSQL-MySQL: '集群id&分片id',如果TDSQL-MySQL数据库类型同时传入了集群id则instanceId字段只需要传入分片id。最大 64 字符。与 ClusterId 至少需传入其一。</p>
|
|
18730
|
+
:type InstanceId: str
|
|
18731
|
+
:param _Schema: <p>数据库名。可选;为空时按当前 SQL 上下文执行。最大 64 字符。</p>
|
|
18732
|
+
:type Schema: str
|
|
18733
|
+
:param _ClusterId: <p>集群 ID。仅 TDSQL-MySQL时使用,与 InstanceId 至少需传入其一。最大 64 字符。</p>
|
|
18734
|
+
:type ClusterId: str
|
|
18735
|
+
:param _Visual: <p>是否输出可视化执行树</p><p>默认值:false</p>
|
|
18736
|
+
:type Visual: bool
|
|
18737
|
+
"""
|
|
18738
|
+
self._Product = None
|
|
18739
|
+
self._SqlText = None
|
|
18740
|
+
self._InstanceId = None
|
|
18741
|
+
self._Schema = None
|
|
18742
|
+
self._ClusterId = None
|
|
18743
|
+
self._Visual = None
|
|
18744
|
+
|
|
18745
|
+
@property
|
|
18746
|
+
def Product(self):
|
|
18747
|
+
r"""<p>服务产品类型。取值:mysql(云数据库 MySQL)、cynosdb(TDSQL-C MySQL 版)、dcdb(TDSQL MySQL 版)、mariadb(TDSQL MariaDB 版)。</p>
|
|
18748
|
+
:rtype: str
|
|
18749
|
+
"""
|
|
18750
|
+
return self._Product
|
|
18751
|
+
|
|
18752
|
+
@Product.setter
|
|
18753
|
+
def Product(self, Product):
|
|
18754
|
+
self._Product = Product
|
|
18755
|
+
|
|
18756
|
+
@property
|
|
18757
|
+
def SqlText(self):
|
|
18758
|
+
r"""<p>待分析的 SQL 语句。仅支持单条 SELECT 语句;若以 EXPLAIN 开头会自动剥离 EXPLAIN 前缀后分析。最大 4096 字符。</p>
|
|
18759
|
+
:rtype: str
|
|
18760
|
+
"""
|
|
18761
|
+
return self._SqlText
|
|
18762
|
+
|
|
18763
|
+
@SqlText.setter
|
|
18764
|
+
def SqlText(self, SqlText):
|
|
18765
|
+
self._SqlText = SqlText
|
|
18766
|
+
|
|
18767
|
+
@property
|
|
18768
|
+
def InstanceId(self):
|
|
18769
|
+
r"""<p>实例 ID。MySQL: cdb-xxxxxxx,TDSQL-C: cynosdbmysql-ins-xxxxxxx,MariaDB: tdsql-xxxxx,TDSQL-MySQL: '集群id&分片id',如果TDSQL-MySQL数据库类型同时传入了集群id则instanceId字段只需要传入分片id。最大 64 字符。与 ClusterId 至少需传入其一。</p>
|
|
18770
|
+
:rtype: str
|
|
18771
|
+
"""
|
|
18772
|
+
return self._InstanceId
|
|
18773
|
+
|
|
18774
|
+
@InstanceId.setter
|
|
18775
|
+
def InstanceId(self, InstanceId):
|
|
18776
|
+
self._InstanceId = InstanceId
|
|
18777
|
+
|
|
18778
|
+
@property
|
|
18779
|
+
def Schema(self):
|
|
18780
|
+
r"""<p>数据库名。可选;为空时按当前 SQL 上下文执行。最大 64 字符。</p>
|
|
18781
|
+
:rtype: str
|
|
18782
|
+
"""
|
|
18783
|
+
return self._Schema
|
|
18784
|
+
|
|
18785
|
+
@Schema.setter
|
|
18786
|
+
def Schema(self, Schema):
|
|
18787
|
+
self._Schema = Schema
|
|
18788
|
+
|
|
18789
|
+
@property
|
|
18790
|
+
def ClusterId(self):
|
|
18791
|
+
r"""<p>集群 ID。仅 TDSQL-MySQL时使用,与 InstanceId 至少需传入其一。最大 64 字符。</p>
|
|
18792
|
+
:rtype: str
|
|
18793
|
+
"""
|
|
18794
|
+
return self._ClusterId
|
|
18795
|
+
|
|
18796
|
+
@ClusterId.setter
|
|
18797
|
+
def ClusterId(self, ClusterId):
|
|
18798
|
+
self._ClusterId = ClusterId
|
|
18799
|
+
|
|
18800
|
+
@property
|
|
18801
|
+
def Visual(self):
|
|
18802
|
+
r"""<p>是否输出可视化执行树</p><p>默认值:false</p>
|
|
18803
|
+
:rtype: bool
|
|
18804
|
+
"""
|
|
18805
|
+
return self._Visual
|
|
18806
|
+
|
|
18807
|
+
@Visual.setter
|
|
18808
|
+
def Visual(self, Visual):
|
|
18809
|
+
self._Visual = Visual
|
|
18810
|
+
|
|
18811
|
+
|
|
18812
|
+
def _deserialize(self, params):
|
|
18813
|
+
self._Product = params.get("Product")
|
|
18814
|
+
self._SqlText = params.get("SqlText")
|
|
18815
|
+
self._InstanceId = params.get("InstanceId")
|
|
18816
|
+
self._Schema = params.get("Schema")
|
|
18817
|
+
self._ClusterId = params.get("ClusterId")
|
|
18818
|
+
self._Visual = params.get("Visual")
|
|
18819
|
+
memeber_set = set(params.keys())
|
|
18820
|
+
for name, value in vars(self).items():
|
|
18821
|
+
property_name = name[1:]
|
|
18822
|
+
if property_name in memeber_set:
|
|
18823
|
+
memeber_set.remove(property_name)
|
|
18824
|
+
if len(memeber_set) > 0:
|
|
18825
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
18826
|
+
|
|
18827
|
+
|
|
18828
|
+
|
|
18829
|
+
class DescribeSqlExplainV2Response(AbstractModel):
|
|
18830
|
+
r"""DescribeSqlExplainV2返回参数结构体
|
|
18831
|
+
|
|
18832
|
+
"""
|
|
18833
|
+
|
|
18834
|
+
def __init__(self):
|
|
18835
|
+
r"""
|
|
18836
|
+
:param _Schema: <p>数据库名,回显请求中的 Schema。</p>
|
|
18837
|
+
:type Schema: str
|
|
18838
|
+
:param _SqlText: <p>SQL 文本,回显请求中的 SqlText。</p>
|
|
18839
|
+
:type SqlText: str
|
|
18840
|
+
:param _Tables: <p>SQL 涉及的表名列表。</p>
|
|
18841
|
+
:type Tables: list of SqlExplainTableRefV2
|
|
18842
|
+
:param _Explain: <p>执行计划详细信息。由数据库 EXPLAIN 输出透传,内容为 JSON 字符串,包含 Meta(列定义)与 Data(执行计划行)两部分;Format=JSON 时为 EXPLAIN FORMAT=JSON 的原始结果。</p>
|
|
18843
|
+
:type Explain: :class:`tencentcloud.dbbrain.v20210527.models.SqlExplainResultV2`
|
|
18844
|
+
:param _FieldDesc: <p>执行计划字段说明列表。仅当请求 Visual=true 或走 SqlTemplateKey 路径时返回,用于前端展示字段中文释义。</p>
|
|
18845
|
+
:type FieldDesc: list of SqlExplainFieldDescV2
|
|
18846
|
+
:param _VisualExplain: <p>可视化执行计划树,当Visual=true时返回</p>
|
|
18847
|
+
:type VisualExplain: str
|
|
18848
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
18849
|
+
:type RequestId: str
|
|
18850
|
+
"""
|
|
18851
|
+
self._Schema = None
|
|
18852
|
+
self._SqlText = None
|
|
18853
|
+
self._Tables = None
|
|
18854
|
+
self._Explain = None
|
|
18855
|
+
self._FieldDesc = None
|
|
18856
|
+
self._VisualExplain = None
|
|
18857
|
+
self._RequestId = None
|
|
18858
|
+
|
|
18859
|
+
@property
|
|
18860
|
+
def Schema(self):
|
|
18861
|
+
r"""<p>数据库名,回显请求中的 Schema。</p>
|
|
18862
|
+
:rtype: str
|
|
18863
|
+
"""
|
|
18864
|
+
return self._Schema
|
|
18865
|
+
|
|
18866
|
+
@Schema.setter
|
|
18867
|
+
def Schema(self, Schema):
|
|
18868
|
+
self._Schema = Schema
|
|
18869
|
+
|
|
18870
|
+
@property
|
|
18871
|
+
def SqlText(self):
|
|
18872
|
+
r"""<p>SQL 文本,回显请求中的 SqlText。</p>
|
|
18873
|
+
:rtype: str
|
|
18874
|
+
"""
|
|
18875
|
+
return self._SqlText
|
|
18876
|
+
|
|
18877
|
+
@SqlText.setter
|
|
18878
|
+
def SqlText(self, SqlText):
|
|
18879
|
+
self._SqlText = SqlText
|
|
18880
|
+
|
|
18881
|
+
@property
|
|
18882
|
+
def Tables(self):
|
|
18883
|
+
r"""<p>SQL 涉及的表名列表。</p>
|
|
18884
|
+
:rtype: list of SqlExplainTableRefV2
|
|
18885
|
+
"""
|
|
18886
|
+
return self._Tables
|
|
18887
|
+
|
|
18888
|
+
@Tables.setter
|
|
18889
|
+
def Tables(self, Tables):
|
|
18890
|
+
self._Tables = Tables
|
|
18891
|
+
|
|
18892
|
+
@property
|
|
18893
|
+
def Explain(self):
|
|
18894
|
+
r"""<p>执行计划详细信息。由数据库 EXPLAIN 输出透传,内容为 JSON 字符串,包含 Meta(列定义)与 Data(执行计划行)两部分;Format=JSON 时为 EXPLAIN FORMAT=JSON 的原始结果。</p>
|
|
18895
|
+
:rtype: :class:`tencentcloud.dbbrain.v20210527.models.SqlExplainResultV2`
|
|
18896
|
+
"""
|
|
18897
|
+
return self._Explain
|
|
18898
|
+
|
|
18899
|
+
@Explain.setter
|
|
18900
|
+
def Explain(self, Explain):
|
|
18901
|
+
self._Explain = Explain
|
|
18902
|
+
|
|
18903
|
+
@property
|
|
18904
|
+
def FieldDesc(self):
|
|
18905
|
+
r"""<p>执行计划字段说明列表。仅当请求 Visual=true 或走 SqlTemplateKey 路径时返回,用于前端展示字段中文释义。</p>
|
|
18906
|
+
:rtype: list of SqlExplainFieldDescV2
|
|
18907
|
+
"""
|
|
18908
|
+
return self._FieldDesc
|
|
18909
|
+
|
|
18910
|
+
@FieldDesc.setter
|
|
18911
|
+
def FieldDesc(self, FieldDesc):
|
|
18912
|
+
self._FieldDesc = FieldDesc
|
|
18913
|
+
|
|
18914
|
+
@property
|
|
18915
|
+
def VisualExplain(self):
|
|
18916
|
+
r"""<p>可视化执行计划树,当Visual=true时返回</p>
|
|
18917
|
+
:rtype: str
|
|
18918
|
+
"""
|
|
18919
|
+
return self._VisualExplain
|
|
18920
|
+
|
|
18921
|
+
@VisualExplain.setter
|
|
18922
|
+
def VisualExplain(self, VisualExplain):
|
|
18923
|
+
self._VisualExplain = VisualExplain
|
|
18924
|
+
|
|
18925
|
+
@property
|
|
18926
|
+
def RequestId(self):
|
|
18927
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
18928
|
+
:rtype: str
|
|
18929
|
+
"""
|
|
18930
|
+
return self._RequestId
|
|
18931
|
+
|
|
18932
|
+
@RequestId.setter
|
|
18933
|
+
def RequestId(self, RequestId):
|
|
18934
|
+
self._RequestId = RequestId
|
|
18935
|
+
|
|
18936
|
+
|
|
18937
|
+
def _deserialize(self, params):
|
|
18938
|
+
self._Schema = params.get("Schema")
|
|
18939
|
+
self._SqlText = params.get("SqlText")
|
|
18940
|
+
if params.get("Tables") is not None:
|
|
18941
|
+
self._Tables = []
|
|
18942
|
+
for item in params.get("Tables"):
|
|
18943
|
+
obj = SqlExplainTableRefV2()
|
|
18944
|
+
obj._deserialize(item)
|
|
18945
|
+
self._Tables.append(obj)
|
|
18946
|
+
if params.get("Explain") is not None:
|
|
18947
|
+
self._Explain = SqlExplainResultV2()
|
|
18948
|
+
self._Explain._deserialize(params.get("Explain"))
|
|
18949
|
+
if params.get("FieldDesc") is not None:
|
|
18950
|
+
self._FieldDesc = []
|
|
18951
|
+
for item in params.get("FieldDesc"):
|
|
18952
|
+
obj = SqlExplainFieldDescV2()
|
|
18953
|
+
obj._deserialize(item)
|
|
18954
|
+
self._FieldDesc.append(obj)
|
|
18955
|
+
self._VisualExplain = params.get("VisualExplain")
|
|
18956
|
+
self._RequestId = params.get("RequestId")
|
|
18957
|
+
|
|
18958
|
+
|
|
18718
18959
|
class DescribeSqlFiltersRequest(AbstractModel):
|
|
18719
18960
|
r"""DescribeSqlFilters请求参数结构体
|
|
18720
18961
|
|
|
@@ -29353,6 +29594,170 @@ class SqlCostDistribution(AbstractModel):
|
|
|
29353
29594
|
|
|
29354
29595
|
|
|
29355
29596
|
|
|
29597
|
+
class SqlExplainFieldDescV2(AbstractModel):
|
|
29598
|
+
r"""执行计划字段说明项。提供 EXPLAIN / VisualExplain 输出中各字段的中文释义,便于前端在展示可视化执行计划时进行翻译。
|
|
29599
|
+
|
|
29600
|
+
"""
|
|
29601
|
+
|
|
29602
|
+
def __init__(self):
|
|
29603
|
+
r"""
|
|
29604
|
+
:param _Field: <p>字段英文名,与 Explain / VisualExplain 中出现的字段一致,例如 access_type、key、rows。</p>
|
|
29605
|
+
:type Field: str
|
|
29606
|
+
:param _Desc: <p>字段中文释义。</p>
|
|
29607
|
+
:type Desc: str
|
|
29608
|
+
"""
|
|
29609
|
+
self._Field = None
|
|
29610
|
+
self._Desc = None
|
|
29611
|
+
|
|
29612
|
+
@property
|
|
29613
|
+
def Field(self):
|
|
29614
|
+
r"""<p>字段英文名,与 Explain / VisualExplain 中出现的字段一致,例如 access_type、key、rows。</p>
|
|
29615
|
+
:rtype: str
|
|
29616
|
+
"""
|
|
29617
|
+
return self._Field
|
|
29618
|
+
|
|
29619
|
+
@Field.setter
|
|
29620
|
+
def Field(self, Field):
|
|
29621
|
+
self._Field = Field
|
|
29622
|
+
|
|
29623
|
+
@property
|
|
29624
|
+
def Desc(self):
|
|
29625
|
+
r"""<p>字段中文释义。</p>
|
|
29626
|
+
:rtype: str
|
|
29627
|
+
"""
|
|
29628
|
+
return self._Desc
|
|
29629
|
+
|
|
29630
|
+
@Desc.setter
|
|
29631
|
+
def Desc(self, Desc):
|
|
29632
|
+
self._Desc = Desc
|
|
29633
|
+
|
|
29634
|
+
|
|
29635
|
+
def _deserialize(self, params):
|
|
29636
|
+
self._Field = params.get("Field")
|
|
29637
|
+
self._Desc = params.get("Desc")
|
|
29638
|
+
memeber_set = set(params.keys())
|
|
29639
|
+
for name, value in vars(self).items():
|
|
29640
|
+
property_name = name[1:]
|
|
29641
|
+
if property_name in memeber_set:
|
|
29642
|
+
memeber_set.remove(property_name)
|
|
29643
|
+
if len(memeber_set) > 0:
|
|
29644
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
29645
|
+
|
|
29646
|
+
|
|
29647
|
+
|
|
29648
|
+
class SqlExplainResultV2(AbstractModel):
|
|
29649
|
+
r"""EXPLAIN 输出结果。Names 为 EXPLAIN 列名顺序,Data 为按行展开的执行计划数据。
|
|
29650
|
+
|
|
29651
|
+
"""
|
|
29652
|
+
|
|
29653
|
+
def __init__(self):
|
|
29654
|
+
r"""
|
|
29655
|
+
:param _Names: <p>EXPLAIN 列名顺序,与 Data 中每一行的字段一一对应。</p>
|
|
29656
|
+
:type Names: list of str
|
|
29657
|
+
:param _Data: <p>执行计划行列表。</p>
|
|
29658
|
+
:type Data: list of SqlExplainRowV2
|
|
29659
|
+
"""
|
|
29660
|
+
self._Names = None
|
|
29661
|
+
self._Data = None
|
|
29662
|
+
|
|
29663
|
+
@property
|
|
29664
|
+
def Names(self):
|
|
29665
|
+
r"""<p>EXPLAIN 列名顺序,与 Data 中每一行的字段一一对应。</p>
|
|
29666
|
+
:rtype: list of str
|
|
29667
|
+
"""
|
|
29668
|
+
return self._Names
|
|
29669
|
+
|
|
29670
|
+
@Names.setter
|
|
29671
|
+
def Names(self, Names):
|
|
29672
|
+
self._Names = Names
|
|
29673
|
+
|
|
29674
|
+
@property
|
|
29675
|
+
def Data(self):
|
|
29676
|
+
r"""<p>执行计划行列表。</p>
|
|
29677
|
+
:rtype: list of SqlExplainRowV2
|
|
29678
|
+
"""
|
|
29679
|
+
return self._Data
|
|
29680
|
+
|
|
29681
|
+
@Data.setter
|
|
29682
|
+
def Data(self, Data):
|
|
29683
|
+
self._Data = Data
|
|
29684
|
+
|
|
29685
|
+
|
|
29686
|
+
def _deserialize(self, params):
|
|
29687
|
+
self._Names = params.get("Names")
|
|
29688
|
+
if params.get("Data") is not None:
|
|
29689
|
+
self._Data = []
|
|
29690
|
+
for item in params.get("Data"):
|
|
29691
|
+
obj = SqlExplainRowV2()
|
|
29692
|
+
obj._deserialize(item)
|
|
29693
|
+
self._Data.append(obj)
|
|
29694
|
+
memeber_set = set(params.keys())
|
|
29695
|
+
for name, value in vars(self).items():
|
|
29696
|
+
property_name = name[1:]
|
|
29697
|
+
if property_name in memeber_set:
|
|
29698
|
+
memeber_set.remove(property_name)
|
|
29699
|
+
if len(memeber_set) > 0:
|
|
29700
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
29701
|
+
|
|
29702
|
+
|
|
29703
|
+
|
|
29704
|
+
class SqlExplainRowV2(AbstractModel):
|
|
29705
|
+
r"""EXPLAIN TRADITIONAL 格式的执行计划行(共 12 列),字段语义与 MySQL 原生 EXPLAIN 输出一致。
|
|
29706
|
+
|
|
29707
|
+
"""
|
|
29708
|
+
|
|
29709
|
+
|
|
29710
|
+
class SqlExplainTableRefV2(AbstractModel):
|
|
29711
|
+
r"""SQL 涉及的表信息。包含库名与表名,用于在前端展示 SQL 涉及的表清单。
|
|
29712
|
+
|
|
29713
|
+
"""
|
|
29714
|
+
|
|
29715
|
+
def __init__(self):
|
|
29716
|
+
r"""
|
|
29717
|
+
:param _TableName: <p>表名。</p>
|
|
29718
|
+
:type TableName: str
|
|
29719
|
+
:param _TableSchema: <p>表所在的数据库名。</p>
|
|
29720
|
+
:type TableSchema: str
|
|
29721
|
+
"""
|
|
29722
|
+
self._TableName = None
|
|
29723
|
+
self._TableSchema = None
|
|
29724
|
+
|
|
29725
|
+
@property
|
|
29726
|
+
def TableName(self):
|
|
29727
|
+
r"""<p>表名。</p>
|
|
29728
|
+
:rtype: str
|
|
29729
|
+
"""
|
|
29730
|
+
return self._TableName
|
|
29731
|
+
|
|
29732
|
+
@TableName.setter
|
|
29733
|
+
def TableName(self, TableName):
|
|
29734
|
+
self._TableName = TableName
|
|
29735
|
+
|
|
29736
|
+
@property
|
|
29737
|
+
def TableSchema(self):
|
|
29738
|
+
r"""<p>表所在的数据库名。</p>
|
|
29739
|
+
:rtype: str
|
|
29740
|
+
"""
|
|
29741
|
+
return self._TableSchema
|
|
29742
|
+
|
|
29743
|
+
@TableSchema.setter
|
|
29744
|
+
def TableSchema(self, TableSchema):
|
|
29745
|
+
self._TableSchema = TableSchema
|
|
29746
|
+
|
|
29747
|
+
|
|
29748
|
+
def _deserialize(self, params):
|
|
29749
|
+
self._TableName = params.get("TableName")
|
|
29750
|
+
self._TableSchema = params.get("TableSchema")
|
|
29751
|
+
memeber_set = set(params.keys())
|
|
29752
|
+
for name, value in vars(self).items():
|
|
29753
|
+
property_name = name[1:]
|
|
29754
|
+
if property_name in memeber_set:
|
|
29755
|
+
memeber_set.remove(property_name)
|
|
29756
|
+
if len(memeber_set) > 0:
|
|
29757
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
29758
|
+
|
|
29759
|
+
|
|
29760
|
+
|
|
29356
29761
|
class SqlServerSpaceObjectItem(AbstractModel):
|
|
29357
29762
|
r"""SQL Server 产品空间对象项(单表明细)。字段命名与 MySQL 同构(TableSchema/TableName/Engine/TableRows/TotalLength/DataLength/IndexLength/DataFree,单位 MB),无 FragRatio / PhysicalFileSize。
|
|
29358
29763
|
|
|
@@ -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.206
|
|
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.206
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=
|
|
1
|
+
tencentcloud/__init__.py,sha256=rplc9-BE59lNdtDmMGLBBkqktuse_VKOGZFiFKPX7GE,630
|
|
2
2
|
tencentcloud/dbbrain/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
tencentcloud/dbbrain/v20191016/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
4
|
tencentcloud/dbbrain/v20191016/dbbrain_client.py,sha256=D8k7Ql1i2UiOCXIfggsfn7IqwcMkuHYuo2nddMygKEI,28717
|
|
@@ -6,11 +6,11 @@ tencentcloud/dbbrain/v20191016/dbbrain_client_async.py,sha256=yEPUVmQLNQSYIn2XUf
|
|
|
6
6
|
tencentcloud/dbbrain/v20191016/errorcodes.py,sha256=tpmfN_Xls8IKwIUcXWGH6yQUndtIjH7zeAQYL2A8NDc,1625
|
|
7
7
|
tencentcloud/dbbrain/v20191016/models.py,sha256=BNLnWNNu2-UhQ8rHtA4Np--o4YTQWdtDuHMnDDn8hXk,250045
|
|
8
8
|
tencentcloud/dbbrain/v20210527/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
|
-
tencentcloud/dbbrain/v20210527/dbbrain_client.py,sha256=
|
|
10
|
-
tencentcloud/dbbrain/v20210527/dbbrain_client_async.py,sha256=
|
|
9
|
+
tencentcloud/dbbrain/v20210527/dbbrain_client.py,sha256=FuEgN-UyP-eMbalI89dXFHDNcgzcJc8pbKjVXwB4GlE,104932
|
|
10
|
+
tencentcloud/dbbrain/v20210527/dbbrain_client_async.py,sha256=BhtXkhmrmdLnG1mO4-ukIOOWkoHCkjqmlk6UB44UqlA,72855
|
|
11
11
|
tencentcloud/dbbrain/v20210527/errorcodes.py,sha256=qKBLscVk52L7reUupTqDJu5sH-DT0eEMl8OZBnCH8lk,3180
|
|
12
|
-
tencentcloud/dbbrain/v20210527/models.py,sha256=
|
|
13
|
-
tencentcloud_sdk_python_dbbrain-3.1.
|
|
14
|
-
tencentcloud_sdk_python_dbbrain-3.1.
|
|
15
|
-
tencentcloud_sdk_python_dbbrain-3.1.
|
|
16
|
-
tencentcloud_sdk_python_dbbrain-3.1.
|
|
12
|
+
tencentcloud/dbbrain/v20210527/models.py,sha256=8AvMpzsMcO-WFYYl4MoERe_I7VcCiDpMaDGWWn1YFmo,1061572
|
|
13
|
+
tencentcloud_sdk_python_dbbrain-3.1.206.dist-info/METADATA,sha256=jR6FdaVcm04jCKhtuAOwvjUaCCQDLlKZf4_lYHES2o4,1517
|
|
14
|
+
tencentcloud_sdk_python_dbbrain-3.1.206.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
15
|
+
tencentcloud_sdk_python_dbbrain-3.1.206.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
16
|
+
tencentcloud_sdk_python_dbbrain-3.1.206.dist-info/RECORD,,
|
|
File without changes
|