tencentcloud-sdk-python-redis 3.0.881__tar.gz → 3.0.886__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.881 → tencentcloud-sdk-python-redis-3.0.886}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-redis-3.0.881 → tencentcloud-sdk-python-redis-3.0.886}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-redis-3.0.881 → tencentcloud-sdk-python-redis-3.0.886}/tencentcloud/redis/v20180412/models.py +53 -47
- {tencentcloud-sdk-python-redis-3.0.881 → tencentcloud-sdk-python-redis-3.0.886}/tencentcloud/redis/v20180412/redis_client.py +3 -3
- {tencentcloud-sdk-python-redis-3.0.881 → tencentcloud-sdk-python-redis-3.0.886}/tencentcloud_sdk_python_redis.egg-info/PKG-INFO +1 -1
- {tencentcloud-sdk-python-redis-3.0.881 → tencentcloud-sdk-python-redis-3.0.886}/README.rst +0 -0
- {tencentcloud-sdk-python-redis-3.0.881 → tencentcloud-sdk-python-redis-3.0.886}/setup.cfg +0 -0
- {tencentcloud-sdk-python-redis-3.0.881 → tencentcloud-sdk-python-redis-3.0.886}/setup.py +0 -0
- {tencentcloud-sdk-python-redis-3.0.881 → tencentcloud-sdk-python-redis-3.0.886}/tencentcloud/redis/__init__.py +0 -0
- {tencentcloud-sdk-python-redis-3.0.881 → tencentcloud-sdk-python-redis-3.0.886}/tencentcloud/redis/v20180412/__init__.py +0 -0
- {tencentcloud-sdk-python-redis-3.0.881 → tencentcloud-sdk-python-redis-3.0.886}/tencentcloud/redis/v20180412/errorcodes.py +0 -0
- {tencentcloud-sdk-python-redis-3.0.881 → tencentcloud-sdk-python-redis-3.0.886}/tencentcloud_sdk_python_redis.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-redis-3.0.881 → tencentcloud-sdk-python-redis-3.0.886}/tencentcloud_sdk_python_redis.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-redis-3.0.881 → tencentcloud-sdk-python-redis-3.0.886}/tencentcloud_sdk_python_redis.egg-info/top_level.txt +0 -0
|
@@ -2924,9 +2924,11 @@ class DescribeInstanceShardsRequest(AbstractModel):
|
|
|
2924
2924
|
|
|
2925
2925
|
def __init__(self):
|
|
2926
2926
|
r"""
|
|
2927
|
-
:param InstanceId:
|
|
2927
|
+
:param InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis)在实例列表复制实例 ID。
|
|
2928
2928
|
:type InstanceId: str
|
|
2929
|
-
:param FilterSlave:
|
|
2929
|
+
:param FilterSlave: 是否过滤掉从节信息。
|
|
2930
|
+
- true;过滤从节点。
|
|
2931
|
+
- false:不过滤。
|
|
2930
2932
|
:type FilterSlave: bool
|
|
2931
2933
|
"""
|
|
2932
2934
|
self.InstanceId = None
|
|
@@ -2952,9 +2954,9 @@ class DescribeInstanceShardsResponse(AbstractModel):
|
|
|
2952
2954
|
|
|
2953
2955
|
def __init__(self):
|
|
2954
2956
|
r"""
|
|
2955
|
-
:param InstanceShards:
|
|
2957
|
+
:param InstanceShards: 实例分片列表信息,包括:节点信息、节点ID、Key数量、使用容量、容量倾斜率等信息。
|
|
2956
2958
|
:type InstanceShards: list of InstanceClusterShard
|
|
2957
|
-
:param TotalCount:
|
|
2959
|
+
:param TotalCount: 实例分片节点数量。
|
|
2958
2960
|
:type TotalCount: int
|
|
2959
2961
|
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2960
2962
|
:type RequestId: str
|
|
@@ -3038,11 +3040,13 @@ class DescribeInstancesRequest(AbstractModel):
|
|
|
3038
3040
|
r"""
|
|
3039
3041
|
:param Limit: 每页输出实例的数量,参数默认值20,最大值为1000。
|
|
3040
3042
|
:type Limit: int
|
|
3041
|
-
:param Offset: 分页偏移量,取Limit
|
|
3043
|
+
:param Offset: 分页偏移量,取Limit整数倍。计算公式:offset=limit*(页码-1)。
|
|
3042
3044
|
:type Offset: int
|
|
3043
|
-
:param InstanceId:
|
|
3045
|
+
:param InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis)在实例列表复制实例 ID。
|
|
3046
|
+
|
|
3047
|
+
|
|
3044
3048
|
:type InstanceId: str
|
|
3045
|
-
:param OrderBy:
|
|
3049
|
+
:param OrderBy: 实例列表排序依据,枚举值如下所示:<ul><li>projectId:依据项目ID排序。</li><li>createtime:依据实例创建时间排序。</li><li>instancename:依据实例名称排序。</li><li>type:依据实例类型排序。</li><li>curDeadline:依据实例到期时间排序。</li></ul>
|
|
3046
3050
|
:type OrderBy: str
|
|
3047
3051
|
:param OrderType: 实例排序方式,默认为倒序排序。<ul><li>1:倒序。</li><li>0:顺序。</li></ul>
|
|
3048
3052
|
:type OrderType: int
|
|
@@ -3068,7 +3072,7 @@ class DescribeInstancesRequest(AbstractModel):
|
|
|
3068
3072
|
:type TypeVersion: int
|
|
3069
3073
|
:param EngineName: 存储引擎信息。可设置为Redis-2.8、Redis-4.0、Redis-5.0、Redis-6.0 或者 CKV。
|
|
3070
3074
|
:type EngineName: str
|
|
3071
|
-
:param AutoRenew: 续费模式。<ul><li>0
|
|
3075
|
+
:param AutoRenew: 续费模式。<ul><li>0:手动续费。</li><li>1:自动续费。</li><li>2:到期不再续费。</ul>
|
|
3072
3076
|
:type AutoRenew: list of int
|
|
3073
3077
|
:param BillingMode: 计费模式。<ul><li>postpaid:按量计费。</li><li>prepaid:包年包月。</li></ul>
|
|
3074
3078
|
:type BillingMode: str
|
|
@@ -3084,7 +3088,7 @@ class DescribeInstancesRequest(AbstractModel):
|
|
|
3084
3088
|
:type InstanceTags: list of InstanceTagInfo
|
|
3085
3089
|
:param TagKeys: 根据标签的 Key 筛选资源,该参数不配置或者数组设置为空值,则不根据标签Key进行过滤。
|
|
3086
3090
|
:type TagKeys: list of str
|
|
3087
|
-
:param ProductVersions: 实例的产品版本。如果该参数不配置或者数组设置为空值,则默认不依据此参数过滤实例。<ul><li>local:本地盘版。</li><li>
|
|
3091
|
+
:param ProductVersions: 实例的产品版本。如果该参数不配置或者数组设置为空值,则默认不依据此参数过滤实例。<ul><li>local:本地盘版。</li><li>cdc:独享集群版。</li></ul>
|
|
3088
3092
|
:type ProductVersions: list of str
|
|
3089
3093
|
:param InstanceIds: 批量查询指定的实例 ID,返回结果已 Limit 限制为主。
|
|
3090
3094
|
:type InstanceIds: list of str
|
|
@@ -3753,17 +3757,18 @@ class DescribeSlowLogRequest(AbstractModel):
|
|
|
3753
3757
|
|
|
3754
3758
|
def __init__(self):
|
|
3755
3759
|
r"""
|
|
3756
|
-
:param InstanceId:
|
|
3760
|
+
:param InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis)在实例列表复制实例 ID。
|
|
3761
|
+
|
|
3757
3762
|
:type InstanceId: str
|
|
3758
|
-
:param BeginTime:
|
|
3763
|
+
:param BeginTime: 预查询慢日志的起始时间。
|
|
3759
3764
|
:type BeginTime: str
|
|
3760
|
-
:param EndTime:
|
|
3765
|
+
:param EndTime: 预查询慢日志的结束时间。
|
|
3761
3766
|
:type EndTime: str
|
|
3762
|
-
:param MinQueryTime:
|
|
3767
|
+
:param MinQueryTime: 慢查询平均执行时间阈值,单位:毫秒。
|
|
3763
3768
|
:type MinQueryTime: int
|
|
3764
3769
|
:param Limit: 每个页面展示的慢查询条数,默认值为20。
|
|
3765
3770
|
:type Limit: int
|
|
3766
|
-
:param Offset: 慢查询条数的偏移量,取Limit
|
|
3771
|
+
:param Offset: 慢查询条数的偏移量,取Limit整数倍。计算公式:offset=limit*(页码-1)。
|
|
3767
3772
|
:type Offset: int
|
|
3768
3773
|
:param Role: 节点所属角色。<ul><li>master:主节点。</li><li>slave:从节点。</li></ul>
|
|
3769
3774
|
:type Role: str
|
|
@@ -4666,31 +4671,38 @@ class InstanceClusterNode(AbstractModel):
|
|
|
4666
4671
|
|
|
4667
4672
|
def __init__(self):
|
|
4668
4673
|
r"""
|
|
4669
|
-
:param Name:
|
|
4674
|
+
:param Name: 节点名称。
|
|
4670
4675
|
:type Name: str
|
|
4671
|
-
:param RunId: 实例运行时节点
|
|
4676
|
+
:param RunId: 实例运行时节点 ID。
|
|
4672
4677
|
:type RunId: str
|
|
4673
|
-
:param Role:
|
|
4678
|
+
:param Role: 集群角色。
|
|
4679
|
+
- 0:master。
|
|
4680
|
+
- 1:slave。
|
|
4674
4681
|
:type Role: int
|
|
4675
|
-
:param Status:
|
|
4682
|
+
:param Status: 节点状态。
|
|
4683
|
+
- 0:readwrite,。
|
|
4684
|
+
- 1:read。
|
|
4685
|
+
- 2:backup。
|
|
4676
4686
|
:type Status: int
|
|
4677
|
-
:param Connected:
|
|
4687
|
+
:param Connected: 服务状态。
|
|
4688
|
+
0-down。
|
|
4689
|
+
1-on
|
|
4678
4690
|
:type Connected: int
|
|
4679
|
-
:param CreateTime:
|
|
4691
|
+
:param CreateTime: 节点创建时间。
|
|
4680
4692
|
:type CreateTime: str
|
|
4681
|
-
:param DownTime:
|
|
4693
|
+
:param DownTime: 节点下线时间。
|
|
4682
4694
|
:type DownTime: str
|
|
4683
|
-
:param Slots: 节点
|
|
4695
|
+
:param Slots: 节点 Slot 分布区间。
|
|
4684
4696
|
:type Slots: str
|
|
4685
|
-
:param Keys: 节点
|
|
4697
|
+
:param Keys: 节点 Key分布。
|
|
4686
4698
|
:type Keys: int
|
|
4687
|
-
:param Qps: 节点
|
|
4699
|
+
:param Qps: 节点 QPS。分片节点每秒执行次数。单位:次/秒。
|
|
4688
4700
|
:type Qps: int
|
|
4689
|
-
:param QpsSlope: 节点
|
|
4701
|
+
:param QpsSlope: 节点 QPS 倾斜度。
|
|
4690
4702
|
:type QpsSlope: float
|
|
4691
|
-
:param Storage:
|
|
4703
|
+
:param Storage: 节点存储。
|
|
4692
4704
|
:type Storage: int
|
|
4693
|
-
:param StorageSlope:
|
|
4705
|
+
:param StorageSlope: 节点存储倾斜度。
|
|
4694
4706
|
:type StorageSlope: float
|
|
4695
4707
|
"""
|
|
4696
4708
|
self.Name = None
|
|
@@ -4963,9 +4975,9 @@ class InstanceNode(AbstractModel):
|
|
|
4963
4975
|
|
|
4964
4976
|
def __init__(self):
|
|
4965
4977
|
r"""
|
|
4966
|
-
:param Id:
|
|
4978
|
+
:param Id: 实例 ID。
|
|
4967
4979
|
:type Id: int
|
|
4968
|
-
:param InstanceClusterNode:
|
|
4980
|
+
:param InstanceClusterNode: 节点详细信息。
|
|
4969
4981
|
:type InstanceClusterNode: list of InstanceClusterNode
|
|
4970
4982
|
"""
|
|
4971
4983
|
self.Id = None
|
|
@@ -5472,9 +5484,9 @@ class InstanceTagInfo(AbstractModel):
|
|
|
5472
5484
|
|
|
5473
5485
|
def __init__(self):
|
|
5474
5486
|
r"""
|
|
5475
|
-
:param TagKey:
|
|
5487
|
+
:param TagKey: 标签键。
|
|
5476
5488
|
:type TagKey: str
|
|
5477
|
-
:param TagValue:
|
|
5489
|
+
:param TagValue: 标签值。
|
|
5478
5490
|
:type TagValue: str
|
|
5479
5491
|
"""
|
|
5480
5492
|
self.TagKey = None
|
|
@@ -5664,17 +5676,14 @@ class KillMasterGroupRequest(AbstractModel):
|
|
|
5664
5676
|
|
|
5665
5677
|
def __init__(self):
|
|
5666
5678
|
r"""
|
|
5667
|
-
:param InstanceId:
|
|
5679
|
+
:param InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis)在实例列表复制实例 ID。
|
|
5668
5680
|
:type InstanceId: str
|
|
5669
|
-
:param Password:
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
b.大写字母A-Z
|
|
5674
|
-
c.数字0-9
|
|
5675
|
-
d.()`~!@#$%^&*-+=_|{}[]:;<>,.?/
|
|
5681
|
+
:param Password: 该参数用于配置指定实例的访问密码。若为免密认证,该参数则无需配置。密码复杂度要求如下所示。
|
|
5682
|
+
- 长度8-30位,推荐使用12位以上的密码
|
|
5683
|
+
- 不能以"/"开头
|
|
5684
|
+
- 至少包含小写字母a-z、大写字母A-Z、数字0-9及其 ()`~!@#$%^&*-+=_|{}[]:;<>,.?/中的两项。
|
|
5676
5685
|
:type Password: str
|
|
5677
|
-
:param ShardIds:
|
|
5686
|
+
:param ShardIds: 分片集群的分片 ID。
|
|
5678
5687
|
:type ShardIds: list of int
|
|
5679
5688
|
"""
|
|
5680
5689
|
self.InstanceId = None
|
|
@@ -5702,7 +5711,7 @@ class KillMasterGroupResponse(AbstractModel):
|
|
|
5702
5711
|
|
|
5703
5712
|
def __init__(self):
|
|
5704
5713
|
r"""
|
|
5705
|
-
:param TaskId: 异步任务ID
|
|
5714
|
+
:param TaskId: 异步任务ID。
|
|
5706
5715
|
:type TaskId: int
|
|
5707
5716
|
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
5708
5717
|
:type RequestId: str
|
|
@@ -6849,15 +6858,13 @@ class RedisBackupSet(AbstractModel):
|
|
|
6849
6858
|
r"""
|
|
6850
6859
|
:param StartTime: 备份开始时间。
|
|
6851
6860
|
:type StartTime: str
|
|
6852
|
-
:param BackupId:
|
|
6861
|
+
:param BackupId: 备份任务ID。
|
|
6853
6862
|
:type BackupId: str
|
|
6854
6863
|
:param BackupType: 备份类型。
|
|
6855
|
-
|
|
6856
|
-
-
|
|
6857
|
-
- 0:凌晨系统发起的备份。
|
|
6864
|
+
- 1:凌晨系统发起的备份。
|
|
6865
|
+
- 0:用户发起的手动备份。
|
|
6858
6866
|
:type BackupType: str
|
|
6859
6867
|
:param Status: 备份状态。
|
|
6860
|
-
|
|
6861
6868
|
- 1:备份被其它流程锁定。
|
|
6862
6869
|
- 2:备份正常,没有被任何流程锁定。
|
|
6863
6870
|
- -1:备份已过期。
|
|
@@ -6867,7 +6874,6 @@ class RedisBackupSet(AbstractModel):
|
|
|
6867
6874
|
:param Remark: 备份的备注信息。
|
|
6868
6875
|
:type Remark: str
|
|
6869
6876
|
:param Locked: 备份是否被锁定。
|
|
6870
|
-
|
|
6871
6877
|
- 0:未被锁定。
|
|
6872
6878
|
- 1:已被锁定。
|
|
6873
6879
|
:type Locked: int
|
|
@@ -947,7 +947,7 @@ class RedisClient(AbstractClient):
|
|
|
947
947
|
|
|
948
948
|
|
|
949
949
|
def DescribeInstanceShards(self, request):
|
|
950
|
-
"""
|
|
950
|
+
"""本接口(DescribeInstanceShards)用于获取集群架构实例的分片信息。
|
|
951
951
|
|
|
952
952
|
:param request: Request instance for DescribeInstanceShards.
|
|
953
953
|
:type request: :class:`tencentcloud.redis.v20180412.models.DescribeInstanceShardsRequest`
|
|
@@ -993,7 +993,7 @@ class RedisClient(AbstractClient):
|
|
|
993
993
|
|
|
994
994
|
|
|
995
995
|
def DescribeInstances(self, request):
|
|
996
|
-
"""
|
|
996
|
+
"""本接口(DescribeInstances)用于查询Redis实例列表。
|
|
997
997
|
|
|
998
998
|
:param request: Request instance for DescribeInstances.
|
|
999
999
|
:type request: :class:`tencentcloud.redis.v20180412.models.DescribeInstancesRequest`
|
|
@@ -1499,7 +1499,7 @@ class RedisClient(AbstractClient):
|
|
|
1499
1499
|
|
|
1500
1500
|
|
|
1501
1501
|
def KillMasterGroup(self, request):
|
|
1502
|
-
"""
|
|
1502
|
+
"""本接口(KillMasterGroup)模拟故障。
|
|
1503
1503
|
|
|
1504
1504
|
:param request: Request instance for KillMasterGroup.
|
|
1505
1505
|
:type request: :class:`tencentcloud.redis.v20180412.models.KillMasterGroupRequest`
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|