tencentcloud-sdk-python-redis 3.0.1237__tar.gz → 3.0.1258__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.1237 → tencentcloud-sdk-python-redis-3.0.1258}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1258}/setup.py +1 -1
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1258}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1258}/tencentcloud/redis/v20180412/errorcodes.py +3 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1258}/tencentcloud/redis/v20180412/models.py +101 -2
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1258}/tencentcloud/redis/v20180412/redis_client.py +26 -3
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1258}/tencentcloud_sdk_python_redis.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-redis-3.0.1258/tencentcloud_sdk_python_redis.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-redis-3.0.1237/tencentcloud_sdk_python_redis.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1258}/README.rst +0 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1258}/setup.cfg +0 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1258}/tencentcloud/redis/__init__.py +0 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1258}/tencentcloud/redis/v20180412/__init__.py +0 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1258}/tencentcloud_sdk_python_redis.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1258}/tencentcloud_sdk_python_redis.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1258}/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.1258"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Redis SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -329,5 +329,8 @@ UNSUPPORTEDOPERATION_ISAUTORENEWERROR = 'UnsupportedOperation.IsAutoRenewError'
|
|
|
329
329
|
# 实例版本过低。
|
|
330
330
|
UNSUPPORTEDOPERATION_LIMITPROXYVERSION = 'UnsupportedOperation.LimitProxyVersion'
|
|
331
331
|
|
|
332
|
+
# 实例版本过低
|
|
333
|
+
UNSUPPORTEDOPERATION_LOWVERSION = 'UnsupportedOperation.LowVersion'
|
|
334
|
+
|
|
332
335
|
# 只有集群版实例支持导出备份。
|
|
333
336
|
UNSUPPORTEDOPERATION_ONLYCLUSTERINSTANCECANEXPORTBACKUP = 'UnsupportedOperation.OnlyClusterInstanceCanExportBackup'
|
|
@@ -2039,7 +2039,9 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
2039
2039
|
- 1:自动续费。
|
|
2040
2040
|
- 2:到期不续费。
|
|
2041
2041
|
:type AutoRenew: int
|
|
2042
|
-
:param _SecurityGroupIdList: 安全组 ID
|
|
2042
|
+
:param _SecurityGroupIdList: 安全组 ID 数组。
|
|
2043
|
+
- 安全组是一种虚拟防火墙,对云数据库实例的网络访问进行控制。创建实例时,建议绑定相应的安全组。
|
|
2044
|
+
- 请通过 [DescribeInstanceSecurityGroup](https://cloud.tencent.com/document/product/239/34447) 接口获取实例的安全组 ID。
|
|
2043
2045
|
:type SecurityGroupIdList: list of str
|
|
2044
2046
|
:param _VPort: 用户自定义的网络端口。默认为6379,范围为 [1024,65535]。
|
|
2045
2047
|
:type VPort: int
|
|
@@ -13286,7 +13288,7 @@ class ModifyDBInstanceSecurityGroupsRequest(AbstractModel):
|
|
|
13286
13288
|
r"""
|
|
13287
13289
|
:param _Product: 数据库引擎名称,本接口取值:redis。
|
|
13288
13290
|
:type Product: str
|
|
13289
|
-
:param _SecurityGroupIds:
|
|
13291
|
+
:param _SecurityGroupIds: 更换为新的安全组 ID 列表,即一个或者多个安全组 ID 组成的数组。若实例第一次配置安全组,请使用接口[AssociateSecurityGroups](https://cloud.tencent.com/document/product/239/41260)先绑定安全组。
|
|
13290
13292
|
:type SecurityGroupIds: list of str
|
|
13291
13293
|
:param _InstanceId: 实例 ID,格式如:cdb-c1nl9rpv或者cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
|
|
13292
13294
|
:type InstanceId: str
|
|
@@ -14002,6 +14004,103 @@ class ModifyInstanceParamsResponse(AbstractModel):
|
|
|
14002
14004
|
self._RequestId = params.get("RequestId")
|
|
14003
14005
|
|
|
14004
14006
|
|
|
14007
|
+
class ModifyInstancePasswordRequest(AbstractModel):
|
|
14008
|
+
"""ModifyInstancePassword请求参数结构体
|
|
14009
|
+
|
|
14010
|
+
"""
|
|
14011
|
+
|
|
14012
|
+
def __init__(self):
|
|
14013
|
+
r"""
|
|
14014
|
+
:param _InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis)在实例列表复制实例 ID。
|
|
14015
|
+
:type InstanceId: str
|
|
14016
|
+
:param _OldPassword: 实例旧密码。
|
|
14017
|
+
:type OldPassword: str
|
|
14018
|
+
:param _Password: 实例新密码。密码复杂度要求如下:
|
|
14019
|
+
- 长度8 - 30位, 推荐使用12位以上的密码。
|
|
14020
|
+
- 不能以"/"开头。
|
|
14021
|
+
- 至少包含小写字母a - z、大写字母A - Z、数字0 - 9、特殊字符 ()~!@#$%^&*-+=_|{}[]:;<>,.?/中的两项。
|
|
14022
|
+
:type Password: str
|
|
14023
|
+
"""
|
|
14024
|
+
self._InstanceId = None
|
|
14025
|
+
self._OldPassword = None
|
|
14026
|
+
self._Password = None
|
|
14027
|
+
|
|
14028
|
+
@property
|
|
14029
|
+
def InstanceId(self):
|
|
14030
|
+
return self._InstanceId
|
|
14031
|
+
|
|
14032
|
+
@InstanceId.setter
|
|
14033
|
+
def InstanceId(self, InstanceId):
|
|
14034
|
+
self._InstanceId = InstanceId
|
|
14035
|
+
|
|
14036
|
+
@property
|
|
14037
|
+
def OldPassword(self):
|
|
14038
|
+
return self._OldPassword
|
|
14039
|
+
|
|
14040
|
+
@OldPassword.setter
|
|
14041
|
+
def OldPassword(self, OldPassword):
|
|
14042
|
+
self._OldPassword = OldPassword
|
|
14043
|
+
|
|
14044
|
+
@property
|
|
14045
|
+
def Password(self):
|
|
14046
|
+
return self._Password
|
|
14047
|
+
|
|
14048
|
+
@Password.setter
|
|
14049
|
+
def Password(self, Password):
|
|
14050
|
+
self._Password = Password
|
|
14051
|
+
|
|
14052
|
+
|
|
14053
|
+
def _deserialize(self, params):
|
|
14054
|
+
self._InstanceId = params.get("InstanceId")
|
|
14055
|
+
self._OldPassword = params.get("OldPassword")
|
|
14056
|
+
self._Password = params.get("Password")
|
|
14057
|
+
memeber_set = set(params.keys())
|
|
14058
|
+
for name, value in vars(self).items():
|
|
14059
|
+
property_name = name[1:]
|
|
14060
|
+
if property_name in memeber_set:
|
|
14061
|
+
memeber_set.remove(property_name)
|
|
14062
|
+
if len(memeber_set) > 0:
|
|
14063
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
14064
|
+
|
|
14065
|
+
|
|
14066
|
+
|
|
14067
|
+
class ModifyInstancePasswordResponse(AbstractModel):
|
|
14068
|
+
"""ModifyInstancePassword返回参数结构体
|
|
14069
|
+
|
|
14070
|
+
"""
|
|
14071
|
+
|
|
14072
|
+
def __init__(self):
|
|
14073
|
+
r"""
|
|
14074
|
+
:param _TaskId: 任务 ID。
|
|
14075
|
+
:type TaskId: int
|
|
14076
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14077
|
+
:type RequestId: str
|
|
14078
|
+
"""
|
|
14079
|
+
self._TaskId = None
|
|
14080
|
+
self._RequestId = None
|
|
14081
|
+
|
|
14082
|
+
@property
|
|
14083
|
+
def TaskId(self):
|
|
14084
|
+
return self._TaskId
|
|
14085
|
+
|
|
14086
|
+
@TaskId.setter
|
|
14087
|
+
def TaskId(self, TaskId):
|
|
14088
|
+
self._TaskId = TaskId
|
|
14089
|
+
|
|
14090
|
+
@property
|
|
14091
|
+
def RequestId(self):
|
|
14092
|
+
return self._RequestId
|
|
14093
|
+
|
|
14094
|
+
@RequestId.setter
|
|
14095
|
+
def RequestId(self, RequestId):
|
|
14096
|
+
self._RequestId = RequestId
|
|
14097
|
+
|
|
14098
|
+
|
|
14099
|
+
def _deserialize(self, params):
|
|
14100
|
+
self._TaskId = params.get("TaskId")
|
|
14101
|
+
self._RequestId = params.get("RequestId")
|
|
14102
|
+
|
|
14103
|
+
|
|
14005
14104
|
class ModifyInstanceReadOnlyRequest(AbstractModel):
|
|
14006
14105
|
"""ModifyInstanceReadOnly请求参数结构体
|
|
14007
14106
|
|
|
@@ -96,7 +96,7 @@ class RedisClient(AbstractClient):
|
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
def AssociateSecurityGroups(self, request):
|
|
99
|
-
"""本接口 (AssociateSecurityGroups)
|
|
99
|
+
"""本接口 (AssociateSecurityGroups) 用于将一个安全组绑定于一个或多个数据库实例。创建实例时,未配置安全组,建议通过该接口,绑定安全组。
|
|
100
100
|
|
|
101
101
|
:param request: Request instance for AssociateSecurityGroups.
|
|
102
102
|
:type request: :class:`tencentcloud.redis.v20180412.models.AssociateSecurityGroupsRequest`
|
|
@@ -1752,7 +1752,7 @@ class RedisClient(AbstractClient):
|
|
|
1752
1752
|
|
|
1753
1753
|
|
|
1754
1754
|
def ModfiyInstancePassword(self, request):
|
|
1755
|
-
"""本接口(ModfiyInstancePassword
|
|
1755
|
+
"""本接口(ModfiyInstancePassword)用于修改实例访问密码。鉴于该接口名存在拼写错误,现已更正为([ModifyInstancePassword](https://cloud.tencent.com/document/product/239/111555))接口,推荐使用更正后的接口。
|
|
1756
1756
|
|
|
1757
1757
|
:param request: Request instance for ModfiyInstancePassword.
|
|
1758
1758
|
:type request: :class:`tencentcloud.redis.v20180412.models.ModfiyInstancePasswordRequest`
|
|
@@ -1844,7 +1844,7 @@ class RedisClient(AbstractClient):
|
|
|
1844
1844
|
|
|
1845
1845
|
|
|
1846
1846
|
def ModifyDBInstanceSecurityGroups(self, request):
|
|
1847
|
-
"""
|
|
1847
|
+
"""本接口(ModifyDBInstanceSecurityGroups)用于对实例原有的安全组列表进行修改。
|
|
1848
1848
|
|
|
1849
1849
|
:param request: Request instance for ModifyDBInstanceSecurityGroups.
|
|
1850
1850
|
:type request: :class:`tencentcloud.redis.v20180412.models.ModifyDBInstanceSecurityGroupsRequest`
|
|
@@ -2004,6 +2004,29 @@ class RedisClient(AbstractClient):
|
|
|
2004
2004
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2005
2005
|
|
|
2006
2006
|
|
|
2007
|
+
def ModifyInstancePassword(self, request):
|
|
2008
|
+
"""本接口(ModifyInstancePassword)用于修改实例访问密码。
|
|
2009
|
+
|
|
2010
|
+
:param request: Request instance for ModifyInstancePassword.
|
|
2011
|
+
:type request: :class:`tencentcloud.redis.v20180412.models.ModifyInstancePasswordRequest`
|
|
2012
|
+
:rtype: :class:`tencentcloud.redis.v20180412.models.ModifyInstancePasswordResponse`
|
|
2013
|
+
|
|
2014
|
+
"""
|
|
2015
|
+
try:
|
|
2016
|
+
params = request._serialize()
|
|
2017
|
+
headers = request.headers
|
|
2018
|
+
body = self.call("ModifyInstancePassword", params, headers=headers)
|
|
2019
|
+
response = json.loads(body)
|
|
2020
|
+
model = models.ModifyInstancePasswordResponse()
|
|
2021
|
+
model._deserialize(response["Response"])
|
|
2022
|
+
return model
|
|
2023
|
+
except Exception as e:
|
|
2024
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2025
|
+
raise
|
|
2026
|
+
else:
|
|
2027
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2028
|
+
|
|
2029
|
+
|
|
2007
2030
|
def ModifyInstanceReadOnly(self, request):
|
|
2008
2031
|
"""设置实例输入模式
|
|
2009
2032
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1258
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1237
|
{tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1258}/README.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|