tencentcloud-sdk-python-mongodb 3.1.64__tar.gz → 3.1.77__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.
- {tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/setup.py +1 -1
- {tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/tencentcloud/mongodb/v20190725/models.py +221 -0
- {tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/tencentcloud/mongodb/v20190725/mongodb_client.py +23 -0
- {tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/tencentcloud/mongodb/v20190725/mongodb_client_async.py +18 -0
- {tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/tencentcloud_sdk_python_mongodb.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_mongodb-3.1.77/tencentcloud_sdk_python_mongodb.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_mongodb-3.1.64/tencentcloud_sdk_python_mongodb.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/README.rst +0 -0
- {tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/setup.cfg +0 -0
- {tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/tencentcloud/mongodb/__init__.py +0 -0
- {tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/tencentcloud/mongodb/v20180408/__init__.py +0 -0
- {tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/tencentcloud/mongodb/v20180408/errorcodes.py +0 -0
- {tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/tencentcloud/mongodb/v20180408/models.py +0 -0
- {tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/tencentcloud/mongodb/v20180408/mongodb_client.py +0 -0
- {tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/tencentcloud/mongodb/v20180408/mongodb_client_async.py +0 -0
- {tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/tencentcloud/mongodb/v20190725/__init__.py +0 -0
- {tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/tencentcloud/mongodb/v20190725/errorcodes.py +0 -0
- {tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/tencentcloud_sdk_python_mongodb.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/tencentcloud_sdk_python_mongodb.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/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.
|
|
3
|
+
Version: 3.1.77
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.77
|
|
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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.77,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Mongodb SDK for Python',
|
|
@@ -15809,6 +15809,227 @@ class RestartNodesResponse(AbstractModel):
|
|
|
15809
15809
|
self._RequestId = params.get("RequestId")
|
|
15810
15810
|
|
|
15811
15811
|
|
|
15812
|
+
class RestoreCollection(AbstractModel):
|
|
15813
|
+
r"""待回档collection
|
|
15814
|
+
|
|
15815
|
+
"""
|
|
15816
|
+
|
|
15817
|
+
def __init__(self):
|
|
15818
|
+
r"""
|
|
15819
|
+
:param _OldCollection: 待回档的原collection
|
|
15820
|
+
:type OldCollection: str
|
|
15821
|
+
:param _NewCollection: 回档后的collection
|
|
15822
|
+
:type NewCollection: str
|
|
15823
|
+
"""
|
|
15824
|
+
self._OldCollection = None
|
|
15825
|
+
self._NewCollection = None
|
|
15826
|
+
|
|
15827
|
+
@property
|
|
15828
|
+
def OldCollection(self):
|
|
15829
|
+
r"""待回档的原collection
|
|
15830
|
+
:rtype: str
|
|
15831
|
+
"""
|
|
15832
|
+
return self._OldCollection
|
|
15833
|
+
|
|
15834
|
+
@OldCollection.setter
|
|
15835
|
+
def OldCollection(self, OldCollection):
|
|
15836
|
+
self._OldCollection = OldCollection
|
|
15837
|
+
|
|
15838
|
+
@property
|
|
15839
|
+
def NewCollection(self):
|
|
15840
|
+
r"""回档后的collection
|
|
15841
|
+
:rtype: str
|
|
15842
|
+
"""
|
|
15843
|
+
return self._NewCollection
|
|
15844
|
+
|
|
15845
|
+
@NewCollection.setter
|
|
15846
|
+
def NewCollection(self, NewCollection):
|
|
15847
|
+
self._NewCollection = NewCollection
|
|
15848
|
+
|
|
15849
|
+
|
|
15850
|
+
def _deserialize(self, params):
|
|
15851
|
+
self._OldCollection = params.get("OldCollection")
|
|
15852
|
+
self._NewCollection = params.get("NewCollection")
|
|
15853
|
+
memeber_set = set(params.keys())
|
|
15854
|
+
for name, value in vars(self).items():
|
|
15855
|
+
property_name = name[1:]
|
|
15856
|
+
if property_name in memeber_set:
|
|
15857
|
+
memeber_set.remove(property_name)
|
|
15858
|
+
if len(memeber_set) > 0:
|
|
15859
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
15860
|
+
|
|
15861
|
+
|
|
15862
|
+
|
|
15863
|
+
class RestoreDBInstanceRequest(AbstractModel):
|
|
15864
|
+
r"""RestoreDBInstance请求参数结构体
|
|
15865
|
+
|
|
15866
|
+
"""
|
|
15867
|
+
|
|
15868
|
+
def __init__(self):
|
|
15869
|
+
r"""
|
|
15870
|
+
:param _InstanceId: <p>实例 ID。请登录 <a href="https://console.cloud.tencent.com/mongodb/instance">MongoDB 控制台</a>在实例列表复制实例 ID。</p>
|
|
15871
|
+
:type InstanceId: str
|
|
15872
|
+
:param _RestoreTime: <p>指定回档的目标时间点。该时间必须处于实例的备份保留期内。</p><p>参数格式:YYYY-MM-DD hh:mm:ss</p>
|
|
15873
|
+
:type RestoreTime: str
|
|
15874
|
+
:param _Databases: <p>回档的库表信息。</p>
|
|
15875
|
+
:type Databases: list of RestoreDatabases
|
|
15876
|
+
"""
|
|
15877
|
+
self._InstanceId = None
|
|
15878
|
+
self._RestoreTime = None
|
|
15879
|
+
self._Databases = None
|
|
15880
|
+
|
|
15881
|
+
@property
|
|
15882
|
+
def InstanceId(self):
|
|
15883
|
+
r"""<p>实例 ID。请登录 <a href="https://console.cloud.tencent.com/mongodb/instance">MongoDB 控制台</a>在实例列表复制实例 ID。</p>
|
|
15884
|
+
:rtype: str
|
|
15885
|
+
"""
|
|
15886
|
+
return self._InstanceId
|
|
15887
|
+
|
|
15888
|
+
@InstanceId.setter
|
|
15889
|
+
def InstanceId(self, InstanceId):
|
|
15890
|
+
self._InstanceId = InstanceId
|
|
15891
|
+
|
|
15892
|
+
@property
|
|
15893
|
+
def RestoreTime(self):
|
|
15894
|
+
r"""<p>指定回档的目标时间点。该时间必须处于实例的备份保留期内。</p><p>参数格式:YYYY-MM-DD hh:mm:ss</p>
|
|
15895
|
+
:rtype: str
|
|
15896
|
+
"""
|
|
15897
|
+
return self._RestoreTime
|
|
15898
|
+
|
|
15899
|
+
@RestoreTime.setter
|
|
15900
|
+
def RestoreTime(self, RestoreTime):
|
|
15901
|
+
self._RestoreTime = RestoreTime
|
|
15902
|
+
|
|
15903
|
+
@property
|
|
15904
|
+
def Databases(self):
|
|
15905
|
+
r"""<p>回档的库表信息。</p>
|
|
15906
|
+
:rtype: list of RestoreDatabases
|
|
15907
|
+
"""
|
|
15908
|
+
return self._Databases
|
|
15909
|
+
|
|
15910
|
+
@Databases.setter
|
|
15911
|
+
def Databases(self, Databases):
|
|
15912
|
+
self._Databases = Databases
|
|
15913
|
+
|
|
15914
|
+
|
|
15915
|
+
def _deserialize(self, params):
|
|
15916
|
+
self._InstanceId = params.get("InstanceId")
|
|
15917
|
+
self._RestoreTime = params.get("RestoreTime")
|
|
15918
|
+
if params.get("Databases") is not None:
|
|
15919
|
+
self._Databases = []
|
|
15920
|
+
for item in params.get("Databases"):
|
|
15921
|
+
obj = RestoreDatabases()
|
|
15922
|
+
obj._deserialize(item)
|
|
15923
|
+
self._Databases.append(obj)
|
|
15924
|
+
memeber_set = set(params.keys())
|
|
15925
|
+
for name, value in vars(self).items():
|
|
15926
|
+
property_name = name[1:]
|
|
15927
|
+
if property_name in memeber_set:
|
|
15928
|
+
memeber_set.remove(property_name)
|
|
15929
|
+
if len(memeber_set) > 0:
|
|
15930
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
15931
|
+
|
|
15932
|
+
|
|
15933
|
+
|
|
15934
|
+
class RestoreDBInstanceResponse(AbstractModel):
|
|
15935
|
+
r"""RestoreDBInstance返回参数结构体
|
|
15936
|
+
|
|
15937
|
+
"""
|
|
15938
|
+
|
|
15939
|
+
def __init__(self):
|
|
15940
|
+
r"""
|
|
15941
|
+
:param _FlowId: <p>回档任务流程 ID。</p>
|
|
15942
|
+
:type FlowId: int
|
|
15943
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
15944
|
+
:type RequestId: str
|
|
15945
|
+
"""
|
|
15946
|
+
self._FlowId = None
|
|
15947
|
+
self._RequestId = None
|
|
15948
|
+
|
|
15949
|
+
@property
|
|
15950
|
+
def FlowId(self):
|
|
15951
|
+
r"""<p>回档任务流程 ID。</p>
|
|
15952
|
+
:rtype: int
|
|
15953
|
+
"""
|
|
15954
|
+
return self._FlowId
|
|
15955
|
+
|
|
15956
|
+
@FlowId.setter
|
|
15957
|
+
def FlowId(self, FlowId):
|
|
15958
|
+
self._FlowId = FlowId
|
|
15959
|
+
|
|
15960
|
+
@property
|
|
15961
|
+
def RequestId(self):
|
|
15962
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
15963
|
+
:rtype: str
|
|
15964
|
+
"""
|
|
15965
|
+
return self._RequestId
|
|
15966
|
+
|
|
15967
|
+
@RequestId.setter
|
|
15968
|
+
def RequestId(self, RequestId):
|
|
15969
|
+
self._RequestId = RequestId
|
|
15970
|
+
|
|
15971
|
+
|
|
15972
|
+
def _deserialize(self, params):
|
|
15973
|
+
self._FlowId = params.get("FlowId")
|
|
15974
|
+
self._RequestId = params.get("RequestId")
|
|
15975
|
+
|
|
15976
|
+
|
|
15977
|
+
class RestoreDatabases(AbstractModel):
|
|
15978
|
+
r"""库表回档到新实例,库表信息
|
|
15979
|
+
|
|
15980
|
+
"""
|
|
15981
|
+
|
|
15982
|
+
def __init__(self):
|
|
15983
|
+
r"""
|
|
15984
|
+
:param _Db: DB名称。
|
|
15985
|
+
:type Db: str
|
|
15986
|
+
:param _Collections: 待回档的集合信息。
|
|
15987
|
+
:type Collections: list of RestoreCollection
|
|
15988
|
+
"""
|
|
15989
|
+
self._Db = None
|
|
15990
|
+
self._Collections = None
|
|
15991
|
+
|
|
15992
|
+
@property
|
|
15993
|
+
def Db(self):
|
|
15994
|
+
r"""DB名称。
|
|
15995
|
+
:rtype: str
|
|
15996
|
+
"""
|
|
15997
|
+
return self._Db
|
|
15998
|
+
|
|
15999
|
+
@Db.setter
|
|
16000
|
+
def Db(self, Db):
|
|
16001
|
+
self._Db = Db
|
|
16002
|
+
|
|
16003
|
+
@property
|
|
16004
|
+
def Collections(self):
|
|
16005
|
+
r"""待回档的集合信息。
|
|
16006
|
+
:rtype: list of RestoreCollection
|
|
16007
|
+
"""
|
|
16008
|
+
return self._Collections
|
|
16009
|
+
|
|
16010
|
+
@Collections.setter
|
|
16011
|
+
def Collections(self, Collections):
|
|
16012
|
+
self._Collections = Collections
|
|
16013
|
+
|
|
16014
|
+
|
|
16015
|
+
def _deserialize(self, params):
|
|
16016
|
+
self._Db = params.get("Db")
|
|
16017
|
+
if params.get("Collections") is not None:
|
|
16018
|
+
self._Collections = []
|
|
16019
|
+
for item in params.get("Collections"):
|
|
16020
|
+
obj = RestoreCollection()
|
|
16021
|
+
obj._deserialize(item)
|
|
16022
|
+
self._Collections.append(obj)
|
|
16023
|
+
memeber_set = set(params.keys())
|
|
16024
|
+
for name, value in vars(self).items():
|
|
16025
|
+
property_name = name[1:]
|
|
16026
|
+
if property_name in memeber_set:
|
|
16027
|
+
memeber_set.remove(property_name)
|
|
16028
|
+
if len(memeber_set) > 0:
|
|
16029
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
16030
|
+
|
|
16031
|
+
|
|
16032
|
+
|
|
15812
16033
|
class SecurityGroup(AbstractModel):
|
|
15813
16034
|
r"""安全组信息
|
|
15814
16035
|
|
|
@@ -1596,6 +1596,29 @@ class MongodbClient(AbstractClient):
|
|
|
1596
1596
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1597
1597
|
|
|
1598
1598
|
|
|
1599
|
+
def RestoreDBInstance(self, request):
|
|
1600
|
+
r"""本接口(RestoreDBInstance)用于回档数据库实例到指定时间点。
|
|
1601
|
+
|
|
1602
|
+
:param request: Request instance for RestoreDBInstance.
|
|
1603
|
+
:type request: :class:`tencentcloud.mongodb.v20190725.models.RestoreDBInstanceRequest`
|
|
1604
|
+
:rtype: :class:`tencentcloud.mongodb.v20190725.models.RestoreDBInstanceResponse`
|
|
1605
|
+
|
|
1606
|
+
"""
|
|
1607
|
+
try:
|
|
1608
|
+
params = request._serialize()
|
|
1609
|
+
headers = request.headers
|
|
1610
|
+
body = self.call("RestoreDBInstance", params, headers=headers)
|
|
1611
|
+
response = json.loads(body)
|
|
1612
|
+
model = models.RestoreDBInstanceResponse()
|
|
1613
|
+
model._deserialize(response["Response"])
|
|
1614
|
+
return model
|
|
1615
|
+
except Exception as e:
|
|
1616
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1617
|
+
raise
|
|
1618
|
+
else:
|
|
1619
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1620
|
+
|
|
1621
|
+
|
|
1599
1622
|
def SetAccountUserPrivilege(self, request):
|
|
1600
1623
|
r"""本接口(SetAccountUserPrivilege)用于设置实例的账号权限。
|
|
1601
1624
|
|
|
@@ -1255,6 +1255,24 @@ class MongodbClient(AbstractClient):
|
|
|
1255
1255
|
|
|
1256
1256
|
return await self.call_and_deserialize(**kwargs)
|
|
1257
1257
|
|
|
1258
|
+
async def RestoreDBInstance(
|
|
1259
|
+
self,
|
|
1260
|
+
request: models.RestoreDBInstanceRequest,
|
|
1261
|
+
opts: Dict = None,
|
|
1262
|
+
) -> models.RestoreDBInstanceResponse:
|
|
1263
|
+
"""
|
|
1264
|
+
本接口(RestoreDBInstance)用于回档数据库实例到指定时间点。
|
|
1265
|
+
"""
|
|
1266
|
+
|
|
1267
|
+
kwargs = {}
|
|
1268
|
+
kwargs["action"] = "RestoreDBInstance"
|
|
1269
|
+
kwargs["params"] = request._serialize()
|
|
1270
|
+
kwargs["resp_cls"] = models.RestoreDBInstanceResponse
|
|
1271
|
+
kwargs["headers"] = request.headers
|
|
1272
|
+
kwargs["opts"] = opts or {}
|
|
1273
|
+
|
|
1274
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1275
|
+
|
|
1258
1276
|
async def SetAccountUserPrivilege(
|
|
1259
1277
|
self,
|
|
1260
1278
|
request: models.SetAccountUserPrivilegeRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-mongodb
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.77
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.77
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.77
|
tencentcloud_sdk_python_mongodb-3.1.64/tencentcloud_sdk_python_mongodb.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.64
|
{tencentcloud_sdk_python_mongodb-3.1.64 → tencentcloud_sdk_python_mongodb-3.1.77}/README.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|