tencentcloud-sdk-python-postgres 3.1.134__py2.py3-none-any.whl → 3.1.152__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.
@@ -256,6 +256,29 @@ class PostgresClient(AbstractClient):
256
256
  raise TencentCloudSDKException(type(e).__name__, str(e))
257
257
 
258
258
 
259
+ def CreateDBProxy(self, request):
260
+ r"""本接口(CreateDBProxy)用于为指定的 PostgreSQL 实例创建数据库代理(Proxy)。走计费下单流程,下单成功后异步发起 Proxy 创建任务,同步返回订单号 DealName 与 Proxy 实例 ID ProxyGroupId。当前仅支持后付费按量计费。
261
+
262
+ :param request: Request instance for CreateDBProxy.
263
+ :type request: :class:`tencentcloud.postgres.v20170312.models.CreateDBProxyRequest`
264
+ :rtype: :class:`tencentcloud.postgres.v20170312.models.CreateDBProxyResponse`
265
+
266
+ """
267
+ try:
268
+ params = request._serialize()
269
+ headers = request.headers
270
+ body = self.call("CreateDBProxy", params, headers=headers)
271
+ response = json.loads(body)
272
+ model = models.CreateDBProxyResponse()
273
+ model._deserialize(response["Response"])
274
+ return model
275
+ except Exception as e:
276
+ if isinstance(e, TencentCloudSDKException):
277
+ raise
278
+ else:
279
+ raise TencentCloudSDKException(type(e).__name__, str(e))
280
+
281
+
259
282
  def CreateDatabase(self, request):
260
283
  r"""此接口用于创建数据库,需指定数据库名及所有者。
261
284
 
@@ -1111,6 +1134,52 @@ class PostgresClient(AbstractClient):
1111
1134
  raise TencentCloudSDKException(type(e).__name__, str(e))
1112
1135
 
1113
1136
 
1137
+ def DescribeDBProxy(self, request):
1138
+ r"""本接口(DescribeDBProxy)用于查询指定 PostgreSQL 实例下的数据库代理(Proxy)信息,包含 Proxy 节点列表与接入地址列表。可选传入 ProxyGroupId 精确查询某一 Proxy;不传则返回该实例下的全部 Proxy。
1139
+
1140
+ :param request: Request instance for DescribeDBProxy.
1141
+ :type request: :class:`tencentcloud.postgres.v20170312.models.DescribeDBProxyRequest`
1142
+ :rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeDBProxyResponse`
1143
+
1144
+ """
1145
+ try:
1146
+ params = request._serialize()
1147
+ headers = request.headers
1148
+ body = self.call("DescribeDBProxy", params, headers=headers)
1149
+ response = json.loads(body)
1150
+ model = models.DescribeDBProxyResponse()
1151
+ model._deserialize(response["Response"])
1152
+ return model
1153
+ except Exception as e:
1154
+ if isinstance(e, TencentCloudSDKException):
1155
+ raise
1156
+ else:
1157
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1158
+
1159
+
1160
+ def DescribeDBProxySpecs(self, request):
1161
+ r"""查询代理可售规格
1162
+
1163
+ :param request: Request instance for DescribeDBProxySpecs.
1164
+ :type request: :class:`tencentcloud.postgres.v20170312.models.DescribeDBProxySpecsRequest`
1165
+ :rtype: :class:`tencentcloud.postgres.v20170312.models.DescribeDBProxySpecsResponse`
1166
+
1167
+ """
1168
+ try:
1169
+ params = request._serialize()
1170
+ headers = request.headers
1171
+ body = self.call("DescribeDBProxySpecs", params, headers=headers)
1172
+ response = json.loads(body)
1173
+ model = models.DescribeDBProxySpecsResponse()
1174
+ model._deserialize(response["Response"])
1175
+ return model
1176
+ except Exception as e:
1177
+ if isinstance(e, TencentCloudSDKException):
1178
+ raise
1179
+ else:
1180
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1181
+
1182
+
1114
1183
  def DescribeDBVersions(self, request):
1115
1184
  r"""本接口(DescribeDBVersions)用于查询支持的数据库版本。
1116
1185
 
@@ -1595,6 +1664,29 @@ class PostgresClient(AbstractClient):
1595
1664
  raise TencentCloudSDKException(type(e).__name__, str(e))
1596
1665
 
1597
1666
 
1667
+ def DestroyDBProxy(self, request):
1668
+ r"""本接口(DestroyDBProxy)用于销毁指定的数据库代理(Proxy)。接口仅返回 RequestId,销毁动作由计费回调异步触发 ProxyDestroy 任务,内部统一完成「隔离 + 销毁」全部步骤(释放 VIP、解绑安全组、回收资源、上报计费等),用户无需先调用隔离接口。
1669
+
1670
+ :param request: Request instance for DestroyDBProxy.
1671
+ :type request: :class:`tencentcloud.postgres.v20170312.models.DestroyDBProxyRequest`
1672
+ :rtype: :class:`tencentcloud.postgres.v20170312.models.DestroyDBProxyResponse`
1673
+
1674
+ """
1675
+ try:
1676
+ params = request._serialize()
1677
+ headers = request.headers
1678
+ body = self.call("DestroyDBProxy", params, headers=headers)
1679
+ response = json.loads(body)
1680
+ model = models.DestroyDBProxyResponse()
1681
+ model._deserialize(response["Response"])
1682
+ return model
1683
+ except Exception as e:
1684
+ if isinstance(e, TencentCloudSDKException):
1685
+ raise
1686
+ else:
1687
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1688
+
1689
+
1598
1690
  def DisIsolateDBInstances(self, request):
1599
1691
  r"""本接口(DisIsolateDBInstances)用于解隔离实例
1600
1692
 
@@ -2126,6 +2218,52 @@ class PostgresClient(AbstractClient):
2126
2218
  raise TencentCloudSDKException(type(e).__name__, str(e))
2127
2219
 
2128
2220
 
2221
+ def ModifyDBProxy(self, request):
2222
+ r"""本接口(ModifyDBProxy)用于修改数据库代理(Proxy)。支持两种模式:①仅修改 Description 时同步生效,不下单,DealName 为空;②变更 Proxy 节点规格或数量(ProxyNodeCustom)时走计费下单流程,异步触发变配任务,返回 DealName。可通过 SwitchTag 控制变配执行时机。
2223
+
2224
+ :param request: Request instance for ModifyDBProxy.
2225
+ :type request: :class:`tencentcloud.postgres.v20170312.models.ModifyDBProxyRequest`
2226
+ :rtype: :class:`tencentcloud.postgres.v20170312.models.ModifyDBProxyResponse`
2227
+
2228
+ """
2229
+ try:
2230
+ params = request._serialize()
2231
+ headers = request.headers
2232
+ body = self.call("ModifyDBProxy", params, headers=headers)
2233
+ response = json.loads(body)
2234
+ model = models.ModifyDBProxyResponse()
2235
+ model._deserialize(response["Response"])
2236
+ return model
2237
+ except Exception as e:
2238
+ if isinstance(e, TencentCloudSDKException):
2239
+ raise
2240
+ else:
2241
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2242
+
2243
+
2244
+ def ModifyDBProxyAddress(self, request):
2245
+ r"""修改代理地址配置
2246
+
2247
+ :param request: Request instance for ModifyDBProxyAddress.
2248
+ :type request: :class:`tencentcloud.postgres.v20170312.models.ModifyDBProxyAddressRequest`
2249
+ :rtype: :class:`tencentcloud.postgres.v20170312.models.ModifyDBProxyAddressResponse`
2250
+
2251
+ """
2252
+ try:
2253
+ params = request._serialize()
2254
+ headers = request.headers
2255
+ body = self.call("ModifyDBProxyAddress", params, headers=headers)
2256
+ response = json.loads(body)
2257
+ model = models.ModifyDBProxyAddressResponse()
2258
+ model._deserialize(response["Response"])
2259
+ return model
2260
+ except Exception as e:
2261
+ if isinstance(e, TencentCloudSDKException):
2262
+ raise
2263
+ else:
2264
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2265
+
2266
+
2129
2267
  def ModifyDatabaseOwner(self, request):
2130
2268
  r"""修改数据库所有者
2131
2269
 
@@ -2379,6 +2517,29 @@ class PostgresClient(AbstractClient):
2379
2517
  raise TencentCloudSDKException(type(e).__name__, str(e))
2380
2518
 
2381
2519
 
2520
+ def ReloadBalanceDBProxyNode(self, request):
2521
+ r"""本接口(ReloadBalanceDBProxyNode)用于重新均衡数据库代理节点
2522
+
2523
+ :param request: Request instance for ReloadBalanceDBProxyNode.
2524
+ :type request: :class:`tencentcloud.postgres.v20170312.models.ReloadBalanceDBProxyNodeRequest`
2525
+ :rtype: :class:`tencentcloud.postgres.v20170312.models.ReloadBalanceDBProxyNodeResponse`
2526
+
2527
+ """
2528
+ try:
2529
+ params = request._serialize()
2530
+ headers = request.headers
2531
+ body = self.call("ReloadBalanceDBProxyNode", params, headers=headers)
2532
+ response = json.loads(body)
2533
+ model = models.ReloadBalanceDBProxyNodeResponse()
2534
+ model._deserialize(response["Response"])
2535
+ return model
2536
+ except Exception as e:
2537
+ if isinstance(e, TencentCloudSDKException):
2538
+ raise
2539
+ else:
2540
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2541
+
2542
+
2382
2543
  def RemoveDBInstanceFromReadOnlyGroup(self, request):
2383
2544
  r"""本接口(RemoveDBInstanceFromReadOnlyGroup)用户将只读实例从只读组中移除
2384
2545
 
@@ -205,6 +205,24 @@ class PostgresClient(AbstractClient):
205
205
 
206
206
  return await self.call_and_deserialize(**kwargs)
207
207
 
208
+ async def CreateDBProxy(
209
+ self,
210
+ request: models.CreateDBProxyRequest,
211
+ opts: Dict = None,
212
+ ) -> models.CreateDBProxyResponse:
213
+ """
214
+ 本接口(CreateDBProxy)用于为指定的 PostgreSQL 实例创建数据库代理(Proxy)。走计费下单流程,下单成功后异步发起 Proxy 创建任务,同步返回订单号 DealName 与 Proxy 实例 ID ProxyGroupId。当前仅支持后付费按量计费。
215
+ """
216
+
217
+ kwargs = {}
218
+ kwargs["action"] = "CreateDBProxy"
219
+ kwargs["params"] = request._serialize()
220
+ kwargs["resp_cls"] = models.CreateDBProxyResponse
221
+ kwargs["headers"] = request.headers
222
+ kwargs["opts"] = opts or {}
223
+
224
+ return await self.call_and_deserialize(**kwargs)
225
+
208
226
  async def CreateDatabase(
209
227
  self,
210
228
  request: models.CreateDatabaseRequest,
@@ -875,6 +893,42 @@ class PostgresClient(AbstractClient):
875
893
 
876
894
  return await self.call_and_deserialize(**kwargs)
877
895
 
896
+ async def DescribeDBProxy(
897
+ self,
898
+ request: models.DescribeDBProxyRequest,
899
+ opts: Dict = None,
900
+ ) -> models.DescribeDBProxyResponse:
901
+ """
902
+ 本接口(DescribeDBProxy)用于查询指定 PostgreSQL 实例下的数据库代理(Proxy)信息,包含 Proxy 节点列表与接入地址列表。可选传入 ProxyGroupId 精确查询某一 Proxy;不传则返回该实例下的全部 Proxy。
903
+ """
904
+
905
+ kwargs = {}
906
+ kwargs["action"] = "DescribeDBProxy"
907
+ kwargs["params"] = request._serialize()
908
+ kwargs["resp_cls"] = models.DescribeDBProxyResponse
909
+ kwargs["headers"] = request.headers
910
+ kwargs["opts"] = opts or {}
911
+
912
+ return await self.call_and_deserialize(**kwargs)
913
+
914
+ async def DescribeDBProxySpecs(
915
+ self,
916
+ request: models.DescribeDBProxySpecsRequest,
917
+ opts: Dict = None,
918
+ ) -> models.DescribeDBProxySpecsResponse:
919
+ """
920
+ 查询代理可售规格
921
+ """
922
+
923
+ kwargs = {}
924
+ kwargs["action"] = "DescribeDBProxySpecs"
925
+ kwargs["params"] = request._serialize()
926
+ kwargs["resp_cls"] = models.DescribeDBProxySpecsResponse
927
+ kwargs["headers"] = request.headers
928
+ kwargs["opts"] = opts or {}
929
+
930
+ return await self.call_and_deserialize(**kwargs)
931
+
878
932
  async def DescribeDBVersions(
879
933
  self,
880
934
  request: models.DescribeDBVersionsRequest,
@@ -1254,6 +1308,24 @@ class PostgresClient(AbstractClient):
1254
1308
 
1255
1309
  return await self.call_and_deserialize(**kwargs)
1256
1310
 
1311
+ async def DestroyDBProxy(
1312
+ self,
1313
+ request: models.DestroyDBProxyRequest,
1314
+ opts: Dict = None,
1315
+ ) -> models.DestroyDBProxyResponse:
1316
+ """
1317
+ 本接口(DestroyDBProxy)用于销毁指定的数据库代理(Proxy)。接口仅返回 RequestId,销毁动作由计费回调异步触发 ProxyDestroy 任务,内部统一完成「隔离 + 销毁」全部步骤(释放 VIP、解绑安全组、回收资源、上报计费等),用户无需先调用隔离接口。
1318
+ """
1319
+
1320
+ kwargs = {}
1321
+ kwargs["action"] = "DestroyDBProxy"
1322
+ kwargs["params"] = request._serialize()
1323
+ kwargs["resp_cls"] = models.DestroyDBProxyResponse
1324
+ kwargs["headers"] = request.headers
1325
+ kwargs["opts"] = opts or {}
1326
+
1327
+ return await self.call_and_deserialize(**kwargs)
1328
+
1257
1329
  async def DisIsolateDBInstances(
1258
1330
  self,
1259
1331
  request: models.DisIsolateDBInstancesRequest,
@@ -1670,6 +1742,42 @@ class PostgresClient(AbstractClient):
1670
1742
 
1671
1743
  return await self.call_and_deserialize(**kwargs)
1672
1744
 
1745
+ async def ModifyDBProxy(
1746
+ self,
1747
+ request: models.ModifyDBProxyRequest,
1748
+ opts: Dict = None,
1749
+ ) -> models.ModifyDBProxyResponse:
1750
+ """
1751
+ 本接口(ModifyDBProxy)用于修改数据库代理(Proxy)。支持两种模式:①仅修改 Description 时同步生效,不下单,DealName 为空;②变更 Proxy 节点规格或数量(ProxyNodeCustom)时走计费下单流程,异步触发变配任务,返回 DealName。可通过 SwitchTag 控制变配执行时机。
1752
+ """
1753
+
1754
+ kwargs = {}
1755
+ kwargs["action"] = "ModifyDBProxy"
1756
+ kwargs["params"] = request._serialize()
1757
+ kwargs["resp_cls"] = models.ModifyDBProxyResponse
1758
+ kwargs["headers"] = request.headers
1759
+ kwargs["opts"] = opts or {}
1760
+
1761
+ return await self.call_and_deserialize(**kwargs)
1762
+
1763
+ async def ModifyDBProxyAddress(
1764
+ self,
1765
+ request: models.ModifyDBProxyAddressRequest,
1766
+ opts: Dict = None,
1767
+ ) -> models.ModifyDBProxyAddressResponse:
1768
+ """
1769
+ 修改代理地址配置
1770
+ """
1771
+
1772
+ kwargs = {}
1773
+ kwargs["action"] = "ModifyDBProxyAddress"
1774
+ kwargs["params"] = request._serialize()
1775
+ kwargs["resp_cls"] = models.ModifyDBProxyAddressResponse
1776
+ kwargs["headers"] = request.headers
1777
+ kwargs["opts"] = opts or {}
1778
+
1779
+ return await self.call_and_deserialize(**kwargs)
1780
+
1673
1781
  async def ModifyDatabaseOwner(
1674
1782
  self,
1675
1783
  request: models.ModifyDatabaseOwnerRequest,
@@ -1868,6 +1976,24 @@ class PostgresClient(AbstractClient):
1868
1976
 
1869
1977
  return await self.call_and_deserialize(**kwargs)
1870
1978
 
1979
+ async def ReloadBalanceDBProxyNode(
1980
+ self,
1981
+ request: models.ReloadBalanceDBProxyNodeRequest,
1982
+ opts: Dict = None,
1983
+ ) -> models.ReloadBalanceDBProxyNodeResponse:
1984
+ """
1985
+ 本接口(ReloadBalanceDBProxyNode)用于重新均衡数据库代理节点
1986
+ """
1987
+
1988
+ kwargs = {}
1989
+ kwargs["action"] = "ReloadBalanceDBProxyNode"
1990
+ kwargs["params"] = request._serialize()
1991
+ kwargs["resp_cls"] = models.ReloadBalanceDBProxyNodeResponse
1992
+ kwargs["headers"] = request.headers
1993
+ kwargs["opts"] = opts or {}
1994
+
1995
+ return await self.call_and_deserialize(**kwargs)
1996
+
1871
1997
  async def RemoveDBInstanceFromReadOnlyGroup(
1872
1998
  self,
1873
1999
  request: models.RemoveDBInstanceFromReadOnlyGroupRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-postgres
3
- Version: 3.1.134
3
+ Version: 3.1.152
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.134
18
+ Requires-Dist: tencentcloud-sdk-python-common <4.0.0,>=3.1.152
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,11 @@
1
+ tencentcloud/__init__.py,sha256=qnQ6o-3yofW9uC1gC8G9Hf08QFmwSiDyIdcc9QZFAZI,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=ALe1-m68jE-xuwjXtX1IHRC5XgiTI8cCUCmb6CFBdzY,825315
6
+ tencentcloud/postgres/v20170312/postgres_client.py,sha256=pzAJiwn2VlmQjXPniavYrtkgw8LI9tR0kk0k9DO5GR0,118788
7
+ tencentcloud/postgres/v20170312/postgres_client_async.py,sha256=kcVJrWY2DrbQOpQxXcjCb6HpnPaIpQeQhYrfv0OtutE,81395
8
+ tencentcloud_sdk_python_postgres-3.1.152.dist-info/METADATA,sha256=u_6ni6OOBxsvmv1Bhl_E1B_gT6cS4f8pXVG3t3xdL0U,1522
9
+ tencentcloud_sdk_python_postgres-3.1.152.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
10
+ tencentcloud_sdk_python_postgres-3.1.152.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
+ tencentcloud_sdk_python_postgres-3.1.152.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- tencentcloud/__init__.py,sha256=NbShzCGm6DgvvVA1EM9tg2v3X_d2RG62KQwmQQ_Jc8g,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=AvefDh0gkp6bDMev46jFNyFFE3UO2oLFkITqaJHl6M4,24638
5
- tencentcloud/postgres/v20170312/models.py,sha256=6RyXDNspSETDMr_1fmoYdBPA92AuGo09OO8EG_8Elps,774422
6
- tencentcloud/postgres/v20170312/postgres_client.py,sha256=437jSPX5eAhefQ4i98OfLAI_ZkllfBzEQxi_t0ui7mw,111431
7
- tencentcloud/postgres/v20170312/postgres_client_async.py,sha256=KxedEOHT1pZpXH-El33u14o_whRXYHVmER0s-Xe01cc,76201
8
- tencentcloud_sdk_python_postgres-3.1.134.dist-info/METADATA,sha256=E7tP_Jl2JHwcr3Tr1ugve2JPY5ynJl6pqpBNfKSZm-I,1522
9
- tencentcloud_sdk_python_postgres-3.1.134.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
10
- tencentcloud_sdk_python_postgres-3.1.134.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
- tencentcloud_sdk_python_postgres-3.1.134.dist-info/RECORD,,