tencentcloud-sdk-cynosdb 3.0.510 → 3.0.511
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190107/client.rb +24 -0
- data/lib/v20190107/models.rb +48 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9ca43e81aa93293dce4a7a9a78c907cad623c3d3
|
4
|
+
data.tar.gz: 5ac036c800b664b3d5f73901cde49f192e34c3b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 267c6a23da99d05aaf8726715f3393854737611414fe609c7d51e30a7830c01616ebcc23555277234192de2f2c75049b3ca68ab6c787f9ec39c01edd7b215cd0
|
7
|
+
data.tar.gz: 9c150e7f736d50c12f2555d44f3c93f0af99e268a1199953437879fa66b9029a846096b67ca0254040dcaac5aa90b33bd307472f435354725b087f38bab052a4
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.511
|
data/lib/v20190107/client.rb
CHANGED
@@ -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.
|
data/lib/v20190107/models.rb
CHANGED
@@ -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.
|
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-
|
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
|