tencentcloud-sdk-cdwch 3.0.739 → 3.0.741

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: 7bf01e2ad24bbb8bf98fee7a30c50412bcbbba8b
4
- data.tar.gz: 71be4af9376864278ee71155b4e4388d99ab9055
3
+ metadata.gz: 3d6ff31ebb5b91c8e56471654337a86887cfc935
4
+ data.tar.gz: fab4d1d7b10ec1c9fc81cfce65b2497281e970f5
5
5
  SHA512:
6
- metadata.gz: 0715d106e83a2b5a16755ab41db9db779fd9424e83717ee54a9d94f3866df824b0305930b06f72373231e2ba660034727360cccfb1bd8977b594024573b207e3
7
- data.tar.gz: 806395a9bea12165542b7465bc705efd12783b8ebefcecb418024926a8515cbd3013234038a48b2caf4da34b5b8115d346b080ad1d1d83003ea67b9c62b2d534
6
+ metadata.gz: c562b6bc078a0cf66e1019c842457022fbc8a55fab0734111cbbb7e2c82406407b93cbc49b244f749093d4460392ccf563335b90b811f60a605d6598c857621e
7
+ data.tar.gz: 92c7f54e3807c84256e49031a223100d23ee122c455dc61e56a567e61ab415f64511fca251385f45aeec9fdc1c8b3e368b48a5c20c09e58703da3e2ab9e88a6f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.739
1
+ 3.0.741
@@ -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.
@@ -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
@@ -1244,19 +1312,23 @@ module TencentCloud
1244
1312
  # @type PayMode: String
1245
1313
  # @param IsElastic: 是否弹性ck
1246
1314
  # @type IsElastic: Boolean
1315
+ # @param CaseType: 是否是购买页面需要的spec
1316
+ # @type CaseType: Integer
1247
1317
 
1248
- attr_accessor :Zone, :PayMode, :IsElastic
1318
+ attr_accessor :Zone, :PayMode, :IsElastic, :CaseType
1249
1319
 
1250
- def initialize(zone=nil, paymode=nil, iselastic=nil)
1320
+ def initialize(zone=nil, paymode=nil, iselastic=nil, casetype=nil)
1251
1321
  @Zone = zone
1252
1322
  @PayMode = paymode
1253
1323
  @IsElastic = iselastic
1324
+ @CaseType = casetype
1254
1325
  end
1255
1326
 
1256
1327
  def deserialize(params)
1257
1328
  @Zone = params['Zone']
1258
1329
  @PayMode = params['PayMode']
1259
1330
  @IsElastic = params['IsElastic']
1331
+ @CaseType = params['CaseType']
1260
1332
  end
1261
1333
  end
1262
1334
 
@@ -1387,6 +1459,30 @@ module TencentCloud
1387
1459
  end
1388
1460
  end
1389
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
+
1390
1486
  # 集群配置信息
1391
1487
  class InstanceConfigInfo < TencentCloud::Common::AbstractModel
1392
1488
  # @param ConfKey: 配置项名称
@@ -1731,6 +1827,67 @@ module TencentCloud
1731
1827
  end
1732
1828
  end
1733
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
+
1734
1891
  # 集群状态抽象后的结构体
1735
1892
  class InstanceStateInfo < TencentCloud::Common::AbstractModel
1736
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.739
4
+ version: 3.0.741
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-12-31 00:00:00.000000000 Z
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