tencentcloud-sdk-cdwdoris 3.0.725

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 58c454a3f4b24c7bb1f37462d9ecb3123a5e6a0d
4
+ data.tar.gz: 2463437812175a0364ea512210bdda9e04b71949
5
+ SHA512:
6
+ metadata.gz: b140c37ec51b2753aea2780f2af71b123c44ee8e9d4f2c1f4a5f884e46bd962940c9b4b872208350dcc81ace35f94561cf7937fb4a0682b816206a4501d770e7
7
+ data.tar.gz: fef343d5c08e14431438029d2013a3086bb1d7221024d35bb3ef74e7d0020f2b16e66d99141a7ce6fbafdfe548c6e14f4916ec33486223f300846f163d96e676
data/lib/VERSION ADDED
@@ -0,0 +1 @@
1
+ 3.0.725
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'tencentcloud-sdk-common'
4
+
5
+ require_relative 'v20211228/client'
6
+ require_relative 'v20211228/models'
7
+
8
+ module TencentCloud
9
+ module Cdwdoris
10
+ end
11
+ end
@@ -0,0 +1,108 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'json'
18
+
19
+ module TencentCloud
20
+ module Cdwdoris
21
+ module V20211228
22
+ class Client < TencentCloud::Common::AbstractClient
23
+
24
+ def initialize(credential, region, profile = nil)
25
+ api_version = '2021-12-28'
26
+ api_endpoint = 'cdwdoris.tencentcloudapi.com'
27
+ sdk_version = 'CDWDORIS_' + File.read(File.expand_path('../VERSION', __dir__)).strip
28
+ super(credential, region, api_version, api_endpoint, sdk_version, profile)
29
+ end
30
+
31
+
32
+ # 根据实例ID查询某个实例的具体信息
33
+
34
+ # @param request: Request instance for DescribeInstance.
35
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceRequest`
36
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceResponse`
37
+ def DescribeInstance(request)
38
+ body = send_request('DescribeInstance', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = DescribeInstanceResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
56
+ # 获取实例节点信息列表
57
+
58
+ # @param request: Request instance for DescribeInstanceNodes.
59
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceNodesRequest`
60
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstanceNodesResponse`
61
+ def DescribeInstanceNodes(request)
62
+ body = send_request('DescribeInstanceNodes', request.serialize)
63
+ response = JSON.parse(body)
64
+ if response['Response'].key?('Error') == false
65
+ model = DescribeInstanceNodesResponse.new
66
+ model.deserialize(response['Response'])
67
+ model
68
+ else
69
+ code = response['Response']['Error']['Code']
70
+ message = response['Response']['Error']['Message']
71
+ reqid = response['Response']['RequestId']
72
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
73
+ end
74
+ rescue TencentCloud::Common::TencentCloudSDKException => e
75
+ raise e
76
+ rescue StandardError => e
77
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
78
+ end
79
+
80
+ # 获取实例列表
81
+
82
+ # @param request: Request instance for DescribeInstances.
83
+ # @type request: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstancesRequest`
84
+ # @rtype: :class:`Tencentcloud::cdwdoris::V20211228::DescribeInstancesResponse`
85
+ def DescribeInstances(request)
86
+ body = send_request('DescribeInstances', request.serialize)
87
+ response = JSON.parse(body)
88
+ if response['Response'].key?('Error') == false
89
+ model = DescribeInstancesResponse.new
90
+ model.deserialize(response['Response'])
91
+ model
92
+ else
93
+ code = response['Response']['Error']['Code']
94
+ message = response['Response']['Error']['Message']
95
+ reqid = response['Response']['RequestId']
96
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
97
+ end
98
+ rescue TencentCloud::Common::TencentCloudSDKException => e
99
+ raise e
100
+ rescue StandardError => e
101
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
102
+ end
103
+
104
+
105
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,617 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Cdwdoris
19
+ module V20211228
20
+ # 集群内节点的规格磁盘规格描述
21
+ class AttachCBSSpec < TencentCloud::Common::AbstractModel
22
+ # @param DiskType: 节点磁盘类型,例如“CLOUD_SSD”\"CLOUD_PREMIUM"
23
+ # @type DiskType: String
24
+ # @param DiskSize: 磁盘容量,单位G
25
+ # @type DiskSize: Integer
26
+ # @param DiskCount: 磁盘总数
27
+ # @type DiskCount: Integer
28
+ # @param DiskDesc: 描述
29
+ # @type DiskDesc: String
30
+
31
+ attr_accessor :DiskType, :DiskSize, :DiskCount, :DiskDesc
32
+
33
+ def initialize(disktype=nil, disksize=nil, diskcount=nil, diskdesc=nil)
34
+ @DiskType = disktype
35
+ @DiskSize = disksize
36
+ @DiskCount = diskcount
37
+ @DiskDesc = diskdesc
38
+ end
39
+
40
+ def deserialize(params)
41
+ @DiskType = params['DiskType']
42
+ @DiskSize = params['DiskSize']
43
+ @DiskCount = params['DiskCount']
44
+ @DiskDesc = params['DiskDesc']
45
+ end
46
+ end
47
+
48
+ # DescribeInstanceNodes请求参数结构体
49
+ class DescribeInstanceNodesRequest < TencentCloud::Common::AbstractModel
50
+ # @param InstanceId: 集群实例ID
51
+ # @type InstanceId: String
52
+ # @param NodeRole: 集群角色类型,默认为 "data"数据节点
53
+ # @type NodeRole: String
54
+ # @param Offset: 分页参数,第一页为0,第二页为10
55
+ # @type Offset: Integer
56
+ # @param Limit: 分页参数,分页步长,默认为10
57
+ # @type Limit: Integer
58
+ # @param DisplayPolicy: 展现策略,All时显示所有
59
+ # @type DisplayPolicy: String
60
+
61
+ attr_accessor :InstanceId, :NodeRole, :Offset, :Limit, :DisplayPolicy
62
+
63
+ def initialize(instanceid=nil, noderole=nil, offset=nil, limit=nil, displaypolicy=nil)
64
+ @InstanceId = instanceid
65
+ @NodeRole = noderole
66
+ @Offset = offset
67
+ @Limit = limit
68
+ @DisplayPolicy = displaypolicy
69
+ end
70
+
71
+ def deserialize(params)
72
+ @InstanceId = params['InstanceId']
73
+ @NodeRole = params['NodeRole']
74
+ @Offset = params['Offset']
75
+ @Limit = params['Limit']
76
+ @DisplayPolicy = params['DisplayPolicy']
77
+ end
78
+ end
79
+
80
+ # DescribeInstanceNodes返回参数结构体
81
+ class DescribeInstanceNodesResponse < TencentCloud::Common::AbstractModel
82
+ # @param TotalCount: 总数
83
+ # @type TotalCount: Integer
84
+ # @param InstanceNodesList: 实例节点总数
85
+ # 注意:此字段可能返回 null,表示取不到有效值。
86
+ # @type InstanceNodesList: Array
87
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
88
+ # @type RequestId: String
89
+
90
+ attr_accessor :TotalCount, :InstanceNodesList, :RequestId
91
+
92
+ def initialize(totalcount=nil, instancenodeslist=nil, requestid=nil)
93
+ @TotalCount = totalcount
94
+ @InstanceNodesList = instancenodeslist
95
+ @RequestId = requestid
96
+ end
97
+
98
+ def deserialize(params)
99
+ @TotalCount = params['TotalCount']
100
+ unless params['InstanceNodesList'].nil?
101
+ @InstanceNodesList = []
102
+ params['InstanceNodesList'].each do |i|
103
+ instancenode_tmp = InstanceNode.new
104
+ instancenode_tmp.deserialize(i)
105
+ @InstanceNodesList << instancenode_tmp
106
+ end
107
+ end
108
+ @RequestId = params['RequestId']
109
+ end
110
+ end
111
+
112
+ # DescribeInstance请求参数结构体
113
+ class DescribeInstanceRequest < TencentCloud::Common::AbstractModel
114
+ # @param InstanceId: 集群实例ID
115
+ # @type InstanceId: String
116
+
117
+ attr_accessor :InstanceId
118
+
119
+ def initialize(instanceid=nil)
120
+ @InstanceId = instanceid
121
+ end
122
+
123
+ def deserialize(params)
124
+ @InstanceId = params['InstanceId']
125
+ end
126
+ end
127
+
128
+ # DescribeInstance返回参数结构体
129
+ class DescribeInstanceResponse < TencentCloud::Common::AbstractModel
130
+ # @param InstanceInfo: 实例描述信息
131
+ # @type InstanceInfo: :class:`Tencentcloud::Cdwdoris.v20211228.models.InstanceInfo`
132
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
133
+ # @type RequestId: String
134
+
135
+ attr_accessor :InstanceInfo, :RequestId
136
+
137
+ def initialize(instanceinfo=nil, requestid=nil)
138
+ @InstanceInfo = instanceinfo
139
+ @RequestId = requestid
140
+ end
141
+
142
+ def deserialize(params)
143
+ unless params['InstanceInfo'].nil?
144
+ @InstanceInfo = InstanceInfo.new
145
+ @InstanceInfo.deserialize(params['InstanceInfo'])
146
+ end
147
+ @RequestId = params['RequestId']
148
+ end
149
+ end
150
+
151
+ # DescribeInstances请求参数结构体
152
+ class DescribeInstancesRequest < TencentCloud::Common::AbstractModel
153
+ # @param SearchInstanceId: 搜索的集群id名称
154
+ # @type SearchInstanceId: String
155
+ # @param SearchInstanceName: 搜索的集群name
156
+ # @type SearchInstanceName: String
157
+ # @param Offset: 分页参数,第一页为0,第二页为10
158
+ # @type Offset: Integer
159
+ # @param Limit: 分页参数,分页步长,默认为10
160
+ # @type Limit: Integer
161
+ # @param SearchTags: 搜索标签列表
162
+ # @type SearchTags: Array
163
+
164
+ attr_accessor :SearchInstanceId, :SearchInstanceName, :Offset, :Limit, :SearchTags
165
+
166
+ def initialize(searchinstanceid=nil, searchinstancename=nil, offset=nil, limit=nil, searchtags=nil)
167
+ @SearchInstanceId = searchinstanceid
168
+ @SearchInstanceName = searchinstancename
169
+ @Offset = offset
170
+ @Limit = limit
171
+ @SearchTags = searchtags
172
+ end
173
+
174
+ def deserialize(params)
175
+ @SearchInstanceId = params['SearchInstanceId']
176
+ @SearchInstanceName = params['SearchInstanceName']
177
+ @Offset = params['Offset']
178
+ @Limit = params['Limit']
179
+ unless params['SearchTags'].nil?
180
+ @SearchTags = []
181
+ params['SearchTags'].each do |i|
182
+ searchtags_tmp = SearchTags.new
183
+ searchtags_tmp.deserialize(i)
184
+ @SearchTags << searchtags_tmp
185
+ end
186
+ end
187
+ end
188
+ end
189
+
190
+ # DescribeInstances返回参数结构体
191
+ class DescribeInstancesResponse < TencentCloud::Common::AbstractModel
192
+ # @param TotalCount: 实例总数
193
+ # @type TotalCount: Integer
194
+ # @param InstancesList: 实例数组
195
+ # @type InstancesList: Array
196
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
197
+ # @type RequestId: String
198
+
199
+ attr_accessor :TotalCount, :InstancesList, :RequestId
200
+
201
+ def initialize(totalcount=nil, instanceslist=nil, requestid=nil)
202
+ @TotalCount = totalcount
203
+ @InstancesList = instanceslist
204
+ @RequestId = requestid
205
+ end
206
+
207
+ def deserialize(params)
208
+ @TotalCount = params['TotalCount']
209
+ unless params['InstancesList'].nil?
210
+ @InstancesList = []
211
+ params['InstancesList'].each do |i|
212
+ instanceinfo_tmp = InstanceInfo.new
213
+ instanceinfo_tmp.deserialize(i)
214
+ @InstancesList << instanceinfo_tmp
215
+ end
216
+ end
217
+ @RequestId = params['RequestId']
218
+ end
219
+ end
220
+
221
+ # 实例描述信息
222
+ class InstanceInfo < TencentCloud::Common::AbstractModel
223
+ # @param InstanceId: 集群实例ID, "cdw-xxxx" 字符串类型
224
+ # 注意:此字段可能返回 null,表示取不到有效值。
225
+ # @type InstanceId: String
226
+ # @param InstanceName: 集群实例名称
227
+ # 注意:此字段可能返回 null,表示取不到有效值。
228
+ # @type InstanceName: String
229
+ # @param Status: 状态,
230
+ # Init 创建中; Serving 运行中;
231
+ # Deleted已销毁;Deleting 销毁中;
232
+ # Modify 集群变更中;
233
+ # 注意:此字段可能返回 null,表示取不到有效值。
234
+ # @type Status: String
235
+ # @param Version: 版本
236
+ # 注意:此字段可能返回 null,表示取不到有效值。
237
+ # @type Version: String
238
+ # @param Region: 地域, ap-guangzhou
239
+ # 注意:此字段可能返回 null,表示取不到有效值。
240
+ # @type Region: String
241
+ # @param Zone: 可用区, ap-guangzhou-3
242
+ # 注意:此字段可能返回 null,表示取不到有效值。
243
+ # @type Zone: String
244
+ # @param VpcId: 私有网络名称
245
+ # 注意:此字段可能返回 null,表示取不到有效值。
246
+ # @type VpcId: String
247
+ # @param SubnetId: 子网名称
248
+ # 注意:此字段可能返回 null,表示取不到有效值。
249
+ # @type SubnetId: String
250
+ # @param PayMode: 付费类型,"hour", "prepay"
251
+ # 注意:此字段可能返回 null,表示取不到有效值。
252
+ # @type PayMode: String
253
+ # @param CreateTime: 创建时间
254
+ # 注意:此字段可能返回 null,表示取不到有效值。
255
+ # @type CreateTime: String
256
+ # @param ExpireTime: 过期时间
257
+ # 注意:此字段可能返回 null,表示取不到有效值。
258
+ # @type ExpireTime: String
259
+ # @param MasterSummary: 数据节点描述信息
260
+ # 注意:此字段可能返回 null,表示取不到有效值。
261
+ # @type MasterSummary: :class:`Tencentcloud::Cdwdoris.v20211228.models.NodesSummary`
262
+ # @param CoreSummary: zookeeper节点描述信息
263
+ # 注意:此字段可能返回 null,表示取不到有效值。
264
+ # @type CoreSummary: :class:`Tencentcloud::Cdwdoris.v20211228.models.NodesSummary`
265
+ # @param HA: 高可用,“true" "false"
266
+ # 注意:此字段可能返回 null,表示取不到有效值。
267
+ # @type HA: String
268
+ # @param HaType: 高可用类型:
269
+ # 0:非高可用
270
+ # 1:读高可用
271
+ # 2:读写高可用。
272
+ # 注意:此字段可能返回 null,表示取不到有效值。
273
+ # @type HaType: Integer
274
+ # @param AccessInfo: 访问地址,例如 "10.0.0.1:9000"
275
+ # 注意:此字段可能返回 null,表示取不到有效值。
276
+ # @type AccessInfo: String
277
+ # @param Id: 记录ID,数值型
278
+ # 注意:此字段可能返回 null,表示取不到有效值。
279
+ # @type Id: Integer
280
+ # @param RegionId: regionId, 表示地域
281
+ # 注意:此字段可能返回 null,表示取不到有效值。
282
+ # @type RegionId: Integer
283
+ # @param ZoneDesc: 可用区说明,例如 "广州二区"
284
+ # 注意:此字段可能返回 null,表示取不到有效值。
285
+ # @type ZoneDesc: String
286
+ # @param FlowMsg: 错误流程说明信息
287
+ # 注意:此字段可能返回 null,表示取不到有效值。
288
+ # @type FlowMsg: String
289
+ # @param StatusDesc: 状态描述,例如“运行中”等
290
+ # 注意:此字段可能返回 null,表示取不到有效值。
291
+ # @type StatusDesc: String
292
+ # @param RenewFlag: 自动续费标记
293
+ # 注意:此字段可能返回 null,表示取不到有效值。
294
+ # @type RenewFlag: Boolean
295
+ # @param Tags: 标签列表
296
+ # 注意:此字段可能返回 null,表示取不到有效值。
297
+ # @type Tags: Array
298
+ # @param Monitor: 监控信息
299
+ # 注意:此字段可能返回 null,表示取不到有效值。
300
+ # @type Monitor: String
301
+ # @param HasClsTopic: 是否开通日志
302
+ # 注意:此字段可能返回 null,表示取不到有效值。
303
+ # @type HasClsTopic: Boolean
304
+ # @param ClsTopicId: 日志主题ID
305
+ # 注意:此字段可能返回 null,表示取不到有效值。
306
+ # @type ClsTopicId: String
307
+ # @param ClsLogSetId: 日志集ID
308
+ # 注意:此字段可能返回 null,表示取不到有效值。
309
+ # @type ClsLogSetId: String
310
+ # @param EnableXMLConfig: 是否支持xml配置管理
311
+ # 注意:此字段可能返回 null,表示取不到有效值。
312
+ # @type EnableXMLConfig: Integer
313
+ # @param RegionDesc: 区域
314
+ # 注意:此字段可能返回 null,表示取不到有效值。
315
+ # @type RegionDesc: String
316
+ # @param Eip: 弹性网卡地址
317
+ # 注意:此字段可能返回 null,表示取不到有效值。
318
+ # @type Eip: String
319
+ # @param CosMoveFactor: 冷热分层系数
320
+ # 注意:此字段可能返回 null,表示取不到有效值。
321
+ # @type CosMoveFactor: Integer
322
+ # @param Kind: external/local/yunti
323
+ # 注意:此字段可能返回 null,表示取不到有效值。
324
+ # @type Kind: String
325
+ # @param CosBucketName: cos桶
326
+ # 注意:此字段可能返回 null,表示取不到有效值。
327
+ # @type CosBucketName: String
328
+ # @param CanAttachCbs: cbs
329
+ # 注意:此字段可能返回 null,表示取不到有效值。
330
+ # @type CanAttachCbs: Boolean
331
+ # @param BuildVersion: 小版本
332
+ # 注意:此字段可能返回 null,表示取不到有效值。
333
+ # @type BuildVersion: String
334
+ # @param Components: 组件信息
335
+ # 注意:此字段可能返回 null,表示取不到有效值。
336
+ # @type Components: String
337
+
338
+ attr_accessor :InstanceId, :InstanceName, :Status, :Version, :Region, :Zone, :VpcId, :SubnetId, :PayMode, :CreateTime, :ExpireTime, :MasterSummary, :CoreSummary, :HA, :HaType, :AccessInfo, :Id, :RegionId, :ZoneDesc, :FlowMsg, :StatusDesc, :RenewFlag, :Tags, :Monitor, :HasClsTopic, :ClsTopicId, :ClsLogSetId, :EnableXMLConfig, :RegionDesc, :Eip, :CosMoveFactor, :Kind, :CosBucketName, :CanAttachCbs, :BuildVersion, :Components
339
+
340
+ def initialize(instanceid=nil, instancename=nil, status=nil, version=nil, region=nil, zone=nil, vpcid=nil, subnetid=nil, paymode=nil, createtime=nil, expiretime=nil, mastersummary=nil, coresummary=nil, ha=nil, hatype=nil, accessinfo=nil, id=nil, regionid=nil, zonedesc=nil, flowmsg=nil, statusdesc=nil, renewflag=nil, tags=nil, monitor=nil, hasclstopic=nil, clstopicid=nil, clslogsetid=nil, enablexmlconfig=nil, regiondesc=nil, eip=nil, cosmovefactor=nil, kind=nil, cosbucketname=nil, canattachcbs=nil, buildversion=nil, components=nil)
341
+ @InstanceId = instanceid
342
+ @InstanceName = instancename
343
+ @Status = status
344
+ @Version = version
345
+ @Region = region
346
+ @Zone = zone
347
+ @VpcId = vpcid
348
+ @SubnetId = subnetid
349
+ @PayMode = paymode
350
+ @CreateTime = createtime
351
+ @ExpireTime = expiretime
352
+ @MasterSummary = mastersummary
353
+ @CoreSummary = coresummary
354
+ @HA = ha
355
+ @HaType = hatype
356
+ @AccessInfo = accessinfo
357
+ @Id = id
358
+ @RegionId = regionid
359
+ @ZoneDesc = zonedesc
360
+ @FlowMsg = flowmsg
361
+ @StatusDesc = statusdesc
362
+ @RenewFlag = renewflag
363
+ @Tags = tags
364
+ @Monitor = monitor
365
+ @HasClsTopic = hasclstopic
366
+ @ClsTopicId = clstopicid
367
+ @ClsLogSetId = clslogsetid
368
+ @EnableXMLConfig = enablexmlconfig
369
+ @RegionDesc = regiondesc
370
+ @Eip = eip
371
+ @CosMoveFactor = cosmovefactor
372
+ @Kind = kind
373
+ @CosBucketName = cosbucketname
374
+ @CanAttachCbs = canattachcbs
375
+ @BuildVersion = buildversion
376
+ @Components = components
377
+ end
378
+
379
+ def deserialize(params)
380
+ @InstanceId = params['InstanceId']
381
+ @InstanceName = params['InstanceName']
382
+ @Status = params['Status']
383
+ @Version = params['Version']
384
+ @Region = params['Region']
385
+ @Zone = params['Zone']
386
+ @VpcId = params['VpcId']
387
+ @SubnetId = params['SubnetId']
388
+ @PayMode = params['PayMode']
389
+ @CreateTime = params['CreateTime']
390
+ @ExpireTime = params['ExpireTime']
391
+ unless params['MasterSummary'].nil?
392
+ @MasterSummary = NodesSummary.new
393
+ @MasterSummary.deserialize(params['MasterSummary'])
394
+ end
395
+ unless params['CoreSummary'].nil?
396
+ @CoreSummary = NodesSummary.new
397
+ @CoreSummary.deserialize(params['CoreSummary'])
398
+ end
399
+ @HA = params['HA']
400
+ @HaType = params['HaType']
401
+ @AccessInfo = params['AccessInfo']
402
+ @Id = params['Id']
403
+ @RegionId = params['RegionId']
404
+ @ZoneDesc = params['ZoneDesc']
405
+ @FlowMsg = params['FlowMsg']
406
+ @StatusDesc = params['StatusDesc']
407
+ @RenewFlag = params['RenewFlag']
408
+ unless params['Tags'].nil?
409
+ @Tags = []
410
+ params['Tags'].each do |i|
411
+ tag_tmp = Tag.new
412
+ tag_tmp.deserialize(i)
413
+ @Tags << tag_tmp
414
+ end
415
+ end
416
+ @Monitor = params['Monitor']
417
+ @HasClsTopic = params['HasClsTopic']
418
+ @ClsTopicId = params['ClsTopicId']
419
+ @ClsLogSetId = params['ClsLogSetId']
420
+ @EnableXMLConfig = params['EnableXMLConfig']
421
+ @RegionDesc = params['RegionDesc']
422
+ @Eip = params['Eip']
423
+ @CosMoveFactor = params['CosMoveFactor']
424
+ @Kind = params['Kind']
425
+ @CosBucketName = params['CosBucketName']
426
+ @CanAttachCbs = params['CanAttachCbs']
427
+ @BuildVersion = params['BuildVersion']
428
+ @Components = params['Components']
429
+ end
430
+ end
431
+
432
+ # 实例节点描述信息
433
+ class InstanceNode < TencentCloud::Common::AbstractModel
434
+ # @param Ip: IP地址
435
+ # @type Ip: String
436
+ # @param Spec: 机型,如 S1
437
+ # @type Spec: String
438
+ # @param Core: cpu核数
439
+ # @type Core: Integer
440
+ # @param Memory: 内存大小
441
+ # @type Memory: Integer
442
+ # @param DiskType: 磁盘类型
443
+ # @type DiskType: String
444
+ # @param DiskSize: 磁盘大小
445
+ # @type DiskSize: Integer
446
+ # @param Role: 所属clickhouse cluster名称
447
+ # @type Role: String
448
+ # @param Status: 状态
449
+ # 注意:此字段可能返回 null,表示取不到有效值。
450
+ # @type Status: String
451
+ # @param Rip: rip
452
+ # 注意:此字段可能返回 null,表示取不到有效值。
453
+ # @type Rip: String
454
+ # @param FeRole: FE节点角色
455
+ # 注意:此字段可能返回 null,表示取不到有效值。
456
+ # @type FeRole: String
457
+ # @param UUID: UUID
458
+ # 注意:此字段可能返回 null,表示取不到有效值。
459
+ # @type UUID: String
460
+
461
+ attr_accessor :Ip, :Spec, :Core, :Memory, :DiskType, :DiskSize, :Role, :Status, :Rip, :FeRole, :UUID
462
+
463
+ def initialize(ip=nil, spec=nil, core=nil, memory=nil, disktype=nil, disksize=nil, role=nil, status=nil, rip=nil, ferole=nil, uuid=nil)
464
+ @Ip = ip
465
+ @Spec = spec
466
+ @Core = core
467
+ @Memory = memory
468
+ @DiskType = disktype
469
+ @DiskSize = disksize
470
+ @Role = role
471
+ @Status = status
472
+ @Rip = rip
473
+ @FeRole = ferole
474
+ @UUID = uuid
475
+ end
476
+
477
+ def deserialize(params)
478
+ @Ip = params['Ip']
479
+ @Spec = params['Spec']
480
+ @Core = params['Core']
481
+ @Memory = params['Memory']
482
+ @DiskType = params['DiskType']
483
+ @DiskSize = params['DiskSize']
484
+ @Role = params['Role']
485
+ @Status = params['Status']
486
+ @Rip = params['Rip']
487
+ @FeRole = params['FeRole']
488
+ @UUID = params['UUID']
489
+ end
490
+ end
491
+
492
+ # 节点角色描述信息
493
+ class NodesSummary < TencentCloud::Common::AbstractModel
494
+ # @param Spec: 机型,如 S1
495
+ # @type Spec: String
496
+ # @param NodeSize: 节点数目
497
+ # @type NodeSize: Integer
498
+ # @param Core: cpu核数,单位个
499
+ # @type Core: Integer
500
+ # @param Memory: 内存大小,单位G
501
+ # @type Memory: Integer
502
+ # @param Disk: 磁盘大小,单位G
503
+ # @type Disk: Integer
504
+ # @param DiskType: 磁盘类型
505
+ # @type DiskType: String
506
+ # @param DiskDesc: 磁盘描述
507
+ # @type DiskDesc: String
508
+ # @param AttachCBSSpec: 挂载云盘信息
509
+ # 注意:此字段可能返回 null,表示取不到有效值。
510
+ # @type AttachCBSSpec: :class:`Tencentcloud::Cdwdoris.v20211228.models.AttachCBSSpec`
511
+ # @param SubProductType: 子产品名称
512
+ # 注意:此字段可能返回 null,表示取不到有效值。
513
+ # @type SubProductType: String
514
+ # @param SpecCore: 规格核数
515
+ # 注意:此字段可能返回 null,表示取不到有效值。
516
+ # @type SpecCore: Integer
517
+ # @param SpecMemory: 规格内存
518
+ # 注意:此字段可能返回 null,表示取不到有效值。
519
+ # @type SpecMemory: Integer
520
+ # @param DiskCount: 磁盘大小
521
+ # 注意:此字段可能返回 null,表示取不到有效值。
522
+ # @type DiskCount: Integer
523
+ # @param Encrypt: 是否加密
524
+ # 注意:此字段可能返回 null,表示取不到有效值。
525
+ # @type Encrypt: Integer
526
+ # @param MaxDiskSize: 最大磁盘
527
+ # 注意:此字段可能返回 null,表示取不到有效值。
528
+ # @type MaxDiskSize: Integer
529
+
530
+ attr_accessor :Spec, :NodeSize, :Core, :Memory, :Disk, :DiskType, :DiskDesc, :AttachCBSSpec, :SubProductType, :SpecCore, :SpecMemory, :DiskCount, :Encrypt, :MaxDiskSize
531
+
532
+ def initialize(spec=nil, nodesize=nil, core=nil, memory=nil, disk=nil, disktype=nil, diskdesc=nil, attachcbsspec=nil, subproducttype=nil, speccore=nil, specmemory=nil, diskcount=nil, encrypt=nil, maxdisksize=nil)
533
+ @Spec = spec
534
+ @NodeSize = nodesize
535
+ @Core = core
536
+ @Memory = memory
537
+ @Disk = disk
538
+ @DiskType = disktype
539
+ @DiskDesc = diskdesc
540
+ @AttachCBSSpec = attachcbsspec
541
+ @SubProductType = subproducttype
542
+ @SpecCore = speccore
543
+ @SpecMemory = specmemory
544
+ @DiskCount = diskcount
545
+ @Encrypt = encrypt
546
+ @MaxDiskSize = maxdisksize
547
+ end
548
+
549
+ def deserialize(params)
550
+ @Spec = params['Spec']
551
+ @NodeSize = params['NodeSize']
552
+ @Core = params['Core']
553
+ @Memory = params['Memory']
554
+ @Disk = params['Disk']
555
+ @DiskType = params['DiskType']
556
+ @DiskDesc = params['DiskDesc']
557
+ unless params['AttachCBSSpec'].nil?
558
+ @AttachCBSSpec = AttachCBSSpec.new
559
+ @AttachCBSSpec.deserialize(params['AttachCBSSpec'])
560
+ end
561
+ @SubProductType = params['SubProductType']
562
+ @SpecCore = params['SpecCore']
563
+ @SpecMemory = params['SpecMemory']
564
+ @DiskCount = params['DiskCount']
565
+ @Encrypt = params['Encrypt']
566
+ @MaxDiskSize = params['MaxDiskSize']
567
+ end
568
+ end
569
+
570
+ # 列表页搜索的标记列表
571
+ class SearchTags < TencentCloud::Common::AbstractModel
572
+ # @param TagKey: 标签的键
573
+ # @type TagKey: String
574
+ # @param TagValue: 标签的值
575
+ # @type TagValue: String
576
+ # @param AllValue: 1表示只输入标签的键,没有输入值;0表示输入键时且输入值
577
+ # @type AllValue: Integer
578
+
579
+ attr_accessor :TagKey, :TagValue, :AllValue
580
+
581
+ def initialize(tagkey=nil, tagvalue=nil, allvalue=nil)
582
+ @TagKey = tagkey
583
+ @TagValue = tagvalue
584
+ @AllValue = allvalue
585
+ end
586
+
587
+ def deserialize(params)
588
+ @TagKey = params['TagKey']
589
+ @TagValue = params['TagValue']
590
+ @AllValue = params['AllValue']
591
+ end
592
+ end
593
+
594
+ # 标签描述
595
+ class Tag < TencentCloud::Common::AbstractModel
596
+ # @param TagKey: 标签的键
597
+ # @type TagKey: String
598
+ # @param TagValue: 标签的值
599
+ # @type TagValue: String
600
+
601
+ attr_accessor :TagKey, :TagValue
602
+
603
+ def initialize(tagkey=nil, tagvalue=nil)
604
+ @TagKey = tagkey
605
+ @TagValue = tagvalue
606
+ end
607
+
608
+ def deserialize(params)
609
+ @TagKey = params['TagKey']
610
+ @TagValue = params['TagValue']
611
+ end
612
+ end
613
+
614
+ end
615
+ end
616
+ end
617
+
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: tencentcloud-sdk-cdwdoris
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.0.725
5
+ platform: ruby
6
+ authors:
7
+ - Tencent Cloud
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-12-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: tencentcloud-sdk-common
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '3.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '3.0'
27
+ description: Tencent Cloud Ruby SDK is the official software development kit, which
28
+ allows Ruby developers to write software that makes use of Tencent Cloud service
29
+ CDWDORIS.
30
+ email:
31
+ - tencentcloudapi@tencent.com
32
+ executables: []
33
+ extensions: []
34
+ extra_rdoc_files: []
35
+ files:
36
+ - lib/tencentcloud-sdk-cdwdoris.rb
37
+ - lib/v20211228/client.rb
38
+ - lib/v20211228/models.rb
39
+ - lib/VERSION
40
+ homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
+ licenses:
42
+ - Apache-2.0
43
+ metadata:
44
+ source_code_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/tencentcloud-sdk-cdwdoris
45
+ changelog_uri: https://github.com/TencentCloud/tencentcloud-sdk-ruby/blob/master/CHANGELOG.md
46
+ post_install_message:
47
+ rdoc_options: []
48
+ require_paths:
49
+ - lib
50
+ required_ruby_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - '>='
58
+ - !ruby/object:Gem::Version
59
+ version: '0'
60
+ requirements: []
61
+ rubyforge_project:
62
+ rubygems_version: 2.0.14
63
+ signing_key:
64
+ specification_version: 4
65
+ summary: Tencent Cloud SDK for Ruby - CDWDORIS
66
+ test_files: []