tencentcloud-sdk-python-mariadb 3.0.1183__tar.gz → 3.0.1206__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-mariadb-3.0.1183 → tencentcloud-sdk-python-mariadb-3.0.1206}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-mariadb-3.0.1183 → tencentcloud-sdk-python-mariadb-3.0.1206}/setup.py +1 -1
- {tencentcloud-sdk-python-mariadb-3.0.1183 → tencentcloud-sdk-python-mariadb-3.0.1206}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-mariadb-3.0.1183 → tencentcloud-sdk-python-mariadb-3.0.1206}/tencentcloud/mariadb/v20170312/mariadb_client.py +23 -0
- {tencentcloud-sdk-python-mariadb-3.0.1183 → tencentcloud-sdk-python-mariadb-3.0.1206}/tencentcloud/mariadb/v20170312/models.py +130 -0
- {tencentcloud-sdk-python-mariadb-3.0.1183 → tencentcloud-sdk-python-mariadb-3.0.1206}/tencentcloud_sdk_python_mariadb.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-mariadb-3.0.1206/tencentcloud_sdk_python_mariadb.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-mariadb-3.0.1183/tencentcloud_sdk_python_mariadb.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-mariadb-3.0.1183 → tencentcloud-sdk-python-mariadb-3.0.1206}/README.rst +0 -0
- {tencentcloud-sdk-python-mariadb-3.0.1183 → tencentcloud-sdk-python-mariadb-3.0.1206}/setup.cfg +0 -0
- {tencentcloud-sdk-python-mariadb-3.0.1183 → tencentcloud-sdk-python-mariadb-3.0.1206}/tencentcloud/mariadb/__init__.py +0 -0
- {tencentcloud-sdk-python-mariadb-3.0.1183 → tencentcloud-sdk-python-mariadb-3.0.1206}/tencentcloud/mariadb/v20170312/__init__.py +0 -0
- {tencentcloud-sdk-python-mariadb-3.0.1183 → tencentcloud-sdk-python-mariadb-3.0.1206}/tencentcloud/mariadb/v20170312/errorcodes.py +0 -0
- {tencentcloud-sdk-python-mariadb-3.0.1183 → tencentcloud-sdk-python-mariadb-3.0.1206}/tencentcloud_sdk_python_mariadb.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-mariadb-3.0.1183 → tencentcloud-sdk-python-mariadb-3.0.1206}/tencentcloud_sdk_python_mariadb.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-mariadb-3.0.1183 → tencentcloud-sdk-python-mariadb-3.0.1206}/tencentcloud_sdk_python_mariadb.egg-info/top_level.txt +0 -0
{tencentcloud-sdk-python-mariadb-3.0.1183 → tencentcloud-sdk-python-mariadb-3.0.1206}/setup.py
RENAMED
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-mariadb',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1206"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Mariadb SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -1691,6 +1691,29 @@ class MariadbClient(AbstractClient):
|
|
|
1691
1691
|
model = models.UpgradeDedicatedDBInstanceResponse()
|
|
1692
1692
|
model._deserialize(response["Response"])
|
|
1693
1693
|
return model
|
|
1694
|
+
except Exception as e:
|
|
1695
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1696
|
+
raise
|
|
1697
|
+
else:
|
|
1698
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1699
|
+
|
|
1700
|
+
|
|
1701
|
+
def UpgradeHourDBInstance(self, request):
|
|
1702
|
+
"""升级MariaDB按量计费实例
|
|
1703
|
+
|
|
1704
|
+
:param request: Request instance for UpgradeHourDBInstance.
|
|
1705
|
+
:type request: :class:`tencentcloud.mariadb.v20170312.models.UpgradeHourDBInstanceRequest`
|
|
1706
|
+
:rtype: :class:`tencentcloud.mariadb.v20170312.models.UpgradeHourDBInstanceResponse`
|
|
1707
|
+
|
|
1708
|
+
"""
|
|
1709
|
+
try:
|
|
1710
|
+
params = request._serialize()
|
|
1711
|
+
headers = request.headers
|
|
1712
|
+
body = self.call("UpgradeHourDBInstance", params, headers=headers)
|
|
1713
|
+
response = json.loads(body)
|
|
1714
|
+
model = models.UpgradeHourDBInstanceResponse()
|
|
1715
|
+
model._deserialize(response["Response"])
|
|
1716
|
+
return model
|
|
1694
1717
|
except Exception as e:
|
|
1695
1718
|
if isinstance(e, TencentCloudSDKException):
|
|
1696
1719
|
raise
|
|
@@ -12661,6 +12661,136 @@ class UpgradeDedicatedDBInstanceResponse(AbstractModel):
|
|
|
12661
12661
|
self._RequestId = params.get("RequestId")
|
|
12662
12662
|
|
|
12663
12663
|
|
|
12664
|
+
class UpgradeHourDBInstanceRequest(AbstractModel):
|
|
12665
|
+
"""UpgradeHourDBInstance请求参数结构体
|
|
12666
|
+
|
|
12667
|
+
"""
|
|
12668
|
+
|
|
12669
|
+
def __init__(self):
|
|
12670
|
+
r"""
|
|
12671
|
+
:param _InstanceId: 实例ID
|
|
12672
|
+
:type InstanceId: str
|
|
12673
|
+
:param _Memory: 内存大小,单位:GB
|
|
12674
|
+
:type Memory: int
|
|
12675
|
+
:param _Storage: 存储大小,单位:GB
|
|
12676
|
+
:type Storage: int
|
|
12677
|
+
:param _SwitchStartTime: 切换开始时间,格式如: "2019-12-12 07:00:00"。开始时间必须在当前时间一个小时以后,3天以内。
|
|
12678
|
+
:type SwitchStartTime: str
|
|
12679
|
+
:param _SwitchEndTime: 切换结束时间, 格式如: "2019-12-12 07:15:00",结束时间必须大于开始时间。
|
|
12680
|
+
:type SwitchEndTime: str
|
|
12681
|
+
:param _SwitchAutoRetry: 是否自动重试。 0:不自动重试 1:自动重试
|
|
12682
|
+
:type SwitchAutoRetry: int
|
|
12683
|
+
:param _Zones: 变更部署时指定的新可用区列表,第1个为主可用区,其余为从可用区
|
|
12684
|
+
:type Zones: list of str
|
|
12685
|
+
"""
|
|
12686
|
+
self._InstanceId = None
|
|
12687
|
+
self._Memory = None
|
|
12688
|
+
self._Storage = None
|
|
12689
|
+
self._SwitchStartTime = None
|
|
12690
|
+
self._SwitchEndTime = None
|
|
12691
|
+
self._SwitchAutoRetry = None
|
|
12692
|
+
self._Zones = None
|
|
12693
|
+
|
|
12694
|
+
@property
|
|
12695
|
+
def InstanceId(self):
|
|
12696
|
+
return self._InstanceId
|
|
12697
|
+
|
|
12698
|
+
@InstanceId.setter
|
|
12699
|
+
def InstanceId(self, InstanceId):
|
|
12700
|
+
self._InstanceId = InstanceId
|
|
12701
|
+
|
|
12702
|
+
@property
|
|
12703
|
+
def Memory(self):
|
|
12704
|
+
return self._Memory
|
|
12705
|
+
|
|
12706
|
+
@Memory.setter
|
|
12707
|
+
def Memory(self, Memory):
|
|
12708
|
+
self._Memory = Memory
|
|
12709
|
+
|
|
12710
|
+
@property
|
|
12711
|
+
def Storage(self):
|
|
12712
|
+
return self._Storage
|
|
12713
|
+
|
|
12714
|
+
@Storage.setter
|
|
12715
|
+
def Storage(self, Storage):
|
|
12716
|
+
self._Storage = Storage
|
|
12717
|
+
|
|
12718
|
+
@property
|
|
12719
|
+
def SwitchStartTime(self):
|
|
12720
|
+
return self._SwitchStartTime
|
|
12721
|
+
|
|
12722
|
+
@SwitchStartTime.setter
|
|
12723
|
+
def SwitchStartTime(self, SwitchStartTime):
|
|
12724
|
+
self._SwitchStartTime = SwitchStartTime
|
|
12725
|
+
|
|
12726
|
+
@property
|
|
12727
|
+
def SwitchEndTime(self):
|
|
12728
|
+
return self._SwitchEndTime
|
|
12729
|
+
|
|
12730
|
+
@SwitchEndTime.setter
|
|
12731
|
+
def SwitchEndTime(self, SwitchEndTime):
|
|
12732
|
+
self._SwitchEndTime = SwitchEndTime
|
|
12733
|
+
|
|
12734
|
+
@property
|
|
12735
|
+
def SwitchAutoRetry(self):
|
|
12736
|
+
return self._SwitchAutoRetry
|
|
12737
|
+
|
|
12738
|
+
@SwitchAutoRetry.setter
|
|
12739
|
+
def SwitchAutoRetry(self, SwitchAutoRetry):
|
|
12740
|
+
self._SwitchAutoRetry = SwitchAutoRetry
|
|
12741
|
+
|
|
12742
|
+
@property
|
|
12743
|
+
def Zones(self):
|
|
12744
|
+
return self._Zones
|
|
12745
|
+
|
|
12746
|
+
@Zones.setter
|
|
12747
|
+
def Zones(self, Zones):
|
|
12748
|
+
self._Zones = Zones
|
|
12749
|
+
|
|
12750
|
+
|
|
12751
|
+
def _deserialize(self, params):
|
|
12752
|
+
self._InstanceId = params.get("InstanceId")
|
|
12753
|
+
self._Memory = params.get("Memory")
|
|
12754
|
+
self._Storage = params.get("Storage")
|
|
12755
|
+
self._SwitchStartTime = params.get("SwitchStartTime")
|
|
12756
|
+
self._SwitchEndTime = params.get("SwitchEndTime")
|
|
12757
|
+
self._SwitchAutoRetry = params.get("SwitchAutoRetry")
|
|
12758
|
+
self._Zones = params.get("Zones")
|
|
12759
|
+
memeber_set = set(params.keys())
|
|
12760
|
+
for name, value in vars(self).items():
|
|
12761
|
+
property_name = name[1:]
|
|
12762
|
+
if property_name in memeber_set:
|
|
12763
|
+
memeber_set.remove(property_name)
|
|
12764
|
+
if len(memeber_set) > 0:
|
|
12765
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12766
|
+
|
|
12767
|
+
|
|
12768
|
+
|
|
12769
|
+
class UpgradeHourDBInstanceResponse(AbstractModel):
|
|
12770
|
+
"""UpgradeHourDBInstance返回参数结构体
|
|
12771
|
+
|
|
12772
|
+
"""
|
|
12773
|
+
|
|
12774
|
+
def __init__(self):
|
|
12775
|
+
r"""
|
|
12776
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
12777
|
+
:type RequestId: str
|
|
12778
|
+
"""
|
|
12779
|
+
self._RequestId = None
|
|
12780
|
+
|
|
12781
|
+
@property
|
|
12782
|
+
def RequestId(self):
|
|
12783
|
+
return self._RequestId
|
|
12784
|
+
|
|
12785
|
+
@RequestId.setter
|
|
12786
|
+
def RequestId(self, RequestId):
|
|
12787
|
+
self._RequestId = RequestId
|
|
12788
|
+
|
|
12789
|
+
|
|
12790
|
+
def _deserialize(self, params):
|
|
12791
|
+
self._RequestId = params.get("RequestId")
|
|
12792
|
+
|
|
12793
|
+
|
|
12664
12794
|
class ViewPrivileges(AbstractModel):
|
|
12665
12795
|
"""视图权限信息
|
|
12666
12796
|
|
tencentcloud-sdk-python-mariadb-3.0.1206/tencentcloud_sdk_python_mariadb.egg-info/requires.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1206
|
tencentcloud-sdk-python-mariadb-3.0.1183/tencentcloud_sdk_python_mariadb.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1183
|
{tencentcloud-sdk-python-mariadb-3.0.1183 → tencentcloud-sdk-python-mariadb-3.0.1206}/README.rst
RENAMED
|
File without changes
|
{tencentcloud-sdk-python-mariadb-3.0.1183 → tencentcloud-sdk-python-mariadb-3.0.1206}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|