tencentcloud-sdk-python-redis 3.1.64__tar.gz → 3.1.72__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.1.64 → tencentcloud_sdk_python_redis-3.1.72}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_redis-3.1.64 → tencentcloud_sdk_python_redis-3.1.72}/setup.py +1 -1
- {tencentcloud_sdk_python_redis-3.1.64 → tencentcloud_sdk_python_redis-3.1.72}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_redis-3.1.64 → tencentcloud_sdk_python_redis-3.1.72}/tencentcloud/redis/v20180412/models.py +225 -160
- {tencentcloud_sdk_python_redis-3.1.64 → tencentcloud_sdk_python_redis-3.1.72}/tencentcloud/redis/v20180412/redis_client.py +23 -0
- {tencentcloud_sdk_python_redis-3.1.64 → tencentcloud_sdk_python_redis-3.1.72}/tencentcloud/redis/v20180412/redis_client_async.py +18 -0
- {tencentcloud_sdk_python_redis-3.1.64 → tencentcloud_sdk_python_redis-3.1.72}/tencentcloud_sdk_python_redis.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_redis-3.1.72/tencentcloud_sdk_python_redis.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_redis-3.1.64/tencentcloud_sdk_python_redis.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_redis-3.1.64 → tencentcloud_sdk_python_redis-3.1.72}/README.rst +0 -0
- {tencentcloud_sdk_python_redis-3.1.64 → tencentcloud_sdk_python_redis-3.1.72}/setup.cfg +0 -0
- {tencentcloud_sdk_python_redis-3.1.64 → tencentcloud_sdk_python_redis-3.1.72}/tencentcloud/redis/__init__.py +0 -0
- {tencentcloud_sdk_python_redis-3.1.64 → tencentcloud_sdk_python_redis-3.1.72}/tencentcloud/redis/v20180412/__init__.py +0 -0
- {tencentcloud_sdk_python_redis-3.1.64 → tencentcloud_sdk_python_redis-3.1.72}/tencentcloud/redis/v20180412/errorcodes.py +0 -0
- {tencentcloud_sdk_python_redis-3.1.64 → tencentcloud_sdk_python_redis-3.1.72}/tencentcloud_sdk_python_redis.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_redis-3.1.64 → tencentcloud_sdk_python_redis-3.1.72}/tencentcloud_sdk_python_redis.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_redis-3.1.64 → tencentcloud_sdk_python_redis-3.1.72}/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.
|
|
3
|
+
Version: 3.1.72
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.72
|
|
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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.72,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Redis SDK for Python',
|
|
@@ -2665,109 +2665,59 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
2665
2665
|
|
|
2666
2666
|
def __init__(self):
|
|
2667
2667
|
r"""
|
|
2668
|
-
:param _TypeId:
|
|
2669
|
-
- 2:Redis 2.8 内存版(标准架构)。
|
|
2670
|
-
- 3:CKV 3.2 内存版(标准架构)。
|
|
2671
|
-
- 4:CKV 3.2 内存版(集群架构)。
|
|
2672
|
-
- 6:Redis 4.0 内存版(标准架构)。
|
|
2673
|
-
- 7:Redis 4.0 内存版(集群架构)。
|
|
2674
|
-
- 8:Redis 5.0 内存版(标准架构)。
|
|
2675
|
-
- 9:Redis 5.0 内存版(集群架构)。
|
|
2676
|
-
- 15:Redis 6.2 内存版(标准架构)。
|
|
2677
|
-
- 16:Redis 6.2 内存版(集群架构)。
|
|
2678
|
-
- 17:Redis 7.0 内存版(标准架构)。
|
|
2679
|
-
- 18:Redis 7.0 内存版(集群架构)。
|
|
2680
|
-
- 200:Memcached 1.6 内存版(集群架构)。
|
|
2681
|
-
**说明**:CKV 版本当前有存量用户使用,暂时保留。
|
|
2668
|
+
: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>200:Memcached 1.6 内存版(集群架构)。<br><strong>说明</strong>:CKV 版本当前有存量用户使用,暂时保留。</li></ul>
|
|
2682
2669
|
:type TypeId: int
|
|
2683
|
-
:param _MemSize:
|
|
2684
|
-
- **TypeId**为标准架构时,**MemSize**是实例总内存容量;
|
|
2685
|
-
- **TypeId**为集群架构时,**MemSize**是单分片内存容量。
|
|
2670
|
+
: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>
|
|
2686
2671
|
:type MemSize: int
|
|
2687
|
-
:param _GoodsNum:
|
|
2672
|
+
:param _GoodsNum: <p>实例数量,单次购买实例数量。具体信息,请通过 <a href="https://cloud.tencent.com/document/api/239/30600">DescribeProductInfo</a> 接口查询全地域的售卖规格。</p>
|
|
2688
2673
|
:type GoodsNum: int
|
|
2689
|
-
:param _Period:
|
|
2690
|
-
- 若 **BillingMode**为**1**,即计费方式为包年包月时,需设置该参数,指定所购买实例的时长。单位:月,取值范围 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。
|
|
2691
|
-
- 若 **BillingMode**为**0**,即计费方式为按量计费时,该参数配置为1。
|
|
2674
|
+
:param _Period: <p>购买实例的时长。</p><ul><li>若 <strong>BillingMode</strong>为<strong>1</strong>,即计费方式为包年包月时,需设置该参数,指定所购买实例的时长。单位:月,取值范围 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。</li><li>若 <strong>BillingMode</strong>为<strong>0</strong>,即计费方式为按量计费时,该参数配置为1。</li></ul>
|
|
2692
2675
|
:type Period: int
|
|
2693
|
-
:param _BillingMode:
|
|
2694
|
-
- 0:按量计费。
|
|
2695
|
-
- 1:包年包月。
|
|
2676
|
+
:param _BillingMode: <p>计费方式。</p><ul><li>0:按量计费。</li><li>1:包年包月。</li></ul>
|
|
2696
2677
|
:type BillingMode: int
|
|
2697
|
-
:param _ZoneId:
|
|
2678
|
+
:param _ZoneId: <p>实例所属的可用区ID,可参考<a href="https://cloud.tencent.com/document/product/239/4106">地域和可用区</a> 。</p>
|
|
2698
2679
|
:type ZoneId: int
|
|
2699
|
-
:param _Password:
|
|
2700
|
-
- 当输入参数**NoAuth**为**true**时,指设置实例为免密码访问,Password可不用配置,否则Password为必填参数。
|
|
2701
|
-
- 当实例类型**TypeId**为Redis 2.8 内存版标准架构、Redis 4.0、5.0、6.2、7.0内存版标准架构或集群架构时,其密码复杂度要求为:8-64个字符,至少包含小写字母、大写字母、数字和字符()`~!@#$%^&*-+=_|{}[]:;<>,.?/ 中的2种,不能以"/"开头。
|
|
2702
|
-
- 当实例类型**TypeId**为CKV 3.2 内存版标准架构或集群架构时,其密码复杂度为:8-30个字符,必须包含字母和数字,且不包含其他字符。
|
|
2680
|
+
:param _Password: <p>访问实例的密码。</p><ul><li>当输入参数<strong>NoAuth</strong>为<strong>true</strong>时,指设置实例为免密码访问,Password可不用配置,否则Password为必填参数。</li><li>当实例类型<strong>TypeId</strong>为Redis 2.8 内存版标准架构、Redis 4.0、5.0、6.2、7.0内存版标准架构或集群架构时,其密码复杂度要求为:8-64个字符,至少包含小写字母、大写字母、数字和字符()`~!@#$%^&*-+=_|{}[]:;<>,.?/ 中的2种,不能以"/"开头。</li><li>当实例类型<strong>TypeId</strong>为CKV 3.2 内存版标准架构或集群架构时,其密码复杂度为:8-30个字符,必须包含字母和数字,且不包含其他字符。</li></ul>
|
|
2703
2681
|
:type Password: str
|
|
2704
|
-
:param _VpcId:
|
|
2682
|
+
:param _VpcId: <p>私有网络ID。如果不配置该参数则默认选择基础网络。请登录 <a href="https://console.cloud.tencent.com/vpc">私有网络</a>控制台查询具体的ID。</p>
|
|
2705
2683
|
:type VpcId: str
|
|
2706
|
-
:param _SubnetId:
|
|
2684
|
+
:param _SubnetId: <p>私有网络VPC的子网。基础网络下, 该参数无需配置。请登录 <a href="https://console.cloud.tencent.com/vpc">私有网络</a>控制台查询子网列表获取具体的 ID。</p>
|
|
2707
2685
|
:type SubnetId: str
|
|
2708
|
-
:param _ProjectId:
|
|
2686
|
+
:param _ProjectId: <p>项目 ID。请登录<a href="https://console.cloud.tencent.com/redis#/">Redis控制台</a>,在右上角的账户信息菜单中,选择<strong>项目管理</strong>查询项目 ID。</p>
|
|
2709
2687
|
:type ProjectId: int
|
|
2710
|
-
:param _AutoRenew:
|
|
2711
|
-
- 0:默认状态(手动续费)。
|
|
2712
|
-
- 1:自动续费。
|
|
2713
|
-
- 2:到期不续费。
|
|
2688
|
+
:param _AutoRenew: <p>自动续费标识。</p><ul><li>0:默认状态(手动续费)。</li><li>1:自动续费。</li><li>2:到期不续费。</li></ul>
|
|
2714
2689
|
:type AutoRenew: int
|
|
2715
|
-
:param _SecurityGroupIdList:
|
|
2716
|
-
- 安全组是一种虚拟防火墙,对云数据库实例的网络访问进行控制。创建实例时,建议绑定相应的安全组。
|
|
2717
|
-
- 请通过 [DescribeInstanceSecurityGroup](https://cloud.tencent.com/document/product/239/34447) 接口获取实例的安全组 ID。
|
|
2690
|
+
:param _SecurityGroupIdList: <p>安全组 ID 数组。</p><ul><li>安全组是一种虚拟防火墙,对云数据库实例的网络访问进行控制。创建实例时,建议绑定相应的安全组。</li><li>请通过 <a href="https://cloud.tencent.com/document/product/239/34447">DescribeInstanceSecurityGroup</a> 接口获取实例的安全组 ID。</li></ul>
|
|
2718
2691
|
:type SecurityGroupIdList: list of str
|
|
2719
|
-
:param _VPort:
|
|
2692
|
+
:param _VPort: <p>用户自定义的网络端口。默认为6379,范围为 [1024,65535]。</p>
|
|
2720
2693
|
:type VPort: int
|
|
2721
|
-
:param _RedisShardNum:
|
|
2722
|
-
- 标准版实例无需配置该参数。
|
|
2723
|
-
- 集群版实例,分片数量范围为:[1、3、5、8、12、16、24、32、40、48、64、80、96、128]。
|
|
2694
|
+
:param _RedisShardNum: <p>实例分片数量。</p><ul><li>标准版实例无需配置该参数。</li><li>集群版实例,分片数量范围为:[1、3、5、8、12、16、24、32、40、48、64、80、96、128]。</li></ul>
|
|
2724
2695
|
:type RedisShardNum: int
|
|
2725
|
-
:param _RedisReplicasNum:
|
|
2726
|
-
- Redis 内存版 4.0、5.0、6.2、7.0 标准架构和集群架构支持副本数量范围为[1,5]。
|
|
2727
|
-
- Redis 2.8标准版、CKV标准版只支持1副本。
|
|
2696
|
+
:param _RedisReplicasNum: <p>实例副本数量。</p><ul><li>Redis 内存版 4.0、5.0、6.2、7.0 标准架构和集群架构支持副本数量范围为[1,5]。</li><li>Redis 2.8标准版、CKV标准版只支持1副本。</li></ul>
|
|
2728
2697
|
:type RedisReplicasNum: int
|
|
2729
|
-
:param _ReplicasReadonly:
|
|
2730
|
-
- Redis 2.8 标准版、CKV标准版不支持副本只读。
|
|
2731
|
-
- 开启副本只读,实例将自动读写分离,写请求路由到主节点,读请求路由到副本节点。
|
|
2732
|
-
- 如需开启副本只读,建议副本数量大于等于2。
|
|
2698
|
+
:param _ReplicasReadonly: <p>标识实例是否需支持副本只读。</p><ul><li>Redis 2.8 标准版、CKV标准版不支持副本只读。</li><li>开启副本只读,实例将自动读写分离,写请求路由到主节点,读请求路由到副本节点。</li><li>如需开启副本只读,建议副本数量大于等于2。</li></ul>
|
|
2733
2699
|
:type ReplicasReadonly: bool
|
|
2734
|
-
:param _InstanceName:
|
|
2700
|
+
:param _InstanceName: <p>实例名称。命名要求:仅支持长度小于60的中文、英文或者数字,短划线"-"、下划线"_"。</p>
|
|
2735
2701
|
:type InstanceName: str
|
|
2736
|
-
:param _NoAuth:
|
|
2737
|
-
- true:免密访问实例。
|
|
2738
|
-
- false:非免密访问实例。默认为非免密方式,仅VPC网络的实例支持免密码访问。
|
|
2702
|
+
:param _NoAuth: <p>配置实例是否支持免密码访问。</p><ul><li>true:免密访问实例。</li><li>false:非免密访问实例。默认为非免密方式,仅VPC网络的实例支持免密码访问。</li></ul>
|
|
2739
2703
|
:type NoAuth: bool
|
|
2740
|
-
:param _NodeSet:
|
|
2741
|
-
目前支持传入节点的类型(主节点或者副本节点),节点的可用区。单可用区部署不需要传递此参数。
|
|
2704
|
+
:param _NodeSet: <p>实例的节点信息,包含节点 ID、节点类型、节点可用区 ID等。具体信息,请参见<a href="https://cloud.tencent.com/document/product/239/20022">RedisNodeInfo </a>。<br>目前支持传入节点的类型(主节点或者副本节点),节点的可用区。未指定该参数时,在支持多可用区部署的地域,系统将默认创建多可用区架构实例。</p>
|
|
2742
2705
|
:type NodeSet: list of RedisNodeInfo
|
|
2743
|
-
:param _ResourceTags:
|
|
2706
|
+
:param _ResourceTags: <p>给实例设定标签。</p>
|
|
2744
2707
|
:type ResourceTags: list of ResourceTag
|
|
2745
|
-
:param _ZoneName:
|
|
2708
|
+
:param _ZoneName: <p>指定实例所属的可用区名称。具体信息,请参见<a href="https://cloud.tencent.com/document/product/239/4106">地域和可用区</a> 。</p>
|
|
2746
2709
|
:type ZoneName: str
|
|
2747
|
-
:param _TemplateId:
|
|
2748
|
-
- 若不配置该参数,则系统会依据所选择的兼容版本及架构,自动适配对应的默认模板。
|
|
2749
|
-
- 请通过[DescribeParamTemplates](https://cloud.tencent.com/document/product/239/58750)接口,查询实例的参数模板列表,获取模板 ID 编号。
|
|
2710
|
+
:param _TemplateId: <p>指定实例相关的参数模板 ID。</p><ul><li>若不配置该参数,则系统会依据所选择的兼容版本及架构,自动适配对应的默认模板。</li><li>请通过<a href="https://cloud.tencent.com/document/product/239/58750">DescribeParamTemplates</a>接口,查询实例的参数模板列表,获取模板 ID 编号。</li></ul>
|
|
2750
2711
|
:type TemplateId: str
|
|
2751
|
-
:param _DryRun:
|
|
2752
|
-
- false :默认值。发送正常请求,通过检查后直接创建实例。
|
|
2753
|
-
- true:发送检查请求,不会创建实例。
|
|
2712
|
+
:param _DryRun: <p>内部参数,标识创建实例是否需要检查。</p><ul><li>false :默认值。发送正常请求,通过检查后直接创建实例。</li><li>true:发送检查请求,不会创建实例。</li></ul>
|
|
2754
2713
|
:type DryRun: bool
|
|
2755
|
-
:param _ProductVersion:
|
|
2756
|
-
- local:传统架构,默认为 local。
|
|
2757
|
-
- cdc:独享集群。
|
|
2758
|
-
- cloud:云原生,当前已暂停售卖。
|
|
2714
|
+
:param _ProductVersion: <p>指实例部署模式。</p><ul><li>local:传统架构,默认为 local。</li><li>cdc:独享集群。</li><li>cloud:云原生,当前已暂停售卖。</li></ul>
|
|
2759
2715
|
:type ProductVersion: str
|
|
2760
|
-
:param _RedisClusterId:
|
|
2761
|
-
|
|
2762
|
-
- 当 **ProductVersion** 设置为 **cdc** 时,该参数必须设置。
|
|
2763
|
-
- 请通过接口[ DescribeRedisClusters](https://cloud.tencent.com/document/product/239/109628) 获取集群 ID。
|
|
2716
|
+
:param _RedisClusterId: <p>独享集群 ID。</p><ul><li>当 <strong>ProductVersion</strong> 设置为 <strong>cdc</strong> 时,该参数必须设置。</li><li>请通过接口<a href="https://cloud.tencent.com/document/product/239/109628"> DescribeRedisClusters</a> 获取集群 ID。</li></ul>
|
|
2764
2717
|
:type RedisClusterId: str
|
|
2765
|
-
:param _AlarmPolicyList:
|
|
2766
|
-
|
|
2767
|
-
- 请登录[腾讯云可观测平台-告警管理-策略管理](https://console.cloud.tencent.com/monitor/alarm/policy)获取告警策略 ID。
|
|
2768
|
-
- 若不配置该参数,则绑定默认告警策略。默认告警策略具体信息,请登录[腾讯云可观测平台-告警管理-策略管理](https://console.cloud.tencent.com/monitor/alarm/policy)查看。
|
|
2718
|
+
:param _AlarmPolicyList: <p>告警策略 ID 数组。</p><ul><li>请登录<a href="https://console.cloud.tencent.com/monitor/alarm/policy">腾讯云可观测平台-告警管理-策略管理</a>获取告警策略 ID。</li><li>若不配置该参数,则绑定默认告警策略。默认告警策略具体信息,请登录<a href="https://console.cloud.tencent.com/monitor/alarm/policy">腾讯云可观测平台-告警管理-策略管理</a>查看。</li></ul>
|
|
2769
2719
|
:type AlarmPolicyList: list of str
|
|
2770
|
-
:param _EncryptPassword:
|
|
2720
|
+
:param _EncryptPassword: <p>是否加密密码</p>
|
|
2771
2721
|
:type EncryptPassword: bool
|
|
2772
2722
|
"""
|
|
2773
2723
|
self._TypeId = None
|
|
@@ -2800,20 +2750,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
2800
2750
|
|
|
2801
2751
|
@property
|
|
2802
2752
|
def TypeId(self):
|
|
2803
|
-
r"""
|
|
2804
|
-
- 2:Redis 2.8 内存版(标准架构)。
|
|
2805
|
-
- 3:CKV 3.2 内存版(标准架构)。
|
|
2806
|
-
- 4:CKV 3.2 内存版(集群架构)。
|
|
2807
|
-
- 6:Redis 4.0 内存版(标准架构)。
|
|
2808
|
-
- 7:Redis 4.0 内存版(集群架构)。
|
|
2809
|
-
- 8:Redis 5.0 内存版(标准架构)。
|
|
2810
|
-
- 9:Redis 5.0 内存版(集群架构)。
|
|
2811
|
-
- 15:Redis 6.2 内存版(标准架构)。
|
|
2812
|
-
- 16:Redis 6.2 内存版(集群架构)。
|
|
2813
|
-
- 17:Redis 7.0 内存版(标准架构)。
|
|
2814
|
-
- 18:Redis 7.0 内存版(集群架构)。
|
|
2815
|
-
- 200:Memcached 1.6 内存版(集群架构)。
|
|
2816
|
-
**说明**:CKV 版本当前有存量用户使用,暂时保留。
|
|
2753
|
+
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>200:Memcached 1.6 内存版(集群架构)。<br><strong>说明</strong>:CKV 版本当前有存量用户使用,暂时保留。</li></ul>
|
|
2817
2754
|
:rtype: int
|
|
2818
2755
|
"""
|
|
2819
2756
|
return self._TypeId
|
|
@@ -2824,9 +2761,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
2824
2761
|
|
|
2825
2762
|
@property
|
|
2826
2763
|
def MemSize(self):
|
|
2827
|
-
r"""
|
|
2828
|
-
- **TypeId**为标准架构时,**MemSize**是实例总内存容量;
|
|
2829
|
-
- **TypeId**为集群架构时,**MemSize**是单分片内存容量。
|
|
2764
|
+
r"""<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>
|
|
2830
2765
|
:rtype: int
|
|
2831
2766
|
"""
|
|
2832
2767
|
return self._MemSize
|
|
@@ -2837,7 +2772,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
2837
2772
|
|
|
2838
2773
|
@property
|
|
2839
2774
|
def GoodsNum(self):
|
|
2840
|
-
r"""
|
|
2775
|
+
r"""<p>实例数量,单次购买实例数量。具体信息,请通过 <a href="https://cloud.tencent.com/document/api/239/30600">DescribeProductInfo</a> 接口查询全地域的售卖规格。</p>
|
|
2841
2776
|
:rtype: int
|
|
2842
2777
|
"""
|
|
2843
2778
|
return self._GoodsNum
|
|
@@ -2848,9 +2783,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
2848
2783
|
|
|
2849
2784
|
@property
|
|
2850
2785
|
def Period(self):
|
|
2851
|
-
r"""
|
|
2852
|
-
- 若 **BillingMode**为**1**,即计费方式为包年包月时,需设置该参数,指定所购买实例的时长。单位:月,取值范围 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。
|
|
2853
|
-
- 若 **BillingMode**为**0**,即计费方式为按量计费时,该参数配置为1。
|
|
2786
|
+
r"""<p>购买实例的时长。</p><ul><li>若 <strong>BillingMode</strong>为<strong>1</strong>,即计费方式为包年包月时,需设置该参数,指定所购买实例的时长。单位:月,取值范围 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。</li><li>若 <strong>BillingMode</strong>为<strong>0</strong>,即计费方式为按量计费时,该参数配置为1。</li></ul>
|
|
2854
2787
|
:rtype: int
|
|
2855
2788
|
"""
|
|
2856
2789
|
return self._Period
|
|
@@ -2861,9 +2794,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
2861
2794
|
|
|
2862
2795
|
@property
|
|
2863
2796
|
def BillingMode(self):
|
|
2864
|
-
r"""
|
|
2865
|
-
- 0:按量计费。
|
|
2866
|
-
- 1:包年包月。
|
|
2797
|
+
r"""<p>计费方式。</p><ul><li>0:按量计费。</li><li>1:包年包月。</li></ul>
|
|
2867
2798
|
:rtype: int
|
|
2868
2799
|
"""
|
|
2869
2800
|
return self._BillingMode
|
|
@@ -2874,7 +2805,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
2874
2805
|
|
|
2875
2806
|
@property
|
|
2876
2807
|
def ZoneId(self):
|
|
2877
|
-
r"""
|
|
2808
|
+
r"""<p>实例所属的可用区ID,可参考<a href="https://cloud.tencent.com/document/product/239/4106">地域和可用区</a> 。</p>
|
|
2878
2809
|
:rtype: int
|
|
2879
2810
|
"""
|
|
2880
2811
|
return self._ZoneId
|
|
@@ -2885,10 +2816,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
2885
2816
|
|
|
2886
2817
|
@property
|
|
2887
2818
|
def Password(self):
|
|
2888
|
-
r"""
|
|
2889
|
-
- 当输入参数**NoAuth**为**true**时,指设置实例为免密码访问,Password可不用配置,否则Password为必填参数。
|
|
2890
|
-
- 当实例类型**TypeId**为Redis 2.8 内存版标准架构、Redis 4.0、5.0、6.2、7.0内存版标准架构或集群架构时,其密码复杂度要求为:8-64个字符,至少包含小写字母、大写字母、数字和字符()`~!@#$%^&*-+=_|{}[]:;<>,.?/ 中的2种,不能以"/"开头。
|
|
2891
|
-
- 当实例类型**TypeId**为CKV 3.2 内存版标准架构或集群架构时,其密码复杂度为:8-30个字符,必须包含字母和数字,且不包含其他字符。
|
|
2819
|
+
r"""<p>访问实例的密码。</p><ul><li>当输入参数<strong>NoAuth</strong>为<strong>true</strong>时,指设置实例为免密码访问,Password可不用配置,否则Password为必填参数。</li><li>当实例类型<strong>TypeId</strong>为Redis 2.8 内存版标准架构、Redis 4.0、5.0、6.2、7.0内存版标准架构或集群架构时,其密码复杂度要求为:8-64个字符,至少包含小写字母、大写字母、数字和字符()`~!@#$%^&*-+=_|{}[]:;<>,.?/ 中的2种,不能以"/"开头。</li><li>当实例类型<strong>TypeId</strong>为CKV 3.2 内存版标准架构或集群架构时,其密码复杂度为:8-30个字符,必须包含字母和数字,且不包含其他字符。</li></ul>
|
|
2892
2820
|
:rtype: str
|
|
2893
2821
|
"""
|
|
2894
2822
|
return self._Password
|
|
@@ -2899,7 +2827,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
2899
2827
|
|
|
2900
2828
|
@property
|
|
2901
2829
|
def VpcId(self):
|
|
2902
|
-
r"""
|
|
2830
|
+
r"""<p>私有网络ID。如果不配置该参数则默认选择基础网络。请登录 <a href="https://console.cloud.tencent.com/vpc">私有网络</a>控制台查询具体的ID。</p>
|
|
2903
2831
|
:rtype: str
|
|
2904
2832
|
"""
|
|
2905
2833
|
return self._VpcId
|
|
@@ -2910,7 +2838,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
2910
2838
|
|
|
2911
2839
|
@property
|
|
2912
2840
|
def SubnetId(self):
|
|
2913
|
-
r"""
|
|
2841
|
+
r"""<p>私有网络VPC的子网。基础网络下, 该参数无需配置。请登录 <a href="https://console.cloud.tencent.com/vpc">私有网络</a>控制台查询子网列表获取具体的 ID。</p>
|
|
2914
2842
|
:rtype: str
|
|
2915
2843
|
"""
|
|
2916
2844
|
return self._SubnetId
|
|
@@ -2921,7 +2849,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
2921
2849
|
|
|
2922
2850
|
@property
|
|
2923
2851
|
def ProjectId(self):
|
|
2924
|
-
r"""
|
|
2852
|
+
r"""<p>项目 ID。请登录<a href="https://console.cloud.tencent.com/redis#/">Redis控制台</a>,在右上角的账户信息菜单中,选择<strong>项目管理</strong>查询项目 ID。</p>
|
|
2925
2853
|
:rtype: int
|
|
2926
2854
|
"""
|
|
2927
2855
|
return self._ProjectId
|
|
@@ -2932,10 +2860,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
2932
2860
|
|
|
2933
2861
|
@property
|
|
2934
2862
|
def AutoRenew(self):
|
|
2935
|
-
r"""
|
|
2936
|
-
- 0:默认状态(手动续费)。
|
|
2937
|
-
- 1:自动续费。
|
|
2938
|
-
- 2:到期不续费。
|
|
2863
|
+
r"""<p>自动续费标识。</p><ul><li>0:默认状态(手动续费)。</li><li>1:自动续费。</li><li>2:到期不续费。</li></ul>
|
|
2939
2864
|
:rtype: int
|
|
2940
2865
|
"""
|
|
2941
2866
|
return self._AutoRenew
|
|
@@ -2946,9 +2871,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
2946
2871
|
|
|
2947
2872
|
@property
|
|
2948
2873
|
def SecurityGroupIdList(self):
|
|
2949
|
-
r"""
|
|
2950
|
-
- 安全组是一种虚拟防火墙,对云数据库实例的网络访问进行控制。创建实例时,建议绑定相应的安全组。
|
|
2951
|
-
- 请通过 [DescribeInstanceSecurityGroup](https://cloud.tencent.com/document/product/239/34447) 接口获取实例的安全组 ID。
|
|
2874
|
+
r"""<p>安全组 ID 数组。</p><ul><li>安全组是一种虚拟防火墙,对云数据库实例的网络访问进行控制。创建实例时,建议绑定相应的安全组。</li><li>请通过 <a href="https://cloud.tencent.com/document/product/239/34447">DescribeInstanceSecurityGroup</a> 接口获取实例的安全组 ID。</li></ul>
|
|
2952
2875
|
:rtype: list of str
|
|
2953
2876
|
"""
|
|
2954
2877
|
return self._SecurityGroupIdList
|
|
@@ -2959,7 +2882,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
2959
2882
|
|
|
2960
2883
|
@property
|
|
2961
2884
|
def VPort(self):
|
|
2962
|
-
r"""
|
|
2885
|
+
r"""<p>用户自定义的网络端口。默认为6379,范围为 [1024,65535]。</p>
|
|
2963
2886
|
:rtype: int
|
|
2964
2887
|
"""
|
|
2965
2888
|
return self._VPort
|
|
@@ -2970,9 +2893,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
2970
2893
|
|
|
2971
2894
|
@property
|
|
2972
2895
|
def RedisShardNum(self):
|
|
2973
|
-
r"""
|
|
2974
|
-
- 标准版实例无需配置该参数。
|
|
2975
|
-
- 集群版实例,分片数量范围为:[1、3、5、8、12、16、24、32、40、48、64、80、96、128]。
|
|
2896
|
+
r"""<p>实例分片数量。</p><ul><li>标准版实例无需配置该参数。</li><li>集群版实例,分片数量范围为:[1、3、5、8、12、16、24、32、40、48、64、80、96、128]。</li></ul>
|
|
2976
2897
|
:rtype: int
|
|
2977
2898
|
"""
|
|
2978
2899
|
return self._RedisShardNum
|
|
@@ -2983,9 +2904,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
2983
2904
|
|
|
2984
2905
|
@property
|
|
2985
2906
|
def RedisReplicasNum(self):
|
|
2986
|
-
r"""
|
|
2987
|
-
- Redis 内存版 4.0、5.0、6.2、7.0 标准架构和集群架构支持副本数量范围为[1,5]。
|
|
2988
|
-
- Redis 2.8标准版、CKV标准版只支持1副本。
|
|
2907
|
+
r"""<p>实例副本数量。</p><ul><li>Redis 内存版 4.0、5.0、6.2、7.0 标准架构和集群架构支持副本数量范围为[1,5]。</li><li>Redis 2.8标准版、CKV标准版只支持1副本。</li></ul>
|
|
2989
2908
|
:rtype: int
|
|
2990
2909
|
"""
|
|
2991
2910
|
return self._RedisReplicasNum
|
|
@@ -2996,10 +2915,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
2996
2915
|
|
|
2997
2916
|
@property
|
|
2998
2917
|
def ReplicasReadonly(self):
|
|
2999
|
-
r"""
|
|
3000
|
-
- Redis 2.8 标准版、CKV标准版不支持副本只读。
|
|
3001
|
-
- 开启副本只读,实例将自动读写分离,写请求路由到主节点,读请求路由到副本节点。
|
|
3002
|
-
- 如需开启副本只读,建议副本数量大于等于2。
|
|
2918
|
+
r"""<p>标识实例是否需支持副本只读。</p><ul><li>Redis 2.8 标准版、CKV标准版不支持副本只读。</li><li>开启副本只读,实例将自动读写分离,写请求路由到主节点,读请求路由到副本节点。</li><li>如需开启副本只读,建议副本数量大于等于2。</li></ul>
|
|
3003
2919
|
:rtype: bool
|
|
3004
2920
|
"""
|
|
3005
2921
|
return self._ReplicasReadonly
|
|
@@ -3010,7 +2926,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
3010
2926
|
|
|
3011
2927
|
@property
|
|
3012
2928
|
def InstanceName(self):
|
|
3013
|
-
r"""
|
|
2929
|
+
r"""<p>实例名称。命名要求:仅支持长度小于60的中文、英文或者数字,短划线"-"、下划线"_"。</p>
|
|
3014
2930
|
:rtype: str
|
|
3015
2931
|
"""
|
|
3016
2932
|
return self._InstanceName
|
|
@@ -3021,9 +2937,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
3021
2937
|
|
|
3022
2938
|
@property
|
|
3023
2939
|
def NoAuth(self):
|
|
3024
|
-
r"""
|
|
3025
|
-
- true:免密访问实例。
|
|
3026
|
-
- false:非免密访问实例。默认为非免密方式,仅VPC网络的实例支持免密码访问。
|
|
2940
|
+
r"""<p>配置实例是否支持免密码访问。</p><ul><li>true:免密访问实例。</li><li>false:非免密访问实例。默认为非免密方式,仅VPC网络的实例支持免密码访问。</li></ul>
|
|
3027
2941
|
:rtype: bool
|
|
3028
2942
|
"""
|
|
3029
2943
|
return self._NoAuth
|
|
@@ -3034,8 +2948,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
3034
2948
|
|
|
3035
2949
|
@property
|
|
3036
2950
|
def NodeSet(self):
|
|
3037
|
-
r"""
|
|
3038
|
-
目前支持传入节点的类型(主节点或者副本节点),节点的可用区。单可用区部署不需要传递此参数。
|
|
2951
|
+
r"""<p>实例的节点信息,包含节点 ID、节点类型、节点可用区 ID等。具体信息,请参见<a href="https://cloud.tencent.com/document/product/239/20022">RedisNodeInfo </a>。<br>目前支持传入节点的类型(主节点或者副本节点),节点的可用区。未指定该参数时,在支持多可用区部署的地域,系统将默认创建多可用区架构实例。</p>
|
|
3039
2952
|
:rtype: list of RedisNodeInfo
|
|
3040
2953
|
"""
|
|
3041
2954
|
return self._NodeSet
|
|
@@ -3046,7 +2959,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
3046
2959
|
|
|
3047
2960
|
@property
|
|
3048
2961
|
def ResourceTags(self):
|
|
3049
|
-
r"""
|
|
2962
|
+
r"""<p>给实例设定标签。</p>
|
|
3050
2963
|
:rtype: list of ResourceTag
|
|
3051
2964
|
"""
|
|
3052
2965
|
return self._ResourceTags
|
|
@@ -3057,7 +2970,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
3057
2970
|
|
|
3058
2971
|
@property
|
|
3059
2972
|
def ZoneName(self):
|
|
3060
|
-
r"""
|
|
2973
|
+
r"""<p>指定实例所属的可用区名称。具体信息,请参见<a href="https://cloud.tencent.com/document/product/239/4106">地域和可用区</a> 。</p>
|
|
3061
2974
|
:rtype: str
|
|
3062
2975
|
"""
|
|
3063
2976
|
return self._ZoneName
|
|
@@ -3068,9 +2981,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
3068
2981
|
|
|
3069
2982
|
@property
|
|
3070
2983
|
def TemplateId(self):
|
|
3071
|
-
r"""
|
|
3072
|
-
- 若不配置该参数,则系统会依据所选择的兼容版本及架构,自动适配对应的默认模板。
|
|
3073
|
-
- 请通过[DescribeParamTemplates](https://cloud.tencent.com/document/product/239/58750)接口,查询实例的参数模板列表,获取模板 ID 编号。
|
|
2984
|
+
r"""<p>指定实例相关的参数模板 ID。</p><ul><li>若不配置该参数,则系统会依据所选择的兼容版本及架构,自动适配对应的默认模板。</li><li>请通过<a href="https://cloud.tencent.com/document/product/239/58750">DescribeParamTemplates</a>接口,查询实例的参数模板列表,获取模板 ID 编号。</li></ul>
|
|
3074
2985
|
:rtype: str
|
|
3075
2986
|
"""
|
|
3076
2987
|
return self._TemplateId
|
|
@@ -3081,9 +2992,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
3081
2992
|
|
|
3082
2993
|
@property
|
|
3083
2994
|
def DryRun(self):
|
|
3084
|
-
r"""
|
|
3085
|
-
- false :默认值。发送正常请求,通过检查后直接创建实例。
|
|
3086
|
-
- true:发送检查请求,不会创建实例。
|
|
2995
|
+
r"""<p>内部参数,标识创建实例是否需要检查。</p><ul><li>false :默认值。发送正常请求,通过检查后直接创建实例。</li><li>true:发送检查请求,不会创建实例。</li></ul>
|
|
3087
2996
|
:rtype: bool
|
|
3088
2997
|
"""
|
|
3089
2998
|
return self._DryRun
|
|
@@ -3094,10 +3003,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
3094
3003
|
|
|
3095
3004
|
@property
|
|
3096
3005
|
def ProductVersion(self):
|
|
3097
|
-
r"""
|
|
3098
|
-
- local:传统架构,默认为 local。
|
|
3099
|
-
- cdc:独享集群。
|
|
3100
|
-
- cloud:云原生,当前已暂停售卖。
|
|
3006
|
+
r"""<p>指实例部署模式。</p><ul><li>local:传统架构,默认为 local。</li><li>cdc:独享集群。</li><li>cloud:云原生,当前已暂停售卖。</li></ul>
|
|
3101
3007
|
:rtype: str
|
|
3102
3008
|
"""
|
|
3103
3009
|
return self._ProductVersion
|
|
@@ -3108,10 +3014,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
3108
3014
|
|
|
3109
3015
|
@property
|
|
3110
3016
|
def RedisClusterId(self):
|
|
3111
|
-
r"""
|
|
3112
|
-
|
|
3113
|
-
- 当 **ProductVersion** 设置为 **cdc** 时,该参数必须设置。
|
|
3114
|
-
- 请通过接口[ DescribeRedisClusters](https://cloud.tencent.com/document/product/239/109628) 获取集群 ID。
|
|
3017
|
+
r"""<p>独享集群 ID。</p><ul><li>当 <strong>ProductVersion</strong> 设置为 <strong>cdc</strong> 时,该参数必须设置。</li><li>请通过接口<a href="https://cloud.tencent.com/document/product/239/109628"> DescribeRedisClusters</a> 获取集群 ID。</li></ul>
|
|
3115
3018
|
:rtype: str
|
|
3116
3019
|
"""
|
|
3117
3020
|
return self._RedisClusterId
|
|
@@ -3122,10 +3025,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
3122
3025
|
|
|
3123
3026
|
@property
|
|
3124
3027
|
def AlarmPolicyList(self):
|
|
3125
|
-
r"""
|
|
3126
|
-
|
|
3127
|
-
- 请登录[腾讯云可观测平台-告警管理-策略管理](https://console.cloud.tencent.com/monitor/alarm/policy)获取告警策略 ID。
|
|
3128
|
-
- 若不配置该参数,则绑定默认告警策略。默认告警策略具体信息,请登录[腾讯云可观测平台-告警管理-策略管理](https://console.cloud.tencent.com/monitor/alarm/policy)查看。
|
|
3028
|
+
r"""<p>告警策略 ID 数组。</p><ul><li>请登录<a href="https://console.cloud.tencent.com/monitor/alarm/policy">腾讯云可观测平台-告警管理-策略管理</a>获取告警策略 ID。</li><li>若不配置该参数,则绑定默认告警策略。默认告警策略具体信息,请登录<a href="https://console.cloud.tencent.com/monitor/alarm/policy">腾讯云可观测平台-告警管理-策略管理</a>查看。</li></ul>
|
|
3129
3029
|
:rtype: list of str
|
|
3130
3030
|
"""
|
|
3131
3031
|
return self._AlarmPolicyList
|
|
@@ -3136,7 +3036,7 @@ class CreateInstancesRequest(AbstractModel):
|
|
|
3136
3036
|
|
|
3137
3037
|
@property
|
|
3138
3038
|
def EncryptPassword(self):
|
|
3139
|
-
r"""
|
|
3039
|
+
r"""<p>是否加密密码</p>
|
|
3140
3040
|
:rtype: bool
|
|
3141
3041
|
"""
|
|
3142
3042
|
return self._EncryptPassword
|
|
@@ -3201,11 +3101,11 @@ class CreateInstancesResponse(AbstractModel):
|
|
|
3201
3101
|
|
|
3202
3102
|
def __init__(self):
|
|
3203
3103
|
r"""
|
|
3204
|
-
:param _DealId:
|
|
3104
|
+
:param _DealId: <p>交易的ID。</p>
|
|
3205
3105
|
:type DealId: str
|
|
3206
|
-
:param _InstanceIds:
|
|
3106
|
+
:param _InstanceIds: <p>实例ID。</p>
|
|
3207
3107
|
:type InstanceIds: list of str
|
|
3208
|
-
:param _DealName:
|
|
3108
|
+
:param _DealName: <p>订单号。</p>
|
|
3209
3109
|
:type DealName: str
|
|
3210
3110
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3211
3111
|
:type RequestId: str
|
|
@@ -3219,7 +3119,7 @@ class CreateInstancesResponse(AbstractModel):
|
|
|
3219
3119
|
def DealId(self):
|
|
3220
3120
|
warnings.warn("parameter `DealId` is deprecated", DeprecationWarning)
|
|
3221
3121
|
|
|
3222
|
-
r"""
|
|
3122
|
+
r"""<p>交易的ID。</p>
|
|
3223
3123
|
:rtype: str
|
|
3224
3124
|
"""
|
|
3225
3125
|
return self._DealId
|
|
@@ -3232,7 +3132,7 @@ class CreateInstancesResponse(AbstractModel):
|
|
|
3232
3132
|
|
|
3233
3133
|
@property
|
|
3234
3134
|
def InstanceIds(self):
|
|
3235
|
-
r"""
|
|
3135
|
+
r"""<p>实例ID。</p>
|
|
3236
3136
|
:rtype: list of str
|
|
3237
3137
|
"""
|
|
3238
3138
|
return self._InstanceIds
|
|
@@ -3243,7 +3143,7 @@ class CreateInstancesResponse(AbstractModel):
|
|
|
3243
3143
|
|
|
3244
3144
|
@property
|
|
3245
3145
|
def DealName(self):
|
|
3246
|
-
r"""
|
|
3146
|
+
r"""<p>订单号。</p>
|
|
3247
3147
|
:rtype: str
|
|
3248
3148
|
"""
|
|
3249
3149
|
return self._DealName
|
|
@@ -13014,6 +12914,57 @@ class ExportFile(AbstractModel):
|
|
|
13014
12914
|
|
|
13015
12915
|
|
|
13016
12916
|
|
|
12917
|
+
class FailedInstance(AbstractModel):
|
|
12918
|
+
r"""转换失败的实例信息
|
|
12919
|
+
|
|
12920
|
+
"""
|
|
12921
|
+
|
|
12922
|
+
def __init__(self):
|
|
12923
|
+
r"""
|
|
12924
|
+
:param _InstanceId: <p>失败实例ID</p>
|
|
12925
|
+
:type InstanceId: str
|
|
12926
|
+
:param _Message: <p>失败信息</p>
|
|
12927
|
+
:type Message: str
|
|
12928
|
+
"""
|
|
12929
|
+
self._InstanceId = None
|
|
12930
|
+
self._Message = None
|
|
12931
|
+
|
|
12932
|
+
@property
|
|
12933
|
+
def InstanceId(self):
|
|
12934
|
+
r"""<p>失败实例ID</p>
|
|
12935
|
+
:rtype: str
|
|
12936
|
+
"""
|
|
12937
|
+
return self._InstanceId
|
|
12938
|
+
|
|
12939
|
+
@InstanceId.setter
|
|
12940
|
+
def InstanceId(self, InstanceId):
|
|
12941
|
+
self._InstanceId = InstanceId
|
|
12942
|
+
|
|
12943
|
+
@property
|
|
12944
|
+
def Message(self):
|
|
12945
|
+
r"""<p>失败信息</p>
|
|
12946
|
+
:rtype: str
|
|
12947
|
+
"""
|
|
12948
|
+
return self._Message
|
|
12949
|
+
|
|
12950
|
+
@Message.setter
|
|
12951
|
+
def Message(self, Message):
|
|
12952
|
+
self._Message = Message
|
|
12953
|
+
|
|
12954
|
+
|
|
12955
|
+
def _deserialize(self, params):
|
|
12956
|
+
self._InstanceId = params.get("InstanceId")
|
|
12957
|
+
self._Message = params.get("Message")
|
|
12958
|
+
memeber_set = set(params.keys())
|
|
12959
|
+
for name, value in vars(self).items():
|
|
12960
|
+
property_name = name[1:]
|
|
12961
|
+
if property_name in memeber_set:
|
|
12962
|
+
memeber_set.remove(property_name)
|
|
12963
|
+
if len(memeber_set) > 0:
|
|
12964
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12965
|
+
|
|
12966
|
+
|
|
12967
|
+
|
|
13017
12968
|
class Filter(AbstractModel):
|
|
13018
12969
|
r"""业务侧实例过滤参数
|
|
13019
12970
|
|
|
@@ -19167,6 +19118,120 @@ class ModifyInstanceBackupModeResponse(AbstractModel):
|
|
|
19167
19118
|
self._RequestId = params.get("RequestId")
|
|
19168
19119
|
|
|
19169
19120
|
|
|
19121
|
+
class ModifyInstanceChargeTypeRequest(AbstractModel):
|
|
19122
|
+
r"""ModifyInstanceChargeType请求参数结构体
|
|
19123
|
+
|
|
19124
|
+
"""
|
|
19125
|
+
|
|
19126
|
+
def __init__(self):
|
|
19127
|
+
r"""
|
|
19128
|
+
:param _InstanceIds: <p>实例ID数组</p><p>入参限制:批量操作数组长度不超过20</p>
|
|
19129
|
+
:type InstanceIds: list of str
|
|
19130
|
+
:param _InstanceChargeType: <p>修改计费模式的操作类型</p><p>枚举值:</p><ul><li>PREPAID: 按量计费转包年包月</li><li>POSTPAID: 包年包月转按量计费</li></ul>
|
|
19131
|
+
:type InstanceChargeType: str
|
|
19132
|
+
:param _Period: <p>购买时长,仅当InstanceChargeType=PREPAID时需要传</p><p>取值范围:[1, 36]</p><p>单位:月</p>
|
|
19133
|
+
:type Period: int
|
|
19134
|
+
"""
|
|
19135
|
+
self._InstanceIds = None
|
|
19136
|
+
self._InstanceChargeType = None
|
|
19137
|
+
self._Period = None
|
|
19138
|
+
|
|
19139
|
+
@property
|
|
19140
|
+
def InstanceIds(self):
|
|
19141
|
+
r"""<p>实例ID数组</p><p>入参限制:批量操作数组长度不超过20</p>
|
|
19142
|
+
:rtype: list of str
|
|
19143
|
+
"""
|
|
19144
|
+
return self._InstanceIds
|
|
19145
|
+
|
|
19146
|
+
@InstanceIds.setter
|
|
19147
|
+
def InstanceIds(self, InstanceIds):
|
|
19148
|
+
self._InstanceIds = InstanceIds
|
|
19149
|
+
|
|
19150
|
+
@property
|
|
19151
|
+
def InstanceChargeType(self):
|
|
19152
|
+
r"""<p>修改计费模式的操作类型</p><p>枚举值:</p><ul><li>PREPAID: 按量计费转包年包月</li><li>POSTPAID: 包年包月转按量计费</li></ul>
|
|
19153
|
+
:rtype: str
|
|
19154
|
+
"""
|
|
19155
|
+
return self._InstanceChargeType
|
|
19156
|
+
|
|
19157
|
+
@InstanceChargeType.setter
|
|
19158
|
+
def InstanceChargeType(self, InstanceChargeType):
|
|
19159
|
+
self._InstanceChargeType = InstanceChargeType
|
|
19160
|
+
|
|
19161
|
+
@property
|
|
19162
|
+
def Period(self):
|
|
19163
|
+
r"""<p>购买时长,仅当InstanceChargeType=PREPAID时需要传</p><p>取值范围:[1, 36]</p><p>单位:月</p>
|
|
19164
|
+
:rtype: int
|
|
19165
|
+
"""
|
|
19166
|
+
return self._Period
|
|
19167
|
+
|
|
19168
|
+
@Period.setter
|
|
19169
|
+
def Period(self, Period):
|
|
19170
|
+
self._Period = Period
|
|
19171
|
+
|
|
19172
|
+
|
|
19173
|
+
def _deserialize(self, params):
|
|
19174
|
+
self._InstanceIds = params.get("InstanceIds")
|
|
19175
|
+
self._InstanceChargeType = params.get("InstanceChargeType")
|
|
19176
|
+
self._Period = params.get("Period")
|
|
19177
|
+
memeber_set = set(params.keys())
|
|
19178
|
+
for name, value in vars(self).items():
|
|
19179
|
+
property_name = name[1:]
|
|
19180
|
+
if property_name in memeber_set:
|
|
19181
|
+
memeber_set.remove(property_name)
|
|
19182
|
+
if len(memeber_set) > 0:
|
|
19183
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
19184
|
+
|
|
19185
|
+
|
|
19186
|
+
|
|
19187
|
+
class ModifyInstanceChargeTypeResponse(AbstractModel):
|
|
19188
|
+
r"""ModifyInstanceChargeType返回参数结构体
|
|
19189
|
+
|
|
19190
|
+
"""
|
|
19191
|
+
|
|
19192
|
+
def __init__(self):
|
|
19193
|
+
r"""
|
|
19194
|
+
:param _FailedInstanceIds: <p>修改失败的实例信息汇总</p>
|
|
19195
|
+
:type FailedInstanceIds: list of FailedInstance
|
|
19196
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
19197
|
+
:type RequestId: str
|
|
19198
|
+
"""
|
|
19199
|
+
self._FailedInstanceIds = None
|
|
19200
|
+
self._RequestId = None
|
|
19201
|
+
|
|
19202
|
+
@property
|
|
19203
|
+
def FailedInstanceIds(self):
|
|
19204
|
+
r"""<p>修改失败的实例信息汇总</p>
|
|
19205
|
+
:rtype: list of FailedInstance
|
|
19206
|
+
"""
|
|
19207
|
+
return self._FailedInstanceIds
|
|
19208
|
+
|
|
19209
|
+
@FailedInstanceIds.setter
|
|
19210
|
+
def FailedInstanceIds(self, FailedInstanceIds):
|
|
19211
|
+
self._FailedInstanceIds = FailedInstanceIds
|
|
19212
|
+
|
|
19213
|
+
@property
|
|
19214
|
+
def RequestId(self):
|
|
19215
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
19216
|
+
:rtype: str
|
|
19217
|
+
"""
|
|
19218
|
+
return self._RequestId
|
|
19219
|
+
|
|
19220
|
+
@RequestId.setter
|
|
19221
|
+
def RequestId(self, RequestId):
|
|
19222
|
+
self._RequestId = RequestId
|
|
19223
|
+
|
|
19224
|
+
|
|
19225
|
+
def _deserialize(self, params):
|
|
19226
|
+
if params.get("FailedInstanceIds") is not None:
|
|
19227
|
+
self._FailedInstanceIds = []
|
|
19228
|
+
for item in params.get("FailedInstanceIds"):
|
|
19229
|
+
obj = FailedInstance()
|
|
19230
|
+
obj._deserialize(item)
|
|
19231
|
+
self._FailedInstanceIds.append(obj)
|
|
19232
|
+
self._RequestId = params.get("RequestId")
|
|
19233
|
+
|
|
19234
|
+
|
|
19170
19235
|
class ModifyInstanceEventRequest(AbstractModel):
|
|
19171
19236
|
r"""ModifyInstanceEvent请求参数结构体
|
|
19172
19237
|
|
|
@@ -2121,6 +2121,29 @@ class RedisClient(AbstractClient):
|
|
|
2121
2121
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2122
2122
|
|
|
2123
2123
|
|
|
2124
|
+
def ModifyInstanceChargeType(self, request):
|
|
2125
|
+
r"""本接口用于变更实例的计费类型
|
|
2126
|
+
|
|
2127
|
+
:param request: Request instance for ModifyInstanceChargeType.
|
|
2128
|
+
:type request: :class:`tencentcloud.redis.v20180412.models.ModifyInstanceChargeTypeRequest`
|
|
2129
|
+
:rtype: :class:`tencentcloud.redis.v20180412.models.ModifyInstanceChargeTypeResponse`
|
|
2130
|
+
|
|
2131
|
+
"""
|
|
2132
|
+
try:
|
|
2133
|
+
params = request._serialize()
|
|
2134
|
+
headers = request.headers
|
|
2135
|
+
body = self.call("ModifyInstanceChargeType", params, headers=headers)
|
|
2136
|
+
response = json.loads(body)
|
|
2137
|
+
model = models.ModifyInstanceChargeTypeResponse()
|
|
2138
|
+
model._deserialize(response["Response"])
|
|
2139
|
+
return model
|
|
2140
|
+
except Exception as e:
|
|
2141
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2142
|
+
raise
|
|
2143
|
+
else:
|
|
2144
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2145
|
+
|
|
2146
|
+
|
|
2124
2147
|
def ModifyInstanceEvent(self, request):
|
|
2125
2148
|
r"""本接口(ModifyInstanceEvent)用于修改实例的运维事件的执行计划。
|
|
2126
2149
|
|
|
@@ -1665,6 +1665,24 @@ class RedisClient(AbstractClient):
|
|
|
1665
1665
|
|
|
1666
1666
|
return await self.call_and_deserialize(**kwargs)
|
|
1667
1667
|
|
|
1668
|
+
async def ModifyInstanceChargeType(
|
|
1669
|
+
self,
|
|
1670
|
+
request: models.ModifyInstanceChargeTypeRequest,
|
|
1671
|
+
opts: Dict = None,
|
|
1672
|
+
) -> models.ModifyInstanceChargeTypeResponse:
|
|
1673
|
+
"""
|
|
1674
|
+
本接口用于变更实例的计费类型
|
|
1675
|
+
"""
|
|
1676
|
+
|
|
1677
|
+
kwargs = {}
|
|
1678
|
+
kwargs["action"] = "ModifyInstanceChargeType"
|
|
1679
|
+
kwargs["params"] = request._serialize()
|
|
1680
|
+
kwargs["resp_cls"] = models.ModifyInstanceChargeTypeResponse
|
|
1681
|
+
kwargs["headers"] = request.headers
|
|
1682
|
+
kwargs["opts"] = opts or {}
|
|
1683
|
+
|
|
1684
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1685
|
+
|
|
1668
1686
|
async def ModifyInstanceEvent(
|
|
1669
1687
|
self,
|
|
1670
1688
|
request: models.ModifyInstanceEventRequest,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-redis
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.72
|
|
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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.72
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.72
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.64
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|