tencentcloud-sdk-python-redis 3.0.1237__tar.gz → 3.0.1259__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.1259}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1259}/setup.py +1 -1
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1259}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1259}/tencentcloud/redis/v20180412/errorcodes.py +3 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1259}/tencentcloud/redis/v20180412/models.py +115 -16
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1259}/tencentcloud/redis/v20180412/redis_client.py +28 -3
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1259}/tencentcloud_sdk_python_redis.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-redis-3.0.1259/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.1259}/README.rst +0 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1259}/setup.cfg +0 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1259}/tencentcloud/redis/__init__.py +0 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1259}/tencentcloud/redis/v20180412/__init__.py +0 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1259}/tencentcloud_sdk_python_redis.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1259}/tencentcloud_sdk_python_redis.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1259}/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.1259"],
|
|
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
|
|
@@ -4212,9 +4214,9 @@ class DescribeInstanceBackupsRequest(AbstractModel):
|
|
|
4212
4214
|
:type Offset: int
|
|
4213
4215
|
:param _InstanceId: 待操作的实例ID,可通过 DescribeInstance 接口返回值中的 InstanceId 获取。
|
|
4214
4216
|
:type InstanceId: str
|
|
4215
|
-
:param _BeginTime: 开始时间,格式如:2017-02-08 16:46:34。查询实例在 [beginTime, endTime]
|
|
4217
|
+
:param _BeginTime: 开始时间,格式如:2017-02-08 16:46:34。查询实例在 [beginTime, endTime] 时间段内开始备份的备份列表,查询时间最大跨度30天。
|
|
4216
4218
|
:type BeginTime: str
|
|
4217
|
-
:param _EndTime: 结束时间,格式如:2017-02-08 19:09:26。查询实例在 [beginTime, endTime]
|
|
4219
|
+
:param _EndTime: 结束时间,格式如:2017-02-08 19:09:26。查询实例在 [beginTime, endTime] 时间段内开始备份的备份列表,查询时间最大跨度30天。
|
|
4218
4220
|
:type EndTime: str
|
|
4219
4221
|
:param _Status: 备份任务的状态:
|
|
4220
4222
|
1:备份在流程中。
|
|
@@ -4737,13 +4739,13 @@ class DescribeInstanceEventsRequest(AbstractModel):
|
|
|
4737
4739
|
|
|
4738
4740
|
def __init__(self):
|
|
4739
4741
|
r"""
|
|
4740
|
-
:param _ExecutionStartDate:
|
|
4742
|
+
:param _ExecutionStartDate: 配置查询事件执行计划的起始日期,查询日期最大跨度30天。
|
|
4741
4743
|
:type ExecutionStartDate: str
|
|
4742
|
-
:param _ExecutionEndDate:
|
|
4744
|
+
:param _ExecutionEndDate: 配置查询事件执行计划的结束日期,查询日期最大跨度30天。
|
|
4743
4745
|
:type ExecutionEndDate: str
|
|
4744
4746
|
:param _InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis)在实例列表复制实例 ID。
|
|
4745
4747
|
:type InstanceId: str
|
|
4746
|
-
:param _PageSize: 输出每页显示事件的数量,默认:10。
|
|
4748
|
+
:param _PageSize: 输出每页显示事件的数量,默认:10,最大100。
|
|
4747
4749
|
:type PageSize: int
|
|
4748
4750
|
:param _PageNo: 配置查询事件的输出页码,即支持根据PageNo(页码)与 PageSize (每页输出数量)查询某一页的事件。默认:1。
|
|
4749
4751
|
:type PageNo: int
|
|
@@ -7584,15 +7586,15 @@ class DescribeProxySlowLogRequest(AbstractModel):
|
|
|
7584
7586
|
:param _InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis)在实例列表复制实例 ID。
|
|
7585
7587
|
|
|
7586
7588
|
:type InstanceId: str
|
|
7587
|
-
:param _BeginTime:
|
|
7589
|
+
:param _BeginTime: 慢查询的开始时间,查询时间最大跨度30天。
|
|
7588
7590
|
:type BeginTime: str
|
|
7589
|
-
:param _EndTime:
|
|
7591
|
+
:param _EndTime: 慢查询的结束时间,查询时间最大跨度30天。
|
|
7590
7592
|
:type EndTime: str
|
|
7591
7593
|
:param _MinQueryTime: 慢查询阈值,单位:毫秒。
|
|
7592
7594
|
:type MinQueryTime: int
|
|
7593
|
-
:param _Limit:
|
|
7595
|
+
:param _Limit: 每页输出的任务列表大小,默认为 20,最多输出100条。
|
|
7594
7596
|
:type Limit: int
|
|
7595
|
-
:param _Offset:
|
|
7597
|
+
:param _Offset: 分页偏移量,取Limit整数倍,计算公式:offset=limit*(页码-1)。
|
|
7596
7598
|
:type Offset: int
|
|
7597
7599
|
"""
|
|
7598
7600
|
self._InstanceId = None
|
|
@@ -8364,13 +8366,13 @@ class DescribeSlowLogRequest(AbstractModel):
|
|
|
8364
8366
|
:param _InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis)在实例列表复制实例 ID。
|
|
8365
8367
|
|
|
8366
8368
|
:type InstanceId: str
|
|
8367
|
-
:param _BeginTime:
|
|
8369
|
+
:param _BeginTime: 预查询慢日志的起始时间,查询时间最大跨度30天。
|
|
8368
8370
|
:type BeginTime: str
|
|
8369
|
-
:param _EndTime:
|
|
8371
|
+
:param _EndTime: 预查询慢日志的结束时间,查询时间最大跨度30天
|
|
8370
8372
|
:type EndTime: str
|
|
8371
8373
|
:param _MinQueryTime: 慢查询平均执行时间阈值,单位:毫秒。
|
|
8372
8374
|
:type MinQueryTime: int
|
|
8373
|
-
:param _Limit: 每个页面展示的慢查询条数,默认值为20
|
|
8375
|
+
:param _Limit: 每个页面展示的慢查询条数,默认值为20,最大100。
|
|
8374
8376
|
:type Limit: int
|
|
8375
8377
|
:param _Offset: 慢查询条数的偏移量,取Limit整数倍。计算公式:offset=limit*(页码-1)。
|
|
8376
8378
|
:type Offset: int
|
|
@@ -8731,9 +8733,9 @@ class DescribeTaskListRequest(AbstractModel):
|
|
|
8731
8733
|
- FLOW_MODIFY_PROXY_NUM:"069",加(减)Proxy 节点。
|
|
8732
8734
|
- FLOW_MODIFYBACKUPMOD:"070",变更实例备份模式。
|
|
8733
8735
|
:type TaskTypes: list of str
|
|
8734
|
-
:param _BeginTime:
|
|
8736
|
+
:param _BeginTime: 任务执行的起始时间,格式如:2021-12-30 00:00:00,支持查询近30天内数据。
|
|
8735
8737
|
:type BeginTime: str
|
|
8736
|
-
:param _EndTime: 任务运行的终止时间。格式如:2021-12-30 20:59:35
|
|
8738
|
+
:param _EndTime: 任务运行的终止时间。格式如:2021-12-30 20:59:35,支持查询近30天内数据。
|
|
8737
8739
|
:type EndTime: str
|
|
8738
8740
|
:param _TaskStatus: 该参数为内部使用,请忽略。
|
|
8739
8741
|
:type TaskStatus: list of 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`
|
|
@@ -1478,6 +1478,8 @@ class RedisClient(AbstractClient):
|
|
|
1478
1478
|
def DescribeTaskList(self, request):
|
|
1479
1479
|
"""本接口(DescribeTaskList)用于查询指定实例的任务列表信息。
|
|
1480
1480
|
|
|
1481
|
+
- 可查询近30天内任务列表数据。
|
|
1482
|
+
|
|
1481
1483
|
:param request: Request instance for DescribeTaskList.
|
|
1482
1484
|
:type request: :class:`tencentcloud.redis.v20180412.models.DescribeTaskListRequest`
|
|
1483
1485
|
:rtype: :class:`tencentcloud.redis.v20180412.models.DescribeTaskListResponse`
|
|
@@ -1752,7 +1754,7 @@ class RedisClient(AbstractClient):
|
|
|
1752
1754
|
|
|
1753
1755
|
|
|
1754
1756
|
def ModfiyInstancePassword(self, request):
|
|
1755
|
-
"""本接口(ModfiyInstancePassword
|
|
1757
|
+
"""本接口(ModfiyInstancePassword)用于修改实例访问密码。鉴于该接口名存在拼写错误,现已更正为([ModifyInstancePassword](https://cloud.tencent.com/document/product/239/111555))接口,推荐使用更正后的接口。
|
|
1756
1758
|
|
|
1757
1759
|
:param request: Request instance for ModfiyInstancePassword.
|
|
1758
1760
|
:type request: :class:`tencentcloud.redis.v20180412.models.ModfiyInstancePasswordRequest`
|
|
@@ -1844,7 +1846,7 @@ class RedisClient(AbstractClient):
|
|
|
1844
1846
|
|
|
1845
1847
|
|
|
1846
1848
|
def ModifyDBInstanceSecurityGroups(self, request):
|
|
1847
|
-
"""
|
|
1849
|
+
"""本接口(ModifyDBInstanceSecurityGroups)用于对实例原有的安全组列表进行修改。
|
|
1848
1850
|
|
|
1849
1851
|
:param request: Request instance for ModifyDBInstanceSecurityGroups.
|
|
1850
1852
|
:type request: :class:`tencentcloud.redis.v20180412.models.ModifyDBInstanceSecurityGroupsRequest`
|
|
@@ -2004,6 +2006,29 @@ class RedisClient(AbstractClient):
|
|
|
2004
2006
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2005
2007
|
|
|
2006
2008
|
|
|
2009
|
+
def ModifyInstancePassword(self, request):
|
|
2010
|
+
"""本接口(ModifyInstancePassword)用于修改实例访问密码。
|
|
2011
|
+
|
|
2012
|
+
:param request: Request instance for ModifyInstancePassword.
|
|
2013
|
+
:type request: :class:`tencentcloud.redis.v20180412.models.ModifyInstancePasswordRequest`
|
|
2014
|
+
:rtype: :class:`tencentcloud.redis.v20180412.models.ModifyInstancePasswordResponse`
|
|
2015
|
+
|
|
2016
|
+
"""
|
|
2017
|
+
try:
|
|
2018
|
+
params = request._serialize()
|
|
2019
|
+
headers = request.headers
|
|
2020
|
+
body = self.call("ModifyInstancePassword", params, headers=headers)
|
|
2021
|
+
response = json.loads(body)
|
|
2022
|
+
model = models.ModifyInstancePasswordResponse()
|
|
2023
|
+
model._deserialize(response["Response"])
|
|
2024
|
+
return model
|
|
2025
|
+
except Exception as e:
|
|
2026
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2027
|
+
raise
|
|
2028
|
+
else:
|
|
2029
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2030
|
+
|
|
2031
|
+
|
|
2007
2032
|
def ModifyInstanceReadOnly(self, request):
|
|
2008
2033
|
"""设置实例输入模式
|
|
2009
2034
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1259
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1237
|
{tencentcloud-sdk-python-redis-3.0.1237 → tencentcloud-sdk-python-redis-3.0.1259}/README.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|