tencentcloud-sdk-python-postgres 3.1.163__py2.py3-none-any.whl → 3.1.172__py2.py3-none-any.whl
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/__init__.py +1 -1
- tencentcloud/postgres/v20170312/errorcodes.py +3 -0
- tencentcloud/postgres/v20170312/models.py +1639 -141
- tencentcloud/postgres/v20170312/postgres_client.py +230 -0
- tencentcloud/postgres/v20170312/postgres_client_async.py +180 -0
- {tencentcloud_sdk_python_postgres-3.1.163.dist-info → tencentcloud_sdk_python_postgres-3.1.172.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_postgres-3.1.172.dist-info/RECORD +11 -0
- tencentcloud_sdk_python_postgres-3.1.163.dist-info/RECORD +0 -11
- {tencentcloud_sdk_python_postgres-3.1.163.dist-info → tencentcloud_sdk_python_postgres-3.1.172.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_postgres-3.1.163.dist-info → tencentcloud_sdk_python_postgres-3.1.172.dist-info}/top_level.txt +0 -0
|
@@ -141,6 +141,75 @@ class PostgresClient(AbstractClient):
|
|
|
141
141
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
142
142
|
|
|
143
143
|
|
|
144
|
+
def CloseDBProxyAddress(self, request):
|
|
145
|
+
r"""本接口用于关闭(删除)数据库代理的指定地址。接口为异步操作,返回 TaskId 供调用方通过 DescribeTasks 查询任务执行进度。约束:代理组至少保留一个地址,不允许删除最后一个地址。
|
|
146
|
+
|
|
147
|
+
:param request: Request instance for CloseDBProxyAddress.
|
|
148
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.CloseDBProxyAddressRequest`
|
|
149
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.CloseDBProxyAddressResponse`
|
|
150
|
+
|
|
151
|
+
"""
|
|
152
|
+
try:
|
|
153
|
+
params = request._serialize()
|
|
154
|
+
headers = request.headers
|
|
155
|
+
body = self.call("CloseDBProxyAddress", params, headers=headers)
|
|
156
|
+
response = json.loads(body)
|
|
157
|
+
model = models.CloseDBProxyAddressResponse()
|
|
158
|
+
model._deserialize(response["Response"])
|
|
159
|
+
return model
|
|
160
|
+
except Exception as e:
|
|
161
|
+
if isinstance(e, TencentCloudSDKException):
|
|
162
|
+
raise
|
|
163
|
+
else:
|
|
164
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
def CloseMem0Service(self, request):
|
|
168
|
+
r"""本接口(CloseMem0Service)用于关闭实例的Mem0服务
|
|
169
|
+
|
|
170
|
+
:param request: Request instance for CloseMem0Service.
|
|
171
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.CloseMem0ServiceRequest`
|
|
172
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.CloseMem0ServiceResponse`
|
|
173
|
+
|
|
174
|
+
"""
|
|
175
|
+
try:
|
|
176
|
+
params = request._serialize()
|
|
177
|
+
headers = request.headers
|
|
178
|
+
body = self.call("CloseMem0Service", params, headers=headers)
|
|
179
|
+
response = json.loads(body)
|
|
180
|
+
model = models.CloseMem0ServiceResponse()
|
|
181
|
+
model._deserialize(response["Response"])
|
|
182
|
+
return model
|
|
183
|
+
except Exception as e:
|
|
184
|
+
if isinstance(e, TencentCloudSDKException):
|
|
185
|
+
raise
|
|
186
|
+
else:
|
|
187
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
def ClosePostgRESTService(self, request):
|
|
191
|
+
r"""本接口(ClosePostgRestService)用于关闭实例的PostgREST服务
|
|
192
|
+
|
|
193
|
+
:param request: Request instance for ClosePostgRESTService.
|
|
194
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.ClosePostgRESTServiceRequest`
|
|
195
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.ClosePostgRESTServiceResponse`
|
|
196
|
+
|
|
197
|
+
"""
|
|
198
|
+
try:
|
|
199
|
+
params = request._serialize()
|
|
200
|
+
headers = request.headers
|
|
201
|
+
body = self.call("ClosePostgRESTService", params, headers=headers)
|
|
202
|
+
response = json.loads(body)
|
|
203
|
+
model = models.ClosePostgRESTServiceResponse()
|
|
204
|
+
model._deserialize(response["Response"])
|
|
205
|
+
return model
|
|
206
|
+
except Exception as e:
|
|
207
|
+
if isinstance(e, TencentCloudSDKException):
|
|
208
|
+
raise
|
|
209
|
+
else:
|
|
210
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
211
|
+
|
|
212
|
+
|
|
144
213
|
def CreateAccount(self, request):
|
|
145
214
|
r"""此接口用于创建数据账号,返回的Oid为账号唯一标识。与数据库系统表pg_roles中记录的oid一致。
|
|
146
215
|
|
|
@@ -279,6 +348,29 @@ class PostgresClient(AbstractClient):
|
|
|
279
348
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
280
349
|
|
|
281
350
|
|
|
351
|
+
def CreateDBProxyAddress(self, request):
|
|
352
|
+
r"""本接口(CreateDBProxyAddress)用于为指定实例的数据库代理创建连接地址。该接口为异步接口,调用成功后返回 TaskId,可通过 DescribeTasks 接口查询任务执行进度。<p>支持同时配置读写分离策略,包括权重模式、路由分配、延迟剔除、故障转移等高级功能。</p>
|
|
353
|
+
|
|
354
|
+
:param request: Request instance for CreateDBProxyAddress.
|
|
355
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.CreateDBProxyAddressRequest`
|
|
356
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.CreateDBProxyAddressResponse`
|
|
357
|
+
|
|
358
|
+
"""
|
|
359
|
+
try:
|
|
360
|
+
params = request._serialize()
|
|
361
|
+
headers = request.headers
|
|
362
|
+
body = self.call("CreateDBProxyAddress", params, headers=headers)
|
|
363
|
+
response = json.loads(body)
|
|
364
|
+
model = models.CreateDBProxyAddressResponse()
|
|
365
|
+
model._deserialize(response["Response"])
|
|
366
|
+
return model
|
|
367
|
+
except Exception as e:
|
|
368
|
+
if isinstance(e, TencentCloudSDKException):
|
|
369
|
+
raise
|
|
370
|
+
else:
|
|
371
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
372
|
+
|
|
373
|
+
|
|
282
374
|
def CreateDatabase(self, request):
|
|
283
375
|
r"""此接口用于创建数据库,需指定数据库名及所有者。
|
|
284
376
|
|
|
@@ -1193,6 +1285,29 @@ class PostgresClient(AbstractClient):
|
|
|
1193
1285
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1194
1286
|
|
|
1195
1287
|
|
|
1288
|
+
def DescribeDBProxySSLConfig(self, request):
|
|
1289
|
+
r"""本接口用于查询指定代理连接地址的 SSL 配置信息,包括 SSL 是否开启、连接地址和 CA 证书下载地址。
|
|
1290
|
+
|
|
1291
|
+
:param request: Request instance for DescribeDBProxySSLConfig.
|
|
1292
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.DescribeDBProxySSLConfigRequest`
|
|
1293
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeDBProxySSLConfigResponse`
|
|
1294
|
+
|
|
1295
|
+
"""
|
|
1296
|
+
try:
|
|
1297
|
+
params = request._serialize()
|
|
1298
|
+
headers = request.headers
|
|
1299
|
+
body = self.call("DescribeDBProxySSLConfig", params, headers=headers)
|
|
1300
|
+
response = json.loads(body)
|
|
1301
|
+
model = models.DescribeDBProxySSLConfigResponse()
|
|
1302
|
+
model._deserialize(response["Response"])
|
|
1303
|
+
return model
|
|
1304
|
+
except Exception as e:
|
|
1305
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1306
|
+
raise
|
|
1307
|
+
else:
|
|
1308
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1309
|
+
|
|
1310
|
+
|
|
1196
1311
|
def DescribeDBProxySpecs(self, request):
|
|
1197
1312
|
r"""查询代理可售规格
|
|
1198
1313
|
|
|
@@ -1423,6 +1538,29 @@ class PostgresClient(AbstractClient):
|
|
|
1423
1538
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1424
1539
|
|
|
1425
1540
|
|
|
1541
|
+
def DescribeMem0Service(self, request):
|
|
1542
|
+
r"""本接口(DescribeMem0Service)用于查询某个实例的Mem0服务信息
|
|
1543
|
+
|
|
1544
|
+
:param request: Request instance for DescribeMem0Service.
|
|
1545
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.DescribeMem0ServiceRequest`
|
|
1546
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeMem0ServiceResponse`
|
|
1547
|
+
|
|
1548
|
+
"""
|
|
1549
|
+
try:
|
|
1550
|
+
params = request._serialize()
|
|
1551
|
+
headers = request.headers
|
|
1552
|
+
body = self.call("DescribeMem0Service", params, headers=headers)
|
|
1553
|
+
response = json.loads(body)
|
|
1554
|
+
model = models.DescribeMem0ServiceResponse()
|
|
1555
|
+
model._deserialize(response["Response"])
|
|
1556
|
+
return model
|
|
1557
|
+
except Exception as e:
|
|
1558
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1559
|
+
raise
|
|
1560
|
+
else:
|
|
1561
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1562
|
+
|
|
1563
|
+
|
|
1426
1564
|
def DescribeOrders(self, request):
|
|
1427
1565
|
r"""本接口(DescribeOrders)用于查询订单信息。
|
|
1428
1566
|
|
|
@@ -1515,6 +1653,29 @@ class PostgresClient(AbstractClient):
|
|
|
1515
1653
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1516
1654
|
|
|
1517
1655
|
|
|
1656
|
+
def DescribePostgRESTService(self, request):
|
|
1657
|
+
r"""本接口(DescribePostgRestService)用于查询某个实例的PostgREST服务信息
|
|
1658
|
+
|
|
1659
|
+
:param request: Request instance for DescribePostgRESTService.
|
|
1660
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.DescribePostgRESTServiceRequest`
|
|
1661
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.DescribePostgRESTServiceResponse`
|
|
1662
|
+
|
|
1663
|
+
"""
|
|
1664
|
+
try:
|
|
1665
|
+
params = request._serialize()
|
|
1666
|
+
headers = request.headers
|
|
1667
|
+
body = self.call("DescribePostgRESTService", params, headers=headers)
|
|
1668
|
+
response = json.loads(body)
|
|
1669
|
+
model = models.DescribePostgRESTServiceResponse()
|
|
1670
|
+
model._deserialize(response["Response"])
|
|
1671
|
+
return model
|
|
1672
|
+
except Exception as e:
|
|
1673
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1674
|
+
raise
|
|
1675
|
+
else:
|
|
1676
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1677
|
+
|
|
1678
|
+
|
|
1518
1679
|
def DescribeProductConfig(self, request):
|
|
1519
1680
|
r"""本接口(DescribeProductConfig)用于查询售卖规格配置。**本接口属于早期接口,已停止功能迭代,推荐使用新接口**[DescribeClasses](https://cloud.tencent.com/document/api/409/89019)**替代**。
|
|
1520
1681
|
|
|
@@ -2300,6 +2461,29 @@ class PostgresClient(AbstractClient):
|
|
|
2300
2461
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2301
2462
|
|
|
2302
2463
|
|
|
2464
|
+
def ModifyDBProxySSLConfig(self, request):
|
|
2465
|
+
r"""本接口(ModifyDBProxySSLConfig)用于修改数据库代理连接地址的 SSL 配置。该接口为异步接口,调用成功后返回 TaskId,可通过 DescribeTasks 接口查询任务执行进度。<p>当前仅支持物理机(local)存储类型的代理开启 SSL。SSL 开启时需提供 ConnectAddress,且必须与代理地址的 Vip 保持一致。</p><p>当 SSL 状态与当前配置一致时,接口直接返回成功,TaskId 为 0,无需等待任务。</p>
|
|
2466
|
+
|
|
2467
|
+
:param request: Request instance for ModifyDBProxySSLConfig.
|
|
2468
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.ModifyDBProxySSLConfigRequest`
|
|
2469
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.ModifyDBProxySSLConfigResponse`
|
|
2470
|
+
|
|
2471
|
+
"""
|
|
2472
|
+
try:
|
|
2473
|
+
params = request._serialize()
|
|
2474
|
+
headers = request.headers
|
|
2475
|
+
body = self.call("ModifyDBProxySSLConfig", params, headers=headers)
|
|
2476
|
+
response = json.loads(body)
|
|
2477
|
+
model = models.ModifyDBProxySSLConfigResponse()
|
|
2478
|
+
model._deserialize(response["Response"])
|
|
2479
|
+
return model
|
|
2480
|
+
except Exception as e:
|
|
2481
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2482
|
+
raise
|
|
2483
|
+
else:
|
|
2484
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2485
|
+
|
|
2486
|
+
|
|
2303
2487
|
def ModifyDatabaseOwner(self, request):
|
|
2304
2488
|
r"""修改数据库所有者
|
|
2305
2489
|
|
|
@@ -2507,6 +2691,52 @@ class PostgresClient(AbstractClient):
|
|
|
2507
2691
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2508
2692
|
|
|
2509
2693
|
|
|
2694
|
+
def OpenMem0Service(self, request):
|
|
2695
|
+
r"""本接口(OpenMem0Service)用于开启实例Mem0服务
|
|
2696
|
+
|
|
2697
|
+
:param request: Request instance for OpenMem0Service.
|
|
2698
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.OpenMem0ServiceRequest`
|
|
2699
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.OpenMem0ServiceResponse`
|
|
2700
|
+
|
|
2701
|
+
"""
|
|
2702
|
+
try:
|
|
2703
|
+
params = request._serialize()
|
|
2704
|
+
headers = request.headers
|
|
2705
|
+
body = self.call("OpenMem0Service", params, headers=headers)
|
|
2706
|
+
response = json.loads(body)
|
|
2707
|
+
model = models.OpenMem0ServiceResponse()
|
|
2708
|
+
model._deserialize(response["Response"])
|
|
2709
|
+
return model
|
|
2710
|
+
except Exception as e:
|
|
2711
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2712
|
+
raise
|
|
2713
|
+
else:
|
|
2714
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2715
|
+
|
|
2716
|
+
|
|
2717
|
+
def OpenPostgRESTService(self, request):
|
|
2718
|
+
r"""本接口(OpenPostgRestService)用于开启实例PostgREST服务
|
|
2719
|
+
|
|
2720
|
+
:param request: Request instance for OpenPostgRESTService.
|
|
2721
|
+
:type request: :class:`tencentcloud.postgres.v20170312.models.OpenPostgRESTServiceRequest`
|
|
2722
|
+
:rtype: :class:`tencentcloud.postgres.v20170312.models.OpenPostgRESTServiceResponse`
|
|
2723
|
+
|
|
2724
|
+
"""
|
|
2725
|
+
try:
|
|
2726
|
+
params = request._serialize()
|
|
2727
|
+
headers = request.headers
|
|
2728
|
+
body = self.call("OpenPostgRESTService", params, headers=headers)
|
|
2729
|
+
response = json.loads(body)
|
|
2730
|
+
model = models.OpenPostgRESTServiceResponse()
|
|
2731
|
+
model._deserialize(response["Response"])
|
|
2732
|
+
return model
|
|
2733
|
+
except Exception as e:
|
|
2734
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2735
|
+
raise
|
|
2736
|
+
else:
|
|
2737
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2738
|
+
|
|
2739
|
+
|
|
2510
2740
|
def RebalanceReadOnlyGroup(self, request):
|
|
2511
2741
|
r"""本接口(RebalanceReadOnlyGroup)用于重新均衡 RO 组内实例的负载。注意,RO 组内 RO 实例会有一次数据库连接瞬断,请确保应用程序能重连数据库,谨慎操作。
|
|
2512
2742
|
|
|
@@ -115,6 +115,60 @@ class PostgresClient(AbstractClient):
|
|
|
115
115
|
|
|
116
116
|
return await self.call_and_deserialize(**kwargs)
|
|
117
117
|
|
|
118
|
+
async def CloseDBProxyAddress(
|
|
119
|
+
self,
|
|
120
|
+
request: models.CloseDBProxyAddressRequest,
|
|
121
|
+
opts: Dict = None,
|
|
122
|
+
) -> models.CloseDBProxyAddressResponse:
|
|
123
|
+
"""
|
|
124
|
+
本接口用于关闭(删除)数据库代理的指定地址。接口为异步操作,返回 TaskId 供调用方通过 DescribeTasks 查询任务执行进度。约束:代理组至少保留一个地址,不允许删除最后一个地址。
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
kwargs = {}
|
|
128
|
+
kwargs["action"] = "CloseDBProxyAddress"
|
|
129
|
+
kwargs["params"] = request._serialize()
|
|
130
|
+
kwargs["resp_cls"] = models.CloseDBProxyAddressResponse
|
|
131
|
+
kwargs["headers"] = request.headers
|
|
132
|
+
kwargs["opts"] = opts or {}
|
|
133
|
+
|
|
134
|
+
return await self.call_and_deserialize(**kwargs)
|
|
135
|
+
|
|
136
|
+
async def CloseMem0Service(
|
|
137
|
+
self,
|
|
138
|
+
request: models.CloseMem0ServiceRequest,
|
|
139
|
+
opts: Dict = None,
|
|
140
|
+
) -> models.CloseMem0ServiceResponse:
|
|
141
|
+
"""
|
|
142
|
+
本接口(CloseMem0Service)用于关闭实例的Mem0服务
|
|
143
|
+
"""
|
|
144
|
+
|
|
145
|
+
kwargs = {}
|
|
146
|
+
kwargs["action"] = "CloseMem0Service"
|
|
147
|
+
kwargs["params"] = request._serialize()
|
|
148
|
+
kwargs["resp_cls"] = models.CloseMem0ServiceResponse
|
|
149
|
+
kwargs["headers"] = request.headers
|
|
150
|
+
kwargs["opts"] = opts or {}
|
|
151
|
+
|
|
152
|
+
return await self.call_and_deserialize(**kwargs)
|
|
153
|
+
|
|
154
|
+
async def ClosePostgRESTService(
|
|
155
|
+
self,
|
|
156
|
+
request: models.ClosePostgRESTServiceRequest,
|
|
157
|
+
opts: Dict = None,
|
|
158
|
+
) -> models.ClosePostgRESTServiceResponse:
|
|
159
|
+
"""
|
|
160
|
+
本接口(ClosePostgRestService)用于关闭实例的PostgREST服务
|
|
161
|
+
"""
|
|
162
|
+
|
|
163
|
+
kwargs = {}
|
|
164
|
+
kwargs["action"] = "ClosePostgRESTService"
|
|
165
|
+
kwargs["params"] = request._serialize()
|
|
166
|
+
kwargs["resp_cls"] = models.ClosePostgRESTServiceResponse
|
|
167
|
+
kwargs["headers"] = request.headers
|
|
168
|
+
kwargs["opts"] = opts or {}
|
|
169
|
+
|
|
170
|
+
return await self.call_and_deserialize(**kwargs)
|
|
171
|
+
|
|
118
172
|
async def CreateAccount(
|
|
119
173
|
self,
|
|
120
174
|
request: models.CreateAccountRequest,
|
|
@@ -223,6 +277,24 @@ class PostgresClient(AbstractClient):
|
|
|
223
277
|
|
|
224
278
|
return await self.call_and_deserialize(**kwargs)
|
|
225
279
|
|
|
280
|
+
async def CreateDBProxyAddress(
|
|
281
|
+
self,
|
|
282
|
+
request: models.CreateDBProxyAddressRequest,
|
|
283
|
+
opts: Dict = None,
|
|
284
|
+
) -> models.CreateDBProxyAddressResponse:
|
|
285
|
+
"""
|
|
286
|
+
本接口(CreateDBProxyAddress)用于为指定实例的数据库代理创建连接地址。该接口为异步接口,调用成功后返回 TaskId,可通过 DescribeTasks 接口查询任务执行进度。<p>支持同时配置读写分离策略,包括权重模式、路由分配、延迟剔除、故障转移等高级功能。</p>
|
|
287
|
+
"""
|
|
288
|
+
|
|
289
|
+
kwargs = {}
|
|
290
|
+
kwargs["action"] = "CreateDBProxyAddress"
|
|
291
|
+
kwargs["params"] = request._serialize()
|
|
292
|
+
kwargs["resp_cls"] = models.CreateDBProxyAddressResponse
|
|
293
|
+
kwargs["headers"] = request.headers
|
|
294
|
+
kwargs["opts"] = opts or {}
|
|
295
|
+
|
|
296
|
+
return await self.call_and_deserialize(**kwargs)
|
|
297
|
+
|
|
226
298
|
async def CreateDatabase(
|
|
227
299
|
self,
|
|
228
300
|
request: models.CreateDatabaseRequest,
|
|
@@ -942,6 +1014,24 @@ class PostgresClient(AbstractClient):
|
|
|
942
1014
|
|
|
943
1015
|
return await self.call_and_deserialize(**kwargs)
|
|
944
1016
|
|
|
1017
|
+
async def DescribeDBProxySSLConfig(
|
|
1018
|
+
self,
|
|
1019
|
+
request: models.DescribeDBProxySSLConfigRequest,
|
|
1020
|
+
opts: Dict = None,
|
|
1021
|
+
) -> models.DescribeDBProxySSLConfigResponse:
|
|
1022
|
+
"""
|
|
1023
|
+
本接口用于查询指定代理连接地址的 SSL 配置信息,包括 SSL 是否开启、连接地址和 CA 证书下载地址。
|
|
1024
|
+
"""
|
|
1025
|
+
|
|
1026
|
+
kwargs = {}
|
|
1027
|
+
kwargs["action"] = "DescribeDBProxySSLConfig"
|
|
1028
|
+
kwargs["params"] = request._serialize()
|
|
1029
|
+
kwargs["resp_cls"] = models.DescribeDBProxySSLConfigResponse
|
|
1030
|
+
kwargs["headers"] = request.headers
|
|
1031
|
+
kwargs["opts"] = opts or {}
|
|
1032
|
+
|
|
1033
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1034
|
+
|
|
945
1035
|
async def DescribeDBProxySpecs(
|
|
946
1036
|
self,
|
|
947
1037
|
request: models.DescribeDBProxySpecsRequest,
|
|
@@ -1122,6 +1212,24 @@ class PostgresClient(AbstractClient):
|
|
|
1122
1212
|
|
|
1123
1213
|
return await self.call_and_deserialize(**kwargs)
|
|
1124
1214
|
|
|
1215
|
+
async def DescribeMem0Service(
|
|
1216
|
+
self,
|
|
1217
|
+
request: models.DescribeMem0ServiceRequest,
|
|
1218
|
+
opts: Dict = None,
|
|
1219
|
+
) -> models.DescribeMem0ServiceResponse:
|
|
1220
|
+
"""
|
|
1221
|
+
本接口(DescribeMem0Service)用于查询某个实例的Mem0服务信息
|
|
1222
|
+
"""
|
|
1223
|
+
|
|
1224
|
+
kwargs = {}
|
|
1225
|
+
kwargs["action"] = "DescribeMem0Service"
|
|
1226
|
+
kwargs["params"] = request._serialize()
|
|
1227
|
+
kwargs["resp_cls"] = models.DescribeMem0ServiceResponse
|
|
1228
|
+
kwargs["headers"] = request.headers
|
|
1229
|
+
kwargs["opts"] = opts or {}
|
|
1230
|
+
|
|
1231
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1232
|
+
|
|
1125
1233
|
async def DescribeOrders(
|
|
1126
1234
|
self,
|
|
1127
1235
|
request: models.DescribeOrdersRequest,
|
|
@@ -1194,6 +1302,24 @@ class PostgresClient(AbstractClient):
|
|
|
1194
1302
|
|
|
1195
1303
|
return await self.call_and_deserialize(**kwargs)
|
|
1196
1304
|
|
|
1305
|
+
async def DescribePostgRESTService(
|
|
1306
|
+
self,
|
|
1307
|
+
request: models.DescribePostgRESTServiceRequest,
|
|
1308
|
+
opts: Dict = None,
|
|
1309
|
+
) -> models.DescribePostgRESTServiceResponse:
|
|
1310
|
+
"""
|
|
1311
|
+
本接口(DescribePostgRestService)用于查询某个实例的PostgREST服务信息
|
|
1312
|
+
"""
|
|
1313
|
+
|
|
1314
|
+
kwargs = {}
|
|
1315
|
+
kwargs["action"] = "DescribePostgRESTService"
|
|
1316
|
+
kwargs["params"] = request._serialize()
|
|
1317
|
+
kwargs["resp_cls"] = models.DescribePostgRESTServiceResponse
|
|
1318
|
+
kwargs["headers"] = request.headers
|
|
1319
|
+
kwargs["opts"] = opts or {}
|
|
1320
|
+
|
|
1321
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1322
|
+
|
|
1197
1323
|
async def DescribeProductConfig(
|
|
1198
1324
|
self,
|
|
1199
1325
|
request: models.DescribeProductConfigRequest,
|
|
@@ -1809,6 +1935,24 @@ class PostgresClient(AbstractClient):
|
|
|
1809
1935
|
|
|
1810
1936
|
return await self.call_and_deserialize(**kwargs)
|
|
1811
1937
|
|
|
1938
|
+
async def ModifyDBProxySSLConfig(
|
|
1939
|
+
self,
|
|
1940
|
+
request: models.ModifyDBProxySSLConfigRequest,
|
|
1941
|
+
opts: Dict = None,
|
|
1942
|
+
) -> models.ModifyDBProxySSLConfigResponse:
|
|
1943
|
+
"""
|
|
1944
|
+
本接口(ModifyDBProxySSLConfig)用于修改数据库代理连接地址的 SSL 配置。该接口为异步接口,调用成功后返回 TaskId,可通过 DescribeTasks 接口查询任务执行进度。<p>当前仅支持物理机(local)存储类型的代理开启 SSL。SSL 开启时需提供 ConnectAddress,且必须与代理地址的 Vip 保持一致。</p><p>当 SSL 状态与当前配置一致时,接口直接返回成功,TaskId 为 0,无需等待任务。</p>
|
|
1945
|
+
"""
|
|
1946
|
+
|
|
1947
|
+
kwargs = {}
|
|
1948
|
+
kwargs["action"] = "ModifyDBProxySSLConfig"
|
|
1949
|
+
kwargs["params"] = request._serialize()
|
|
1950
|
+
kwargs["resp_cls"] = models.ModifyDBProxySSLConfigResponse
|
|
1951
|
+
kwargs["headers"] = request.headers
|
|
1952
|
+
kwargs["opts"] = opts or {}
|
|
1953
|
+
|
|
1954
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1955
|
+
|
|
1812
1956
|
async def ModifyDatabaseOwner(
|
|
1813
1957
|
self,
|
|
1814
1958
|
request: models.ModifyDatabaseOwnerRequest,
|
|
@@ -1971,6 +2115,42 @@ class PostgresClient(AbstractClient):
|
|
|
1971
2115
|
|
|
1972
2116
|
return await self.call_and_deserialize(**kwargs)
|
|
1973
2117
|
|
|
2118
|
+
async def OpenMem0Service(
|
|
2119
|
+
self,
|
|
2120
|
+
request: models.OpenMem0ServiceRequest,
|
|
2121
|
+
opts: Dict = None,
|
|
2122
|
+
) -> models.OpenMem0ServiceResponse:
|
|
2123
|
+
"""
|
|
2124
|
+
本接口(OpenMem0Service)用于开启实例Mem0服务
|
|
2125
|
+
"""
|
|
2126
|
+
|
|
2127
|
+
kwargs = {}
|
|
2128
|
+
kwargs["action"] = "OpenMem0Service"
|
|
2129
|
+
kwargs["params"] = request._serialize()
|
|
2130
|
+
kwargs["resp_cls"] = models.OpenMem0ServiceResponse
|
|
2131
|
+
kwargs["headers"] = request.headers
|
|
2132
|
+
kwargs["opts"] = opts or {}
|
|
2133
|
+
|
|
2134
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2135
|
+
|
|
2136
|
+
async def OpenPostgRESTService(
|
|
2137
|
+
self,
|
|
2138
|
+
request: models.OpenPostgRESTServiceRequest,
|
|
2139
|
+
opts: Dict = None,
|
|
2140
|
+
) -> models.OpenPostgRESTServiceResponse:
|
|
2141
|
+
"""
|
|
2142
|
+
本接口(OpenPostgRestService)用于开启实例PostgREST服务
|
|
2143
|
+
"""
|
|
2144
|
+
|
|
2145
|
+
kwargs = {}
|
|
2146
|
+
kwargs["action"] = "OpenPostgRESTService"
|
|
2147
|
+
kwargs["params"] = request._serialize()
|
|
2148
|
+
kwargs["resp_cls"] = models.OpenPostgRESTServiceResponse
|
|
2149
|
+
kwargs["headers"] = request.headers
|
|
2150
|
+
kwargs["opts"] = opts or {}
|
|
2151
|
+
|
|
2152
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2153
|
+
|
|
1974
2154
|
async def RebalanceReadOnlyGroup(
|
|
1975
2155
|
self,
|
|
1976
2156
|
request: models.RebalanceReadOnlyGroupRequest,
|
|
@@ -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.172
|
|
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.172
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=4eHOEgjKk9Z7GDdftxM1MrBYFbTAfvCdUqpP0znE_7Q,630
|
|
2
|
+
tencentcloud/postgres/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
tencentcloud/postgres/v20170312/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
tencentcloud/postgres/v20170312/errorcodes.py,sha256=KTJ_J57Aq7OdytGZXj4vRo5xfA84WkXJGb9ItL7I4yE,25068
|
|
5
|
+
tencentcloud/postgres/v20170312/models.py,sha256=V_pebXYRBtmnGP2TX9ompWpyus91Ipi--56ZmxNDnnk,889620
|
|
6
|
+
tencentcloud/postgres/v20170312/postgres_client.py,sha256=kub0iRmM0zKzVQhVRnRpIs-XALn0CIq7slhQaIm3wLE,131159
|
|
7
|
+
tencentcloud/postgres/v20170312/postgres_client_async.py,sha256=jU3IVXIXXJDk4ahvL6zcrcmrleVWdTzSywG10JUaHbU,90340
|
|
8
|
+
tencentcloud_sdk_python_postgres-3.1.172.dist-info/METADATA,sha256=DKh5deRafSMW7XvL1fhKrOTBq2l86bc7DcIU9skquXU,1522
|
|
9
|
+
tencentcloud_sdk_python_postgres-3.1.172.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
+
tencentcloud_sdk_python_postgres-3.1.172.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
+
tencentcloud_sdk_python_postgres-3.1.172.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=xeYzU6OPCEeZvDaoRpTcAnz05U0ygUdbr2cnP7IeBc8,630
|
|
2
|
-
tencentcloud/postgres/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
tencentcloud/postgres/v20170312/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
tencentcloud/postgres/v20170312/errorcodes.py,sha256=3-TkUxmyCe70T3Ga_g3ltKdWQ1ladpExgqFzo5wYvMQ,24944
|
|
5
|
-
tencentcloud/postgres/v20170312/models.py,sha256=bWDQ7cNzOeCAIPRFOzSoFk9C-RhYMwrnmnRtkBcTr9w,838772
|
|
6
|
-
tencentcloud/postgres/v20170312/postgres_client.py,sha256=1QEflXpCWb47L9a9WpFH39RkmrHddUxBRNmICjAbpLU,120737
|
|
7
|
-
tencentcloud/postgres/v20170312/postgres_client_async.py,sha256=5X3wNay9TFiDb1gg_UpjoNJVa_6gUdaGZvlRI60QTSk,83038
|
|
8
|
-
tencentcloud_sdk_python_postgres-3.1.163.dist-info/METADATA,sha256=gs-mJW1XsaGkKeVg-AkrfqB0G4NFs0CMFCn6nNaasZQ,1522
|
|
9
|
-
tencentcloud_sdk_python_postgres-3.1.163.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
-
tencentcloud_sdk_python_postgres-3.1.163.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
-
tencentcloud_sdk_python_postgres-3.1.163.dist-info/RECORD,,
|
|
File without changes
|