tencentcloud-sdk-redis 3.0.723 → 3.0.725

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: 74a31aa5d6a4bf29f915e398d5bf7a1901ada144
4
- data.tar.gz: 2fd9c41432364491cbe77f876d28630904db8272
3
+ metadata.gz: 1b5730ce46c7dbdfd73597b4e4d6bdf6b34ef726
4
+ data.tar.gz: fcfab31487855c5654404e085378343cd341baf6
5
5
  SHA512:
6
- metadata.gz: adc8e2493ff9342f0f0c9195ef95238703ff9813135661f5942e1dd70e763586effc9e399c5363b10ab16fef4f81340e984aaf86ae8cada782509aabca014e41
7
- data.tar.gz: 5273493499cdf01b10731b7468054021ea98f1aa688a50020863e83b6b3290e28a8147fc337dc50a283789e7271c3c8e0bacc1b85f49d85b51b99bcecdf56a00
6
+ metadata.gz: 9cae011ced4f8dad38bb39bad181ed86a4efd8476640d0321474e9c08c528834b00ef6f15287a19969dc76b1b008421bef1f87a261e7d4d1104484c74e8cacb5
7
+ data.tar.gz: 12de3c837977cd68b1dc6f440e757daced11f0d63076e98aa17c17ea2fdbbcea2e3985f7b64bc6fdaee1f967f2ac4f77fabf477575c56a6f517a608e51ad0dca
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.723
1
+ 3.0.725
@@ -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.723
4
+ version: 3.0.725
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-07 00:00:00.000000000 Z
11
+ date: 2023-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common