tencentcloud-sdk-redis 3.0.722 → 3.0.724

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: 856717b8e0180de8be4277b577c40cc1e2eb3b8c
4
- data.tar.gz: 6549a152edb55670c44ed8558f7645f19f46a4a9
3
+ metadata.gz: 0a138d8a72cd4c704f2b53574d86099ce3b0478a
4
+ data.tar.gz: a3471b5d64048dde9dffbd4a1a1accac021945e6
5
5
  SHA512:
6
- metadata.gz: ec31027769eed16aab228b807871cb551ae740e885a1302c922d48acd36f6fe6f8480f31e052461ba5153287bbbaa93423289d2abe58e27d47b87d752c4d9a9e
7
- data.tar.gz: 6d60f6e0b238402156f96cd71c50872cfd8048dbbf555d3fb0e07d299ebdd1a86a7973d2cbcb40209042d6a7b443c0d0f92e55ec44be42c7d6200a0c79b4c254
6
+ metadata.gz: d30468d8c2510ca35bf91b0825c5c245159dff58108123ed4beb1bb26b40ab569e1d91cca8ff4f40da5ab2db406fbd1e462febae9a3384f420757df349c375ec
7
+ data.tar.gz: f3f5bb49377630f39aa51cedb0fad554ecdfaafadc7779669eb95ae77befe6b8d6bf2f28671516c2bb31d0c6a779470ca26621c9ca60cc341c23290d440d2e97
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.722
1
+ 3.0.724
@@ -1013,6 +1013,30 @@ module TencentCloud
1013
1013
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1014
1014
  end
1015
1015
 
1016
+ # 本接口(DescribeInstanceSupportFeature)用于查询实例支持的功能特性。
1017
+
1018
+ # @param request: Request instance for DescribeInstanceSupportFeature.
1019
+ # @type request: :class:`Tencentcloud::redis::V20180412::DescribeInstanceSupportFeatureRequest`
1020
+ # @rtype: :class:`Tencentcloud::redis::V20180412::DescribeInstanceSupportFeatureResponse`
1021
+ def DescribeInstanceSupportFeature(request)
1022
+ body = send_request('DescribeInstanceSupportFeature', request.serialize)
1023
+ response = JSON.parse(body)
1024
+ if response['Response'].key?('Error') == false
1025
+ model = DescribeInstanceSupportFeatureResponse.new
1026
+ model.deserialize(response['Response'])
1027
+ model
1028
+ else
1029
+ code = response['Response']['Error']['Code']
1030
+ message = response['Response']['Error']['Message']
1031
+ reqid = response['Response']['RequestId']
1032
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1033
+ end
1034
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1035
+ raise e
1036
+ rescue StandardError => e
1037
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1038
+ end
1039
+
1016
1040
  # 本接口(DescribeInstanceZoneInfo)用于查询 Redis 节点详细信息。
1017
1041
 
1018
1042
  # @param request: Request instance for DescribeInstanceZoneInfo.
@@ -1781,6 +1805,30 @@ module TencentCloud
1781
1805
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1782
1806
  end
1783
1807
 
1808
+ # 本接口(ModifyInstanceAvailabilityZones)用于变更实例可用区
1809
+
1810
+ # @param request: Request instance for ModifyInstanceAvailabilityZones.
1811
+ # @type request: :class:`Tencentcloud::redis::V20180412::ModifyInstanceAvailabilityZonesRequest`
1812
+ # @rtype: :class:`Tencentcloud::redis::V20180412::ModifyInstanceAvailabilityZonesResponse`
1813
+ def ModifyInstanceAvailabilityZones(request)
1814
+ body = send_request('ModifyInstanceAvailabilityZones', request.serialize)
1815
+ response = JSON.parse(body)
1816
+ if response['Response'].key?('Error') == false
1817
+ model = ModifyInstanceAvailabilityZonesResponse.new
1818
+ model.deserialize(response['Response'])
1819
+ model
1820
+ else
1821
+ code = response['Response']['Error']['Code']
1822
+ message = response['Response']['Error']['Message']
1823
+ reqid = response['Response']['RequestId']
1824
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1825
+ end
1826
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1827
+ raise e
1828
+ rescue StandardError => e
1829
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1830
+ end
1831
+
1784
1832
  # 本接口(ModifyInstanceParams)用于修改Redis实例的参数配置。
1785
1833
 
1786
1834
  # @param request: Request instance for ModifyInstanceParams.
@@ -2069,6 +2117,30 @@ module TencentCloud
2069
2117
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2070
2118
  end
2071
2119
 
2120
+ # 本接口(SwitchAccessNewInstance)针对处于时间窗口中待切换操作的实例,用户可主动发起该操作。
2121
+
2122
+ # @param request: Request instance for SwitchAccessNewInstance.
2123
+ # @type request: :class:`Tencentcloud::redis::V20180412::SwitchAccessNewInstanceRequest`
2124
+ # @rtype: :class:`Tencentcloud::redis::V20180412::SwitchAccessNewInstanceResponse`
2125
+ def SwitchAccessNewInstance(request)
2126
+ body = send_request('SwitchAccessNewInstance', request.serialize)
2127
+ response = JSON.parse(body)
2128
+ if response['Response'].key?('Error') == false
2129
+ model = SwitchAccessNewInstanceResponse.new
2130
+ model.deserialize(response['Response'])
2131
+ model
2132
+ else
2133
+ code = response['Response']['Error']['Code']
2134
+ message = response['Response']['Error']['Message']
2135
+ reqid = response['Response']['RequestId']
2136
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2137
+ end
2138
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2139
+ raise e
2140
+ rescue StandardError => e
2141
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2142
+ end
2143
+
2072
2144
  # 在通过DTS支持跨可用区灾备的场景中,通过该接口交换实例VIP完成实例灾备切换。交换VIP后目标实例可写,源和目标实例VIP互换,同时源与目标实例间DTS同步任务断开
2073
2145
 
2074
2146
  # @param request: Request instance for SwitchInstanceVip.
@@ -2635,6 +2635,49 @@ module TencentCloud
2635
2635
  end
2636
2636
  end
2637
2637
 
2638
+ # DescribeInstanceSupportFeature请求参数结构体
2639
+ class DescribeInstanceSupportFeatureRequest < TencentCloud::Common::AbstractModel
2640
+ # @param InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis#/)在实例列表复制实例 ID。
2641
+ # 示例值:crs-asdasdas
2642
+ # @type InstanceId: String
2643
+ # @param FeatureName: 功能特性名称
2644
+ # - read-local-node-only 就近接入功能
2645
+ # - multi-account 多账号功能
2646
+ # @type FeatureName: String
2647
+
2648
+ attr_accessor :InstanceId, :FeatureName
2649
+
2650
+ def initialize(instanceid=nil, featurename=nil)
2651
+ @InstanceId = instanceid
2652
+ @FeatureName = featurename
2653
+ end
2654
+
2655
+ def deserialize(params)
2656
+ @InstanceId = params['InstanceId']
2657
+ @FeatureName = params['FeatureName']
2658
+ end
2659
+ end
2660
+
2661
+ # DescribeInstanceSupportFeature返回参数结构体
2662
+ class DescribeInstanceSupportFeatureResponse < TencentCloud::Common::AbstractModel
2663
+ # @param Support: 是否支持
2664
+ # @type Support: Boolean
2665
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2666
+ # @type RequestId: String
2667
+
2668
+ attr_accessor :Support, :RequestId
2669
+
2670
+ def initialize(support=nil, requestid=nil)
2671
+ @Support = support
2672
+ @RequestId = requestid
2673
+ end
2674
+
2675
+ def deserialize(params)
2676
+ @Support = params['Support']
2677
+ @RequestId = params['RequestId']
2678
+ end
2679
+ end
2680
+
2638
2681
  # DescribeInstanceZoneInfo请求参数结构体
2639
2682
  class DescribeInstanceZoneInfoRequest < TencentCloud::Common::AbstractModel
2640
2683
  # @param InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis)在实例列表复制实例 ID。
@@ -5509,6 +5552,60 @@ module TencentCloud
5509
5552
  end
5510
5553
  end
5511
5554
 
5555
+ # ModifyInstanceAvailabilityZones请求参数结构体
5556
+ class ModifyInstanceAvailabilityZonesRequest < TencentCloud::Common::AbstractModel
5557
+ # @param InstanceId: 指定实例 ID。例如:crs-xjhsdj****,请登录[Redis控制台](https://console.cloud.tencent.com/redis#/)在实例列表复制实例 ID。
5558
+ # @type InstanceId: String
5559
+ # @param SwitchOption: 切换时间。
5560
+ # - 1:维护时间窗切换。
5561
+ # - 2:立即切换。
5562
+ # @type SwitchOption: Integer
5563
+ # @param NodeSet: 实例的节点信息,包含节点 ID、节点类型、节点可用区 ID等。具体信息,请参见[RedisNodeInfo ](https://cloud.tencent.com/document/product/239/20022)。
5564
+ # 单可用区实例无需传NodeId,多可用区实例NodeId必传
5565
+ # @type NodeSet: Array
5566
+
5567
+ attr_accessor :InstanceId, :SwitchOption, :NodeSet
5568
+
5569
+ def initialize(instanceid=nil, switchoption=nil, nodeset=nil)
5570
+ @InstanceId = instanceid
5571
+ @SwitchOption = switchoption
5572
+ @NodeSet = nodeset
5573
+ end
5574
+
5575
+ def deserialize(params)
5576
+ @InstanceId = params['InstanceId']
5577
+ @SwitchOption = params['SwitchOption']
5578
+ unless params['NodeSet'].nil?
5579
+ @NodeSet = []
5580
+ params['NodeSet'].each do |i|
5581
+ redisnodeinfo_tmp = RedisNodeInfo.new
5582
+ redisnodeinfo_tmp.deserialize(i)
5583
+ @NodeSet << redisnodeinfo_tmp
5584
+ end
5585
+ end
5586
+ end
5587
+ end
5588
+
5589
+ # ModifyInstanceAvailabilityZones返回参数结构体
5590
+ class ModifyInstanceAvailabilityZonesResponse < TencentCloud::Common::AbstractModel
5591
+ # @param TaskId: 任务ID。
5592
+ # @type TaskId: Integer
5593
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5594
+ # @type RequestId: String
5595
+
5596
+ attr_accessor :TaskId, :RequestId
5597
+
5598
+ def initialize(taskid=nil, requestid=nil)
5599
+ @TaskId = taskid
5600
+ @RequestId = requestid
5601
+ end
5602
+
5603
+ def deserialize(params)
5604
+ @TaskId = params['TaskId']
5605
+ @RequestId = params['RequestId']
5606
+ end
5607
+ end
5608
+
5512
5609
  # ModifyInstanceParams请求参数结构体
5513
5610
  class ModifyInstanceParamsRequest < TencentCloud::Common::AbstractModel
5514
5611
  # @param InstanceId: 实例ID。
@@ -6891,6 +6988,39 @@ module TencentCloud
6891
6988
  end
6892
6989
  end
6893
6990
 
6991
+ # SwitchAccessNewInstance请求参数结构体
6992
+ class SwitchAccessNewInstanceRequest < TencentCloud::Common::AbstractModel
6993
+ # @param InstanceId: 指定实例 ID。例如:crs-xjhsdj****。请登录[Redis控制台](https://console.cloud.tencent.com/redis#/)在实例列表复制实例 ID。
6994
+ # 示例值:crs-asdasdas
6995
+ # @type InstanceId: String
6996
+
6997
+ attr_accessor :InstanceId
6998
+
6999
+ def initialize(instanceid=nil)
7000
+ @InstanceId = instanceid
7001
+ end
7002
+
7003
+ def deserialize(params)
7004
+ @InstanceId = params['InstanceId']
7005
+ end
7006
+ end
7007
+
7008
+ # SwitchAccessNewInstance返回参数结构体
7009
+ class SwitchAccessNewInstanceResponse < TencentCloud::Common::AbstractModel
7010
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7011
+ # @type RequestId: String
7012
+
7013
+ attr_accessor :RequestId
7014
+
7015
+ def initialize(requestid=nil)
7016
+ @RequestId = requestid
7017
+ end
7018
+
7019
+ def deserialize(params)
7020
+ @RequestId = params['RequestId']
7021
+ end
7022
+ end
7023
+
6894
7024
  # SwitchInstanceVip请求参数结构体
6895
7025
  class SwitchInstanceVipRequest < TencentCloud::Common::AbstractModel
6896
7026
  # @param SrcInstanceId: 源实例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: 3.0.722
4
+ version: 3.0.724
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-12-06 00:00:00.000000000 Z
11
+ date: 2023-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common