tencentcloud-sdk-cdwch 3.0.740 → 3.0.742
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 +153 -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: 395b0b3ec3988f7999290d11ebcb98579df1fa88
|
4
|
+
data.tar.gz: 9252c41f7a070b310473b73b3526dd33b413fe6a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 007d3849fdddd57dbd575d6a28f82f345c37837be642ecd66435bdeee7bc8ff4958beb5cb2cfa301d34795446e1636a17ed6d071b3e6a2a305466a5ed77d70ee
|
7
|
+
data.tar.gz: e999cd36a85a9295e88689e3c01d4c0b50e76d8d9208b1ede06f6b7efa23a2153d4f67b1dde3a4f205225a42285161cb8dd8ce982e1119200f664a4db6f90c7d
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.742
|
data/lib/v20200915/client.rb
CHANGED
@@ -341,6 +341,30 @@ module TencentCloud
|
|
341
341
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
342
342
|
end
|
343
343
|
|
344
|
+
# 获取实例节点信息列表
|
345
|
+
|
346
|
+
# @param request: Request instance for DescribeInstanceNodes.
|
347
|
+
# @type request: :class:`Tencentcloud::cdwch::V20200915::DescribeInstanceNodesRequest`
|
348
|
+
# @rtype: :class:`Tencentcloud::cdwch::V20200915::DescribeInstanceNodesResponse`
|
349
|
+
def DescribeInstanceNodes(request)
|
350
|
+
body = send_request('DescribeInstanceNodes', request.serialize)
|
351
|
+
response = JSON.parse(body)
|
352
|
+
if response['Response'].key?('Error') == false
|
353
|
+
model = DescribeInstanceNodesResponse.new
|
354
|
+
model.deserialize(response['Response'])
|
355
|
+
model
|
356
|
+
else
|
357
|
+
code = response['Response']['Error']['Code']
|
358
|
+
message = response['Response']['Error']['Message']
|
359
|
+
reqid = response['Response']['RequestId']
|
360
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
361
|
+
end
|
362
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
363
|
+
raise e
|
364
|
+
rescue StandardError => e
|
365
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
366
|
+
end
|
367
|
+
|
344
368
|
# 获取实例shard信息列表
|
345
369
|
|
346
370
|
# @param request: Request instance for DescribeInstanceShards.
|
data/lib/v20200915/models.rb
CHANGED
@@ -1021,6 +1021,74 @@ module TencentCloud
|
|
1021
1021
|
end
|
1022
1022
|
end
|
1023
1023
|
|
1024
|
+
# DescribeInstanceNodes请求参数结构体
|
1025
|
+
class DescribeInstanceNodesRequest < TencentCloud::Common::AbstractModel
|
1026
|
+
# @param InstanceId: 集群实例ID
|
1027
|
+
# @type InstanceId: String
|
1028
|
+
# @param NodeRole: 集群角色类型,默认为 "data"数据节点
|
1029
|
+
# @type NodeRole: String
|
1030
|
+
# @param Offset: 分页参数,第一页为0,第二页为10
|
1031
|
+
# @type Offset: Integer
|
1032
|
+
# @param Limit: 分页参数,分页步长,默认为10
|
1033
|
+
# @type Limit: Integer
|
1034
|
+
# @param DisplayPolicy: 展现策略,All时显示所有
|
1035
|
+
# @type DisplayPolicy: String
|
1036
|
+
# @param ForceAll: 当true的时候返回所有节点,即Limit无限大
|
1037
|
+
# @type ForceAll: Boolean
|
1038
|
+
|
1039
|
+
attr_accessor :InstanceId, :NodeRole, :Offset, :Limit, :DisplayPolicy, :ForceAll
|
1040
|
+
|
1041
|
+
def initialize(instanceid=nil, noderole=nil, offset=nil, limit=nil, displaypolicy=nil, forceall=nil)
|
1042
|
+
@InstanceId = instanceid
|
1043
|
+
@NodeRole = noderole
|
1044
|
+
@Offset = offset
|
1045
|
+
@Limit = limit
|
1046
|
+
@DisplayPolicy = displaypolicy
|
1047
|
+
@ForceAll = forceall
|
1048
|
+
end
|
1049
|
+
|
1050
|
+
def deserialize(params)
|
1051
|
+
@InstanceId = params['InstanceId']
|
1052
|
+
@NodeRole = params['NodeRole']
|
1053
|
+
@Offset = params['Offset']
|
1054
|
+
@Limit = params['Limit']
|
1055
|
+
@DisplayPolicy = params['DisplayPolicy']
|
1056
|
+
@ForceAll = params['ForceAll']
|
1057
|
+
end
|
1058
|
+
end
|
1059
|
+
|
1060
|
+
# DescribeInstanceNodes返回参数结构体
|
1061
|
+
class DescribeInstanceNodesResponse < TencentCloud::Common::AbstractModel
|
1062
|
+
# @param TotalCount: 总数
|
1063
|
+
# @type TotalCount: Integer
|
1064
|
+
# @param InstanceNodesList: 实例节点总数
|
1065
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1066
|
+
# @type InstanceNodesList: Array
|
1067
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1068
|
+
# @type RequestId: String
|
1069
|
+
|
1070
|
+
attr_accessor :TotalCount, :InstanceNodesList, :RequestId
|
1071
|
+
|
1072
|
+
def initialize(totalcount=nil, instancenodeslist=nil, requestid=nil)
|
1073
|
+
@TotalCount = totalcount
|
1074
|
+
@InstanceNodesList = instancenodeslist
|
1075
|
+
@RequestId = requestid
|
1076
|
+
end
|
1077
|
+
|
1078
|
+
def deserialize(params)
|
1079
|
+
@TotalCount = params['TotalCount']
|
1080
|
+
unless params['InstanceNodesList'].nil?
|
1081
|
+
@InstanceNodesList = []
|
1082
|
+
params['InstanceNodesList'].each do |i|
|
1083
|
+
instancenode_tmp = InstanceNode.new
|
1084
|
+
instancenode_tmp.deserialize(i)
|
1085
|
+
@InstanceNodesList << instancenode_tmp
|
1086
|
+
end
|
1087
|
+
end
|
1088
|
+
@RequestId = params['RequestId']
|
1089
|
+
end
|
1090
|
+
end
|
1091
|
+
|
1024
1092
|
# DescribeInstance请求参数结构体
|
1025
1093
|
class DescribeInstanceRequest < TencentCloud::Common::AbstractModel
|
1026
1094
|
# @param InstanceId: 集群实例ID
|
@@ -1391,6 +1459,30 @@ module TencentCloud
|
|
1391
1459
|
end
|
1392
1460
|
end
|
1393
1461
|
|
1462
|
+
# 集群分组信息描述
|
1463
|
+
class GroupInfo < TencentCloud::Common::AbstractModel
|
1464
|
+
# @param GroupName: 分组名称
|
1465
|
+
# @type GroupName: String
|
1466
|
+
# @param ShardName: 分片变量名称
|
1467
|
+
# @type ShardName: String
|
1468
|
+
# @param ReplicaName: 副本变量名称
|
1469
|
+
# @type ReplicaName: String
|
1470
|
+
|
1471
|
+
attr_accessor :GroupName, :ShardName, :ReplicaName
|
1472
|
+
|
1473
|
+
def initialize(groupname=nil, shardname=nil, replicaname=nil)
|
1474
|
+
@GroupName = groupname
|
1475
|
+
@ShardName = shardname
|
1476
|
+
@ReplicaName = replicaname
|
1477
|
+
end
|
1478
|
+
|
1479
|
+
def deserialize(params)
|
1480
|
+
@GroupName = params['GroupName']
|
1481
|
+
@ShardName = params['ShardName']
|
1482
|
+
@ReplicaName = params['ReplicaName']
|
1483
|
+
end
|
1484
|
+
end
|
1485
|
+
|
1394
1486
|
# 集群配置信息
|
1395
1487
|
class InstanceConfigInfo < TencentCloud::Common::AbstractModel
|
1396
1488
|
# @param ConfKey: 配置项名称
|
@@ -1735,6 +1827,67 @@ module TencentCloud
|
|
1735
1827
|
end
|
1736
1828
|
end
|
1737
1829
|
|
1830
|
+
# 实例节点描述信息
|
1831
|
+
class InstanceNode < TencentCloud::Common::AbstractModel
|
1832
|
+
# @param Ip: IP地址
|
1833
|
+
# @type Ip: String
|
1834
|
+
# @param Spec: 机型,如 S1
|
1835
|
+
# @type Spec: String
|
1836
|
+
# @param Core: cpu核数
|
1837
|
+
# @type Core: Integer
|
1838
|
+
# @param Memory: 内存大小
|
1839
|
+
# @type Memory: Integer
|
1840
|
+
# @param DiskType: 磁盘类型
|
1841
|
+
# @type DiskType: String
|
1842
|
+
# @param DiskSize: 磁盘大小
|
1843
|
+
# @type DiskSize: Integer
|
1844
|
+
# @param Cluster: 所属clickhouse cluster名称
|
1845
|
+
# @type Cluster: String
|
1846
|
+
# @param NodeGroups: 节点所属的分组信息
|
1847
|
+
# @type NodeGroups: Array
|
1848
|
+
# @param Rip: VPC IP
|
1849
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1850
|
+
# @type Rip: String
|
1851
|
+
# @param IsCHProxy: ture的时候表示该节点上部署了chproxy进程
|
1852
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1853
|
+
# @type IsCHProxy: Boolean
|
1854
|
+
|
1855
|
+
attr_accessor :Ip, :Spec, :Core, :Memory, :DiskType, :DiskSize, :Cluster, :NodeGroups, :Rip, :IsCHProxy
|
1856
|
+
|
1857
|
+
def initialize(ip=nil, spec=nil, core=nil, memory=nil, disktype=nil, disksize=nil, cluster=nil, nodegroups=nil, rip=nil, ischproxy=nil)
|
1858
|
+
@Ip = ip
|
1859
|
+
@Spec = spec
|
1860
|
+
@Core = core
|
1861
|
+
@Memory = memory
|
1862
|
+
@DiskType = disktype
|
1863
|
+
@DiskSize = disksize
|
1864
|
+
@Cluster = cluster
|
1865
|
+
@NodeGroups = nodegroups
|
1866
|
+
@Rip = rip
|
1867
|
+
@IsCHProxy = ischproxy
|
1868
|
+
end
|
1869
|
+
|
1870
|
+
def deserialize(params)
|
1871
|
+
@Ip = params['Ip']
|
1872
|
+
@Spec = params['Spec']
|
1873
|
+
@Core = params['Core']
|
1874
|
+
@Memory = params['Memory']
|
1875
|
+
@DiskType = params['DiskType']
|
1876
|
+
@DiskSize = params['DiskSize']
|
1877
|
+
@Cluster = params['Cluster']
|
1878
|
+
unless params['NodeGroups'].nil?
|
1879
|
+
@NodeGroups = []
|
1880
|
+
params['NodeGroups'].each do |i|
|
1881
|
+
groupinfo_tmp = GroupInfo.new
|
1882
|
+
groupinfo_tmp.deserialize(i)
|
1883
|
+
@NodeGroups << groupinfo_tmp
|
1884
|
+
end
|
1885
|
+
end
|
1886
|
+
@Rip = params['Rip']
|
1887
|
+
@IsCHProxy = params['IsCHProxy']
|
1888
|
+
end
|
1889
|
+
end
|
1890
|
+
|
1738
1891
|
# 集群状态抽象后的结构体
|
1739
1892
|
class InstanceStateInfo < TencentCloud::Common::AbstractModel
|
1740
1893
|
# @param InstanceState: 集群状态,例如:Serving
|
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.742
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|