tencentcloud-sdk-python-redis 3.0.1237__tar.gz → 3.0.1250__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.
Potentially problematic release.
This version of tencentcloud-sdk-python-redis might be problematic. Click here for more details.
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1250}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1250}/setup.py +1 -1
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1250}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1250}/tencentcloud/redis/v20180412/errorcodes.py +3 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1250}/tencentcloud/redis/v20180412/models.py +98 -1
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1250}/tencentcloud/redis/v20180412/redis_client.py +24 -1
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1250}/tencentcloud_sdk_python_redis.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-redis-3.0.1250/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.1250}/README.rst +0 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1250}/setup.cfg +0 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1250}/tencentcloud/redis/__init__.py +0 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1250}/tencentcloud/redis/v20180412/__init__.py +0 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1250}/tencentcloud_sdk_python_redis.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1250}/tencentcloud_sdk_python_redis.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1250}/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.1250"],
|
|
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'
|
|
@@ -13286,7 +13286,7 @@ class ModifyDBInstanceSecurityGroupsRequest(AbstractModel):
|
|
|
13286
13286
|
r"""
|
|
13287
13287
|
:param _Product: 数据库引擎名称,本接口取值:redis。
|
|
13288
13288
|
:type Product: str
|
|
13289
|
-
:param _SecurityGroupIds:
|
|
13289
|
+
:param _SecurityGroupIds: 更换为新的安全组 ID 列表,即一个或者多个安全组 ID 组成的数组。若实例第一次配置安全组,请使用接口[AssociateSecurityGroups](https://cloud.tencent.com/document/product/239/41260)先绑定安全组。
|
|
13290
13290
|
:type SecurityGroupIds: list of str
|
|
13291
13291
|
:param _InstanceId: 实例 ID,格式如:cdb-c1nl9rpv或者cdbro-c1nl9rpv,与云数据库控制台页面中显示的实例 ID 相同。
|
|
13292
13292
|
:type InstanceId: str
|
|
@@ -14002,6 +14002,103 @@ class ModifyInstanceParamsResponse(AbstractModel):
|
|
|
14002
14002
|
self._RequestId = params.get("RequestId")
|
|
14003
14003
|
|
|
14004
14004
|
|
|
14005
|
+
class ModifyInstancePasswordRequest(AbstractModel):
|
|
14006
|
+
"""ModifyInstancePassword请求参数结构体
|
|
14007
|
+
|
|
14008
|
+
"""
|
|
14009
|
+
|
|
14010
|
+
def __init__(self):
|
|
14011
|
+
r"""
|
|
14012
|
+
:param _InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis)在实例列表复制实例 ID。
|
|
14013
|
+
:type InstanceId: str
|
|
14014
|
+
:param _OldPassword: 实例旧密码。
|
|
14015
|
+
:type OldPassword: str
|
|
14016
|
+
:param _Password: 实例新密码。密码复杂度要求如下:
|
|
14017
|
+
- 长度8 - 30位, 推荐使用12位以上的密码。
|
|
14018
|
+
- 不能以"/"开头。
|
|
14019
|
+
- 至少包含小写字母a - z、大写字母A - Z、数字0 - 9、特殊字符 ()~!@#$%^&*-+=_|{}[]:;<>,.?/中的两项。
|
|
14020
|
+
:type Password: str
|
|
14021
|
+
"""
|
|
14022
|
+
self._InstanceId = None
|
|
14023
|
+
self._OldPassword = None
|
|
14024
|
+
self._Password = None
|
|
14025
|
+
|
|
14026
|
+
@property
|
|
14027
|
+
def InstanceId(self):
|
|
14028
|
+
return self._InstanceId
|
|
14029
|
+
|
|
14030
|
+
@InstanceId.setter
|
|
14031
|
+
def InstanceId(self, InstanceId):
|
|
14032
|
+
self._InstanceId = InstanceId
|
|
14033
|
+
|
|
14034
|
+
@property
|
|
14035
|
+
def OldPassword(self):
|
|
14036
|
+
return self._OldPassword
|
|
14037
|
+
|
|
14038
|
+
@OldPassword.setter
|
|
14039
|
+
def OldPassword(self, OldPassword):
|
|
14040
|
+
self._OldPassword = OldPassword
|
|
14041
|
+
|
|
14042
|
+
@property
|
|
14043
|
+
def Password(self):
|
|
14044
|
+
return self._Password
|
|
14045
|
+
|
|
14046
|
+
@Password.setter
|
|
14047
|
+
def Password(self, Password):
|
|
14048
|
+
self._Password = Password
|
|
14049
|
+
|
|
14050
|
+
|
|
14051
|
+
def _deserialize(self, params):
|
|
14052
|
+
self._InstanceId = params.get("InstanceId")
|
|
14053
|
+
self._OldPassword = params.get("OldPassword")
|
|
14054
|
+
self._Password = params.get("Password")
|
|
14055
|
+
memeber_set = set(params.keys())
|
|
14056
|
+
for name, value in vars(self).items():
|
|
14057
|
+
property_name = name[1:]
|
|
14058
|
+
if property_name in memeber_set:
|
|
14059
|
+
memeber_set.remove(property_name)
|
|
14060
|
+
if len(memeber_set) > 0:
|
|
14061
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
14062
|
+
|
|
14063
|
+
|
|
14064
|
+
|
|
14065
|
+
class ModifyInstancePasswordResponse(AbstractModel):
|
|
14066
|
+
"""ModifyInstancePassword返回参数结构体
|
|
14067
|
+
|
|
14068
|
+
"""
|
|
14069
|
+
|
|
14070
|
+
def __init__(self):
|
|
14071
|
+
r"""
|
|
14072
|
+
:param _TaskId: 任务 ID。
|
|
14073
|
+
:type TaskId: int
|
|
14074
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
14075
|
+
:type RequestId: str
|
|
14076
|
+
"""
|
|
14077
|
+
self._TaskId = None
|
|
14078
|
+
self._RequestId = None
|
|
14079
|
+
|
|
14080
|
+
@property
|
|
14081
|
+
def TaskId(self):
|
|
14082
|
+
return self._TaskId
|
|
14083
|
+
|
|
14084
|
+
@TaskId.setter
|
|
14085
|
+
def TaskId(self, TaskId):
|
|
14086
|
+
self._TaskId = TaskId
|
|
14087
|
+
|
|
14088
|
+
@property
|
|
14089
|
+
def RequestId(self):
|
|
14090
|
+
return self._RequestId
|
|
14091
|
+
|
|
14092
|
+
@RequestId.setter
|
|
14093
|
+
def RequestId(self, RequestId):
|
|
14094
|
+
self._RequestId = RequestId
|
|
14095
|
+
|
|
14096
|
+
|
|
14097
|
+
def _deserialize(self, params):
|
|
14098
|
+
self._TaskId = params.get("TaskId")
|
|
14099
|
+
self._RequestId = params.get("RequestId")
|
|
14100
|
+
|
|
14101
|
+
|
|
14005
14102
|
class ModifyInstanceReadOnlyRequest(AbstractModel):
|
|
14006
14103
|
"""ModifyInstanceReadOnly请求参数结构体
|
|
14007
14104
|
|
|
@@ -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.1250
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1237
|
{tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1250}/README.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|