tencentcloud-sdk-python-dbbrain 3.0.1351__tar.gz → 3.0.1352__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 (20) hide show
  1. {tencentcloud-sdk-python-dbbrain-3.0.1351 → tencentcloud-sdk-python-dbbrain-3.0.1352}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-dbbrain-3.0.1351 → tencentcloud-sdk-python-dbbrain-3.0.1352}/setup.py +1 -1
  3. {tencentcloud-sdk-python-dbbrain-3.0.1351 → tencentcloud-sdk-python-dbbrain-3.0.1352}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-dbbrain-3.0.1351 → tencentcloud-sdk-python-dbbrain-3.0.1352}/tencentcloud/dbbrain/v20191016/models.py +228 -10
  5. {tencentcloud-sdk-python-dbbrain-3.0.1351 → tencentcloud-sdk-python-dbbrain-3.0.1352}/tencentcloud/dbbrain/v20210527/models.py +228 -10
  6. {tencentcloud-sdk-python-dbbrain-3.0.1351 → tencentcloud-sdk-python-dbbrain-3.0.1352}/tencentcloud_sdk_python_dbbrain.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-dbbrain-3.0.1352/tencentcloud_sdk_python_dbbrain.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-dbbrain-3.0.1351/tencentcloud_sdk_python_dbbrain.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-dbbrain-3.0.1351 → tencentcloud-sdk-python-dbbrain-3.0.1352}/README.rst +0 -0
  10. {tencentcloud-sdk-python-dbbrain-3.0.1351 → tencentcloud-sdk-python-dbbrain-3.0.1352}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-dbbrain-3.0.1351 → tencentcloud-sdk-python-dbbrain-3.0.1352}/tencentcloud/dbbrain/__init__.py +0 -0
  12. {tencentcloud-sdk-python-dbbrain-3.0.1351 → tencentcloud-sdk-python-dbbrain-3.0.1352}/tencentcloud/dbbrain/v20191016/__init__.py +0 -0
  13. {tencentcloud-sdk-python-dbbrain-3.0.1351 → tencentcloud-sdk-python-dbbrain-3.0.1352}/tencentcloud/dbbrain/v20191016/dbbrain_client.py +0 -0
  14. {tencentcloud-sdk-python-dbbrain-3.0.1351 → tencentcloud-sdk-python-dbbrain-3.0.1352}/tencentcloud/dbbrain/v20191016/errorcodes.py +0 -0
  15. {tencentcloud-sdk-python-dbbrain-3.0.1351 → tencentcloud-sdk-python-dbbrain-3.0.1352}/tencentcloud/dbbrain/v20210527/__init__.py +0 -0
  16. {tencentcloud-sdk-python-dbbrain-3.0.1351 → tencentcloud-sdk-python-dbbrain-3.0.1352}/tencentcloud/dbbrain/v20210527/dbbrain_client.py +0 -0
  17. {tencentcloud-sdk-python-dbbrain-3.0.1351 → tencentcloud-sdk-python-dbbrain-3.0.1352}/tencentcloud/dbbrain/v20210527/errorcodes.py +0 -0
  18. {tencentcloud-sdk-python-dbbrain-3.0.1351 → tencentcloud-sdk-python-dbbrain-3.0.1352}/tencentcloud_sdk_python_dbbrain.egg-info/SOURCES.txt +0 -0
  19. {tencentcloud-sdk-python-dbbrain-3.0.1351 → tencentcloud-sdk-python-dbbrain-3.0.1352}/tencentcloud_sdk_python_dbbrain.egg-info/dependency_links.txt +0 -0
  20. {tencentcloud-sdk-python-dbbrain-3.0.1351 → tencentcloud-sdk-python-dbbrain-3.0.1352}/tencentcloud_sdk_python_dbbrain.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-dbbrain
3
- Version: 3.0.1351
3
+ Version: 3.0.1352
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
@@ -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.0.1351"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1352"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Dbbrain SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1351'
17
+ __version__ = '3.0.1352'
@@ -212,7 +212,7 @@ class CreateDBDiagReportTaskRequest(AbstractModel):
212
212
  :type ContactPerson: list of int
213
213
  :param _ContactGroup: 接收邮件的联系组ID数组。
214
214
  :type ContactGroup: list of int
215
- :param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认值为"mysql"。
215
+ :param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,默认值为"mysql"。
216
216
  :type Product: str
217
217
  """
218
218
  self._InstanceId = None
@@ -291,7 +291,7 @@ class CreateDBDiagReportTaskRequest(AbstractModel):
291
291
 
292
292
  @property
293
293
  def Product(self):
294
- """服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认值为"mysql"。
294
+ """服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,默认值为"mysql"。
295
295
  :rtype: str
296
296
  """
297
297
  return self._Product
@@ -373,7 +373,7 @@ class CreateDBDiagReportUrlRequest(AbstractModel):
373
373
  :type InstanceId: str
374
374
  :param _AsyncRequestId: 健康报告相应的任务ID,可通过DescribeDBDiagReportTasks查询。
375
375
  :type AsyncRequestId: int
376
- :param _Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
376
+ :param _Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
377
377
  :type Product: str
378
378
  """
379
379
  self._InstanceId = None
@@ -404,7 +404,7 @@ class CreateDBDiagReportUrlRequest(AbstractModel):
404
404
 
405
405
  @property
406
406
  def Product(self):
407
- """服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
407
+ """服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
408
408
  :rtype: str
409
409
  """
410
410
  return self._Product
@@ -1225,7 +1225,7 @@ class DescribeDBDiagEventRequest(AbstractModel):
1225
1225
  :type InstanceId: str
1226
1226
  :param _EventId: 事件 ID 。通过“获取实例诊断历史DescribeDBDiagHistory”获取。
1227
1227
  :type EventId: int
1228
- :param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
1228
+ :param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
1229
1229
  :type Product: str
1230
1230
  """
1231
1231
  self._InstanceId = None
@@ -1256,7 +1256,7 @@ class DescribeDBDiagEventRequest(AbstractModel):
1256
1256
 
1257
1257
  @property
1258
1258
  def Product(self):
1259
- """服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
1259
+ """服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
1260
1260
  :rtype: str
1261
1261
  """
1262
1262
  return self._Product
@@ -1615,7 +1615,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
1615
1615
  :type EndTime: str
1616
1616
  :param _InstanceIds: 实例ID数组,用于筛选指定实例的任务列表。
1617
1617
  :type InstanceIds: list of str
1618
- :param _Sources: 任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 定时生成;"MANUAL" - 手动触发。
1618
+ :param _Sources: 任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 计划任务;"MANUAL" - 手动触发。
1619
1619
  :type Sources: list of str
1620
1620
  :param _HealthLevels: 报告的健康等级,支持的取值包括:"HEALTH" - 健康;"SUB_HEALTH" - 亚健康;"RISK" - 危险;"HIGH_RISK" - 高危。
1621
1621
  :type HealthLevels: str
@@ -1625,7 +1625,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
1625
1625
  :type Offset: int
1626
1626
  :param _Limit: 返回数量,默认20。
1627
1627
  :type Limit: int
1628
- :param _Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
1628
+ :param _Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL;"redis" - 云数据库 Redis,默认为"mysql"。
1629
1629
  :type Product: str
1630
1630
  """
1631
1631
  self._StartTime = None
@@ -1673,7 +1673,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
1673
1673
 
1674
1674
  @property
1675
1675
  def Sources(self):
1676
- """任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 定时生成;"MANUAL" - 手动触发。
1676
+ """任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 计划任务;"MANUAL" - 手动触发。
1677
1677
  :rtype: list of str
1678
1678
  """
1679
1679
  return self._Sources
@@ -1728,7 +1728,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
1728
1728
 
1729
1729
  @property
1730
1730
  def Product(self):
1731
- """服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
1731
+ """服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL;"redis" - 云数据库 Redis,默认为"mysql"。
1732
1732
  :rtype: str
1733
1733
  """
1734
1734
  return self._Product
@@ -4725,11 +4725,14 @@ class HealthStatus(AbstractModel):
4725
4725
  :type ScoreLost: int
4726
4726
  :param _ScoreDetails: 扣分详情。
4727
4727
  :type ScoreDetails: list of ScoreDetail
4728
+ :param _HealthLevelVersion: 健康等级版本,默认为V1
4729
+ :type HealthLevelVersion: str
4728
4730
  """
4729
4731
  self._HealthScore = None
4730
4732
  self._HealthLevel = None
4731
4733
  self._ScoreLost = None
4732
4734
  self._ScoreDetails = None
4735
+ self._HealthLevelVersion = None
4733
4736
 
4734
4737
  @property
4735
4738
  def HealthScore(self):
@@ -4775,6 +4778,17 @@ class HealthStatus(AbstractModel):
4775
4778
  def ScoreDetails(self, ScoreDetails):
4776
4779
  self._ScoreDetails = ScoreDetails
4777
4780
 
4781
+ @property
4782
+ def HealthLevelVersion(self):
4783
+ """健康等级版本,默认为V1
4784
+ :rtype: str
4785
+ """
4786
+ return self._HealthLevelVersion
4787
+
4788
+ @HealthLevelVersion.setter
4789
+ def HealthLevelVersion(self, HealthLevelVersion):
4790
+ self._HealthLevelVersion = HealthLevelVersion
4791
+
4778
4792
 
4779
4793
  def _deserialize(self, params):
4780
4794
  self._HealthScore = params.get("HealthScore")
@@ -4786,6 +4800,7 @@ class HealthStatus(AbstractModel):
4786
4800
  obj = ScoreDetail()
4787
4801
  obj._deserialize(item)
4788
4802
  self._ScoreDetails.append(obj)
4803
+ self._HealthLevelVersion = params.get("HealthLevelVersion")
4789
4804
  memeber_set = set(params.keys())
4790
4805
  for name, value in vars(self).items():
4791
4806
  property_name = name[1:]
@@ -4815,6 +4830,24 @@ class InstanceBasicInfo(AbstractModel):
4815
4830
  :type Product: str
4816
4831
  :param _EngineVersion: 实例引擎版本。
4817
4832
  :type EngineVersion: str
4833
+ :param _Cpu: CPU数量,对于Redis为0。
4834
+ :type Cpu: int
4835
+ :param _DeployMode: 实例部署模式。
4836
+ :type DeployMode: str
4837
+ :param _InstanceConf: 实例内存配置。
4838
+ :type InstanceConf: :class:`tencentcloud.dbbrain.v20191016.models.RedisInstanceConf`
4839
+ :param _IsSupported: DBbrain是否支持该实例。
4840
+ :type IsSupported: bool
4841
+ :param _Memory: 实例内存,单位MB。
4842
+ :type Memory: int
4843
+ :param _Region: 实例地域。
4844
+ :type Region: str
4845
+ :param _UniqSubnetId: 实例子网统一ID,对于redis为空字符串。
4846
+ :type UniqSubnetId: str
4847
+ :param _UniqVpcId: 实例私有网络统一ID,对于redis为空字符串。
4848
+ :type UniqVpcId: str
4849
+ :param _Volume: 实例磁盘容量,对于Redis为0。
4850
+ :type Volume: int
4818
4851
  """
4819
4852
  self._InstanceId = None
4820
4853
  self._InstanceName = None
@@ -4822,6 +4855,15 @@ class InstanceBasicInfo(AbstractModel):
4822
4855
  self._Vport = None
4823
4856
  self._Product = None
4824
4857
  self._EngineVersion = None
4858
+ self._Cpu = None
4859
+ self._DeployMode = None
4860
+ self._InstanceConf = None
4861
+ self._IsSupported = None
4862
+ self._Memory = None
4863
+ self._Region = None
4864
+ self._UniqSubnetId = None
4865
+ self._UniqVpcId = None
4866
+ self._Volume = None
4825
4867
 
4826
4868
  @property
4827
4869
  def InstanceId(self):
@@ -4889,6 +4931,105 @@ class InstanceBasicInfo(AbstractModel):
4889
4931
  def EngineVersion(self, EngineVersion):
4890
4932
  self._EngineVersion = EngineVersion
4891
4933
 
4934
+ @property
4935
+ def Cpu(self):
4936
+ """CPU数量,对于Redis为0。
4937
+ :rtype: int
4938
+ """
4939
+ return self._Cpu
4940
+
4941
+ @Cpu.setter
4942
+ def Cpu(self, Cpu):
4943
+ self._Cpu = Cpu
4944
+
4945
+ @property
4946
+ def DeployMode(self):
4947
+ """实例部署模式。
4948
+ :rtype: str
4949
+ """
4950
+ return self._DeployMode
4951
+
4952
+ @DeployMode.setter
4953
+ def DeployMode(self, DeployMode):
4954
+ self._DeployMode = DeployMode
4955
+
4956
+ @property
4957
+ def InstanceConf(self):
4958
+ """实例内存配置。
4959
+ :rtype: :class:`tencentcloud.dbbrain.v20191016.models.RedisInstanceConf`
4960
+ """
4961
+ return self._InstanceConf
4962
+
4963
+ @InstanceConf.setter
4964
+ def InstanceConf(self, InstanceConf):
4965
+ self._InstanceConf = InstanceConf
4966
+
4967
+ @property
4968
+ def IsSupported(self):
4969
+ """DBbrain是否支持该实例。
4970
+ :rtype: bool
4971
+ """
4972
+ return self._IsSupported
4973
+
4974
+ @IsSupported.setter
4975
+ def IsSupported(self, IsSupported):
4976
+ self._IsSupported = IsSupported
4977
+
4978
+ @property
4979
+ def Memory(self):
4980
+ """实例内存,单位MB。
4981
+ :rtype: int
4982
+ """
4983
+ return self._Memory
4984
+
4985
+ @Memory.setter
4986
+ def Memory(self, Memory):
4987
+ self._Memory = Memory
4988
+
4989
+ @property
4990
+ def Region(self):
4991
+ """实例地域。
4992
+ :rtype: str
4993
+ """
4994
+ return self._Region
4995
+
4996
+ @Region.setter
4997
+ def Region(self, Region):
4998
+ self._Region = Region
4999
+
5000
+ @property
5001
+ def UniqSubnetId(self):
5002
+ """实例子网统一ID,对于redis为空字符串。
5003
+ :rtype: str
5004
+ """
5005
+ return self._UniqSubnetId
5006
+
5007
+ @UniqSubnetId.setter
5008
+ def UniqSubnetId(self, UniqSubnetId):
5009
+ self._UniqSubnetId = UniqSubnetId
5010
+
5011
+ @property
5012
+ def UniqVpcId(self):
5013
+ """实例私有网络统一ID,对于redis为空字符串。
5014
+ :rtype: str
5015
+ """
5016
+ return self._UniqVpcId
5017
+
5018
+ @UniqVpcId.setter
5019
+ def UniqVpcId(self, UniqVpcId):
5020
+ self._UniqVpcId = UniqVpcId
5021
+
5022
+ @property
5023
+ def Volume(self):
5024
+ """实例磁盘容量,对于Redis为0。
5025
+ :rtype: int
5026
+ """
5027
+ return self._Volume
5028
+
5029
+ @Volume.setter
5030
+ def Volume(self, Volume):
5031
+ self._Volume = Volume
5032
+
4892
5033
 
4893
5034
  def _deserialize(self, params):
4894
5035
  self._InstanceId = params.get("InstanceId")
@@ -4897,6 +5038,17 @@ class InstanceBasicInfo(AbstractModel):
4897
5038
  self._Vport = params.get("Vport")
4898
5039
  self._Product = params.get("Product")
4899
5040
  self._EngineVersion = params.get("EngineVersion")
5041
+ self._Cpu = params.get("Cpu")
5042
+ self._DeployMode = params.get("DeployMode")
5043
+ if params.get("InstanceConf") is not None:
5044
+ self._InstanceConf = RedisInstanceConf()
5045
+ self._InstanceConf._deserialize(params.get("InstanceConf"))
5046
+ self._IsSupported = params.get("IsSupported")
5047
+ self._Memory = params.get("Memory")
5048
+ self._Region = params.get("Region")
5049
+ self._UniqSubnetId = params.get("UniqSubnetId")
5050
+ self._UniqVpcId = params.get("UniqVpcId")
5051
+ self._Volume = params.get("Volume")
4900
5052
  memeber_set = set(params.keys())
4901
5053
  for name, value in vars(self).items():
4902
5054
  property_name = name[1:]
@@ -6066,6 +6218,72 @@ class ProfileInfo(AbstractModel):
6066
6218
 
6067
6219
 
6068
6220
 
6221
+ class RedisInstanceConf(AbstractModel):
6222
+ """Redis实例内存配置参数
6223
+
6224
+ """
6225
+
6226
+ def __init__(self):
6227
+ r"""
6228
+ :param _ReplicasNum: 副本数量
6229
+ :type ReplicasNum: str
6230
+ :param _ShardNum: 分片数量
6231
+ :type ShardNum: str
6232
+ :param _ShardSize: 分片内存大小,单位MB
6233
+ :type ShardSize: str
6234
+ """
6235
+ self._ReplicasNum = None
6236
+ self._ShardNum = None
6237
+ self._ShardSize = None
6238
+
6239
+ @property
6240
+ def ReplicasNum(self):
6241
+ """副本数量
6242
+ :rtype: str
6243
+ """
6244
+ return self._ReplicasNum
6245
+
6246
+ @ReplicasNum.setter
6247
+ def ReplicasNum(self, ReplicasNum):
6248
+ self._ReplicasNum = ReplicasNum
6249
+
6250
+ @property
6251
+ def ShardNum(self):
6252
+ """分片数量
6253
+ :rtype: str
6254
+ """
6255
+ return self._ShardNum
6256
+
6257
+ @ShardNum.setter
6258
+ def ShardNum(self, ShardNum):
6259
+ self._ShardNum = ShardNum
6260
+
6261
+ @property
6262
+ def ShardSize(self):
6263
+ """分片内存大小,单位MB
6264
+ :rtype: str
6265
+ """
6266
+ return self._ShardSize
6267
+
6268
+ @ShardSize.setter
6269
+ def ShardSize(self, ShardSize):
6270
+ self._ShardSize = ShardSize
6271
+
6272
+
6273
+ def _deserialize(self, params):
6274
+ self._ReplicasNum = params.get("ReplicasNum")
6275
+ self._ShardNum = params.get("ShardNum")
6276
+ self._ShardSize = params.get("ShardSize")
6277
+ memeber_set = set(params.keys())
6278
+ for name, value in vars(self).items():
6279
+ property_name = name[1:]
6280
+ if property_name in memeber_set:
6281
+ memeber_set.remove(property_name)
6282
+ if len(memeber_set) > 0:
6283
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
6284
+
6285
+
6286
+
6069
6287
  class SchemaItem(AbstractModel):
6070
6288
  """SchemaItem数组
6071
6289
 
@@ -2424,7 +2424,7 @@ class CreateDBDiagReportTaskRequest(AbstractModel):
2424
2424
  :type ContactPerson: list of int
2425
2425
  :param _ContactGroup: 接收邮件的联系组ID数组。
2426
2426
  :type ContactGroup: list of int
2427
- :param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认值为"mysql"。
2427
+ :param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,默认值为"mysql"。
2428
2428
  :type Product: str
2429
2429
  """
2430
2430
  self._InstanceId = None
@@ -2503,7 +2503,7 @@ class CreateDBDiagReportTaskRequest(AbstractModel):
2503
2503
 
2504
2504
  @property
2505
2505
  def Product(self):
2506
- """服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认值为"mysql"。
2506
+ """服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,默认值为"mysql"。
2507
2507
  :rtype: str
2508
2508
  """
2509
2509
  return self._Product
@@ -2585,7 +2585,7 @@ class CreateDBDiagReportUrlRequest(AbstractModel):
2585
2585
  :type InstanceId: str
2586
2586
  :param _AsyncRequestId: 健康报告相应的任务ID,可通过DescribeDBDiagReportTasks查询。
2587
2587
  :type AsyncRequestId: int
2588
- :param _Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
2588
+ :param _Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
2589
2589
  :type Product: str
2590
2590
  """
2591
2591
  self._InstanceId = None
@@ -2616,7 +2616,7 @@ class CreateDBDiagReportUrlRequest(AbstractModel):
2616
2616
 
2617
2617
  @property
2618
2618
  def Product(self):
2619
- """服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
2619
+ """服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
2620
2620
  :rtype: str
2621
2621
  """
2622
2622
  return self._Product
@@ -5387,7 +5387,7 @@ class DescribeDBDiagEventRequest(AbstractModel):
5387
5387
  :type InstanceId: str
5388
5388
  :param _EventId: 事件 ID 。通过“获取实例诊断历史DescribeDBDiagHistory”获取。
5389
5389
  :type EventId: int
5390
- :param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
5390
+ :param _Product: 服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
5391
5391
  :type Product: str
5392
5392
  """
5393
5393
  self._InstanceId = None
@@ -5418,7 +5418,7 @@ class DescribeDBDiagEventRequest(AbstractModel):
5418
5418
 
5419
5419
  @property
5420
5420
  def Product(self):
5421
- """服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,默认为"mysql"。
5421
+ """服务产品类型,支持值包括: "mysql" - 云数据库 MySQL, "cynosdb" - 云数据库 CynosDB for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
5422
5422
  :rtype: str
5423
5423
  """
5424
5424
  return self._Product
@@ -5966,7 +5966,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
5966
5966
  :type EndTime: str
5967
5967
  :param _InstanceIds: 实例ID数组,用于筛选指定实例的任务列表。
5968
5968
  :type InstanceIds: list of str
5969
- :param _Sources: 任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 定时生成;"MANUAL" - 手动触发。
5969
+ :param _Sources: 任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 计划任务;"MANUAL" - 手动触发。
5970
5970
  :type Sources: list of str
5971
5971
  :param _HealthLevels: 报告的健康等级,支持的取值包括:"HEALTH" - 健康;"SUB_HEALTH" - 亚健康;"RISK" - 危险;"HIGH_RISK" - 高危。
5972
5972
  :type HealthLevels: str
@@ -5976,7 +5976,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
5976
5976
  :type Offset: int
5977
5977
  :param _Limit: 返回数量,默认20,最大值为100。
5978
5978
  :type Limit: int
5979
- :param _Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
5979
+ :param _Product: 服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
5980
5980
  :type Product: str
5981
5981
  """
5982
5982
  self._StartTime = None
@@ -6024,7 +6024,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
6024
6024
 
6025
6025
  @property
6026
6026
  def Sources(self):
6027
- """任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 定时生成;"MANUAL" - 手动触发。
6027
+ """任务的触发来源,支持的取值包括:"DAILY_INSPECTION" - 实例巡检;"SCHEDULED" - 计划任务;"MANUAL" - 手动触发。
6028
6028
  :rtype: list of str
6029
6029
  """
6030
6030
  return self._Sources
@@ -6079,7 +6079,7 @@ class DescribeDBDiagReportTasksRequest(AbstractModel):
6079
6079
 
6080
6080
  @property
6081
6081
  def Product(self):
6082
- """服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,默认为"mysql"。
6082
+ """服务产品类型,支持值:"mysql" - 云数据库 MySQL;"cynosdb" - 云数据库 TDSQL-C for MySQL,"redis" - 云数据库 Redis,默认为"mysql"。
6083
6083
  :rtype: str
6084
6084
  """
6085
6085
  return self._Product
@@ -12435,11 +12435,14 @@ class HealthStatus(AbstractModel):
12435
12435
  :type ScoreLost: int
12436
12436
  :param _ScoreDetails: 扣分详情。
12437
12437
  :type ScoreDetails: list of ScoreDetail
12438
+ :param _HealthLevelVersion: 健康等级版本,默认为"V1"
12439
+ :type HealthLevelVersion: str
12438
12440
  """
12439
12441
  self._HealthScore = None
12440
12442
  self._HealthLevel = None
12441
12443
  self._ScoreLost = None
12442
12444
  self._ScoreDetails = None
12445
+ self._HealthLevelVersion = None
12443
12446
 
12444
12447
  @property
12445
12448
  def HealthScore(self):
@@ -12485,6 +12488,17 @@ class HealthStatus(AbstractModel):
12485
12488
  def ScoreDetails(self, ScoreDetails):
12486
12489
  self._ScoreDetails = ScoreDetails
12487
12490
 
12491
+ @property
12492
+ def HealthLevelVersion(self):
12493
+ """健康等级版本,默认为"V1"
12494
+ :rtype: str
12495
+ """
12496
+ return self._HealthLevelVersion
12497
+
12498
+ @HealthLevelVersion.setter
12499
+ def HealthLevelVersion(self, HealthLevelVersion):
12500
+ self._HealthLevelVersion = HealthLevelVersion
12501
+
12488
12502
 
12489
12503
  def _deserialize(self, params):
12490
12504
  self._HealthScore = params.get("HealthScore")
@@ -12496,6 +12510,7 @@ class HealthStatus(AbstractModel):
12496
12510
  obj = ScoreDetail()
12497
12511
  obj._deserialize(item)
12498
12512
  self._ScoreDetails.append(obj)
12513
+ self._HealthLevelVersion = params.get("HealthLevelVersion")
12499
12514
  memeber_set = set(params.keys())
12500
12515
  for name, value in vars(self).items():
12501
12516
  property_name = name[1:]
@@ -12747,6 +12762,24 @@ class InstanceBasicInfo(AbstractModel):
12747
12762
  :type Product: str
12748
12763
  :param _EngineVersion: 实例引擎版本。
12749
12764
  :type EngineVersion: str
12765
+ :param _Cpu: CPU数量,对于Redis为0。
12766
+ :type Cpu: int
12767
+ :param _DeployMode: 实例部署模式。
12768
+ :type DeployMode: str
12769
+ :param _InstanceConf: 实例内存配置。
12770
+ :type InstanceConf: :class:`tencentcloud.dbbrain.v20210527.models.RedisInstanceConf`
12771
+ :param _IsSupported: DBbrain是否支持该实例。
12772
+ :type IsSupported: bool
12773
+ :param _Memory: 实例内存,单位MB。
12774
+ :type Memory: int
12775
+ :param _Region: 实例地域。
12776
+ :type Region: str
12777
+ :param _UniqSubnetId: 实例子网统一ID,对于redis为空字符串。
12778
+ :type UniqSubnetId: str
12779
+ :param _UniqVpcId: 实例私有网络统一ID,对于redis为空字符串。
12780
+ :type UniqVpcId: str
12781
+ :param _Volume: 实例磁盘容量,对于Redis为0。
12782
+ :type Volume: int
12750
12783
  """
12751
12784
  self._InstanceId = None
12752
12785
  self._InstanceName = None
@@ -12754,6 +12787,15 @@ class InstanceBasicInfo(AbstractModel):
12754
12787
  self._Vport = None
12755
12788
  self._Product = None
12756
12789
  self._EngineVersion = None
12790
+ self._Cpu = None
12791
+ self._DeployMode = None
12792
+ self._InstanceConf = None
12793
+ self._IsSupported = None
12794
+ self._Memory = None
12795
+ self._Region = None
12796
+ self._UniqSubnetId = None
12797
+ self._UniqVpcId = None
12798
+ self._Volume = None
12757
12799
 
12758
12800
  @property
12759
12801
  def InstanceId(self):
@@ -12821,6 +12863,105 @@ class InstanceBasicInfo(AbstractModel):
12821
12863
  def EngineVersion(self, EngineVersion):
12822
12864
  self._EngineVersion = EngineVersion
12823
12865
 
12866
+ @property
12867
+ def Cpu(self):
12868
+ """CPU数量,对于Redis为0。
12869
+ :rtype: int
12870
+ """
12871
+ return self._Cpu
12872
+
12873
+ @Cpu.setter
12874
+ def Cpu(self, Cpu):
12875
+ self._Cpu = Cpu
12876
+
12877
+ @property
12878
+ def DeployMode(self):
12879
+ """实例部署模式。
12880
+ :rtype: str
12881
+ """
12882
+ return self._DeployMode
12883
+
12884
+ @DeployMode.setter
12885
+ def DeployMode(self, DeployMode):
12886
+ self._DeployMode = DeployMode
12887
+
12888
+ @property
12889
+ def InstanceConf(self):
12890
+ """实例内存配置。
12891
+ :rtype: :class:`tencentcloud.dbbrain.v20210527.models.RedisInstanceConf`
12892
+ """
12893
+ return self._InstanceConf
12894
+
12895
+ @InstanceConf.setter
12896
+ def InstanceConf(self, InstanceConf):
12897
+ self._InstanceConf = InstanceConf
12898
+
12899
+ @property
12900
+ def IsSupported(self):
12901
+ """DBbrain是否支持该实例。
12902
+ :rtype: bool
12903
+ """
12904
+ return self._IsSupported
12905
+
12906
+ @IsSupported.setter
12907
+ def IsSupported(self, IsSupported):
12908
+ self._IsSupported = IsSupported
12909
+
12910
+ @property
12911
+ def Memory(self):
12912
+ """实例内存,单位MB。
12913
+ :rtype: int
12914
+ """
12915
+ return self._Memory
12916
+
12917
+ @Memory.setter
12918
+ def Memory(self, Memory):
12919
+ self._Memory = Memory
12920
+
12921
+ @property
12922
+ def Region(self):
12923
+ """实例地域。
12924
+ :rtype: str
12925
+ """
12926
+ return self._Region
12927
+
12928
+ @Region.setter
12929
+ def Region(self, Region):
12930
+ self._Region = Region
12931
+
12932
+ @property
12933
+ def UniqSubnetId(self):
12934
+ """实例子网统一ID,对于redis为空字符串。
12935
+ :rtype: str
12936
+ """
12937
+ return self._UniqSubnetId
12938
+
12939
+ @UniqSubnetId.setter
12940
+ def UniqSubnetId(self, UniqSubnetId):
12941
+ self._UniqSubnetId = UniqSubnetId
12942
+
12943
+ @property
12944
+ def UniqVpcId(self):
12945
+ """实例私有网络统一ID,对于redis为空字符串。
12946
+ :rtype: str
12947
+ """
12948
+ return self._UniqVpcId
12949
+
12950
+ @UniqVpcId.setter
12951
+ def UniqVpcId(self, UniqVpcId):
12952
+ self._UniqVpcId = UniqVpcId
12953
+
12954
+ @property
12955
+ def Volume(self):
12956
+ """实例磁盘容量,对于Redis为0。
12957
+ :rtype: int
12958
+ """
12959
+ return self._Volume
12960
+
12961
+ @Volume.setter
12962
+ def Volume(self, Volume):
12963
+ self._Volume = Volume
12964
+
12824
12965
 
12825
12966
  def _deserialize(self, params):
12826
12967
  self._InstanceId = params.get("InstanceId")
@@ -12829,6 +12970,17 @@ class InstanceBasicInfo(AbstractModel):
12829
12970
  self._Vport = params.get("Vport")
12830
12971
  self._Product = params.get("Product")
12831
12972
  self._EngineVersion = params.get("EngineVersion")
12973
+ self._Cpu = params.get("Cpu")
12974
+ self._DeployMode = params.get("DeployMode")
12975
+ if params.get("InstanceConf") is not None:
12976
+ self._InstanceConf = RedisInstanceConf()
12977
+ self._InstanceConf._deserialize(params.get("InstanceConf"))
12978
+ self._IsSupported = params.get("IsSupported")
12979
+ self._Memory = params.get("Memory")
12980
+ self._Region = params.get("Region")
12981
+ self._UniqSubnetId = params.get("UniqSubnetId")
12982
+ self._UniqVpcId = params.get("UniqVpcId")
12983
+ self._Volume = params.get("Volume")
12832
12984
  memeber_set = set(params.keys())
12833
12985
  for name, value in vars(self).items():
12834
12986
  property_name = name[1:]
@@ -15923,6 +16075,72 @@ class RedisCmdInfo(AbstractModel):
15923
16075
 
15924
16076
 
15925
16077
 
16078
+ class RedisInstanceConf(AbstractModel):
16079
+ """Redis实例内存配置参数
16080
+
16081
+ """
16082
+
16083
+ def __init__(self):
16084
+ r"""
16085
+ :param _ReplicasNum: 副本数量
16086
+ :type ReplicasNum: str
16087
+ :param _ShardNum: 分片数量
16088
+ :type ShardNum: str
16089
+ :param _ShardSize: 分片内存大小,单位MB
16090
+ :type ShardSize: str
16091
+ """
16092
+ self._ReplicasNum = None
16093
+ self._ShardNum = None
16094
+ self._ShardSize = None
16095
+
16096
+ @property
16097
+ def ReplicasNum(self):
16098
+ """副本数量
16099
+ :rtype: str
16100
+ """
16101
+ return self._ReplicasNum
16102
+
16103
+ @ReplicasNum.setter
16104
+ def ReplicasNum(self, ReplicasNum):
16105
+ self._ReplicasNum = ReplicasNum
16106
+
16107
+ @property
16108
+ def ShardNum(self):
16109
+ """分片数量
16110
+ :rtype: str
16111
+ """
16112
+ return self._ShardNum
16113
+
16114
+ @ShardNum.setter
16115
+ def ShardNum(self, ShardNum):
16116
+ self._ShardNum = ShardNum
16117
+
16118
+ @property
16119
+ def ShardSize(self):
16120
+ """分片内存大小,单位MB
16121
+ :rtype: str
16122
+ """
16123
+ return self._ShardSize
16124
+
16125
+ @ShardSize.setter
16126
+ def ShardSize(self, ShardSize):
16127
+ self._ShardSize = ShardSize
16128
+
16129
+
16130
+ def _deserialize(self, params):
16131
+ self._ReplicasNum = params.get("ReplicasNum")
16132
+ self._ShardNum = params.get("ShardNum")
16133
+ self._ShardSize = params.get("ShardSize")
16134
+ memeber_set = set(params.keys())
16135
+ for name, value in vars(self).items():
16136
+ property_name = name[1:]
16137
+ if property_name in memeber_set:
16138
+ memeber_set.remove(property_name)
16139
+ if len(memeber_set) > 0:
16140
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
16141
+
16142
+
16143
+
15926
16144
  class RedisKeySpaceData(AbstractModel):
15927
16145
  """redis key空间信息。
15928
16146
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-dbbrain
3
- Version: 3.0.1351
3
+ Version: 3.0.1352
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1352
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1351