tencentcloud-sdk-python-mongodb 3.1.87__tar.gz → 3.1.92__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 (22) hide show
  1. {tencentcloud_sdk_python_mongodb-3.1.87 → tencentcloud_sdk_python_mongodb-3.1.92}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_mongodb-3.1.87 → tencentcloud_sdk_python_mongodb-3.1.92}/setup.py +1 -1
  3. {tencentcloud_sdk_python_mongodb-3.1.87 → tencentcloud_sdk_python_mongodb-3.1.92}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_mongodb-3.1.87 → tencentcloud_sdk_python_mongodb-3.1.92}/tencentcloud/mongodb/v20190725/errorcodes.py +3 -0
  5. {tencentcloud_sdk_python_mongodb-3.1.87 → tencentcloud_sdk_python_mongodb-3.1.92}/tencentcloud/mongodb/v20190725/models.py +165 -0
  6. {tencentcloud_sdk_python_mongodb-3.1.87 → tencentcloud_sdk_python_mongodb-3.1.92}/tencentcloud/mongodb/v20190725/mongodb_client.py +23 -0
  7. {tencentcloud_sdk_python_mongodb-3.1.87 → tencentcloud_sdk_python_mongodb-3.1.92}/tencentcloud/mongodb/v20190725/mongodb_client_async.py +18 -0
  8. {tencentcloud_sdk_python_mongodb-3.1.87 → tencentcloud_sdk_python_mongodb-3.1.92}/tencentcloud_sdk_python_mongodb.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_mongodb-3.1.92/tencentcloud_sdk_python_mongodb.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_mongodb-3.1.87/tencentcloud_sdk_python_mongodb.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_mongodb-3.1.87 → tencentcloud_sdk_python_mongodb-3.1.92}/README.rst +0 -0
  12. {tencentcloud_sdk_python_mongodb-3.1.87 → tencentcloud_sdk_python_mongodb-3.1.92}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_mongodb-3.1.87 → tencentcloud_sdk_python_mongodb-3.1.92}/tencentcloud/mongodb/__init__.py +0 -0
  14. {tencentcloud_sdk_python_mongodb-3.1.87 → tencentcloud_sdk_python_mongodb-3.1.92}/tencentcloud/mongodb/v20180408/__init__.py +0 -0
  15. {tencentcloud_sdk_python_mongodb-3.1.87 → tencentcloud_sdk_python_mongodb-3.1.92}/tencentcloud/mongodb/v20180408/errorcodes.py +0 -0
  16. {tencentcloud_sdk_python_mongodb-3.1.87 → tencentcloud_sdk_python_mongodb-3.1.92}/tencentcloud/mongodb/v20180408/models.py +0 -0
  17. {tencentcloud_sdk_python_mongodb-3.1.87 → tencentcloud_sdk_python_mongodb-3.1.92}/tencentcloud/mongodb/v20180408/mongodb_client.py +0 -0
  18. {tencentcloud_sdk_python_mongodb-3.1.87 → tencentcloud_sdk_python_mongodb-3.1.92}/tencentcloud/mongodb/v20180408/mongodb_client_async.py +0 -0
  19. {tencentcloud_sdk_python_mongodb-3.1.87 → tencentcloud_sdk_python_mongodb-3.1.92}/tencentcloud/mongodb/v20190725/__init__.py +0 -0
  20. {tencentcloud_sdk_python_mongodb-3.1.87 → tencentcloud_sdk_python_mongodb-3.1.92}/tencentcloud_sdk_python_mongodb.egg-info/SOURCES.txt +0 -0
  21. {tencentcloud_sdk_python_mongodb-3.1.87 → tencentcloud_sdk_python_mongodb-3.1.92}/tencentcloud_sdk_python_mongodb.egg-info/dependency_links.txt +0 -0
  22. {tencentcloud_sdk_python_mongodb-3.1.87 → tencentcloud_sdk_python_mongodb-3.1.92}/tencentcloud_sdk_python_mongodb.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-mongodb
3
- Version: 3.1.87
3
+ Version: 3.1.92
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
@@ -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.87
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.92
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-mongodb',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.87,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.92,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Mongodb SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.87'
17
+ __version__ = '3.1.92'
@@ -251,6 +251,9 @@ INVALIDPARAMETERVALUE_SECONDARYNUMERROR = 'InvalidParameterValue.SecondaryNumErr
251
251
  # 安全组ID无效。
252
252
  INVALIDPARAMETERVALUE_SECURITYGROUPID = 'InvalidParameterValue.SecurityGroupId'
253
253
 
254
+ # 当前实例已开通免密访问,或未绑定安全组,安全级别较低不允许打开外网访问服务。
255
+ INVALIDPARAMETERVALUE_SECURITYLEVELNOTALLOWOPENWANSERVICE = 'InvalidParameterValue.SecurityLevelNotAllowOpenWanService'
256
+
254
257
  # 设置的磁盘大小不得低于已用磁盘的1.2倍。
255
258
  INVALIDPARAMETERVALUE_SETDISKLESSTHANUSED = 'InvalidParameterValue.SetDiskLessThanUsed'
256
259
 
@@ -9730,6 +9730,120 @@ class EnableTransparentDataEncryptionResponse(AbstractModel):
9730
9730
  self._RequestId = params.get("RequestId")
9731
9731
 
9732
9732
 
9733
+ class EnableWanServiceRequest(AbstractModel):
9734
+ r"""EnableWanService请求参数结构体
9735
+
9736
+ """
9737
+
9738
+ def __init__(self):
9739
+ r"""
9740
+ :param _InstanceId: 实例ID。
9741
+ :type InstanceId: str
9742
+ :param _LoadBalancerId: 负载均衡ID。
9743
+ :type LoadBalancerId: str
9744
+ :param _NodeList: 节点及监听端口信息。
9745
+ :type NodeList: list of WanServiceNodeList
9746
+ """
9747
+ self._InstanceId = None
9748
+ self._LoadBalancerId = None
9749
+ self._NodeList = None
9750
+
9751
+ @property
9752
+ def InstanceId(self):
9753
+ r"""实例ID。
9754
+ :rtype: str
9755
+ """
9756
+ return self._InstanceId
9757
+
9758
+ @InstanceId.setter
9759
+ def InstanceId(self, InstanceId):
9760
+ self._InstanceId = InstanceId
9761
+
9762
+ @property
9763
+ def LoadBalancerId(self):
9764
+ r"""负载均衡ID。
9765
+ :rtype: str
9766
+ """
9767
+ return self._LoadBalancerId
9768
+
9769
+ @LoadBalancerId.setter
9770
+ def LoadBalancerId(self, LoadBalancerId):
9771
+ self._LoadBalancerId = LoadBalancerId
9772
+
9773
+ @property
9774
+ def NodeList(self):
9775
+ r"""节点及监听端口信息。
9776
+ :rtype: list of WanServiceNodeList
9777
+ """
9778
+ return self._NodeList
9779
+
9780
+ @NodeList.setter
9781
+ def NodeList(self, NodeList):
9782
+ self._NodeList = NodeList
9783
+
9784
+
9785
+ def _deserialize(self, params):
9786
+ self._InstanceId = params.get("InstanceId")
9787
+ self._LoadBalancerId = params.get("LoadBalancerId")
9788
+ if params.get("NodeList") is not None:
9789
+ self._NodeList = []
9790
+ for item in params.get("NodeList"):
9791
+ obj = WanServiceNodeList()
9792
+ obj._deserialize(item)
9793
+ self._NodeList.append(obj)
9794
+ memeber_set = set(params.keys())
9795
+ for name, value in vars(self).items():
9796
+ property_name = name[1:]
9797
+ if property_name in memeber_set:
9798
+ memeber_set.remove(property_name)
9799
+ if len(memeber_set) > 0:
9800
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
9801
+
9802
+
9803
+
9804
+ class EnableWanServiceResponse(AbstractModel):
9805
+ r"""EnableWanService返回参数结构体
9806
+
9807
+ """
9808
+
9809
+ def __init__(self):
9810
+ r"""
9811
+ :param _FlowId: 异步任务ID。
9812
+ :type FlowId: int
9813
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9814
+ :type RequestId: str
9815
+ """
9816
+ self._FlowId = None
9817
+ self._RequestId = None
9818
+
9819
+ @property
9820
+ def FlowId(self):
9821
+ r"""异步任务ID。
9822
+ :rtype: int
9823
+ """
9824
+ return self._FlowId
9825
+
9826
+ @FlowId.setter
9827
+ def FlowId(self, FlowId):
9828
+ self._FlowId = FlowId
9829
+
9830
+ @property
9831
+ def RequestId(self):
9832
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9833
+ :rtype: str
9834
+ """
9835
+ return self._RequestId
9836
+
9837
+ @RequestId.setter
9838
+ def RequestId(self, RequestId):
9839
+ self._RequestId = RequestId
9840
+
9841
+
9842
+ def _deserialize(self, params):
9843
+ self._FlowId = params.get("FlowId")
9844
+ self._RequestId = params.get("RequestId")
9845
+
9846
+
9733
9847
  class FBKeyValue(AbstractModel):
9734
9848
  r"""按 Key 闪回键值对
9735
9849
 
@@ -18090,4 +18204,55 @@ class UserInfo(AbstractModel):
18090
18204
  memeber_set.remove(property_name)
18091
18205
  if len(memeber_set) > 0:
18092
18206
  warnings.warn("%s fileds are useless." % ",".join(memeber_set))
18207
+
18208
+
18209
+
18210
+ class WanServiceNodeList(AbstractModel):
18211
+ r"""mongodb外网服务节点信息。
18212
+
18213
+ """
18214
+
18215
+ def __init__(self):
18216
+ r"""
18217
+ :param _VipVport: 实例节点的vip及端口信息。
18218
+ :type VipVport: str
18219
+ :param _ListenerPort: CLB监听器监听端口,取值范围1~65535。
18220
+ :type ListenerPort: str
18221
+ """
18222
+ self._VipVport = None
18223
+ self._ListenerPort = None
18224
+
18225
+ @property
18226
+ def VipVport(self):
18227
+ r"""实例节点的vip及端口信息。
18228
+ :rtype: str
18229
+ """
18230
+ return self._VipVport
18231
+
18232
+ @VipVport.setter
18233
+ def VipVport(self, VipVport):
18234
+ self._VipVport = VipVport
18235
+
18236
+ @property
18237
+ def ListenerPort(self):
18238
+ r"""CLB监听器监听端口,取值范围1~65535。
18239
+ :rtype: str
18240
+ """
18241
+ return self._ListenerPort
18242
+
18243
+ @ListenerPort.setter
18244
+ def ListenerPort(self, ListenerPort):
18245
+ self._ListenerPort = ListenerPort
18246
+
18247
+
18248
+ def _deserialize(self, params):
18249
+ self._VipVport = params.get("VipVport")
18250
+ self._ListenerPort = params.get("ListenerPort")
18251
+ memeber_set = set(params.keys())
18252
+ for name, value in vars(self).items():
18253
+ property_name = name[1:]
18254
+ if property_name in memeber_set:
18255
+ memeber_set.remove(property_name)
18256
+ if len(memeber_set) > 0:
18257
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
18093
18258
 
@@ -1088,6 +1088,29 @@ class MongodbClient(AbstractClient):
1088
1088
  raise TencentCloudSDKException(type(e).__name__, str(e))
1089
1089
 
1090
1090
 
1091
+ def EnableWanService(self, request):
1092
+ r"""本接口(OpenWanService)用于开启当前实例的外网访问地址。
1093
+
1094
+ :param request: Request instance for EnableWanService.
1095
+ :type request: :class:`tencentcloud.mongodb.v20190725.models.EnableWanServiceRequest`
1096
+ :rtype: :class:`tencentcloud.mongodb.v20190725.models.EnableWanServiceResponse`
1097
+
1098
+ """
1099
+ try:
1100
+ params = request._serialize()
1101
+ headers = request.headers
1102
+ body = self.call("EnableWanService", params, headers=headers)
1103
+ response = json.loads(body)
1104
+ model = models.EnableWanServiceResponse()
1105
+ model._deserialize(response["Response"])
1106
+ return model
1107
+ except Exception as e:
1108
+ if isinstance(e, TencentCloudSDKException):
1109
+ raise
1110
+ else:
1111
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1112
+
1113
+
1091
1114
  def FlashBackDBInstance(self, request):
1092
1115
  r"""该接口用于发起按 Key 闪回任务,依据数据的闪回 Key(默认为 id)对数据进行极速回档,快速恢复业务。
1093
1116
  **说明:按 Key 闪回于2023年09月11日正式进行公测,在此期间,该接口仅对公测用户开放。**
@@ -857,6 +857,24 @@ class MongodbClient(AbstractClient):
857
857
 
858
858
  return await self.call_and_deserialize(**kwargs)
859
859
 
860
+ async def EnableWanService(
861
+ self,
862
+ request: models.EnableWanServiceRequest,
863
+ opts: Dict = None,
864
+ ) -> models.EnableWanServiceResponse:
865
+ """
866
+ 本接口(OpenWanService)用于开启当前实例的外网访问地址。
867
+ """
868
+
869
+ kwargs = {}
870
+ kwargs["action"] = "EnableWanService"
871
+ kwargs["params"] = request._serialize()
872
+ kwargs["resp_cls"] = models.EnableWanServiceResponse
873
+ kwargs["headers"] = request.headers
874
+ kwargs["opts"] = opts or {}
875
+
876
+ return await self.call_and_deserialize(**kwargs)
877
+
860
878
  async def FlashBackDBInstance(
861
879
  self,
862
880
  request: models.FlashBackDBInstanceRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-mongodb
3
- Version: 3.1.87
3
+ Version: 3.1.92
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
@@ -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.87
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.92
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.92
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.87