tencentcloud-sdk-python-postgres 3.0.1294__tar.gz → 3.0.1305__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-postgres-3.0.1294 → tencentcloud-sdk-python-postgres-3.0.1305}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-postgres-3.0.1294 → tencentcloud-sdk-python-postgres-3.0.1305}/setup.py +1 -1
- {tencentcloud-sdk-python-postgres-3.0.1294 → tencentcloud-sdk-python-postgres-3.0.1305}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-postgres-3.0.1294 → tencentcloud-sdk-python-postgres-3.0.1305}/tencentcloud/postgres/v20170312/models.py +233 -0
- {tencentcloud-sdk-python-postgres-3.0.1294 → tencentcloud-sdk-python-postgres-3.0.1305}/tencentcloud/postgres/v20170312/postgres_client.py +46 -0
- {tencentcloud-sdk-python-postgres-3.0.1294 → tencentcloud-sdk-python-postgres-3.0.1305}/tencentcloud_sdk_python_postgres.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-postgres-3.0.1305/tencentcloud_sdk_python_postgres.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-postgres-3.0.1294/tencentcloud_sdk_python_postgres.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-postgres-3.0.1294 → tencentcloud-sdk-python-postgres-3.0.1305}/README.rst +0 -0
- {tencentcloud-sdk-python-postgres-3.0.1294 → tencentcloud-sdk-python-postgres-3.0.1305}/setup.cfg +0 -0
- {tencentcloud-sdk-python-postgres-3.0.1294 → tencentcloud-sdk-python-postgres-3.0.1305}/tencentcloud/postgres/__init__.py +0 -0
- {tencentcloud-sdk-python-postgres-3.0.1294 → tencentcloud-sdk-python-postgres-3.0.1305}/tencentcloud/postgres/v20170312/__init__.py +0 -0
- {tencentcloud-sdk-python-postgres-3.0.1294 → tencentcloud-sdk-python-postgres-3.0.1305}/tencentcloud/postgres/v20170312/errorcodes.py +0 -0
- {tencentcloud-sdk-python-postgres-3.0.1294 → tencentcloud-sdk-python-postgres-3.0.1305}/tencentcloud_sdk_python_postgres.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-postgres-3.0.1294 → tencentcloud-sdk-python-postgres-3.0.1305}/tencentcloud_sdk_python_postgres.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-postgres-3.0.1294 → tencentcloud-sdk-python-postgres-3.0.1305}/tencentcloud_sdk_python_postgres.egg-info/top_level.txt +0 -0
{tencentcloud-sdk-python-postgres-3.0.1294 → tencentcloud-sdk-python-postgres-3.0.1305}/setup.py
RENAMED
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-postgres',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1305"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Postgres SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -10505,6 +10505,130 @@ class DescribeLogBackupsResponse(AbstractModel):
|
|
|
10505
10505
|
self._RequestId = params.get("RequestId")
|
|
10506
10506
|
|
|
10507
10507
|
|
|
10508
|
+
class DescribeMaintainTimeWindowRequest(AbstractModel):
|
|
10509
|
+
"""DescribeMaintainTimeWindow请求参数结构体
|
|
10510
|
+
|
|
10511
|
+
"""
|
|
10512
|
+
|
|
10513
|
+
def __init__(self):
|
|
10514
|
+
r"""
|
|
10515
|
+
:param _DBInstanceId: 实例ID
|
|
10516
|
+
:type DBInstanceId: str
|
|
10517
|
+
"""
|
|
10518
|
+
self._DBInstanceId = None
|
|
10519
|
+
|
|
10520
|
+
@property
|
|
10521
|
+
def DBInstanceId(self):
|
|
10522
|
+
"""实例ID
|
|
10523
|
+
:rtype: str
|
|
10524
|
+
"""
|
|
10525
|
+
return self._DBInstanceId
|
|
10526
|
+
|
|
10527
|
+
@DBInstanceId.setter
|
|
10528
|
+
def DBInstanceId(self, DBInstanceId):
|
|
10529
|
+
self._DBInstanceId = DBInstanceId
|
|
10530
|
+
|
|
10531
|
+
|
|
10532
|
+
def _deserialize(self, params):
|
|
10533
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
10534
|
+
memeber_set = set(params.keys())
|
|
10535
|
+
for name, value in vars(self).items():
|
|
10536
|
+
property_name = name[1:]
|
|
10537
|
+
if property_name in memeber_set:
|
|
10538
|
+
memeber_set.remove(property_name)
|
|
10539
|
+
if len(memeber_set) > 0:
|
|
10540
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
10541
|
+
|
|
10542
|
+
|
|
10543
|
+
|
|
10544
|
+
class DescribeMaintainTimeWindowResponse(AbstractModel):
|
|
10545
|
+
"""DescribeMaintainTimeWindow返回参数结构体
|
|
10546
|
+
|
|
10547
|
+
"""
|
|
10548
|
+
|
|
10549
|
+
def __init__(self):
|
|
10550
|
+
r"""
|
|
10551
|
+
:param _DBInstanceId: 实例ID
|
|
10552
|
+
:type DBInstanceId: str
|
|
10553
|
+
:param _MaintainStartTime: 维护开始时间。时区为东八区(UTC+8)
|
|
10554
|
+
:type MaintainStartTime: str
|
|
10555
|
+
:param _MaintainDuration: 维护持续时间。单位:小时
|
|
10556
|
+
:type MaintainDuration: int
|
|
10557
|
+
:param _MaintainWeekDays: 维护周期
|
|
10558
|
+
:type MaintainWeekDays: list of str
|
|
10559
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
10560
|
+
:type RequestId: str
|
|
10561
|
+
"""
|
|
10562
|
+
self._DBInstanceId = None
|
|
10563
|
+
self._MaintainStartTime = None
|
|
10564
|
+
self._MaintainDuration = None
|
|
10565
|
+
self._MaintainWeekDays = None
|
|
10566
|
+
self._RequestId = None
|
|
10567
|
+
|
|
10568
|
+
@property
|
|
10569
|
+
def DBInstanceId(self):
|
|
10570
|
+
"""实例ID
|
|
10571
|
+
:rtype: str
|
|
10572
|
+
"""
|
|
10573
|
+
return self._DBInstanceId
|
|
10574
|
+
|
|
10575
|
+
@DBInstanceId.setter
|
|
10576
|
+
def DBInstanceId(self, DBInstanceId):
|
|
10577
|
+
self._DBInstanceId = DBInstanceId
|
|
10578
|
+
|
|
10579
|
+
@property
|
|
10580
|
+
def MaintainStartTime(self):
|
|
10581
|
+
"""维护开始时间。时区为东八区(UTC+8)
|
|
10582
|
+
:rtype: str
|
|
10583
|
+
"""
|
|
10584
|
+
return self._MaintainStartTime
|
|
10585
|
+
|
|
10586
|
+
@MaintainStartTime.setter
|
|
10587
|
+
def MaintainStartTime(self, MaintainStartTime):
|
|
10588
|
+
self._MaintainStartTime = MaintainStartTime
|
|
10589
|
+
|
|
10590
|
+
@property
|
|
10591
|
+
def MaintainDuration(self):
|
|
10592
|
+
"""维护持续时间。单位:小时
|
|
10593
|
+
:rtype: int
|
|
10594
|
+
"""
|
|
10595
|
+
return self._MaintainDuration
|
|
10596
|
+
|
|
10597
|
+
@MaintainDuration.setter
|
|
10598
|
+
def MaintainDuration(self, MaintainDuration):
|
|
10599
|
+
self._MaintainDuration = MaintainDuration
|
|
10600
|
+
|
|
10601
|
+
@property
|
|
10602
|
+
def MaintainWeekDays(self):
|
|
10603
|
+
"""维护周期
|
|
10604
|
+
:rtype: list of str
|
|
10605
|
+
"""
|
|
10606
|
+
return self._MaintainWeekDays
|
|
10607
|
+
|
|
10608
|
+
@MaintainWeekDays.setter
|
|
10609
|
+
def MaintainWeekDays(self, MaintainWeekDays):
|
|
10610
|
+
self._MaintainWeekDays = MaintainWeekDays
|
|
10611
|
+
|
|
10612
|
+
@property
|
|
10613
|
+
def RequestId(self):
|
|
10614
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
10615
|
+
:rtype: str
|
|
10616
|
+
"""
|
|
10617
|
+
return self._RequestId
|
|
10618
|
+
|
|
10619
|
+
@RequestId.setter
|
|
10620
|
+
def RequestId(self, RequestId):
|
|
10621
|
+
self._RequestId = RequestId
|
|
10622
|
+
|
|
10623
|
+
|
|
10624
|
+
def _deserialize(self, params):
|
|
10625
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
10626
|
+
self._MaintainStartTime = params.get("MaintainStartTime")
|
|
10627
|
+
self._MaintainDuration = params.get("MaintainDuration")
|
|
10628
|
+
self._MaintainWeekDays = params.get("MaintainWeekDays")
|
|
10629
|
+
self._RequestId = params.get("RequestId")
|
|
10630
|
+
|
|
10631
|
+
|
|
10508
10632
|
class DescribeOrdersRequest(AbstractModel):
|
|
10509
10633
|
"""DescribeOrders请求参数结构体
|
|
10510
10634
|
|
|
@@ -15642,6 +15766,115 @@ class ModifyDatabaseOwnerResponse(AbstractModel):
|
|
|
15642
15766
|
self._RequestId = params.get("RequestId")
|
|
15643
15767
|
|
|
15644
15768
|
|
|
15769
|
+
class ModifyMaintainTimeWindowRequest(AbstractModel):
|
|
15770
|
+
"""ModifyMaintainTimeWindow请求参数结构体
|
|
15771
|
+
|
|
15772
|
+
"""
|
|
15773
|
+
|
|
15774
|
+
def __init__(self):
|
|
15775
|
+
r"""
|
|
15776
|
+
:param _DBInstanceId: 实例ID
|
|
15777
|
+
:type DBInstanceId: str
|
|
15778
|
+
:param _MaintainStartTime: 维护开始时间。时区为东八区(UTC+8)
|
|
15779
|
+
:type MaintainStartTime: str
|
|
15780
|
+
:param _MaintainDuration: 维护持续时间。单位:小时
|
|
15781
|
+
:type MaintainDuration: int
|
|
15782
|
+
:param _MaintainWeekDays: 维护周期
|
|
15783
|
+
:type MaintainWeekDays: list of str
|
|
15784
|
+
"""
|
|
15785
|
+
self._DBInstanceId = None
|
|
15786
|
+
self._MaintainStartTime = None
|
|
15787
|
+
self._MaintainDuration = None
|
|
15788
|
+
self._MaintainWeekDays = None
|
|
15789
|
+
|
|
15790
|
+
@property
|
|
15791
|
+
def DBInstanceId(self):
|
|
15792
|
+
"""实例ID
|
|
15793
|
+
:rtype: str
|
|
15794
|
+
"""
|
|
15795
|
+
return self._DBInstanceId
|
|
15796
|
+
|
|
15797
|
+
@DBInstanceId.setter
|
|
15798
|
+
def DBInstanceId(self, DBInstanceId):
|
|
15799
|
+
self._DBInstanceId = DBInstanceId
|
|
15800
|
+
|
|
15801
|
+
@property
|
|
15802
|
+
def MaintainStartTime(self):
|
|
15803
|
+
"""维护开始时间。时区为东八区(UTC+8)
|
|
15804
|
+
:rtype: str
|
|
15805
|
+
"""
|
|
15806
|
+
return self._MaintainStartTime
|
|
15807
|
+
|
|
15808
|
+
@MaintainStartTime.setter
|
|
15809
|
+
def MaintainStartTime(self, MaintainStartTime):
|
|
15810
|
+
self._MaintainStartTime = MaintainStartTime
|
|
15811
|
+
|
|
15812
|
+
@property
|
|
15813
|
+
def MaintainDuration(self):
|
|
15814
|
+
"""维护持续时间。单位:小时
|
|
15815
|
+
:rtype: int
|
|
15816
|
+
"""
|
|
15817
|
+
return self._MaintainDuration
|
|
15818
|
+
|
|
15819
|
+
@MaintainDuration.setter
|
|
15820
|
+
def MaintainDuration(self, MaintainDuration):
|
|
15821
|
+
self._MaintainDuration = MaintainDuration
|
|
15822
|
+
|
|
15823
|
+
@property
|
|
15824
|
+
def MaintainWeekDays(self):
|
|
15825
|
+
"""维护周期
|
|
15826
|
+
:rtype: list of str
|
|
15827
|
+
"""
|
|
15828
|
+
return self._MaintainWeekDays
|
|
15829
|
+
|
|
15830
|
+
@MaintainWeekDays.setter
|
|
15831
|
+
def MaintainWeekDays(self, MaintainWeekDays):
|
|
15832
|
+
self._MaintainWeekDays = MaintainWeekDays
|
|
15833
|
+
|
|
15834
|
+
|
|
15835
|
+
def _deserialize(self, params):
|
|
15836
|
+
self._DBInstanceId = params.get("DBInstanceId")
|
|
15837
|
+
self._MaintainStartTime = params.get("MaintainStartTime")
|
|
15838
|
+
self._MaintainDuration = params.get("MaintainDuration")
|
|
15839
|
+
self._MaintainWeekDays = params.get("MaintainWeekDays")
|
|
15840
|
+
memeber_set = set(params.keys())
|
|
15841
|
+
for name, value in vars(self).items():
|
|
15842
|
+
property_name = name[1:]
|
|
15843
|
+
if property_name in memeber_set:
|
|
15844
|
+
memeber_set.remove(property_name)
|
|
15845
|
+
if len(memeber_set) > 0:
|
|
15846
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
15847
|
+
|
|
15848
|
+
|
|
15849
|
+
|
|
15850
|
+
class ModifyMaintainTimeWindowResponse(AbstractModel):
|
|
15851
|
+
"""ModifyMaintainTimeWindow返回参数结构体
|
|
15852
|
+
|
|
15853
|
+
"""
|
|
15854
|
+
|
|
15855
|
+
def __init__(self):
|
|
15856
|
+
r"""
|
|
15857
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
15858
|
+
:type RequestId: str
|
|
15859
|
+
"""
|
|
15860
|
+
self._RequestId = None
|
|
15861
|
+
|
|
15862
|
+
@property
|
|
15863
|
+
def RequestId(self):
|
|
15864
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
15865
|
+
:rtype: str
|
|
15866
|
+
"""
|
|
15867
|
+
return self._RequestId
|
|
15868
|
+
|
|
15869
|
+
@RequestId.setter
|
|
15870
|
+
def RequestId(self, RequestId):
|
|
15871
|
+
self._RequestId = RequestId
|
|
15872
|
+
|
|
15873
|
+
|
|
15874
|
+
def _deserialize(self, params):
|
|
15875
|
+
self._RequestId = params.get("RequestId")
|
|
15876
|
+
|
|
15877
|
+
|
|
15645
15878
|
class ModifyParameterTemplateRequest(AbstractModel):
|
|
15646
15879
|
"""ModifyParameterTemplate请求参数结构体
|
|
15647
15880
|
|
|
@@ -1180,6 +1180,29 @@ class PostgresClient(AbstractClient):
|
|
|
1180
1180
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1181
1181
|
|
|
1182
1182
|
|
|
1183
|
+
def DescribeMaintainTimeWindow(self, request):
|
|
1184
|
+
"""本接口 (DescribeMaintainTimeWindow) 用于查询实例的维护时间窗口
|
|
1185
|
+
|
|
1186
|
+
:param request: Request instance for DescribeMaintainTimeWindow.
|
|
1187
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.DescribeMaintainTimeWindowRequest`
|
|
1188
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeMaintainTimeWindowResponse`
|
|
1189
|
+
|
|
1190
|
+
"""
|
|
1191
|
+
try:
|
|
1192
|
+
params = request._serialize()
|
|
1193
|
+
headers = request.headers
|
|
1194
|
+
body = self.call("DescribeMaintainTimeWindow", params, headers=headers)
|
|
1195
|
+
response = json.loads(body)
|
|
1196
|
+
model = models.DescribeMaintainTimeWindowResponse()
|
|
1197
|
+
model._deserialize(response["Response"])
|
|
1198
|
+
return model
|
|
1199
|
+
except Exception as e:
|
|
1200
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1201
|
+
raise
|
|
1202
|
+
else:
|
|
1203
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1204
|
+
|
|
1205
|
+
|
|
1183
1206
|
def DescribeOrders(self, request):
|
|
1184
1207
|
"""本接口(DescribeOrders)用于查询订单信息。
|
|
1185
1208
|
|
|
@@ -1964,6 +1987,29 @@ class PostgresClient(AbstractClient):
|
|
|
1964
1987
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1965
1988
|
|
|
1966
1989
|
|
|
1990
|
+
def ModifyMaintainTimeWindow(self, request):
|
|
1991
|
+
"""本接口 (ModifyMaintainTimeWindow) 用于实例维护时间窗口的修改。
|
|
1992
|
+
|
|
1993
|
+
:param request: Request instance for ModifyMaintainTimeWindow.
|
|
1994
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.ModifyMaintainTimeWindowRequest`
|
|
1995
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.ModifyMaintainTimeWindowResponse`
|
|
1996
|
+
|
|
1997
|
+
"""
|
|
1998
|
+
try:
|
|
1999
|
+
params = request._serialize()
|
|
2000
|
+
headers = request.headers
|
|
2001
|
+
body = self.call("ModifyMaintainTimeWindow", params, headers=headers)
|
|
2002
|
+
response = json.loads(body)
|
|
2003
|
+
model = models.ModifyMaintainTimeWindowResponse()
|
|
2004
|
+
model._deserialize(response["Response"])
|
|
2005
|
+
return model
|
|
2006
|
+
except Exception as e:
|
|
2007
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2008
|
+
raise
|
|
2009
|
+
else:
|
|
2010
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2011
|
+
|
|
2012
|
+
|
|
1967
2013
|
def ModifyParameterTemplate(self, request):
|
|
1968
2014
|
"""本接口(ModifyParameterTemplate)主要用于修改参数模板名称,描述等配置,也可用于管理参数模板中的参数列表。
|
|
1969
2015
|
|
tencentcloud-sdk-python-postgres-3.0.1305/tencentcloud_sdk_python_postgres.egg-info/requires.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1305
|
tencentcloud-sdk-python-postgres-3.0.1294/tencentcloud_sdk_python_postgres.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1294
|
{tencentcloud-sdk-python-postgres-3.0.1294 → tencentcloud-sdk-python-postgres-3.0.1305}/README.rst
RENAMED
|
File without changes
|
{tencentcloud-sdk-python-postgres-3.0.1294 → tencentcloud-sdk-python-postgres-3.0.1305}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|