tencentcloud-sdk-python 3.0.1351__py2.py3-none-any.whl → 3.0.1352__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/cls/v20201016/cls_client.py +92 -0
- tencentcloud/cls/v20201016/models.py +908 -26
- tencentcloud/cvm/v20170312/cvm_client.py +1 -1
- tencentcloud/cvm/v20170312/models.py +2 -6
- tencentcloud/dbbrain/v20191016/models.py +228 -10
- tencentcloud/dbbrain/v20210527/models.py +228 -10
- tencentcloud/dlc/v20210125/dlc_client.py +23 -0
- tencentcloud/dlc/v20210125/errorcodes.py +3 -0
- tencentcloud/dlc/v20210125/models.py +284 -0
- tencentcloud/ess/v20201111/models.py +6 -6
- tencentcloud/essbasic/v20210526/models.py +2 -2
- tencentcloud/gs/v20191118/models.py +35 -0
- tencentcloud/hai/v20230812/models.py +2 -18
- tencentcloud/iotexplorer/v20190423/models.py +92 -8
- tencentcloud/live/v20180801/models.py +4 -6
- tencentcloud/mps/v20190612/models.py +8 -8
- tencentcloud/mqtt/v20240516/models.py +89 -12
- tencentcloud/ocr/v20181119/models.py +143 -0
- tencentcloud/partners/v20180321/models.py +15 -0
- tencentcloud/tdmq/v20200217/models.py +45 -0
- tencentcloud/teo/v20220901/models.py +85 -12
- tencentcloud/trro/v20220325/models.py +992 -44
- tencentcloud/trro/v20220325/trro_client.py +117 -0
- tencentcloud/vdb/v20230616/models.py +1438 -40
- tencentcloud/vdb/v20230616/vdb_client.py +184 -0
- tencentcloud/vod/v20180717/models.py +15 -0
- tencentcloud/vod/v20240718/errorcodes.py +33 -0
- tencentcloud/vod/v20240718/models.py +1841 -0
- tencentcloud/vod/v20240718/vod_client.py +146 -0
- tencentcloud/wedata/v20210820/models.py +791 -0
- tencentcloud/wedata/v20210820/wedata_client.py +46 -0
- tencentcloud/weilingwith/v20230427/weilingwith_client.py +3 -1
- {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1352.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1352.dist-info}/RECORD +38 -38
- {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1352.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1352.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1352.dist-info}/top_level.txt +0 -0
@@ -1435,7 +1435,7 @@ class CvmClient(AbstractClient):
|
|
1435
1435
|
def ImportKeyPair(self, request):
|
1436
1436
|
"""本接口 (ImportKeyPair) 用于导入密钥对。
|
1437
1437
|
|
1438
|
-
* 本接口的功能是将密钥对导入到用户账户,并不会自动绑定到实例。如需绑定可以使用[
|
1438
|
+
* 本接口的功能是将密钥对导入到用户账户,并不会自动绑定到实例。如需绑定可以使用[AssociateInstancesKeyPairs](https://cloud.tencent.com/document/product/213/15698)接口。
|
1439
1439
|
* 需指定密钥对名称以及该密钥对的公钥文本。
|
1440
1440
|
* 如果用户只有私钥,可以通过 `SSL` 工具将私钥转换成公钥后再导入。
|
1441
1441
|
|
@@ -11166,9 +11166,7 @@ class ImportKeyPairRequest(AbstractModel):
|
|
11166
11166
|
r"""
|
11167
11167
|
:param _KeyName: 密钥对名称,可由数字,字母和下划线组成,长度不超过25个字符。
|
11168
11168
|
:type KeyName: str
|
11169
|
-
:param _ProjectId: 密钥对创建后所属的[项目](https://cloud.tencent.com/document/product/378/10861)ID。<br
|
11170
|
-
|
11171
|
-
如果是默认项目,直接填0就可以。
|
11169
|
+
:param _ProjectId: 密钥对创建后所属的[项目](https://cloud.tencent.com/document/product/378/10861)ID。<br>可以通过以下方式获取项目ID:<li>通过[项目列表](https://console.cloud.tencent.com/project)查询项目ID。</li><li>通过调用接口 [DescribeProjects](https://cloud.tencent.com/document/api/651/78725),取返回信息中的 `projectId ` 获取项目ID。</li>如果是默认项目,直接填0就可以。
|
11172
11170
|
:type ProjectId: int
|
11173
11171
|
:param _PublicKey: 密钥对的公钥内容,`OpenSSH RSA` 格式。
|
11174
11172
|
:type PublicKey: str
|
@@ -11193,9 +11191,7 @@ class ImportKeyPairRequest(AbstractModel):
|
|
11193
11191
|
|
11194
11192
|
@property
|
11195
11193
|
def ProjectId(self):
|
11196
|
-
"""密钥对创建后所属的[项目](https://cloud.tencent.com/document/product/378/10861)ID。<br
|
11197
|
-
|
11198
|
-
如果是默认项目,直接填0就可以。
|
11194
|
+
"""密钥对创建后所属的[项目](https://cloud.tencent.com/document/product/378/10861)ID。<br>可以通过以下方式获取项目ID:<li>通过[项目列表](https://console.cloud.tencent.com/project)查询项目ID。</li><li>通过调用接口 [DescribeProjects](https://cloud.tencent.com/document/api/651/78725),取返回信息中的 `projectId ` 获取项目ID。</li>如果是默认项目,直接填0就可以。
|
11199
11195
|
:rtype: int
|
11200
11196
|
"""
|
11201
11197
|
return self._ProjectId
|
@@ -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" -
|
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" -
|
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
|
|