tencentcloud-sdk-cdwch 3.0.503 → 3.0.505

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: 76678cc1e47f31799efc4999e8dc84a8798a9738
4
- data.tar.gz: ee3c88316bdcde07c8a854631b9b4e01c2f441a8
3
+ metadata.gz: c7a863f37aa4ec81df9d1bb76e02d1982b9232ac
4
+ data.tar.gz: b85bdf87173e75beea3af25c21985a6b553e3c4d
5
5
  SHA512:
6
- metadata.gz: 9ae27ac8997ef33f30cf0df90f1bfb47ee7a772b5434e7172bb74dbb27f0292ddb4de0120b7e7c3da7200f71c10fc2751658094e926bf28f1958bfac55f75384
7
- data.tar.gz: 10ce98e6bad9f019c21559958236bc5fad34314117906161c7e4a13e04021f91908f6c2e4ec6b0c76ef7c31d1f7124872f784805486de52a97ce031fb6237ebc
6
+ metadata.gz: 3a3862d3a4b0f7a5e6c3dca07e072cff1bcb940cfad8340c2d2f6b48de0fe97d298b1c458d79e0294adf1aba8e5620ea034030240fc87ef0c497d8257d1b3bdd
7
+ data.tar.gz: 88de2b103cbd26c33c3b75a5182ea73aa7470b2db1702f28c70d54597f432e19723493ea43172fd9a0086f3089661e3ad7e829ae941d645972f55d59dcf75ed2
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.503
1
+ 3.0.505
@@ -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.
@@ -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: 节点同步ip
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.503
4
+ version: 3.0.505
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-07 00:00:00.000000000 Z
11
+ date: 2023-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common