tencentcloud-sdk-python-postgres 3.0.1384__tar.gz → 3.0.1386__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.1384 → tencentcloud-sdk-python-postgres-3.0.1386}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-postgres-3.0.1384 → tencentcloud-sdk-python-postgres-3.0.1386}/setup.py +1 -1
- {tencentcloud-sdk-python-postgres-3.0.1384 → tencentcloud-sdk-python-postgres-3.0.1386}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-postgres-3.0.1384 → tencentcloud-sdk-python-postgres-3.0.1386}/tencentcloud/postgres/v20170312/models.py +0 -214
- {tencentcloud-sdk-python-postgres-3.0.1384 → tencentcloud-sdk-python-postgres-3.0.1386}/tencentcloud/postgres/v20170312/postgres_client.py +3 -28
- {tencentcloud-sdk-python-postgres-3.0.1384 → tencentcloud-sdk-python-postgres-3.0.1386}/tencentcloud_sdk_python_postgres.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-postgres-3.0.1386/tencentcloud_sdk_python_postgres.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-postgres-3.0.1384/tencentcloud_sdk_python_postgres.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-postgres-3.0.1384 → tencentcloud-sdk-python-postgres-3.0.1386}/README.rst +0 -0
- {tencentcloud-sdk-python-postgres-3.0.1384 → tencentcloud-sdk-python-postgres-3.0.1386}/setup.cfg +0 -0
- {tencentcloud-sdk-python-postgres-3.0.1384 → tencentcloud-sdk-python-postgres-3.0.1386}/tencentcloud/postgres/__init__.py +0 -0
- {tencentcloud-sdk-python-postgres-3.0.1384 → tencentcloud-sdk-python-postgres-3.0.1386}/tencentcloud/postgres/v20170312/__init__.py +0 -0
- {tencentcloud-sdk-python-postgres-3.0.1384 → tencentcloud-sdk-python-postgres-3.0.1386}/tencentcloud/postgres/v20170312/errorcodes.py +0 -0
- {tencentcloud-sdk-python-postgres-3.0.1384 → tencentcloud-sdk-python-postgres-3.0.1386}/tencentcloud_sdk_python_postgres.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-postgres-3.0.1384 → tencentcloud-sdk-python-postgres-3.0.1386}/tencentcloud_sdk_python_postgres.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-postgres-3.0.1384 → tencentcloud-sdk-python-postgres-3.0.1386}/tencentcloud_sdk_python_postgres.egg-info/top_level.txt +0 -0
{tencentcloud-sdk-python-postgres-3.0.1384 → tencentcloud-sdk-python-postgres-3.0.1386}/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.1386"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Postgres SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -21304,220 +21304,6 @@ class UpgradeDBInstanceMajorVersionResponse(AbstractModel):
|
|
|
21304
21304
|
self._RequestId = params.get("RequestId")
|
|
21305
21305
|
|
|
21306
21306
|
|
|
21307
|
-
class UpgradeDBInstanceRequest(AbstractModel):
|
|
21308
|
-
"""UpgradeDBInstance请求参数结构体
|
|
21309
|
-
|
|
21310
|
-
"""
|
|
21311
|
-
|
|
21312
|
-
def __init__(self):
|
|
21313
|
-
r"""
|
|
21314
|
-
:param _Memory: 升级后的实例内存大小,单位GB
|
|
21315
|
-
:type Memory: int
|
|
21316
|
-
:param _Storage: 升级后的实例磁盘大小,单位GB
|
|
21317
|
-
:type Storage: int
|
|
21318
|
-
:param _DBInstanceId: 实例ID,形如postgres-lnp6j617
|
|
21319
|
-
:type DBInstanceId: str
|
|
21320
|
-
:param _AutoVoucher: 是否自动使用代金券,1是,0否,默认不使用
|
|
21321
|
-
:type AutoVoucher: int
|
|
21322
|
-
:param _VoucherIds: 代金券ID列表,目前仅支持指定一张代金券
|
|
21323
|
-
:type VoucherIds: list of str
|
|
21324
|
-
:param _ActivityId: 活动ID
|
|
21325
|
-
:type ActivityId: int
|
|
21326
|
-
:param _SwitchTag: 指定实例配置完成变更后的切换时间,默认为 立即切换,入参为 0 :立即切换 。1:指定时间切换。
|
|
21327
|
-
:type SwitchTag: int
|
|
21328
|
-
:param _SwitchStartTime: 切换开始时间
|
|
21329
|
-
:type SwitchStartTime: str
|
|
21330
|
-
:param _SwitchEndTime: 切换截止时间
|
|
21331
|
-
:type SwitchEndTime: str
|
|
21332
|
-
"""
|
|
21333
|
-
self._Memory = None
|
|
21334
|
-
self._Storage = None
|
|
21335
|
-
self._DBInstanceId = None
|
|
21336
|
-
self._AutoVoucher = None
|
|
21337
|
-
self._VoucherIds = None
|
|
21338
|
-
self._ActivityId = None
|
|
21339
|
-
self._SwitchTag = None
|
|
21340
|
-
self._SwitchStartTime = None
|
|
21341
|
-
self._SwitchEndTime = None
|
|
21342
|
-
|
|
21343
|
-
@property
|
|
21344
|
-
def Memory(self):
|
|
21345
|
-
"""升级后的实例内存大小,单位GB
|
|
21346
|
-
:rtype: int
|
|
21347
|
-
"""
|
|
21348
|
-
return self._Memory
|
|
21349
|
-
|
|
21350
|
-
@Memory.setter
|
|
21351
|
-
def Memory(self, Memory):
|
|
21352
|
-
self._Memory = Memory
|
|
21353
|
-
|
|
21354
|
-
@property
|
|
21355
|
-
def Storage(self):
|
|
21356
|
-
"""升级后的实例磁盘大小,单位GB
|
|
21357
|
-
:rtype: int
|
|
21358
|
-
"""
|
|
21359
|
-
return self._Storage
|
|
21360
|
-
|
|
21361
|
-
@Storage.setter
|
|
21362
|
-
def Storage(self, Storage):
|
|
21363
|
-
self._Storage = Storage
|
|
21364
|
-
|
|
21365
|
-
@property
|
|
21366
|
-
def DBInstanceId(self):
|
|
21367
|
-
"""实例ID,形如postgres-lnp6j617
|
|
21368
|
-
:rtype: str
|
|
21369
|
-
"""
|
|
21370
|
-
return self._DBInstanceId
|
|
21371
|
-
|
|
21372
|
-
@DBInstanceId.setter
|
|
21373
|
-
def DBInstanceId(self, DBInstanceId):
|
|
21374
|
-
self._DBInstanceId = DBInstanceId
|
|
21375
|
-
|
|
21376
|
-
@property
|
|
21377
|
-
def AutoVoucher(self):
|
|
21378
|
-
"""是否自动使用代金券,1是,0否,默认不使用
|
|
21379
|
-
:rtype: int
|
|
21380
|
-
"""
|
|
21381
|
-
return self._AutoVoucher
|
|
21382
|
-
|
|
21383
|
-
@AutoVoucher.setter
|
|
21384
|
-
def AutoVoucher(self, AutoVoucher):
|
|
21385
|
-
self._AutoVoucher = AutoVoucher
|
|
21386
|
-
|
|
21387
|
-
@property
|
|
21388
|
-
def VoucherIds(self):
|
|
21389
|
-
"""代金券ID列表,目前仅支持指定一张代金券
|
|
21390
|
-
:rtype: list of str
|
|
21391
|
-
"""
|
|
21392
|
-
return self._VoucherIds
|
|
21393
|
-
|
|
21394
|
-
@VoucherIds.setter
|
|
21395
|
-
def VoucherIds(self, VoucherIds):
|
|
21396
|
-
self._VoucherIds = VoucherIds
|
|
21397
|
-
|
|
21398
|
-
@property
|
|
21399
|
-
def ActivityId(self):
|
|
21400
|
-
"""活动ID
|
|
21401
|
-
:rtype: int
|
|
21402
|
-
"""
|
|
21403
|
-
return self._ActivityId
|
|
21404
|
-
|
|
21405
|
-
@ActivityId.setter
|
|
21406
|
-
def ActivityId(self, ActivityId):
|
|
21407
|
-
self._ActivityId = ActivityId
|
|
21408
|
-
|
|
21409
|
-
@property
|
|
21410
|
-
def SwitchTag(self):
|
|
21411
|
-
"""指定实例配置完成变更后的切换时间,默认为 立即切换,入参为 0 :立即切换 。1:指定时间切换。
|
|
21412
|
-
:rtype: int
|
|
21413
|
-
"""
|
|
21414
|
-
return self._SwitchTag
|
|
21415
|
-
|
|
21416
|
-
@SwitchTag.setter
|
|
21417
|
-
def SwitchTag(self, SwitchTag):
|
|
21418
|
-
self._SwitchTag = SwitchTag
|
|
21419
|
-
|
|
21420
|
-
@property
|
|
21421
|
-
def SwitchStartTime(self):
|
|
21422
|
-
"""切换开始时间
|
|
21423
|
-
:rtype: str
|
|
21424
|
-
"""
|
|
21425
|
-
return self._SwitchStartTime
|
|
21426
|
-
|
|
21427
|
-
@SwitchStartTime.setter
|
|
21428
|
-
def SwitchStartTime(self, SwitchStartTime):
|
|
21429
|
-
self._SwitchStartTime = SwitchStartTime
|
|
21430
|
-
|
|
21431
|
-
@property
|
|
21432
|
-
def SwitchEndTime(self):
|
|
21433
|
-
"""切换截止时间
|
|
21434
|
-
:rtype: str
|
|
21435
|
-
"""
|
|
21436
|
-
return self._SwitchEndTime
|
|
21437
|
-
|
|
21438
|
-
@SwitchEndTime.setter
|
|
21439
|
-
def SwitchEndTime(self, SwitchEndTime):
|
|
21440
|
-
self._SwitchEndTime = SwitchEndTime
|
|
21441
|
-
|
|
21442
|
-
|
|
21443
|
-
def _deserialize(self, params):
|
|
21444
|
-
self._Memory = params.get("Memory")
|
|
21445
|
-
self._Storage = params.get("Storage")
|
|
21446
|
-
self._DBInstanceId = params.get("DBInstanceId")
|
|
21447
|
-
self._AutoVoucher = params.get("AutoVoucher")
|
|
21448
|
-
self._VoucherIds = params.get("VoucherIds")
|
|
21449
|
-
self._ActivityId = params.get("ActivityId")
|
|
21450
|
-
self._SwitchTag = params.get("SwitchTag")
|
|
21451
|
-
self._SwitchStartTime = params.get("SwitchStartTime")
|
|
21452
|
-
self._SwitchEndTime = params.get("SwitchEndTime")
|
|
21453
|
-
memeber_set = set(params.keys())
|
|
21454
|
-
for name, value in vars(self).items():
|
|
21455
|
-
property_name = name[1:]
|
|
21456
|
-
if property_name in memeber_set:
|
|
21457
|
-
memeber_set.remove(property_name)
|
|
21458
|
-
if len(memeber_set) > 0:
|
|
21459
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
21460
|
-
|
|
21461
|
-
|
|
21462
|
-
|
|
21463
|
-
class UpgradeDBInstanceResponse(AbstractModel):
|
|
21464
|
-
"""UpgradeDBInstance返回参数结构体
|
|
21465
|
-
|
|
21466
|
-
"""
|
|
21467
|
-
|
|
21468
|
-
def __init__(self):
|
|
21469
|
-
r"""
|
|
21470
|
-
:param _DealName: 交易名字。
|
|
21471
|
-
:type DealName: str
|
|
21472
|
-
:param _BillId: 冻结流水号
|
|
21473
|
-
:type BillId: str
|
|
21474
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
21475
|
-
:type RequestId: str
|
|
21476
|
-
"""
|
|
21477
|
-
self._DealName = None
|
|
21478
|
-
self._BillId = None
|
|
21479
|
-
self._RequestId = None
|
|
21480
|
-
|
|
21481
|
-
@property
|
|
21482
|
-
def DealName(self):
|
|
21483
|
-
"""交易名字。
|
|
21484
|
-
:rtype: str
|
|
21485
|
-
"""
|
|
21486
|
-
return self._DealName
|
|
21487
|
-
|
|
21488
|
-
@DealName.setter
|
|
21489
|
-
def DealName(self, DealName):
|
|
21490
|
-
self._DealName = DealName
|
|
21491
|
-
|
|
21492
|
-
@property
|
|
21493
|
-
def BillId(self):
|
|
21494
|
-
"""冻结流水号
|
|
21495
|
-
:rtype: str
|
|
21496
|
-
"""
|
|
21497
|
-
return self._BillId
|
|
21498
|
-
|
|
21499
|
-
@BillId.setter
|
|
21500
|
-
def BillId(self, BillId):
|
|
21501
|
-
self._BillId = BillId
|
|
21502
|
-
|
|
21503
|
-
@property
|
|
21504
|
-
def RequestId(self):
|
|
21505
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
21506
|
-
:rtype: str
|
|
21507
|
-
"""
|
|
21508
|
-
return self._RequestId
|
|
21509
|
-
|
|
21510
|
-
@RequestId.setter
|
|
21511
|
-
def RequestId(self, RequestId):
|
|
21512
|
-
self._RequestId = RequestId
|
|
21513
|
-
|
|
21514
|
-
|
|
21515
|
-
def _deserialize(self, params):
|
|
21516
|
-
self._DealName = params.get("DealName")
|
|
21517
|
-
self._BillId = params.get("BillId")
|
|
21518
|
-
self._RequestId = params.get("RequestId")
|
|
21519
|
-
|
|
21520
|
-
|
|
21521
21307
|
class Version(AbstractModel):
|
|
21522
21308
|
"""数据库版本号信息
|
|
21523
21309
|
|
|
@@ -815,7 +815,7 @@ class PostgresClient(AbstractClient):
|
|
|
815
815
|
|
|
816
816
|
|
|
817
817
|
def DescribeDBBackups(self, request):
|
|
818
|
-
"""本接口(DescribeDBBackups
|
|
818
|
+
"""本接口(DescribeDBBackups)用于查询实例备份列表。**本接口属于早期接口,已停止功能迭代,推荐使用接口**[DescribeBaseBackups](https://cloud.tencent.com/document/api/409/89022)**替代**。
|
|
819
819
|
|
|
820
820
|
:param request: Request instance for DescribeDBBackups.
|
|
821
821
|
:type request: :class:`tencentcloud.postgres.v20170312.models.DescribeDBBackupsRequest`
|
|
@@ -1049,7 +1049,7 @@ class PostgresClient(AbstractClient):
|
|
|
1049
1049
|
|
|
1050
1050
|
|
|
1051
1051
|
def DescribeDBXlogs(self, request):
|
|
1052
|
-
"""本接口(DescribeDBXlogs)用于获取实例Xlog
|
|
1052
|
+
"""本接口(DescribeDBXlogs)用于获取实例Xlog列表。 **本接口属于早期接口,已停止功能迭代,推荐使用接口**[DescribeLogBackups](https://cloud.tencent.com/document/api/409/89021)**替代**。
|
|
1053
1053
|
|
|
1054
1054
|
:param request: Request instance for DescribeDBXlogs.
|
|
1055
1055
|
:type request: :class:`tencentcloud.postgres.v20170312.models.DescribeDBXlogsRequest`
|
|
@@ -1325,7 +1325,7 @@ class PostgresClient(AbstractClient):
|
|
|
1325
1325
|
|
|
1326
1326
|
|
|
1327
1327
|
def DescribeProductConfig(self, request):
|
|
1328
|
-
"""本接口(DescribeProductConfig
|
|
1328
|
+
"""本接口(DescribeProductConfig)用于查询售卖规格配置。**本接口属于早期接口,已停止功能迭代,推荐使用新接口**[DescribeClasses](https://cloud.tencent.com/document/api/409/89019)**替代**。
|
|
1329
1329
|
|
|
1330
1330
|
:param request: Request instance for DescribeProductConfig.
|
|
1331
1331
|
:type request: :class:`tencentcloud.postgres.v20170312.models.DescribeProductConfigRequest`
|
|
@@ -2390,31 +2390,6 @@ class PostgresClient(AbstractClient):
|
|
|
2390
2390
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2391
2391
|
|
|
2392
2392
|
|
|
2393
|
-
def UpgradeDBInstance(self, request):
|
|
2394
|
-
"""早期接口,不规范,已提供新接口 ModifyDBInstanceSpec 替换
|
|
2395
|
-
|
|
2396
|
-
本接口(UpgradeDBInstance)用于升级实例配置。本接口已废弃,推荐使用接口[ModifyDBInstanceSpec](https://cloud.tencent.com/document/api/409/63689)替代。
|
|
2397
|
-
|
|
2398
|
-
:param request: Request instance for UpgradeDBInstance.
|
|
2399
|
-
:type request: :class:`tencentcloud.postgres.v20170312.models.UpgradeDBInstanceRequest`
|
|
2400
|
-
:rtype: :class:`tencentcloud.postgres.v20170312.models.UpgradeDBInstanceResponse`
|
|
2401
|
-
|
|
2402
|
-
"""
|
|
2403
|
-
try:
|
|
2404
|
-
params = request._serialize()
|
|
2405
|
-
headers = request.headers
|
|
2406
|
-
body = self.call("UpgradeDBInstance", params, headers=headers)
|
|
2407
|
-
response = json.loads(body)
|
|
2408
|
-
model = models.UpgradeDBInstanceResponse()
|
|
2409
|
-
model._deserialize(response["Response"])
|
|
2410
|
-
return model
|
|
2411
|
-
except Exception as e:
|
|
2412
|
-
if isinstance(e, TencentCloudSDKException):
|
|
2413
|
-
raise
|
|
2414
|
-
else:
|
|
2415
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
2393
|
def UpgradeDBInstanceKernelVersion(self, request):
|
|
2419
2394
|
"""本接口(UpgradeDBInstanceKernelVersion)用于升级实例的内核版本号。
|
|
2420
2395
|
|
tencentcloud-sdk-python-postgres-3.0.1386/tencentcloud_sdk_python_postgres.egg-info/requires.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1386
|
tencentcloud-sdk-python-postgres-3.0.1384/tencentcloud_sdk_python_postgres.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1384
|
{tencentcloud-sdk-python-postgres-3.0.1384 → tencentcloud-sdk-python-postgres-3.0.1386}/README.rst
RENAMED
|
File without changes
|
{tencentcloud-sdk-python-postgres-3.0.1384 → tencentcloud-sdk-python-postgres-3.0.1386}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|