tencentcloud-sdk-python-cynosdb 3.1.161__tar.gz → 3.1.164__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 (17) hide show
  1. {tencentcloud_sdk_python_cynosdb-3.1.161 → tencentcloud_sdk_python_cynosdb-3.1.164}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_cynosdb-3.1.161 → tencentcloud_sdk_python_cynosdb-3.1.164}/setup.py +1 -1
  3. {tencentcloud_sdk_python_cynosdb-3.1.161 → tencentcloud_sdk_python_cynosdb-3.1.164}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_cynosdb-3.1.161 → tencentcloud_sdk_python_cynosdb-3.1.164}/tencentcloud/cynosdb/v20190107/cynosdb_client.py +23 -0
  5. {tencentcloud_sdk_python_cynosdb-3.1.161 → tencentcloud_sdk_python_cynosdb-3.1.164}/tencentcloud/cynosdb/v20190107/cynosdb_client_async.py +18 -0
  6. {tencentcloud_sdk_python_cynosdb-3.1.161 → tencentcloud_sdk_python_cynosdb-3.1.164}/tencentcloud/cynosdb/v20190107/models.py +261 -2
  7. {tencentcloud_sdk_python_cynosdb-3.1.161 → tencentcloud_sdk_python_cynosdb-3.1.164}/tencentcloud_sdk_python_cynosdb.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_cynosdb-3.1.164/tencentcloud_sdk_python_cynosdb.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_cynosdb-3.1.161/tencentcloud_sdk_python_cynosdb.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_cynosdb-3.1.161 → tencentcloud_sdk_python_cynosdb-3.1.164}/README.rst +0 -0
  11. {tencentcloud_sdk_python_cynosdb-3.1.161 → tencentcloud_sdk_python_cynosdb-3.1.164}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_cynosdb-3.1.161 → tencentcloud_sdk_python_cynosdb-3.1.164}/tencentcloud/cynosdb/__init__.py +0 -0
  13. {tencentcloud_sdk_python_cynosdb-3.1.161 → tencentcloud_sdk_python_cynosdb-3.1.164}/tencentcloud/cynosdb/v20190107/__init__.py +0 -0
  14. {tencentcloud_sdk_python_cynosdb-3.1.161 → tencentcloud_sdk_python_cynosdb-3.1.164}/tencentcloud/cynosdb/v20190107/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_cynosdb-3.1.161 → tencentcloud_sdk_python_cynosdb-3.1.164}/tencentcloud_sdk_python_cynosdb.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_cynosdb-3.1.161 → tencentcloud_sdk_python_cynosdb-3.1.164}/tencentcloud_sdk_python_cynosdb.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_cynosdb-3.1.161 → tencentcloud_sdk_python_cynosdb-3.1.164}/tencentcloud_sdk_python_cynosdb.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cynosdb
3
- Version: 3.1.161
3
+ Version: 3.1.164
4
4
  Summary: Tencent Cloud Cynosdb 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.161
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.164
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-cynosdb',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.161,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.164,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Cynosdb SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.161'
17
+ __version__ = '3.1.164'
@@ -1958,6 +1958,29 @@ class CynosdbClient(AbstractClient):
1958
1958
  raise TencentCloudSDKException(type(e).__name__, str(e))
1959
1959
 
1960
1960
 
1961
+ def DescribeClusterStorageAutoExpand(self, request):
1962
+ r"""本接口(DescribeClusterStorageAutoExpand)用于查询自动库容配置。
1963
+
1964
+ :param request: Request instance for DescribeClusterStorageAutoExpand.
1965
+ :type request: :class:`tencentcloud.cynosdb.v20190107.models.DescribeClusterStorageAutoExpandRequest`
1966
+ :rtype: :class:`tencentcloud.cynosdb.v20190107.models.DescribeClusterStorageAutoExpandResponse`
1967
+
1968
+ """
1969
+ try:
1970
+ params = request._serialize()
1971
+ headers = request.headers
1972
+ body = self.call("DescribeClusterStorageAutoExpand", params, headers=headers)
1973
+ response = json.loads(body)
1974
+ model = models.DescribeClusterStorageAutoExpandResponse()
1975
+ model._deserialize(response["Response"])
1976
+ return model
1977
+ except Exception as e:
1978
+ if isinstance(e, TencentCloudSDKException):
1979
+ raise
1980
+ else:
1981
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1982
+
1983
+
1961
1984
  def DescribeClusterTransparentEncryptInfo(self, request):
1962
1985
  r"""查询集群透明加密信息
1963
1986
 
@@ -1537,6 +1537,24 @@ class CynosdbClient(AbstractClient):
1537
1537
 
1538
1538
  return await self.call_and_deserialize(**kwargs)
1539
1539
 
1540
+ async def DescribeClusterStorageAutoExpand(
1541
+ self,
1542
+ request: models.DescribeClusterStorageAutoExpandRequest,
1543
+ opts: Dict = None,
1544
+ ) -> models.DescribeClusterStorageAutoExpandResponse:
1545
+ """
1546
+ 本接口(DescribeClusterStorageAutoExpand)用于查询自动库容配置。
1547
+ """
1548
+
1549
+ kwargs = {}
1550
+ kwargs["action"] = "DescribeClusterStorageAutoExpand"
1551
+ kwargs["params"] = request._serialize()
1552
+ kwargs["resp_cls"] = models.DescribeClusterStorageAutoExpandResponse
1553
+ kwargs["headers"] = request.headers
1554
+ kwargs["opts"] = opts or {}
1555
+
1556
+ return await self.call_and_deserialize(**kwargs)
1557
+
1540
1558
  async def DescribeClusterTransparentEncryptInfo(
1541
1559
  self,
1542
1560
  request: models.DescribeClusterTransparentEncryptInfoRequest,
@@ -3678,6 +3678,8 @@ class BackupFileInfo(AbstractModel):
3678
3678
  :type SnapShotType: str
3679
3679
  :param _BackupName: <p>备份文件备注</p>
3680
3680
  :type BackupName: str
3681
+ :param _ExistRegions: <p>备份文件所在地域</p>
3682
+ :type ExistRegions: list of BackupRegionAndIds
3681
3683
  :param _CopyStatus: <p>投递状态</p>
3682
3684
  :type CopyStatus: str
3683
3685
  :param _EncryptKeyId: <p>秘钥id</p>
@@ -3701,6 +3703,7 @@ class BackupFileInfo(AbstractModel):
3701
3703
  self._BackupId = None
3702
3704
  self._SnapShotType = None
3703
3705
  self._BackupName = None
3706
+ self._ExistRegions = None
3704
3707
  self._CopyStatus = None
3705
3708
  self._EncryptKeyId = None
3706
3709
  self._EncryptRegion = None
@@ -3839,6 +3842,17 @@ class BackupFileInfo(AbstractModel):
3839
3842
  def BackupName(self, BackupName):
3840
3843
  self._BackupName = BackupName
3841
3844
 
3845
+ @property
3846
+ def ExistRegions(self):
3847
+ r"""<p>备份文件所在地域</p>
3848
+ :rtype: list of BackupRegionAndIds
3849
+ """
3850
+ return self._ExistRegions
3851
+
3852
+ @ExistRegions.setter
3853
+ def ExistRegions(self, ExistRegions):
3854
+ self._ExistRegions = ExistRegions
3855
+
3842
3856
  @property
3843
3857
  def CopyStatus(self):
3844
3858
  r"""<p>投递状态</p>
@@ -3908,6 +3922,12 @@ class BackupFileInfo(AbstractModel):
3908
3922
  self._BackupId = params.get("BackupId")
3909
3923
  self._SnapShotType = params.get("SnapShotType")
3910
3924
  self._BackupName = params.get("BackupName")
3925
+ if params.get("ExistRegions") is not None:
3926
+ self._ExistRegions = []
3927
+ for item in params.get("ExistRegions"):
3928
+ obj = BackupRegionAndIds()
3929
+ obj._deserialize(item)
3930
+ self._ExistRegions.append(obj)
3911
3931
  self._CopyStatus = params.get("CopyStatus")
3912
3932
  self._EncryptKeyId = params.get("EncryptKeyId")
3913
3933
  self._EncryptRegion = params.get("EncryptRegion")
@@ -14720,7 +14740,7 @@ class CynosdbInstance(AbstractModel):
14720
14740
  :type Region: str
14721
14741
  :param _Zone: <p>集群主可用区</p>
14722
14742
  :type Zone: str
14723
- :param _Status: <p>实例状态</p>
14743
+ :param _Status: <p>实例状态</p><p>枚举值:</p><ul><li>creating: 创建中</li><li>running: 运行中</li><li>isolating: 隔离中</li><li>isolated: 已隔离</li><li>activating: 从回收站重新恢复</li><li>offlining: 下线中</li><li>offlined: 已下线</li><li>deleting: 删除中</li><li>deleted: 已删除</li></ul>
14724
14744
  :type Status: str
14725
14745
  :param _StatusDesc: <p>实例状态中文描述</p>
14726
14746
  :type StatusDesc: str
@@ -14988,7 +15008,7 @@ class CynosdbInstance(AbstractModel):
14988
15008
 
14989
15009
  @property
14990
15010
  def Status(self):
14991
- r"""<p>实例状态</p>
15011
+ r"""<p>实例状态</p><p>枚举值:</p><ul><li>creating: 创建中</li><li>running: 运行中</li><li>isolating: 隔离中</li><li>isolated: 已隔离</li><li>activating: 从回收站重新恢复</li><li>offlining: 下线中</li><li>offlined: 已下线</li><li>deleting: 删除中</li><li>deleted: 已删除</li></ul>
14992
15012
  :rtype: str
14993
15013
  """
14994
15014
  return self._Status
@@ -24026,6 +24046,130 @@ class DescribeClusterServerlessScalePlansResponse(AbstractModel):
24026
24046
  self._RequestId = params.get("RequestId")
24027
24047
 
24028
24048
 
24049
+ class DescribeClusterStorageAutoExpandRequest(AbstractModel):
24050
+ r"""DescribeClusterStorageAutoExpand请求参数结构体
24051
+
24052
+ """
24053
+
24054
+ def __init__(self):
24055
+ r"""
24056
+ :param _ClusterId: <p>集群ID</p>
24057
+ :type ClusterId: str
24058
+ """
24059
+ self._ClusterId = None
24060
+
24061
+ @property
24062
+ def ClusterId(self):
24063
+ r"""<p>集群ID</p>
24064
+ :rtype: str
24065
+ """
24066
+ return self._ClusterId
24067
+
24068
+ @ClusterId.setter
24069
+ def ClusterId(self, ClusterId):
24070
+ self._ClusterId = ClusterId
24071
+
24072
+
24073
+ def _deserialize(self, params):
24074
+ self._ClusterId = params.get("ClusterId")
24075
+ memeber_set = set(params.keys())
24076
+ for name, value in vars(self).items():
24077
+ property_name = name[1:]
24078
+ if property_name in memeber_set:
24079
+ memeber_set.remove(property_name)
24080
+ if len(memeber_set) > 0:
24081
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
24082
+
24083
+
24084
+
24085
+ class DescribeClusterStorageAutoExpandResponse(AbstractModel):
24086
+ r"""DescribeClusterStorageAutoExpand返回参数结构体
24087
+
24088
+ """
24089
+
24090
+ def __init__(self):
24091
+ r"""
24092
+ :param _StorageUsageThreshold: <p>存储使用率阈值</p>
24093
+ :type StorageUsageThreshold: int
24094
+ :param _ExpandStep: <p>扩容步长</p>
24095
+ :type ExpandStep: int
24096
+ :param _MaxStorageLimit: <p>最大存储上限</p>
24097
+ :type MaxStorageLimit: int
24098
+ :param _StorageAutoExpand: <p>是否开启:yes-开启,no-关闭</p>
24099
+ :type StorageAutoExpand: str
24100
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
24101
+ :type RequestId: str
24102
+ """
24103
+ self._StorageUsageThreshold = None
24104
+ self._ExpandStep = None
24105
+ self._MaxStorageLimit = None
24106
+ self._StorageAutoExpand = None
24107
+ self._RequestId = None
24108
+
24109
+ @property
24110
+ def StorageUsageThreshold(self):
24111
+ r"""<p>存储使用率阈值</p>
24112
+ :rtype: int
24113
+ """
24114
+ return self._StorageUsageThreshold
24115
+
24116
+ @StorageUsageThreshold.setter
24117
+ def StorageUsageThreshold(self, StorageUsageThreshold):
24118
+ self._StorageUsageThreshold = StorageUsageThreshold
24119
+
24120
+ @property
24121
+ def ExpandStep(self):
24122
+ r"""<p>扩容步长</p>
24123
+ :rtype: int
24124
+ """
24125
+ return self._ExpandStep
24126
+
24127
+ @ExpandStep.setter
24128
+ def ExpandStep(self, ExpandStep):
24129
+ self._ExpandStep = ExpandStep
24130
+
24131
+ @property
24132
+ def MaxStorageLimit(self):
24133
+ r"""<p>最大存储上限</p>
24134
+ :rtype: int
24135
+ """
24136
+ return self._MaxStorageLimit
24137
+
24138
+ @MaxStorageLimit.setter
24139
+ def MaxStorageLimit(self, MaxStorageLimit):
24140
+ self._MaxStorageLimit = MaxStorageLimit
24141
+
24142
+ @property
24143
+ def StorageAutoExpand(self):
24144
+ r"""<p>是否开启:yes-开启,no-关闭</p>
24145
+ :rtype: str
24146
+ """
24147
+ return self._StorageAutoExpand
24148
+
24149
+ @StorageAutoExpand.setter
24150
+ def StorageAutoExpand(self, StorageAutoExpand):
24151
+ self._StorageAutoExpand = StorageAutoExpand
24152
+
24153
+ @property
24154
+ def RequestId(self):
24155
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
24156
+ :rtype: str
24157
+ """
24158
+ return self._RequestId
24159
+
24160
+ @RequestId.setter
24161
+ def RequestId(self, RequestId):
24162
+ self._RequestId = RequestId
24163
+
24164
+
24165
+ def _deserialize(self, params):
24166
+ self._StorageUsageThreshold = params.get("StorageUsageThreshold")
24167
+ self._ExpandStep = params.get("ExpandStep")
24168
+ self._MaxStorageLimit = params.get("MaxStorageLimit")
24169
+ self._StorageAutoExpand = params.get("StorageAutoExpand")
24170
+ self._RequestId = params.get("RequestId")
24171
+
24172
+
24029
24173
  class DescribeClusterTransparentEncryptInfoRequest(AbstractModel):
24030
24174
  r"""DescribeClusterTransparentEncryptInfo请求参数结构体
24031
24175
 
@@ -60249,6 +60393,36 @@ class TransferClusterPrepayToPostpayRequest(AbstractModel):
60249
60393
 
60250
60394
  """
60251
60395
 
60396
+ def __init__(self):
60397
+ r"""
60398
+ :param _ClusterId: <p>集群id</p>
60399
+ :type ClusterId: str
60400
+ """
60401
+ self._ClusterId = None
60402
+
60403
+ @property
60404
+ def ClusterId(self):
60405
+ r"""<p>集群id</p>
60406
+ :rtype: str
60407
+ """
60408
+ return self._ClusterId
60409
+
60410
+ @ClusterId.setter
60411
+ def ClusterId(self, ClusterId):
60412
+ self._ClusterId = ClusterId
60413
+
60414
+
60415
+ def _deserialize(self, params):
60416
+ self._ClusterId = params.get("ClusterId")
60417
+ memeber_set = set(params.keys())
60418
+ for name, value in vars(self).items():
60419
+ property_name = name[1:]
60420
+ if property_name in memeber_set:
60421
+ memeber_set.remove(property_name)
60422
+ if len(memeber_set) > 0:
60423
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
60424
+
60425
+
60252
60426
 
60253
60427
  class TransferClusterPrepayToPostpayResponse(AbstractModel):
60254
60428
  r"""TransferClusterPrepayToPostpay返回参数结构体
@@ -60257,11 +60431,91 @@ class TransferClusterPrepayToPostpayResponse(AbstractModel):
60257
60431
 
60258
60432
  def __init__(self):
60259
60433
  r"""
60434
+ :param _BigDealIds: <p>预付费总订单号</p>
60435
+ 注意:此字段可能返回 null,表示取不到有效值。
60436
+ :type BigDealIds: list of str
60437
+ :param _TranId: <p>冻结流水</p>
60438
+ 注意:此字段可能返回 null,表示取不到有效值。
60439
+ :type TranId: str
60440
+ :param _DealNames: <p>订单号</p>
60441
+ 注意:此字段可能返回 null,表示取不到有效值。
60442
+ :type DealNames: list of str
60443
+ :param _ResourceIds: <p>资源id</p>
60444
+ 注意:此字段可能返回 null,表示取不到有效值。
60445
+ :type ResourceIds: list of str
60446
+ :param _ClusterIds: <p>集群id</p>
60447
+ 注意:此字段可能返回 null,表示取不到有效值。
60448
+ :type ClusterIds: list of str
60260
60449
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
60261
60450
  :type RequestId: str
60262
60451
  """
60452
+ self._BigDealIds = None
60453
+ self._TranId = None
60454
+ self._DealNames = None
60455
+ self._ResourceIds = None
60456
+ self._ClusterIds = None
60263
60457
  self._RequestId = None
60264
60458
 
60459
+ @property
60460
+ def BigDealIds(self):
60461
+ r"""<p>预付费总订单号</p>
60462
+ 注意:此字段可能返回 null,表示取不到有效值。
60463
+ :rtype: list of str
60464
+ """
60465
+ return self._BigDealIds
60466
+
60467
+ @BigDealIds.setter
60468
+ def BigDealIds(self, BigDealIds):
60469
+ self._BigDealIds = BigDealIds
60470
+
60471
+ @property
60472
+ def TranId(self):
60473
+ r"""<p>冻结流水</p>
60474
+ 注意:此字段可能返回 null,表示取不到有效值。
60475
+ :rtype: str
60476
+ """
60477
+ return self._TranId
60478
+
60479
+ @TranId.setter
60480
+ def TranId(self, TranId):
60481
+ self._TranId = TranId
60482
+
60483
+ @property
60484
+ def DealNames(self):
60485
+ r"""<p>订单号</p>
60486
+ 注意:此字段可能返回 null,表示取不到有效值。
60487
+ :rtype: list of str
60488
+ """
60489
+ return self._DealNames
60490
+
60491
+ @DealNames.setter
60492
+ def DealNames(self, DealNames):
60493
+ self._DealNames = DealNames
60494
+
60495
+ @property
60496
+ def ResourceIds(self):
60497
+ r"""<p>资源id</p>
60498
+ 注意:此字段可能返回 null,表示取不到有效值。
60499
+ :rtype: list of str
60500
+ """
60501
+ return self._ResourceIds
60502
+
60503
+ @ResourceIds.setter
60504
+ def ResourceIds(self, ResourceIds):
60505
+ self._ResourceIds = ResourceIds
60506
+
60507
+ @property
60508
+ def ClusterIds(self):
60509
+ r"""<p>集群id</p>
60510
+ 注意:此字段可能返回 null,表示取不到有效值。
60511
+ :rtype: list of str
60512
+ """
60513
+ return self._ClusterIds
60514
+
60515
+ @ClusterIds.setter
60516
+ def ClusterIds(self, ClusterIds):
60517
+ self._ClusterIds = ClusterIds
60518
+
60265
60519
  @property
60266
60520
  def RequestId(self):
60267
60521
  r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -60275,6 +60529,11 @@ class TransferClusterPrepayToPostpayResponse(AbstractModel):
60275
60529
 
60276
60530
 
60277
60531
  def _deserialize(self, params):
60532
+ self._BigDealIds = params.get("BigDealIds")
60533
+ self._TranId = params.get("TranId")
60534
+ self._DealNames = params.get("DealNames")
60535
+ self._ResourceIds = params.get("ResourceIds")
60536
+ self._ClusterIds = params.get("ClusterIds")
60278
60537
  self._RequestId = params.get("RequestId")
60279
60538
 
60280
60539
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-cynosdb
3
- Version: 3.1.161
3
+ Version: 3.1.164
4
4
  Summary: Tencent Cloud Cynosdb 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.161
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.164
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.164
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.161