tencentcloud-sdk-redis 1.0.363 → 1.0.364

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: 840f847a0fb381f66370336cde58931d21b6b1ce
4
- data.tar.gz: 4782722dad97b05720d4f37f1e1fe3fc61270366
3
+ metadata.gz: 4cf016b227199d766fdef6ec12ce46b143e1fe9a
4
+ data.tar.gz: 5e2cbbfbfa3f6dcb23e2987ec44605d253ee3c71
5
5
  SHA512:
6
- metadata.gz: 48778ced40a41876dc3c6ee42405b2cd9a9f39dcbc2843928d4a0b4e300eb9e21d9550553903f228fc47f03ab3becae3f35a4814727245ca97ee830718294816
7
- data.tar.gz: 31afc9887e0f7a2519e60e7b610b323b95fd3a285cac651fe38fb78752c25e34b80c911758109b97be9f77412f62ece636e1d5ab68881f62db696410ebd4981f
6
+ metadata.gz: 3a68f68687c8b4df0e7bd357c5ca4bcfb4cd95890f3b5c0c9f3c3b8f6c170a2fbb266bad36a2540ac445b2876a938326e4e36af58b45517b0f0b02715815ac11
7
+ data.tar.gz: 089efe7afb76206cb3944202843fd7916ba32dc85ba7c4198422cfe6430a3604def59bd62f4971fa8879a715219821002aa10669e381a7135473d64122718ce6
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.363
1
+ 1.0.364
@@ -125,6 +125,54 @@ module TencentCloud
125
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
126
  end
127
127
 
128
+ # 复制组实例更换角色
129
+
130
+ # @param request: Request instance for ChangeInstanceRole.
131
+ # @type request: :class:`Tencentcloud::redis::V20180412::ChangeInstanceRoleRequest`
132
+ # @rtype: :class:`Tencentcloud::redis::V20180412::ChangeInstanceRoleResponse`
133
+ def ChangeInstanceRole(request)
134
+ body = send_request('ChangeInstanceRole', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = ChangeInstanceRoleResponse.new
138
+ model.deserialize(response['Response'])
139
+ model
140
+ else
141
+ code = response['Response']['Error']['Code']
142
+ message = response['Response']['Error']['Message']
143
+ reqid = response['Response']['RequestId']
144
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
145
+ end
146
+ rescue TencentCloud::Common::TencentCloudSDKException => e
147
+ raise e
148
+ rescue StandardError => e
149
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
150
+ end
151
+
152
+ # 复制组实例切主
153
+
154
+ # @param request: Request instance for ChangeMasterInstance.
155
+ # @type request: :class:`Tencentcloud::redis::V20180412::ChangeMasterInstanceRequest`
156
+ # @rtype: :class:`Tencentcloud::redis::V20180412::ChangeMasterInstanceResponse`
157
+ def ChangeMasterInstance(request)
158
+ body = send_request('ChangeMasterInstance', request.serialize)
159
+ response = JSON.parse(body)
160
+ if response['Response'].key?('Error') == false
161
+ model = ChangeMasterInstanceResponse.new
162
+ model.deserialize(response['Response'])
163
+ model
164
+ else
165
+ code = response['Response']['Error']['Code']
166
+ message = response['Response']['Error']['Message']
167
+ reqid = response['Response']['RequestId']
168
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
169
+ end
170
+ rescue TencentCloud::Common::TencentCloudSDKException => e
171
+ raise e
172
+ rescue StandardError => e
173
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
174
+ end
175
+
128
176
  # 该接口仅支持多AZ实例副本组提主和单AZ副本提主
129
177
 
130
178
  # @param request: Request instance for ChangeReplicaToMaster.
@@ -311,6 +311,90 @@ module TencentCloud
311
311
  end
312
312
  end
313
313
 
314
+ # ChangeInstanceRole请求参数结构体
315
+ class ChangeInstanceRoleRequest < TencentCloud::Common::AbstractModel
316
+ # @param GroupId: 复制组ID
317
+ # @type GroupId: String
318
+ # @param InstanceId: 实例ID
319
+ # @type InstanceId: String
320
+ # @param InstanceRole: 实例角色,rw可读写,r只读
321
+ # @type InstanceRole: String
322
+
323
+ attr_accessor :GroupId, :InstanceId, :InstanceRole
324
+
325
+ def initialize(groupid=nil, instanceid=nil, instancerole=nil)
326
+ @GroupId = groupid
327
+ @InstanceId = instanceid
328
+ @InstanceRole = instancerole
329
+ end
330
+
331
+ def deserialize(params)
332
+ @GroupId = params['GroupId']
333
+ @InstanceId = params['InstanceId']
334
+ @InstanceRole = params['InstanceRole']
335
+ end
336
+ end
337
+
338
+ # ChangeInstanceRole返回参数结构体
339
+ class ChangeInstanceRoleResponse < TencentCloud::Common::AbstractModel
340
+ # @param TaskId: 异步流程ID
341
+ # @type TaskId: Integer
342
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
343
+ # @type RequestId: String
344
+
345
+ attr_accessor :TaskId, :RequestId
346
+
347
+ def initialize(taskid=nil, requestid=nil)
348
+ @TaskId = taskid
349
+ @RequestId = requestid
350
+ end
351
+
352
+ def deserialize(params)
353
+ @TaskId = params['TaskId']
354
+ @RequestId = params['RequestId']
355
+ end
356
+ end
357
+
358
+ # ChangeMasterInstance请求参数结构体
359
+ class ChangeMasterInstanceRequest < TencentCloud::Common::AbstractModel
360
+ # @param GroupId: 复制组ID
361
+ # @type GroupId: String
362
+ # @param InstanceId: 实例ID
363
+ # @type InstanceId: String
364
+
365
+ attr_accessor :GroupId, :InstanceId
366
+
367
+ def initialize(groupid=nil, instanceid=nil)
368
+ @GroupId = groupid
369
+ @InstanceId = instanceid
370
+ end
371
+
372
+ def deserialize(params)
373
+ @GroupId = params['GroupId']
374
+ @InstanceId = params['InstanceId']
375
+ end
376
+ end
377
+
378
+ # ChangeMasterInstance返回参数结构体
379
+ class ChangeMasterInstanceResponse < TencentCloud::Common::AbstractModel
380
+ # @param TaskId: 异步流程ID
381
+ # @type TaskId: Integer
382
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
383
+ # @type RequestId: String
384
+
385
+ attr_accessor :TaskId, :RequestId
386
+
387
+ def initialize(taskid=nil, requestid=nil)
388
+ @TaskId = taskid
389
+ @RequestId = requestid
390
+ end
391
+
392
+ def deserialize(params)
393
+ @TaskId = params['TaskId']
394
+ @RequestId = params['RequestId']
395
+ end
396
+ end
397
+
314
398
  # ChangeReplicaToMaster请求参数结构体
315
399
  class ChangeReplicaToMasterRequest < TencentCloud::Common::AbstractModel
316
400
  # @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.363
4
+ version: 1.0.364
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-07-25 00:00:00.000000000 Z
11
+ date: 2022-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common