tencentcloud-sdk-python-postgres 3.1.155__tar.gz → 3.1.163__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.155 → tencentcloud_sdk_python_postgres-3.1.163}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_postgres-3.1.155 → tencentcloud_sdk_python_postgres-3.1.163}/setup.py +1 -1
- {tencentcloud_sdk_python_postgres-3.1.155 → tencentcloud_sdk_python_postgres-3.1.163}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_postgres-3.1.155 → tencentcloud_sdk_python_postgres-3.1.163}/tencentcloud/postgres/v20170312/models.py +300 -10
- {tencentcloud_sdk_python_postgres-3.1.155 → tencentcloud_sdk_python_postgres-3.1.163}/tencentcloud_sdk_python_postgres.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_postgres-3.1.163/tencentcloud_sdk_python_postgres.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_postgres-3.1.155/tencentcloud_sdk_python_postgres.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_postgres-3.1.155 → tencentcloud_sdk_python_postgres-3.1.163}/README.rst +0 -0
- {tencentcloud_sdk_python_postgres-3.1.155 → tencentcloud_sdk_python_postgres-3.1.163}/setup.cfg +0 -0
- {tencentcloud_sdk_python_postgres-3.1.155 → tencentcloud_sdk_python_postgres-3.1.163}/tencentcloud/postgres/__init__.py +0 -0
- {tencentcloud_sdk_python_postgres-3.1.155 → tencentcloud_sdk_python_postgres-3.1.163}/tencentcloud/postgres/v20170312/__init__.py +0 -0
- {tencentcloud_sdk_python_postgres-3.1.155 → tencentcloud_sdk_python_postgres-3.1.163}/tencentcloud/postgres/v20170312/errorcodes.py +0 -0
- {tencentcloud_sdk_python_postgres-3.1.155 → tencentcloud_sdk_python_postgres-3.1.163}/tencentcloud/postgres/v20170312/postgres_client.py +0 -0
- {tencentcloud_sdk_python_postgres-3.1.155 → tencentcloud_sdk_python_postgres-3.1.163}/tencentcloud/postgres/v20170312/postgres_client_async.py +0 -0
- {tencentcloud_sdk_python_postgres-3.1.155 → tencentcloud_sdk_python_postgres-3.1.163}/tencentcloud_sdk_python_postgres.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_postgres-3.1.155 → tencentcloud_sdk_python_postgres-3.1.163}/tencentcloud_sdk_python_postgres.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_postgres-3.1.155 → tencentcloud_sdk_python_postgres-3.1.163}/tencentcloud_sdk_python_postgres.egg-info/top_level.txt +0 -0
{tencentcloud_sdk_python_postgres-3.1.155 → tencentcloud_sdk_python_postgres-3.1.163}/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.163
|
|
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.163
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
{tencentcloud_sdk_python_postgres-3.1.155 → tencentcloud_sdk_python_postgres-3.1.163}/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.163,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Postgres SDK for Python',
|
|
@@ -10732,14 +10732,14 @@ class DescribeDBInstanceSSLConfigRequest(AbstractModel):
|
|
|
10732
10732
|
|
|
10733
10733
|
def __init__(self):
|
|
10734
10734
|
r"""
|
|
10735
|
-
:param _DBInstanceId:
|
|
10735
|
+
:param _DBInstanceId: <p>实例ID,形如postgres-6bwgamo3。可通过<a href="https://cloud.tencent.com/document/api/409/16773">DescribeDBInstances</a>接口获取</p>
|
|
10736
10736
|
:type DBInstanceId: str
|
|
10737
10737
|
"""
|
|
10738
10738
|
self._DBInstanceId = None
|
|
10739
10739
|
|
|
10740
10740
|
@property
|
|
10741
10741
|
def DBInstanceId(self):
|
|
10742
|
-
r"""
|
|
10742
|
+
r"""<p>实例ID,形如postgres-6bwgamo3。可通过<a href="https://cloud.tencent.com/document/api/409/16773">DescribeDBInstances</a>接口获取</p>
|
|
10743
10743
|
:rtype: str
|
|
10744
10744
|
"""
|
|
10745
10745
|
return self._DBInstanceId
|
|
@@ -10768,23 +10768,32 @@ class DescribeDBInstanceSSLConfigResponse(AbstractModel):
|
|
|
10768
10768
|
|
|
10769
10769
|
def __init__(self):
|
|
10770
10770
|
r"""
|
|
10771
|
-
:param _SSLEnabled: true 代表开通 ,false
|
|
10771
|
+
:param _SSLEnabled: <p>true 代表开通 ,false 代表未开通</p>
|
|
10772
10772
|
:type SSLEnabled: bool
|
|
10773
|
-
:param _CAUrl:
|
|
10773
|
+
:param _CAUrl: <p>云端根证书下载链接</p>
|
|
10774
10774
|
:type CAUrl: str
|
|
10775
|
-
:param _ConnectAddress:
|
|
10775
|
+
:param _ConnectAddress: <p>服务器证书中配置的内网或外网连接地址</p>
|
|
10776
10776
|
:type ConnectAddress: str
|
|
10777
|
+
:param _CACert: <p>CA证书公钥,仅云盘版</p>
|
|
10778
|
+
:type CACert: str
|
|
10779
|
+
:param _CAJKS: <p>JKS公钥,仅云盘版</p>
|
|
10780
|
+
:type CAJKS: str
|
|
10781
|
+
:param _CAP7B: <p>CAP7B公钥,仅云盘版</p>
|
|
10782
|
+
:type CAP7B: str
|
|
10777
10783
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
10778
10784
|
:type RequestId: str
|
|
10779
10785
|
"""
|
|
10780
10786
|
self._SSLEnabled = None
|
|
10781
10787
|
self._CAUrl = None
|
|
10782
10788
|
self._ConnectAddress = None
|
|
10789
|
+
self._CACert = None
|
|
10790
|
+
self._CAJKS = None
|
|
10791
|
+
self._CAP7B = None
|
|
10783
10792
|
self._RequestId = None
|
|
10784
10793
|
|
|
10785
10794
|
@property
|
|
10786
10795
|
def SSLEnabled(self):
|
|
10787
|
-
r"""true 代表开通 ,false
|
|
10796
|
+
r"""<p>true 代表开通 ,false 代表未开通</p>
|
|
10788
10797
|
:rtype: bool
|
|
10789
10798
|
"""
|
|
10790
10799
|
return self._SSLEnabled
|
|
@@ -10795,7 +10804,7 @@ class DescribeDBInstanceSSLConfigResponse(AbstractModel):
|
|
|
10795
10804
|
|
|
10796
10805
|
@property
|
|
10797
10806
|
def CAUrl(self):
|
|
10798
|
-
r"""
|
|
10807
|
+
r"""<p>云端根证书下载链接</p>
|
|
10799
10808
|
:rtype: str
|
|
10800
10809
|
"""
|
|
10801
10810
|
return self._CAUrl
|
|
@@ -10806,7 +10815,7 @@ class DescribeDBInstanceSSLConfigResponse(AbstractModel):
|
|
|
10806
10815
|
|
|
10807
10816
|
@property
|
|
10808
10817
|
def ConnectAddress(self):
|
|
10809
|
-
r"""
|
|
10818
|
+
r"""<p>服务器证书中配置的内网或外网连接地址</p>
|
|
10810
10819
|
:rtype: str
|
|
10811
10820
|
"""
|
|
10812
10821
|
return self._ConnectAddress
|
|
@@ -10815,6 +10824,39 @@ class DescribeDBInstanceSSLConfigResponse(AbstractModel):
|
|
|
10815
10824
|
def ConnectAddress(self, ConnectAddress):
|
|
10816
10825
|
self._ConnectAddress = ConnectAddress
|
|
10817
10826
|
|
|
10827
|
+
@property
|
|
10828
|
+
def CACert(self):
|
|
10829
|
+
r"""<p>CA证书公钥,仅云盘版</p>
|
|
10830
|
+
:rtype: str
|
|
10831
|
+
"""
|
|
10832
|
+
return self._CACert
|
|
10833
|
+
|
|
10834
|
+
@CACert.setter
|
|
10835
|
+
def CACert(self, CACert):
|
|
10836
|
+
self._CACert = CACert
|
|
10837
|
+
|
|
10838
|
+
@property
|
|
10839
|
+
def CAJKS(self):
|
|
10840
|
+
r"""<p>JKS公钥,仅云盘版</p>
|
|
10841
|
+
:rtype: str
|
|
10842
|
+
"""
|
|
10843
|
+
return self._CAJKS
|
|
10844
|
+
|
|
10845
|
+
@CAJKS.setter
|
|
10846
|
+
def CAJKS(self, CAJKS):
|
|
10847
|
+
self._CAJKS = CAJKS
|
|
10848
|
+
|
|
10849
|
+
@property
|
|
10850
|
+
def CAP7B(self):
|
|
10851
|
+
r"""<p>CAP7B公钥,仅云盘版</p>
|
|
10852
|
+
:rtype: str
|
|
10853
|
+
"""
|
|
10854
|
+
return self._CAP7B
|
|
10855
|
+
|
|
10856
|
+
@CAP7B.setter
|
|
10857
|
+
def CAP7B(self, CAP7B):
|
|
10858
|
+
self._CAP7B = CAP7B
|
|
10859
|
+
|
|
10818
10860
|
@property
|
|
10819
10861
|
def RequestId(self):
|
|
10820
10862
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -10831,6 +10873,9 @@ class DescribeDBInstanceSSLConfigResponse(AbstractModel):
|
|
|
10831
10873
|
self._SSLEnabled = params.get("SSLEnabled")
|
|
10832
10874
|
self._CAUrl = params.get("CAUrl")
|
|
10833
10875
|
self._ConnectAddress = params.get("ConnectAddress")
|
|
10876
|
+
self._CACert = params.get("CACert")
|
|
10877
|
+
self._CAJKS = params.get("CAJKS")
|
|
10878
|
+
self._CAP7B = params.get("CAP7B")
|
|
10834
10879
|
self._RequestId = params.get("RequestId")
|
|
10835
10880
|
|
|
10836
10881
|
|
|
@@ -18371,12 +18416,33 @@ class ModifyDBProxyAddressRequest(AbstractModel):
|
|
|
18371
18416
|
:type Description: str
|
|
18372
18417
|
:param _ConnectionPool: <p>连接池开关</p><p>枚举值:</p><ul><li>true: 开启</li><li>false: 关闭</li></ul>
|
|
18373
18418
|
:type ConnectionPool: bool
|
|
18419
|
+
:param _WeightMode: <p>权重模式</p><p>枚举值:</p><ul><li>system: 系统自动分配权重</li><li>custom: 自定义权重,此模式下ProxyAllocation参数必传</li></ul><p>默认值:system</p>
|
|
18420
|
+
:type WeightMode: str
|
|
18421
|
+
:param _ProxyAllocation: <p>system</p><p>入参限制:路由权重列表。若 WeightMode 传的是system或不传 ,则传入的权重不生效,由系统分配默认权重。</p>
|
|
18422
|
+
:type ProxyAllocation: list of ProxyRoute
|
|
18423
|
+
:param _RoAutoAdd: <p>新增只读实例是否自动加入当前连接地址,仅后续新建实例生效</p>
|
|
18424
|
+
:type RoAutoAdd: bool
|
|
18425
|
+
:param _LatencyRemove: <p>延迟剔除开关</p>
|
|
18426
|
+
:type LatencyRemove: bool
|
|
18427
|
+
:param _LatencyRemoveTime: <p>延迟剔除阈值,仅在延迟剔除开关打开时有效</p><p>单位:秒</p>
|
|
18428
|
+
:type LatencyRemoveTime: int
|
|
18429
|
+
:param _MinRouteNum: <p>最小保留路由数。在延迟/故障剔除时,至少保留的路由数量,防止所有节点被剔除导致服务不可用。</p>
|
|
18430
|
+
:type MinRouteNum: int
|
|
18431
|
+
:param _LoadBalancePolicy: <p>负载均衡策略</p><p>枚举值:</p><ul><li>0: 按活跃连接数(默认)</li><li>1: 按请求数</li></ul>
|
|
18432
|
+
:type LoadBalancePolicy: int
|
|
18374
18433
|
"""
|
|
18375
18434
|
self._DBInstanceId = None
|
|
18376
18435
|
self._AddressId = None
|
|
18377
18436
|
self._ProxyGroupId = None
|
|
18378
18437
|
self._Description = None
|
|
18379
18438
|
self._ConnectionPool = None
|
|
18439
|
+
self._WeightMode = None
|
|
18440
|
+
self._ProxyAllocation = None
|
|
18441
|
+
self._RoAutoAdd = None
|
|
18442
|
+
self._LatencyRemove = None
|
|
18443
|
+
self._LatencyRemoveTime = None
|
|
18444
|
+
self._MinRouteNum = None
|
|
18445
|
+
self._LoadBalancePolicy = None
|
|
18380
18446
|
|
|
18381
18447
|
@property
|
|
18382
18448
|
def DBInstanceId(self):
|
|
@@ -18433,6 +18499,83 @@ class ModifyDBProxyAddressRequest(AbstractModel):
|
|
|
18433
18499
|
def ConnectionPool(self, ConnectionPool):
|
|
18434
18500
|
self._ConnectionPool = ConnectionPool
|
|
18435
18501
|
|
|
18502
|
+
@property
|
|
18503
|
+
def WeightMode(self):
|
|
18504
|
+
r"""<p>权重模式</p><p>枚举值:</p><ul><li>system: 系统自动分配权重</li><li>custom: 自定义权重,此模式下ProxyAllocation参数必传</li></ul><p>默认值:system</p>
|
|
18505
|
+
:rtype: str
|
|
18506
|
+
"""
|
|
18507
|
+
return self._WeightMode
|
|
18508
|
+
|
|
18509
|
+
@WeightMode.setter
|
|
18510
|
+
def WeightMode(self, WeightMode):
|
|
18511
|
+
self._WeightMode = WeightMode
|
|
18512
|
+
|
|
18513
|
+
@property
|
|
18514
|
+
def ProxyAllocation(self):
|
|
18515
|
+
r"""<p>system</p><p>入参限制:路由权重列表。若 WeightMode 传的是system或不传 ,则传入的权重不生效,由系统分配默认权重。</p>
|
|
18516
|
+
:rtype: list of ProxyRoute
|
|
18517
|
+
"""
|
|
18518
|
+
return self._ProxyAllocation
|
|
18519
|
+
|
|
18520
|
+
@ProxyAllocation.setter
|
|
18521
|
+
def ProxyAllocation(self, ProxyAllocation):
|
|
18522
|
+
self._ProxyAllocation = ProxyAllocation
|
|
18523
|
+
|
|
18524
|
+
@property
|
|
18525
|
+
def RoAutoAdd(self):
|
|
18526
|
+
r"""<p>新增只读实例是否自动加入当前连接地址,仅后续新建实例生效</p>
|
|
18527
|
+
:rtype: bool
|
|
18528
|
+
"""
|
|
18529
|
+
return self._RoAutoAdd
|
|
18530
|
+
|
|
18531
|
+
@RoAutoAdd.setter
|
|
18532
|
+
def RoAutoAdd(self, RoAutoAdd):
|
|
18533
|
+
self._RoAutoAdd = RoAutoAdd
|
|
18534
|
+
|
|
18535
|
+
@property
|
|
18536
|
+
def LatencyRemove(self):
|
|
18537
|
+
r"""<p>延迟剔除开关</p>
|
|
18538
|
+
:rtype: bool
|
|
18539
|
+
"""
|
|
18540
|
+
return self._LatencyRemove
|
|
18541
|
+
|
|
18542
|
+
@LatencyRemove.setter
|
|
18543
|
+
def LatencyRemove(self, LatencyRemove):
|
|
18544
|
+
self._LatencyRemove = LatencyRemove
|
|
18545
|
+
|
|
18546
|
+
@property
|
|
18547
|
+
def LatencyRemoveTime(self):
|
|
18548
|
+
r"""<p>延迟剔除阈值,仅在延迟剔除开关打开时有效</p><p>单位:秒</p>
|
|
18549
|
+
:rtype: int
|
|
18550
|
+
"""
|
|
18551
|
+
return self._LatencyRemoveTime
|
|
18552
|
+
|
|
18553
|
+
@LatencyRemoveTime.setter
|
|
18554
|
+
def LatencyRemoveTime(self, LatencyRemoveTime):
|
|
18555
|
+
self._LatencyRemoveTime = LatencyRemoveTime
|
|
18556
|
+
|
|
18557
|
+
@property
|
|
18558
|
+
def MinRouteNum(self):
|
|
18559
|
+
r"""<p>最小保留路由数。在延迟/故障剔除时,至少保留的路由数量,防止所有节点被剔除导致服务不可用。</p>
|
|
18560
|
+
:rtype: int
|
|
18561
|
+
"""
|
|
18562
|
+
return self._MinRouteNum
|
|
18563
|
+
|
|
18564
|
+
@MinRouteNum.setter
|
|
18565
|
+
def MinRouteNum(self, MinRouteNum):
|
|
18566
|
+
self._MinRouteNum = MinRouteNum
|
|
18567
|
+
|
|
18568
|
+
@property
|
|
18569
|
+
def LoadBalancePolicy(self):
|
|
18570
|
+
r"""<p>负载均衡策略</p><p>枚举值:</p><ul><li>0: 按活跃连接数(默认)</li><li>1: 按请求数</li></ul>
|
|
18571
|
+
:rtype: int
|
|
18572
|
+
"""
|
|
18573
|
+
return self._LoadBalancePolicy
|
|
18574
|
+
|
|
18575
|
+
@LoadBalancePolicy.setter
|
|
18576
|
+
def LoadBalancePolicy(self, LoadBalancePolicy):
|
|
18577
|
+
self._LoadBalancePolicy = LoadBalancePolicy
|
|
18578
|
+
|
|
18436
18579
|
|
|
18437
18580
|
def _deserialize(self, params):
|
|
18438
18581
|
self._DBInstanceId = params.get("DBInstanceId")
|
|
@@ -18440,6 +18583,18 @@ class ModifyDBProxyAddressRequest(AbstractModel):
|
|
|
18440
18583
|
self._ProxyGroupId = params.get("ProxyGroupId")
|
|
18441
18584
|
self._Description = params.get("Description")
|
|
18442
18585
|
self._ConnectionPool = params.get("ConnectionPool")
|
|
18586
|
+
self._WeightMode = params.get("WeightMode")
|
|
18587
|
+
if params.get("ProxyAllocation") is not None:
|
|
18588
|
+
self._ProxyAllocation = []
|
|
18589
|
+
for item in params.get("ProxyAllocation"):
|
|
18590
|
+
obj = ProxyRoute()
|
|
18591
|
+
obj._deserialize(item)
|
|
18592
|
+
self._ProxyAllocation.append(obj)
|
|
18593
|
+
self._RoAutoAdd = params.get("RoAutoAdd")
|
|
18594
|
+
self._LatencyRemove = params.get("LatencyRemove")
|
|
18595
|
+
self._LatencyRemoveTime = params.get("LatencyRemoveTime")
|
|
18596
|
+
self._MinRouteNum = params.get("MinRouteNum")
|
|
18597
|
+
self._LoadBalancePolicy = params.get("LoadBalancePolicy")
|
|
18443
18598
|
memeber_set = set(params.keys())
|
|
18444
18599
|
for name, value in vars(self).items():
|
|
18445
18600
|
property_name = name[1:]
|
|
@@ -18457,11 +18612,25 @@ class ModifyDBProxyAddressResponse(AbstractModel):
|
|
|
18457
18612
|
|
|
18458
18613
|
def __init__(self):
|
|
18459
18614
|
r"""
|
|
18615
|
+
:param _TaskId: <p>异步任务 ID,用于 DescribeTasks 查询进度</p>
|
|
18616
|
+
:type TaskId: int
|
|
18460
18617
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
18461
18618
|
:type RequestId: str
|
|
18462
18619
|
"""
|
|
18620
|
+
self._TaskId = None
|
|
18463
18621
|
self._RequestId = None
|
|
18464
18622
|
|
|
18623
|
+
@property
|
|
18624
|
+
def TaskId(self):
|
|
18625
|
+
r"""<p>异步任务 ID,用于 DescribeTasks 查询进度</p>
|
|
18626
|
+
:rtype: int
|
|
18627
|
+
"""
|
|
18628
|
+
return self._TaskId
|
|
18629
|
+
|
|
18630
|
+
@TaskId.setter
|
|
18631
|
+
def TaskId(self, TaskId):
|
|
18632
|
+
self._TaskId = TaskId
|
|
18633
|
+
|
|
18465
18634
|
@property
|
|
18466
18635
|
def RequestId(self):
|
|
18467
18636
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -18475,6 +18644,7 @@ class ModifyDBProxyAddressResponse(AbstractModel):
|
|
|
18475
18644
|
|
|
18476
18645
|
|
|
18477
18646
|
def _deserialize(self, params):
|
|
18647
|
+
self._TaskId = params.get("TaskId")
|
|
18478
18648
|
self._RequestId = params.get("RequestId")
|
|
18479
18649
|
|
|
18480
18650
|
|
|
@@ -20842,6 +21012,22 @@ class ProxyAddress(AbstractModel):
|
|
|
20842
21012
|
:type Routes: list of ProxyRoute
|
|
20843
21013
|
:param _ConnectionPoolLimit: <p>连接池大小</p>
|
|
20844
21014
|
:type ConnectionPoolLimit: int
|
|
21015
|
+
:param _RwSplitEnable: <p>读写分离开关。启用后 proxy 将读请求分发到只读节点,写请求仍走主节点。</p>
|
|
21016
|
+
:type RwSplitEnable: bool
|
|
21017
|
+
:param _WeightMode: <p>权重模式</p><p>枚举值:</p><ul><li>system: 系统自动分配</li><li>custom: 用户自定义权重</li></ul>
|
|
21018
|
+
:type WeightMode: str
|
|
21019
|
+
:param _RoAutoAdd: <p>新增只读是否自动加入读写分离</p>
|
|
21020
|
+
:type RoAutoAdd: bool
|
|
21021
|
+
:param _LatencyRemove: <p>延迟剔除开关</p>
|
|
21022
|
+
:type LatencyRemove: bool
|
|
21023
|
+
:param _LatencyRemoveTime: <p>延迟剔除阈值</p><p>单位:秒</p>
|
|
21024
|
+
:type LatencyRemoveTime: int
|
|
21025
|
+
:param _MinRouteNum: <p>最小保留路由数。在延迟/故障剔除时,至少保留的路由数量,防止所有节点被剔除导致服务不可用。</p>
|
|
21026
|
+
:type MinRouteNum: int
|
|
21027
|
+
:param _FailOver: <p>只读全部异常时是否回切到主</p>
|
|
21028
|
+
:type FailOver: bool
|
|
21029
|
+
:param _LoadBalancePolicy: <p>负载均衡策略</p><p>枚举值:</p><ul><li>0: 按活跃连接数(默认)</li><li>1: 按请求数</li></ul>
|
|
21030
|
+
:type LoadBalancePolicy: int
|
|
20845
21031
|
"""
|
|
20846
21032
|
self._AddressId = None
|
|
20847
21033
|
self._Vip = None
|
|
@@ -20852,6 +21038,14 @@ class ProxyAddress(AbstractModel):
|
|
|
20852
21038
|
self._ConnectionPool = None
|
|
20853
21039
|
self._Routes = None
|
|
20854
21040
|
self._ConnectionPoolLimit = None
|
|
21041
|
+
self._RwSplitEnable = None
|
|
21042
|
+
self._WeightMode = None
|
|
21043
|
+
self._RoAutoAdd = None
|
|
21044
|
+
self._LatencyRemove = None
|
|
21045
|
+
self._LatencyRemoveTime = None
|
|
21046
|
+
self._MinRouteNum = None
|
|
21047
|
+
self._FailOver = None
|
|
21048
|
+
self._LoadBalancePolicy = None
|
|
20855
21049
|
|
|
20856
21050
|
@property
|
|
20857
21051
|
def AddressId(self):
|
|
@@ -20952,6 +21146,94 @@ class ProxyAddress(AbstractModel):
|
|
|
20952
21146
|
def ConnectionPoolLimit(self, ConnectionPoolLimit):
|
|
20953
21147
|
self._ConnectionPoolLimit = ConnectionPoolLimit
|
|
20954
21148
|
|
|
21149
|
+
@property
|
|
21150
|
+
def RwSplitEnable(self):
|
|
21151
|
+
r"""<p>读写分离开关。启用后 proxy 将读请求分发到只读节点,写请求仍走主节点。</p>
|
|
21152
|
+
:rtype: bool
|
|
21153
|
+
"""
|
|
21154
|
+
return self._RwSplitEnable
|
|
21155
|
+
|
|
21156
|
+
@RwSplitEnable.setter
|
|
21157
|
+
def RwSplitEnable(self, RwSplitEnable):
|
|
21158
|
+
self._RwSplitEnable = RwSplitEnable
|
|
21159
|
+
|
|
21160
|
+
@property
|
|
21161
|
+
def WeightMode(self):
|
|
21162
|
+
r"""<p>权重模式</p><p>枚举值:</p><ul><li>system: 系统自动分配</li><li>custom: 用户自定义权重</li></ul>
|
|
21163
|
+
:rtype: str
|
|
21164
|
+
"""
|
|
21165
|
+
return self._WeightMode
|
|
21166
|
+
|
|
21167
|
+
@WeightMode.setter
|
|
21168
|
+
def WeightMode(self, WeightMode):
|
|
21169
|
+
self._WeightMode = WeightMode
|
|
21170
|
+
|
|
21171
|
+
@property
|
|
21172
|
+
def RoAutoAdd(self):
|
|
21173
|
+
r"""<p>新增只读是否自动加入读写分离</p>
|
|
21174
|
+
:rtype: bool
|
|
21175
|
+
"""
|
|
21176
|
+
return self._RoAutoAdd
|
|
21177
|
+
|
|
21178
|
+
@RoAutoAdd.setter
|
|
21179
|
+
def RoAutoAdd(self, RoAutoAdd):
|
|
21180
|
+
self._RoAutoAdd = RoAutoAdd
|
|
21181
|
+
|
|
21182
|
+
@property
|
|
21183
|
+
def LatencyRemove(self):
|
|
21184
|
+
r"""<p>延迟剔除开关</p>
|
|
21185
|
+
:rtype: bool
|
|
21186
|
+
"""
|
|
21187
|
+
return self._LatencyRemove
|
|
21188
|
+
|
|
21189
|
+
@LatencyRemove.setter
|
|
21190
|
+
def LatencyRemove(self, LatencyRemove):
|
|
21191
|
+
self._LatencyRemove = LatencyRemove
|
|
21192
|
+
|
|
21193
|
+
@property
|
|
21194
|
+
def LatencyRemoveTime(self):
|
|
21195
|
+
r"""<p>延迟剔除阈值</p><p>单位:秒</p>
|
|
21196
|
+
:rtype: int
|
|
21197
|
+
"""
|
|
21198
|
+
return self._LatencyRemoveTime
|
|
21199
|
+
|
|
21200
|
+
@LatencyRemoveTime.setter
|
|
21201
|
+
def LatencyRemoveTime(self, LatencyRemoveTime):
|
|
21202
|
+
self._LatencyRemoveTime = LatencyRemoveTime
|
|
21203
|
+
|
|
21204
|
+
@property
|
|
21205
|
+
def MinRouteNum(self):
|
|
21206
|
+
r"""<p>最小保留路由数。在延迟/故障剔除时,至少保留的路由数量,防止所有节点被剔除导致服务不可用。</p>
|
|
21207
|
+
:rtype: int
|
|
21208
|
+
"""
|
|
21209
|
+
return self._MinRouteNum
|
|
21210
|
+
|
|
21211
|
+
@MinRouteNum.setter
|
|
21212
|
+
def MinRouteNum(self, MinRouteNum):
|
|
21213
|
+
self._MinRouteNum = MinRouteNum
|
|
21214
|
+
|
|
21215
|
+
@property
|
|
21216
|
+
def FailOver(self):
|
|
21217
|
+
r"""<p>只读全部异常时是否回切到主</p>
|
|
21218
|
+
:rtype: bool
|
|
21219
|
+
"""
|
|
21220
|
+
return self._FailOver
|
|
21221
|
+
|
|
21222
|
+
@FailOver.setter
|
|
21223
|
+
def FailOver(self, FailOver):
|
|
21224
|
+
self._FailOver = FailOver
|
|
21225
|
+
|
|
21226
|
+
@property
|
|
21227
|
+
def LoadBalancePolicy(self):
|
|
21228
|
+
r"""<p>负载均衡策略</p><p>枚举值:</p><ul><li>0: 按活跃连接数(默认)</li><li>1: 按请求数</li></ul>
|
|
21229
|
+
:rtype: int
|
|
21230
|
+
"""
|
|
21231
|
+
return self._LoadBalancePolicy
|
|
21232
|
+
|
|
21233
|
+
@LoadBalancePolicy.setter
|
|
21234
|
+
def LoadBalancePolicy(self, LoadBalancePolicy):
|
|
21235
|
+
self._LoadBalancePolicy = LoadBalancePolicy
|
|
21236
|
+
|
|
20955
21237
|
|
|
20956
21238
|
def _deserialize(self, params):
|
|
20957
21239
|
self._AddressId = params.get("AddressId")
|
|
@@ -20968,6 +21250,14 @@ class ProxyAddress(AbstractModel):
|
|
|
20968
21250
|
obj._deserialize(item)
|
|
20969
21251
|
self._Routes.append(obj)
|
|
20970
21252
|
self._ConnectionPoolLimit = params.get("ConnectionPoolLimit")
|
|
21253
|
+
self._RwSplitEnable = params.get("RwSplitEnable")
|
|
21254
|
+
self._WeightMode = params.get("WeightMode")
|
|
21255
|
+
self._RoAutoAdd = params.get("RoAutoAdd")
|
|
21256
|
+
self._LatencyRemove = params.get("LatencyRemove")
|
|
21257
|
+
self._LatencyRemoveTime = params.get("LatencyRemoveTime")
|
|
21258
|
+
self._MinRouteNum = params.get("MinRouteNum")
|
|
21259
|
+
self._FailOver = params.get("FailOver")
|
|
21260
|
+
self._LoadBalancePolicy = params.get("LoadBalancePolicy")
|
|
20971
21261
|
memeber_set = set(params.keys())
|
|
20972
21262
|
for name, value in vars(self).items():
|
|
20973
21263
|
property_name = name[1:]
|
|
@@ -21349,7 +21639,7 @@ class ProxyRoute(AbstractModel):
|
|
|
21349
21639
|
:type Role: str
|
|
21350
21640
|
:param _Weight: <p>路由权重,取值范围 [0, 100]</p>
|
|
21351
21641
|
:type Weight: int
|
|
21352
|
-
:param _Status: <p>路由状态:
|
|
21642
|
+
:param _Status: <p>路由状态:online/offline</p><p>枚举值:</p><ul><li>online: 节点处于在线状态</li><li>offline: 节点处于下线状态</li></ul>
|
|
21353
21643
|
:type Status: str
|
|
21354
21644
|
"""
|
|
21355
21645
|
self._NodeId = None
|
|
@@ -21392,7 +21682,7 @@ class ProxyRoute(AbstractModel):
|
|
|
21392
21682
|
|
|
21393
21683
|
@property
|
|
21394
21684
|
def Status(self):
|
|
21395
|
-
r"""<p>路由状态:
|
|
21685
|
+
r"""<p>路由状态:online/offline</p><p>枚举值:</p><ul><li>online: 节点处于在线状态</li><li>offline: 节点处于下线状态</li></ul>
|
|
21396
21686
|
:rtype: str
|
|
21397
21687
|
"""
|
|
21398
21688
|
return self._Status
|
|
@@ -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.163
|
|
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.163
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
tencentcloud_sdk_python_postgres-3.1.163/tencentcloud_sdk_python_postgres.egg-info/requires.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.163
|
tencentcloud_sdk_python_postgres-3.1.155/tencentcloud_sdk_python_postgres.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.155
|
{tencentcloud_sdk_python_postgres-3.1.155 → tencentcloud_sdk_python_postgres-3.1.163}/README.rst
RENAMED
|
File without changes
|
{tencentcloud_sdk_python_postgres-3.1.155 → tencentcloud_sdk_python_postgres-3.1.163}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|