tencentcloud-sdk-python-redis 3.0.859__tar.gz → 3.0.874__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.859 → tencentcloud-sdk-python-redis-3.0.874}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-redis-3.0.859 → tencentcloud-sdk-python-redis-3.0.874}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-redis-3.0.859 → tencentcloud-sdk-python-redis-3.0.874}/tencentcloud/redis/v20180412/errorcodes.py +6 -0
- {tencentcloud-sdk-python-redis-3.0.859 → tencentcloud-sdk-python-redis-3.0.874}/tencentcloud/redis/v20180412/models.py +410 -72
- {tencentcloud-sdk-python-redis-3.0.859 → tencentcloud-sdk-python-redis-3.0.874}/tencentcloud/redis/v20180412/redis_client.py +70 -1
- {tencentcloud-sdk-python-redis-3.0.859 → tencentcloud-sdk-python-redis-3.0.874}/tencentcloud_sdk_python_redis.egg-info/PKG-INFO +1 -1
- {tencentcloud-sdk-python-redis-3.0.859 → tencentcloud-sdk-python-redis-3.0.874}/README.rst +0 -0
- {tencentcloud-sdk-python-redis-3.0.859 → tencentcloud-sdk-python-redis-3.0.874}/setup.cfg +0 -0
- {tencentcloud-sdk-python-redis-3.0.859 → tencentcloud-sdk-python-redis-3.0.874}/setup.py +0 -0
- {tencentcloud-sdk-python-redis-3.0.859 → tencentcloud-sdk-python-redis-3.0.874}/tencentcloud/redis/__init__.py +0 -0
- {tencentcloud-sdk-python-redis-3.0.859 → tencentcloud-sdk-python-redis-3.0.874}/tencentcloud/redis/v20180412/__init__.py +0 -0
- {tencentcloud-sdk-python-redis-3.0.859 → tencentcloud-sdk-python-redis-3.0.874}/tencentcloud_sdk_python_redis.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-redis-3.0.859 → tencentcloud-sdk-python-redis-3.0.874}/tencentcloud_sdk_python_redis.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-redis-3.0.859 → tencentcloud-sdk-python-redis-3.0.874}/tencentcloud_sdk_python_redis.egg-info/top_level.txt +0 -0
|
@@ -209,6 +209,9 @@ LIMITEXCEEDED_PERIODEXCEEDMAXLIMIT = 'LimitExceeded.PeriodExceedMaxLimit'
|
|
|
209
209
|
# 购买时长非法,时长最少1个月。
|
|
210
210
|
LIMITEXCEEDED_PERIODLESSTHANMINLIMIT = 'LimitExceeded.PeriodLessThanMinLimit'
|
|
211
211
|
|
|
212
|
+
# 请求的 redis 数量超过最大/最小购买数限制。
|
|
213
|
+
LIMITEXCEEDED_REACHTHEAMOUNTLIMIT = 'LimitExceeded.ReachTheAmountLimit'
|
|
214
|
+
|
|
212
215
|
# 复制组已锁定。
|
|
213
216
|
LIMITEXCEEDED_REPLICATIONGROUPLOCKED = 'LimitExceeded.ReplicationGroupLocked'
|
|
214
217
|
|
|
@@ -284,6 +287,9 @@ RESOURCEUNAVAILABLE_NOENOUGHVIPINVPC = 'ResourceUnavailable.NoEnoughVipInVPC'
|
|
|
284
287
|
# 请求的区域暂时不提供redis服务。
|
|
285
288
|
RESOURCEUNAVAILABLE_NOREDISSERVICE = 'ResourceUnavailable.NoRedisService'
|
|
286
289
|
|
|
290
|
+
# 请求的 zoneId 不提供 redis服务。
|
|
291
|
+
RESOURCEUNAVAILABLE_NOSERVICEAVAILABLEFORTHISZONEID = 'ResourceUnavailable.NoServiceAvailableForThisZoneId'
|
|
292
|
+
|
|
287
293
|
# 请求的区域暂时不提供请求类型的redis服务。
|
|
288
294
|
RESOURCEUNAVAILABLE_NOTYPEIDREDISSERVICE = 'ResourceUnavailable.NoTypeIdRedisService'
|
|
289
295
|
|
|
@@ -305,15 +305,15 @@ class BackupDownloadInfo(AbstractModel):
|
|
|
305
305
|
|
|
306
306
|
|
|
307
307
|
class BackupLimitVpcItem(AbstractModel):
|
|
308
|
-
"""
|
|
308
|
+
"""已配置的备份文件下载地址对应的 VPC 信息。
|
|
309
309
|
|
|
310
310
|
"""
|
|
311
311
|
|
|
312
312
|
def __init__(self):
|
|
313
313
|
r"""
|
|
314
|
-
:param Region:
|
|
314
|
+
:param Region: 备份文件的下载地址对应VPC 所属的地域。
|
|
315
315
|
:type Region: str
|
|
316
|
-
:param VpcList:
|
|
316
|
+
:param VpcList: 备份文件下载地址的 VPC 列表。
|
|
317
317
|
:type VpcList: list of str
|
|
318
318
|
"""
|
|
319
319
|
self.Region = None
|
|
@@ -653,6 +653,141 @@ class ClearInstanceResponse(AbstractModel):
|
|
|
653
653
|
self.RequestId = params.get("RequestId")
|
|
654
654
|
|
|
655
655
|
|
|
656
|
+
class CloneInstancesRequest(AbstractModel):
|
|
657
|
+
"""CloneInstances请求参数结构体
|
|
658
|
+
|
|
659
|
+
"""
|
|
660
|
+
|
|
661
|
+
def __init__(self):
|
|
662
|
+
r"""
|
|
663
|
+
:param InstanceId: 指定待克隆的源实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis)在实例列表复制实例 ID。
|
|
664
|
+
:type InstanceId: str
|
|
665
|
+
:param GoodsNum: 单次克隆实例的数量。
|
|
666
|
+
- 包年包月每次购买最大数量为100。
|
|
667
|
+
- 按量计费每次购买最大数量为30。
|
|
668
|
+
:type GoodsNum: int
|
|
669
|
+
:param ZoneId: 克隆实例所属的可用区ID。当前所支持的可用区 ID,请参见[地域和可用区](https://cloud.tencent.com/document/product/239/4106) 。
|
|
670
|
+
:type ZoneId: int
|
|
671
|
+
:param BillingMode: 付费方式。<ul><li>0:按量计费。</li><li>1:包年包月。</li></ul>
|
|
672
|
+
:type BillingMode: int
|
|
673
|
+
:param Period: 购买实例时长。<ul><li>单位:月。</li><li>付费方式选择包年包月计费时,取值范围为[1,2,3,4,5,6,7,8,9,10,11,12,24,36,48,60]。</li><li>付费方式选择按量计费时,设置为1。</li></ul>
|
|
674
|
+
:type Period: int
|
|
675
|
+
:param SecurityGroupIdList: 安全组ID。请登录控制台,在<b>安全组</b>页面获取安全组 ID 信息。
|
|
676
|
+
:type SecurityGroupIdList: list of str
|
|
677
|
+
:param BackupId: 克隆实例使用的备份ID。请通过接口[DescribeInstanceBackups](https://cloud.tencent.com/document/product/239/20011)获取备份ID。
|
|
678
|
+
:type BackupId: str
|
|
679
|
+
:param NoAuth: 配置克隆实例是否支持免密访问。开启 SSL 与外网均不支持免密访问。<ul><li>true:免密实例,</li><li>false:非免密实例。默认为非免密实例。</li></ul>
|
|
680
|
+
:type NoAuth: bool
|
|
681
|
+
:param VpcId: 配置克隆实例的私有网络ID。如果未配置该参数,默认选择基础网络。
|
|
682
|
+
:type VpcId: str
|
|
683
|
+
:param SubnetId: 配置克隆实例所属私有网络的子网。基础网络时该参数无需配置。
|
|
684
|
+
:type SubnetId: str
|
|
685
|
+
:param InstanceName: 克隆实例的名称。<br>仅支持长度小于60的中文、英文或者数字,短划线"-"、下划线"_"。</br>
|
|
686
|
+
:type InstanceName: str
|
|
687
|
+
:param Password: 克隆实例的访问密码。<ul><li>当输入参数<b>NoAuth</b>为<b>true</b>时,可不设置该参数。</li><li>当实例为Redis2.8、4.0和5.0时,其密码格式为:8-30个字符,至少包含小写字母、大写字母、数字和字符 ()`~!@#$%^&*-+=_|{}[]:;<>,.?/ 中的2种,不能以"/"开头;</li><li>当实例为CKV 3.2时,其密码格式为:8-30个字符,必须包含字母和数字,且不包含其他字符。</li></ul>
|
|
688
|
+
:type Password: str
|
|
689
|
+
:param AutoRenew: 自动续费标识。<ul><li>0:默认状态,手动续费。</li><li>1:自动续费。</li><li>2:不自动续费,到期自动隔离。</li></ul>
|
|
690
|
+
:type AutoRenew: int
|
|
691
|
+
:param VPort: 用户自定义的端口,默认为6379,取值范围[1024,65535]。
|
|
692
|
+
:type VPort: int
|
|
693
|
+
:param NodeSet: 实例的节点信息。<ul><li>目前支持配置节点的类型(主节点或者副本节点),及其节点的可用区信息。具体信息,请参见[RedisNodeInfo](https://cloud.tencent.com/document/product/239/20022#RedisNodeInfo)。</li><li>单可用区部署可不配置该参数。</li></ul>
|
|
694
|
+
:type NodeSet: list of RedisNodeInfo
|
|
695
|
+
:param ProjectId: 项目 ID。登录[Redis 控制台](https://console.cloud.tencent.com/redis#/),可在右上角的<b>账号中心</b> > <b>项目管理</b>中查找项目ID。
|
|
696
|
+
:type ProjectId: int
|
|
697
|
+
:param ResourceTags: 克隆实例需绑定的标签。
|
|
698
|
+
:type ResourceTags: list of ResourceTag
|
|
699
|
+
:param TemplateId: 指定克隆实例相关的参数模板 ID。
|
|
700
|
+
- 若不配置该参数,则系统会依据所选择的兼容版本及架构,自动适配对应的默认模板。
|
|
701
|
+
- 请通过[DescribeParamTemplates](https://cloud.tencent.com/document/product/239/58750)接口,查询实例的参数模板列表,获取模板 ID 编号。
|
|
702
|
+
:type TemplateId: str
|
|
703
|
+
:param AlarmPolicyList: 指定克隆实例的告警策略 ID。请登录[腾讯云可观测平台控制台](https://console.cloud.tencent.com/monitor/alarm2/policy),在 <b>告警管理</b> > <b>策略管理</b>页面获取策略 ID 信息。
|
|
704
|
+
:type AlarmPolicyList: list of str
|
|
705
|
+
"""
|
|
706
|
+
self.InstanceId = None
|
|
707
|
+
self.GoodsNum = None
|
|
708
|
+
self.ZoneId = None
|
|
709
|
+
self.BillingMode = None
|
|
710
|
+
self.Period = None
|
|
711
|
+
self.SecurityGroupIdList = None
|
|
712
|
+
self.BackupId = None
|
|
713
|
+
self.NoAuth = None
|
|
714
|
+
self.VpcId = None
|
|
715
|
+
self.SubnetId = None
|
|
716
|
+
self.InstanceName = None
|
|
717
|
+
self.Password = None
|
|
718
|
+
self.AutoRenew = None
|
|
719
|
+
self.VPort = None
|
|
720
|
+
self.NodeSet = None
|
|
721
|
+
self.ProjectId = None
|
|
722
|
+
self.ResourceTags = None
|
|
723
|
+
self.TemplateId = None
|
|
724
|
+
self.AlarmPolicyList = None
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
def _deserialize(self, params):
|
|
728
|
+
self.InstanceId = params.get("InstanceId")
|
|
729
|
+
self.GoodsNum = params.get("GoodsNum")
|
|
730
|
+
self.ZoneId = params.get("ZoneId")
|
|
731
|
+
self.BillingMode = params.get("BillingMode")
|
|
732
|
+
self.Period = params.get("Period")
|
|
733
|
+
self.SecurityGroupIdList = params.get("SecurityGroupIdList")
|
|
734
|
+
self.BackupId = params.get("BackupId")
|
|
735
|
+
self.NoAuth = params.get("NoAuth")
|
|
736
|
+
self.VpcId = params.get("VpcId")
|
|
737
|
+
self.SubnetId = params.get("SubnetId")
|
|
738
|
+
self.InstanceName = params.get("InstanceName")
|
|
739
|
+
self.Password = params.get("Password")
|
|
740
|
+
self.AutoRenew = params.get("AutoRenew")
|
|
741
|
+
self.VPort = params.get("VPort")
|
|
742
|
+
if params.get("NodeSet") is not None:
|
|
743
|
+
self.NodeSet = []
|
|
744
|
+
for item in params.get("NodeSet"):
|
|
745
|
+
obj = RedisNodeInfo()
|
|
746
|
+
obj._deserialize(item)
|
|
747
|
+
self.NodeSet.append(obj)
|
|
748
|
+
self.ProjectId = params.get("ProjectId")
|
|
749
|
+
if params.get("ResourceTags") is not None:
|
|
750
|
+
self.ResourceTags = []
|
|
751
|
+
for item in params.get("ResourceTags"):
|
|
752
|
+
obj = ResourceTag()
|
|
753
|
+
obj._deserialize(item)
|
|
754
|
+
self.ResourceTags.append(obj)
|
|
755
|
+
self.TemplateId = params.get("TemplateId")
|
|
756
|
+
self.AlarmPolicyList = params.get("AlarmPolicyList")
|
|
757
|
+
memeber_set = set(params.keys())
|
|
758
|
+
for name, value in vars(self).items():
|
|
759
|
+
if name in memeber_set:
|
|
760
|
+
memeber_set.remove(name)
|
|
761
|
+
if len(memeber_set) > 0:
|
|
762
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
|
|
766
|
+
class CloneInstancesResponse(AbstractModel):
|
|
767
|
+
"""CloneInstances返回参数结构体
|
|
768
|
+
|
|
769
|
+
"""
|
|
770
|
+
|
|
771
|
+
def __init__(self):
|
|
772
|
+
r"""
|
|
773
|
+
:param DealId: 请求任务 ID。
|
|
774
|
+
:type DealId: str
|
|
775
|
+
:param InstanceIds: 克隆实例的 ID。
|
|
776
|
+
:type InstanceIds: list of str
|
|
777
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
778
|
+
:type RequestId: str
|
|
779
|
+
"""
|
|
780
|
+
self.DealId = None
|
|
781
|
+
self.InstanceIds = None
|
|
782
|
+
self.RequestId = None
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
def _deserialize(self, params):
|
|
786
|
+
self.DealId = params.get("DealId")
|
|
787
|
+
self.InstanceIds = params.get("InstanceIds")
|
|
788
|
+
self.RequestId = params.get("RequestId")
|
|
789
|
+
|
|
790
|
+
|
|
656
791
|
class CloseSSLRequest(AbstractModel):
|
|
657
792
|
"""CloseSSL请求参数结构体
|
|
658
793
|
|
|
@@ -1471,6 +1606,63 @@ class DescribeBackupUrlResponse(AbstractModel):
|
|
|
1471
1606
|
self.RequestId = params.get("RequestId")
|
|
1472
1607
|
|
|
1473
1608
|
|
|
1609
|
+
class DescribeBandwidthRangeRequest(AbstractModel):
|
|
1610
|
+
"""DescribeBandwidthRange请求参数结构体
|
|
1611
|
+
|
|
1612
|
+
"""
|
|
1613
|
+
|
|
1614
|
+
def __init__(self):
|
|
1615
|
+
r"""
|
|
1616
|
+
:param InstanceId: 实例 ID。
|
|
1617
|
+
:type InstanceId: str
|
|
1618
|
+
"""
|
|
1619
|
+
self.InstanceId = None
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
def _deserialize(self, params):
|
|
1623
|
+
self.InstanceId = params.get("InstanceId")
|
|
1624
|
+
memeber_set = set(params.keys())
|
|
1625
|
+
for name, value in vars(self).items():
|
|
1626
|
+
if name in memeber_set:
|
|
1627
|
+
memeber_set.remove(name)
|
|
1628
|
+
if len(memeber_set) > 0:
|
|
1629
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1630
|
+
|
|
1631
|
+
|
|
1632
|
+
|
|
1633
|
+
class DescribeBandwidthRangeResponse(AbstractModel):
|
|
1634
|
+
"""DescribeBandwidthRange返回参数结构体
|
|
1635
|
+
|
|
1636
|
+
"""
|
|
1637
|
+
|
|
1638
|
+
def __init__(self):
|
|
1639
|
+
r"""
|
|
1640
|
+
:param BaseBandwidth: 标准带宽。指购买实例时,系统为每个节点分配的带宽。
|
|
1641
|
+
:type BaseBandwidth: int
|
|
1642
|
+
:param AddBandwidth: 指实例的附加带宽。标准带宽不满足需求的情况下,用户可自行增加的带宽。<ul><li>开启副本只读时,实例总带宽 = 附加带宽 * 分片数 + 标准带宽 * 分片数 * Max ([只读副本数量, 1]),标准架构的分片数 = 1。</li><li>没有开启副本只读时,实例总带宽 = 附加带宽 * 分片数 + 标准带宽 * 分片数,标准架构的分片数 = 1。</li></ul>
|
|
1643
|
+
:type AddBandwidth: int
|
|
1644
|
+
:param MinAddBandwidth: 附加带宽设置下限。
|
|
1645
|
+
:type MinAddBandwidth: int
|
|
1646
|
+
:param MaxAddBandwidth: 附加带宽设置上限。
|
|
1647
|
+
:type MaxAddBandwidth: int
|
|
1648
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1649
|
+
:type RequestId: str
|
|
1650
|
+
"""
|
|
1651
|
+
self.BaseBandwidth = None
|
|
1652
|
+
self.AddBandwidth = None
|
|
1653
|
+
self.MinAddBandwidth = None
|
|
1654
|
+
self.MaxAddBandwidth = None
|
|
1655
|
+
self.RequestId = None
|
|
1656
|
+
|
|
1657
|
+
|
|
1658
|
+
def _deserialize(self, params):
|
|
1659
|
+
self.BaseBandwidth = params.get("BaseBandwidth")
|
|
1660
|
+
self.AddBandwidth = params.get("AddBandwidth")
|
|
1661
|
+
self.MinAddBandwidth = params.get("MinAddBandwidth")
|
|
1662
|
+
self.MaxAddBandwidth = params.get("MaxAddBandwidth")
|
|
1663
|
+
self.RequestId = params.get("RequestId")
|
|
1664
|
+
|
|
1665
|
+
|
|
1474
1666
|
class DescribeCommonDBInstancesRequest(AbstractModel):
|
|
1475
1667
|
"""DescribeCommonDBInstances请求参数结构体
|
|
1476
1668
|
|
|
@@ -3029,7 +3221,7 @@ class DescribeParamTemplateInfoRequest(AbstractModel):
|
|
|
3029
3221
|
|
|
3030
3222
|
def __init__(self):
|
|
3031
3223
|
r"""
|
|
3032
|
-
:param TemplateId:
|
|
3224
|
+
:param TemplateId: 指定查询的参数模板 ID。请通过接口[DescribeParamTemplates](https://cloud.tencent.com/document/product/239/58750)获取参数模板列表信息。
|
|
3033
3225
|
:type TemplateId: str
|
|
3034
3226
|
"""
|
|
3035
3227
|
self.TemplateId = None
|
|
@@ -3053,17 +3245,27 @@ class DescribeParamTemplateInfoResponse(AbstractModel):
|
|
|
3053
3245
|
|
|
3054
3246
|
def __init__(self):
|
|
3055
3247
|
r"""
|
|
3056
|
-
:param TotalCount:
|
|
3248
|
+
:param TotalCount: 参数模板的参数数量。
|
|
3057
3249
|
:type TotalCount: int
|
|
3058
3250
|
:param TemplateId: 参数模板 ID。
|
|
3059
3251
|
:type TemplateId: str
|
|
3060
3252
|
:param Name: 参数模板名称。
|
|
3061
3253
|
:type Name: str
|
|
3062
|
-
:param ProductType:
|
|
3254
|
+
:param ProductType: 产品类型。
|
|
3255
|
+
- 2:Redis 2.8内存版(标准架构)。
|
|
3256
|
+
- 3:CKV 3.2内存版(标准架构)。
|
|
3257
|
+
- 4:CKV 3.2内存版(集群架构)。
|
|
3258
|
+
- 5:Redis 2.8内存版(单机)。
|
|
3259
|
+
- 6:Redis 4.0内存版(标准架构)。
|
|
3260
|
+
- 7:Redis 4.0内存版(集群架构)。
|
|
3261
|
+
- 8:Redis 5.0内存版(标准架构)。
|
|
3262
|
+
- 9:Redis 5.0内存版(集群架构)。
|
|
3263
|
+
- 15:Redis 6.2内存版(标准架构)。
|
|
3264
|
+
- 16:Redis 6.2内存版(集群架构)。
|
|
3063
3265
|
:type ProductType: int
|
|
3064
|
-
:param Description:
|
|
3266
|
+
:param Description: 参数模板描述。
|
|
3065
3267
|
:type Description: str
|
|
3066
|
-
:param Items:
|
|
3268
|
+
:param Items: 参数详情。包含:参数的名称,当前运行值,默认值,最大值、最小值、枚举值等信息。
|
|
3067
3269
|
:type Items: list of ParameterDetail
|
|
3068
3270
|
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3069
3271
|
:type RequestId: str
|
|
@@ -3397,7 +3599,7 @@ class DescribeReplicationGroupRequest(AbstractModel):
|
|
|
3397
3599
|
:type Offset: int
|
|
3398
3600
|
:param GroupId: 复制组ID。
|
|
3399
3601
|
:type GroupId: str
|
|
3400
|
-
:param SearchKey:
|
|
3602
|
+
:param SearchKey: 模糊查询的关键字,可以设置为复制组ID或复制组名称进行模糊查询。
|
|
3401
3603
|
:type SearchKey: str
|
|
3402
3604
|
"""
|
|
3403
3605
|
self.Limit = None
|
|
@@ -4075,23 +4277,46 @@ class Groups(AbstractModel):
|
|
|
4075
4277
|
|
|
4076
4278
|
def __init__(self):
|
|
4077
4279
|
r"""
|
|
4078
|
-
:param AppId: 用户
|
|
4280
|
+
:param AppId: 用户 APPID。APPID是与账号ID有唯一对应关系的应用 ID,部分腾讯云产品会使用此 APPID。
|
|
4079
4281
|
:type AppId: int
|
|
4080
|
-
:param RegionId: 地域ID
|
|
4282
|
+
:param RegionId: 地域ID 。
|
|
4283
|
+
- 1:广州
|
|
4284
|
+
- 4:上海
|
|
4285
|
+
- 5:中国香港
|
|
4286
|
+
- 6:多伦多
|
|
4287
|
+
- 7:上海金融
|
|
4288
|
+
- 8:北京
|
|
4289
|
+
- 9:新加坡
|
|
4290
|
+
- 11:深圳金融
|
|
4291
|
+
- 15:美西(硅谷)
|
|
4292
|
+
- 16:成都
|
|
4293
|
+
- 17:德国
|
|
4294
|
+
- 18:韩国
|
|
4295
|
+
- 19:重庆
|
|
4296
|
+
- 21:印度
|
|
4297
|
+
- 22:美东(弗吉尼亚)
|
|
4298
|
+
- 23:泰国
|
|
4299
|
+
- 24:俄罗斯
|
|
4300
|
+
- 25:日本
|
|
4081
4301
|
:type RegionId: int
|
|
4082
|
-
:param GroupId:
|
|
4302
|
+
:param GroupId: 复制组 ID。格式如:crs-rpl-deind****。
|
|
4083
4303
|
:type GroupId: str
|
|
4084
|
-
:param GroupName:
|
|
4304
|
+
:param GroupName: 复制组名称。
|
|
4085
4305
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4086
4306
|
:type GroupName: str
|
|
4087
|
-
:param Status:
|
|
4307
|
+
:param Status: 复制组状态。
|
|
4308
|
+
- 37:绑定复制组中。
|
|
4309
|
+
- 38:复制组重连中。
|
|
4310
|
+
- 51:解绑复制组中。
|
|
4311
|
+
- 52:复制组实例切主中。
|
|
4312
|
+
- 53:角色变更中。
|
|
4088
4313
|
:type Status: int
|
|
4089
|
-
:param InstanceCount:
|
|
4314
|
+
:param InstanceCount: 复制组数量。
|
|
4090
4315
|
:type InstanceCount: int
|
|
4091
|
-
:param Instances:
|
|
4316
|
+
:param Instances: 复制组中的实例信息。
|
|
4092
4317
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4093
4318
|
:type Instances: list of Instances
|
|
4094
|
-
:param Remark:
|
|
4319
|
+
:param Remark: 备注信息。
|
|
4095
4320
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4096
4321
|
:type Remark: str
|
|
4097
4322
|
"""
|
|
@@ -4768,15 +4993,18 @@ class InstanceParamHistory(AbstractModel):
|
|
|
4768
4993
|
|
|
4769
4994
|
def __init__(self):
|
|
4770
4995
|
r"""
|
|
4771
|
-
:param ParamName:
|
|
4996
|
+
:param ParamName: 参数名称。
|
|
4772
4997
|
:type ParamName: str
|
|
4773
|
-
:param PreValue:
|
|
4998
|
+
:param PreValue: 参数修改之前的值。
|
|
4774
4999
|
:type PreValue: str
|
|
4775
|
-
:param NewValue:
|
|
5000
|
+
:param NewValue: 参数修改之后的值。
|
|
4776
5001
|
:type NewValue: str
|
|
4777
|
-
:param Status:
|
|
5002
|
+
:param Status: 参数配置状态。
|
|
5003
|
+
- 1:参数配置修改中。
|
|
5004
|
+
- 2:参数配置修改成功。
|
|
5005
|
+
- 3:参数配置修改失败。
|
|
4778
5006
|
:type Status: int
|
|
4779
|
-
:param ModifyTime:
|
|
5007
|
+
:param ModifyTime: 修改时间。
|
|
4780
5008
|
:type ModifyTime: str
|
|
4781
5009
|
"""
|
|
4782
5010
|
self.ParamName = None
|
|
@@ -4808,13 +5036,13 @@ class InstanceProxySlowlogDetail(AbstractModel):
|
|
|
4808
5036
|
|
|
4809
5037
|
def __init__(self):
|
|
4810
5038
|
r"""
|
|
4811
|
-
:param Duration:
|
|
5039
|
+
:param Duration: 慢查询耗时时长。单位:毫秒。
|
|
4812
5040
|
:type Duration: int
|
|
4813
5041
|
:param Client: 客户端地址。
|
|
4814
5042
|
:type Client: str
|
|
4815
|
-
:param Command:
|
|
5043
|
+
:param Command: 慢查询的命令。
|
|
4816
5044
|
:type Command: str
|
|
4817
|
-
:param CommandLine:
|
|
5045
|
+
:param CommandLine: 慢查询详细命令行信息。
|
|
4818
5046
|
:type CommandLine: str
|
|
4819
5047
|
:param ExecuteTime: 执行时间。
|
|
4820
5048
|
:type ExecuteTime: str
|
|
@@ -4907,9 +5135,19 @@ class InstanceSet(AbstractModel):
|
|
|
4907
5135
|
:type Createtime: str
|
|
4908
5136
|
:param Size: 实例容量大小,单位:MB。
|
|
4909
5137
|
:type Size: float
|
|
4910
|
-
:param SizeUsed:
|
|
5138
|
+
:param SizeUsed: 该字段已废弃。请使用腾讯云可观测平台API 接口 [GetMonitorData](https://cloud.tencent.com/document/product/248/31014) 获取实例已使用的内存容量。
|
|
4911
5139
|
:type SizeUsed: float
|
|
4912
|
-
:param Type:
|
|
5140
|
+
:param Type: 实例类型。
|
|
5141
|
+
- 2:Redis 2.8内存版(标准架构)。
|
|
5142
|
+
- 3:CKV 3.2内存版(标准架构)。
|
|
5143
|
+
- 4:CKV 3.2内存版(集群架构)。
|
|
5144
|
+
- 5:Redis 2.8内存版(单机)。
|
|
5145
|
+
- 6:Redis 4.0内存版(标准架构)。
|
|
5146
|
+
- 7:Redis 4.0内存版(集群架构)。
|
|
5147
|
+
- 8:Redis 5.0内存版(标准架构)。
|
|
5148
|
+
- 9:Redis 5.0内存版(集群架构)。
|
|
5149
|
+
- 15:Redis 6.2内存版(标准架构)。
|
|
5150
|
+
- 16:Redis 6.2内存版(集群架构)。
|
|
4913
5151
|
:type Type: int
|
|
4914
5152
|
:param AutoRenewFlag: 实例是否设置自动续费标识。<ul><li>1:设置自动续费。</li><li>0:未设置自动续费。</li></ul>
|
|
4915
5153
|
:type AutoRenewFlag: int
|
|
@@ -5282,7 +5520,7 @@ class Instances(AbstractModel):
|
|
|
5282
5520
|
|
|
5283
5521
|
def __init__(self):
|
|
5284
5522
|
r"""
|
|
5285
|
-
:param AppId: 用户
|
|
5523
|
+
:param AppId: 用户APPID。APPID是与账号ID有唯一对应关系的应用 ID,部分腾讯云产品会使用此 APPID。
|
|
5286
5524
|
:type AppId: int
|
|
5287
5525
|
:param InstanceId: 实例 ID。
|
|
5288
5526
|
:type InstanceId: str
|
|
@@ -5318,7 +5556,17 @@ class Instances(AbstractModel):
|
|
|
5318
5556
|
:type Status: int
|
|
5319
5557
|
:param GrocerySysId: 仓库ID。
|
|
5320
5558
|
:type GrocerySysId: int
|
|
5321
|
-
:param ProductType:
|
|
5559
|
+
:param ProductType: 实例类型。
|
|
5560
|
+
- 2:Redis 2.8内存版(标准架构)。
|
|
5561
|
+
- 3:CKV 3.2内存版(标准架构)。
|
|
5562
|
+
- 4:CKV 3.2内存版(集群架构)。
|
|
5563
|
+
- 5:Redis 2.8内存版(单机)。
|
|
5564
|
+
- 6:Redis 4.0内存版(标准架构)。
|
|
5565
|
+
- 7:Redis 4.0内存版(集群架构)。
|
|
5566
|
+
- 8:Redis 5.0内存版(标准架构)。
|
|
5567
|
+
- 9:Redis 5.0内存版(集群架构)。
|
|
5568
|
+
- 15:Redis 6.2内存版(标准架构)。
|
|
5569
|
+
- 16:Redis 6.2内存版(集群架构)。
|
|
5322
5570
|
:type ProductType: int
|
|
5323
5571
|
:param CreateTime: 实例加入复制组的时间。
|
|
5324
5572
|
:type CreateTime: str
|
|
@@ -5496,7 +5744,7 @@ class ModfiyInstancePasswordRequest(AbstractModel):
|
|
|
5496
5744
|
|
|
5497
5745
|
def __init__(self):
|
|
5498
5746
|
r"""
|
|
5499
|
-
:param InstanceId:
|
|
5747
|
+
:param InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis)在实例列表复制实例 ID。
|
|
5500
5748
|
:type InstanceId: str
|
|
5501
5749
|
:param OldPassword: 实例旧密码。
|
|
5502
5750
|
:type OldPassword: str
|
|
@@ -6341,13 +6589,23 @@ class ParamTemplateInfo(AbstractModel):
|
|
|
6341
6589
|
|
|
6342
6590
|
def __init__(self):
|
|
6343
6591
|
r"""
|
|
6344
|
-
:param TemplateId: 参数模板ID
|
|
6592
|
+
:param TemplateId: 参数模板 ID。
|
|
6345
6593
|
:type TemplateId: str
|
|
6346
|
-
:param Name:
|
|
6594
|
+
:param Name: 参数模板名称。
|
|
6347
6595
|
:type Name: str
|
|
6348
|
-
:param Description:
|
|
6596
|
+
:param Description: 参数模板描述。
|
|
6349
6597
|
:type Description: str
|
|
6350
|
-
:param ProductType:
|
|
6598
|
+
:param ProductType: 实例类型。
|
|
6599
|
+
- 2:Redis 2.8内存版(标准架构)。
|
|
6600
|
+
- 3:CKV 3.2内存版(标准架构)。
|
|
6601
|
+
- 4:CKV 3.2内存版(集群架构)。
|
|
6602
|
+
- 5:Redis 2.8内存版(单机)。
|
|
6603
|
+
- 6:Redis 4.0内存版(标准架构)。
|
|
6604
|
+
- 7:Redis 4.0内存版(集群架构)。
|
|
6605
|
+
- 8:Redis 5.0内存版(标准架构)。
|
|
6606
|
+
- 9:Redis 5.0内存版(集群架构)。
|
|
6607
|
+
- 15:Redis 6.2内存版(标准架构)。
|
|
6608
|
+
- 16:Redis 6.2内存版(集群架构)。
|
|
6351
6609
|
:type ProductType: int
|
|
6352
6610
|
"""
|
|
6353
6611
|
self.TemplateId = None
|
|
@@ -6377,25 +6635,27 @@ class ParameterDetail(AbstractModel):
|
|
|
6377
6635
|
|
|
6378
6636
|
def __init__(self):
|
|
6379
6637
|
r"""
|
|
6380
|
-
:param Name:
|
|
6638
|
+
:param Name: 参数名称。
|
|
6381
6639
|
:type Name: str
|
|
6382
|
-
:param ParamType:
|
|
6640
|
+
:param ParamType: 参数类型。
|
|
6383
6641
|
:type ParamType: str
|
|
6384
|
-
:param Default:
|
|
6642
|
+
:param Default: 参数默认值。
|
|
6385
6643
|
:type Default: str
|
|
6386
|
-
:param Description:
|
|
6644
|
+
:param Description: 参数描述。
|
|
6387
6645
|
:type Description: str
|
|
6388
|
-
:param CurrentValue:
|
|
6646
|
+
:param CurrentValue: 参数当前值。
|
|
6389
6647
|
:type CurrentValue: str
|
|
6390
|
-
:param NeedReboot:
|
|
6648
|
+
:param NeedReboot: 修改参数后,是否需要重启数据库以使参数生效。
|
|
6649
|
+
- 0:不需要重启。
|
|
6650
|
+
- 1:需要重启。
|
|
6391
6651
|
:type NeedReboot: int
|
|
6392
|
-
:param Max:
|
|
6652
|
+
:param Max: 参数允许的最大值。
|
|
6393
6653
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
6394
6654
|
:type Max: str
|
|
6395
|
-
:param Min:
|
|
6655
|
+
:param Min: 参数允许的最小值。
|
|
6396
6656
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
6397
6657
|
:type Min: str
|
|
6398
|
-
:param EnumValue:
|
|
6658
|
+
:param EnumValue: 参数可选枚举值。如果为非枚举参数,则为空。
|
|
6399
6659
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
6400
6660
|
:type EnumValue: list of str
|
|
6401
6661
|
"""
|
|
@@ -6436,31 +6696,47 @@ class ProductConf(AbstractModel):
|
|
|
6436
6696
|
|
|
6437
6697
|
def __init__(self):
|
|
6438
6698
|
r"""
|
|
6439
|
-
:param Type:
|
|
6699
|
+
:param Type: 产品类型。
|
|
6700
|
+
- 2:Redis 2.8内存版(标准架构)。
|
|
6701
|
+
- 3:CKV 3.2内存版(标准架构)。
|
|
6702
|
+
- 4:CKV 3.2内存版(集群架构)。
|
|
6703
|
+
- 5:Redis 2.8内存版(单机)。
|
|
6704
|
+
- 6:Redis 4.0内存版(标准架构)。
|
|
6705
|
+
- 7:Redis 4.0内存版(集群架构)。
|
|
6706
|
+
- 8:Redis 5.0内存版(标准架构)。
|
|
6707
|
+
- 9:Redis 5.0内存版(集群架构)。
|
|
6708
|
+
- 15:Redis 6.2内存版(标准架构)。
|
|
6709
|
+
- 16:Redis 6.2内存版(集群架构)。
|
|
6440
6710
|
:type Type: int
|
|
6441
|
-
:param TypeName:
|
|
6711
|
+
:param TypeName: 产品名称。包括:Redis 主从版、CKV 主从版、CKV 集群版、Redis 单机版、Redis 集群版。
|
|
6442
6712
|
:type TypeName: str
|
|
6443
|
-
:param MinBuyNum:
|
|
6713
|
+
:param MinBuyNum: 购买时的最小数量。
|
|
6444
6714
|
:type MinBuyNum: int
|
|
6445
|
-
:param MaxBuyNum:
|
|
6715
|
+
:param MaxBuyNum: 购买时的最大数量。
|
|
6446
6716
|
:type MaxBuyNum: int
|
|
6447
|
-
:param Saleout:
|
|
6717
|
+
:param Saleout: 产品是否售罄。
|
|
6718
|
+
- true:售罄。
|
|
6719
|
+
- false:未售罄。
|
|
6448
6720
|
:type Saleout: bool
|
|
6449
|
-
:param Engine:
|
|
6721
|
+
:param Engine: 产品引擎。包括:腾讯云 CKV与社区版 Redis。
|
|
6450
6722
|
:type Engine: str
|
|
6451
|
-
:param Version:
|
|
6723
|
+
:param Version: 兼容版本。包括:Redis-2.8、Redis-3.2、Redis-4.0、Redis-5.0、Redis-6.2。
|
|
6452
6724
|
:type Version: str
|
|
6453
|
-
:param TotalSize: 规格总大小,单位
|
|
6725
|
+
:param TotalSize: 规格总大小,单位GB。
|
|
6454
6726
|
:type TotalSize: list of str
|
|
6455
|
-
:param ShardSize: 每个分片大小,单位
|
|
6727
|
+
:param ShardSize: 每个分片大小,单位GB。
|
|
6456
6728
|
:type ShardSize: list of str
|
|
6457
|
-
:param ReplicaNum:
|
|
6729
|
+
:param ReplicaNum: 副本数量。
|
|
6458
6730
|
:type ReplicaNum: list of str
|
|
6459
|
-
:param ShardNum:
|
|
6731
|
+
:param ShardNum: 分片数量。
|
|
6460
6732
|
:type ShardNum: list of str
|
|
6461
|
-
:param PayMode:
|
|
6733
|
+
:param PayMode: 支持的计费模式。
|
|
6734
|
+
- 1:包年包月。
|
|
6735
|
+
- 0:按量计费。
|
|
6462
6736
|
:type PayMode: str
|
|
6463
|
-
:param EnableRepicaReadOnly:
|
|
6737
|
+
:param EnableRepicaReadOnly: 是否支持副本只读。
|
|
6738
|
+
- true:支持副本只读。
|
|
6739
|
+
- false:不支持。
|
|
6464
6740
|
:type EnableRepicaReadOnly: bool
|
|
6465
6741
|
"""
|
|
6466
6742
|
self.Type = None
|
|
@@ -6633,33 +6909,42 @@ class RedisCommonInstanceList(AbstractModel):
|
|
|
6633
6909
|
|
|
6634
6910
|
def __init__(self):
|
|
6635
6911
|
r"""
|
|
6636
|
-
:param InstanceName:
|
|
6912
|
+
:param InstanceName: 实例名称。
|
|
6637
6913
|
:type InstanceName: str
|
|
6638
|
-
:param InstanceId: 实例
|
|
6914
|
+
:param InstanceId: 实例 ID。
|
|
6639
6915
|
:type InstanceId: str
|
|
6640
|
-
:param AppId: 用户
|
|
6916
|
+
:param AppId: 用户APPID。APPID是与账号ID有唯一对应关系的应用 ID,部分腾讯云产品会使用此 APPID。
|
|
6641
6917
|
:type AppId: int
|
|
6642
|
-
:param ProjectId: 实例所属项目
|
|
6918
|
+
:param ProjectId: 实例所属项目 ID。
|
|
6643
6919
|
:type ProjectId: int
|
|
6644
|
-
:param Region:
|
|
6920
|
+
:param Region: 实例接入区域。
|
|
6645
6921
|
:type Region: str
|
|
6646
|
-
:param Zone:
|
|
6922
|
+
:param Zone: 实例接入可用区。
|
|
6647
6923
|
:type Zone: str
|
|
6648
|
-
:param VpcId:
|
|
6924
|
+
:param VpcId: 实例私有网络 ID。
|
|
6649
6925
|
:type VpcId: str
|
|
6650
|
-
:param SubnetId:
|
|
6926
|
+
:param SubnetId: 私有网络所属子网 ID。
|
|
6651
6927
|
:type SubnetId: str
|
|
6652
|
-
:param Status:
|
|
6928
|
+
:param Status: 实例状态信息。
|
|
6929
|
+
- 1-流程中。
|
|
6930
|
+
- 2-运行中。
|
|
6931
|
+
- -2-实例已隔离。
|
|
6932
|
+
- -3-实例待回收。
|
|
6933
|
+
- -4-实例已删除。
|
|
6653
6934
|
:type Status: str
|
|
6654
|
-
:param Vips:
|
|
6935
|
+
:param Vips: 实例私有网络 IP 地址。
|
|
6655
6936
|
:type Vips: list of str
|
|
6656
|
-
:param Vport:
|
|
6937
|
+
:param Vport: 实例网络端口。
|
|
6657
6938
|
:type Vport: int
|
|
6658
|
-
:param Createtime:
|
|
6939
|
+
:param Createtime: 实例创建时间。
|
|
6659
6940
|
:type Createtime: str
|
|
6660
|
-
:param PayMode:
|
|
6941
|
+
:param PayMode: 计费类型。
|
|
6942
|
+
- 0:按量计费。
|
|
6943
|
+
- 1:包年包月。
|
|
6661
6944
|
:type PayMode: int
|
|
6662
|
-
:param NetType:
|
|
6945
|
+
:param NetType: 网络类型。
|
|
6946
|
+
- 0:基础网络。
|
|
6947
|
+
- 1:VPC 网络。
|
|
6663
6948
|
:type NetType: int
|
|
6664
6949
|
"""
|
|
6665
6950
|
self.InstanceName = None
|
|
@@ -6908,6 +7193,59 @@ class ReleaseWanAddressResponse(AbstractModel):
|
|
|
6908
7193
|
self.RequestId = params.get("RequestId")
|
|
6909
7194
|
|
|
6910
7195
|
|
|
7196
|
+
class RemoveReplicationInstanceRequest(AbstractModel):
|
|
7197
|
+
"""RemoveReplicationInstance请求参数结构体
|
|
7198
|
+
|
|
7199
|
+
"""
|
|
7200
|
+
|
|
7201
|
+
def __init__(self):
|
|
7202
|
+
r"""
|
|
7203
|
+
:param GroupId: 复制组ID
|
|
7204
|
+
:type GroupId: str
|
|
7205
|
+
:param InstanceId: 实例ID
|
|
7206
|
+
:type InstanceId: str
|
|
7207
|
+
:param SyncType: 数据同步类型,true:需要数据强同步,false:不需要强同步,仅限删除主实例
|
|
7208
|
+
:type SyncType: bool
|
|
7209
|
+
"""
|
|
7210
|
+
self.GroupId = None
|
|
7211
|
+
self.InstanceId = None
|
|
7212
|
+
self.SyncType = None
|
|
7213
|
+
|
|
7214
|
+
|
|
7215
|
+
def _deserialize(self, params):
|
|
7216
|
+
self.GroupId = params.get("GroupId")
|
|
7217
|
+
self.InstanceId = params.get("InstanceId")
|
|
7218
|
+
self.SyncType = params.get("SyncType")
|
|
7219
|
+
memeber_set = set(params.keys())
|
|
7220
|
+
for name, value in vars(self).items():
|
|
7221
|
+
if name in memeber_set:
|
|
7222
|
+
memeber_set.remove(name)
|
|
7223
|
+
if len(memeber_set) > 0:
|
|
7224
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7225
|
+
|
|
7226
|
+
|
|
7227
|
+
|
|
7228
|
+
class RemoveReplicationInstanceResponse(AbstractModel):
|
|
7229
|
+
"""RemoveReplicationInstance返回参数结构体
|
|
7230
|
+
|
|
7231
|
+
"""
|
|
7232
|
+
|
|
7233
|
+
def __init__(self):
|
|
7234
|
+
r"""
|
|
7235
|
+
:param TaskId: 异步任务ID
|
|
7236
|
+
:type TaskId: int
|
|
7237
|
+
:param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
7238
|
+
:type RequestId: str
|
|
7239
|
+
"""
|
|
7240
|
+
self.TaskId = None
|
|
7241
|
+
self.RequestId = None
|
|
7242
|
+
|
|
7243
|
+
|
|
7244
|
+
def _deserialize(self, params):
|
|
7245
|
+
self.TaskId = params.get("TaskId")
|
|
7246
|
+
self.RequestId = params.get("RequestId")
|
|
7247
|
+
|
|
7248
|
+
|
|
6911
7249
|
class RenewInstanceRequest(AbstractModel):
|
|
6912
7250
|
"""RenewInstance请求参数结构体
|
|
6913
7251
|
|
|
@@ -7066,9 +7404,9 @@ class ResourceTag(AbstractModel):
|
|
|
7066
7404
|
|
|
7067
7405
|
def __init__(self):
|
|
7068
7406
|
r"""
|
|
7069
|
-
:param TagKey: 标签
|
|
7407
|
+
:param TagKey: 标签Key。
|
|
7070
7408
|
:type TagKey: str
|
|
7071
|
-
:param TagValue: 标签
|
|
7409
|
+
:param TagValue: 标签 Key 对应的 Value。
|
|
7072
7410
|
:type TagValue: str
|
|
7073
7411
|
"""
|
|
7074
7412
|
self.TagKey = None
|
|
@@ -233,6 +233,29 @@ class RedisClient(AbstractClient):
|
|
|
233
233
|
raise TencentCloudSDKException(e.message, e.message)
|
|
234
234
|
|
|
235
235
|
|
|
236
|
+
def CloneInstances(self, request):
|
|
237
|
+
"""本接口(CloneInstances)用于基于当前实例的备份文件克隆一个完整的新实例。
|
|
238
|
+
|
|
239
|
+
:param request: Request instance for CloneInstances.
|
|
240
|
+
:type request: :class:`tencentcloud.redis.v20180412.models.CloneInstancesRequest`
|
|
241
|
+
:rtype: :class:`tencentcloud.redis.v20180412.models.CloneInstancesResponse`
|
|
242
|
+
|
|
243
|
+
"""
|
|
244
|
+
try:
|
|
245
|
+
params = request._serialize()
|
|
246
|
+
headers = request.headers
|
|
247
|
+
body = self.call("CloneInstances", params, headers=headers)
|
|
248
|
+
response = json.loads(body)
|
|
249
|
+
model = models.CloneInstancesResponse()
|
|
250
|
+
model._deserialize(response["Response"])
|
|
251
|
+
return model
|
|
252
|
+
except Exception as e:
|
|
253
|
+
if isinstance(e, TencentCloudSDKException):
|
|
254
|
+
raise
|
|
255
|
+
else:
|
|
256
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
257
|
+
|
|
258
|
+
|
|
236
259
|
def CloseSSL(self, request):
|
|
237
260
|
"""关闭SSL
|
|
238
261
|
|
|
@@ -486,6 +509,29 @@ class RedisClient(AbstractClient):
|
|
|
486
509
|
raise TencentCloudSDKException(e.message, e.message)
|
|
487
510
|
|
|
488
511
|
|
|
512
|
+
def DescribeBandwidthRange(self, request):
|
|
513
|
+
"""本接口(DescribeBandwidthRange)用于查询实例带宽信息。
|
|
514
|
+
|
|
515
|
+
:param request: Request instance for DescribeBandwidthRange.
|
|
516
|
+
:type request: :class:`tencentcloud.redis.v20180412.models.DescribeBandwidthRangeRequest`
|
|
517
|
+
:rtype: :class:`tencentcloud.redis.v20180412.models.DescribeBandwidthRangeResponse`
|
|
518
|
+
|
|
519
|
+
"""
|
|
520
|
+
try:
|
|
521
|
+
params = request._serialize()
|
|
522
|
+
headers = request.headers
|
|
523
|
+
body = self.call("DescribeBandwidthRange", params, headers=headers)
|
|
524
|
+
response = json.loads(body)
|
|
525
|
+
model = models.DescribeBandwidthRangeResponse()
|
|
526
|
+
model._deserialize(response["Response"])
|
|
527
|
+
return model
|
|
528
|
+
except Exception as e:
|
|
529
|
+
if isinstance(e, TencentCloudSDKException):
|
|
530
|
+
raise
|
|
531
|
+
else:
|
|
532
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
533
|
+
|
|
534
|
+
|
|
489
535
|
def DescribeCommonDBInstances(self, request):
|
|
490
536
|
"""查询Redis实例列表信息。该接口已废弃。
|
|
491
537
|
|
|
@@ -993,7 +1039,7 @@ class RedisClient(AbstractClient):
|
|
|
993
1039
|
|
|
994
1040
|
|
|
995
1041
|
def DescribeParamTemplateInfo(self, request):
|
|
996
|
-
"""
|
|
1042
|
+
"""本接口(DescribeParamTemplateInfo)用于查询参数模板详情。
|
|
997
1043
|
|
|
998
1044
|
:param request: Request instance for DescribeParamTemplateInfo.
|
|
999
1045
|
:type request: :class:`tencentcloud.redis.v20180412.models.DescribeParamTemplateInfoRequest`
|
|
@@ -1820,6 +1866,29 @@ class RedisClient(AbstractClient):
|
|
|
1820
1866
|
raise TencentCloudSDKException(e.message, e.message)
|
|
1821
1867
|
|
|
1822
1868
|
|
|
1869
|
+
def RemoveReplicationInstance(self, request):
|
|
1870
|
+
"""移除复制组成员
|
|
1871
|
+
|
|
1872
|
+
:param request: Request instance for RemoveReplicationInstance.
|
|
1873
|
+
:type request: :class:`tencentcloud.redis.v20180412.models.RemoveReplicationInstanceRequest`
|
|
1874
|
+
:rtype: :class:`tencentcloud.redis.v20180412.models.RemoveReplicationInstanceResponse`
|
|
1875
|
+
|
|
1876
|
+
"""
|
|
1877
|
+
try:
|
|
1878
|
+
params = request._serialize()
|
|
1879
|
+
headers = request.headers
|
|
1880
|
+
body = self.call("RemoveReplicationInstance", params, headers=headers)
|
|
1881
|
+
response = json.loads(body)
|
|
1882
|
+
model = models.RemoveReplicationInstanceResponse()
|
|
1883
|
+
model._deserialize(response["Response"])
|
|
1884
|
+
return model
|
|
1885
|
+
except Exception as e:
|
|
1886
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1887
|
+
raise
|
|
1888
|
+
else:
|
|
1889
|
+
raise TencentCloudSDKException(e.message, e.message)
|
|
1890
|
+
|
|
1891
|
+
|
|
1823
1892
|
def RenewInstance(self, request):
|
|
1824
1893
|
"""本接口(RenewInstance)可用于为实例续费。
|
|
1825
1894
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|