tencentcloud-sdk-redis 1.0.244 → 1.0.245

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: ce6e63be00015c0d6f200d828ffda4b3f67dc42b
4
- data.tar.gz: 5e30c222131072ae3a5fe82f9af9a2f708424fc8
3
+ metadata.gz: 77f555c88649ef80ada4696bfc0b94ea4d554c64
4
+ data.tar.gz: a73218ead45f680b2fbd7338f52a9abaa8da1ad3
5
5
  SHA512:
6
- metadata.gz: b08cb421ea5b3662c87b7bb57f0dfabcc333aa59fe99bc4da998fb2d15cb59aabe8322f96eff56fcaaae7b48beb244c6c60913d6599d400f01325c12fb06c686
7
- data.tar.gz: d8298433c4b5ad2fd419a23462398dfb45a760798f0c936bb17fd5e14e4380c798ec20df7b64b8c49f18189115027b1c780d2c2083943c976f516e40ef728de2
6
+ metadata.gz: 9d57f8e44ce39116b82437e86fd01fd68d63fa0bd6a879d9243ae936a9c33b92ccda9f84230c01c301dc04603b7bade557a35179d7c0cac0757949c4dafe46ea
7
+ data.tar.gz: 75d2d4514f280ab5c261dd6becd766e228652014ff45b51a85f7970cdb1b396be9757e719365428620842ceca2a7320d72089a1d2cd8c263157103a5abb3be6d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.244
1
+ 1.0.245
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 添加复制组成员
33
+
34
+ # @param request: Request instance for AddReplicationInstance.
35
+ # @type request: :class:`Tencentcloud::redis::V20180412::AddReplicationInstanceRequest`
36
+ # @rtype: :class:`Tencentcloud::redis::V20180412::AddReplicationInstanceResponse`
37
+ def AddReplicationInstance(request)
38
+ body = send_request('AddReplicationInstance', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = AddReplicationInstanceResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
32
56
  # 应用参数模板到实例
33
57
 
34
58
  # @param request: Request instance for ApplyParamsTemplate.
@@ -221,6 +245,30 @@ module TencentCloud
221
245
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
246
  end
223
247
 
248
+ # 创建复制组
249
+
250
+ # @param request: Request instance for CreateReplicationGroup.
251
+ # @type request: :class:`Tencentcloud::redis::V20180412::CreateReplicationGroupRequest`
252
+ # @rtype: :class:`Tencentcloud::redis::V20180412::CreateReplicationGroupResponse`
253
+ def CreateReplicationGroup(request)
254
+ body = send_request('CreateReplicationGroup', request.serialize)
255
+ response = JSON.parse(body)
256
+ if response['Response'].key?('Error') == false
257
+ model = CreateReplicationGroupResponse.new
258
+ model.deserialize(response['Response'])
259
+ model
260
+ else
261
+ code = response['Response']['Error']['Code']
262
+ message = response['Response']['Error']['Message']
263
+ reqid = response['Response']['RequestId']
264
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
265
+ end
266
+ rescue TencentCloud::Common::TencentCloudSDKException => e
267
+ raise e
268
+ rescue StandardError => e
269
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
+ end
271
+
224
272
  # 删除实例子账号
225
273
 
226
274
  # @param request: Request instance for DeleteInstanceAccount.
@@ -269,6 +317,30 @@ module TencentCloud
269
317
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
318
  end
271
319
 
320
+ # 移除复制组成员
321
+
322
+ # @param request: Request instance for DeleteReplicationInstance.
323
+ # @type request: :class:`Tencentcloud::redis::V20180412::DeleteReplicationInstanceRequest`
324
+ # @rtype: :class:`Tencentcloud::redis::V20180412::DeleteReplicationInstanceResponse`
325
+ def DeleteReplicationInstance(request)
326
+ body = send_request('DeleteReplicationInstance', request.serialize)
327
+ response = JSON.parse(body)
328
+ if response['Response'].key?('Error') == false
329
+ model = DeleteReplicationInstanceResponse.new
330
+ model.deserialize(response['Response'])
331
+ model
332
+ else
333
+ code = response['Response']['Error']['Code']
334
+ message = response['Response']['Error']['Message']
335
+ reqid = response['Response']['RequestId']
336
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
337
+ end
338
+ rescue TencentCloud::Common::TencentCloudSDKException => e
339
+ raise e
340
+ rescue StandardError => e
341
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
342
+ end
343
+
272
344
  # 获取备份配置
273
345
 
274
346
  # @param request: Request instance for DescribeAutoBackupConfig.
@@ -59,6 +59,50 @@ module TencentCloud
59
59
  end
60
60
  end
61
61
 
62
+ # AddReplicationInstance请求参数结构体
63
+ class AddReplicationInstanceRequest < TencentCloud::Common::AbstractModel
64
+ # @param GroupId: 复制组ID
65
+ # @type GroupId: String
66
+ # @param InstanceId: 实例ID
67
+ # @type InstanceId: String
68
+ # @param InstanceRole: 实例角色,rw可读写,r只读
69
+ # @type InstanceRole: String
70
+
71
+ attr_accessor :GroupId, :InstanceId, :InstanceRole
72
+
73
+ def initialize(groupid=nil, instanceid=nil, instancerole=nil)
74
+ @GroupId = groupid
75
+ @InstanceId = instanceid
76
+ @InstanceRole = instancerole
77
+ end
78
+
79
+ def deserialize(params)
80
+ @GroupId = params['GroupId']
81
+ @InstanceId = params['InstanceId']
82
+ @InstanceRole = params['InstanceRole']
83
+ end
84
+ end
85
+
86
+ # AddReplicationInstance返回参数结构体
87
+ class AddReplicationInstanceResponse < TencentCloud::Common::AbstractModel
88
+ # @param TaskId: 异步流程ID
89
+ # @type TaskId: Integer
90
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
91
+ # @type RequestId: String
92
+
93
+ attr_accessor :TaskId, :RequestId
94
+
95
+ def initialize(taskid=nil, requestid=nil)
96
+ @TaskId = taskid
97
+ @RequestId = requestid
98
+ end
99
+
100
+ def deserialize(params)
101
+ @TaskId = params['TaskId']
102
+ @RequestId = params['RequestId']
103
+ end
104
+ end
105
+
62
106
  # ApplyParamsTemplate请求参数结构体
63
107
  class ApplyParamsTemplateRequest < TencentCloud::Common::AbstractModel
64
108
  # @param InstanceIds: 实例ID列表
@@ -625,6 +669,50 @@ module TencentCloud
625
669
  end
626
670
  end
627
671
 
672
+ # CreateReplicationGroup请求参数结构体
673
+ class CreateReplicationGroupRequest < TencentCloud::Common::AbstractModel
674
+ # @param InstanceId: 实例ID
675
+ # @type InstanceId: String
676
+ # @param GroupName: 复制组名称
677
+ # @type GroupName: String
678
+ # @param Remark: 备注信息
679
+ # @type Remark: String
680
+
681
+ attr_accessor :InstanceId, :GroupName, :Remark
682
+
683
+ def initialize(instanceid=nil, groupname=nil, remark=nil)
684
+ @InstanceId = instanceid
685
+ @GroupName = groupname
686
+ @Remark = remark
687
+ end
688
+
689
+ def deserialize(params)
690
+ @InstanceId = params['InstanceId']
691
+ @GroupName = params['GroupName']
692
+ @Remark = params['Remark']
693
+ end
694
+ end
695
+
696
+ # CreateReplicationGroup返回参数结构体
697
+ class CreateReplicationGroupResponse < TencentCloud::Common::AbstractModel
698
+ # @param TaskId: 异步流程ID
699
+ # @type TaskId: Integer
700
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
701
+ # @type RequestId: String
702
+
703
+ attr_accessor :TaskId, :RequestId
704
+
705
+ def initialize(taskid=nil, requestid=nil)
706
+ @TaskId = taskid
707
+ @RequestId = requestid
708
+ end
709
+
710
+ def deserialize(params)
711
+ @TaskId = params['TaskId']
712
+ @RequestId = params['RequestId']
713
+ end
714
+ end
715
+
628
716
  # 延时分布详情
629
717
  class DelayDistribution < TencentCloud::Common::AbstractModel
630
718
  # @param Ladder: 分布阶梯,延时和Ladder值的对应关系:
@@ -727,6 +815,50 @@ module TencentCloud
727
815
  end
728
816
  end
729
817
 
818
+ # DeleteReplicationInstance请求参数结构体
819
+ class DeleteReplicationInstanceRequest < TencentCloud::Common::AbstractModel
820
+ # @param GroupId: 复制组ID
821
+ # @type GroupId: String
822
+ # @param InstanceId: 实例ID
823
+ # @type InstanceId: String
824
+ # @param SyncType: 数据同步类型,true:需要数据强同步,false:不需要强同步,仅限删除主实例
825
+ # @type SyncType: Boolean
826
+
827
+ attr_accessor :GroupId, :InstanceId, :SyncType
828
+
829
+ def initialize(groupid=nil, instanceid=nil, synctype=nil)
830
+ @GroupId = groupid
831
+ @InstanceId = instanceid
832
+ @SyncType = synctype
833
+ end
834
+
835
+ def deserialize(params)
836
+ @GroupId = params['GroupId']
837
+ @InstanceId = params['InstanceId']
838
+ @SyncType = params['SyncType']
839
+ end
840
+ end
841
+
842
+ # DeleteReplicationInstance返回参数结构体
843
+ class DeleteReplicationInstanceResponse < TencentCloud::Common::AbstractModel
844
+ # @param TaskId: 异步任务ID
845
+ # @type TaskId: Float
846
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
847
+ # @type RequestId: String
848
+
849
+ attr_accessor :TaskId, :RequestId
850
+
851
+ def initialize(taskid=nil, requestid=nil)
852
+ @TaskId = taskid
853
+ @RequestId = requestid
854
+ end
855
+
856
+ def deserialize(params)
857
+ @TaskId = params['TaskId']
858
+ @RequestId = params['RequestId']
859
+ end
860
+ end
861
+
730
862
  # DescribeAutoBackupConfig请求参数结构体
731
863
  class DescribeAutoBackupConfigRequest < TencentCloud::Common::AbstractModel
732
864
  # @param InstanceId: 实例ID
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.244
4
+ version: 1.0.245
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-01-18 00:00:00.000000000 Z
11
+ date: 2022-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common