tencentcloud-sdk-redis 1.0.361 → 1.0.364

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: 4cb292112ca4fe8d17fa2d63179b16f564e567ea
4
- data.tar.gz: 708f1b91ad7da87d2d63e9968ace69cc1c7a7a48
3
+ metadata.gz: 4cf016b227199d766fdef6ec12ce46b143e1fe9a
4
+ data.tar.gz: 5e2cbbfbfa3f6dcb23e2987ec44605d253ee3c71
5
5
  SHA512:
6
- metadata.gz: 7ff457a6968f5fc9922e4a4a1ada5a158940dbfaa78fc9582a00e43339862f82874f650ddc29b9c3c19011bef740e216282aeff27737362c7444e98fb9af1fdf
7
- data.tar.gz: 44a5d0af9e2aaae379b6499a884af382fa20165befbec545234ea8287755582475b75f35ff2d716f41da533cccfa3bd969939686170f8034461724df6af19563
6
+ metadata.gz: 3a68f68687c8b4df0e7bd357c5ca4bcfb4cd95890f3b5c0c9f3c3b8f6c170a2fbb266bad36a2540ac445b2876a938326e4e36af58b45517b0f0b02715815ac11
7
+ data.tar.gz: 089efe7afb76206cb3944202843fd7916ba32dc85ba7c4198422cfe6430a3604def59bd62f4971fa8879a715219821002aa10669e381a7135473d64122718ce6
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.361
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
@@ -2267,10 +2351,12 @@ module TencentCloud
2267
2351
  # @type TagKeys: Array
2268
2352
  # @param ProductVersions: 需要过滤的产品版本支持多个,"local"本地盘版,"cloud"云盘版,"cdc"独享集群版,如果不传则默认不过滤
2269
2353
  # @type ProductVersions: Array
2354
+ # @param InstanceIds: 批量查询指定的实例
2355
+ # @type InstanceIds: Array
2270
2356
 
2271
- attr_accessor :Limit, :Offset, :InstanceId, :OrderBy, :OrderType, :VpcIds, :SubnetIds, :ProjectIds, :SearchKey, :InstanceName, :UniqVpcIds, :UniqSubnetIds, :RegionIds, :Status, :TypeVersion, :EngineName, :AutoRenew, :BillingMode, :Type, :SearchKeys, :TypeList, :MonitorVersion, :InstanceTags, :TagKeys, :ProductVersions
2357
+ attr_accessor :Limit, :Offset, :InstanceId, :OrderBy, :OrderType, :VpcIds, :SubnetIds, :ProjectIds, :SearchKey, :InstanceName, :UniqVpcIds, :UniqSubnetIds, :RegionIds, :Status, :TypeVersion, :EngineName, :AutoRenew, :BillingMode, :Type, :SearchKeys, :TypeList, :MonitorVersion, :InstanceTags, :TagKeys, :ProductVersions, :InstanceIds
2272
2358
 
2273
- def initialize(limit=nil, offset=nil, instanceid=nil, orderby=nil, ordertype=nil, vpcids=nil, subnetids=nil, projectids=nil, searchkey=nil, instancename=nil, uniqvpcids=nil, uniqsubnetids=nil, regionids=nil, status=nil, typeversion=nil, enginename=nil, autorenew=nil, billingmode=nil, type=nil, searchkeys=nil, typelist=nil, monitorversion=nil, instancetags=nil, tagkeys=nil, productversions=nil)
2359
+ def initialize(limit=nil, offset=nil, instanceid=nil, orderby=nil, ordertype=nil, vpcids=nil, subnetids=nil, projectids=nil, searchkey=nil, instancename=nil, uniqvpcids=nil, uniqsubnetids=nil, regionids=nil, status=nil, typeversion=nil, enginename=nil, autorenew=nil, billingmode=nil, type=nil, searchkeys=nil, typelist=nil, monitorversion=nil, instancetags=nil, tagkeys=nil, productversions=nil, instanceids=nil)
2274
2360
  @Limit = limit
2275
2361
  @Offset = offset
2276
2362
  @InstanceId = instanceid
@@ -2296,6 +2382,7 @@ module TencentCloud
2296
2382
  @InstanceTags = instancetags
2297
2383
  @TagKeys = tagkeys
2298
2384
  @ProductVersions = productversions
2385
+ @InstanceIds = instanceids
2299
2386
  end
2300
2387
 
2301
2388
  def deserialize(params)
@@ -2331,6 +2418,7 @@ module TencentCloud
2331
2418
  end
2332
2419
  @TagKeys = params['TagKeys']
2333
2420
  @ProductVersions = params['ProductVersions']
2421
+ @InstanceIds = params['InstanceIds']
2334
2422
  end
2335
2423
  end
2336
2424
 
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.361
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-21 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