tencentcloud-sdk-python-postgres 3.1.152__tar.gz → 3.1.154__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.1.152 → tencentcloud_sdk_python_postgres-3.1.154}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_postgres-3.1.152 → tencentcloud_sdk_python_postgres-3.1.154}/setup.py +1 -1
- {tencentcloud_sdk_python_postgres-3.1.152 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_postgres-3.1.152 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud/postgres/v20170312/models.py +34 -0
- {tencentcloud_sdk_python_postgres-3.1.152 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud/postgres/v20170312/postgres_client.py +36 -0
- {tencentcloud_sdk_python_postgres-3.1.152 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud/postgres/v20170312/postgres_client_async.py +31 -0
- {tencentcloud_sdk_python_postgres-3.1.152 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud_sdk_python_postgres.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_postgres-3.1.154/tencentcloud_sdk_python_postgres.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_postgres-3.1.152/tencentcloud_sdk_python_postgres.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_postgres-3.1.152 → tencentcloud_sdk_python_postgres-3.1.154}/README.rst +0 -0
- {tencentcloud_sdk_python_postgres-3.1.152 → tencentcloud_sdk_python_postgres-3.1.154}/setup.cfg +0 -0
- {tencentcloud_sdk_python_postgres-3.1.152 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud/postgres/__init__.py +0 -0
- {tencentcloud_sdk_python_postgres-3.1.152 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud/postgres/v20170312/__init__.py +0 -0
- {tencentcloud_sdk_python_postgres-3.1.152 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud/postgres/v20170312/errorcodes.py +0 -0
- {tencentcloud_sdk_python_postgres-3.1.152 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud_sdk_python_postgres.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_postgres-3.1.152 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud_sdk_python_postgres.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_postgres-3.1.152 → tencentcloud_sdk_python_postgres-3.1.154}/tencentcloud_sdk_python_postgres.egg-info/top_level.txt +0 -0
{tencentcloud_sdk_python_postgres-3.1.152 → tencentcloud_sdk_python_postgres-3.1.154}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-postgres
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.154
|
|
4
4
|
Summary: Tencent Cloud Postgres 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.154
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
{tencentcloud_sdk_python_postgres-3.1.152 → tencentcloud_sdk_python_postgres-3.1.154}/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.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.154,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Postgres SDK for Python',
|
|
@@ -7388,6 +7388,40 @@ class DeleteDBInstanceNetworkAccessResponse(AbstractModel):
|
|
|
7388
7388
|
self._RequestId = params.get("RequestId")
|
|
7389
7389
|
|
|
7390
7390
|
|
|
7391
|
+
class DeleteDatabaseRequest(AbstractModel):
|
|
7392
|
+
r"""DeleteDatabase请求参数结构体
|
|
7393
|
+
|
|
7394
|
+
"""
|
|
7395
|
+
|
|
7396
|
+
|
|
7397
|
+
class DeleteDatabaseResponse(AbstractModel):
|
|
7398
|
+
r"""DeleteDatabase返回参数结构体
|
|
7399
|
+
|
|
7400
|
+
"""
|
|
7401
|
+
|
|
7402
|
+
def __init__(self):
|
|
7403
|
+
r"""
|
|
7404
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7405
|
+
:type RequestId: str
|
|
7406
|
+
"""
|
|
7407
|
+
self._RequestId = None
|
|
7408
|
+
|
|
7409
|
+
@property
|
|
7410
|
+
def RequestId(self):
|
|
7411
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7412
|
+
:rtype: str
|
|
7413
|
+
"""
|
|
7414
|
+
return self._RequestId
|
|
7415
|
+
|
|
7416
|
+
@RequestId.setter
|
|
7417
|
+
def RequestId(self, RequestId):
|
|
7418
|
+
self._RequestId = RequestId
|
|
7419
|
+
|
|
7420
|
+
|
|
7421
|
+
def _deserialize(self, params):
|
|
7422
|
+
self._RequestId = params.get("RequestId")
|
|
7423
|
+
|
|
7424
|
+
|
|
7391
7425
|
class DeleteLogBackupRequest(AbstractModel):
|
|
7392
7426
|
r"""DeleteLogBackup请求参数结构体
|
|
7393
7427
|
|
|
@@ -534,6 +534,42 @@ class PostgresClient(AbstractClient):
|
|
|
534
534
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
535
535
|
|
|
536
536
|
|
|
537
|
+
def DeleteDatabase(self, request):
|
|
538
|
+
r"""本接口(DeleteDatabase)用于删除指定 PostgreSQL 实例中的数据库。删除操作会直接调用底层存储引擎执行,为保障数据安全和系统稳定,接口在执行前会进行多项前置校验。
|
|
539
|
+
使用限制
|
|
540
|
+
|
|
541
|
+
- 实例状态限制:仅允许对运行中的实例执行删除数据库操作。
|
|
542
|
+
|
|
543
|
+
- 只读实例限制:只读实例不支持删除数据库操作。由于只读实例的数据来源于主实例同步,不允许在只读侧执行库级别的删除变更。若对只读实例发起此请求,将直接被拦截并返回错误。
|
|
544
|
+
|
|
545
|
+
- 数据库名合法性限制:待删除的数据库名称必须通过以下校验,否则报错:
|
|
546
|
+
长度符合 PostgreSQL 命名规范
|
|
547
|
+
字符集合法(仅允许字母、数字、下划线,且不能以数字开头)
|
|
548
|
+
不能为系统保留库名(如 postgres、template0、template1 等)
|
|
549
|
+
不能为 PostgreSQL 关键字/保留字
|
|
550
|
+
|
|
551
|
+
- 不可逆操作:数据库一经删除,数据将无法恢复。执行前请确认已做好必要的数据备份。
|
|
552
|
+
|
|
553
|
+
:param request: Request instance for DeleteDatabase.
|
|
554
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.DeleteDatabaseRequest`
|
|
555
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.DeleteDatabaseResponse`
|
|
556
|
+
|
|
557
|
+
"""
|
|
558
|
+
try:
|
|
559
|
+
params = request._serialize()
|
|
560
|
+
headers = request.headers
|
|
561
|
+
body = self.call("DeleteDatabase", params, headers=headers)
|
|
562
|
+
response = json.loads(body)
|
|
563
|
+
model = models.DeleteDatabaseResponse()
|
|
564
|
+
model._deserialize(response["Response"])
|
|
565
|
+
return model
|
|
566
|
+
except Exception as e:
|
|
567
|
+
if isinstance(e, TencentCloudSDKException):
|
|
568
|
+
raise
|
|
569
|
+
else:
|
|
570
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
571
|
+
|
|
572
|
+
|
|
537
573
|
def DeleteLogBackup(self, request):
|
|
538
574
|
r"""本接口(DeleteLogBackup)用于删除实例指定日志备份。
|
|
539
575
|
|
|
@@ -423,6 +423,37 @@ class PostgresClient(AbstractClient):
|
|
|
423
423
|
|
|
424
424
|
return await self.call_and_deserialize(**kwargs)
|
|
425
425
|
|
|
426
|
+
async def DeleteDatabase(
|
|
427
|
+
self,
|
|
428
|
+
request: models.DeleteDatabaseRequest,
|
|
429
|
+
opts: Dict = None,
|
|
430
|
+
) -> models.DeleteDatabaseResponse:
|
|
431
|
+
"""
|
|
432
|
+
本接口(DeleteDatabase)用于删除指定 PostgreSQL 实例中的数据库。删除操作会直接调用底层存储引擎执行,为保障数据安全和系统稳定,接口在执行前会进行多项前置校验。
|
|
433
|
+
使用限制
|
|
434
|
+
|
|
435
|
+
- 实例状态限制:仅允许对运行中的实例执行删除数据库操作。
|
|
436
|
+
|
|
437
|
+
- 只读实例限制:只读实例不支持删除数据库操作。由于只读实例的数据来源于主实例同步,不允许在只读侧执行库级别的删除变更。若对只读实例发起此请求,将直接被拦截并返回错误。
|
|
438
|
+
|
|
439
|
+
- 数据库名合法性限制:待删除的数据库名称必须通过以下校验,否则报错:
|
|
440
|
+
长度符合 PostgreSQL 命名规范
|
|
441
|
+
字符集合法(仅允许字母、数字、下划线,且不能以数字开头)
|
|
442
|
+
不能为系统保留库名(如 postgres、template0、template1 等)
|
|
443
|
+
不能为 PostgreSQL 关键字/保留字
|
|
444
|
+
|
|
445
|
+
- 不可逆操作:数据库一经删除,数据将无法恢复。执行前请确认已做好必要的数据备份。
|
|
446
|
+
"""
|
|
447
|
+
|
|
448
|
+
kwargs = {}
|
|
449
|
+
kwargs["action"] = "DeleteDatabase"
|
|
450
|
+
kwargs["params"] = request._serialize()
|
|
451
|
+
kwargs["resp_cls"] = models.DeleteDatabaseResponse
|
|
452
|
+
kwargs["headers"] = request.headers
|
|
453
|
+
kwargs["opts"] = opts or {}
|
|
454
|
+
|
|
455
|
+
return await self.call_and_deserialize(**kwargs)
|
|
456
|
+
|
|
426
457
|
async def DeleteLogBackup(
|
|
427
458
|
self,
|
|
428
459
|
request: models.DeleteLogBackupRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-postgres
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.154
|
|
4
4
|
Summary: Tencent Cloud Postgres 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.154
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
tencentcloud_sdk_python_postgres-3.1.154/tencentcloud_sdk_python_postgres.egg-info/requires.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.154
|
tencentcloud_sdk_python_postgres-3.1.152/tencentcloud_sdk_python_postgres.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.152
|
{tencentcloud_sdk_python_postgres-3.1.152 → tencentcloud_sdk_python_postgres-3.1.154}/README.rst
RENAMED
|
File without changes
|
{tencentcloud_sdk_python_postgres-3.1.152 → tencentcloud_sdk_python_postgres-3.1.154}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|