tencentcloud-sdk-python-mongodb 3.0.1447__tar.gz → 3.0.1458__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-mongodb-3.0.1447 → tencentcloud-sdk-python-mongodb-3.0.1458}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-mongodb-3.0.1447 → tencentcloud-sdk-python-mongodb-3.0.1458}/setup.py +1 -1
  3. {tencentcloud-sdk-python-mongodb-3.0.1447 → tencentcloud-sdk-python-mongodb-3.0.1458}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-mongodb-3.0.1447 → tencentcloud-sdk-python-mongodb-3.0.1458}/tencentcloud/mongodb/v20190725/errorcodes.py +3 -0
  5. {tencentcloud-sdk-python-mongodb-3.0.1447 → tencentcloud-sdk-python-mongodb-3.0.1458}/tencentcloud/mongodb/v20190725/models.py +79 -0
  6. {tencentcloud-sdk-python-mongodb-3.0.1447 → tencentcloud-sdk-python-mongodb-3.0.1458}/tencentcloud/mongodb/v20190725/mongodb_client.py +23 -0
  7. {tencentcloud-sdk-python-mongodb-3.0.1447 → tencentcloud-sdk-python-mongodb-3.0.1458}/tencentcloud_sdk_python_mongodb.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-mongodb-3.0.1458/tencentcloud_sdk_python_mongodb.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-mongodb-3.0.1447/tencentcloud_sdk_python_mongodb.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-mongodb-3.0.1447 → tencentcloud-sdk-python-mongodb-3.0.1458}/README.rst +0 -0
  11. {tencentcloud-sdk-python-mongodb-3.0.1447 → tencentcloud-sdk-python-mongodb-3.0.1458}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-mongodb-3.0.1447 → tencentcloud-sdk-python-mongodb-3.0.1458}/tencentcloud/mongodb/__init__.py +0 -0
  13. {tencentcloud-sdk-python-mongodb-3.0.1447 → tencentcloud-sdk-python-mongodb-3.0.1458}/tencentcloud/mongodb/v20180408/__init__.py +0 -0
  14. {tencentcloud-sdk-python-mongodb-3.0.1447 → tencentcloud-sdk-python-mongodb-3.0.1458}/tencentcloud/mongodb/v20180408/errorcodes.py +0 -0
  15. {tencentcloud-sdk-python-mongodb-3.0.1447 → tencentcloud-sdk-python-mongodb-3.0.1458}/tencentcloud/mongodb/v20180408/models.py +0 -0
  16. {tencentcloud-sdk-python-mongodb-3.0.1447 → tencentcloud-sdk-python-mongodb-3.0.1458}/tencentcloud/mongodb/v20180408/mongodb_client.py +0 -0
  17. {tencentcloud-sdk-python-mongodb-3.0.1447 → tencentcloud-sdk-python-mongodb-3.0.1458}/tencentcloud/mongodb/v20190725/__init__.py +0 -0
  18. {tencentcloud-sdk-python-mongodb-3.0.1447 → tencentcloud-sdk-python-mongodb-3.0.1458}/tencentcloud_sdk_python_mongodb.egg-info/SOURCES.txt +0 -0
  19. {tencentcloud-sdk-python-mongodb-3.0.1447 → tencentcloud-sdk-python-mongodb-3.0.1458}/tencentcloud_sdk_python_mongodb.egg-info/dependency_links.txt +0 -0
  20. {tencentcloud-sdk-python-mongodb-3.0.1447 → tencentcloud-sdk-python-mongodb-3.0.1458}/tencentcloud_sdk_python_mongodb.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-mongodb
3
- Version: 3.0.1447
3
+ Version: 3.0.1458
4
4
  Summary: Tencent Cloud Mongodb 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-mongodb',
11
- install_requires=["tencentcloud-sdk-python-common>=3.0.1447,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.0.1458,<4.0.0"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Mongodb 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.1447'
17
+ __version__ = '3.0.1458'
@@ -35,6 +35,9 @@ FAILEDOPERATION_NOTALLOWMODIFYADDRAFTEROPENWANSERVICE = 'FailedOperation.NotAllo
35
35
  # 实例锁定中不允许操作。
36
36
  FAILEDOPERATION_OPERATIONNOTALLOWEDININSTANCELOCKING = 'FailedOperation.OperationNotAllowedInInstanceLocking'
37
37
 
38
+ # 实例已开启透明加密,不允许物理备份。
39
+ FAILEDOPERATION_TRANSPARENTDATAENCRYPTIONALREADYOPEN = 'FailedOperation.TransparentDataEncryptionAlreadyOpen'
40
+
38
41
  # 内部错误。
39
42
  INTERNALERROR = 'InternalError'
40
43
 
@@ -11561,6 +11561,85 @@ class SetBackupRulesResponse(AbstractModel):
11561
11561
  self._RequestId = params.get("RequestId")
11562
11562
 
11563
11563
 
11564
+ class SetDBInstanceDeletionProtectionRequest(AbstractModel):
11565
+ """SetDBInstanceDeletionProtection请求参数结构体
11566
+
11567
+ """
11568
+
11569
+ def __init__(self):
11570
+ r"""
11571
+ :param _InstanceIds: 实例ID列表,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
11572
+ :type InstanceIds: list of str
11573
+ :param _EnableDeletionProtection: 实例销毁保护选项,取值范围:0-关闭销毁保护,1-开启销毁保护
11574
+ :type EnableDeletionProtection: int
11575
+ """
11576
+ self._InstanceIds = None
11577
+ self._EnableDeletionProtection = None
11578
+
11579
+ @property
11580
+ def InstanceIds(self):
11581
+ """实例ID列表,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
11582
+ :rtype: list of str
11583
+ """
11584
+ return self._InstanceIds
11585
+
11586
+ @InstanceIds.setter
11587
+ def InstanceIds(self, InstanceIds):
11588
+ self._InstanceIds = InstanceIds
11589
+
11590
+ @property
11591
+ def EnableDeletionProtection(self):
11592
+ """实例销毁保护选项,取值范围:0-关闭销毁保护,1-开启销毁保护
11593
+ :rtype: int
11594
+ """
11595
+ return self._EnableDeletionProtection
11596
+
11597
+ @EnableDeletionProtection.setter
11598
+ def EnableDeletionProtection(self, EnableDeletionProtection):
11599
+ self._EnableDeletionProtection = EnableDeletionProtection
11600
+
11601
+
11602
+ def _deserialize(self, params):
11603
+ self._InstanceIds = params.get("InstanceIds")
11604
+ self._EnableDeletionProtection = params.get("EnableDeletionProtection")
11605
+ memeber_set = set(params.keys())
11606
+ for name, value in vars(self).items():
11607
+ property_name = name[1:]
11608
+ if property_name in memeber_set:
11609
+ memeber_set.remove(property_name)
11610
+ if len(memeber_set) > 0:
11611
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
11612
+
11613
+
11614
+
11615
+ class SetDBInstanceDeletionProtectionResponse(AbstractModel):
11616
+ """SetDBInstanceDeletionProtection返回参数结构体
11617
+
11618
+ """
11619
+
11620
+ def __init__(self):
11621
+ r"""
11622
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11623
+ :type RequestId: str
11624
+ """
11625
+ self._RequestId = None
11626
+
11627
+ @property
11628
+ def RequestId(self):
11629
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11630
+ :rtype: str
11631
+ """
11632
+ return self._RequestId
11633
+
11634
+ @RequestId.setter
11635
+ def RequestId(self, RequestId):
11636
+ self._RequestId = RequestId
11637
+
11638
+
11639
+ def _deserialize(self, params):
11640
+ self._RequestId = params.get("RequestId")
11641
+
11642
+
11564
11643
  class SetInstanceMaintenanceRequest(AbstractModel):
11565
11644
  """SetInstanceMaintenance请求参数结构体
11566
11645
 
@@ -1182,6 +1182,29 @@ class MongodbClient(AbstractClient):
1182
1182
  raise TencentCloudSDKException(type(e).__name__, str(e))
1183
1183
 
1184
1184
 
1185
+ def SetDBInstanceDeletionProtection(self, request):
1186
+ """本接口(SetDBInstanceDeletionProtection)用于设置实例销毁保护
1187
+
1188
+ :param request: Request instance for SetDBInstanceDeletionProtection.
1189
+ :type request: :class:`tencentcloud.mongodb.v20190725.models.SetDBInstanceDeletionProtectionRequest`
1190
+ :rtype: :class:`tencentcloud.mongodb.v20190725.models.SetDBInstanceDeletionProtectionResponse`
1191
+
1192
+ """
1193
+ try:
1194
+ params = request._serialize()
1195
+ headers = request.headers
1196
+ body = self.call("SetDBInstanceDeletionProtection", params, headers=headers)
1197
+ response = json.loads(body)
1198
+ model = models.SetDBInstanceDeletionProtectionResponse()
1199
+ model._deserialize(response["Response"])
1200
+ return model
1201
+ except Exception as e:
1202
+ if isinstance(e, TencentCloudSDKException):
1203
+ raise
1204
+ else:
1205
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1206
+
1207
+
1185
1208
  def SetInstanceMaintenance(self, request):
1186
1209
  """本接口(SetInstanceMaintenance ) 用于设置实例维护时间窗。
1187
1210
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-mongodb
3
- Version: 3.0.1447
3
+ Version: 3.0.1458
4
4
  Summary: Tencent Cloud Mongodb 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<4.0.0,>=3.0.1458
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.0.1447