tencentcloud-sdk-cynosdb 3.0.509 → 3.0.511

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: 2a95fb8ad20189a0c5b5179e9d067120fc85b395
4
- data.tar.gz: fcad1a4ba453f39bac50892da594838ff7a44361
3
+ metadata.gz: 9ca43e81aa93293dce4a7a9a78c907cad623c3d3
4
+ data.tar.gz: 5ac036c800b664b3d5f73901cde49f192e34c3b3
5
5
  SHA512:
6
- metadata.gz: bfdcccc69b9423b2fed84ffe8d6f42ca250848d0370fde6666b7ab5e6a705ed31f4f406edda7c52c9fc8030aaa676b9116681271e4acd6f6c6f17c7fe82cd336
7
- data.tar.gz: 58836740fb33d5e6c052b67efe65a3e41fde2deeb439d3b9410b906e28e814c0167b4b6428dbebdedbc5fc1c330fa231042a81eae43296fb7981f35263245e15
6
+ metadata.gz: 267c6a23da99d05aaf8726715f3393854737611414fe609c7d51e30a7830c01616ebcc23555277234192de2f2c75049b3ca68ab6c787f9ec39c01edd7b215cd0
7
+ data.tar.gz: 9c150e7f736d50c12f2555d44f3c93f0af99e268a1199953437879fa66b9029a846096b67ca0254040dcaac5aa90b33bd307472f435354725b087f38bab052a4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.509
1
+ 3.0.511
@@ -1829,6 +1829,30 @@ module TencentCloud
1829
1829
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1830
1830
  end
1831
1831
 
1832
+ # 更换集群vpc
1833
+
1834
+ # @param request: Request instance for SwitchClusterVpc.
1835
+ # @type request: :class:`Tencentcloud::cynosdb::V20190107::SwitchClusterVpcRequest`
1836
+ # @rtype: :class:`Tencentcloud::cynosdb::V20190107::SwitchClusterVpcResponse`
1837
+ def SwitchClusterVpc(request)
1838
+ body = send_request('SwitchClusterVpc', request.serialize)
1839
+ response = JSON.parse(body)
1840
+ if response['Response'].key?('Error') == false
1841
+ model = SwitchClusterVpcResponse.new
1842
+ model.deserialize(response['Response'])
1843
+ model
1844
+ else
1845
+ code = response['Response']['Error']['Code']
1846
+ message = response['Response']['Error']['Message']
1847
+ reqid = response['Response']['RequestId']
1848
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1849
+ end
1850
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1851
+ raise e
1852
+ rescue StandardError => e
1853
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1854
+ end
1855
+
1832
1856
  # 切换到从可用区
1833
1857
 
1834
1858
  # @param request: Request instance for SwitchClusterZone.
@@ -6687,6 +6687,54 @@ module TencentCloud
6687
6687
  end
6688
6688
  end
6689
6689
 
6690
+ # SwitchClusterVpc请求参数结构体
6691
+ class SwitchClusterVpcRequest < TencentCloud::Common::AbstractModel
6692
+ # @param ClusterId: 集群ID
6693
+ # @type ClusterId: String
6694
+ # @param UniqVpcId: 字符串vpc id
6695
+ # @type UniqVpcId: String
6696
+ # @param UniqSubnetId: 字符串子网id
6697
+ # @type UniqSubnetId: String
6698
+ # @param OldIpReserveHours: 旧地址回收时间
6699
+ # @type OldIpReserveHours: Integer
6700
+
6701
+ attr_accessor :ClusterId, :UniqVpcId, :UniqSubnetId, :OldIpReserveHours
6702
+
6703
+ def initialize(clusterid=nil, uniqvpcid=nil, uniqsubnetid=nil, oldipreservehours=nil)
6704
+ @ClusterId = clusterid
6705
+ @UniqVpcId = uniqvpcid
6706
+ @UniqSubnetId = uniqsubnetid
6707
+ @OldIpReserveHours = oldipreservehours
6708
+ end
6709
+
6710
+ def deserialize(params)
6711
+ @ClusterId = params['ClusterId']
6712
+ @UniqVpcId = params['UniqVpcId']
6713
+ @UniqSubnetId = params['UniqSubnetId']
6714
+ @OldIpReserveHours = params['OldIpReserveHours']
6715
+ end
6716
+ end
6717
+
6718
+ # SwitchClusterVpc返回参数结构体
6719
+ class SwitchClusterVpcResponse < TencentCloud::Common::AbstractModel
6720
+ # @param FlowId: 异步任务id。
6721
+ # @type FlowId: Integer
6722
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6723
+ # @type RequestId: String
6724
+
6725
+ attr_accessor :FlowId, :RequestId
6726
+
6727
+ def initialize(flowid=nil, requestid=nil)
6728
+ @FlowId = flowid
6729
+ @RequestId = requestid
6730
+ end
6731
+
6732
+ def deserialize(params)
6733
+ @FlowId = params['FlowId']
6734
+ @RequestId = params['RequestId']
6735
+ end
6736
+ end
6737
+
6690
6738
  # SwitchClusterZone请求参数结构体
6691
6739
  class SwitchClusterZoneRequest < TencentCloud::Common::AbstractModel
6692
6740
  # @param ClusterId: 集群Id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cynosdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.509
4
+ version: 3.0.511
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-02-15 00:00:00.000000000 Z
11
+ date: 2023-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common