tencentcloud-sdk-python-mongodb 3.0.1490__tar.gz → 3.1.4__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.0.1490 → tencentcloud_sdk_python_mongodb-3.1.4}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_mongodb-3.0.1490 → tencentcloud_sdk_python_mongodb-3.1.4}/setup.py +2 -1
  3. {tencentcloud_sdk_python_mongodb-3.0.1490 → tencentcloud_sdk_python_mongodb-3.1.4}/tencentcloud/__init__.py +1 -1
  4. tencentcloud_sdk_python_mongodb-3.1.4/tencentcloud/mongodb/v20180408/mongodb_client_async.py +260 -0
  5. {tencentcloud_sdk_python_mongodb-3.0.1490 → tencentcloud_sdk_python_mongodb-3.1.4}/tencentcloud/mongodb/v20190725/errorcodes.py +3 -0
  6. {tencentcloud_sdk_python_mongodb-3.0.1490 → tencentcloud_sdk_python_mongodb-3.1.4}/tencentcloud/mongodb/v20190725/models.py +390 -2
  7. {tencentcloud_sdk_python_mongodb-3.0.1490 → tencentcloud_sdk_python_mongodb-3.1.4}/tencentcloud/mongodb/v20190725/mongodb_client.py +46 -0
  8. tencentcloud_sdk_python_mongodb-3.1.4/tencentcloud/mongodb/v20190725/mongodb_client_async.py +1220 -0
  9. {tencentcloud_sdk_python_mongodb-3.0.1490 → tencentcloud_sdk_python_mongodb-3.1.4}/tencentcloud_sdk_python_mongodb.egg-info/PKG-INFO +2 -2
  10. {tencentcloud_sdk_python_mongodb-3.0.1490 → tencentcloud_sdk_python_mongodb-3.1.4}/tencentcloud_sdk_python_mongodb.egg-info/SOURCES.txt +2 -0
  11. tencentcloud_sdk_python_mongodb-3.1.4/tencentcloud_sdk_python_mongodb.egg-info/requires.txt +1 -0
  12. tencentcloud_sdk_python_mongodb-3.0.1490/tencentcloud_sdk_python_mongodb.egg-info/requires.txt +0 -1
  13. {tencentcloud_sdk_python_mongodb-3.0.1490 → tencentcloud_sdk_python_mongodb-3.1.4}/README.rst +0 -0
  14. {tencentcloud_sdk_python_mongodb-3.0.1490 → tencentcloud_sdk_python_mongodb-3.1.4}/setup.cfg +0 -0
  15. {tencentcloud_sdk_python_mongodb-3.0.1490 → tencentcloud_sdk_python_mongodb-3.1.4}/tencentcloud/mongodb/__init__.py +0 -0
  16. {tencentcloud_sdk_python_mongodb-3.0.1490 → tencentcloud_sdk_python_mongodb-3.1.4}/tencentcloud/mongodb/v20180408/__init__.py +0 -0
  17. {tencentcloud_sdk_python_mongodb-3.0.1490 → tencentcloud_sdk_python_mongodb-3.1.4}/tencentcloud/mongodb/v20180408/errorcodes.py +0 -0
  18. {tencentcloud_sdk_python_mongodb-3.0.1490 → tencentcloud_sdk_python_mongodb-3.1.4}/tencentcloud/mongodb/v20180408/models.py +0 -0
  19. {tencentcloud_sdk_python_mongodb-3.0.1490 → tencentcloud_sdk_python_mongodb-3.1.4}/tencentcloud/mongodb/v20180408/mongodb_client.py +0 -0
  20. {tencentcloud_sdk_python_mongodb-3.0.1490 → tencentcloud_sdk_python_mongodb-3.1.4}/tencentcloud/mongodb/v20190725/__init__.py +0 -0
  21. {tencentcloud_sdk_python_mongodb-3.0.1490 → tencentcloud_sdk_python_mongodb-3.1.4}/tencentcloud_sdk_python_mongodb.egg-info/dependency_links.txt +0 -0
  22. {tencentcloud_sdk_python_mongodb-3.0.1490 → tencentcloud_sdk_python_mongodb-3.1.4}/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.0.1490
3
+ Version: 3.1.4
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.0.1490
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.4
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,8 @@ 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.1490,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.4,<4.0.0"],
12
+
12
13
  version=tencentcloud.__version__,
13
14
  description='Tencent Cloud Mongodb SDK for Python',
14
15
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1490'
17
+ __version__ = '3.1.4'
@@ -0,0 +1,260 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+
18
+ from tencentcloud.common.abstract_client_async import AbstractClient
19
+ from tencentcloud.mongodb.v20180408 import models
20
+ from typing import Dict
21
+
22
+
23
+ class MongodbClient(AbstractClient):
24
+ _apiVersion = '2018-04-08'
25
+ _endpoint = 'mongodb.tencentcloudapi.com'
26
+ _service = 'mongodb'
27
+
28
+ async def AssignProject(
29
+ self,
30
+ request: models.AssignProjectRequest,
31
+ opts: Dict = None,
32
+ ) -> models.AssignProjectResponse:
33
+ """
34
+ 本接口(AssignProject)用于指定云数据库实例的所属项目。
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "AssignProject"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.AssignProjectResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
45
+
46
+ async def CreateDBInstance(
47
+ self,
48
+ request: models.CreateDBInstanceRequest,
49
+ opts: Dict = None,
50
+ ) -> models.CreateDBInstanceResponse:
51
+ """
52
+ 本接口(CreateDBInstance)用于创建包年包月的MongoDB云数据库实例。
53
+ """
54
+
55
+ kwargs = {}
56
+ kwargs["action"] = "CreateDBInstance"
57
+ kwargs["params"] = request._serialize()
58
+ kwargs["resp_cls"] = models.CreateDBInstanceResponse
59
+ kwargs["headers"] = request.headers
60
+ kwargs["opts"] = opts or {}
61
+
62
+ return await self.call_and_deserialize(**kwargs)
63
+
64
+ async def CreateDBInstanceHour(
65
+ self,
66
+ request: models.CreateDBInstanceHourRequest,
67
+ opts: Dict = None,
68
+ ) -> models.CreateDBInstanceHourResponse:
69
+ """
70
+ 本接口(CreateDBInstanceHour)用于创建按量计费的MongoDB云数据库实例,可通过传入实例规格、实例类型、MongoDB版本、购买时长和数量等信息创建云数据库实例。
71
+ """
72
+
73
+ kwargs = {}
74
+ kwargs["action"] = "CreateDBInstanceHour"
75
+ kwargs["params"] = request._serialize()
76
+ kwargs["resp_cls"] = models.CreateDBInstanceHourResponse
77
+ kwargs["headers"] = request.headers
78
+ kwargs["opts"] = opts or {}
79
+
80
+ return await self.call_and_deserialize(**kwargs)
81
+
82
+ async def DescribeClientConnections(
83
+ self,
84
+ request: models.DescribeClientConnectionsRequest,
85
+ opts: Dict = None,
86
+ ) -> models.DescribeClientConnectionsResponse:
87
+ """
88
+ 本接口(DescribeClientConnections)用于查询实例客户端连接信息,包括连接IP和连接数量。目前只支持3.2版本的MongoDB实例。
89
+ """
90
+
91
+ kwargs = {}
92
+ kwargs["action"] = "DescribeClientConnections"
93
+ kwargs["params"] = request._serialize()
94
+ kwargs["resp_cls"] = models.DescribeClientConnectionsResponse
95
+ kwargs["headers"] = request.headers
96
+ kwargs["opts"] = opts or {}
97
+
98
+ return await self.call_and_deserialize(**kwargs)
99
+
100
+ async def DescribeDBInstances(
101
+ self,
102
+ request: models.DescribeDBInstancesRequest,
103
+ opts: Dict = None,
104
+ ) -> models.DescribeDBInstancesResponse:
105
+ """
106
+ 本接口(DescribeDBInstances)用于查询云数据库实例列表,支持通过项目ID、实例ID、实例状态等过滤条件来筛选实例。支持查询主实例、灾备实例和只读实例信息列表。
107
+ """
108
+
109
+ kwargs = {}
110
+ kwargs["action"] = "DescribeDBInstances"
111
+ kwargs["params"] = request._serialize()
112
+ kwargs["resp_cls"] = models.DescribeDBInstancesResponse
113
+ kwargs["headers"] = request.headers
114
+ kwargs["opts"] = opts or {}
115
+
116
+ return await self.call_and_deserialize(**kwargs)
117
+
118
+ async def DescribeSlowLog(
119
+ self,
120
+ request: models.DescribeSlowLogRequest,
121
+ opts: Dict = None,
122
+ ) -> models.DescribeSlowLogResponse:
123
+ """
124
+ 本接口(DescribeSlowLogs)用于获取云数据库实例的慢查询日志。
125
+ """
126
+
127
+ kwargs = {}
128
+ kwargs["action"] = "DescribeSlowLog"
129
+ kwargs["params"] = request._serialize()
130
+ kwargs["resp_cls"] = models.DescribeSlowLogResponse
131
+ kwargs["headers"] = request.headers
132
+ kwargs["opts"] = opts or {}
133
+
134
+ return await self.call_and_deserialize(**kwargs)
135
+
136
+ async def DescribeSpecInfo(
137
+ self,
138
+ request: models.DescribeSpecInfoRequest,
139
+ opts: Dict = None,
140
+ ) -> models.DescribeSpecInfoResponse:
141
+ """
142
+ 本接口(DescribeSpecInfo)用于查询实例的售卖规格。
143
+ """
144
+
145
+ kwargs = {}
146
+ kwargs["action"] = "DescribeSpecInfo"
147
+ kwargs["params"] = request._serialize()
148
+ kwargs["resp_cls"] = models.DescribeSpecInfoResponse
149
+ kwargs["headers"] = request.headers
150
+ kwargs["opts"] = opts or {}
151
+
152
+ return await self.call_and_deserialize(**kwargs)
153
+
154
+ async def RenameInstance(
155
+ self,
156
+ request: models.RenameInstanceRequest,
157
+ opts: Dict = None,
158
+ ) -> models.RenameInstanceResponse:
159
+ """
160
+ 本接口(RenameInstance)用于修改云数据库实例的名称。
161
+ """
162
+
163
+ kwargs = {}
164
+ kwargs["action"] = "RenameInstance"
165
+ kwargs["params"] = request._serialize()
166
+ kwargs["resp_cls"] = models.RenameInstanceResponse
167
+ kwargs["headers"] = request.headers
168
+ kwargs["opts"] = opts or {}
169
+
170
+ return await self.call_and_deserialize(**kwargs)
171
+
172
+ async def SetAutoRenew(
173
+ self,
174
+ request: models.SetAutoRenewRequest,
175
+ opts: Dict = None,
176
+ ) -> models.SetAutoRenewResponse:
177
+ """
178
+ 本接口(SetAutoRenew)用于设置包年包月云数据库实例的续费选项。
179
+ """
180
+
181
+ kwargs = {}
182
+ kwargs["action"] = "SetAutoRenew"
183
+ kwargs["params"] = request._serialize()
184
+ kwargs["resp_cls"] = models.SetAutoRenewResponse
185
+ kwargs["headers"] = request.headers
186
+ kwargs["opts"] = opts or {}
187
+
188
+ return await self.call_and_deserialize(**kwargs)
189
+
190
+ async def SetPassword(
191
+ self,
192
+ request: models.SetPasswordRequest,
193
+ opts: Dict = None,
194
+ ) -> models.SetPasswordResponse:
195
+ """
196
+ 本接口(SetPassword)用于设置(初始化)MongoDB云数据库实例账户密码。
197
+ """
198
+
199
+ kwargs = {}
200
+ kwargs["action"] = "SetPassword"
201
+ kwargs["params"] = request._serialize()
202
+ kwargs["resp_cls"] = models.SetPasswordResponse
203
+ kwargs["headers"] = request.headers
204
+ kwargs["opts"] = opts or {}
205
+
206
+ return await self.call_and_deserialize(**kwargs)
207
+
208
+ async def TerminateDBInstance(
209
+ self,
210
+ request: models.TerminateDBInstanceRequest,
211
+ opts: Dict = None,
212
+ ) -> models.TerminateDBInstanceResponse:
213
+ """
214
+ 本接口(TerminateDBInstance)用于销毁按量计费的MongoDB云数据库实例。
215
+ """
216
+
217
+ kwargs = {}
218
+ kwargs["action"] = "TerminateDBInstance"
219
+ kwargs["params"] = request._serialize()
220
+ kwargs["resp_cls"] = models.TerminateDBInstanceResponse
221
+ kwargs["headers"] = request.headers
222
+ kwargs["opts"] = opts or {}
223
+
224
+ return await self.call_and_deserialize(**kwargs)
225
+
226
+ async def UpgradeDBInstance(
227
+ self,
228
+ request: models.UpgradeDBInstanceRequest,
229
+ opts: Dict = None,
230
+ ) -> models.UpgradeDBInstanceResponse:
231
+ """
232
+ 本接口(UpgradeDBInstance)用于升级包年包月的MongoDB云数据库实例,可以扩容内存、存储以及Oplog
233
+ """
234
+
235
+ kwargs = {}
236
+ kwargs["action"] = "UpgradeDBInstance"
237
+ kwargs["params"] = request._serialize()
238
+ kwargs["resp_cls"] = models.UpgradeDBInstanceResponse
239
+ kwargs["headers"] = request.headers
240
+ kwargs["opts"] = opts or {}
241
+
242
+ return await self.call_and_deserialize(**kwargs)
243
+
244
+ async def UpgradeDBInstanceHour(
245
+ self,
246
+ request: models.UpgradeDBInstanceHourRequest,
247
+ opts: Dict = None,
248
+ ) -> models.UpgradeDBInstanceHourResponse:
249
+ """
250
+ 本接口(UpgradeDBInstanceHour)用于升级按量计费的MongoDB云数据库实例,可以扩容内存、存储以及oplog
251
+ """
252
+
253
+ kwargs = {}
254
+ kwargs["action"] = "UpgradeDBInstanceHour"
255
+ kwargs["params"] = request._serialize()
256
+ kwargs["resp_cls"] = models.UpgradeDBInstanceHourResponse
257
+ kwargs["headers"] = request.headers
258
+ kwargs["opts"] = opts or {}
259
+
260
+ return await self.call_and_deserialize(**kwargs)
@@ -326,5 +326,8 @@ UNSUPPORTEDOPERATION = 'UnsupportedOperation'
326
326
  # 内核版本不支持。
327
327
  UNSUPPORTEDOPERATION_KERNELVERSIONNOTSUPPORT = 'UnsupportedOperation.KernelVersionNotSupport'
328
328
 
329
+ # 小版本不支持。
330
+ UNSUPPORTEDOPERATION_SECONDARYVERSIONNOTSUPPORTAUDIT = 'UnsupportedOperation.SecondaryVersionNotSupportAudit'
331
+
329
332
  # 当前版本不支持该操作。
330
333
  UNSUPPORTEDOPERATION_VERSIONNOTSUPPORT = 'UnsupportedOperation.VersionNotSupport'