tencentcloud-sdk-cdwch 3.0.503 → 3.0.504
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/v20200915/client.rb +24 -0
- data/lib/v20200915/models.rb +52 -3
- 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: 206166f342bb33d84baf07df60fd893af851b0f5
|
4
|
+
data.tar.gz: fa7aeffe0e85ee021dbc6e772657c3cdf41d1751
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d6e63bf62d55e844df77029cdce99e63defac168237e421c411692af37da8af5ccbfe82f0e50c8307e609a03fa5cc7e635aed28d54881d4b8a4b961db82f368
|
7
|
+
data.tar.gz: eb0eef024718e398eeabafe710a928b23b8d500cbe62f2e8069af0db83b95c9b565706094846f4bbfeed778378a7938ae3a35b779fb92b082bb90a6dfc911701
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.504
|
data/lib/v20200915/client.rb
CHANGED
@@ -269,6 +269,30 @@ module TencentCloud
|
|
269
269
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
270
270
|
end
|
271
271
|
|
272
|
+
# 销毁集群 open api
|
273
|
+
|
274
|
+
# @param request: Request instance for DestroyInstance.
|
275
|
+
# @type request: :class:`Tencentcloud::cdwch::V20200915::DestroyInstanceRequest`
|
276
|
+
# @rtype: :class:`Tencentcloud::cdwch::V20200915::DestroyInstanceResponse`
|
277
|
+
def DestroyInstance(request)
|
278
|
+
body = send_request('DestroyInstance', request.serialize)
|
279
|
+
response = JSON.parse(body)
|
280
|
+
if response['Response'].key?('Error') == false
|
281
|
+
model = DestroyInstanceResponse.new
|
282
|
+
model.deserialize(response['Response'])
|
283
|
+
model
|
284
|
+
else
|
285
|
+
code = response['Response']['Error']['Code']
|
286
|
+
message = response['Response']['Error']['Message']
|
287
|
+
reqid = response['Response']['RequestId']
|
288
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
289
|
+
end
|
290
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
291
|
+
raise e
|
292
|
+
rescue StandardError => e
|
293
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
294
|
+
end
|
295
|
+
|
272
296
|
# 在集群配置页面修改集群配置文件接口,xml模式
|
273
297
|
|
274
298
|
# @param request: Request instance for ModifyClusterConfigs.
|
data/lib/v20200915/models.rb
CHANGED
@@ -770,6 +770,51 @@ module TencentCloud
|
|
770
770
|
end
|
771
771
|
end
|
772
772
|
|
773
|
+
# DestroyInstance请求参数结构体
|
774
|
+
class DestroyInstanceRequest < TencentCloud::Common::AbstractModel
|
775
|
+
# @param InstanceId: 集群id
|
776
|
+
# @type InstanceId: String
|
777
|
+
|
778
|
+
attr_accessor :InstanceId
|
779
|
+
|
780
|
+
def initialize(instanceid=nil)
|
781
|
+
@InstanceId = instanceid
|
782
|
+
end
|
783
|
+
|
784
|
+
def deserialize(params)
|
785
|
+
@InstanceId = params['InstanceId']
|
786
|
+
end
|
787
|
+
end
|
788
|
+
|
789
|
+
# DestroyInstance返回参数结构体
|
790
|
+
class DestroyInstanceResponse < TencentCloud::Common::AbstractModel
|
791
|
+
# @param FlowID: 作业id
|
792
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
793
|
+
# @type FlowID: String
|
794
|
+
# @param InstanceID: 集群id
|
795
|
+
# @type InstanceID: String
|
796
|
+
# @param ErrorMsg: 错误信息
|
797
|
+
# @type ErrorMsg: String
|
798
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
799
|
+
# @type RequestId: String
|
800
|
+
|
801
|
+
attr_accessor :FlowID, :InstanceID, :ErrorMsg, :RequestId
|
802
|
+
|
803
|
+
def initialize(flowid=nil, instanceid=nil, errormsg=nil, requestid=nil)
|
804
|
+
@FlowID = flowid
|
805
|
+
@InstanceID = instanceid
|
806
|
+
@ErrorMsg = errormsg
|
807
|
+
@RequestId = requestid
|
808
|
+
end
|
809
|
+
|
810
|
+
def deserialize(params)
|
811
|
+
@FlowID = params['FlowID']
|
812
|
+
@InstanceID = params['InstanceID']
|
813
|
+
@ErrorMsg = params['ErrorMsg']
|
814
|
+
@RequestId = params['RequestId']
|
815
|
+
end
|
816
|
+
end
|
817
|
+
|
773
818
|
# 磁盘规格描述
|
774
819
|
class DiskSpec < TencentCloud::Common::AbstractModel
|
775
820
|
# @param DiskType: 磁盘类型,例如“CLOUD_SSD", "LOCAL_SSD"等
|
@@ -1488,18 +1533,21 @@ module TencentCloud
|
|
1488
1533
|
# @type ScaleOutCluster: String
|
1489
1534
|
# @param UserSubnetIPNum: 子网剩余ip数量,用于判断当前实例子网剩余ip数是否能扩容。需要根据实际填写
|
1490
1535
|
# @type UserSubnetIPNum: Integer
|
1491
|
-
# @param ScaleOutNodeIp:
|
1536
|
+
# @param ScaleOutNodeIp: 同步元数据节点IP (uip)
|
1492
1537
|
# @type ScaleOutNodeIp: String
|
1538
|
+
# @param ReduceShardInfo: 缩容节点shard的节点IP (uip),其中ha集群需要主副节点ip都传入以逗号分隔
|
1539
|
+
# @type ReduceShardInfo: Array
|
1493
1540
|
|
1494
|
-
attr_accessor :InstanceId, :Type, :NodeCount, :ScaleOutCluster, :UserSubnetIPNum, :ScaleOutNodeIp
|
1541
|
+
attr_accessor :InstanceId, :Type, :NodeCount, :ScaleOutCluster, :UserSubnetIPNum, :ScaleOutNodeIp, :ReduceShardInfo
|
1495
1542
|
|
1496
|
-
def initialize(instanceid=nil, type=nil, nodecount=nil, scaleoutcluster=nil, usersubnetipnum=nil, scaleoutnodeip=nil)
|
1543
|
+
def initialize(instanceid=nil, type=nil, nodecount=nil, scaleoutcluster=nil, usersubnetipnum=nil, scaleoutnodeip=nil, reduceshardinfo=nil)
|
1497
1544
|
@InstanceId = instanceid
|
1498
1545
|
@Type = type
|
1499
1546
|
@NodeCount = nodecount
|
1500
1547
|
@ScaleOutCluster = scaleoutcluster
|
1501
1548
|
@UserSubnetIPNum = usersubnetipnum
|
1502
1549
|
@ScaleOutNodeIp = scaleoutnodeip
|
1550
|
+
@ReduceShardInfo = reduceshardinfo
|
1503
1551
|
end
|
1504
1552
|
|
1505
1553
|
def deserialize(params)
|
@@ -1509,6 +1557,7 @@ module TencentCloud
|
|
1509
1557
|
@ScaleOutCluster = params['ScaleOutCluster']
|
1510
1558
|
@UserSubnetIPNum = params['UserSubnetIPNum']
|
1511
1559
|
@ScaleOutNodeIp = params['ScaleOutNodeIp']
|
1560
|
+
@ReduceShardInfo = params['ReduceShardInfo']
|
1512
1561
|
end
|
1513
1562
|
end
|
1514
1563
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cdwch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.504
|
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-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|