tencentcloud-sdk-python-redis 3.1.151__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.

Files changed (17) hide show
  1. {tencentcloud_sdk_python_redis-3.1.151 → tencentcloud_sdk_python_redis-3.1.163}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_redis-3.1.151 → tencentcloud_sdk_python_redis-3.1.163}/setup.py +1 -1
  3. {tencentcloud_sdk_python_redis-3.1.151 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_redis-3.1.151 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud/redis/v20180412/errorcodes.py +3 -0
  5. {tencentcloud_sdk_python_redis-3.1.151 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud/redis/v20180412/models.py +147 -4
  6. {tencentcloud_sdk_python_redis-3.1.151 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud/redis/v20180412/redis_client.py +23 -0
  7. {tencentcloud_sdk_python_redis-3.1.151 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud/redis/v20180412/redis_client_async.py +18 -0
  8. {tencentcloud_sdk_python_redis-3.1.151 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud_sdk_python_redis.egg-info/PKG-INFO +2 -2
  9. tencentcloud_sdk_python_redis-3.1.163/tencentcloud_sdk_python_redis.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_redis-3.1.151/tencentcloud_sdk_python_redis.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_redis-3.1.151 → tencentcloud_sdk_python_redis-3.1.163}/README.rst +0 -0
  12. {tencentcloud_sdk_python_redis-3.1.151 → tencentcloud_sdk_python_redis-3.1.163}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_redis-3.1.151 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud/redis/__init__.py +0 -0
  14. {tencentcloud_sdk_python_redis-3.1.151 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud/redis/v20180412/__init__.py +0 -0
  15. {tencentcloud_sdk_python_redis-3.1.151 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud_sdk_python_redis.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_redis-3.1.151 → tencentcloud_sdk_python_redis-3.1.163}/tencentcloud_sdk_python_redis.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_redis-3.1.151 → 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.151
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.151
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.151,<4.0.0"],
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',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.151'
17
+ __version__ = '3.1.163'
@@ -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
 
@@ -2738,7 +2738,7 @@ class CreateInstancesRequest(AbstractModel):
2738
2738
 
2739
2739
  def __init__(self):
2740
2740
  r"""
2741
- :param _TypeId: <p>实例类型。</p><ul><li>2:Redis 2.8 内存版(标准架构)。</li><li>3:CKV 3.2 内存版(标准架构)。</li><li>4:CKV 3.2 内存版(集群架构)。</li><li>6:Redis 4.0 内存版(标准架构)。</li><li>7:Redis 4.0 内存版(集群架构)。</li><li>8:Redis 5.0 内存版(标准架构)。</li><li>9:Redis 5.0 内存版(集群架构)。</li><li>15:Redis 6.2 内存版(标准架构)。</li><li>16:Redis 6.2 内存版(集群架构)。</li><li>17:Redis 7.0 内存版(标准架构)。</li><li>18:Redis 7.0 内存版(集群架构)。</li><li>19:Valkey 8.0 内存版(标准架构)。</li><li>20:Valkey 8.0 内存版(集群架构)。</li><li>200:Memcached 1.6 内存版(集群架构)。<br><strong>说明</strong>:CKV 版本当前有存量用户使用,暂时保留。</li></ul>
2741
+ :param _TypeId: <p>实例类型。</p><ul><li>2:Redis 2.8 内存版(标准架构)。</li><li>3:CKV 3.2 内存版(标准架构)。</li><li>4:CKV 3.2 内存版(集群架构)。</li><li>6:Redis 4.0 内存版(标准架构)。</li><li>7:Redis 4.0 内存版(集群架构)。</li><li>8:Redis 5.0 内存版(标准架构)。</li><li>9:Redis 5.0 内存版(集群架构)。</li><li>15:Redis 6.2 内存版(标准架构)。</li><li>16:Redis 6.2 内存版(集群架构)。</li><li>17:Redis 7.0 内存版(标准架构)。</li><li>18:Redis 7.0 内存版(集群架构)。</li><li>19:Valkey 8.0 内存版(标准架构)。</li><li>20:Valkey 8.0 内存版(集群架构)。</li><li>21:Valkey 9.0 内存版(标准架构)。</li><li>22:Valkey 9.0 内存版(集群架构)。</li><li>200:Memcached 1.6 内存版(集群架构)。<br><strong>说明</strong>:CKV 版本当前有存量用户使用,暂时保留。</li></ul>
2742
2742
  :type TypeId: int
2743
2743
  :param _MemSize: <p>内存容量,单位为MB, 数值需为1024的整数倍。具体规格,请通过 <a href="https://cloud.tencent.com/document/api/239/30600">DescribeProductInfo</a> 接口查询全地域的售卖规格。</p><ul><li><strong>TypeId</strong>为标准架构时,<strong>MemSize</strong>是实例总内存容量;</li><li><strong>TypeId</strong>为集群架构时,<strong>MemSize</strong>是单分片内存容量。</li></ul>
2744
2744
  :type MemSize: int
@@ -2792,6 +2792,14 @@ class CreateInstancesRequest(AbstractModel):
2792
2792
  :type AlarmPolicyList: list of str
2793
2793
  :param _EncryptPassword: <p>是否启用密码加密传输。</p><ul><li>true:加密。</li><li>false:不加密(默认值)。</li></ul>
2794
2794
  :type EncryptPassword: bool
2795
+ :param _PasswordPolicy: <p>实例级密码复杂度策略。未传入或 Enabled=false 时,视为不启用策略,按系统默认规则校验。</p>
2796
+ :type PasswordPolicy: :class:`tencentcloud.redis.v20180412.models.PasswordPolicy`
2797
+ :param _EnableSSL: <p>是否开启 SSL 加密传输。</p><ul><li>true:开启。</li><li>false:关闭(默认值)。</li></ul>
2798
+ :type EnableSSL: bool
2799
+ :param _SSLBindPrivateIPv4: <p>开启 SSL 时,是否将实例的内网 IPv4 地址写入证书的域名别名(SAN)中。仅在 EnableSSL 为 true 时生效。</p><ul><li>true:允许使用内网 IP 进行 SSL 证书校验。</li><li>false:不添加证书的 SAN 扩展信息。</li></ul>
2800
+ :type SSLBindPrivateIPv4: bool
2801
+ :param _ConnectionMode: <p>实例连接访问模式。</p><ul><li>0:代理模式(Proxy Mode,默认值)。</li><li>1:直连模式(Direct Connect Mode)。</li></ul>
2802
+ :type ConnectionMode: int
2795
2803
  """
2796
2804
  self._TypeId = None
2797
2805
  self._MemSize = None
@@ -2820,10 +2828,14 @@ class CreateInstancesRequest(AbstractModel):
2820
2828
  self._RedisClusterId = None
2821
2829
  self._AlarmPolicyList = None
2822
2830
  self._EncryptPassword = None
2831
+ self._PasswordPolicy = None
2832
+ self._EnableSSL = None
2833
+ self._SSLBindPrivateIPv4 = None
2834
+ self._ConnectionMode = None
2823
2835
 
2824
2836
  @property
2825
2837
  def TypeId(self):
2826
- r"""<p>实例类型。</p><ul><li>2:Redis 2.8 内存版(标准架构)。</li><li>3:CKV 3.2 内存版(标准架构)。</li><li>4:CKV 3.2 内存版(集群架构)。</li><li>6:Redis 4.0 内存版(标准架构)。</li><li>7:Redis 4.0 内存版(集群架构)。</li><li>8:Redis 5.0 内存版(标准架构)。</li><li>9:Redis 5.0 内存版(集群架构)。</li><li>15:Redis 6.2 内存版(标准架构)。</li><li>16:Redis 6.2 内存版(集群架构)。</li><li>17:Redis 7.0 内存版(标准架构)。</li><li>18:Redis 7.0 内存版(集群架构)。</li><li>19:Valkey 8.0 内存版(标准架构)。</li><li>20:Valkey 8.0 内存版(集群架构)。</li><li>200:Memcached 1.6 内存版(集群架构)。<br><strong>说明</strong>:CKV 版本当前有存量用户使用,暂时保留。</li></ul>
2838
+ r"""<p>实例类型。</p><ul><li>2:Redis 2.8 内存版(标准架构)。</li><li>3:CKV 3.2 内存版(标准架构)。</li><li>4:CKV 3.2 内存版(集群架构)。</li><li>6:Redis 4.0 内存版(标准架构)。</li><li>7:Redis 4.0 内存版(集群架构)。</li><li>8:Redis 5.0 内存版(标准架构)。</li><li>9:Redis 5.0 内存版(集群架构)。</li><li>15:Redis 6.2 内存版(标准架构)。</li><li>16:Redis 6.2 内存版(集群架构)。</li><li>17:Redis 7.0 内存版(标准架构)。</li><li>18:Redis 7.0 内存版(集群架构)。</li><li>19:Valkey 8.0 内存版(标准架构)。</li><li>20:Valkey 8.0 内存版(集群架构)。</li><li>21:Valkey 9.0 内存版(标准架构)。</li><li>22:Valkey 9.0 内存版(集群架构)。</li><li>200:Memcached 1.6 内存版(集群架构)。<br><strong>说明</strong>:CKV 版本当前有存量用户使用,暂时保留。</li></ul>
2827
2839
  :rtype: int
2828
2840
  """
2829
2841
  return self._TypeId
@@ -3118,6 +3130,50 @@ class CreateInstancesRequest(AbstractModel):
3118
3130
  def EncryptPassword(self, EncryptPassword):
3119
3131
  self._EncryptPassword = EncryptPassword
3120
3132
 
3133
+ @property
3134
+ def PasswordPolicy(self):
3135
+ r"""<p>实例级密码复杂度策略。未传入或 Enabled=false 时,视为不启用策略,按系统默认规则校验。</p>
3136
+ :rtype: :class:`tencentcloud.redis.v20180412.models.PasswordPolicy`
3137
+ """
3138
+ return self._PasswordPolicy
3139
+
3140
+ @PasswordPolicy.setter
3141
+ def PasswordPolicy(self, PasswordPolicy):
3142
+ self._PasswordPolicy = PasswordPolicy
3143
+
3144
+ @property
3145
+ def EnableSSL(self):
3146
+ r"""<p>是否开启 SSL 加密传输。</p><ul><li>true:开启。</li><li>false:关闭(默认值)。</li></ul>
3147
+ :rtype: bool
3148
+ """
3149
+ return self._EnableSSL
3150
+
3151
+ @EnableSSL.setter
3152
+ def EnableSSL(self, EnableSSL):
3153
+ self._EnableSSL = EnableSSL
3154
+
3155
+ @property
3156
+ def SSLBindPrivateIPv4(self):
3157
+ r"""<p>开启 SSL 时,是否将实例的内网 IPv4 地址写入证书的域名别名(SAN)中。仅在 EnableSSL 为 true 时生效。</p><ul><li>true:允许使用内网 IP 进行 SSL 证书校验。</li><li>false:不添加证书的 SAN 扩展信息。</li></ul>
3158
+ :rtype: bool
3159
+ """
3160
+ return self._SSLBindPrivateIPv4
3161
+
3162
+ @SSLBindPrivateIPv4.setter
3163
+ def SSLBindPrivateIPv4(self, SSLBindPrivateIPv4):
3164
+ self._SSLBindPrivateIPv4 = SSLBindPrivateIPv4
3165
+
3166
+ @property
3167
+ def ConnectionMode(self):
3168
+ r"""<p>实例连接访问模式。</p><ul><li>0:代理模式(Proxy Mode,默认值)。</li><li>1:直连模式(Direct Connect Mode)。</li></ul>
3169
+ :rtype: int
3170
+ """
3171
+ return self._ConnectionMode
3172
+
3173
+ @ConnectionMode.setter
3174
+ def ConnectionMode(self, ConnectionMode):
3175
+ self._ConnectionMode = ConnectionMode
3176
+
3121
3177
 
3122
3178
  def _deserialize(self, params):
3123
3179
  self._TypeId = params.get("TypeId")
@@ -3157,6 +3213,12 @@ class CreateInstancesRequest(AbstractModel):
3157
3213
  self._RedisClusterId = params.get("RedisClusterId")
3158
3214
  self._AlarmPolicyList = params.get("AlarmPolicyList")
3159
3215
  self._EncryptPassword = params.get("EncryptPassword")
3216
+ if params.get("PasswordPolicy") is not None:
3217
+ self._PasswordPolicy = PasswordPolicy()
3218
+ self._PasswordPolicy._deserialize(params.get("PasswordPolicy"))
3219
+ self._EnableSSL = params.get("EnableSSL")
3220
+ self._SSLBindPrivateIPv4 = params.get("SSLBindPrivateIPv4")
3221
+ self._ConnectionMode = params.get("ConnectionMode")
3160
3222
  memeber_set = set(params.keys())
3161
3223
  for name, value in vars(self).items():
3162
3224
  property_name = name[1:]
@@ -15737,7 +15799,7 @@ class InstanceSet(AbstractModel):
15737
15799
  :type Size: float
15738
15800
  :param _SizeUsed: <p>该字段已废弃。请使用腾讯云可观测平台API 接口 <a href="https://cloud.tencent.com/document/product/248/31014">GetMonitorData</a> 获取实例已使用的内存容量。</p>
15739
15801
  :type SizeUsed: float
15740
- :param _Type: <p>实例类型。</p><p>枚举值:</p><ul><li>2: Redis 2.8 内存版(标准架构)。</li><li>3: CKV 3.2 内存版(标准架构)。</li><li>4: CKV 3.2 内存版(集群架构)。</li><li>5: Redis 2.8 内存版(单机)。</li><li>6: Redis 4.0 内存版(标准架构)。</li><li>7: Redis 4.0 内存版(集群架构)。</li><li>8: Redis 5.0 内存版(标准架构)。</li><li>9: Redis 5.0 内存版(集群架构)。</li><li>15: Redis 6.2 内存版(标准架构)。</li><li>16: Redis 6.2 内存版(集群架构)。</li><li>17: Redis 7.0 内存版(标准架构)。</li><li>18: Redis 7.0 内存版(集群架构)。</li><li>19: Valkey 8.0 内存版(标准架构)。</li><li>20: Valkey 8.0 内存版(集群架构)。</li><li>200: Memcached 1.6 内存版(集群架构)。</li></ul>
15802
+ :param _Type: <p>实例类型。</p><p>枚举值:</p><ul><li>2: Redis 2.8 内存版(标准架构)。</li><li>3: CKV 3.2 内存版(标准架构)。</li><li>4: CKV 3.2 内存版(集群架构)。</li><li>5: Redis 2.8 内存版(单机)。</li><li>6: Redis 4.0 内存版(标准架构)。</li><li>7: Redis 4.0 内存版(集群架构)。</li><li>8: Redis 5.0 内存版(标准架构)。</li><li>9: Redis 5.0 内存版(集群架构)。</li><li>15: Redis 6.2 内存版(标准架构)。</li><li>16: Redis 6.2 内存版(集群架构)。</li><li>17: Redis 7.0 内存版(标准架构)。</li><li>18: Redis 7.0 内存版(集群架构)。</li><li>19: Valkey 8.0 内存版(标准架构)。</li><li>20: Valkey 8.0 内存版(集群架构)。</li><li>21: Valkey 8.0 内存版(标准架构)。</li><li>22: Valkey 8.0 内存版(集群架构)。</li><li>200: Memcached 1.6 内存版(集群架构)。</li></ul>
15741
15803
  :type Type: int
15742
15804
  :param _AutoRenewFlag: <p>实例是否设置自动续费标识。<ul><li>1:设置自动续费。</li><li>0:未设置自动续费。</li></ul></p>
15743
15805
  :type AutoRenewFlag: int
@@ -16054,7 +16116,7 @@ class InstanceSet(AbstractModel):
16054
16116
 
16055
16117
  @property
16056
16118
  def Type(self):
16057
- r"""<p>实例类型。</p><p>枚举值:</p><ul><li>2: Redis 2.8 内存版(标准架构)。</li><li>3: CKV 3.2 内存版(标准架构)。</li><li>4: CKV 3.2 内存版(集群架构)。</li><li>5: Redis 2.8 内存版(单机)。</li><li>6: Redis 4.0 内存版(标准架构)。</li><li>7: Redis 4.0 内存版(集群架构)。</li><li>8: Redis 5.0 内存版(标准架构)。</li><li>9: Redis 5.0 内存版(集群架构)。</li><li>15: Redis 6.2 内存版(标准架构)。</li><li>16: Redis 6.2 内存版(集群架构)。</li><li>17: Redis 7.0 内存版(标准架构)。</li><li>18: Redis 7.0 内存版(集群架构)。</li><li>19: Valkey 8.0 内存版(标准架构)。</li><li>20: Valkey 8.0 内存版(集群架构)。</li><li>200: Memcached 1.6 内存版(集群架构)。</li></ul>
16119
+ r"""<p>实例类型。</p><p>枚举值:</p><ul><li>2: Redis 2.8 内存版(标准架构)。</li><li>3: CKV 3.2 内存版(标准架构)。</li><li>4: CKV 3.2 内存版(集群架构)。</li><li>5: Redis 2.8 内存版(单机)。</li><li>6: Redis 4.0 内存版(标准架构)。</li><li>7: Redis 4.0 内存版(集群架构)。</li><li>8: Redis 5.0 内存版(标准架构)。</li><li>9: Redis 5.0 内存版(集群架构)。</li><li>15: Redis 6.2 内存版(标准架构)。</li><li>16: Redis 6.2 内存版(集群架构)。</li><li>17: Redis 7.0 内存版(标准架构)。</li><li>18: Redis 7.0 内存版(集群架构)。</li><li>19: Valkey 8.0 内存版(标准架构)。</li><li>20: Valkey 8.0 内存版(集群架构)。</li><li>21: Valkey 8.0 内存版(标准架构)。</li><li>22: Valkey 8.0 内存版(集群架构)。</li><li>200: Memcached 1.6 内存版(集群架构)。</li></ul>
16058
16120
  :rtype: int
16059
16121
  """
16060
16122
  return self._Type
@@ -19766,6 +19828,87 @@ class ModifyInstanceParamsResponse(AbstractModel):
19766
19828
  self._RequestId = params.get("RequestId")
19767
19829
 
19768
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
+
19769
19912
  class ModifyInstancePasswordRequest(AbstractModel):
19770
19913
  r"""ModifyInstancePassword请求参数结构体
19771
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.151
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.151
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.151