tencentcloud-sdk-redis 1.0.281 → 1.0.282

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76de62799d6afea6d6cdbdc82f9356e3e9997f8d
4
- data.tar.gz: 744e8ff7adc0bdf712b24d6e8ec1ecd9c895474e
3
+ metadata.gz: 5fc24c4e95343feab997007c9939953060cc7ee1
4
+ data.tar.gz: 8a803db51ac9cf83023cc56c62dac56a4bfed837
5
5
  SHA512:
6
- metadata.gz: e0ad5e912233fd7ae1127c84d6dbfa71c8a68d725596b1782b9d34aa61d273a864dab1e474280f81889197339ec8555d05b372358f095da501e8e50d6a2b600f
7
- data.tar.gz: a84d8820bb451aebc980876af27378cc2371463f94a7fb6f663a519327b3c46832f3f8e559598da3d07b61a4ffb125c54f25ed1df489be16665e8187501c6188
6
+ metadata.gz: b7cebeb9051031da15020b2b08531c7ba6cb3402ac886a9dc3b08c43dac6283e7e16ca563701a78b818503d8f05cc39f79a060a8441cdfd0fadb6350e0e1e0e2
7
+ data.tar.gz: 6a5553a09dda4bfec3e6478cfbfc185c300e8d2448d92b7cb144d25de1ec51bf724f7266ae11483b6f1298df0d32354f490c5e5d3bcb727cb249f87b9c2fcc34
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.281
1
+ 1.0.282
@@ -221,7 +221,7 @@ module TencentCloud
221
221
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
222
  end
223
223
 
224
- # 创建参数模板
224
+ # 创建参数模板。
225
225
 
226
226
  # @param request: Request instance for CreateParamTemplate.
227
227
  # @type request: :class:`Tencentcloud::redis::V20180412::CreateParamTemplateRequest`
@@ -1061,6 +1061,30 @@ module TencentCloud
1061
1061
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1062
1062
  end
1063
1063
 
1064
+ # 查询复制组
1065
+
1066
+ # @param request: Request instance for DescribeReplicationGroup.
1067
+ # @type request: :class:`Tencentcloud::redis::V20180412::DescribeReplicationGroupRequest`
1068
+ # @rtype: :class:`Tencentcloud::redis::V20180412::DescribeReplicationGroupResponse`
1069
+ def DescribeReplicationGroup(request)
1070
+ body = send_request('DescribeReplicationGroup', request.serialize)
1071
+ response = JSON.parse(body)
1072
+ if response['Response'].key?('Error') == false
1073
+ model = DescribeReplicationGroupResponse.new
1074
+ model.deserialize(response['Response'])
1075
+ model
1076
+ else
1077
+ code = response['Response']['Error']['Code']
1078
+ message = response['Response']['Error']['Message']
1079
+ reqid = response['Response']['RequestId']
1080
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1081
+ end
1082
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1083
+ raise e
1084
+ rescue StandardError => e
1085
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1086
+ end
1087
+
1064
1088
  # 查询实例慢查询记录
1065
1089
 
1066
1090
  # @param request: Request instance for DescribeSlowLog.
@@ -1421,7 +1445,7 @@ module TencentCloud
1421
1445
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1422
1446
  end
1423
1447
 
1424
- # 设置自动备份时间
1448
+ # 设置自动备份配置
1425
1449
 
1426
1450
  # @param request: Request instance for ModifyAutoBackupConfig.
1427
1451
  # @type request: :class:`Tencentcloud::redis::V20180412::ModifyAutoBackupConfigRequest`
@@ -2651,6 +2651,65 @@ module TencentCloud
2651
2651
  end
2652
2652
  end
2653
2653
 
2654
+ # DescribeReplicationGroup请求参数结构体
2655
+ class DescribeReplicationGroupRequest < TencentCloud::Common::AbstractModel
2656
+ # @param Limit: 实例列表的大小,参数默认值20
2657
+ # @type Limit: Integer
2658
+ # @param Offset: 偏移量,取Limit整数倍
2659
+ # @type Offset: Integer
2660
+ # @param GroupId: 复制组ID
2661
+ # @type GroupId: String
2662
+ # @param SearchKey: 实例ID和实例名称,支持模糊查询
2663
+ # @type SearchKey: String
2664
+
2665
+ attr_accessor :Limit, :Offset, :GroupId, :SearchKey
2666
+
2667
+ def initialize(limit=nil, offset=nil, groupid=nil, searchkey=nil)
2668
+ @Limit = limit
2669
+ @Offset = offset
2670
+ @GroupId = groupid
2671
+ @SearchKey = searchkey
2672
+ end
2673
+
2674
+ def deserialize(params)
2675
+ @Limit = params['Limit']
2676
+ @Offset = params['Offset']
2677
+ @GroupId = params['GroupId']
2678
+ @SearchKey = params['SearchKey']
2679
+ end
2680
+ end
2681
+
2682
+ # DescribeReplicationGroup返回参数结构体
2683
+ class DescribeReplicationGroupResponse < TencentCloud::Common::AbstractModel
2684
+ # @param TotalCount: 复制组数
2685
+ # @type TotalCount: Integer
2686
+ # @param Groups: 复制组信息
2687
+ # @type Groups: Array
2688
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2689
+ # @type RequestId: String
2690
+
2691
+ attr_accessor :TotalCount, :Groups, :RequestId
2692
+
2693
+ def initialize(totalcount=nil, groups=nil, requestid=nil)
2694
+ @TotalCount = totalcount
2695
+ @Groups = groups
2696
+ @RequestId = requestid
2697
+ end
2698
+
2699
+ def deserialize(params)
2700
+ @TotalCount = params['TotalCount']
2701
+ unless params['Groups'].nil?
2702
+ @Groups = []
2703
+ params['Groups'].each do |i|
2704
+ groups_tmp = Groups.new
2705
+ groups_tmp.deserialize(i)
2706
+ @Groups << groups_tmp
2707
+ end
2708
+ end
2709
+ @RequestId = params['RequestId']
2710
+ end
2711
+ end
2712
+
2654
2713
  # DescribeSlowLog请求参数结构体
2655
2714
  class DescribeSlowLogRequest < TencentCloud::Common::AbstractModel
2656
2715
  # @param InstanceId: 实例Id
@@ -3111,6 +3170,60 @@ module TencentCloud
3111
3170
  end
3112
3171
  end
3113
3172
 
3173
+ # 复制组信息
3174
+ class Groups < TencentCloud::Common::AbstractModel
3175
+ # @param AppId: 用户AppID
3176
+ # @type AppId: Integer
3177
+ # @param RegionId: 地域ID 1--广州 4--上海 5-- 中国香港 6--多伦多 7--上海金融 8--北京 9-- 新加坡 11--深圳金融 15--美西(硅谷)16--成都 17--德国 18--韩国 19--重庆 21--印度 22--美东(弗吉尼亚)23--泰国 24--俄罗斯 25--日本
3178
+ # @type RegionId: Integer
3179
+ # @param GroupId: 复制组信息
3180
+ # @type GroupId: String
3181
+ # @param GroupName: 复制组名称
3182
+ # 注意:此字段可能返回 null,表示取不到有效值。
3183
+ # @type GroupName: String
3184
+ # @param Status: 复制组状态,37:"绑定复制组中",38:"复制组重连中",51:"解绑复制组中",52:"复制组实例切主中",53:"角色变更中"
3185
+ # @type Status: Integer
3186
+ # @param InstanceCount: 复制组数量
3187
+ # @type InstanceCount: Integer
3188
+ # @param Instances: 复制组实例
3189
+ # 注意:此字段可能返回 null,表示取不到有效值。
3190
+ # @type Instances: Array
3191
+ # @param Remark: 备注信息
3192
+ # 注意:此字段可能返回 null,表示取不到有效值。
3193
+ # @type Remark: String
3194
+
3195
+ attr_accessor :AppId, :RegionId, :GroupId, :GroupName, :Status, :InstanceCount, :Instances, :Remark
3196
+
3197
+ def initialize(appid=nil, regionid=nil, groupid=nil, groupname=nil, status=nil, instancecount=nil, instances=nil, remark=nil)
3198
+ @AppId = appid
3199
+ @RegionId = regionid
3200
+ @GroupId = groupid
3201
+ @GroupName = groupname
3202
+ @Status = status
3203
+ @InstanceCount = instancecount
3204
+ @Instances = instances
3205
+ @Remark = remark
3206
+ end
3207
+
3208
+ def deserialize(params)
3209
+ @AppId = params['AppId']
3210
+ @RegionId = params['RegionId']
3211
+ @GroupId = params['GroupId']
3212
+ @GroupName = params['GroupName']
3213
+ @Status = params['Status']
3214
+ @InstanceCount = params['InstanceCount']
3215
+ unless params['Instances'].nil?
3216
+ @Instances = []
3217
+ params['Instances'].each do |i|
3218
+ instances_tmp = Instances.new
3219
+ instances_tmp.deserialize(i)
3220
+ @Instances << instances_tmp
3221
+ end
3222
+ end
3223
+ @Remark = params['Remark']
3224
+ end
3225
+ end
3226
+
3114
3227
  # 热Key详细信息
3115
3228
  class HotKeyInfo < TencentCloud::Common::AbstractModel
3116
3229
  # @param Key: 热Key
@@ -4079,6 +4192,100 @@ module TencentCloud
4079
4192
  end
4080
4193
  end
4081
4194
 
4195
+ # 复制组实例
4196
+ class Instances < TencentCloud::Common::AbstractModel
4197
+ # @param AppId: 用户AppID
4198
+ # @type AppId: Integer
4199
+ # @param InstanceId: 实例ID
4200
+ # @type InstanceId: String
4201
+ # @param InstanceName: 实例名称
4202
+ # @type InstanceName: String
4203
+ # @param RegionId: 地域ID 1--广州 4--上海 5-- 香港 6--多伦多 7--上海金融 8--北京 9-- 新加坡 11--深圳金融 15--美西(硅谷)
4204
+ # @type RegionId: Integer
4205
+ # @param ZoneId: 区域ID
4206
+ # @type ZoneId: Integer
4207
+ # @param RedisReplicasNum: 副本数量
4208
+ # @type RedisReplicasNum: Integer
4209
+ # @param RedisShardNum: 分片数量
4210
+ # @type RedisShardNum: Integer
4211
+ # @param RedisShardSize: 分片大小
4212
+ # @type RedisShardSize: Integer
4213
+ # @param DiskSize: 实例的磁盘大小
4214
+ # 注意:此字段可能返回 null,表示取不到有效值。
4215
+ # @type DiskSize: Integer
4216
+ # @param Engine: 引擎:社区版Redis、腾讯云CKV
4217
+ # @type Engine: String
4218
+ # @param Role: 实例角色,rw可读写,r只读
4219
+ # @type Role: String
4220
+ # @param Vip: 实例VIP
4221
+ # @type Vip: String
4222
+ # @param Vip6: 内部参数,用户可忽略
4223
+ # 注意:此字段可能返回 null,表示取不到有效值。
4224
+ # @type Vip6: String
4225
+ # @param VpcID: vpc网络ID 如:75101
4226
+ # @type VpcID: Integer
4227
+ # @param VPort: 实例端口
4228
+ # @type VPort: Integer
4229
+ # @param Status: 实例状态:0-待初始化,1-流程中,2-运行中,-2-已隔离,-3-待删除
4230
+ # @type Status: Integer
4231
+ # @param GrocerySysId: 仓库ID
4232
+ # @type GrocerySysId: Integer
4233
+ # @param ProductType: 实例类型:1 – Redis2.8内存版(集群架构),2 – Redis2.8内存版(标准架构),3 – CKV 3.2内存版(标准架构),4 – CKV 3.2内存版(集群架构),5 – Redis2.8内存版(单机),6 – Redis4.0内存版(标准架构),7 – Redis4.0内存版(集群架构),8 – Redis5.0内存版(标准架构),9 – Redis5.0内存版(集群架构)
4234
+ # @type ProductType: Integer
4235
+ # @param CreateTime: 创建时间
4236
+ # @type CreateTime: String
4237
+ # @param UpdateTime: 更新实例
4238
+ # @type UpdateTime: String
4239
+
4240
+ attr_accessor :AppId, :InstanceId, :InstanceName, :RegionId, :ZoneId, :RedisReplicasNum, :RedisShardNum, :RedisShardSize, :DiskSize, :Engine, :Role, :Vip, :Vip6, :VpcID, :VPort, :Status, :GrocerySysId, :ProductType, :CreateTime, :UpdateTime
4241
+
4242
+ def initialize(appid=nil, instanceid=nil, instancename=nil, regionid=nil, zoneid=nil, redisreplicasnum=nil, redisshardnum=nil, redisshardsize=nil, disksize=nil, engine=nil, role=nil, vip=nil, vip6=nil, vpcid=nil, vport=nil, status=nil, grocerysysid=nil, producttype=nil, createtime=nil, updatetime=nil)
4243
+ @AppId = appid
4244
+ @InstanceId = instanceid
4245
+ @InstanceName = instancename
4246
+ @RegionId = regionid
4247
+ @ZoneId = zoneid
4248
+ @RedisReplicasNum = redisreplicasnum
4249
+ @RedisShardNum = redisshardnum
4250
+ @RedisShardSize = redisshardsize
4251
+ @DiskSize = disksize
4252
+ @Engine = engine
4253
+ @Role = role
4254
+ @Vip = vip
4255
+ @Vip6 = vip6
4256
+ @VpcID = vpcid
4257
+ @VPort = vport
4258
+ @Status = status
4259
+ @GrocerySysId = grocerysysid
4260
+ @ProductType = producttype
4261
+ @CreateTime = createtime
4262
+ @UpdateTime = updatetime
4263
+ end
4264
+
4265
+ def deserialize(params)
4266
+ @AppId = params['AppId']
4267
+ @InstanceId = params['InstanceId']
4268
+ @InstanceName = params['InstanceName']
4269
+ @RegionId = params['RegionId']
4270
+ @ZoneId = params['ZoneId']
4271
+ @RedisReplicasNum = params['RedisReplicasNum']
4272
+ @RedisShardNum = params['RedisShardNum']
4273
+ @RedisShardSize = params['RedisShardSize']
4274
+ @DiskSize = params['DiskSize']
4275
+ @Engine = params['Engine']
4276
+ @Role = params['Role']
4277
+ @Vip = params['Vip']
4278
+ @Vip6 = params['Vip6']
4279
+ @VpcID = params['VpcID']
4280
+ @VPort = params['VPort']
4281
+ @Status = params['Status']
4282
+ @GrocerySysId = params['GrocerySysId']
4283
+ @ProductType = params['ProductType']
4284
+ @CreateTime = params['CreateTime']
4285
+ @UpdateTime = params['UpdateTime']
4286
+ end
4287
+ end
4288
+
4082
4289
  # KillMasterGroup请求参数结构体
4083
4290
  class KillMasterGroupRequest < TencentCloud::Common::AbstractModel
4084
4291
  # @param InstanceId: 实例ID
@@ -4249,15 +4456,18 @@ module TencentCloud
4249
4456
  # @type WeekDays: Array
4250
4457
  # @param TimePeriod: 时间段 00:00-01:00, 01:00-02:00...... 23:00-00:00
4251
4458
  # @type TimePeriod: String
4459
+ # @param BackupStorageDays: 全量备份文件保存天数,单位:天
4460
+ # @type BackupStorageDays: Integer
4252
4461
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4253
4462
  # @type RequestId: String
4254
4463
 
4255
- attr_accessor :AutoBackupType, :WeekDays, :TimePeriod, :RequestId
4464
+ attr_accessor :AutoBackupType, :WeekDays, :TimePeriod, :BackupStorageDays, :RequestId
4256
4465
 
4257
- def initialize(autobackuptype=nil, weekdays=nil, timeperiod=nil, requestid=nil)
4466
+ def initialize(autobackuptype=nil, weekdays=nil, timeperiod=nil, backupstoragedays=nil, requestid=nil)
4258
4467
  @AutoBackupType = autobackuptype
4259
4468
  @WeekDays = weekdays
4260
4469
  @TimePeriod = timeperiod
4470
+ @BackupStorageDays = backupstoragedays
4261
4471
  @RequestId = requestid
4262
4472
  end
4263
4473
 
@@ -4265,6 +4475,7 @@ module TencentCloud
4265
4475
  @AutoBackupType = params['AutoBackupType']
4266
4476
  @WeekDays = params['WeekDays']
4267
4477
  @TimePeriod = params['TimePeriod']
4478
+ @BackupStorageDays = params['BackupStorageDays']
4268
4479
  @RequestId = params['RequestId']
4269
4480
  end
4270
4481
  end
@@ -4582,15 +4793,18 @@ module TencentCloud
4582
4793
  # @type VpcId: String
4583
4794
  # @param SubnetId: 子网ID,changeVpc、changeBaseToVpc的时候需要提供
4584
4795
  # @type SubnetId: String
4796
+ # @param Recycle: vip保留时间,单位:天
4797
+ # @type Recycle: Integer
4585
4798
 
4586
- attr_accessor :InstanceId, :Operation, :Vip, :VpcId, :SubnetId
4799
+ attr_accessor :InstanceId, :Operation, :Vip, :VpcId, :SubnetId, :Recycle
4587
4800
 
4588
- def initialize(instanceid=nil, operation=nil, vip=nil, vpcid=nil, subnetid=nil)
4801
+ def initialize(instanceid=nil, operation=nil, vip=nil, vpcid=nil, subnetid=nil, recycle=nil)
4589
4802
  @InstanceId = instanceid
4590
4803
  @Operation = operation
4591
4804
  @Vip = vip
4592
4805
  @VpcId = vpcid
4593
4806
  @SubnetId = subnetid
4807
+ @Recycle = recycle
4594
4808
  end
4595
4809
 
4596
4810
  def deserialize(params)
@@ -4599,6 +4813,7 @@ module TencentCloud
4599
4813
  @Vip = params['Vip']
4600
4814
  @VpcId = params['VpcId']
4601
4815
  @SubnetId = params['SubnetId']
4816
+ @Recycle = params['Recycle']
4602
4817
  end
4603
4818
  end
4604
4819
 
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: 1.0.281
4
+ version: 1.0.282
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-22 00:00:00.000000000 Z
11
+ date: 2022-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common