tencentcloud-sdk-python-redis 3.0.1045__tar.gz → 3.0.1054__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-redis-3.0.1045 → tencentcloud-sdk-python-redis-3.0.1054}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-redis-3.0.1045 → tencentcloud-sdk-python-redis-3.0.1054}/setup.py +1 -1
- {tencentcloud-sdk-python-redis-3.0.1045 → tencentcloud-sdk-python-redis-3.0.1054}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-redis-3.0.1045 → tencentcloud-sdk-python-redis-3.0.1054}/tencentcloud/redis/v20180412/models.py +246 -0
- {tencentcloud-sdk-python-redis-3.0.1045 → tencentcloud-sdk-python-redis-3.0.1054}/tencentcloud/redis/v20180412/redis_client.py +69 -0
- {tencentcloud-sdk-python-redis-3.0.1045 → tencentcloud-sdk-python-redis-3.0.1054}/tencentcloud_sdk_python_redis.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-redis-3.0.1054/tencentcloud_sdk_python_redis.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-redis-3.0.1045/tencentcloud_sdk_python_redis.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-redis-3.0.1045 → tencentcloud-sdk-python-redis-3.0.1054}/README.rst +0 -0
- {tencentcloud-sdk-python-redis-3.0.1045 → tencentcloud-sdk-python-redis-3.0.1054}/setup.cfg +0 -0
- {tencentcloud-sdk-python-redis-3.0.1045 → tencentcloud-sdk-python-redis-3.0.1054}/tencentcloud/redis/__init__.py +0 -0
- {tencentcloud-sdk-python-redis-3.0.1045 → tencentcloud-sdk-python-redis-3.0.1054}/tencentcloud/redis/v20180412/__init__.py +0 -0
- {tencentcloud-sdk-python-redis-3.0.1045 → tencentcloud-sdk-python-redis-3.0.1054}/tencentcloud/redis/v20180412/errorcodes.py +0 -0
- {tencentcloud-sdk-python-redis-3.0.1045 → tencentcloud-sdk-python-redis-3.0.1054}/tencentcloud_sdk_python_redis.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-redis-3.0.1045 → tencentcloud-sdk-python-redis-3.0.1054}/tencentcloud_sdk_python_redis.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-redis-3.0.1045 → tencentcloud-sdk-python-redis-3.0.1054}/tencentcloud_sdk_python_redis.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-redis',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1054"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Redis SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -5460,6 +5460,91 @@ class DescribeInstanceShardsResponse(AbstractModel):
|
|
|
5460
5460
|
self._RequestId = params.get("RequestId")
|
|
5461
5461
|
|
|
5462
5462
|
|
|
5463
|
+
class DescribeInstanceSupportFeatureRequest(AbstractModel):
|
|
5464
|
+
"""DescribeInstanceSupportFeature请求参数结构体
|
|
5465
|
+
|
|
5466
|
+
"""
|
|
5467
|
+
|
|
5468
|
+
def __init__(self):
|
|
5469
|
+
r"""
|
|
5470
|
+
:param _InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis#/)在实例列表复制实例 ID。
|
|
5471
|
+
示例值:crs-asdasdas
|
|
5472
|
+
:type InstanceId: str
|
|
5473
|
+
:param _FeatureName: 功能特性名称
|
|
5474
|
+
- read-local-node-only 就近接入功能
|
|
5475
|
+
- multi-account 多账号功能
|
|
5476
|
+
:type FeatureName: str
|
|
5477
|
+
"""
|
|
5478
|
+
self._InstanceId = None
|
|
5479
|
+
self._FeatureName = None
|
|
5480
|
+
|
|
5481
|
+
@property
|
|
5482
|
+
def InstanceId(self):
|
|
5483
|
+
return self._InstanceId
|
|
5484
|
+
|
|
5485
|
+
@InstanceId.setter
|
|
5486
|
+
def InstanceId(self, InstanceId):
|
|
5487
|
+
self._InstanceId = InstanceId
|
|
5488
|
+
|
|
5489
|
+
@property
|
|
5490
|
+
def FeatureName(self):
|
|
5491
|
+
return self._FeatureName
|
|
5492
|
+
|
|
5493
|
+
@FeatureName.setter
|
|
5494
|
+
def FeatureName(self, FeatureName):
|
|
5495
|
+
self._FeatureName = FeatureName
|
|
5496
|
+
|
|
5497
|
+
|
|
5498
|
+
def _deserialize(self, params):
|
|
5499
|
+
self._InstanceId = params.get("InstanceId")
|
|
5500
|
+
self._FeatureName = params.get("FeatureName")
|
|
5501
|
+
memeber_set = set(params.keys())
|
|
5502
|
+
for name, value in vars(self).items():
|
|
5503
|
+
property_name = name[1:]
|
|
5504
|
+
if property_name in memeber_set:
|
|
5505
|
+
memeber_set.remove(property_name)
|
|
5506
|
+
if len(memeber_set) > 0:
|
|
5507
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5508
|
+
|
|
5509
|
+
|
|
5510
|
+
|
|
5511
|
+
class DescribeInstanceSupportFeatureResponse(AbstractModel):
|
|
5512
|
+
"""DescribeInstanceSupportFeature返回参数结构体
|
|
5513
|
+
|
|
5514
|
+
"""
|
|
5515
|
+
|
|
5516
|
+
def __init__(self):
|
|
5517
|
+
r"""
|
|
5518
|
+
:param _Support: 是否支持
|
|
5519
|
+
:type Support: bool
|
|
5520
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
5521
|
+
:type RequestId: str
|
|
5522
|
+
"""
|
|
5523
|
+
self._Support = None
|
|
5524
|
+
self._RequestId = None
|
|
5525
|
+
|
|
5526
|
+
@property
|
|
5527
|
+
def Support(self):
|
|
5528
|
+
return self._Support
|
|
5529
|
+
|
|
5530
|
+
@Support.setter
|
|
5531
|
+
def Support(self, Support):
|
|
5532
|
+
self._Support = Support
|
|
5533
|
+
|
|
5534
|
+
@property
|
|
5535
|
+
def RequestId(self):
|
|
5536
|
+
return self._RequestId
|
|
5537
|
+
|
|
5538
|
+
@RequestId.setter
|
|
5539
|
+
def RequestId(self, RequestId):
|
|
5540
|
+
self._RequestId = RequestId
|
|
5541
|
+
|
|
5542
|
+
|
|
5543
|
+
def _deserialize(self, params):
|
|
5544
|
+
self._Support = params.get("Support")
|
|
5545
|
+
self._RequestId = params.get("RequestId")
|
|
5546
|
+
|
|
5547
|
+
|
|
5463
5548
|
class DescribeInstanceZoneInfoRequest(AbstractModel):
|
|
5464
5549
|
"""DescribeInstanceZoneInfo请求参数结构体
|
|
5465
5550
|
|
|
@@ -11902,6 +11987,108 @@ class ModifyInstanceAccountResponse(AbstractModel):
|
|
|
11902
11987
|
self._RequestId = params.get("RequestId")
|
|
11903
11988
|
|
|
11904
11989
|
|
|
11990
|
+
class ModifyInstanceAvailabilityZonesRequest(AbstractModel):
|
|
11991
|
+
"""ModifyInstanceAvailabilityZones请求参数结构体
|
|
11992
|
+
|
|
11993
|
+
"""
|
|
11994
|
+
|
|
11995
|
+
def __init__(self):
|
|
11996
|
+
r"""
|
|
11997
|
+
:param _InstanceId: 指定实例 ID。例如:crs-xjhsdj****,请登录[Redis控制台](https://console.cloud.tencent.com/redis#/)在实例列表复制实例 ID。
|
|
11998
|
+
:type InstanceId: str
|
|
11999
|
+
:param _SwitchOption: 切换时间。
|
|
12000
|
+
- 1:维护时间窗切换。
|
|
12001
|
+
- 2:立即切换。
|
|
12002
|
+
:type SwitchOption: int
|
|
12003
|
+
:param _NodeSet: 实例的节点信息,包含节点 ID、节点类型、节点可用区 ID等。具体信息,请参见[RedisNodeInfo ](https://cloud.tencent.com/document/product/239/20022)。
|
|
12004
|
+
单可用区实例无需传NodeId,多可用区实例NodeId必传
|
|
12005
|
+
:type NodeSet: list of RedisNodeInfo
|
|
12006
|
+
"""
|
|
12007
|
+
self._InstanceId = None
|
|
12008
|
+
self._SwitchOption = None
|
|
12009
|
+
self._NodeSet = None
|
|
12010
|
+
|
|
12011
|
+
@property
|
|
12012
|
+
def InstanceId(self):
|
|
12013
|
+
return self._InstanceId
|
|
12014
|
+
|
|
12015
|
+
@InstanceId.setter
|
|
12016
|
+
def InstanceId(self, InstanceId):
|
|
12017
|
+
self._InstanceId = InstanceId
|
|
12018
|
+
|
|
12019
|
+
@property
|
|
12020
|
+
def SwitchOption(self):
|
|
12021
|
+
return self._SwitchOption
|
|
12022
|
+
|
|
12023
|
+
@SwitchOption.setter
|
|
12024
|
+
def SwitchOption(self, SwitchOption):
|
|
12025
|
+
self._SwitchOption = SwitchOption
|
|
12026
|
+
|
|
12027
|
+
@property
|
|
12028
|
+
def NodeSet(self):
|
|
12029
|
+
return self._NodeSet
|
|
12030
|
+
|
|
12031
|
+
@NodeSet.setter
|
|
12032
|
+
def NodeSet(self, NodeSet):
|
|
12033
|
+
self._NodeSet = NodeSet
|
|
12034
|
+
|
|
12035
|
+
|
|
12036
|
+
def _deserialize(self, params):
|
|
12037
|
+
self._InstanceId = params.get("InstanceId")
|
|
12038
|
+
self._SwitchOption = params.get("SwitchOption")
|
|
12039
|
+
if params.get("NodeSet") is not None:
|
|
12040
|
+
self._NodeSet = []
|
|
12041
|
+
for item in params.get("NodeSet"):
|
|
12042
|
+
obj = RedisNodeInfo()
|
|
12043
|
+
obj._deserialize(item)
|
|
12044
|
+
self._NodeSet.append(obj)
|
|
12045
|
+
memeber_set = set(params.keys())
|
|
12046
|
+
for name, value in vars(self).items():
|
|
12047
|
+
property_name = name[1:]
|
|
12048
|
+
if property_name in memeber_set:
|
|
12049
|
+
memeber_set.remove(property_name)
|
|
12050
|
+
if len(memeber_set) > 0:
|
|
12051
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12052
|
+
|
|
12053
|
+
|
|
12054
|
+
|
|
12055
|
+
class ModifyInstanceAvailabilityZonesResponse(AbstractModel):
|
|
12056
|
+
"""ModifyInstanceAvailabilityZones返回参数结构体
|
|
12057
|
+
|
|
12058
|
+
"""
|
|
12059
|
+
|
|
12060
|
+
def __init__(self):
|
|
12061
|
+
r"""
|
|
12062
|
+
:param _TaskId: 任务ID。
|
|
12063
|
+
:type TaskId: int
|
|
12064
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
12065
|
+
:type RequestId: str
|
|
12066
|
+
"""
|
|
12067
|
+
self._TaskId = None
|
|
12068
|
+
self._RequestId = None
|
|
12069
|
+
|
|
12070
|
+
@property
|
|
12071
|
+
def TaskId(self):
|
|
12072
|
+
return self._TaskId
|
|
12073
|
+
|
|
12074
|
+
@TaskId.setter
|
|
12075
|
+
def TaskId(self, TaskId):
|
|
12076
|
+
self._TaskId = TaskId
|
|
12077
|
+
|
|
12078
|
+
@property
|
|
12079
|
+
def RequestId(self):
|
|
12080
|
+
return self._RequestId
|
|
12081
|
+
|
|
12082
|
+
@RequestId.setter
|
|
12083
|
+
def RequestId(self, RequestId):
|
|
12084
|
+
self._RequestId = RequestId
|
|
12085
|
+
|
|
12086
|
+
|
|
12087
|
+
def _deserialize(self, params):
|
|
12088
|
+
self._TaskId = params.get("TaskId")
|
|
12089
|
+
self._RequestId = params.get("RequestId")
|
|
12090
|
+
|
|
12091
|
+
|
|
11905
12092
|
class ModifyInstanceParamsRequest(AbstractModel):
|
|
11906
12093
|
"""ModifyInstanceParams请求参数结构体
|
|
11907
12094
|
|
|
@@ -15032,6 +15219,65 @@ class StartupInstanceResponse(AbstractModel):
|
|
|
15032
15219
|
self._RequestId = params.get("RequestId")
|
|
15033
15220
|
|
|
15034
15221
|
|
|
15222
|
+
class SwitchAccessNewInstanceRequest(AbstractModel):
|
|
15223
|
+
"""SwitchAccessNewInstance请求参数结构体
|
|
15224
|
+
|
|
15225
|
+
"""
|
|
15226
|
+
|
|
15227
|
+
def __init__(self):
|
|
15228
|
+
r"""
|
|
15229
|
+
:param _InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis#/)在实例列表复制实例 ID。
|
|
15230
|
+
示例值:crs-asdasdas
|
|
15231
|
+
:type InstanceId: str
|
|
15232
|
+
"""
|
|
15233
|
+
self._InstanceId = None
|
|
15234
|
+
|
|
15235
|
+
@property
|
|
15236
|
+
def InstanceId(self):
|
|
15237
|
+
return self._InstanceId
|
|
15238
|
+
|
|
15239
|
+
@InstanceId.setter
|
|
15240
|
+
def InstanceId(self, InstanceId):
|
|
15241
|
+
self._InstanceId = InstanceId
|
|
15242
|
+
|
|
15243
|
+
|
|
15244
|
+
def _deserialize(self, params):
|
|
15245
|
+
self._InstanceId = params.get("InstanceId")
|
|
15246
|
+
memeber_set = set(params.keys())
|
|
15247
|
+
for name, value in vars(self).items():
|
|
15248
|
+
property_name = name[1:]
|
|
15249
|
+
if property_name in memeber_set:
|
|
15250
|
+
memeber_set.remove(property_name)
|
|
15251
|
+
if len(memeber_set) > 0:
|
|
15252
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
15253
|
+
|
|
15254
|
+
|
|
15255
|
+
|
|
15256
|
+
class SwitchAccessNewInstanceResponse(AbstractModel):
|
|
15257
|
+
"""SwitchAccessNewInstance返回参数结构体
|
|
15258
|
+
|
|
15259
|
+
"""
|
|
15260
|
+
|
|
15261
|
+
def __init__(self):
|
|
15262
|
+
r"""
|
|
15263
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
15264
|
+
:type RequestId: str
|
|
15265
|
+
"""
|
|
15266
|
+
self._RequestId = None
|
|
15267
|
+
|
|
15268
|
+
@property
|
|
15269
|
+
def RequestId(self):
|
|
15270
|
+
return self._RequestId
|
|
15271
|
+
|
|
15272
|
+
@RequestId.setter
|
|
15273
|
+
def RequestId(self, RequestId):
|
|
15274
|
+
self._RequestId = RequestId
|
|
15275
|
+
|
|
15276
|
+
|
|
15277
|
+
def _deserialize(self, params):
|
|
15278
|
+
self._RequestId = params.get("RequestId")
|
|
15279
|
+
|
|
15280
|
+
|
|
15035
15281
|
class SwitchInstanceVipRequest(AbstractModel):
|
|
15036
15282
|
"""SwitchInstanceVip请求参数结构体
|
|
15037
15283
|
|
|
@@ -969,6 +969,29 @@ class RedisClient(AbstractClient):
|
|
|
969
969
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
970
970
|
|
|
971
971
|
|
|
972
|
+
def DescribeInstanceSupportFeature(self, request):
|
|
973
|
+
"""本接口(DescribeInstanceSupportFeature)用于查询实例支持的功能特性。
|
|
974
|
+
|
|
975
|
+
:param request: Request instance for DescribeInstanceSupportFeature.
|
|
976
|
+
:type request: :class:`tencentcloud.redis.v20180412.models.DescribeInstanceSupportFeatureRequest`
|
|
977
|
+
:rtype: :class:`tencentcloud.redis.v20180412.models.DescribeInstanceSupportFeatureResponse`
|
|
978
|
+
|
|
979
|
+
"""
|
|
980
|
+
try:
|
|
981
|
+
params = request._serialize()
|
|
982
|
+
headers = request.headers
|
|
983
|
+
body = self.call("DescribeInstanceSupportFeature", params, headers=headers)
|
|
984
|
+
response = json.loads(body)
|
|
985
|
+
model = models.DescribeInstanceSupportFeatureResponse()
|
|
986
|
+
model._deserialize(response["Response"])
|
|
987
|
+
return model
|
|
988
|
+
except Exception as e:
|
|
989
|
+
if isinstance(e, TencentCloudSDKException):
|
|
990
|
+
raise
|
|
991
|
+
else:
|
|
992
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
993
|
+
|
|
994
|
+
|
|
972
995
|
def DescribeInstanceZoneInfo(self, request):
|
|
973
996
|
"""本接口(DescribeInstanceZoneInfo)用于查询 Redis 节点详细信息。
|
|
974
997
|
|
|
@@ -1705,6 +1728,29 @@ class RedisClient(AbstractClient):
|
|
|
1705
1728
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1706
1729
|
|
|
1707
1730
|
|
|
1731
|
+
def ModifyInstanceAvailabilityZones(self, request):
|
|
1732
|
+
"""本接口(ModifyInstanceAvailabilityZones)用于变更实例可用区
|
|
1733
|
+
|
|
1734
|
+
:param request: Request instance for ModifyInstanceAvailabilityZones.
|
|
1735
|
+
:type request: :class:`tencentcloud.redis.v20180412.models.ModifyInstanceAvailabilityZonesRequest`
|
|
1736
|
+
:rtype: :class:`tencentcloud.redis.v20180412.models.ModifyInstanceAvailabilityZonesResponse`
|
|
1737
|
+
|
|
1738
|
+
"""
|
|
1739
|
+
try:
|
|
1740
|
+
params = request._serialize()
|
|
1741
|
+
headers = request.headers
|
|
1742
|
+
body = self.call("ModifyInstanceAvailabilityZones", params, headers=headers)
|
|
1743
|
+
response = json.loads(body)
|
|
1744
|
+
model = models.ModifyInstanceAvailabilityZonesResponse()
|
|
1745
|
+
model._deserialize(response["Response"])
|
|
1746
|
+
return model
|
|
1747
|
+
except Exception as e:
|
|
1748
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1749
|
+
raise
|
|
1750
|
+
else:
|
|
1751
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1752
|
+
|
|
1753
|
+
|
|
1708
1754
|
def ModifyInstanceParams(self, request):
|
|
1709
1755
|
"""本接口(ModifyInstanceParams)用于修改Redis实例的参数配置。
|
|
1710
1756
|
|
|
@@ -1981,6 +2027,29 @@ class RedisClient(AbstractClient):
|
|
|
1981
2027
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1982
2028
|
|
|
1983
2029
|
|
|
2030
|
+
def SwitchAccessNewInstance(self, request):
|
|
2031
|
+
"""本接口(SwitchAccessNewInstance)针对处于时间窗口中待切换操作的实例,用户可主动发起该操作。
|
|
2032
|
+
|
|
2033
|
+
:param request: Request instance for SwitchAccessNewInstance.
|
|
2034
|
+
:type request: :class:`tencentcloud.redis.v20180412.models.SwitchAccessNewInstanceRequest`
|
|
2035
|
+
:rtype: :class:`tencentcloud.redis.v20180412.models.SwitchAccessNewInstanceResponse`
|
|
2036
|
+
|
|
2037
|
+
"""
|
|
2038
|
+
try:
|
|
2039
|
+
params = request._serialize()
|
|
2040
|
+
headers = request.headers
|
|
2041
|
+
body = self.call("SwitchAccessNewInstance", params, headers=headers)
|
|
2042
|
+
response = json.loads(body)
|
|
2043
|
+
model = models.SwitchAccessNewInstanceResponse()
|
|
2044
|
+
model._deserialize(response["Response"])
|
|
2045
|
+
return model
|
|
2046
|
+
except Exception as e:
|
|
2047
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2048
|
+
raise
|
|
2049
|
+
else:
|
|
2050
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2051
|
+
|
|
2052
|
+
|
|
1984
2053
|
def SwitchInstanceVip(self, request):
|
|
1985
2054
|
"""在通过DTS支持跨可用区灾备的场景中,通过该接口交换实例VIP完成实例灾备切换。交换VIP后目标实例可写,源和目标实例VIP互换,同时源与目标实例间DTS同步任务断开
|
|
1986
2055
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1054
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1045
|
{tencentcloud-sdk-python-redis-3.0.1045 → tencentcloud-sdk-python-redis-3.0.1054}/README.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|