tencentcloud-sdk-python-redis 3.0.919__tar.gz → 3.0.926__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.919 → tencentcloud-sdk-python-redis-3.0.926}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-redis-3.0.919 → tencentcloud-sdk-python-redis-3.0.926}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-redis-3.0.919 → tencentcloud-sdk-python-redis-3.0.926}/tencentcloud/redis/v20180412/models.py +27 -14
- {tencentcloud-sdk-python-redis-3.0.919 → tencentcloud-sdk-python-redis-3.0.926}/tencentcloud/redis/v20180412/redis_client.py +4 -4
- {tencentcloud-sdk-python-redis-3.0.919 → tencentcloud-sdk-python-redis-3.0.926}/tencentcloud_sdk_python_redis.egg-info/PKG-INFO +1 -1
- {tencentcloud-sdk-python-redis-3.0.919 → tencentcloud-sdk-python-redis-3.0.926}/README.rst +0 -0
- {tencentcloud-sdk-python-redis-3.0.919 → tencentcloud-sdk-python-redis-3.0.926}/setup.cfg +0 -0
- {tencentcloud-sdk-python-redis-3.0.919 → tencentcloud-sdk-python-redis-3.0.926}/setup.py +0 -0
- {tencentcloud-sdk-python-redis-3.0.919 → tencentcloud-sdk-python-redis-3.0.926}/tencentcloud/redis/__init__.py +0 -0
- {tencentcloud-sdk-python-redis-3.0.919 → tencentcloud-sdk-python-redis-3.0.926}/tencentcloud/redis/v20180412/__init__.py +0 -0
- {tencentcloud-sdk-python-redis-3.0.919 → tencentcloud-sdk-python-redis-3.0.926}/tencentcloud/redis/v20180412/errorcodes.py +0 -0
- {tencentcloud-sdk-python-redis-3.0.919 → tencentcloud-sdk-python-redis-3.0.926}/tencentcloud_sdk_python_redis.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-redis-3.0.919 → tencentcloud-sdk-python-redis-3.0.926}/tencentcloud_sdk_python_redis.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-redis-3.0.919 → tencentcloud-sdk-python-redis-3.0.926}/tencentcloud_sdk_python_redis.egg-info/top_level.txt +0 -0
|
@@ -476,18 +476,27 @@ class ChangeMasterInstanceRequest(AbstractModel):
|
|
|
476
476
|
|
|
477
477
|
def __init__(self):
|
|
478
478
|
r"""
|
|
479
|
-
:param GroupId: 复制组ID
|
|
479
|
+
:param GroupId: 复制组ID。创建复制组时,系统自动分配的 ID,是复制组的唯一标识。例如:crs-rpl-m3zt****,请登录[Redis 控制台](https://console.cloud.tencent.com/redis/replication)的全球复制组列表获取复制组 ID。
|
|
480
|
+
|
|
480
481
|
:type GroupId: str
|
|
481
|
-
:param InstanceId:
|
|
482
|
+
:param InstanceId: 指定待提升为主实例的只读实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis)在实例列表复制实例 ID。
|
|
483
|
+
|
|
484
|
+
|
|
482
485
|
:type InstanceId: str
|
|
486
|
+
:param ForceSwitch: 标识是否强制提主。
|
|
487
|
+
- true:强制提主。
|
|
488
|
+
- false:不强制提主。
|
|
489
|
+
:type ForceSwitch: bool
|
|
483
490
|
"""
|
|
484
491
|
self.GroupId = None
|
|
485
492
|
self.InstanceId = None
|
|
493
|
+
self.ForceSwitch = None
|
|
486
494
|
|
|
487
495
|
|
|
488
496
|
def _deserialize(self, params):
|
|
489
497
|
self.GroupId = params.get("GroupId")
|
|
490
498
|
self.InstanceId = params.get("InstanceId")
|
|
499
|
+
self.ForceSwitch = params.get("ForceSwitch")
|
|
491
500
|
memeber_set = set(params.keys())
|
|
492
501
|
for name, value in vars(self).items():
|
|
493
502
|
if name in memeber_set:
|
|
@@ -504,7 +513,7 @@ class ChangeMasterInstanceResponse(AbstractModel):
|
|
|
504
513
|
|
|
505
514
|
def __init__(self):
|
|
506
515
|
r"""
|
|
507
|
-
:param TaskId: 异步流程ID
|
|
516
|
+
:param TaskId: 异步流程ID。
|
|
508
517
|
:type TaskId: int
|
|
509
518
|
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
510
519
|
:type RequestId: str
|
|
@@ -1201,7 +1210,7 @@ class CreateReplicationGroupRequest(AbstractModel):
|
|
|
1201
1210
|
r"""
|
|
1202
1211
|
:param InstanceId: 指定复制组中的主实例ID。
|
|
1203
1212
|
:type InstanceId: str
|
|
1204
|
-
:param GroupName:
|
|
1213
|
+
:param GroupName: 复制组名称。名称只支持长度为2-64个字符的中文、英文、数字、下划线_、分隔符-。
|
|
1205
1214
|
:type GroupName: str
|
|
1206
1215
|
:param Remark: 备注信息。
|
|
1207
1216
|
:type Remark: str
|
|
@@ -3649,9 +3658,9 @@ class DescribeReplicationGroupRequest(AbstractModel):
|
|
|
3649
3658
|
:type Limit: int
|
|
3650
3659
|
:param Offset: 分页偏移量,取Limit整数倍。计算公式:offset=limit*(页码-1)。
|
|
3651
3660
|
:type Offset: int
|
|
3652
|
-
:param GroupId:
|
|
3661
|
+
:param GroupId: 指定复制组 ID。例如:crs-rpl-m3zt****。请登录[Redis 控制台](https://console.cloud.tencent.com/redis/replication)的全球复制组列表获取复制组 ID。
|
|
3653
3662
|
:type GroupId: str
|
|
3654
|
-
:param SearchKey: 模糊查询的关键字,可以设置为复制组ID
|
|
3663
|
+
:param SearchKey: 模糊查询的关键字,可以设置为复制组ID或复制组名称进行模糊查询。请登录[Redis 控制台](https://console.cloud.tencent.com/redis/replication)的全球复制组列表获取复制组 ID及名称。
|
|
3655
3664
|
:type SearchKey: str
|
|
3656
3665
|
"""
|
|
3657
3666
|
self.Limit = None
|
|
@@ -3857,7 +3866,7 @@ class DescribeTaskInfoRequest(AbstractModel):
|
|
|
3857
3866
|
|
|
3858
3867
|
def __init__(self):
|
|
3859
3868
|
r"""
|
|
3860
|
-
:param TaskId: 任务ID
|
|
3869
|
+
:param TaskId: 任务 ID。
|
|
3861
3870
|
:type TaskId: int
|
|
3862
3871
|
"""
|
|
3863
3872
|
self.TaskId = None
|
|
@@ -3881,15 +3890,20 @@ class DescribeTaskInfoResponse(AbstractModel):
|
|
|
3881
3890
|
|
|
3882
3891
|
def __init__(self):
|
|
3883
3892
|
r"""
|
|
3884
|
-
:param Status:
|
|
3893
|
+
:param Status: 任务状态。
|
|
3894
|
+
- preparing:待执行。
|
|
3895
|
+
- running:执行中。
|
|
3896
|
+
- succeed:成功。
|
|
3897
|
+
- failed:失败。
|
|
3898
|
+
- error:执行出错。
|
|
3885
3899
|
:type Status: str
|
|
3886
|
-
:param StartTime:
|
|
3900
|
+
:param StartTime: 任务开始时间。
|
|
3887
3901
|
:type StartTime: str
|
|
3888
|
-
:param TaskType:
|
|
3902
|
+
:param TaskType: 任务类型。常见的类型包含:新建类型、配置变更、关闭实例、清空实例、重置密码、版本升级、备份实例、改变网络类型、实例可用区迁移、手动提主等。
|
|
3889
3903
|
:type TaskType: str
|
|
3890
|
-
:param InstanceId: 实例的ID
|
|
3904
|
+
:param InstanceId: 实例的 ID。
|
|
3891
3905
|
:type InstanceId: str
|
|
3892
|
-
:param TaskMessage:
|
|
3906
|
+
:param TaskMessage: 任务执行返回的信息,执行错误时显示错误信息。执行中或执行成功则为空。
|
|
3893
3907
|
:type TaskMessage: str
|
|
3894
3908
|
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3895
3909
|
:type RequestId: str
|
|
@@ -4372,7 +4386,6 @@ class Groups(AbstractModel):
|
|
|
4372
4386
|
- 21:印度
|
|
4373
4387
|
- 22:美东(弗吉尼亚)
|
|
4374
4388
|
- 23:泰国
|
|
4375
|
-
- 24:俄罗斯
|
|
4376
4389
|
- 25:日本
|
|
4377
4390
|
:type RegionId: int
|
|
4378
4391
|
:param GroupId: 复制组 ID。格式如:crs-rpl-deind****。
|
|
@@ -5636,7 +5649,7 @@ class Instances(AbstractModel):
|
|
|
5636
5649
|
:type RedisShardNum: int
|
|
5637
5650
|
:param RedisShardSize: 分片内存大小。
|
|
5638
5651
|
:type RedisShardSize: int
|
|
5639
|
-
:param DiskSize:
|
|
5652
|
+
:param DiskSize: 实例的磁盘大小。
|
|
5640
5653
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
5641
5654
|
:type DiskSize: int
|
|
5642
5655
|
:param Engine: 引擎:社区版Redis、腾讯云CKV。
|
|
@@ -142,7 +142,7 @@ class RedisClient(AbstractClient):
|
|
|
142
142
|
|
|
143
143
|
|
|
144
144
|
def ChangeMasterInstance(self, request):
|
|
145
|
-
"""
|
|
145
|
+
"""该接口(ChangeMasterInstance)用于将复制组内只读实例设置为主实例。
|
|
146
146
|
|
|
147
147
|
:param request: Request instance for ChangeMasterInstance.
|
|
148
148
|
:type request: :class:`tencentcloud.redis.v20180412.models.ChangeMasterInstanceRequest`
|
|
@@ -349,7 +349,7 @@ class RedisClient(AbstractClient):
|
|
|
349
349
|
|
|
350
350
|
|
|
351
351
|
def CreateReplicationGroup(self, request):
|
|
352
|
-
"""
|
|
352
|
+
"""该接口(CreateReplicationGroup)用于创建复制组。
|
|
353
353
|
|
|
354
354
|
:param request: Request instance for CreateReplicationGroup.
|
|
355
355
|
:type request: :class:`tencentcloud.redis.v20180412.models.CreateReplicationGroupRequest`
|
|
@@ -1177,7 +1177,7 @@ class RedisClient(AbstractClient):
|
|
|
1177
1177
|
|
|
1178
1178
|
|
|
1179
1179
|
def DescribeReplicationGroup(self, request):
|
|
1180
|
-
"""本接口(DescribeReplicationGroup
|
|
1180
|
+
"""本接口(DescribeReplicationGroup)用于查询复制组。
|
|
1181
1181
|
|
|
1182
1182
|
:param request: Request instance for DescribeReplicationGroup.
|
|
1183
1183
|
:type request: :class:`tencentcloud.redis.v20180412.models.DescribeReplicationGroupRequest`
|
|
@@ -1246,7 +1246,7 @@ class RedisClient(AbstractClient):
|
|
|
1246
1246
|
|
|
1247
1247
|
|
|
1248
1248
|
def DescribeTaskInfo(self, request):
|
|
1249
|
-
"""
|
|
1249
|
+
"""本接口(DescribeTaskInfo)用于获取指定任务的执行情况。
|
|
1250
1250
|
|
|
1251
1251
|
:param request: Request instance for DescribeTaskInfo.
|
|
1252
1252
|
:type request: :class:`tencentcloud.redis.v20180412.models.DescribeTaskInfoRequest`
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|