tencentcloud-sdk-python-postgres 3.0.1378__tar.gz → 3.0.1380__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.
Files changed (16) hide show
  1. {tencentcloud-sdk-python-postgres-3.0.1378 → tencentcloud-sdk-python-postgres-3.0.1380}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-postgres-3.0.1378 → tencentcloud-sdk-python-postgres-3.0.1380}/setup.py +1 -1
  3. {tencentcloud-sdk-python-postgres-3.0.1378 → tencentcloud-sdk-python-postgres-3.0.1380}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-postgres-3.0.1378 → tencentcloud-sdk-python-postgres-3.0.1380}/tencentcloud/postgres/v20170312/models.py +12 -83
  5. {tencentcloud-sdk-python-postgres-3.0.1378 → tencentcloud-sdk-python-postgres-3.0.1380}/tencentcloud/postgres/v20170312/postgres_client.py +12 -29
  6. {tencentcloud-sdk-python-postgres-3.0.1378 → tencentcloud-sdk-python-postgres-3.0.1380}/tencentcloud_sdk_python_postgres.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-postgres-3.0.1380/tencentcloud_sdk_python_postgres.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-postgres-3.0.1378/tencentcloud_sdk_python_postgres.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-postgres-3.0.1378 → tencentcloud-sdk-python-postgres-3.0.1380}/README.rst +0 -0
  10. {tencentcloud-sdk-python-postgres-3.0.1378 → tencentcloud-sdk-python-postgres-3.0.1380}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-postgres-3.0.1378 → tencentcloud-sdk-python-postgres-3.0.1380}/tencentcloud/postgres/__init__.py +0 -0
  12. {tencentcloud-sdk-python-postgres-3.0.1378 → tencentcloud-sdk-python-postgres-3.0.1380}/tencentcloud/postgres/v20170312/__init__.py +0 -0
  13. {tencentcloud-sdk-python-postgres-3.0.1378 → tencentcloud-sdk-python-postgres-3.0.1380}/tencentcloud/postgres/v20170312/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-postgres-3.0.1378 → tencentcloud-sdk-python-postgres-3.0.1380}/tencentcloud_sdk_python_postgres.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-postgres-3.0.1378 → tencentcloud-sdk-python-postgres-3.0.1380}/tencentcloud_sdk_python_postgres.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-postgres-3.0.1378 → tencentcloud-sdk-python-postgres-3.0.1380}/tencentcloud_sdk_python_postgres.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-postgres
3
- Version: 3.0.1378
3
+ Version: 3.0.1380
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
@@ -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.1378"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1380"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Postgres SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1378'
17
+ __version__ = '3.0.1380'
@@ -3699,7 +3699,7 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
3699
3699
  :type NeedSupportIpv6: int
3700
3700
  :param _Name: 实例名(后续支持)
3701
3701
  :type Name: str
3702
- :param _DBVersion: 【废弃】不再需要指定,内核版本号与主实例保持一致
3702
+ :param _DBVersion: 不再需要指定,内核版本号与主实例保持一致
3703
3703
  :type DBVersion: str
3704
3704
  :param _DedicatedClusterId: 专属集群ID
3705
3705
  :type DedicatedClusterId: str
@@ -3953,13 +3953,17 @@ class CreateReadOnlyDBInstanceRequest(AbstractModel):
3953
3953
 
3954
3954
  @property
3955
3955
  def DBVersion(self):
3956
- """【废弃】不再需要指定,内核版本号与主实例保持一致
3956
+ warnings.warn("parameter `DBVersion` is deprecated", DeprecationWarning)
3957
+
3958
+ """不再需要指定,内核版本号与主实例保持一致
3957
3959
  :rtype: str
3958
3960
  """
3959
3961
  return self._DBVersion
3960
3962
 
3961
3963
  @DBVersion.setter
3962
3964
  def DBVersion(self, DBVersion):
3965
+ warnings.warn("parameter `DBVersion` is deprecated", DeprecationWarning)
3966
+
3963
3967
  self._DBVersion = DBVersion
3964
3968
 
3965
3969
  @property
@@ -14012,7 +14016,7 @@ class InquiryPriceUpgradeDBInstanceRequest(AbstractModel):
14012
14016
  :type Memory: int
14013
14017
  :param _DBInstanceId: 实例ID,形如postgres-hez4fh0v
14014
14018
  :type DBInstanceId: str
14015
- :param _InstanceChargeType: 【废弃参数,不再生效】,实例计费类型。
14019
+ :param _InstanceChargeType: 实例计费类型。
14016
14020
  :type InstanceChargeType: str
14017
14021
  :param _Cpu: 实例的Cpu大小,单位Core
14018
14022
  :type Cpu: int
@@ -14058,13 +14062,17 @@ class InquiryPriceUpgradeDBInstanceRequest(AbstractModel):
14058
14062
 
14059
14063
  @property
14060
14064
  def InstanceChargeType(self):
14061
- """【废弃参数,不再生效】,实例计费类型。
14065
+ warnings.warn("parameter `InstanceChargeType` is deprecated", DeprecationWarning)
14066
+
14067
+ """实例计费类型。
14062
14068
  :rtype: str
14063
14069
  """
14064
14070
  return self._InstanceChargeType
14065
14071
 
14066
14072
  @InstanceChargeType.setter
14067
14073
  def InstanceChargeType(self, InstanceChargeType):
14074
+ warnings.warn("parameter `InstanceChargeType` is deprecated", DeprecationWarning)
14075
+
14068
14076
  self._InstanceChargeType = InstanceChargeType
14069
14077
 
14070
14078
  @property
@@ -17572,85 +17580,6 @@ class OpenDBExtranetAccessResponse(AbstractModel):
17572
17580
  self._RequestId = params.get("RequestId")
17573
17581
 
17574
17582
 
17575
- class OpenServerlessDBExtranetAccessRequest(AbstractModel):
17576
- """OpenServerlessDBExtranetAccess请求参数结构体
17577
-
17578
- """
17579
-
17580
- def __init__(self):
17581
- r"""
17582
- :param _DBInstanceId: 实例的唯一标识符
17583
- :type DBInstanceId: str
17584
- :param _DBInstanceName: 实例名称
17585
- :type DBInstanceName: str
17586
- """
17587
- self._DBInstanceId = None
17588
- self._DBInstanceName = None
17589
-
17590
- @property
17591
- def DBInstanceId(self):
17592
- """实例的唯一标识符
17593
- :rtype: str
17594
- """
17595
- return self._DBInstanceId
17596
-
17597
- @DBInstanceId.setter
17598
- def DBInstanceId(self, DBInstanceId):
17599
- self._DBInstanceId = DBInstanceId
17600
-
17601
- @property
17602
- def DBInstanceName(self):
17603
- """实例名称
17604
- :rtype: str
17605
- """
17606
- return self._DBInstanceName
17607
-
17608
- @DBInstanceName.setter
17609
- def DBInstanceName(self, DBInstanceName):
17610
- self._DBInstanceName = DBInstanceName
17611
-
17612
-
17613
- def _deserialize(self, params):
17614
- self._DBInstanceId = params.get("DBInstanceId")
17615
- self._DBInstanceName = params.get("DBInstanceName")
17616
- memeber_set = set(params.keys())
17617
- for name, value in vars(self).items():
17618
- property_name = name[1:]
17619
- if property_name in memeber_set:
17620
- memeber_set.remove(property_name)
17621
- if len(memeber_set) > 0:
17622
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
17623
-
17624
-
17625
-
17626
- class OpenServerlessDBExtranetAccessResponse(AbstractModel):
17627
- """OpenServerlessDBExtranetAccess返回参数结构体
17628
-
17629
- """
17630
-
17631
- def __init__(self):
17632
- r"""
17633
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
17634
- :type RequestId: str
17635
- """
17636
- self._RequestId = None
17637
-
17638
- @property
17639
- def RequestId(self):
17640
- """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
17641
- :rtype: str
17642
- """
17643
- return self._RequestId
17644
-
17645
- @RequestId.setter
17646
- def RequestId(self, RequestId):
17647
- self._RequestId = RequestId
17648
-
17649
-
17650
- def _deserialize(self, params):
17651
- self._RequestId = params.get("RequestId")
17652
-
17653
-
17654
17583
  class ParamEntry(AbstractModel):
17655
17584
  """批量修改参数
17656
17585
 
@@ -213,7 +213,9 @@ class PostgresClient(AbstractClient):
213
213
 
214
214
 
215
215
  def CreateDBInstances(self, request):
216
- """本接口(CreateDBInstances)用于创建一个或者多个PostgreSQL实例,仅发货实例不会进行初始化。本接口已废弃,推荐使用接口[CreateInstances](https://cloud.tencent.com/document/api/409/56107)替代。
216
+ """早期接口,不规范,已提供新接口 CreateInstances 替换
217
+
218
+ 本接口(CreateDBInstances)用于创建一个或者多个PostgreSQL实例,仅发货实例不会进行初始化。本接口已废弃,推荐使用接口[CreateInstances](https://cloud.tencent.com/document/api/409/56107)替代。
217
219
 
218
220
  :param request: Request instance for CreateDBInstances.
219
221
  :type request: :class:`tencentcloud.postgres.v20170312.models.CreateDBInstancesRequest`
@@ -1049,7 +1051,9 @@ class PostgresClient(AbstractClient):
1049
1051
 
1050
1052
 
1051
1053
  def DescribeDBSlowlogs(self, request):
1052
- """本接口(DescribeDBSlowlogs)用于获取慢查询日志。本接口已于2021.09.01日废弃,后续此接口将不再返回任何数据,推荐使用接口[DescribeSlowQueryList](https://cloud.tencent.com/document/api/409/60540)替代。
1054
+ """早期接口不规范,已提供新接口 DescribeSlowQueryList 替换
1055
+
1056
+ 本接口(DescribeDBSlowlogs)用于获取慢查询日志。本接口已于2021.09.01日废弃,后续此接口将不再返回任何数据,推荐使用接口[DescribeSlowQueryList](https://cloud.tencent.com/document/api/409/60540)替代。
1053
1057
 
1054
1058
  :param request: Request instance for DescribeDBSlowlogs.
1055
1059
  :type request: :class:`tencentcloud.postgres.v20170312.models.DescribeDBSlowlogsRequest`
@@ -1604,7 +1608,9 @@ class PostgresClient(AbstractClient):
1604
1608
 
1605
1609
 
1606
1610
  def InitDBInstances(self, request):
1607
- """本接口(InitDBInstances)用于初始化云数据库PostgreSQL实例。本接口已废弃,推荐使用接口[CreateInstances](https://cloud.tencent.com/document/api/409/56107)替代。
1611
+ """早期接口,不规范,已提供新接口 CreateInstances 替换
1612
+
1613
+ 本接口(InitDBInstances)用于初始化云数据库PostgreSQL实例。本接口已废弃,推荐使用接口[CreateInstances](https://cloud.tencent.com/document/api/409/56107)替代。
1608
1614
 
1609
1615
  :param request: Request instance for InitDBInstances.
1610
1616
  :type request: :class:`tencentcloud.postgres.v20170312.models.InitDBInstancesRequest`
@@ -2249,31 +2255,6 @@ class PostgresClient(AbstractClient):
2249
2255
  raise TencentCloudSDKException(type(e).__name__, str(e))
2250
2256
 
2251
2257
 
2252
- def OpenServerlessDBExtranetAccess(self, request):
2253
- """该产品形态需要下线,已完成客户实例全部下线、后端服务下线等
2254
-
2255
- 【接口下线中,请勿使用】本接口(OpenServerlessDBExtranetAccess)用于开通serverlessDB实例公网地址。
2256
-
2257
- :param request: Request instance for OpenServerlessDBExtranetAccess.
2258
- :type request: :class:`tencentcloud.postgres.v20170312.models.OpenServerlessDBExtranetAccessRequest`
2259
- :rtype: :class:`tencentcloud.postgres.v20170312.models.OpenServerlessDBExtranetAccessResponse`
2260
-
2261
- """
2262
- try:
2263
- params = request._serialize()
2264
- headers = request.headers
2265
- body = self.call("OpenServerlessDBExtranetAccess", params, headers=headers)
2266
- response = json.loads(body)
2267
- model = models.OpenServerlessDBExtranetAccessResponse()
2268
- model._deserialize(response["Response"])
2269
- return model
2270
- except Exception as e:
2271
- if isinstance(e, TencentCloudSDKException):
2272
- raise
2273
- else:
2274
- raise TencentCloudSDKException(type(e).__name__, str(e))
2275
-
2276
-
2277
2258
  def RebalanceReadOnlyGroup(self, request):
2278
2259
  """本接口(RebalanceReadOnlyGroup)用于重新均衡 RO 组内实例的负载。注意,RO 组内 RO 实例会有一次数据库连接瞬断,请确保应用程序能重连数据库,谨慎操作。
2279
2260
 
@@ -2485,7 +2466,9 @@ class PostgresClient(AbstractClient):
2485
2466
 
2486
2467
 
2487
2468
  def UpgradeDBInstance(self, request):
2488
- """本接口(UpgradeDBInstance)用于升级实例配置。本接口已废弃,推荐使用接口[ModifyDBInstanceSpec](https://cloud.tencent.com/document/api/409/63689)替代。
2469
+ """早期接口,不规范,已提供新接口 ModifyDBInstanceSpec 替换
2470
+
2471
+ 本接口(UpgradeDBInstance)用于升级实例配置。本接口已废弃,推荐使用接口[ModifyDBInstanceSpec](https://cloud.tencent.com/document/api/409/63689)替代。
2489
2472
 
2490
2473
  :param request: Request instance for UpgradeDBInstance.
2491
2474
  :type request: :class:`tencentcloud.postgres.v20170312.models.UpgradeDBInstanceRequest`
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-postgres
3
- Version: 3.0.1378
3
+ Version: 3.0.1380
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1380
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1378