tencentcloud-sdk-redis 3.0.547 → 3.0.549

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ccbed9d0a7ee92ef7d6863088c5d1ba35a76d3c
4
- data.tar.gz: c64cbccfc2724cfda59313bb27ebd7a0dcc4809b
3
+ metadata.gz: f418dd2091d0dfc68b53d76925b5c42d49950c02
4
+ data.tar.gz: a18e2502d18e53f8e7337fb5d51f6241e7c04a5b
5
5
  SHA512:
6
- metadata.gz: d1be483ea33b40a500d62bc1739bdf7bc7a73be36f7b2ff461ac1334360ec122e7cab364dc97914da823bc6f2790c795e5a66e731f5fee0300ecce2ba7dbc908
7
- data.tar.gz: b800849cfd502ae6a7106f08c24cffccec24a0db877161dda36703232f00ab30f8254e8641e8851ef95942e6a87319afbc1d54db9a7486e7410b74cbfb8ac146
6
+ metadata.gz: 001fcce9af889cfc25f9139ce36e698bbe306bf80f7bf682cb48e59a8fc0d05a6e638fd8d9673ca58dc6efaef97940bd6a46b6141d68189a21f635cf8c4a389a
7
+ data.tar.gz: 12f5cc3984666ccc4d6089d8b35990e94ff53522f10c4d2f411134afe3fa5637d700fe21951c0bece22dfd25fe6b4dbb486075868ffac13a7b441e15b30c8708
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.547
1
+ 3.0.549
@@ -245,7 +245,7 @@ module TencentCloud
245
245
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
246
  end
247
247
 
248
- # 本接口(CloneInstances)可基于当前实例的备份文件克隆一个完整的新实例。
248
+ # 本接口(CloneInstances)用于基于当前实例的备份文件克隆一个完整的新实例。
249
249
 
250
250
  # @param request: Request instance for CloneInstances.
251
251
  # @type request: :class:`Tencentcloud::redis::V20180412::CloneInstancesRequest`
@@ -533,6 +533,30 @@ module TencentCloud
533
533
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
534
  end
535
535
 
536
+ # 本接口(DescribeBandwidthRange)用于查询实例带宽信息。
537
+
538
+ # @param request: Request instance for DescribeBandwidthRange.
539
+ # @type request: :class:`Tencentcloud::redis::V20180412::DescribeBandwidthRangeRequest`
540
+ # @rtype: :class:`Tencentcloud::redis::V20180412::DescribeBandwidthRangeResponse`
541
+ def DescribeBandwidthRange(request)
542
+ body = send_request('DescribeBandwidthRange', request.serialize)
543
+ response = JSON.parse(body)
544
+ if response['Response'].key?('Error') == false
545
+ model = DescribeBandwidthRangeResponse.new
546
+ model.deserialize(response['Response'])
547
+ model
548
+ else
549
+ code = response['Response']['Error']['Code']
550
+ message = response['Response']['Error']['Message']
551
+ reqid = response['Response']['RequestId']
552
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
553
+ end
554
+ rescue TencentCloud::Common::TencentCloudSDKException => e
555
+ raise e
556
+ rescue StandardError => e
557
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
558
+ end
559
+
536
560
  # 查询Redis实例列表信息。该接口已废弃。
537
561
 
538
562
  # @param request: Request instance for DescribeCommonDBInstances.
@@ -1925,6 +1949,30 @@ module TencentCloud
1925
1949
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1926
1950
  end
1927
1951
 
1952
+ # 移除复制组成员
1953
+
1954
+ # @param request: Request instance for RemoveReplicationInstance.
1955
+ # @type request: :class:`Tencentcloud::redis::V20180412::RemoveReplicationInstanceRequest`
1956
+ # @rtype: :class:`Tencentcloud::redis::V20180412::RemoveReplicationInstanceResponse`
1957
+ def RemoveReplicationInstance(request)
1958
+ body = send_request('RemoveReplicationInstance', request.serialize)
1959
+ response = JSON.parse(body)
1960
+ if response['Response'].key?('Error') == false
1961
+ model = RemoveReplicationInstanceResponse.new
1962
+ model.deserialize(response['Response'])
1963
+ model
1964
+ else
1965
+ code = response['Response']['Error']['Code']
1966
+ message = response['Response']['Error']['Message']
1967
+ reqid = response['Response']['RequestId']
1968
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1969
+ end
1970
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1971
+ raise e
1972
+ rescue StandardError => e
1973
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1974
+ end
1975
+
1928
1976
  # 本接口(RenewInstance)可用于为实例续费。
1929
1977
 
1930
1978
  # @param request: Request instance for RenewInstance.
@@ -533,9 +533,11 @@ module TencentCloud
533
533
 
534
534
  # CloneInstances请求参数结构体
535
535
  class CloneInstancesRequest < TencentCloud::Common::AbstractModel
536
- # @param InstanceId: 当前实例ID。
536
+ # @param InstanceId: 指定待克隆的源实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis)在实例列表复制实例 ID
537
537
  # @type InstanceId: String
538
- # @param GoodsNum: 单次克隆实例的数量。包年包月每次购买最大数量为100。按量计费每次购买最大数量为30,每个地域购买数量取值范围为[1,100]。
538
+ # @param GoodsNum: 单次克隆实例的数量。
539
+ # - 包年包月每次购买最大数量为100。
540
+ # - 按量计费每次购买最大数量为30。
539
541
  # @type GoodsNum: Integer
540
542
  # @param ZoneId: 克隆实例所属的可用区ID。当前所支持的可用区 ID,请参见[地域和可用区](https://cloud.tencent.com/document/product/239/4106) 。
541
543
  # @type ZoneId: Integer
@@ -549,27 +551,29 @@ module TencentCloud
549
551
  # @type BackupId: String
550
552
  # @param NoAuth: 配置克隆实例是否支持免密访问。开启 SSL 与外网均不支持免密访问。<ul><li>true:免密实例,</li><li>false:非免密实例。默认为非免密实例。</li></ul>
551
553
  # @type NoAuth: Boolean
552
- # @param VpcId: 私有网络ID。如果未配置该参数,默认选择基础网络。
554
+ # @param VpcId: 配置克隆实例的私有网络ID。如果未配置该参数,默认选择基础网络。
553
555
  # @type VpcId: String
554
- # @param SubnetId: 私有网络所属子网。基础网络时该参数无需配置。
556
+ # @param SubnetId: 配置克隆实例所属私有网络的子网。基础网络时该参数无需配置。
555
557
  # @type SubnetId: String
556
558
  # @param InstanceName: 克隆实例的名称。<br>仅支持长度小于60的中文、英文或者数字,短划线"-"、下划线"_"。</br>
557
559
  # @type InstanceName: String
558
560
  # @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>
559
561
  # @type Password: String
560
- # @param AutoRenew: 自动续费标识。<ul><li>0:默认状态(手动续费)。</li><li>1:自动续费。</li><li>2:不自动续费,到期自动隔离。</li></ul>
562
+ # @param AutoRenew: 自动续费标识。<ul><li>0:默认状态,手动续费。</li><li>1:自动续费。</li><li>2:不自动续费,到期自动隔离。</li></ul>
561
563
  # @type AutoRenew: Integer
562
564
  # @param VPort: 用户自定义的端口,默认为6379,取值范围[1024,65535]。
563
565
  # @type VPort: Integer
564
566
  # @param NodeSet: 实例的节点信息。<ul><li>目前支持配置节点的类型(主节点或者副本节点),及其节点的可用区信息。具体信息,请参见[RedisNodeInfo](https://cloud.tencent.com/document/product/239/20022#RedisNodeInfo)。</li><li>单可用区部署可不配置该参数。</li></ul>
565
567
  # @type NodeSet: Array
566
- # @param ProjectId: 项目 ID。登录控制台,可在右上角的<b>账号中心</b> > <b>项目管理</b>中查找项目ID。
568
+ # @param ProjectId: 项目 ID。登录[Redis 控制台](https://console.cloud.tencent.com/redis#/),可在右上角的<b>账号中心</b> > <b>项目管理</b>中查找项目ID。
567
569
  # @type ProjectId: Integer
568
570
  # @param ResourceTags: 克隆实例需绑定的标签。
569
571
  # @type ResourceTags: Array
570
- # @param TemplateId: 克隆实例需要应用的参数模板ID,请登录 Redis 控制台,在<b>参数模板</b>页面获取。若不配置该参数,则应用默认的参数模板。
572
+ # @param TemplateId: 指定克隆实例相关的参数模板 ID
573
+ # - 若不配置该参数,则系统会依据所选择的兼容版本及架构,自动适配对应的默认模板。
574
+ # - 请通过[DescribeParamTemplates](https://cloud.tencent.com/document/product/239/58750)接口,查询实例的参数模板列表,获取模板 ID 编号。
571
575
  # @type TemplateId: String
572
- # @param AlarmPolicyList: 指定克隆实例的告警策略 ID。请登录控制台,在<b>云监控</b> > <b>告警配置</b> > <b>告警策略</b>页面获取策略 ID 信息。
576
+ # @param AlarmPolicyList: 指定克隆实例的告警策略 ID。请登录[腾讯云可观测平台控制台](https://console.cloud.tencent.com/monitor/alarm2/policy),在 <b>告警管理</b> > <b>策略管理</b>页面获取策略 ID 信息。
573
577
  # @type AlarmPolicyList: Array
574
578
 
575
579
  attr_accessor :InstanceId, :GoodsNum, :ZoneId, :BillingMode, :Period, :SecurityGroupIdList, :BackupId, :NoAuth, :VpcId, :SubnetId, :InstanceName, :Password, :AutoRenew, :VPort, :NodeSet, :ProjectId, :ResourceTags, :TemplateId, :AlarmPolicyList
@@ -1385,6 +1389,54 @@ module TencentCloud
1385
1389
  end
1386
1390
  end
1387
1391
 
1392
+ # DescribeBandwidthRange请求参数结构体
1393
+ class DescribeBandwidthRangeRequest < TencentCloud::Common::AbstractModel
1394
+ # @param InstanceId: 实例 ID。
1395
+ # @type InstanceId: String
1396
+
1397
+ attr_accessor :InstanceId
1398
+
1399
+ def initialize(instanceid=nil)
1400
+ @InstanceId = instanceid
1401
+ end
1402
+
1403
+ def deserialize(params)
1404
+ @InstanceId = params['InstanceId']
1405
+ end
1406
+ end
1407
+
1408
+ # DescribeBandwidthRange返回参数结构体
1409
+ class DescribeBandwidthRangeResponse < TencentCloud::Common::AbstractModel
1410
+ # @param BaseBandwidth: 标准带宽。指购买实例时,系统为每个节点分配的带宽。
1411
+ # @type BaseBandwidth: Integer
1412
+ # @param AddBandwidth: 指实例的附加带宽。标准带宽不满足需求的情况下,用户可自行增加的带宽。<ul><li>开启副本只读时,实例总带宽 = 附加带宽 * 分片数 + 标准带宽 * 分片数 * Max ([只读副本数量, 1]),标准架构的分片数 = 1。</li><li>没有开启副本只读时,实例总带宽 = 附加带宽 * 分片数 + 标准带宽 * 分片数,标准架构的分片数 = 1。</li></ul>
1413
+ # @type AddBandwidth: Integer
1414
+ # @param MinAddBandwidth: 附加带宽设置下限。
1415
+ # @type MinAddBandwidth: Integer
1416
+ # @param MaxAddBandwidth: 附加带宽设置上限。
1417
+ # @type MaxAddBandwidth: Integer
1418
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1419
+ # @type RequestId: String
1420
+
1421
+ attr_accessor :BaseBandwidth, :AddBandwidth, :MinAddBandwidth, :MaxAddBandwidth, :RequestId
1422
+
1423
+ def initialize(basebandwidth=nil, addbandwidth=nil, minaddbandwidth=nil, maxaddbandwidth=nil, requestid=nil)
1424
+ @BaseBandwidth = basebandwidth
1425
+ @AddBandwidth = addbandwidth
1426
+ @MinAddBandwidth = minaddbandwidth
1427
+ @MaxAddBandwidth = maxaddbandwidth
1428
+ @RequestId = requestid
1429
+ end
1430
+
1431
+ def deserialize(params)
1432
+ @BaseBandwidth = params['BaseBandwidth']
1433
+ @AddBandwidth = params['AddBandwidth']
1434
+ @MinAddBandwidth = params['MinAddBandwidth']
1435
+ @MaxAddBandwidth = params['MaxAddBandwidth']
1436
+ @RequestId = params['RequestId']
1437
+ end
1438
+ end
1439
+
1388
1440
  # DescribeCommonDBInstances请求参数结构体
1389
1441
  class DescribeCommonDBInstancesRequest < TencentCloud::Common::AbstractModel
1390
1442
  # @param VpcIds: vpc网络ID信息列表
@@ -4442,7 +4494,7 @@ module TencentCloud
4442
4494
  # @type Createtime: String
4443
4495
  # @param Size: 实例容量大小,单位:MB。
4444
4496
  # @type Size: Float
4445
- # @param SizeUsed: 该字段已废弃。可使用云监控 API 接口 [GetMonitorData](https://cloud.tencent.com/document/product/248/31014) 获取实例已使用的内容容量。
4497
+ # @param SizeUsed: 该字段已废弃。请使用腾讯云可观测平台API 接口 [GetMonitorData](https://cloud.tencent.com/document/product/248/31014) 获取实例已使用的内存容量。
4446
4498
  # @type SizeUsed: Float
4447
4499
  # @param Type: 实例类型:<ul><li>1:Redis2.8内存版(集群架构)。</li><li>2:Redis2.8内存版(标准架构)。</li><li>3:CKV 3.2内存版(标准架构)。</li><li>4:CKV 3.2内存版(集群架构)。</li><li>5:Redis2.8内存版(单机)。</li></li><li>6:Redis4.0内存版(标准架构)。</li></li><li>7:Redis4.0内存版(集群架构)。</li></li><li>8:Redis5.0内存版(标准架构)。</li></li><li>9:Redis5.0内存版(集群架构)。</li></ul>
4448
4500
  # @type Type: Integer
@@ -4979,7 +5031,7 @@ module TencentCloud
4979
5031
 
4980
5032
  # ModfiyInstancePassword请求参数结构体
4981
5033
  class ModfiyInstancePasswordRequest < TencentCloud::Common::AbstractModel
4982
- # @param InstanceId: 实例 ID。
5034
+ # @param InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis)在实例列表复制实例 ID
4983
5035
  # @type InstanceId: String
4984
5036
  # @param OldPassword: 实例旧密码。
4985
5037
  # @type OldPassword: String
@@ -6189,6 +6241,50 @@ module TencentCloud
6189
6241
  end
6190
6242
  end
6191
6243
 
6244
+ # RemoveReplicationInstance请求参数结构体
6245
+ class RemoveReplicationInstanceRequest < TencentCloud::Common::AbstractModel
6246
+ # @param GroupId: 复制组ID
6247
+ # @type GroupId: String
6248
+ # @param InstanceId: 实例ID
6249
+ # @type InstanceId: String
6250
+ # @param SyncType: 数据同步类型,true:需要数据强同步,false:不需要强同步,仅限删除主实例
6251
+ # @type SyncType: Boolean
6252
+
6253
+ attr_accessor :GroupId, :InstanceId, :SyncType
6254
+
6255
+ def initialize(groupid=nil, instanceid=nil, synctype=nil)
6256
+ @GroupId = groupid
6257
+ @InstanceId = instanceid
6258
+ @SyncType = synctype
6259
+ end
6260
+
6261
+ def deserialize(params)
6262
+ @GroupId = params['GroupId']
6263
+ @InstanceId = params['InstanceId']
6264
+ @SyncType = params['SyncType']
6265
+ end
6266
+ end
6267
+
6268
+ # RemoveReplicationInstance返回参数结构体
6269
+ class RemoveReplicationInstanceResponse < TencentCloud::Common::AbstractModel
6270
+ # @param TaskId: 异步任务ID
6271
+ # @type TaskId: Integer
6272
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6273
+ # @type RequestId: String
6274
+
6275
+ attr_accessor :TaskId, :RequestId
6276
+
6277
+ def initialize(taskid=nil, requestid=nil)
6278
+ @TaskId = taskid
6279
+ @RequestId = requestid
6280
+ end
6281
+
6282
+ def deserialize(params)
6283
+ @TaskId = params['TaskId']
6284
+ @RequestId = params['RequestId']
6285
+ end
6286
+ end
6287
+
6192
6288
  # RenewInstance请求参数结构体
6193
6289
  class RenewInstanceRequest < TencentCloud::Common::AbstractModel
6194
6290
  # @param Period: 购买时长,单位:月。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-redis
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.547
4
+ version: 3.0.549
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-10 00:00:00.000000000 Z
11
+ date: 2023-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common