tencentcloud-sdk-python-dbbrain 3.1.177__py2.py3-none-any.whl → 3.1.181__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 CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.177'
17
+ __version__ = '3.1.181'
@@ -1843,6 +1843,29 @@ class DbbrainClient(AbstractClient):
1843
1843
  raise TencentCloudSDKException(type(e).__name__, str(e))
1844
1844
 
1845
1845
 
1846
+ def DescribeTopSpaceTablesV2(self, request):
1847
+ r"""表级空间 Top 对象查询(融合接口,多产品统一入口),按 SortBy 指定的排序字段返回实例内空间占用 Top N 的表/集合。支持产品:mysql(云数据库 MySQL)、cynosdb(TDSQL-C MySQL 版)、mongodb(云数据库 MongoDB)、postgres(云数据库 PostgreSQL)、dcdb(TDSQL MySQL 版)、tdsql(TDSQL)、mariadb(云数据库 MariaDB)。返回值根据产品类型返回对应字段:MySQL 系列返回 MysqlObjects,PostgreSQL 返回 PostgresObjects(PG 的 relation/bloat 字段与 MySQL 语义不同),MongoDB 返回 MongodbObjects。
1848
+
1849
+ :param request: Request instance for DescribeTopSpaceTablesV2.
1850
+ :type request: :class:`tencentcloud.dbbrain.v20210527.models.DescribeTopSpaceTablesV2Request`
1851
+ :rtype: :class:`tencentcloud.dbbrain.v20210527.models.DescribeTopSpaceTablesV2Response`
1852
+
1853
+ """
1854
+ try:
1855
+ params = request._serialize()
1856
+ headers = request.headers
1857
+ body = self.call("DescribeTopSpaceTablesV2", params, headers=headers)
1858
+ response = json.loads(body)
1859
+ model = models.DescribeTopSpaceTablesV2Response()
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 DescribeUserAutonomyProfile(self, request):
1847
1870
  r"""自治中心-终止自治任务(单次);注意: 接口调用需要加白名单。
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 DescribeTopSpaceTablesV2(
1451
+ self,
1452
+ request: models.DescribeTopSpaceTablesV2Request,
1453
+ opts: Dict = None,
1454
+ ) -> models.DescribeTopSpaceTablesV2Response:
1455
+ """
1456
+ 表级空间 Top 对象查询(融合接口,多产品统一入口),按 SortBy 指定的排序字段返回实例内空间占用 Top N 的表/集合。支持产品:mysql(云数据库 MySQL)、cynosdb(TDSQL-C MySQL 版)、mongodb(云数据库 MongoDB)、postgres(云数据库 PostgreSQL)、dcdb(TDSQL MySQL 版)、tdsql(TDSQL)、mariadb(云数据库 MariaDB)。返回值根据产品类型返回对应字段:MySQL 系列返回 MysqlObjects,PostgreSQL 返回 PostgresObjects(PG 的 relation/bloat 字段与 MySQL 语义不同),MongoDB 返回 MongodbObjects。
1457
+ """
1458
+
1459
+ kwargs = {}
1460
+ kwargs["action"] = "DescribeTopSpaceTablesV2"
1461
+ kwargs["params"] = request._serialize()
1462
+ kwargs["resp_cls"] = models.DescribeTopSpaceTablesV2Response
1463
+ kwargs["headers"] = request.headers
1464
+ kwargs["opts"] = opts or {}
1465
+
1466
+ return await self.call_and_deserialize(**kwargs)
1467
+
1450
1468
  async def DescribeUserAutonomyProfile(
1451
1469
  self,
1452
1470
  request: models.DescribeUserAutonomyProfileRequest,