tencentcloud-sdk-python-redis 3.1.152__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.
Potentially problematic release.
This version of tencentcloud-sdk-python-redis might be problematic. Click here for more details.
- {tencentcloud_sdk_python_redis-3.1.152 → tencentcloud_sdk_python_redis-3.1.163}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_redis-3.1.152 → tencentcloud_sdk_python_redis-3.1.163}/setup.py +1 -1
- {tencentcloud_sdk_python_redis-3.1.152 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_redis-3.1.152 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud/redis/v20180412/errorcodes.py +3 -0
- {tencentcloud_sdk_python_redis-3.1.152 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud/redis/v20180412/models.py +81 -0
- {tencentcloud_sdk_python_redis-3.1.152 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud/redis/v20180412/redis_client.py +23 -0
- {tencentcloud_sdk_python_redis-3.1.152 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud/redis/v20180412/redis_client_async.py +18 -0
- {tencentcloud_sdk_python_redis-3.1.152 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud_sdk_python_redis.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_redis-3.1.163/tencentcloud_sdk_python_redis.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_redis-3.1.152/tencentcloud_sdk_python_redis.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_redis-3.1.152 → tencentcloud_sdk_python_redis-3.1.163}/README.rst +0 -0
- {tencentcloud_sdk_python_redis-3.1.152 → tencentcloud_sdk_python_redis-3.1.163}/setup.cfg +0 -0
- {tencentcloud_sdk_python_redis-3.1.152 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud/redis/__init__.py +0 -0
- {tencentcloud_sdk_python_redis-3.1.152 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud/redis/v20180412/__init__.py +0 -0
- {tencentcloud_sdk_python_redis-3.1.152 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud_sdk_python_redis.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_redis-3.1.152 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud_sdk_python_redis.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_redis-3.1.152 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud_sdk_python_redis.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-redis
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.163
|
|
4
4
|
Summary: Tencent Cloud Redis 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
|
|
@@ -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.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 Redis SDK for Python',
|
|
@@ -83,6 +83,9 @@ INTERNALERROR_DBOPERATIONFAILED = 'InternalError.DbOperationFailed'
|
|
|
83
83
|
# 执行Http请求失败。
|
|
84
84
|
INTERNALERROR_EXECHTTPREQUESTERROR = 'InternalError.ExecHttpRequestError'
|
|
85
85
|
|
|
86
|
+
# 找不到该实例。
|
|
87
|
+
INTERNALERROR_INSTANCENOTFOUNDERROR = 'InternalError.InstanceNotFoundError'
|
|
88
|
+
|
|
86
89
|
# 无操作权限。
|
|
87
90
|
INTERNALERROR_INSTANCEOPERATEPERMISSIONERROR = 'InternalError.InstanceOperatePermissionError'
|
|
88
91
|
|
|
@@ -19828,6 +19828,87 @@ class ModifyInstanceParamsResponse(AbstractModel):
|
|
|
19828
19828
|
self._RequestId = params.get("RequestId")
|
|
19829
19829
|
|
|
19830
19830
|
|
|
19831
|
+
class ModifyInstancePasswordPolicyRequest(AbstractModel):
|
|
19832
|
+
r"""ModifyInstancePasswordPolicy请求参数结构体
|
|
19833
|
+
|
|
19834
|
+
"""
|
|
19835
|
+
|
|
19836
|
+
def __init__(self):
|
|
19837
|
+
r"""
|
|
19838
|
+
:param _InstanceId: <p>实例 ID。请登录 <a href="https://console.cloud.tencent.com/redis">Redis 控制台</a>在实例列表复制实例 ID。</p>
|
|
19839
|
+
:type InstanceId: str
|
|
19840
|
+
:param _PasswordPolicy: <p>实例的密码复杂度策略控制对象,包含密码长度及各类字符(字母/数字/特殊符号)最小数量的校验指标。</p>
|
|
19841
|
+
:type PasswordPolicy: :class:`tencentcloud.redis.v20180412.models.PasswordPolicy`
|
|
19842
|
+
"""
|
|
19843
|
+
self._InstanceId = None
|
|
19844
|
+
self._PasswordPolicy = None
|
|
19845
|
+
|
|
19846
|
+
@property
|
|
19847
|
+
def InstanceId(self):
|
|
19848
|
+
r"""<p>实例 ID。请登录 <a href="https://console.cloud.tencent.com/redis">Redis 控制台</a>在实例列表复制实例 ID。</p>
|
|
19849
|
+
:rtype: str
|
|
19850
|
+
"""
|
|
19851
|
+
return self._InstanceId
|
|
19852
|
+
|
|
19853
|
+
@InstanceId.setter
|
|
19854
|
+
def InstanceId(self, InstanceId):
|
|
19855
|
+
self._InstanceId = InstanceId
|
|
19856
|
+
|
|
19857
|
+
@property
|
|
19858
|
+
def PasswordPolicy(self):
|
|
19859
|
+
r"""<p>实例的密码复杂度策略控制对象,包含密码长度及各类字符(字母/数字/特殊符号)最小数量的校验指标。</p>
|
|
19860
|
+
:rtype: :class:`tencentcloud.redis.v20180412.models.PasswordPolicy`
|
|
19861
|
+
"""
|
|
19862
|
+
return self._PasswordPolicy
|
|
19863
|
+
|
|
19864
|
+
@PasswordPolicy.setter
|
|
19865
|
+
def PasswordPolicy(self, PasswordPolicy):
|
|
19866
|
+
self._PasswordPolicy = PasswordPolicy
|
|
19867
|
+
|
|
19868
|
+
|
|
19869
|
+
def _deserialize(self, params):
|
|
19870
|
+
self._InstanceId = params.get("InstanceId")
|
|
19871
|
+
if params.get("PasswordPolicy") is not None:
|
|
19872
|
+
self._PasswordPolicy = PasswordPolicy()
|
|
19873
|
+
self._PasswordPolicy._deserialize(params.get("PasswordPolicy"))
|
|
19874
|
+
memeber_set = set(params.keys())
|
|
19875
|
+
for name, value in vars(self).items():
|
|
19876
|
+
property_name = name[1:]
|
|
19877
|
+
if property_name in memeber_set:
|
|
19878
|
+
memeber_set.remove(property_name)
|
|
19879
|
+
if len(memeber_set) > 0:
|
|
19880
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
19881
|
+
|
|
19882
|
+
|
|
19883
|
+
|
|
19884
|
+
class ModifyInstancePasswordPolicyResponse(AbstractModel):
|
|
19885
|
+
r"""ModifyInstancePasswordPolicy返回参数结构体
|
|
19886
|
+
|
|
19887
|
+
"""
|
|
19888
|
+
|
|
19889
|
+
def __init__(self):
|
|
19890
|
+
r"""
|
|
19891
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
19892
|
+
:type RequestId: str
|
|
19893
|
+
"""
|
|
19894
|
+
self._RequestId = None
|
|
19895
|
+
|
|
19896
|
+
@property
|
|
19897
|
+
def RequestId(self):
|
|
19898
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
19899
|
+
:rtype: str
|
|
19900
|
+
"""
|
|
19901
|
+
return self._RequestId
|
|
19902
|
+
|
|
19903
|
+
@RequestId.setter
|
|
19904
|
+
def RequestId(self, RequestId):
|
|
19905
|
+
self._RequestId = RequestId
|
|
19906
|
+
|
|
19907
|
+
|
|
19908
|
+
def _deserialize(self, params):
|
|
19909
|
+
self._RequestId = params.get("RequestId")
|
|
19910
|
+
|
|
19911
|
+
|
|
19831
19912
|
class ModifyInstancePasswordRequest(AbstractModel):
|
|
19832
19913
|
r"""ModifyInstancePassword请求参数结构体
|
|
19833
19914
|
|
|
@@ -2236,6 +2236,29 @@ class RedisClient(AbstractClient):
|
|
|
2236
2236
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2237
2237
|
|
|
2238
2238
|
|
|
2239
|
+
def ModifyInstancePasswordPolicy(self, request):
|
|
2240
|
+
r"""本接口(ModifyInstancePasswordPolicy)用于修改实例密码复杂度。
|
|
2241
|
+
|
|
2242
|
+
:param request: Request instance for ModifyInstancePasswordPolicy.
|
|
2243
|
+
:type request: :class:`tencentcloud.redis.v20180412.models.ModifyInstancePasswordPolicyRequest`
|
|
2244
|
+
:rtype: :class:`tencentcloud.redis.v20180412.models.ModifyInstancePasswordPolicyResponse`
|
|
2245
|
+
|
|
2246
|
+
"""
|
|
2247
|
+
try:
|
|
2248
|
+
params = request._serialize()
|
|
2249
|
+
headers = request.headers
|
|
2250
|
+
body = self.call("ModifyInstancePasswordPolicy", params, headers=headers)
|
|
2251
|
+
response = json.loads(body)
|
|
2252
|
+
model = models.ModifyInstancePasswordPolicyResponse()
|
|
2253
|
+
model._deserialize(response["Response"])
|
|
2254
|
+
return model
|
|
2255
|
+
except Exception as e:
|
|
2256
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2257
|
+
raise
|
|
2258
|
+
else:
|
|
2259
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2260
|
+
|
|
2261
|
+
|
|
2239
2262
|
def ModifyInstanceReadOnly(self, request):
|
|
2240
2263
|
r"""本接口(ModifyInstanceReadOnly)用于设置实例输入模式。
|
|
2241
2264
|
|
|
@@ -1755,6 +1755,24 @@ class RedisClient(AbstractClient):
|
|
|
1755
1755
|
|
|
1756
1756
|
return await self.call_and_deserialize(**kwargs)
|
|
1757
1757
|
|
|
1758
|
+
async def ModifyInstancePasswordPolicy(
|
|
1759
|
+
self,
|
|
1760
|
+
request: models.ModifyInstancePasswordPolicyRequest,
|
|
1761
|
+
opts: Dict = None,
|
|
1762
|
+
) -> models.ModifyInstancePasswordPolicyResponse:
|
|
1763
|
+
"""
|
|
1764
|
+
本接口(ModifyInstancePasswordPolicy)用于修改实例密码复杂度。
|
|
1765
|
+
"""
|
|
1766
|
+
|
|
1767
|
+
kwargs = {}
|
|
1768
|
+
kwargs["action"] = "ModifyInstancePasswordPolicy"
|
|
1769
|
+
kwargs["params"] = request._serialize()
|
|
1770
|
+
kwargs["resp_cls"] = models.ModifyInstancePasswordPolicyResponse
|
|
1771
|
+
kwargs["headers"] = request.headers
|
|
1772
|
+
kwargs["opts"] = opts or {}
|
|
1773
|
+
|
|
1774
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1775
|
+
|
|
1758
1776
|
async def ModifyInstanceReadOnly(
|
|
1759
1777
|
self,
|
|
1760
1778
|
request: models.ModifyInstanceReadOnlyRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-redis
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.163
|
|
4
4
|
Summary: Tencent Cloud Redis 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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.163
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.152
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|