tencentcloud-sdk-ckafka 1.0.200

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4236 @@
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 Ckafka
19
+ module V20190819
20
+ # ACL对象实体
21
+ class Acl < TencentCloud::Common::AbstractModel
22
+ # @param ResourceType: Acl资源类型,(0:UNKNOWN,1:ANY,2:TOPIC,3:GROUP,4:CLUSTER,5:TRANSACTIONAL_ID)当前只有TOPIC,
23
+ # @type ResourceType: Integer
24
+ # @param ResourceName: 资源名称,和resourceType相关如当resourceType为TOPIC时,则该字段表示topic名称,当resourceType为GROUP时,该字段表示group名称
25
+ # @type ResourceName: String
26
+ # @param Principal: 用户列表,默认为User:*,表示任何user都可以访问,当前用户只能是用户列表中包含的用户
27
+ # 注意:此字段可能返回 null,表示取不到有效值。
28
+ # @type Principal: String
29
+ # @param Host: 默认为*,表示任何host都可以访问,当前ckafka不支持host为*,但是后面开源kafka的产品化会直接支持
30
+ # 注意:此字段可能返回 null,表示取不到有效值。
31
+ # @type Host: String
32
+ # @param Operation: Acl操作方式(0:UNKNOWN,1:ANY,2:ALL,3:READ,4:WRITE,5:CREATE,6:DELETE,7:ALTER,8:DESCRIBE,9:CLUSTER_ACTION,10:DESCRIBE_CONFIGS,11:ALTER_CONFIGS,12:IDEMPOTEN_WRITE)
33
+ # @type Operation: Integer
34
+ # @param PermissionType: 权限类型(0:UNKNOWN,1:ANY,2:DENY,3:ALLOW)
35
+ # @type PermissionType: Integer
36
+
37
+ attr_accessor :ResourceType, :ResourceName, :Principal, :Host, :Operation, :PermissionType
38
+
39
+ def initialize(resourcetype=nil, resourcename=nil, principal=nil, host=nil, operation=nil, permissiontype=nil)
40
+ @ResourceType = resourcetype
41
+ @ResourceName = resourcename
42
+ @Principal = principal
43
+ @Host = host
44
+ @Operation = operation
45
+ @PermissionType = permissiontype
46
+ end
47
+
48
+ def deserialize(params)
49
+ @ResourceType = params['ResourceType']
50
+ @ResourceName = params['ResourceName']
51
+ @Principal = params['Principal']
52
+ @Host = params['Host']
53
+ @Operation = params['Operation']
54
+ @PermissionType = params['PermissionType']
55
+ end
56
+ end
57
+
58
+ # ACL返回结果集
59
+ class AclResponse < TencentCloud::Common::AbstractModel
60
+ # @param TotalCount: 符合条件的总数据条数
61
+ # @type TotalCount: Integer
62
+ # @param AclList: ACL列表
63
+ # 注意:此字段可能返回 null,表示取不到有效值。
64
+ # @type AclList: Array
65
+
66
+ attr_accessor :TotalCount, :AclList
67
+
68
+ def initialize(totalcount=nil, acllist=nil)
69
+ @TotalCount = totalcount
70
+ @AclList = acllist
71
+ end
72
+
73
+ def deserialize(params)
74
+ @TotalCount = params['TotalCount']
75
+ unless params['AclList'].nil?
76
+ @AclList = []
77
+ params['AclList'].each do |i|
78
+ acl_tmp = Acl.new
79
+ acl_tmp.deserialize(i)
80
+ @AclList << acl_tmp
81
+ end
82
+ end
83
+ end
84
+ end
85
+
86
+ # AclRule列表接口出参
87
+ class AclRule < TencentCloud::Common::AbstractModel
88
+ # @param RuleName: Acl规则名称
89
+ # 注意:此字段可能返回 null,表示取不到有效值。
90
+ # @type RuleName: String
91
+ # @param InstanceId: 实例ID
92
+ # 注意:此字段可能返回 null,表示取不到有效值。
93
+ # @type InstanceId: String
94
+ # @param PatternType: 匹配类型,目前只支持前缀匹配,枚举值列表:PREFIXED
95
+ # 注意:此字段可能返回 null,表示取不到有效值。
96
+ # @type PatternType: String
97
+ # @param Pattern: 表示前缀匹配的前缀的值
98
+ # 注意:此字段可能返回 null,表示取不到有效值。
99
+ # @type Pattern: String
100
+ # @param ResourceType: Acl资源类型,目前只支持Topic,枚举值列表:Topic
101
+ # 注意:此字段可能返回 null,表示取不到有效值。
102
+ # @type ResourceType: String
103
+ # @param AclList: 该规则所包含的ACL信息
104
+ # 注意:此字段可能返回 null,表示取不到有效值。
105
+ # @type AclList: String
106
+ # @param CreateTimeStamp: 规则所创建的时间
107
+ # 注意:此字段可能返回 null,表示取不到有效值。
108
+ # @type CreateTimeStamp: String
109
+ # @param IsApplied: 预设ACL规则是否应用到新增的topic中
110
+ # 注意:此字段可能返回 null,表示取不到有效值。
111
+ # @type IsApplied: Integer
112
+ # @param UpdateTimeStamp: 规则更新时间
113
+ # 注意:此字段可能返回 null,表示取不到有效值。
114
+ # @type UpdateTimeStamp: String
115
+ # @param Comment: 规则的备注
116
+ # 注意:此字段可能返回 null,表示取不到有效值。
117
+ # @type Comment: String
118
+ # @param TopicName: 其中一个显示的对应的TopicName
119
+ # 注意:此字段可能返回 null,表示取不到有效值。
120
+ # @type TopicName: String
121
+ # @param TopicCount: 应用该ACL规则的Topic数
122
+ # 注意:此字段可能返回 null,表示取不到有效值。
123
+ # @type TopicCount: Integer
124
+ # @param PatternTypeTitle: patternType的中文显示
125
+ # 注意:此字段可能返回 null,表示取不到有效值。
126
+ # @type PatternTypeTitle: String
127
+
128
+ attr_accessor :RuleName, :InstanceId, :PatternType, :Pattern, :ResourceType, :AclList, :CreateTimeStamp, :IsApplied, :UpdateTimeStamp, :Comment, :TopicName, :TopicCount, :PatternTypeTitle
129
+
130
+ def initialize(rulename=nil, instanceid=nil, patterntype=nil, pattern=nil, resourcetype=nil, acllist=nil, createtimestamp=nil, isapplied=nil, updatetimestamp=nil, comment=nil, topicname=nil, topiccount=nil, patterntypetitle=nil)
131
+ @RuleName = rulename
132
+ @InstanceId = instanceid
133
+ @PatternType = patterntype
134
+ @Pattern = pattern
135
+ @ResourceType = resourcetype
136
+ @AclList = acllist
137
+ @CreateTimeStamp = createtimestamp
138
+ @IsApplied = isapplied
139
+ @UpdateTimeStamp = updatetimestamp
140
+ @Comment = comment
141
+ @TopicName = topicname
142
+ @TopicCount = topiccount
143
+ @PatternTypeTitle = patterntypetitle
144
+ end
145
+
146
+ def deserialize(params)
147
+ @RuleName = params['RuleName']
148
+ @InstanceId = params['InstanceId']
149
+ @PatternType = params['PatternType']
150
+ @Pattern = params['Pattern']
151
+ @ResourceType = params['ResourceType']
152
+ @AclList = params['AclList']
153
+ @CreateTimeStamp = params['CreateTimeStamp']
154
+ @IsApplied = params['IsApplied']
155
+ @UpdateTimeStamp = params['UpdateTimeStamp']
156
+ @Comment = params['Comment']
157
+ @TopicName = params['TopicName']
158
+ @TopicCount = params['TopicCount']
159
+ @PatternTypeTitle = params['PatternTypeTitle']
160
+ end
161
+ end
162
+
163
+ # 表示ACL 规则的四元组信息
164
+ class AclRuleInfo < TencentCloud::Common::AbstractModel
165
+ # @param Operation: Acl操作方式,枚举值(所有操作: All, 读:Read,写:Write)
166
+ # @type Operation: String
167
+ # @param PermissionType: 权限类型,(Deny,Allow)
168
+ # @type PermissionType: String
169
+ # @param Host: 默认为*,表示任何host都可以访问,当前ckafka不支持host为*和ip网段
170
+ # @type Host: String
171
+ # @param Principal: 用户列表,默认为User:*,表示任何user都可以访问,当前用户只能是用户列表中包含的用户。传入格式需要带【User:】前缀。例如用户A,传入为User:A。
172
+ # @type Principal: String
173
+
174
+ attr_accessor :Operation, :PermissionType, :Host, :Principal
175
+
176
+ def initialize(operation=nil, permissiontype=nil, host=nil, principal=nil)
177
+ @Operation = operation
178
+ @PermissionType = permissiontype
179
+ @Host = host
180
+ @Principal = principal
181
+ end
182
+
183
+ def deserialize(params)
184
+ @Operation = params['Operation']
185
+ @PermissionType = params['PermissionType']
186
+ @Host = params['Host']
187
+ @Principal = params['Principal']
188
+ end
189
+ end
190
+
191
+ # AppId的查询结果
192
+ class AppIdResponse < TencentCloud::Common::AbstractModel
193
+ # @param TotalCount: 符合要求的所有AppId数量
194
+ # @type TotalCount: Integer
195
+ # @param AppIdList: 符合要求的App Id列表
196
+ # 注意:此字段可能返回 null,表示取不到有效值。
197
+ # @type AppIdList: Array
198
+
199
+ attr_accessor :TotalCount, :AppIdList
200
+
201
+ def initialize(totalcount=nil, appidlist=nil)
202
+ @TotalCount = totalcount
203
+ @AppIdList = appidlist
204
+ end
205
+
206
+ def deserialize(params)
207
+ @TotalCount = params['TotalCount']
208
+ @AppIdList = params['AppIdList']
209
+ end
210
+ end
211
+
212
+ # 存储着分配给该消费者的 partition 信息
213
+ class Assignment < TencentCloud::Common::AbstractModel
214
+ # @param Version: assingment版本信息
215
+ # @type Version: Integer
216
+ # @param Topics: topic信息列表
217
+ # 注意:此字段可能返回 null,表示取不到有效值。
218
+ # @type Topics: Array
219
+
220
+ attr_accessor :Version, :Topics
221
+
222
+ def initialize(version=nil, topics=nil)
223
+ @Version = version
224
+ @Topics = topics
225
+ end
226
+
227
+ def deserialize(params)
228
+ @Version = params['Version']
229
+ unless params['Topics'].nil?
230
+ @Topics = []
231
+ params['Topics'].each do |i|
232
+ groupinfotopics_tmp = GroupInfoTopics.new
233
+ groupinfotopics_tmp.deserialize(i)
234
+ @Topics << groupinfotopics_tmp
235
+ end
236
+ end
237
+ end
238
+ end
239
+
240
+ # BatchCreateAcl请求参数结构体
241
+ class BatchCreateAclRequest < TencentCloud::Common::AbstractModel
242
+ # @param InstanceId: 实例ID
243
+ # @type InstanceId: String
244
+ # @param ResourceType: Acl资源类型,(2:TOPIC)
245
+ # @type ResourceType: Integer
246
+ # @param ResourceNames: 资源列表数组
247
+ # @type ResourceNames: Array
248
+ # @param RuleList: 设置的ACL规则列表
249
+ # @type RuleList: Array
250
+
251
+ attr_accessor :InstanceId, :ResourceType, :ResourceNames, :RuleList
252
+
253
+ def initialize(instanceid=nil, resourcetype=nil, resourcenames=nil, rulelist=nil)
254
+ @InstanceId = instanceid
255
+ @ResourceType = resourcetype
256
+ @ResourceNames = resourcenames
257
+ @RuleList = rulelist
258
+ end
259
+
260
+ def deserialize(params)
261
+ @InstanceId = params['InstanceId']
262
+ @ResourceType = params['ResourceType']
263
+ @ResourceNames = params['ResourceNames']
264
+ unless params['RuleList'].nil?
265
+ @RuleList = []
266
+ params['RuleList'].each do |i|
267
+ aclruleinfo_tmp = AclRuleInfo.new
268
+ aclruleinfo_tmp.deserialize(i)
269
+ @RuleList << aclruleinfo_tmp
270
+ end
271
+ end
272
+ end
273
+ end
274
+
275
+ # BatchCreateAcl返回参数结构体
276
+ class BatchCreateAclResponse < TencentCloud::Common::AbstractModel
277
+ # @param Result: 状态码
278
+ # @type Result: Integer
279
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
280
+ # @type RequestId: String
281
+
282
+ attr_accessor :Result, :RequestId
283
+
284
+ def initialize(result=nil, requestid=nil)
285
+ @Result = result
286
+ @RequestId = requestid
287
+ end
288
+
289
+ def deserialize(params)
290
+ @Result = params['Result']
291
+ @RequestId = params['RequestId']
292
+ end
293
+ end
294
+
295
+ # 集群信息实体
296
+ class ClusterInfo < TencentCloud::Common::AbstractModel
297
+ # @param ClusterId: 集群Id
298
+ # @type ClusterId: Integer
299
+ # @param ClusterName: 集群名称
300
+ # @type ClusterName: String
301
+ # @param MaxDiskSize: 集群最大磁盘 单位GB
302
+ # 注意:此字段可能返回 null,表示取不到有效值。
303
+ # @type MaxDiskSize: Integer
304
+ # @param MaxBandWidth: 集群最大带宽 单位MB/s
305
+ # 注意:此字段可能返回 null,表示取不到有效值。
306
+ # @type MaxBandWidth: Integer
307
+ # @param AvailableDiskSize: 集群当前可用磁盘 单位GB
308
+ # 注意:此字段可能返回 null,表示取不到有效值。
309
+ # @type AvailableDiskSize: Integer
310
+ # @param AvailableBandWidth: 集群当前可用带宽 单位MB/s
311
+ # 注意:此字段可能返回 null,表示取不到有效值。
312
+ # @type AvailableBandWidth: Integer
313
+ # @param ZoneId: 集群所属可用区,表明集群归属的可用区
314
+ # 注意:此字段可能返回 null,表示取不到有效值。
315
+ # @type ZoneId: Integer
316
+ # @param ZoneIds: 集群节点所在的可用区,若该集群为跨可用区集群,则包含该集群节点所在的多个可用区。
317
+ # 注意:此字段可能返回 null,表示取不到有效值。
318
+ # @type ZoneIds: Array
319
+
320
+ attr_accessor :ClusterId, :ClusterName, :MaxDiskSize, :MaxBandWidth, :AvailableDiskSize, :AvailableBandWidth, :ZoneId, :ZoneIds
321
+
322
+ def initialize(clusterid=nil, clustername=nil, maxdisksize=nil, maxbandwidth=nil, availabledisksize=nil, availablebandwidth=nil, zoneid=nil, zoneids=nil)
323
+ @ClusterId = clusterid
324
+ @ClusterName = clustername
325
+ @MaxDiskSize = maxdisksize
326
+ @MaxBandWidth = maxbandwidth
327
+ @AvailableDiskSize = availabledisksize
328
+ @AvailableBandWidth = availablebandwidth
329
+ @ZoneId = zoneid
330
+ @ZoneIds = zoneids
331
+ end
332
+
333
+ def deserialize(params)
334
+ @ClusterId = params['ClusterId']
335
+ @ClusterName = params['ClusterName']
336
+ @MaxDiskSize = params['MaxDiskSize']
337
+ @MaxBandWidth = params['MaxBandWidth']
338
+ @AvailableDiskSize = params['AvailableDiskSize']
339
+ @AvailableBandWidth = params['AvailableBandWidth']
340
+ @ZoneId = params['ZoneId']
341
+ @ZoneIds = params['ZoneIds']
342
+ end
343
+ end
344
+
345
+ # 高级配置对象
346
+ class Config < TencentCloud::Common::AbstractModel
347
+ # @param Retention: 消息保留时间
348
+ # 注意:此字段可能返回 null,表示取不到有效值。
349
+ # @type Retention: Integer
350
+ # @param MinInsyncReplicas: 最小同步复制数
351
+ # 注意:此字段可能返回 null,表示取不到有效值。
352
+ # @type MinInsyncReplicas: Integer
353
+ # @param CleanUpPolicy: 日志清理模式,默认 delete。
354
+ # delete:日志按保存时间删除;compact:日志按 key 压缩;compact, delete:日志按 key 压缩且会保存时间删除。
355
+ # 注意:此字段可能返回 null,表示取不到有效值。
356
+ # @type CleanUpPolicy: String
357
+ # @param SegmentMs: Segment 分片滚动的时长
358
+ # 注意:此字段可能返回 null,表示取不到有效值。
359
+ # @type SegmentMs: Integer
360
+ # @param UncleanLeaderElectionEnable: 0表示 false。 1表示 true。
361
+ # 注意:此字段可能返回 null,表示取不到有效值。
362
+ # @type UncleanLeaderElectionEnable: Integer
363
+ # @param SegmentBytes: Segment 分片滚动的字节数
364
+ # 注意:此字段可能返回 null,表示取不到有效值。
365
+ # @type SegmentBytes: Integer
366
+ # @param MaxMessageBytes: 最大消息字节数
367
+ # 注意:此字段可能返回 null,表示取不到有效值。
368
+ # @type MaxMessageBytes: Integer
369
+ # @param RetentionBytes: 消息保留文件大小
370
+ # 注意:此字段可能返回 null,表示取不到有效值。
371
+ # @type RetentionBytes: Integer
372
+
373
+ attr_accessor :Retention, :MinInsyncReplicas, :CleanUpPolicy, :SegmentMs, :UncleanLeaderElectionEnable, :SegmentBytes, :MaxMessageBytes, :RetentionBytes
374
+
375
+ def initialize(retention=nil, mininsyncreplicas=nil, cleanuppolicy=nil, segmentms=nil, uncleanleaderelectionenable=nil, segmentbytes=nil, maxmessagebytes=nil, retentionbytes=nil)
376
+ @Retention = retention
377
+ @MinInsyncReplicas = mininsyncreplicas
378
+ @CleanUpPolicy = cleanuppolicy
379
+ @SegmentMs = segmentms
380
+ @UncleanLeaderElectionEnable = uncleanleaderelectionenable
381
+ @SegmentBytes = segmentbytes
382
+ @MaxMessageBytes = maxmessagebytes
383
+ @RetentionBytes = retentionbytes
384
+ end
385
+
386
+ def deserialize(params)
387
+ @Retention = params['Retention']
388
+ @MinInsyncReplicas = params['MinInsyncReplicas']
389
+ @CleanUpPolicy = params['CleanUpPolicy']
390
+ @SegmentMs = params['SegmentMs']
391
+ @UncleanLeaderElectionEnable = params['UncleanLeaderElectionEnable']
392
+ @SegmentBytes = params['SegmentBytes']
393
+ @MaxMessageBytes = params['MaxMessageBytes']
394
+ @RetentionBytes = params['RetentionBytes']
395
+ end
396
+ end
397
+
398
+ # 用户组实体
399
+ class ConsumerGroup < TencentCloud::Common::AbstractModel
400
+ # @param ConsumerGroupName: 用户组名称
401
+ # @type ConsumerGroupName: String
402
+ # @param SubscribedInfo: 订阅信息实体
403
+ # @type SubscribedInfo: Array
404
+
405
+ attr_accessor :ConsumerGroupName, :SubscribedInfo
406
+
407
+ def initialize(consumergroupname=nil, subscribedinfo=nil)
408
+ @ConsumerGroupName = consumergroupname
409
+ @SubscribedInfo = subscribedinfo
410
+ end
411
+
412
+ def deserialize(params)
413
+ @ConsumerGroupName = params['ConsumerGroupName']
414
+ unless params['SubscribedInfo'].nil?
415
+ @SubscribedInfo = []
416
+ params['SubscribedInfo'].each do |i|
417
+ subscribedinfo_tmp = SubscribedInfo.new
418
+ subscribedinfo_tmp.deserialize(i)
419
+ @SubscribedInfo << subscribedinfo_tmp
420
+ end
421
+ end
422
+ end
423
+ end
424
+
425
+ # 消费组返回结果实体
426
+ class ConsumerGroupResponse < TencentCloud::Common::AbstractModel
427
+ # @param TotalCount: 符合条件的消费组数量
428
+ # @type TotalCount: Integer
429
+ # @param TopicList: 主题列表
430
+ # 注意:此字段可能返回 null,表示取不到有效值。
431
+ # @type TopicList: Array
432
+ # @param GroupList: 消费分组List
433
+ # 注意:此字段可能返回 null,表示取不到有效值。
434
+ # @type GroupList: Array
435
+ # @param TotalPartition: 所有分区数量
436
+ # 注意:此字段可能返回 null,表示取不到有效值。
437
+ # @type TotalPartition: Integer
438
+ # @param PartitionListForMonitor: 监控的分区列表
439
+ # 注意:此字段可能返回 null,表示取不到有效值。
440
+ # @type PartitionListForMonitor: Array
441
+ # @param TotalTopic: 主题总数
442
+ # 注意:此字段可能返回 null,表示取不到有效值。
443
+ # @type TotalTopic: Integer
444
+ # @param TopicListForMonitor: 监控的主题列表
445
+ # 注意:此字段可能返回 null,表示取不到有效值。
446
+ # @type TopicListForMonitor: Array
447
+ # @param GroupListForMonitor: 监控的组列表
448
+ # 注意:此字段可能返回 null,表示取不到有效值。
449
+ # @type GroupListForMonitor: Array
450
+
451
+ attr_accessor :TotalCount, :TopicList, :GroupList, :TotalPartition, :PartitionListForMonitor, :TotalTopic, :TopicListForMonitor, :GroupListForMonitor
452
+
453
+ def initialize(totalcount=nil, topiclist=nil, grouplist=nil, totalpartition=nil, partitionlistformonitor=nil, totaltopic=nil, topiclistformonitor=nil, grouplistformonitor=nil)
454
+ @TotalCount = totalcount
455
+ @TopicList = topiclist
456
+ @GroupList = grouplist
457
+ @TotalPartition = totalpartition
458
+ @PartitionListForMonitor = partitionlistformonitor
459
+ @TotalTopic = totaltopic
460
+ @TopicListForMonitor = topiclistformonitor
461
+ @GroupListForMonitor = grouplistformonitor
462
+ end
463
+
464
+ def deserialize(params)
465
+ @TotalCount = params['TotalCount']
466
+ unless params['TopicList'].nil?
467
+ @TopicList = []
468
+ params['TopicList'].each do |i|
469
+ consumergrouptopic_tmp = ConsumerGroupTopic.new
470
+ consumergrouptopic_tmp.deserialize(i)
471
+ @TopicList << consumergrouptopic_tmp
472
+ end
473
+ end
474
+ unless params['GroupList'].nil?
475
+ @GroupList = []
476
+ params['GroupList'].each do |i|
477
+ consumergroup_tmp = ConsumerGroup.new
478
+ consumergroup_tmp.deserialize(i)
479
+ @GroupList << consumergroup_tmp
480
+ end
481
+ end
482
+ @TotalPartition = params['TotalPartition']
483
+ unless params['PartitionListForMonitor'].nil?
484
+ @PartitionListForMonitor = []
485
+ params['PartitionListForMonitor'].each do |i|
486
+ partition_tmp = Partition.new
487
+ partition_tmp.deserialize(i)
488
+ @PartitionListForMonitor << partition_tmp
489
+ end
490
+ end
491
+ @TotalTopic = params['TotalTopic']
492
+ unless params['TopicListForMonitor'].nil?
493
+ @TopicListForMonitor = []
494
+ params['TopicListForMonitor'].each do |i|
495
+ consumergrouptopic_tmp = ConsumerGroupTopic.new
496
+ consumergrouptopic_tmp.deserialize(i)
497
+ @TopicListForMonitor << consumergrouptopic_tmp
498
+ end
499
+ end
500
+ unless params['GroupListForMonitor'].nil?
501
+ @GroupListForMonitor = []
502
+ params['GroupListForMonitor'].each do |i|
503
+ group_tmp = Group.new
504
+ group_tmp.deserialize(i)
505
+ @GroupListForMonitor << group_tmp
506
+ end
507
+ end
508
+ end
509
+ end
510
+
511
+ # 消费组主题对象
512
+ class ConsumerGroupTopic < TencentCloud::Common::AbstractModel
513
+ # @param TopicId: 主题ID
514
+ # @type TopicId: String
515
+ # @param TopicName: 主题名称
516
+ # @type TopicName: String
517
+
518
+ attr_accessor :TopicId, :TopicName
519
+
520
+ def initialize(topicid=nil, topicname=nil)
521
+ @TopicId = topicid
522
+ @TopicName = topicname
523
+ end
524
+
525
+ def deserialize(params)
526
+ @TopicId = params['TopicId']
527
+ @TopicName = params['TopicName']
528
+ end
529
+ end
530
+
531
+ # 消息记录
532
+ class ConsumerRecord < TencentCloud::Common::AbstractModel
533
+ # @param Topic: 主题名
534
+ # @type Topic: String
535
+ # @param Partition: 分区id
536
+ # @type Partition: Integer
537
+ # @param Offset: 位点
538
+ # @type Offset: Integer
539
+ # @param Key: 消息key
540
+ # 注意:此字段可能返回 null,表示取不到有效值。
541
+ # @type Key: String
542
+ # @param Value: 消息value
543
+ # 注意:此字段可能返回 null,表示取不到有效值。
544
+ # @type Value: String
545
+ # @param Timestamp: 消息时间戳
546
+ # 注意:此字段可能返回 null,表示取不到有效值。
547
+ # @type Timestamp: Integer
548
+
549
+ attr_accessor :Topic, :Partition, :Offset, :Key, :Value, :Timestamp
550
+
551
+ def initialize(topic=nil, partition=nil, offset=nil, key=nil, value=nil, timestamp=nil)
552
+ @Topic = topic
553
+ @Partition = partition
554
+ @Offset = offset
555
+ @Key = key
556
+ @Value = value
557
+ @Timestamp = timestamp
558
+ end
559
+
560
+ def deserialize(params)
561
+ @Topic = params['Topic']
562
+ @Partition = params['Partition']
563
+ @Offset = params['Offset']
564
+ @Key = params['Key']
565
+ @Value = params['Value']
566
+ @Timestamp = params['Timestamp']
567
+ end
568
+ end
569
+
570
+ # CreateAcl请求参数结构体
571
+ class CreateAclRequest < TencentCloud::Common::AbstractModel
572
+ # @param InstanceId: 实例id信息
573
+ # @type InstanceId: String
574
+ # @param ResourceType: Acl资源类型,(0:UNKNOWN,1:ANY,2:TOPIC,3:GROUP,4:CLUSTER,5:TRANSACTIONAL_ID),当前只有TOPIC,其它字段用于后续兼容开源kafka的acl时使用
575
+ # @type ResourceType: Integer
576
+ # @param Operation: Acl操作方式,(0:UNKNOWN,1:ANY,2:ALL,3:READ,4:WRITE,5:CREATE,6:DELETE,7:ALTER,8:DESCRIBE,9:CLUSTER_ACTION,10:DESCRIBE_CONFIGS,11:ALTER_CONFIGS)
577
+ # @type Operation: Integer
578
+ # @param PermissionType: 权限类型,(0:UNKNOWN,1:ANY,2:DENY,3:ALLOW),当前ckakfa支持ALLOW(相当于白名单),其它用于后续兼容开源kafka的acl时使用
579
+ # @type PermissionType: Integer
580
+ # @param ResourceName: 资源名称,和resourceType相关,如当resourceType为TOPIC时,则该字段表示topic名称,当resourceType为GROUP时,该字段表示group名称
581
+ # @type ResourceName: String
582
+ # @param Host: 默认为\*,表示任何host都可以访问,当前ckafka不支持host为\*,但是后面开源kafka的产品化会直接支持
583
+ # @type Host: String
584
+ # @param Principal: 用户列表,默认为User:*,表示任何user都可以访问,当前用户只能是用户列表中包含的用户。传入时需要加 User: 前缀,如用户A则传入User:A。
585
+ # @type Principal: String
586
+ # @param ResourceNameList: 资源名称列表,Json字符串格式。ResourceName和resourceNameList只能指定其中一个。
587
+ # @type ResourceNameList: String
588
+
589
+ attr_accessor :InstanceId, :ResourceType, :Operation, :PermissionType, :ResourceName, :Host, :Principal, :ResourceNameList
590
+
591
+ def initialize(instanceid=nil, resourcetype=nil, operation=nil, permissiontype=nil, resourcename=nil, host=nil, principal=nil, resourcenamelist=nil)
592
+ @InstanceId = instanceid
593
+ @ResourceType = resourcetype
594
+ @Operation = operation
595
+ @PermissionType = permissiontype
596
+ @ResourceName = resourcename
597
+ @Host = host
598
+ @Principal = principal
599
+ @ResourceNameList = resourcenamelist
600
+ end
601
+
602
+ def deserialize(params)
603
+ @InstanceId = params['InstanceId']
604
+ @ResourceType = params['ResourceType']
605
+ @Operation = params['Operation']
606
+ @PermissionType = params['PermissionType']
607
+ @ResourceName = params['ResourceName']
608
+ @Host = params['Host']
609
+ @Principal = params['Principal']
610
+ @ResourceNameList = params['ResourceNameList']
611
+ end
612
+ end
613
+
614
+ # CreateAcl返回参数结构体
615
+ class CreateAclResponse < TencentCloud::Common::AbstractModel
616
+ # @param Result: 返回结果
617
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.JgwOperateResponse`
618
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
619
+ # @type RequestId: String
620
+
621
+ attr_accessor :Result, :RequestId
622
+
623
+ def initialize(result=nil, requestid=nil)
624
+ @Result = result
625
+ @RequestId = requestid
626
+ end
627
+
628
+ def deserialize(params)
629
+ unless params['Result'].nil?
630
+ @Result = JgwOperateResponse.new
631
+ @Result.deserialize(params['Result'])
632
+ end
633
+ @RequestId = params['RequestId']
634
+ end
635
+ end
636
+
637
+ # 创建预付费接口返回的Data
638
+ class CreateInstancePreData < TencentCloud::Common::AbstractModel
639
+ # @param FlowId: CreateInstancePre返回固定为0,不能作为CheckTaskStatus的查询条件。只是为了保证和后台数据结构对齐。
640
+ # 注意:此字段可能返回 null,表示取不到有效值。
641
+ # @type FlowId: Integer
642
+ # @param DealNames: 订单号列表
643
+ # 注意:此字段可能返回 null,表示取不到有效值。
644
+ # @type DealNames: Array
645
+ # @param InstanceId: 实例Id
646
+ # 注意:此字段可能返回 null,表示取不到有效值。
647
+ # @type InstanceId: String
648
+
649
+ attr_accessor :FlowId, :DealNames, :InstanceId
650
+
651
+ def initialize(flowid=nil, dealnames=nil, instanceid=nil)
652
+ @FlowId = flowid
653
+ @DealNames = dealnames
654
+ @InstanceId = instanceid
655
+ end
656
+
657
+ def deserialize(params)
658
+ @FlowId = params['FlowId']
659
+ @DealNames = params['DealNames']
660
+ @InstanceId = params['InstanceId']
661
+ end
662
+ end
663
+
664
+ # CreateInstancePre请求参数结构体
665
+ class CreateInstancePreRequest < TencentCloud::Common::AbstractModel
666
+ # @param InstanceName: 实例名称,是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)
667
+ # @type InstanceName: String
668
+ # @param ZoneId: 可用区
669
+ # @type ZoneId: Integer
670
+ # @param Period: 预付费购买时长,例如 "1m",就是一个月
671
+ # @type Period: String
672
+ # @param InstanceType: 实例规格,专业版默认填写1。1:入门型 ,2: 标准型,3 :进阶型,4 :容量型,5: 高阶型1,6:高阶性2, 7: 高阶型3,8: 高阶型4, 9 :独占型。
673
+ # @type InstanceType: Integer
674
+ # @param VpcId: vpcId,不填默认基础网络
675
+ # @type VpcId: String
676
+ # @param SubnetId: 子网id,vpc网络需要传该参数,基础网络可以不传
677
+ # @type SubnetId: String
678
+ # @param MsgRetentionTime: 可选。实例日志的最长保留时间,单位分钟,默认为10080(7天),最大30天,不填默认0,代表不开启日志保留时间回收策略
679
+ # @type MsgRetentionTime: Integer
680
+ # @param ClusterId: 创建实例时可以选择集群Id, 该入参表示集群Id
681
+ # @type ClusterId: Integer
682
+ # @param RenewFlag: 预付费自动续费标记,0表示默认状态(用户未设置,即初始状态), 1表示自动续费,2表示明确不自动续费(用户设置)
683
+ # @type RenewFlag: Integer
684
+ # @param KafkaVersion: 支持指定版本Kafka版本(0.10.2/1.1.1/2.4.1) 。指定专业版参数specificationsType=pro
685
+ # @type KafkaVersion: String
686
+ # @param SpecificationsType: 专业版必须填写 (专业版:profession、标准版:standard) 默认是standard。专业版填profession
687
+ # @type SpecificationsType: String
688
+ # @param DiskSize: 磁盘大小,专业版不填写默认最小磁盘,填写后根据磁盘带宽分区数弹性计算
689
+ # @type DiskSize: Integer
690
+ # @param BandWidth: 带宽,专业版不填写默认最小带宽,填写后根据磁盘带宽分区数弹性计算
691
+ # @type BandWidth: Integer
692
+ # @param Partition: 分区大小,专业版不填写默认最小分区数,填写后根据磁盘带宽分区数弹性计算
693
+ # @type Partition: Integer
694
+ # @param Tags: 标签
695
+ # @type Tags: Array
696
+ # @param DiskType: 磁盘类型(ssd填写CLOUD_SSD,sata填写CLOUD_BASIC)
697
+ # @type DiskType: String
698
+
699
+ attr_accessor :InstanceName, :ZoneId, :Period, :InstanceType, :VpcId, :SubnetId, :MsgRetentionTime, :ClusterId, :RenewFlag, :KafkaVersion, :SpecificationsType, :DiskSize, :BandWidth, :Partition, :Tags, :DiskType
700
+
701
+ def initialize(instancename=nil, zoneid=nil, period=nil, instancetype=nil, vpcid=nil, subnetid=nil, msgretentiontime=nil, clusterid=nil, renewflag=nil, kafkaversion=nil, specificationstype=nil, disksize=nil, bandwidth=nil, partition=nil, tags=nil, disktype=nil)
702
+ @InstanceName = instancename
703
+ @ZoneId = zoneid
704
+ @Period = period
705
+ @InstanceType = instancetype
706
+ @VpcId = vpcid
707
+ @SubnetId = subnetid
708
+ @MsgRetentionTime = msgretentiontime
709
+ @ClusterId = clusterid
710
+ @RenewFlag = renewflag
711
+ @KafkaVersion = kafkaversion
712
+ @SpecificationsType = specificationstype
713
+ @DiskSize = disksize
714
+ @BandWidth = bandwidth
715
+ @Partition = partition
716
+ @Tags = tags
717
+ @DiskType = disktype
718
+ end
719
+
720
+ def deserialize(params)
721
+ @InstanceName = params['InstanceName']
722
+ @ZoneId = params['ZoneId']
723
+ @Period = params['Period']
724
+ @InstanceType = params['InstanceType']
725
+ @VpcId = params['VpcId']
726
+ @SubnetId = params['SubnetId']
727
+ @MsgRetentionTime = params['MsgRetentionTime']
728
+ @ClusterId = params['ClusterId']
729
+ @RenewFlag = params['RenewFlag']
730
+ @KafkaVersion = params['KafkaVersion']
731
+ @SpecificationsType = params['SpecificationsType']
732
+ @DiskSize = params['DiskSize']
733
+ @BandWidth = params['BandWidth']
734
+ @Partition = params['Partition']
735
+ unless params['Tags'].nil?
736
+ @Tags = []
737
+ params['Tags'].each do |i|
738
+ tag_tmp = Tag.new
739
+ tag_tmp.deserialize(i)
740
+ @Tags << tag_tmp
741
+ end
742
+ end
743
+ @DiskType = params['DiskType']
744
+ end
745
+ end
746
+
747
+ # 创建预付费实例返回结构
748
+ class CreateInstancePreResponse < TencentCloud::Common::AbstractModel
749
+ # @param ReturnCode: 返回的code,0为正常,非0为错误
750
+ # @type ReturnCode: String
751
+ # @param ReturnMessage: 成功消息
752
+ # @type ReturnMessage: String
753
+ # @param Data: 操作型返回的Data数据
754
+ # 注意:此字段可能返回 null,表示取不到有效值。
755
+ # @type Data: :class:`Tencentcloud::Ckafka.v20190819.models.CreateInstancePreData`
756
+
757
+ attr_accessor :ReturnCode, :ReturnMessage, :Data
758
+
759
+ def initialize(returncode=nil, returnmessage=nil, data=nil)
760
+ @ReturnCode = returncode
761
+ @ReturnMessage = returnmessage
762
+ @Data = data
763
+ end
764
+
765
+ def deserialize(params)
766
+ @ReturnCode = params['ReturnCode']
767
+ @ReturnMessage = params['ReturnMessage']
768
+ unless params['Data'].nil?
769
+ @Data = CreateInstancePreData.new
770
+ @Data.deserialize(params['Data'])
771
+ end
772
+ end
773
+ end
774
+
775
+ # CreatePartition请求参数结构体
776
+ class CreatePartitionRequest < TencentCloud::Common::AbstractModel
777
+ # @param InstanceId: 实例Id
778
+ # @type InstanceId: String
779
+ # @param TopicName: 主题名称
780
+ # @type TopicName: String
781
+ # @param PartitionNum: 主题分区个数
782
+ # @type PartitionNum: Integer
783
+
784
+ attr_accessor :InstanceId, :TopicName, :PartitionNum
785
+
786
+ def initialize(instanceid=nil, topicname=nil, partitionnum=nil)
787
+ @InstanceId = instanceid
788
+ @TopicName = topicname
789
+ @PartitionNum = partitionnum
790
+ end
791
+
792
+ def deserialize(params)
793
+ @InstanceId = params['InstanceId']
794
+ @TopicName = params['TopicName']
795
+ @PartitionNum = params['PartitionNum']
796
+ end
797
+ end
798
+
799
+ # CreatePartition返回参数结构体
800
+ class CreatePartitionResponse < TencentCloud::Common::AbstractModel
801
+ # @param Result: 返回的结果集
802
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.JgwOperateResponse`
803
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
804
+ # @type RequestId: String
805
+
806
+ attr_accessor :Result, :RequestId
807
+
808
+ def initialize(result=nil, requestid=nil)
809
+ @Result = result
810
+ @RequestId = requestid
811
+ end
812
+
813
+ def deserialize(params)
814
+ unless params['Result'].nil?
815
+ @Result = JgwOperateResponse.new
816
+ @Result.deserialize(params['Result'])
817
+ end
818
+ @RequestId = params['RequestId']
819
+ end
820
+ end
821
+
822
+ # CreateTopicIpWhiteList请求参数结构体
823
+ class CreateTopicIpWhiteListRequest < TencentCloud::Common::AbstractModel
824
+ # @param InstanceId: 实例Id
825
+ # @type InstanceId: String
826
+ # @param TopicName: 主题名称
827
+ # @type TopicName: String
828
+ # @param IpWhiteList: ip白名单列表
829
+ # @type IpWhiteList: Array
830
+
831
+ attr_accessor :InstanceId, :TopicName, :IpWhiteList
832
+
833
+ def initialize(instanceid=nil, topicname=nil, ipwhitelist=nil)
834
+ @InstanceId = instanceid
835
+ @TopicName = topicname
836
+ @IpWhiteList = ipwhitelist
837
+ end
838
+
839
+ def deserialize(params)
840
+ @InstanceId = params['InstanceId']
841
+ @TopicName = params['TopicName']
842
+ @IpWhiteList = params['IpWhiteList']
843
+ end
844
+ end
845
+
846
+ # CreateTopicIpWhiteList返回参数结构体
847
+ class CreateTopicIpWhiteListResponse < TencentCloud::Common::AbstractModel
848
+ # @param Result: 删除主题IP白名单结果
849
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.JgwOperateResponse`
850
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
851
+ # @type RequestId: String
852
+
853
+ attr_accessor :Result, :RequestId
854
+
855
+ def initialize(result=nil, requestid=nil)
856
+ @Result = result
857
+ @RequestId = requestid
858
+ end
859
+
860
+ def deserialize(params)
861
+ unless params['Result'].nil?
862
+ @Result = JgwOperateResponse.new
863
+ @Result.deserialize(params['Result'])
864
+ end
865
+ @RequestId = params['RequestId']
866
+ end
867
+ end
868
+
869
+ # CreateTopic请求参数结构体
870
+ class CreateTopicRequest < TencentCloud::Common::AbstractModel
871
+ # @param InstanceId: 实例Id
872
+ # @type InstanceId: String
873
+ # @param TopicName: 主题名称,是一个不超过 128 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)
874
+ # @type TopicName: String
875
+ # @param PartitionNum: Partition个数,大于0
876
+ # @type PartitionNum: Integer
877
+ # @param ReplicaNum: 副本个数,不能多于 broker 数,最大为3
878
+ # @type ReplicaNum: Integer
879
+ # @param EnableWhiteList: ip白名单开关, 1:打开 0:关闭,默认不打开
880
+ # @type EnableWhiteList: Integer
881
+ # @param IpWhiteList: Ip白名单列表,配额限制,enableWhileList=1时必选
882
+ # @type IpWhiteList: Array
883
+ # @param CleanUpPolicy: 清理日志策略,日志清理模式,默认为"delete"。"delete":日志按保存时间删除,"compact":日志按 key 压缩,"compact, delete":日志按 key 压缩且会按保存时间删除。
884
+ # @type CleanUpPolicy: String
885
+ # @param Note: 主题备注,是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)
886
+ # @type Note: String
887
+ # @param MinInsyncReplicas: 默认为1
888
+ # @type MinInsyncReplicas: Integer
889
+ # @param UncleanLeaderElectionEnable: 是否允许未同步的副本选为leader,false:不允许,true:允许,默认不允许
890
+ # @type UncleanLeaderElectionEnable: Integer
891
+ # @param RetentionMs: 可消息选。保留时间,单位ms,当前最小值为60000ms
892
+ # @type RetentionMs: Integer
893
+ # @param SegmentMs: Segment分片滚动的时长,单位ms,当前最小为3600000ms
894
+ # @type SegmentMs: Integer
895
+ # @param EnableAclRule: 预设ACL规则, 1:打开 0:关闭,默认不打开
896
+ # @type EnableAclRule: Integer
897
+ # @param AclRuleName: 预设ACL规则的名称
898
+ # @type AclRuleName: String
899
+ # @param RetentionBytes: 可选, 保留文件大小. 默认为-1,单位bytes, 当前最小值为1048576B
900
+ # @type RetentionBytes: Integer
901
+
902
+ attr_accessor :InstanceId, :TopicName, :PartitionNum, :ReplicaNum, :EnableWhiteList, :IpWhiteList, :CleanUpPolicy, :Note, :MinInsyncReplicas, :UncleanLeaderElectionEnable, :RetentionMs, :SegmentMs, :EnableAclRule, :AclRuleName, :RetentionBytes
903
+
904
+ def initialize(instanceid=nil, topicname=nil, partitionnum=nil, replicanum=nil, enablewhitelist=nil, ipwhitelist=nil, cleanuppolicy=nil, note=nil, mininsyncreplicas=nil, uncleanleaderelectionenable=nil, retentionms=nil, segmentms=nil, enableaclrule=nil, aclrulename=nil, retentionbytes=nil)
905
+ @InstanceId = instanceid
906
+ @TopicName = topicname
907
+ @PartitionNum = partitionnum
908
+ @ReplicaNum = replicanum
909
+ @EnableWhiteList = enablewhitelist
910
+ @IpWhiteList = ipwhitelist
911
+ @CleanUpPolicy = cleanuppolicy
912
+ @Note = note
913
+ @MinInsyncReplicas = mininsyncreplicas
914
+ @UncleanLeaderElectionEnable = uncleanleaderelectionenable
915
+ @RetentionMs = retentionms
916
+ @SegmentMs = segmentms
917
+ @EnableAclRule = enableaclrule
918
+ @AclRuleName = aclrulename
919
+ @RetentionBytes = retentionbytes
920
+ end
921
+
922
+ def deserialize(params)
923
+ @InstanceId = params['InstanceId']
924
+ @TopicName = params['TopicName']
925
+ @PartitionNum = params['PartitionNum']
926
+ @ReplicaNum = params['ReplicaNum']
927
+ @EnableWhiteList = params['EnableWhiteList']
928
+ @IpWhiteList = params['IpWhiteList']
929
+ @CleanUpPolicy = params['CleanUpPolicy']
930
+ @Note = params['Note']
931
+ @MinInsyncReplicas = params['MinInsyncReplicas']
932
+ @UncleanLeaderElectionEnable = params['UncleanLeaderElectionEnable']
933
+ @RetentionMs = params['RetentionMs']
934
+ @SegmentMs = params['SegmentMs']
935
+ @EnableAclRule = params['EnableAclRule']
936
+ @AclRuleName = params['AclRuleName']
937
+ @RetentionBytes = params['RetentionBytes']
938
+ end
939
+ end
940
+
941
+ # 创建主题返回
942
+ class CreateTopicResp < TencentCloud::Common::AbstractModel
943
+ # @param TopicId: 主题Id
944
+ # @type TopicId: String
945
+
946
+ attr_accessor :TopicId
947
+
948
+ def initialize(topicid=nil)
949
+ @TopicId = topicid
950
+ end
951
+
952
+ def deserialize(params)
953
+ @TopicId = params['TopicId']
954
+ end
955
+ end
956
+
957
+ # CreateTopic返回参数结构体
958
+ class CreateTopicResponse < TencentCloud::Common::AbstractModel
959
+ # @param Result: 返回创建结果
960
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.CreateTopicResp`
961
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
962
+ # @type RequestId: String
963
+
964
+ attr_accessor :Result, :RequestId
965
+
966
+ def initialize(result=nil, requestid=nil)
967
+ @Result = result
968
+ @RequestId = requestid
969
+ end
970
+
971
+ def deserialize(params)
972
+ unless params['Result'].nil?
973
+ @Result = CreateTopicResp.new
974
+ @Result.deserialize(params['Result'])
975
+ end
976
+ @RequestId = params['RequestId']
977
+ end
978
+ end
979
+
980
+ # CreateUser请求参数结构体
981
+ class CreateUserRequest < TencentCloud::Common::AbstractModel
982
+ # @param InstanceId: 实例Id
983
+ # @type InstanceId: String
984
+ # @param Name: 用户名称
985
+ # @type Name: String
986
+ # @param Password: 用户密码
987
+ # @type Password: String
988
+
989
+ attr_accessor :InstanceId, :Name, :Password
990
+
991
+ def initialize(instanceid=nil, name=nil, password=nil)
992
+ @InstanceId = instanceid
993
+ @Name = name
994
+ @Password = password
995
+ end
996
+
997
+ def deserialize(params)
998
+ @InstanceId = params['InstanceId']
999
+ @Name = params['Name']
1000
+ @Password = params['Password']
1001
+ end
1002
+ end
1003
+
1004
+ # CreateUser返回参数结构体
1005
+ class CreateUserResponse < TencentCloud::Common::AbstractModel
1006
+ # @param Result: 返回的结果
1007
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.JgwOperateResponse`
1008
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1009
+ # @type RequestId: String
1010
+
1011
+ attr_accessor :Result, :RequestId
1012
+
1013
+ def initialize(result=nil, requestid=nil)
1014
+ @Result = result
1015
+ @RequestId = requestid
1016
+ end
1017
+
1018
+ def deserialize(params)
1019
+ unless params['Result'].nil?
1020
+ @Result = JgwOperateResponse.new
1021
+ @Result.deserialize(params['Result'])
1022
+ end
1023
+ @RequestId = params['RequestId']
1024
+ end
1025
+ end
1026
+
1027
+ # DeleteAcl请求参数结构体
1028
+ class DeleteAclRequest < TencentCloud::Common::AbstractModel
1029
+ # @param InstanceId: 实例id信息
1030
+ # @type InstanceId: String
1031
+ # @param ResourceType: Acl资源类型,(0:UNKNOWN,1:ANY,2:TOPIC,3:GROUP,4:CLUSTER,5:TRANSACTIONAL_ID),当前只有TOPIC,其它字段用于后续兼容开源kafka的acl时使用
1032
+ # @type ResourceType: Integer
1033
+ # @param ResourceName: 资源名称,和resourceType相关,如当resourceType为TOPIC时,则该字段表示topic名称,当resourceType为GROUP时,该字段表示group名称
1034
+ # @type ResourceName: String
1035
+ # @param Operation: Acl操作方式,(0:UNKNOWN,1:ANY,2:ALL,3:READ,4:WRITE,5:CREATE,6:DELETE,7:ALTER,8:DESCRIBE,9:CLUSTER_ACTION,10:DESCRIBE_CONFIGS,11:ALTER_CONFIGS,12:IDEMPOTEN_WRITE),当前ckafka只支持READ,WRITE,其它用于后续兼容开源kafka的acl时使用
1036
+ # @type Operation: Integer
1037
+ # @param PermissionType: 权限类型,(0:UNKNOWN,1:ANY,2:DENY,3:ALLOW),当前ckakfa支持ALLOW(相当于白名单),其它用于后续兼容开源kafka的acl时使用
1038
+ # @type PermissionType: Integer
1039
+ # @param Host: 默认为\*,表示任何host都可以访问,当前ckafka不支持host为\*,但是后面开源kafka的产品化会直接支持
1040
+ # @type Host: String
1041
+ # @param Principal: 用户列表,默认为*,表示任何user都可以访问,当前用户只能是用户列表中包含的用户
1042
+ # @type Principal: String
1043
+
1044
+ attr_accessor :InstanceId, :ResourceType, :ResourceName, :Operation, :PermissionType, :Host, :Principal
1045
+
1046
+ def initialize(instanceid=nil, resourcetype=nil, resourcename=nil, operation=nil, permissiontype=nil, host=nil, principal=nil)
1047
+ @InstanceId = instanceid
1048
+ @ResourceType = resourcetype
1049
+ @ResourceName = resourcename
1050
+ @Operation = operation
1051
+ @PermissionType = permissiontype
1052
+ @Host = host
1053
+ @Principal = principal
1054
+ end
1055
+
1056
+ def deserialize(params)
1057
+ @InstanceId = params['InstanceId']
1058
+ @ResourceType = params['ResourceType']
1059
+ @ResourceName = params['ResourceName']
1060
+ @Operation = params['Operation']
1061
+ @PermissionType = params['PermissionType']
1062
+ @Host = params['Host']
1063
+ @Principal = params['Principal']
1064
+ end
1065
+ end
1066
+
1067
+ # DeleteAcl返回参数结构体
1068
+ class DeleteAclResponse < TencentCloud::Common::AbstractModel
1069
+ # @param Result: 返回结果
1070
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.JgwOperateResponse`
1071
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1072
+ # @type RequestId: String
1073
+
1074
+ attr_accessor :Result, :RequestId
1075
+
1076
+ def initialize(result=nil, requestid=nil)
1077
+ @Result = result
1078
+ @RequestId = requestid
1079
+ end
1080
+
1081
+ def deserialize(params)
1082
+ unless params['Result'].nil?
1083
+ @Result = JgwOperateResponse.new
1084
+ @Result.deserialize(params['Result'])
1085
+ end
1086
+ @RequestId = params['RequestId']
1087
+ end
1088
+ end
1089
+
1090
+ # DeleteAclRule请求参数结构体
1091
+ class DeleteAclRuleRequest < TencentCloud::Common::AbstractModel
1092
+ # @param InstanceId: 实例id信息
1093
+ # @type InstanceId: String
1094
+ # @param RuleName: acl规则名称
1095
+ # @type RuleName: String
1096
+
1097
+ attr_accessor :InstanceId, :RuleName
1098
+
1099
+ def initialize(instanceid=nil, rulename=nil)
1100
+ @InstanceId = instanceid
1101
+ @RuleName = rulename
1102
+ end
1103
+
1104
+ def deserialize(params)
1105
+ @InstanceId = params['InstanceId']
1106
+ @RuleName = params['RuleName']
1107
+ end
1108
+ end
1109
+
1110
+ # DeleteAclRule返回参数结构体
1111
+ class DeleteAclRuleResponse < TencentCloud::Common::AbstractModel
1112
+ # @param Result: 返回被删除的规则的ID
1113
+ # @type Result: Integer
1114
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1115
+ # @type RequestId: String
1116
+
1117
+ attr_accessor :Result, :RequestId
1118
+
1119
+ def initialize(result=nil, requestid=nil)
1120
+ @Result = result
1121
+ @RequestId = requestid
1122
+ end
1123
+
1124
+ def deserialize(params)
1125
+ @Result = params['Result']
1126
+ @RequestId = params['RequestId']
1127
+ end
1128
+ end
1129
+
1130
+ # DeleteRouteTriggerTime请求参数结构体
1131
+ class DeleteRouteTriggerTimeRequest < TencentCloud::Common::AbstractModel
1132
+ # @param DelayTime: 修改时间
1133
+ # @type DelayTime: String
1134
+
1135
+ attr_accessor :DelayTime
1136
+
1137
+ def initialize(delaytime=nil)
1138
+ @DelayTime = delaytime
1139
+ end
1140
+
1141
+ def deserialize(params)
1142
+ @DelayTime = params['DelayTime']
1143
+ end
1144
+ end
1145
+
1146
+ # DeleteRouteTriggerTime返回参数结构体
1147
+ class DeleteRouteTriggerTimeResponse < TencentCloud::Common::AbstractModel
1148
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1149
+ # @type RequestId: String
1150
+
1151
+ attr_accessor :RequestId
1152
+
1153
+ def initialize(requestid=nil)
1154
+ @RequestId = requestid
1155
+ end
1156
+
1157
+ def deserialize(params)
1158
+ @RequestId = params['RequestId']
1159
+ end
1160
+ end
1161
+
1162
+ # DeleteTopicIpWhiteList请求参数结构体
1163
+ class DeleteTopicIpWhiteListRequest < TencentCloud::Common::AbstractModel
1164
+ # @param InstanceId: 实例ID
1165
+ # @type InstanceId: String
1166
+ # @param TopicName: 主题名称
1167
+ # @type TopicName: String
1168
+ # @param IpWhiteList: ip白名单列表
1169
+ # @type IpWhiteList: Array
1170
+
1171
+ attr_accessor :InstanceId, :TopicName, :IpWhiteList
1172
+
1173
+ def initialize(instanceid=nil, topicname=nil, ipwhitelist=nil)
1174
+ @InstanceId = instanceid
1175
+ @TopicName = topicname
1176
+ @IpWhiteList = ipwhitelist
1177
+ end
1178
+
1179
+ def deserialize(params)
1180
+ @InstanceId = params['InstanceId']
1181
+ @TopicName = params['TopicName']
1182
+ @IpWhiteList = params['IpWhiteList']
1183
+ end
1184
+ end
1185
+
1186
+ # DeleteTopicIpWhiteList返回参数结构体
1187
+ class DeleteTopicIpWhiteListResponse < TencentCloud::Common::AbstractModel
1188
+ # @param Result: 删除主题IP白名单结果
1189
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.JgwOperateResponse`
1190
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1191
+ # @type RequestId: String
1192
+
1193
+ attr_accessor :Result, :RequestId
1194
+
1195
+ def initialize(result=nil, requestid=nil)
1196
+ @Result = result
1197
+ @RequestId = requestid
1198
+ end
1199
+
1200
+ def deserialize(params)
1201
+ unless params['Result'].nil?
1202
+ @Result = JgwOperateResponse.new
1203
+ @Result.deserialize(params['Result'])
1204
+ end
1205
+ @RequestId = params['RequestId']
1206
+ end
1207
+ end
1208
+
1209
+ # DeleteTopic请求参数结构体
1210
+ class DeleteTopicRequest < TencentCloud::Common::AbstractModel
1211
+ # @param InstanceId: ckafka 实例Id
1212
+ # @type InstanceId: String
1213
+ # @param TopicName: ckafka 主题名称
1214
+ # @type TopicName: String
1215
+
1216
+ attr_accessor :InstanceId, :TopicName
1217
+
1218
+ def initialize(instanceid=nil, topicname=nil)
1219
+ @InstanceId = instanceid
1220
+ @TopicName = topicname
1221
+ end
1222
+
1223
+ def deserialize(params)
1224
+ @InstanceId = params['InstanceId']
1225
+ @TopicName = params['TopicName']
1226
+ end
1227
+ end
1228
+
1229
+ # DeleteTopic返回参数结构体
1230
+ class DeleteTopicResponse < TencentCloud::Common::AbstractModel
1231
+ # @param Result: 返回的结果集
1232
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.JgwOperateResponse`
1233
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1234
+ # @type RequestId: String
1235
+
1236
+ attr_accessor :Result, :RequestId
1237
+
1238
+ def initialize(result=nil, requestid=nil)
1239
+ @Result = result
1240
+ @RequestId = requestid
1241
+ end
1242
+
1243
+ def deserialize(params)
1244
+ unless params['Result'].nil?
1245
+ @Result = JgwOperateResponse.new
1246
+ @Result.deserialize(params['Result'])
1247
+ end
1248
+ @RequestId = params['RequestId']
1249
+ end
1250
+ end
1251
+
1252
+ # DeleteUser请求参数结构体
1253
+ class DeleteUserRequest < TencentCloud::Common::AbstractModel
1254
+ # @param InstanceId: 实例Id
1255
+ # @type InstanceId: String
1256
+ # @param Name: 用户名称
1257
+ # @type Name: String
1258
+
1259
+ attr_accessor :InstanceId, :Name
1260
+
1261
+ def initialize(instanceid=nil, name=nil)
1262
+ @InstanceId = instanceid
1263
+ @Name = name
1264
+ end
1265
+
1266
+ def deserialize(params)
1267
+ @InstanceId = params['InstanceId']
1268
+ @Name = params['Name']
1269
+ end
1270
+ end
1271
+
1272
+ # DeleteUser返回参数结构体
1273
+ class DeleteUserResponse < TencentCloud::Common::AbstractModel
1274
+ # @param Result: 返回结果
1275
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.JgwOperateResponse`
1276
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1277
+ # @type RequestId: String
1278
+
1279
+ attr_accessor :Result, :RequestId
1280
+
1281
+ def initialize(result=nil, requestid=nil)
1282
+ @Result = result
1283
+ @RequestId = requestid
1284
+ end
1285
+
1286
+ def deserialize(params)
1287
+ unless params['Result'].nil?
1288
+ @Result = JgwOperateResponse.new
1289
+ @Result.deserialize(params['Result'])
1290
+ end
1291
+ @RequestId = params['RequestId']
1292
+ end
1293
+ end
1294
+
1295
+ # DescribeACL请求参数结构体
1296
+ class DescribeACLRequest < TencentCloud::Common::AbstractModel
1297
+ # @param InstanceId: 实例Id
1298
+ # @type InstanceId: String
1299
+ # @param ResourceType: Acl资源类型,(0:UNKNOWN,1:ANY,2:TOPIC,3:GROUP,4:CLUSTER,5:TRANSACTIONAL_ID),当前只有TOPIC,其它字段用于后续兼容开源kafka的acl时使用
1300
+ # @type ResourceType: Integer
1301
+ # @param ResourceName: 资源名称,和resourceType相关,如当resourceType为TOPIC时,则该字段表示topic名称,当resourceType为GROUP时,该字段表示group名称
1302
+ # @type ResourceName: String
1303
+ # @param Offset: 偏移位置
1304
+ # @type Offset: Integer
1305
+ # @param Limit: 个数限制
1306
+ # @type Limit: Integer
1307
+ # @param SearchWord: 关键字匹配
1308
+ # @type SearchWord: String
1309
+
1310
+ attr_accessor :InstanceId, :ResourceType, :ResourceName, :Offset, :Limit, :SearchWord
1311
+
1312
+ def initialize(instanceid=nil, resourcetype=nil, resourcename=nil, offset=nil, limit=nil, searchword=nil)
1313
+ @InstanceId = instanceid
1314
+ @ResourceType = resourcetype
1315
+ @ResourceName = resourcename
1316
+ @Offset = offset
1317
+ @Limit = limit
1318
+ @SearchWord = searchword
1319
+ end
1320
+
1321
+ def deserialize(params)
1322
+ @InstanceId = params['InstanceId']
1323
+ @ResourceType = params['ResourceType']
1324
+ @ResourceName = params['ResourceName']
1325
+ @Offset = params['Offset']
1326
+ @Limit = params['Limit']
1327
+ @SearchWord = params['SearchWord']
1328
+ end
1329
+ end
1330
+
1331
+ # DescribeACL返回参数结构体
1332
+ class DescribeACLResponse < TencentCloud::Common::AbstractModel
1333
+ # @param Result: 返回的ACL结果集对象
1334
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.AclResponse`
1335
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1336
+ # @type RequestId: String
1337
+
1338
+ attr_accessor :Result, :RequestId
1339
+
1340
+ def initialize(result=nil, requestid=nil)
1341
+ @Result = result
1342
+ @RequestId = requestid
1343
+ end
1344
+
1345
+ def deserialize(params)
1346
+ unless params['Result'].nil?
1347
+ @Result = AclResponse.new
1348
+ @Result.deserialize(params['Result'])
1349
+ end
1350
+ @RequestId = params['RequestId']
1351
+ end
1352
+ end
1353
+
1354
+ # DescribeAppInfo请求参数结构体
1355
+ class DescribeAppInfoRequest < TencentCloud::Common::AbstractModel
1356
+ # @param Offset: 偏移位置
1357
+ # @type Offset: Integer
1358
+ # @param Limit: 本次查询用户数目最大数量限制,最大值为50,默认50
1359
+ # @type Limit: Integer
1360
+
1361
+ attr_accessor :Offset, :Limit
1362
+
1363
+ def initialize(offset=nil, limit=nil)
1364
+ @Offset = offset
1365
+ @Limit = limit
1366
+ end
1367
+
1368
+ def deserialize(params)
1369
+ @Offset = params['Offset']
1370
+ @Limit = params['Limit']
1371
+ end
1372
+ end
1373
+
1374
+ # DescribeAppInfo返回参数结构体
1375
+ class DescribeAppInfoResponse < TencentCloud::Common::AbstractModel
1376
+ # @param Result: 返回的符合要求的App Id列表
1377
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.AppIdResponse`
1378
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1379
+ # @type RequestId: String
1380
+
1381
+ attr_accessor :Result, :RequestId
1382
+
1383
+ def initialize(result=nil, requestid=nil)
1384
+ @Result = result
1385
+ @RequestId = requestid
1386
+ end
1387
+
1388
+ def deserialize(params)
1389
+ unless params['Result'].nil?
1390
+ @Result = AppIdResponse.new
1391
+ @Result.deserialize(params['Result'])
1392
+ end
1393
+ @RequestId = params['RequestId']
1394
+ end
1395
+ end
1396
+
1397
+ # DescribeCkafkaZone请求参数结构体
1398
+ class DescribeCkafkaZoneRequest < TencentCloud::Common::AbstractModel
1399
+
1400
+
1401
+ def initialize()
1402
+ end
1403
+
1404
+ def deserialize(params)
1405
+ end
1406
+ end
1407
+
1408
+ # DescribeCkafkaZone返回参数结构体
1409
+ class DescribeCkafkaZoneResponse < TencentCloud::Common::AbstractModel
1410
+ # @param Result: 查询结果复杂对象实体
1411
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.ZoneResponse`
1412
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1413
+ # @type RequestId: String
1414
+
1415
+ attr_accessor :Result, :RequestId
1416
+
1417
+ def initialize(result=nil, requestid=nil)
1418
+ @Result = result
1419
+ @RequestId = requestid
1420
+ end
1421
+
1422
+ def deserialize(params)
1423
+ unless params['Result'].nil?
1424
+ @Result = ZoneResponse.new
1425
+ @Result.deserialize(params['Result'])
1426
+ end
1427
+ @RequestId = params['RequestId']
1428
+ end
1429
+ end
1430
+
1431
+ # DescribeConsumerGroup请求参数结构体
1432
+ class DescribeConsumerGroupRequest < TencentCloud::Common::AbstractModel
1433
+ # @param InstanceId: ckafka实例id。
1434
+ # @type InstanceId: String
1435
+ # @param GroupName: 可选,用户需要查询的group名称。
1436
+ # @type GroupName: String
1437
+ # @param TopicName: 可选,用户需要查询的group中的对应的topic名称,如果指定了该参数,而group又未指定则忽略该参数。
1438
+ # @type TopicName: String
1439
+ # @param Limit: 本次返回个数限制
1440
+ # @type Limit: Integer
1441
+ # @param Offset: 偏移位置
1442
+ # @type Offset: Integer
1443
+
1444
+ attr_accessor :InstanceId, :GroupName, :TopicName, :Limit, :Offset
1445
+
1446
+ def initialize(instanceid=nil, groupname=nil, topicname=nil, limit=nil, offset=nil)
1447
+ @InstanceId = instanceid
1448
+ @GroupName = groupname
1449
+ @TopicName = topicname
1450
+ @Limit = limit
1451
+ @Offset = offset
1452
+ end
1453
+
1454
+ def deserialize(params)
1455
+ @InstanceId = params['InstanceId']
1456
+ @GroupName = params['GroupName']
1457
+ @TopicName = params['TopicName']
1458
+ @Limit = params['Limit']
1459
+ @Offset = params['Offset']
1460
+ end
1461
+ end
1462
+
1463
+ # DescribeConsumerGroup返回参数结构体
1464
+ class DescribeConsumerGroupResponse < TencentCloud::Common::AbstractModel
1465
+ # @param Result: 返回的消费分组信息
1466
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.ConsumerGroupResponse`
1467
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1468
+ # @type RequestId: String
1469
+
1470
+ attr_accessor :Result, :RequestId
1471
+
1472
+ def initialize(result=nil, requestid=nil)
1473
+ @Result = result
1474
+ @RequestId = requestid
1475
+ end
1476
+
1477
+ def deserialize(params)
1478
+ unless params['Result'].nil?
1479
+ @Result = ConsumerGroupResponse.new
1480
+ @Result.deserialize(params['Result'])
1481
+ end
1482
+ @RequestId = params['RequestId']
1483
+ end
1484
+ end
1485
+
1486
+ # DescribeGroup返回实体
1487
+ class DescribeGroup < TencentCloud::Common::AbstractModel
1488
+ # @param Group: groupId
1489
+ # @type Group: String
1490
+ # @param Protocol: 该 group 使用的协议。
1491
+ # @type Protocol: String
1492
+
1493
+ attr_accessor :Group, :Protocol
1494
+
1495
+ def initialize(group=nil, protocol=nil)
1496
+ @Group = group
1497
+ @Protocol = protocol
1498
+ end
1499
+
1500
+ def deserialize(params)
1501
+ @Group = params['Group']
1502
+ @Protocol = params['Protocol']
1503
+ end
1504
+ end
1505
+
1506
+ # DescribeGroupInfo请求参数结构体
1507
+ class DescribeGroupInfoRequest < TencentCloud::Common::AbstractModel
1508
+ # @param InstanceId: (过滤条件)按照实例 ID 过滤。
1509
+ # @type InstanceId: String
1510
+ # @param GroupList: Kafka 消费分组,Consumer-group,这里是数组形式,格式:GroupList.0=xxx&GroupList.1=yyy。
1511
+ # @type GroupList: Array
1512
+
1513
+ attr_accessor :InstanceId, :GroupList
1514
+
1515
+ def initialize(instanceid=nil, grouplist=nil)
1516
+ @InstanceId = instanceid
1517
+ @GroupList = grouplist
1518
+ end
1519
+
1520
+ def deserialize(params)
1521
+ @InstanceId = params['InstanceId']
1522
+ @GroupList = params['GroupList']
1523
+ end
1524
+ end
1525
+
1526
+ # DescribeGroupInfo返回参数结构体
1527
+ class DescribeGroupInfoResponse < TencentCloud::Common::AbstractModel
1528
+ # @param Result: 返回的结果
1529
+ # 注意:此字段可能返回 null,表示取不到有效值。
1530
+ # @type Result: Array
1531
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1532
+ # @type RequestId: String
1533
+
1534
+ attr_accessor :Result, :RequestId
1535
+
1536
+ def initialize(result=nil, requestid=nil)
1537
+ @Result = result
1538
+ @RequestId = requestid
1539
+ end
1540
+
1541
+ def deserialize(params)
1542
+ unless params['Result'].nil?
1543
+ @Result = []
1544
+ params['Result'].each do |i|
1545
+ groupinforesponse_tmp = GroupInfoResponse.new
1546
+ groupinforesponse_tmp.deserialize(i)
1547
+ @Result << groupinforesponse_tmp
1548
+ end
1549
+ end
1550
+ @RequestId = params['RequestId']
1551
+ end
1552
+ end
1553
+
1554
+ # DescribeGroupOffsets请求参数结构体
1555
+ class DescribeGroupOffsetsRequest < TencentCloud::Common::AbstractModel
1556
+ # @param InstanceId: (过滤条件)按照实例 ID 过滤
1557
+ # @type InstanceId: String
1558
+ # @param Group: Kafka 消费分组
1559
+ # @type Group: String
1560
+ # @param Topics: group 订阅的主题名称数组,如果没有该数组,则表示指定的 group 下所有 topic 信息
1561
+ # @type Topics: Array
1562
+ # @param SearchWord: 模糊匹配 topicName
1563
+ # @type SearchWord: String
1564
+ # @param Offset: 本次查询的偏移位置,默认为0
1565
+ # @type Offset: Integer
1566
+ # @param Limit: 本次返回结果的最大个数,默认为50,最大值为50
1567
+ # @type Limit: Integer
1568
+
1569
+ attr_accessor :InstanceId, :Group, :Topics, :SearchWord, :Offset, :Limit
1570
+
1571
+ def initialize(instanceid=nil, group=nil, topics=nil, searchword=nil, offset=nil, limit=nil)
1572
+ @InstanceId = instanceid
1573
+ @Group = group
1574
+ @Topics = topics
1575
+ @SearchWord = searchword
1576
+ @Offset = offset
1577
+ @Limit = limit
1578
+ end
1579
+
1580
+ def deserialize(params)
1581
+ @InstanceId = params['InstanceId']
1582
+ @Group = params['Group']
1583
+ @Topics = params['Topics']
1584
+ @SearchWord = params['SearchWord']
1585
+ @Offset = params['Offset']
1586
+ @Limit = params['Limit']
1587
+ end
1588
+ end
1589
+
1590
+ # DescribeGroupOffsets返回参数结构体
1591
+ class DescribeGroupOffsetsResponse < TencentCloud::Common::AbstractModel
1592
+ # @param Result: 返回的结果对象
1593
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.GroupOffsetResponse`
1594
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1595
+ # @type RequestId: String
1596
+
1597
+ attr_accessor :Result, :RequestId
1598
+
1599
+ def initialize(result=nil, requestid=nil)
1600
+ @Result = result
1601
+ @RequestId = requestid
1602
+ end
1603
+
1604
+ def deserialize(params)
1605
+ unless params['Result'].nil?
1606
+ @Result = GroupOffsetResponse.new
1607
+ @Result.deserialize(params['Result'])
1608
+ end
1609
+ @RequestId = params['RequestId']
1610
+ end
1611
+ end
1612
+
1613
+ # DescribeGroup请求参数结构体
1614
+ class DescribeGroupRequest < TencentCloud::Common::AbstractModel
1615
+ # @param InstanceId: 实例ID
1616
+ # @type InstanceId: String
1617
+ # @param SearchWord: 搜索关键字
1618
+ # @type SearchWord: String
1619
+ # @param Offset: 偏移量
1620
+ # @type Offset: Integer
1621
+ # @param Limit: 最大返回数量
1622
+ # @type Limit: Integer
1623
+
1624
+ attr_accessor :InstanceId, :SearchWord, :Offset, :Limit
1625
+
1626
+ def initialize(instanceid=nil, searchword=nil, offset=nil, limit=nil)
1627
+ @InstanceId = instanceid
1628
+ @SearchWord = searchword
1629
+ @Offset = offset
1630
+ @Limit = limit
1631
+ end
1632
+
1633
+ def deserialize(params)
1634
+ @InstanceId = params['InstanceId']
1635
+ @SearchWord = params['SearchWord']
1636
+ @Offset = params['Offset']
1637
+ @Limit = params['Limit']
1638
+ end
1639
+ end
1640
+
1641
+ # DescribeGroup返回参数结构体
1642
+ class DescribeGroupResponse < TencentCloud::Common::AbstractModel
1643
+ # @param Result: 返回结果集列表
1644
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.GroupResponse`
1645
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1646
+ # @type RequestId: String
1647
+
1648
+ attr_accessor :Result, :RequestId
1649
+
1650
+ def initialize(result=nil, requestid=nil)
1651
+ @Result = result
1652
+ @RequestId = requestid
1653
+ end
1654
+
1655
+ def deserialize(params)
1656
+ unless params['Result'].nil?
1657
+ @Result = GroupResponse.new
1658
+ @Result.deserialize(params['Result'])
1659
+ end
1660
+ @RequestId = params['RequestId']
1661
+ end
1662
+ end
1663
+
1664
+ # DescribeInstanceAttributes请求参数结构体
1665
+ class DescribeInstanceAttributesRequest < TencentCloud::Common::AbstractModel
1666
+ # @param InstanceId: 实例id
1667
+ # @type InstanceId: String
1668
+
1669
+ attr_accessor :InstanceId
1670
+
1671
+ def initialize(instanceid=nil)
1672
+ @InstanceId = instanceid
1673
+ end
1674
+
1675
+ def deserialize(params)
1676
+ @InstanceId = params['InstanceId']
1677
+ end
1678
+ end
1679
+
1680
+ # DescribeInstanceAttributes返回参数结构体
1681
+ class DescribeInstanceAttributesResponse < TencentCloud::Common::AbstractModel
1682
+ # @param Result: 实例属性返回结果对象。
1683
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.InstanceAttributesResponse`
1684
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1685
+ # @type RequestId: String
1686
+
1687
+ attr_accessor :Result, :RequestId
1688
+
1689
+ def initialize(result=nil, requestid=nil)
1690
+ @Result = result
1691
+ @RequestId = requestid
1692
+ end
1693
+
1694
+ def deserialize(params)
1695
+ unless params['Result'].nil?
1696
+ @Result = InstanceAttributesResponse.new
1697
+ @Result.deserialize(params['Result'])
1698
+ end
1699
+ @RequestId = params['RequestId']
1700
+ end
1701
+ end
1702
+
1703
+ # DescribeInstancesDetail请求参数结构体
1704
+ class DescribeInstancesDetailRequest < TencentCloud::Common::AbstractModel
1705
+ # @param InstanceId: (过滤条件)按照实例ID过滤
1706
+ # @type InstanceId: String
1707
+ # @param SearchWord: (过滤条件)按照实例名称过滤,支持模糊查询
1708
+ # @type SearchWord: String
1709
+ # @param Status: (过滤条件)实例的状态。0:创建中,1:运行中,2:删除中,不填默认返回全部
1710
+ # @type Status: Array
1711
+ # @param Offset: 偏移量,不填默认为0
1712
+ # @type Offset: Integer
1713
+ # @param Limit: 返回数量,不填则默认10,最大值20
1714
+ # @type Limit: Integer
1715
+ # @param TagKey: 匹配标签key值。
1716
+ # @type TagKey: String
1717
+ # @param Filters: 过滤器
1718
+ # @type Filters: Array
1719
+
1720
+ attr_accessor :InstanceId, :SearchWord, :Status, :Offset, :Limit, :TagKey, :Filters
1721
+
1722
+ def initialize(instanceid=nil, searchword=nil, status=nil, offset=nil, limit=nil, tagkey=nil, filters=nil)
1723
+ @InstanceId = instanceid
1724
+ @SearchWord = searchword
1725
+ @Status = status
1726
+ @Offset = offset
1727
+ @Limit = limit
1728
+ @TagKey = tagkey
1729
+ @Filters = filters
1730
+ end
1731
+
1732
+ def deserialize(params)
1733
+ @InstanceId = params['InstanceId']
1734
+ @SearchWord = params['SearchWord']
1735
+ @Status = params['Status']
1736
+ @Offset = params['Offset']
1737
+ @Limit = params['Limit']
1738
+ @TagKey = params['TagKey']
1739
+ unless params['Filters'].nil?
1740
+ @Filters = []
1741
+ params['Filters'].each do |i|
1742
+ filter_tmp = Filter.new
1743
+ filter_tmp.deserialize(i)
1744
+ @Filters << filter_tmp
1745
+ end
1746
+ end
1747
+ end
1748
+ end
1749
+
1750
+ # DescribeInstancesDetail返回参数结构体
1751
+ class DescribeInstancesDetailResponse < TencentCloud::Common::AbstractModel
1752
+ # @param Result: 返回的实例详情结果对象
1753
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.InstanceDetailResponse`
1754
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1755
+ # @type RequestId: String
1756
+
1757
+ attr_accessor :Result, :RequestId
1758
+
1759
+ def initialize(result=nil, requestid=nil)
1760
+ @Result = result
1761
+ @RequestId = requestid
1762
+ end
1763
+
1764
+ def deserialize(params)
1765
+ unless params['Result'].nil?
1766
+ @Result = InstanceDetailResponse.new
1767
+ @Result.deserialize(params['Result'])
1768
+ end
1769
+ @RequestId = params['RequestId']
1770
+ end
1771
+ end
1772
+
1773
+ # DescribeInstances请求参数结构体
1774
+ class DescribeInstancesRequest < TencentCloud::Common::AbstractModel
1775
+ # @param InstanceId: (过滤条件)按照实例ID过滤
1776
+ # @type InstanceId: String
1777
+ # @param SearchWord: (过滤条件)按照实例名称过滤,支持模糊查询
1778
+ # @type SearchWord: String
1779
+ # @param Status: (过滤条件)实例的状态。0:创建中,1:运行中,2:删除中,不填默认返回全部
1780
+ # @type Status: Array
1781
+ # @param Offset: 偏移量,不填默认为0
1782
+ # @type Offset: Integer
1783
+ # @param Limit: 返回数量,不填则默认10,最大值100
1784
+ # @type Limit: Integer
1785
+ # @param TagKey: 匹配标签key值。
1786
+ # @type TagKey: String
1787
+
1788
+ attr_accessor :InstanceId, :SearchWord, :Status, :Offset, :Limit, :TagKey
1789
+
1790
+ def initialize(instanceid=nil, searchword=nil, status=nil, offset=nil, limit=nil, tagkey=nil)
1791
+ @InstanceId = instanceid
1792
+ @SearchWord = searchword
1793
+ @Status = status
1794
+ @Offset = offset
1795
+ @Limit = limit
1796
+ @TagKey = tagkey
1797
+ end
1798
+
1799
+ def deserialize(params)
1800
+ @InstanceId = params['InstanceId']
1801
+ @SearchWord = params['SearchWord']
1802
+ @Status = params['Status']
1803
+ @Offset = params['Offset']
1804
+ @Limit = params['Limit']
1805
+ @TagKey = params['TagKey']
1806
+ end
1807
+ end
1808
+
1809
+ # DescribeInstances返回参数结构体
1810
+ class DescribeInstancesResponse < TencentCloud::Common::AbstractModel
1811
+ # @param Result: 返回的结果
1812
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.InstanceResponse`
1813
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1814
+ # @type RequestId: String
1815
+
1816
+ attr_accessor :Result, :RequestId
1817
+
1818
+ def initialize(result=nil, requestid=nil)
1819
+ @Result = result
1820
+ @RequestId = requestid
1821
+ end
1822
+
1823
+ def deserialize(params)
1824
+ unless params['Result'].nil?
1825
+ @Result = InstanceResponse.new
1826
+ @Result.deserialize(params['Result'])
1827
+ end
1828
+ @RequestId = params['RequestId']
1829
+ end
1830
+ end
1831
+
1832
+ # DescribeRegion请求参数结构体
1833
+ class DescribeRegionRequest < TencentCloud::Common::AbstractModel
1834
+ # @param Offset: 偏移量
1835
+ # @type Offset: Integer
1836
+ # @param Limit: 返回最大结果数
1837
+ # @type Limit: Integer
1838
+ # @param Business: 业务字段,可忽略
1839
+ # @type Business: String
1840
+
1841
+ attr_accessor :Offset, :Limit, :Business
1842
+
1843
+ def initialize(offset=nil, limit=nil, business=nil)
1844
+ @Offset = offset
1845
+ @Limit = limit
1846
+ @Business = business
1847
+ end
1848
+
1849
+ def deserialize(params)
1850
+ @Offset = params['Offset']
1851
+ @Limit = params['Limit']
1852
+ @Business = params['Business']
1853
+ end
1854
+ end
1855
+
1856
+ # DescribeRegion返回参数结构体
1857
+ class DescribeRegionResponse < TencentCloud::Common::AbstractModel
1858
+ # @param Result: 返回地域枚举结果列表
1859
+ # 注意:此字段可能返回 null,表示取不到有效值。
1860
+ # @type Result: Array
1861
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1862
+ # @type RequestId: String
1863
+
1864
+ attr_accessor :Result, :RequestId
1865
+
1866
+ def initialize(result=nil, requestid=nil)
1867
+ @Result = result
1868
+ @RequestId = requestid
1869
+ end
1870
+
1871
+ def deserialize(params)
1872
+ unless params['Result'].nil?
1873
+ @Result = []
1874
+ params['Result'].each do |i|
1875
+ region_tmp = Region.new
1876
+ region_tmp.deserialize(i)
1877
+ @Result << region_tmp
1878
+ end
1879
+ end
1880
+ @RequestId = params['RequestId']
1881
+ end
1882
+ end
1883
+
1884
+ # DescribeRoute请求参数结构体
1885
+ class DescribeRouteRequest < TencentCloud::Common::AbstractModel
1886
+ # @param InstanceId: 实例唯一id
1887
+ # @type InstanceId: String
1888
+
1889
+ attr_accessor :InstanceId
1890
+
1891
+ def initialize(instanceid=nil)
1892
+ @InstanceId = instanceid
1893
+ end
1894
+
1895
+ def deserialize(params)
1896
+ @InstanceId = params['InstanceId']
1897
+ end
1898
+ end
1899
+
1900
+ # DescribeRoute返回参数结构体
1901
+ class DescribeRouteResponse < TencentCloud::Common::AbstractModel
1902
+ # @param Result: 返回的路由信息结果集
1903
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.RouteResponse`
1904
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1905
+ # @type RequestId: String
1906
+
1907
+ attr_accessor :Result, :RequestId
1908
+
1909
+ def initialize(result=nil, requestid=nil)
1910
+ @Result = result
1911
+ @RequestId = requestid
1912
+ end
1913
+
1914
+ def deserialize(params)
1915
+ unless params['Result'].nil?
1916
+ @Result = RouteResponse.new
1917
+ @Result.deserialize(params['Result'])
1918
+ end
1919
+ @RequestId = params['RequestId']
1920
+ end
1921
+ end
1922
+
1923
+ # DescribeTopicAttributes请求参数结构体
1924
+ class DescribeTopicAttributesRequest < TencentCloud::Common::AbstractModel
1925
+ # @param InstanceId: 实例 ID
1926
+ # @type InstanceId: String
1927
+ # @param TopicName: 主题名称
1928
+ # @type TopicName: String
1929
+
1930
+ attr_accessor :InstanceId, :TopicName
1931
+
1932
+ def initialize(instanceid=nil, topicname=nil)
1933
+ @InstanceId = instanceid
1934
+ @TopicName = topicname
1935
+ end
1936
+
1937
+ def deserialize(params)
1938
+ @InstanceId = params['InstanceId']
1939
+ @TopicName = params['TopicName']
1940
+ end
1941
+ end
1942
+
1943
+ # DescribeTopicAttributes返回参数结构体
1944
+ class DescribeTopicAttributesResponse < TencentCloud::Common::AbstractModel
1945
+ # @param Result: 返回的结果对象
1946
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.TopicAttributesResponse`
1947
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1948
+ # @type RequestId: String
1949
+
1950
+ attr_accessor :Result, :RequestId
1951
+
1952
+ def initialize(result=nil, requestid=nil)
1953
+ @Result = result
1954
+ @RequestId = requestid
1955
+ end
1956
+
1957
+ def deserialize(params)
1958
+ unless params['Result'].nil?
1959
+ @Result = TopicAttributesResponse.new
1960
+ @Result.deserialize(params['Result'])
1961
+ end
1962
+ @RequestId = params['RequestId']
1963
+ end
1964
+ end
1965
+
1966
+ # DescribeTopicDetail请求参数结构体
1967
+ class DescribeTopicDetailRequest < TencentCloud::Common::AbstractModel
1968
+ # @param InstanceId: 实例id
1969
+ # @type InstanceId: String
1970
+ # @param SearchWord: (过滤条件)按照topicName过滤,支持模糊查询
1971
+ # @type SearchWord: String
1972
+ # @param Offset: 偏移量,不填默认为0
1973
+ # @type Offset: Integer
1974
+ # @param Limit: 返回数量,不填则默认 10,最大值20,取值要大于0
1975
+ # @type Limit: Integer
1976
+ # @param AclRuleName: Acl预设策略名称
1977
+ # @type AclRuleName: String
1978
+
1979
+ attr_accessor :InstanceId, :SearchWord, :Offset, :Limit, :AclRuleName
1980
+
1981
+ def initialize(instanceid=nil, searchword=nil, offset=nil, limit=nil, aclrulename=nil)
1982
+ @InstanceId = instanceid
1983
+ @SearchWord = searchword
1984
+ @Offset = offset
1985
+ @Limit = limit
1986
+ @AclRuleName = aclrulename
1987
+ end
1988
+
1989
+ def deserialize(params)
1990
+ @InstanceId = params['InstanceId']
1991
+ @SearchWord = params['SearchWord']
1992
+ @Offset = params['Offset']
1993
+ @Limit = params['Limit']
1994
+ @AclRuleName = params['AclRuleName']
1995
+ end
1996
+ end
1997
+
1998
+ # DescribeTopicDetail返回参数结构体
1999
+ class DescribeTopicDetailResponse < TencentCloud::Common::AbstractModel
2000
+ # @param Result: 返回的主题详情实体
2001
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.TopicDetailResponse`
2002
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2003
+ # @type RequestId: String
2004
+
2005
+ attr_accessor :Result, :RequestId
2006
+
2007
+ def initialize(result=nil, requestid=nil)
2008
+ @Result = result
2009
+ @RequestId = requestid
2010
+ end
2011
+
2012
+ def deserialize(params)
2013
+ unless params['Result'].nil?
2014
+ @Result = TopicDetailResponse.new
2015
+ @Result.deserialize(params['Result'])
2016
+ end
2017
+ @RequestId = params['RequestId']
2018
+ end
2019
+ end
2020
+
2021
+ # DescribeTopic请求参数结构体
2022
+ class DescribeTopicRequest < TencentCloud::Common::AbstractModel
2023
+ # @param InstanceId: 实例 ID
2024
+ # @type InstanceId: String
2025
+ # @param SearchWord: 过滤条件,按照 topicName 过滤,支持模糊查询
2026
+ # @type SearchWord: String
2027
+ # @param Offset: 偏移量,不填默认为0
2028
+ # @type Offset: Integer
2029
+ # @param Limit: 返回数量,不填则默认为10,最大值为50
2030
+ # @type Limit: Integer
2031
+ # @param AclRuleName: Acl预设策略名称
2032
+ # @type AclRuleName: String
2033
+
2034
+ attr_accessor :InstanceId, :SearchWord, :Offset, :Limit, :AclRuleName
2035
+
2036
+ def initialize(instanceid=nil, searchword=nil, offset=nil, limit=nil, aclrulename=nil)
2037
+ @InstanceId = instanceid
2038
+ @SearchWord = searchword
2039
+ @Offset = offset
2040
+ @Limit = limit
2041
+ @AclRuleName = aclrulename
2042
+ end
2043
+
2044
+ def deserialize(params)
2045
+ @InstanceId = params['InstanceId']
2046
+ @SearchWord = params['SearchWord']
2047
+ @Offset = params['Offset']
2048
+ @Limit = params['Limit']
2049
+ @AclRuleName = params['AclRuleName']
2050
+ end
2051
+ end
2052
+
2053
+ # DescribeTopic返回参数结构体
2054
+ class DescribeTopicResponse < TencentCloud::Common::AbstractModel
2055
+ # @param Result: 返回的结果
2056
+ # 注意:此字段可能返回 null,表示取不到有效值。
2057
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.TopicResult`
2058
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2059
+ # @type RequestId: String
2060
+
2061
+ attr_accessor :Result, :RequestId
2062
+
2063
+ def initialize(result=nil, requestid=nil)
2064
+ @Result = result
2065
+ @RequestId = requestid
2066
+ end
2067
+
2068
+ def deserialize(params)
2069
+ unless params['Result'].nil?
2070
+ @Result = TopicResult.new
2071
+ @Result.deserialize(params['Result'])
2072
+ end
2073
+ @RequestId = params['RequestId']
2074
+ end
2075
+ end
2076
+
2077
+ # DescribeTopicSubscribeGroup请求参数结构体
2078
+ class DescribeTopicSubscribeGroupRequest < TencentCloud::Common::AbstractModel
2079
+ # @param InstanceId: 实例Id
2080
+ # @type InstanceId: String
2081
+ # @param TopicName: 主题名称
2082
+ # @type TopicName: String
2083
+ # @param Offset: 分页时的起始位置
2084
+ # @type Offset: Integer
2085
+ # @param Limit: 分页时的个数
2086
+ # @type Limit: Integer
2087
+
2088
+ attr_accessor :InstanceId, :TopicName, :Offset, :Limit
2089
+
2090
+ def initialize(instanceid=nil, topicname=nil, offset=nil, limit=nil)
2091
+ @InstanceId = instanceid
2092
+ @TopicName = topicname
2093
+ @Offset = offset
2094
+ @Limit = limit
2095
+ end
2096
+
2097
+ def deserialize(params)
2098
+ @InstanceId = params['InstanceId']
2099
+ @TopicName = params['TopicName']
2100
+ @Offset = params['Offset']
2101
+ @Limit = params['Limit']
2102
+ end
2103
+ end
2104
+
2105
+ # DescribeTopicSubscribeGroup返回参数结构体
2106
+ class DescribeTopicSubscribeGroupResponse < TencentCloud::Common::AbstractModel
2107
+ # @param Result: 返回结果
2108
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.TopicSubscribeGroup`
2109
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2110
+ # @type RequestId: String
2111
+
2112
+ attr_accessor :Result, :RequestId
2113
+
2114
+ def initialize(result=nil, requestid=nil)
2115
+ @Result = result
2116
+ @RequestId = requestid
2117
+ end
2118
+
2119
+ def deserialize(params)
2120
+ unless params['Result'].nil?
2121
+ @Result = TopicSubscribeGroup.new
2122
+ @Result.deserialize(params['Result'])
2123
+ end
2124
+ @RequestId = params['RequestId']
2125
+ end
2126
+ end
2127
+
2128
+ # DescribeTopicSyncReplica请求参数结构体
2129
+ class DescribeTopicSyncReplicaRequest < TencentCloud::Common::AbstractModel
2130
+ # @param InstanceId: 实例ID
2131
+ # @type InstanceId: String
2132
+ # @param TopicName: 主题名称
2133
+ # @type TopicName: String
2134
+ # @param Offset: 偏移量,不填默认为0
2135
+ # @type Offset: Integer
2136
+ # @param Limit: 返回数量,不填则默认10,最大值20。
2137
+ # @type Limit: Integer
2138
+ # @param OutOfSyncReplicaOnly: 仅筛选未同步副本
2139
+ # @type OutOfSyncReplicaOnly: Boolean
2140
+
2141
+ attr_accessor :InstanceId, :TopicName, :Offset, :Limit, :OutOfSyncReplicaOnly
2142
+
2143
+ def initialize(instanceid=nil, topicname=nil, offset=nil, limit=nil, outofsyncreplicaonly=nil)
2144
+ @InstanceId = instanceid
2145
+ @TopicName = topicname
2146
+ @Offset = offset
2147
+ @Limit = limit
2148
+ @OutOfSyncReplicaOnly = outofsyncreplicaonly
2149
+ end
2150
+
2151
+ def deserialize(params)
2152
+ @InstanceId = params['InstanceId']
2153
+ @TopicName = params['TopicName']
2154
+ @Offset = params['Offset']
2155
+ @Limit = params['Limit']
2156
+ @OutOfSyncReplicaOnly = params['OutOfSyncReplicaOnly']
2157
+ end
2158
+ end
2159
+
2160
+ # DescribeTopicSyncReplica返回参数结构体
2161
+ class DescribeTopicSyncReplicaResponse < TencentCloud::Common::AbstractModel
2162
+ # @param Result: 返回topic 副本详情
2163
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.TopicInSyncReplicaResult`
2164
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2165
+ # @type RequestId: String
2166
+
2167
+ attr_accessor :Result, :RequestId
2168
+
2169
+ def initialize(result=nil, requestid=nil)
2170
+ @Result = result
2171
+ @RequestId = requestid
2172
+ end
2173
+
2174
+ def deserialize(params)
2175
+ unless params['Result'].nil?
2176
+ @Result = TopicInSyncReplicaResult.new
2177
+ @Result.deserialize(params['Result'])
2178
+ end
2179
+ @RequestId = params['RequestId']
2180
+ end
2181
+ end
2182
+
2183
+ # DescribeUser请求参数结构体
2184
+ class DescribeUserRequest < TencentCloud::Common::AbstractModel
2185
+ # @param InstanceId: 实例Id
2186
+ # @type InstanceId: String
2187
+ # @param SearchWord: 按照名称过滤
2188
+ # @type SearchWord: String
2189
+ # @param Offset: 偏移
2190
+ # @type Offset: Integer
2191
+ # @param Limit: 本次返回个数
2192
+ # @type Limit: Integer
2193
+
2194
+ attr_accessor :InstanceId, :SearchWord, :Offset, :Limit
2195
+
2196
+ def initialize(instanceid=nil, searchword=nil, offset=nil, limit=nil)
2197
+ @InstanceId = instanceid
2198
+ @SearchWord = searchword
2199
+ @Offset = offset
2200
+ @Limit = limit
2201
+ end
2202
+
2203
+ def deserialize(params)
2204
+ @InstanceId = params['InstanceId']
2205
+ @SearchWord = params['SearchWord']
2206
+ @Offset = params['Offset']
2207
+ @Limit = params['Limit']
2208
+ end
2209
+ end
2210
+
2211
+ # DescribeUser返回参数结构体
2212
+ class DescribeUserResponse < TencentCloud::Common::AbstractModel
2213
+ # @param Result: 返回结果列表
2214
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.UserResponse`
2215
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2216
+ # @type RequestId: String
2217
+
2218
+ attr_accessor :Result, :RequestId
2219
+
2220
+ def initialize(result=nil, requestid=nil)
2221
+ @Result = result
2222
+ @RequestId = requestid
2223
+ end
2224
+
2225
+ def deserialize(params)
2226
+ unless params['Result'].nil?
2227
+ @Result = UserResponse.new
2228
+ @Result.deserialize(params['Result'])
2229
+ end
2230
+ @RequestId = params['RequestId']
2231
+ end
2232
+ end
2233
+
2234
+ # 动态消息保留时间配置
2235
+ class DynamicRetentionTime < TencentCloud::Common::AbstractModel
2236
+ # @param Enable: 动态消息保留时间配置开关(0: 关闭,1: 开启)
2237
+ # 注意:此字段可能返回 null,表示取不到有效值。
2238
+ # @type Enable: Integer
2239
+ # @param DiskQuotaPercentage: 磁盘配额百分比触发条件,即消息达到此值触发消息保留时间变更事件
2240
+ # 注意:此字段可能返回 null,表示取不到有效值。
2241
+ # @type DiskQuotaPercentage: Integer
2242
+ # @param StepForwardPercentage: 每次向前调整消息保留时间百分比
2243
+ # 注意:此字段可能返回 null,表示取不到有效值。
2244
+ # @type StepForwardPercentage: Integer
2245
+ # @param BottomRetention: 保底时长,单位分钟
2246
+ # 注意:此字段可能返回 null,表示取不到有效值。
2247
+ # @type BottomRetention: Integer
2248
+
2249
+ attr_accessor :Enable, :DiskQuotaPercentage, :StepForwardPercentage, :BottomRetention
2250
+
2251
+ def initialize(enable=nil, diskquotapercentage=nil, stepforwardpercentage=nil, bottomretention=nil)
2252
+ @Enable = enable
2253
+ @DiskQuotaPercentage = diskquotapercentage
2254
+ @StepForwardPercentage = stepforwardpercentage
2255
+ @BottomRetention = bottomretention
2256
+ end
2257
+
2258
+ def deserialize(params)
2259
+ @Enable = params['Enable']
2260
+ @DiskQuotaPercentage = params['DiskQuotaPercentage']
2261
+ @StepForwardPercentage = params['StepForwardPercentage']
2262
+ @BottomRetention = params['BottomRetention']
2263
+ end
2264
+ end
2265
+
2266
+ # FetchMessageByOffset请求参数结构体
2267
+ class FetchMessageByOffsetRequest < TencentCloud::Common::AbstractModel
2268
+ # @param InstanceId: 实例Id
2269
+ # @type InstanceId: String
2270
+ # @param Topic: 主题名
2271
+ # @type Topic: String
2272
+ # @param Partition: 分区id
2273
+ # @type Partition: Integer
2274
+ # @param Offset: 位点信息
2275
+ # @type Offset: Integer
2276
+
2277
+ attr_accessor :InstanceId, :Topic, :Partition, :Offset
2278
+
2279
+ def initialize(instanceid=nil, topic=nil, partition=nil, offset=nil)
2280
+ @InstanceId = instanceid
2281
+ @Topic = topic
2282
+ @Partition = partition
2283
+ @Offset = offset
2284
+ end
2285
+
2286
+ def deserialize(params)
2287
+ @InstanceId = params['InstanceId']
2288
+ @Topic = params['Topic']
2289
+ @Partition = params['Partition']
2290
+ @Offset = params['Offset']
2291
+ end
2292
+ end
2293
+
2294
+ # FetchMessageByOffset返回参数结构体
2295
+ class FetchMessageByOffsetResponse < TencentCloud::Common::AbstractModel
2296
+ # @param Result: 返回结果
2297
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.ConsumerRecord`
2298
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2299
+ # @type RequestId: String
2300
+
2301
+ attr_accessor :Result, :RequestId
2302
+
2303
+ def initialize(result=nil, requestid=nil)
2304
+ @Result = result
2305
+ @RequestId = requestid
2306
+ end
2307
+
2308
+ def deserialize(params)
2309
+ unless params['Result'].nil?
2310
+ @Result = ConsumerRecord.new
2311
+ @Result.deserialize(params['Result'])
2312
+ end
2313
+ @RequestId = params['RequestId']
2314
+ end
2315
+ end
2316
+
2317
+ # 查询过滤器
2318
+ # >描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等
2319
+ # > * 若存在多个`Filter`时,`Filter`间的关系为逻辑与(`AND`)关系。
2320
+ # > * 若同一个`Filter`存在多个`Values`,同一`Filter`下`Values`间的关系为逻辑或(`OR`)关系。
2321
+ # >
2322
+ class Filter < TencentCloud::Common::AbstractModel
2323
+ # @param Name: 需要过滤的字段。
2324
+ # @type Name: String
2325
+ # @param Values: 字段的过滤值。
2326
+ # @type Values: Array
2327
+
2328
+ attr_accessor :Name, :Values
2329
+
2330
+ def initialize(name=nil, values=nil)
2331
+ @Name = name
2332
+ @Values = values
2333
+ end
2334
+
2335
+ def deserialize(params)
2336
+ @Name = params['Name']
2337
+ @Values = params['Values']
2338
+ end
2339
+ end
2340
+
2341
+ # 组实体
2342
+ class Group < TencentCloud::Common::AbstractModel
2343
+ # @param GroupName: 组名称
2344
+ # @type GroupName: String
2345
+
2346
+ attr_accessor :GroupName
2347
+
2348
+ def initialize(groupname=nil)
2349
+ @GroupName = groupname
2350
+ end
2351
+
2352
+ def deserialize(params)
2353
+ @GroupName = params['GroupName']
2354
+ end
2355
+ end
2356
+
2357
+ # consumer信息
2358
+ class GroupInfoMember < TencentCloud::Common::AbstractModel
2359
+ # @param MemberId: coordinator 为消费分组中的消费者生成的唯一 ID
2360
+ # @type MemberId: String
2361
+ # @param ClientId: 客户消费者 SDK 自己设置的 client.id 信息
2362
+ # @type ClientId: String
2363
+ # @param ClientHost: 一般存储客户的 IP 地址
2364
+ # @type ClientHost: String
2365
+ # @param Assignment: 存储着分配给该消费者的 partition 信息
2366
+ # @type Assignment: :class:`Tencentcloud::Ckafka.v20190819.models.Assignment`
2367
+
2368
+ attr_accessor :MemberId, :ClientId, :ClientHost, :Assignment
2369
+
2370
+ def initialize(memberid=nil, clientid=nil, clienthost=nil, assignment=nil)
2371
+ @MemberId = memberid
2372
+ @ClientId = clientid
2373
+ @ClientHost = clienthost
2374
+ @Assignment = assignment
2375
+ end
2376
+
2377
+ def deserialize(params)
2378
+ @MemberId = params['MemberId']
2379
+ @ClientId = params['ClientId']
2380
+ @ClientHost = params['ClientHost']
2381
+ unless params['Assignment'].nil?
2382
+ @Assignment = Assignment.new
2383
+ @Assignment.deserialize(params['Assignment'])
2384
+ end
2385
+ end
2386
+ end
2387
+
2388
+ # GroupInfo返回数据的实体
2389
+ class GroupInfoResponse < TencentCloud::Common::AbstractModel
2390
+ # @param ErrorCode: 错误码,正常为0
2391
+ # @type ErrorCode: String
2392
+ # @param State: group 状态描述(常见的为 Empty、Stable、Dead 三种状态):
2393
+ # Dead:消费分组不存在
2394
+ # Empty:消费分组,当前没有任何消费者订阅
2395
+ # PreparingRebalance:消费分组处于 rebalance 状态
2396
+ # CompletingRebalance:消费分组处于 rebalance 状态
2397
+ # Stable:消费分组中各个消费者已经加入,处于稳定状态
2398
+ # @type State: String
2399
+ # @param ProtocolType: 消费分组选择的协议类型正常的消费者一般为 consumer 但有些系统采用了自己的协议如 kafka-connect 用的就是 connect。只有标准的 consumer 协议,本接口才知道具体的分配方式的格式,才能解析到具体的 partition 的分配情况
2400
+ # @type ProtocolType: String
2401
+ # @param Protocol: 消费者 partition 分配算法常见的有如下几种(Kafka 消费者 SDK 默认的选择项为 range):range、 roundrobin、 sticky
2402
+ # @type Protocol: String
2403
+ # @param Members: 仅当 state 为 Stable 且 protocol_type 为 consumer 时, 该数组才包含信息
2404
+ # @type Members: Array
2405
+ # @param Group: Kafka 消费分组
2406
+ # @type Group: String
2407
+
2408
+ attr_accessor :ErrorCode, :State, :ProtocolType, :Protocol, :Members, :Group
2409
+
2410
+ def initialize(errorcode=nil, state=nil, protocoltype=nil, protocol=nil, members=nil, group=nil)
2411
+ @ErrorCode = errorcode
2412
+ @State = state
2413
+ @ProtocolType = protocoltype
2414
+ @Protocol = protocol
2415
+ @Members = members
2416
+ @Group = group
2417
+ end
2418
+
2419
+ def deserialize(params)
2420
+ @ErrorCode = params['ErrorCode']
2421
+ @State = params['State']
2422
+ @ProtocolType = params['ProtocolType']
2423
+ @Protocol = params['Protocol']
2424
+ unless params['Members'].nil?
2425
+ @Members = []
2426
+ params['Members'].each do |i|
2427
+ groupinfomember_tmp = GroupInfoMember.new
2428
+ groupinfomember_tmp.deserialize(i)
2429
+ @Members << groupinfomember_tmp
2430
+ end
2431
+ end
2432
+ @Group = params['Group']
2433
+ end
2434
+ end
2435
+
2436
+ # GroupInfo内部topic对象
2437
+ class GroupInfoTopics < TencentCloud::Common::AbstractModel
2438
+ # @param Topic: 分配的 topic 名称
2439
+ # @type Topic: String
2440
+ # @param Partitions: 分配的 partition 信息
2441
+ # 注意:此字段可能返回 null,表示取不到有效值。
2442
+ # @type Partitions: Array
2443
+
2444
+ attr_accessor :Topic, :Partitions
2445
+
2446
+ def initialize(topic=nil, partitions=nil)
2447
+ @Topic = topic
2448
+ @Partitions = partitions
2449
+ end
2450
+
2451
+ def deserialize(params)
2452
+ @Topic = params['Topic']
2453
+ @Partitions = params['Partitions']
2454
+ end
2455
+ end
2456
+
2457
+ # 组偏移量分区对象
2458
+ class GroupOffsetPartition < TencentCloud::Common::AbstractModel
2459
+ # @param Partition: topic 的 partitionId
2460
+ # @type Partition: Integer
2461
+ # @param Offset: consumer 提交的 offset 位置
2462
+ # @type Offset: Integer
2463
+ # @param Metadata: 支持消费者提交消息时,传入 metadata 作为它用,当前一般为空字符串
2464
+ # 注意:此字段可能返回 null,表示取不到有效值。
2465
+ # @type Metadata: String
2466
+ # @param ErrorCode: 错误码
2467
+ # @type ErrorCode: Integer
2468
+ # @param LogEndOffset: 当前 partition 最新的 offset
2469
+ # @type LogEndOffset: Integer
2470
+ # @param Lag: 未消费的消息个数
2471
+ # @type Lag: Integer
2472
+
2473
+ attr_accessor :Partition, :Offset, :Metadata, :ErrorCode, :LogEndOffset, :Lag
2474
+
2475
+ def initialize(partition=nil, offset=nil, metadata=nil, errorcode=nil, logendoffset=nil, lag=nil)
2476
+ @Partition = partition
2477
+ @Offset = offset
2478
+ @Metadata = metadata
2479
+ @ErrorCode = errorcode
2480
+ @LogEndOffset = logendoffset
2481
+ @Lag = lag
2482
+ end
2483
+
2484
+ def deserialize(params)
2485
+ @Partition = params['Partition']
2486
+ @Offset = params['Offset']
2487
+ @Metadata = params['Metadata']
2488
+ @ErrorCode = params['ErrorCode']
2489
+ @LogEndOffset = params['LogEndOffset']
2490
+ @Lag = params['Lag']
2491
+ end
2492
+ end
2493
+
2494
+ # 消费组偏移量返回结果
2495
+ class GroupOffsetResponse < TencentCloud::Common::AbstractModel
2496
+ # @param TotalCount: 符合调节的总结果数
2497
+ # @type TotalCount: Integer
2498
+ # @param TopicList: 该主题分区数组,其中每个元素为一个 json object
2499
+ # 注意:此字段可能返回 null,表示取不到有效值。
2500
+ # @type TopicList: Array
2501
+
2502
+ attr_accessor :TotalCount, :TopicList
2503
+
2504
+ def initialize(totalcount=nil, topiclist=nil)
2505
+ @TotalCount = totalcount
2506
+ @TopicList = topiclist
2507
+ end
2508
+
2509
+ def deserialize(params)
2510
+ @TotalCount = params['TotalCount']
2511
+ unless params['TopicList'].nil?
2512
+ @TopicList = []
2513
+ params['TopicList'].each do |i|
2514
+ groupoffsettopic_tmp = GroupOffsetTopic.new
2515
+ groupoffsettopic_tmp.deserialize(i)
2516
+ @TopicList << groupoffsettopic_tmp
2517
+ end
2518
+ end
2519
+ end
2520
+ end
2521
+
2522
+ # 消费分组主题对象
2523
+ class GroupOffsetTopic < TencentCloud::Common::AbstractModel
2524
+ # @param Topic: 主题名称
2525
+ # @type Topic: String
2526
+ # @param Partitions: 该主题分区数组,其中每个元素为一个 json object
2527
+ # 注意:此字段可能返回 null,表示取不到有效值。
2528
+ # @type Partitions: Array
2529
+
2530
+ attr_accessor :Topic, :Partitions
2531
+
2532
+ def initialize(topic=nil, partitions=nil)
2533
+ @Topic = topic
2534
+ @Partitions = partitions
2535
+ end
2536
+
2537
+ def deserialize(params)
2538
+ @Topic = params['Topic']
2539
+ unless params['Partitions'].nil?
2540
+ @Partitions = []
2541
+ params['Partitions'].each do |i|
2542
+ groupoffsetpartition_tmp = GroupOffsetPartition.new
2543
+ groupoffsetpartition_tmp.deserialize(i)
2544
+ @Partitions << groupoffsetpartition_tmp
2545
+ end
2546
+ end
2547
+ end
2548
+ end
2549
+
2550
+ # DescribeGroup的返回
2551
+ class GroupResponse < TencentCloud::Common::AbstractModel
2552
+ # @param TotalCount: 计数
2553
+ # 注意:此字段可能返回 null,表示取不到有效值。
2554
+ # @type TotalCount: Integer
2555
+ # @param GroupList: GroupList
2556
+ # 注意:此字段可能返回 null,表示取不到有效值。
2557
+ # @type GroupList: Array
2558
+
2559
+ attr_accessor :TotalCount, :GroupList
2560
+
2561
+ def initialize(totalcount=nil, grouplist=nil)
2562
+ @TotalCount = totalcount
2563
+ @GroupList = grouplist
2564
+ end
2565
+
2566
+ def deserialize(params)
2567
+ @TotalCount = params['TotalCount']
2568
+ unless params['GroupList'].nil?
2569
+ @GroupList = []
2570
+ params['GroupList'].each do |i|
2571
+ describegroup_tmp = DescribeGroup.new
2572
+ describegroup_tmp.deserialize(i)
2573
+ @GroupList << describegroup_tmp
2574
+ end
2575
+ end
2576
+ end
2577
+ end
2578
+
2579
+ # 实例对象
2580
+ class Instance < TencentCloud::Common::AbstractModel
2581
+ # @param InstanceId: 实例id
2582
+ # @type InstanceId: String
2583
+ # @param InstanceName: 实例名称
2584
+ # @type InstanceName: String
2585
+ # @param Status: 实例的状态。0:创建中,1:运行中,2:删除中 , 5 隔离中,-1 创建失败
2586
+ # @type Status: Integer
2587
+ # @param IfCommunity: 是否开源实例。开源:true,不开源:false
2588
+ # 注意:此字段可能返回 null,表示取不到有效值。
2589
+ # @type IfCommunity: Boolean
2590
+
2591
+ attr_accessor :InstanceId, :InstanceName, :Status, :IfCommunity
2592
+
2593
+ def initialize(instanceid=nil, instancename=nil, status=nil, ifcommunity=nil)
2594
+ @InstanceId = instanceid
2595
+ @InstanceName = instancename
2596
+ @Status = status
2597
+ @IfCommunity = ifcommunity
2598
+ end
2599
+
2600
+ def deserialize(params)
2601
+ @InstanceId = params['InstanceId']
2602
+ @InstanceName = params['InstanceName']
2603
+ @Status = params['Status']
2604
+ @IfCommunity = params['IfCommunity']
2605
+ end
2606
+ end
2607
+
2608
+ # 实例属性返回结果对象
2609
+ class InstanceAttributesResponse < TencentCloud::Common::AbstractModel
2610
+ # @param InstanceId: 实例ID
2611
+ # @type InstanceId: String
2612
+ # @param InstanceName: 实例名称
2613
+ # @type InstanceName: String
2614
+ # @param VipList: 接入点 VIP 列表信息
2615
+ # @type VipList: Array
2616
+ # @param Vip: 虚拟IP
2617
+ # @type Vip: String
2618
+ # @param Vport: 虚拟端口
2619
+ # @type Vport: String
2620
+ # @param Status: 实例的状态。0:创建中,1:运行中,2:删除中
2621
+ # @type Status: Integer
2622
+ # @param Bandwidth: 实例带宽,单位:Mbps
2623
+ # @type Bandwidth: Integer
2624
+ # @param DiskSize: 实例的存储大小,单位:GB
2625
+ # @type DiskSize: Integer
2626
+ # @param ZoneId: 可用区
2627
+ # @type ZoneId: Integer
2628
+ # @param VpcId: VPC 的 ID,为空表示是基础网络
2629
+ # @type VpcId: String
2630
+ # @param SubnetId: 子网 ID, 为空表示基础网络
2631
+ # @type SubnetId: String
2632
+ # @param Healthy: 实例健康状态, 1:健康,2:告警,3:异常
2633
+ # @type Healthy: Integer
2634
+ # @param HealthyMessage: 实例健康信息,当前会展示磁盘利用率,最大长度为256
2635
+ # @type HealthyMessage: String
2636
+ # @param CreateTime: 创建时间
2637
+ # @type CreateTime: Integer
2638
+ # @param MsgRetentionTime: 消息保存时间,单位为分钟
2639
+ # @type MsgRetentionTime: Integer
2640
+ # @param Config: 自动创建 Topic 配置, 若该字段为空,则表示未开启自动创建
2641
+ # @type Config: :class:`Tencentcloud::Ckafka.v20190819.models.InstanceConfigDO`
2642
+ # @param RemainderPartitions: 剩余创建分区数
2643
+ # @type RemainderPartitions: Integer
2644
+ # @param RemainderTopics: 剩余创建主题数
2645
+ # @type RemainderTopics: Integer
2646
+ # @param CreatedPartitions: 当前创建分区数
2647
+ # @type CreatedPartitions: Integer
2648
+ # @param CreatedTopics: 当前创建主题数
2649
+ # @type CreatedTopics: Integer
2650
+ # @param Tags: 标签数组
2651
+ # 注意:此字段可能返回 null,表示取不到有效值。
2652
+ # @type Tags: Array
2653
+ # @param ExpireTime: 过期时间
2654
+ # 注意:此字段可能返回 null,表示取不到有效值。
2655
+ # @type ExpireTime: Integer
2656
+ # @param ZoneIds: 跨可用区
2657
+ # 注意:此字段可能返回 null,表示取不到有效值。
2658
+ # @type ZoneIds: Array
2659
+ # @param Version: kafka版本信息
2660
+ # 注意:此字段可能返回 null,表示取不到有效值。
2661
+ # @type Version: String
2662
+ # @param MaxGroupNum: 最大分组数
2663
+ # 注意:此字段可能返回 null,表示取不到有效值。
2664
+ # @type MaxGroupNum: Integer
2665
+ # @param Cvm: 售卖类型,0:标准版,1:专业版
2666
+ # 注意:此字段可能返回 null,表示取不到有效值。
2667
+ # @type Cvm: Integer
2668
+ # @param InstanceType: 类型
2669
+ # 注意:此字段可能返回 null,表示取不到有效值。
2670
+ # @type InstanceType: String
2671
+ # @param Features: 表示该实例支持的特性。FEATURE_SUBNET_ACL:表示acl策略支持设置子网。
2672
+ # 注意:此字段可能返回 null,表示取不到有效值。
2673
+ # @type Features: Array
2674
+ # @param RetentionTimeConfig: 动态消息保留策略
2675
+ # 注意:此字段可能返回 null,表示取不到有效值。
2676
+ # @type RetentionTimeConfig: :class:`Tencentcloud::Ckafka.v20190819.models.DynamicRetentionTime`
2677
+ # @param MaxConnection: 最大连接数
2678
+ # 注意:此字段可能返回 null,表示取不到有效值。
2679
+ # @type MaxConnection: Integer
2680
+ # @param PublicNetwork: 公网带宽
2681
+ # 注意:此字段可能返回 null,表示取不到有效值。
2682
+ # @type PublicNetwork: Integer
2683
+ # @param DeleteRouteTimestamp: 时间
2684
+ # 注意:此字段可能返回 null,表示取不到有效值。
2685
+ # @type DeleteRouteTimestamp: String
2686
+
2687
+ attr_accessor :InstanceId, :InstanceName, :VipList, :Vip, :Vport, :Status, :Bandwidth, :DiskSize, :ZoneId, :VpcId, :SubnetId, :Healthy, :HealthyMessage, :CreateTime, :MsgRetentionTime, :Config, :RemainderPartitions, :RemainderTopics, :CreatedPartitions, :CreatedTopics, :Tags, :ExpireTime, :ZoneIds, :Version, :MaxGroupNum, :Cvm, :InstanceType, :Features, :RetentionTimeConfig, :MaxConnection, :PublicNetwork, :DeleteRouteTimestamp
2688
+
2689
+ def initialize(instanceid=nil, instancename=nil, viplist=nil, vip=nil, vport=nil, status=nil, bandwidth=nil, disksize=nil, zoneid=nil, vpcid=nil, subnetid=nil, healthy=nil, healthymessage=nil, createtime=nil, msgretentiontime=nil, config=nil, remainderpartitions=nil, remaindertopics=nil, createdpartitions=nil, createdtopics=nil, tags=nil, expiretime=nil, zoneids=nil, version=nil, maxgroupnum=nil, cvm=nil, instancetype=nil, features=nil, retentiontimeconfig=nil, maxconnection=nil, publicnetwork=nil, deleteroutetimestamp=nil)
2690
+ @InstanceId = instanceid
2691
+ @InstanceName = instancename
2692
+ @VipList = viplist
2693
+ @Vip = vip
2694
+ @Vport = vport
2695
+ @Status = status
2696
+ @Bandwidth = bandwidth
2697
+ @DiskSize = disksize
2698
+ @ZoneId = zoneid
2699
+ @VpcId = vpcid
2700
+ @SubnetId = subnetid
2701
+ @Healthy = healthy
2702
+ @HealthyMessage = healthymessage
2703
+ @CreateTime = createtime
2704
+ @MsgRetentionTime = msgretentiontime
2705
+ @Config = config
2706
+ @RemainderPartitions = remainderpartitions
2707
+ @RemainderTopics = remaindertopics
2708
+ @CreatedPartitions = createdpartitions
2709
+ @CreatedTopics = createdtopics
2710
+ @Tags = tags
2711
+ @ExpireTime = expiretime
2712
+ @ZoneIds = zoneids
2713
+ @Version = version
2714
+ @MaxGroupNum = maxgroupnum
2715
+ @Cvm = cvm
2716
+ @InstanceType = instancetype
2717
+ @Features = features
2718
+ @RetentionTimeConfig = retentiontimeconfig
2719
+ @MaxConnection = maxconnection
2720
+ @PublicNetwork = publicnetwork
2721
+ @DeleteRouteTimestamp = deleteroutetimestamp
2722
+ end
2723
+
2724
+ def deserialize(params)
2725
+ @InstanceId = params['InstanceId']
2726
+ @InstanceName = params['InstanceName']
2727
+ unless params['VipList'].nil?
2728
+ @VipList = []
2729
+ params['VipList'].each do |i|
2730
+ vipentity_tmp = VipEntity.new
2731
+ vipentity_tmp.deserialize(i)
2732
+ @VipList << vipentity_tmp
2733
+ end
2734
+ end
2735
+ @Vip = params['Vip']
2736
+ @Vport = params['Vport']
2737
+ @Status = params['Status']
2738
+ @Bandwidth = params['Bandwidth']
2739
+ @DiskSize = params['DiskSize']
2740
+ @ZoneId = params['ZoneId']
2741
+ @VpcId = params['VpcId']
2742
+ @SubnetId = params['SubnetId']
2743
+ @Healthy = params['Healthy']
2744
+ @HealthyMessage = params['HealthyMessage']
2745
+ @CreateTime = params['CreateTime']
2746
+ @MsgRetentionTime = params['MsgRetentionTime']
2747
+ unless params['Config'].nil?
2748
+ @Config = InstanceConfigDO.new
2749
+ @Config.deserialize(params['Config'])
2750
+ end
2751
+ @RemainderPartitions = params['RemainderPartitions']
2752
+ @RemainderTopics = params['RemainderTopics']
2753
+ @CreatedPartitions = params['CreatedPartitions']
2754
+ @CreatedTopics = params['CreatedTopics']
2755
+ unless params['Tags'].nil?
2756
+ @Tags = []
2757
+ params['Tags'].each do |i|
2758
+ tag_tmp = Tag.new
2759
+ tag_tmp.deserialize(i)
2760
+ @Tags << tag_tmp
2761
+ end
2762
+ end
2763
+ @ExpireTime = params['ExpireTime']
2764
+ @ZoneIds = params['ZoneIds']
2765
+ @Version = params['Version']
2766
+ @MaxGroupNum = params['MaxGroupNum']
2767
+ @Cvm = params['Cvm']
2768
+ @InstanceType = params['InstanceType']
2769
+ @Features = params['Features']
2770
+ unless params['RetentionTimeConfig'].nil?
2771
+ @RetentionTimeConfig = DynamicRetentionTime.new
2772
+ @RetentionTimeConfig.deserialize(params['RetentionTimeConfig'])
2773
+ end
2774
+ @MaxConnection = params['MaxConnection']
2775
+ @PublicNetwork = params['PublicNetwork']
2776
+ @DeleteRouteTimestamp = params['DeleteRouteTimestamp']
2777
+ end
2778
+ end
2779
+
2780
+ # 实例配置实体
2781
+ class InstanceConfigDO < TencentCloud::Common::AbstractModel
2782
+ # @param AutoCreateTopicsEnable: 是否自动创建主题
2783
+ # @type AutoCreateTopicsEnable: Boolean
2784
+ # @param DefaultNumPartitions: 分区数
2785
+ # @type DefaultNumPartitions: Integer
2786
+ # @param DefaultReplicationFactor: 默认的复制Factor
2787
+ # @type DefaultReplicationFactor: Integer
2788
+
2789
+ attr_accessor :AutoCreateTopicsEnable, :DefaultNumPartitions, :DefaultReplicationFactor
2790
+
2791
+ def initialize(autocreatetopicsenable=nil, defaultnumpartitions=nil, defaultreplicationfactor=nil)
2792
+ @AutoCreateTopicsEnable = autocreatetopicsenable
2793
+ @DefaultNumPartitions = defaultnumpartitions
2794
+ @DefaultReplicationFactor = defaultreplicationfactor
2795
+ end
2796
+
2797
+ def deserialize(params)
2798
+ @AutoCreateTopicsEnable = params['AutoCreateTopicsEnable']
2799
+ @DefaultNumPartitions = params['DefaultNumPartitions']
2800
+ @DefaultReplicationFactor = params['DefaultReplicationFactor']
2801
+ end
2802
+ end
2803
+
2804
+ # 实例详情
2805
+ class InstanceDetail < TencentCloud::Common::AbstractModel
2806
+ # @param InstanceId: 实例id
2807
+ # @type InstanceId: String
2808
+ # @param InstanceName: 实例名称
2809
+ # @type InstanceName: String
2810
+ # @param Vip: 访问实例的vip 信息
2811
+ # @type Vip: String
2812
+ # @param Vport: 访问实例的端口信息
2813
+ # @type Vport: String
2814
+ # @param VipList: 虚拟IP列表
2815
+ # @type VipList: Array
2816
+ # @param Status: 实例的状态。0:创建中,1:运行中,2:删除中:5隔离中, -1 创建失败
2817
+ # @type Status: Integer
2818
+ # @param Bandwidth: 实例带宽,单位Mbps
2819
+ # @type Bandwidth: Integer
2820
+ # @param DiskSize: 实例的存储大小,单位GB
2821
+ # @type DiskSize: Integer
2822
+ # @param ZoneId: 可用区域ID
2823
+ # @type ZoneId: Integer
2824
+ # @param VpcId: vpcId,如果为空,说明是基础网络
2825
+ # @type VpcId: String
2826
+ # @param SubnetId: 子网id
2827
+ # @type SubnetId: String
2828
+ # @param RenewFlag: 实例是否续费,int 枚举值:1表示自动续费,2表示明确不自动续费
2829
+ # @type RenewFlag: Integer
2830
+ # @param Healthy: 实例状态 int:0表示健康,1表示告警,2 表示实例状态异常
2831
+ # @type Healthy: Integer
2832
+ # @param HealthyMessage: 实例状态信息
2833
+ # @type HealthyMessage: String
2834
+ # @param CreateTime: 实例创建时间时间
2835
+ # @type CreateTime: Integer
2836
+ # @param ExpireTime: 实例过期时间
2837
+ # @type ExpireTime: Integer
2838
+ # @param IsInternal: 是否为内部客户。值为1 表示内部客户
2839
+ # @type IsInternal: Integer
2840
+ # @param TopicNum: Topic个数
2841
+ # @type TopicNum: Integer
2842
+ # @param Tags: 标识tag
2843
+ # @type Tags: Array
2844
+ # @param Version: kafka版本信息
2845
+ # 注意:此字段可能返回 null,表示取不到有效值。
2846
+ # @type Version: String
2847
+ # @param ZoneIds: 跨可用区
2848
+ # 注意:此字段可能返回 null,表示取不到有效值。
2849
+ # @type ZoneIds: Array
2850
+ # @param Cvm: ckafka售卖类型
2851
+ # 注意:此字段可能返回 null,表示取不到有效值。
2852
+ # @type Cvm: Integer
2853
+ # @param InstanceType: ckafka实例类型
2854
+ # 注意:此字段可能返回 null,表示取不到有效值。
2855
+ # @type InstanceType: String
2856
+ # @param DiskType: 磁盘类型
2857
+ # 注意:此字段可能返回 null,表示取不到有效值。
2858
+ # @type DiskType: String
2859
+ # @param MaxTopicNumber: 当前规格最大Topic数
2860
+ # 注意:此字段可能返回 null,表示取不到有效值。
2861
+ # @type MaxTopicNumber: Integer
2862
+ # @param MaxPartitionNumber: 当前规格最大Partition数
2863
+ # 注意:此字段可能返回 null,表示取不到有效值。
2864
+ # @type MaxPartitionNumber: Integer
2865
+ # @param RebalanceTime: 计划升级配置时间
2866
+ # 注意:此字段可能返回 null,表示取不到有效值。
2867
+ # @type RebalanceTime: String
2868
+
2869
+ attr_accessor :InstanceId, :InstanceName, :Vip, :Vport, :VipList, :Status, :Bandwidth, :DiskSize, :ZoneId, :VpcId, :SubnetId, :RenewFlag, :Healthy, :HealthyMessage, :CreateTime, :ExpireTime, :IsInternal, :TopicNum, :Tags, :Version, :ZoneIds, :Cvm, :InstanceType, :DiskType, :MaxTopicNumber, :MaxPartitionNumber, :RebalanceTime
2870
+
2871
+ def initialize(instanceid=nil, instancename=nil, vip=nil, vport=nil, viplist=nil, status=nil, bandwidth=nil, disksize=nil, zoneid=nil, vpcid=nil, subnetid=nil, renewflag=nil, healthy=nil, healthymessage=nil, createtime=nil, expiretime=nil, isinternal=nil, topicnum=nil, tags=nil, version=nil, zoneids=nil, cvm=nil, instancetype=nil, disktype=nil, maxtopicnumber=nil, maxpartitionnumber=nil, rebalancetime=nil)
2872
+ @InstanceId = instanceid
2873
+ @InstanceName = instancename
2874
+ @Vip = vip
2875
+ @Vport = vport
2876
+ @VipList = viplist
2877
+ @Status = status
2878
+ @Bandwidth = bandwidth
2879
+ @DiskSize = disksize
2880
+ @ZoneId = zoneid
2881
+ @VpcId = vpcid
2882
+ @SubnetId = subnetid
2883
+ @RenewFlag = renewflag
2884
+ @Healthy = healthy
2885
+ @HealthyMessage = healthymessage
2886
+ @CreateTime = createtime
2887
+ @ExpireTime = expiretime
2888
+ @IsInternal = isinternal
2889
+ @TopicNum = topicnum
2890
+ @Tags = tags
2891
+ @Version = version
2892
+ @ZoneIds = zoneids
2893
+ @Cvm = cvm
2894
+ @InstanceType = instancetype
2895
+ @DiskType = disktype
2896
+ @MaxTopicNumber = maxtopicnumber
2897
+ @MaxPartitionNumber = maxpartitionnumber
2898
+ @RebalanceTime = rebalancetime
2899
+ end
2900
+
2901
+ def deserialize(params)
2902
+ @InstanceId = params['InstanceId']
2903
+ @InstanceName = params['InstanceName']
2904
+ @Vip = params['Vip']
2905
+ @Vport = params['Vport']
2906
+ unless params['VipList'].nil?
2907
+ @VipList = []
2908
+ params['VipList'].each do |i|
2909
+ vipentity_tmp = VipEntity.new
2910
+ vipentity_tmp.deserialize(i)
2911
+ @VipList << vipentity_tmp
2912
+ end
2913
+ end
2914
+ @Status = params['Status']
2915
+ @Bandwidth = params['Bandwidth']
2916
+ @DiskSize = params['DiskSize']
2917
+ @ZoneId = params['ZoneId']
2918
+ @VpcId = params['VpcId']
2919
+ @SubnetId = params['SubnetId']
2920
+ @RenewFlag = params['RenewFlag']
2921
+ @Healthy = params['Healthy']
2922
+ @HealthyMessage = params['HealthyMessage']
2923
+ @CreateTime = params['CreateTime']
2924
+ @ExpireTime = params['ExpireTime']
2925
+ @IsInternal = params['IsInternal']
2926
+ @TopicNum = params['TopicNum']
2927
+ unless params['Tags'].nil?
2928
+ @Tags = []
2929
+ params['Tags'].each do |i|
2930
+ tag_tmp = Tag.new
2931
+ tag_tmp.deserialize(i)
2932
+ @Tags << tag_tmp
2933
+ end
2934
+ end
2935
+ @Version = params['Version']
2936
+ @ZoneIds = params['ZoneIds']
2937
+ @Cvm = params['Cvm']
2938
+ @InstanceType = params['InstanceType']
2939
+ @DiskType = params['DiskType']
2940
+ @MaxTopicNumber = params['MaxTopicNumber']
2941
+ @MaxPartitionNumber = params['MaxPartitionNumber']
2942
+ @RebalanceTime = params['RebalanceTime']
2943
+ end
2944
+ end
2945
+
2946
+ # 实例详情返回结果
2947
+ class InstanceDetailResponse < TencentCloud::Common::AbstractModel
2948
+ # @param TotalCount: 符合条件的实例总数
2949
+ # @type TotalCount: Integer
2950
+ # @param InstanceList: 符合条件的实例详情列表
2951
+ # @type InstanceList: Array
2952
+
2953
+ attr_accessor :TotalCount, :InstanceList
2954
+
2955
+ def initialize(totalcount=nil, instancelist=nil)
2956
+ @TotalCount = totalcount
2957
+ @InstanceList = instancelist
2958
+ end
2959
+
2960
+ def deserialize(params)
2961
+ @TotalCount = params['TotalCount']
2962
+ unless params['InstanceList'].nil?
2963
+ @InstanceList = []
2964
+ params['InstanceList'].each do |i|
2965
+ instancedetail_tmp = InstanceDetail.new
2966
+ instancedetail_tmp.deserialize(i)
2967
+ @InstanceList << instancedetail_tmp
2968
+ end
2969
+ end
2970
+ end
2971
+ end
2972
+
2973
+ # 聚合的实例状态返回结果
2974
+ class InstanceResponse < TencentCloud::Common::AbstractModel
2975
+ # @param InstanceList: 符合条件的实例列表
2976
+ # 注意:此字段可能返回 null,表示取不到有效值。
2977
+ # @type InstanceList: Array
2978
+ # @param TotalCount: 符合条件的结果总数
2979
+ # 注意:此字段可能返回 null,表示取不到有效值。
2980
+ # @type TotalCount: Integer
2981
+
2982
+ attr_accessor :InstanceList, :TotalCount
2983
+
2984
+ def initialize(instancelist=nil, totalcount=nil)
2985
+ @InstanceList = instancelist
2986
+ @TotalCount = totalcount
2987
+ end
2988
+
2989
+ def deserialize(params)
2990
+ unless params['InstanceList'].nil?
2991
+ @InstanceList = []
2992
+ params['InstanceList'].each do |i|
2993
+ instance_tmp = Instance.new
2994
+ instance_tmp.deserialize(i)
2995
+ @InstanceList << instance_tmp
2996
+ end
2997
+ end
2998
+ @TotalCount = params['TotalCount']
2999
+ end
3000
+ end
3001
+
3002
+ # 操作型结果返回值
3003
+ class JgwOperateResponse < TencentCloud::Common::AbstractModel
3004
+ # @param ReturnCode: 返回的code,0为正常,非0为错误
3005
+ # @type ReturnCode: String
3006
+ # @param ReturnMessage: 成功消息
3007
+ # @type ReturnMessage: String
3008
+ # @param Data: 操作型返回的Data数据,可能有flowId等
3009
+ # 注意:此字段可能返回 null,表示取不到有效值。
3010
+ # @type Data: :class:`Tencentcloud::Ckafka.v20190819.models.OperateResponseData`
3011
+
3012
+ attr_accessor :ReturnCode, :ReturnMessage, :Data
3013
+
3014
+ def initialize(returncode=nil, returnmessage=nil, data=nil)
3015
+ @ReturnCode = returncode
3016
+ @ReturnMessage = returnmessage
3017
+ @Data = data
3018
+ end
3019
+
3020
+ def deserialize(params)
3021
+ @ReturnCode = params['ReturnCode']
3022
+ @ReturnMessage = params['ReturnMessage']
3023
+ unless params['Data'].nil?
3024
+ @Data = OperateResponseData.new
3025
+ @Data.deserialize(params['Data'])
3026
+ end
3027
+ end
3028
+ end
3029
+
3030
+ # ModifyGroupOffsets请求参数结构体
3031
+ class ModifyGroupOffsetsRequest < TencentCloud::Common::AbstractModel
3032
+ # @param InstanceId: kafka实例id
3033
+ # @type InstanceId: String
3034
+ # @param Group: kafka 消费分组
3035
+ # @type Group: String
3036
+ # @param Strategy: 重置offset的策略,入参含义 0. 对齐shift-by参数,代表把offset向前或向后移动shift条 1. 对齐参考(by-duration,to-datetime,to-earliest,to-latest),代表把offset移动到指定timestamp的位置 2. 对齐参考(to-offset),代表把offset移动到指定的offset位置
3037
+ # @type Strategy: Integer
3038
+ # @param Topics: 表示需要重置的topics, 不填表示全部
3039
+ # @type Topics: Array
3040
+ # @param Shift: 当strategy为0时,必须包含该字段,可以大于零代表会把offset向后移动shift条,小于零则将offset向前回溯shift条数。正确重置后新的offset应该是(old_offset + shift),需要注意的是如果新的offset小于partition的earliest则会设置为earliest,如果大于partition 的latest则会设置为latest
3041
+ # @type Shift: Integer
3042
+ # @param ShiftTimestamp: 单位ms。当strategy为1时,必须包含该字段,其中-2表示重置offset到最开始的位置,-1表示重置到最新的位置(相当于清空),其它值则代表指定的时间,会获取topic中指定时间的offset然后进行重置,需要注意的时,如果指定的时间不存在消息,则获取最末尾的offset。
3043
+ # @type ShiftTimestamp: Integer
3044
+ # @param Offset: 需要重新设置的offset位置。当strategy为2,必须包含该字段。
3045
+ # @type Offset: Integer
3046
+ # @param Partitions: 需要重新设置的partition的列表,如果没有指定Topics参数。则重置全部topics的对应的Partition列表里的partition。指定Topics时则重置指定的topic列表的对应的Partitions列表的partition。
3047
+ # @type Partitions: Array
3048
+
3049
+ attr_accessor :InstanceId, :Group, :Strategy, :Topics, :Shift, :ShiftTimestamp, :Offset, :Partitions
3050
+
3051
+ def initialize(instanceid=nil, group=nil, strategy=nil, topics=nil, shift=nil, shifttimestamp=nil, offset=nil, partitions=nil)
3052
+ @InstanceId = instanceid
3053
+ @Group = group
3054
+ @Strategy = strategy
3055
+ @Topics = topics
3056
+ @Shift = shift
3057
+ @ShiftTimestamp = shifttimestamp
3058
+ @Offset = offset
3059
+ @Partitions = partitions
3060
+ end
3061
+
3062
+ def deserialize(params)
3063
+ @InstanceId = params['InstanceId']
3064
+ @Group = params['Group']
3065
+ @Strategy = params['Strategy']
3066
+ @Topics = params['Topics']
3067
+ @Shift = params['Shift']
3068
+ @ShiftTimestamp = params['ShiftTimestamp']
3069
+ @Offset = params['Offset']
3070
+ @Partitions = params['Partitions']
3071
+ end
3072
+ end
3073
+
3074
+ # ModifyGroupOffsets返回参数结构体
3075
+ class ModifyGroupOffsetsResponse < TencentCloud::Common::AbstractModel
3076
+ # @param Result: 返回结果
3077
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.JgwOperateResponse`
3078
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3079
+ # @type RequestId: String
3080
+
3081
+ attr_accessor :Result, :RequestId
3082
+
3083
+ def initialize(result=nil, requestid=nil)
3084
+ @Result = result
3085
+ @RequestId = requestid
3086
+ end
3087
+
3088
+ def deserialize(params)
3089
+ unless params['Result'].nil?
3090
+ @Result = JgwOperateResponse.new
3091
+ @Result.deserialize(params['Result'])
3092
+ end
3093
+ @RequestId = params['RequestId']
3094
+ end
3095
+ end
3096
+
3097
+ # 修改实例属性的配置对象
3098
+ class ModifyInstanceAttributesConfig < TencentCloud::Common::AbstractModel
3099
+ # @param AutoCreateTopicEnable: 自动创建 true 表示开启,false 表示不开启
3100
+ # @type AutoCreateTopicEnable: Boolean
3101
+ # @param DefaultNumPartitions: 可选,如果auto.create.topic.enable设置为true没有设置该值时,默认设置为3
3102
+ # @type DefaultNumPartitions: Integer
3103
+ # @param DefaultReplicationFactor: 如歌auto.create.topic.enable设置为true没有指定该值时默认设置为2
3104
+ # @type DefaultReplicationFactor: Integer
3105
+
3106
+ attr_accessor :AutoCreateTopicEnable, :DefaultNumPartitions, :DefaultReplicationFactor
3107
+
3108
+ def initialize(autocreatetopicenable=nil, defaultnumpartitions=nil, defaultreplicationfactor=nil)
3109
+ @AutoCreateTopicEnable = autocreatetopicenable
3110
+ @DefaultNumPartitions = defaultnumpartitions
3111
+ @DefaultReplicationFactor = defaultreplicationfactor
3112
+ end
3113
+
3114
+ def deserialize(params)
3115
+ @AutoCreateTopicEnable = params['AutoCreateTopicEnable']
3116
+ @DefaultNumPartitions = params['DefaultNumPartitions']
3117
+ @DefaultReplicationFactor = params['DefaultReplicationFactor']
3118
+ end
3119
+ end
3120
+
3121
+ # ModifyInstanceAttributes请求参数结构体
3122
+ class ModifyInstanceAttributesRequest < TencentCloud::Common::AbstractModel
3123
+ # @param InstanceId: 实例id
3124
+ # @type InstanceId: String
3125
+ # @param MsgRetentionTime: 实例日志的最长保留时间,单位分钟,最大30天,0代表不开启日志保留时间回收策略
3126
+ # @type MsgRetentionTime: Integer
3127
+ # @param InstanceName: 实例名称,是一个不超过 64 个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线(-)
3128
+ # @type InstanceName: String
3129
+ # @param Config: 实例配置
3130
+ # @type Config: :class:`Tencentcloud::Ckafka.v20190819.models.ModifyInstanceAttributesConfig`
3131
+ # @param DynamicRetentionConfig: 动态消息保留策略配置
3132
+ # @type DynamicRetentionConfig: :class:`Tencentcloud::Ckafka.v20190819.models.DynamicRetentionTime`
3133
+ # @param RebalanceTime: 修改升配置rebalance时间
3134
+ # @type RebalanceTime: Integer
3135
+ # @param PublicNetwork: 时间戳
3136
+ # @type PublicNetwork: Integer
3137
+
3138
+ attr_accessor :InstanceId, :MsgRetentionTime, :InstanceName, :Config, :DynamicRetentionConfig, :RebalanceTime, :PublicNetwork
3139
+
3140
+ def initialize(instanceid=nil, msgretentiontime=nil, instancename=nil, config=nil, dynamicretentionconfig=nil, rebalancetime=nil, publicnetwork=nil)
3141
+ @InstanceId = instanceid
3142
+ @MsgRetentionTime = msgretentiontime
3143
+ @InstanceName = instancename
3144
+ @Config = config
3145
+ @DynamicRetentionConfig = dynamicretentionconfig
3146
+ @RebalanceTime = rebalancetime
3147
+ @PublicNetwork = publicnetwork
3148
+ end
3149
+
3150
+ def deserialize(params)
3151
+ @InstanceId = params['InstanceId']
3152
+ @MsgRetentionTime = params['MsgRetentionTime']
3153
+ @InstanceName = params['InstanceName']
3154
+ unless params['Config'].nil?
3155
+ @Config = ModifyInstanceAttributesConfig.new
3156
+ @Config.deserialize(params['Config'])
3157
+ end
3158
+ unless params['DynamicRetentionConfig'].nil?
3159
+ @DynamicRetentionConfig = DynamicRetentionTime.new
3160
+ @DynamicRetentionConfig.deserialize(params['DynamicRetentionConfig'])
3161
+ end
3162
+ @RebalanceTime = params['RebalanceTime']
3163
+ @PublicNetwork = params['PublicNetwork']
3164
+ end
3165
+ end
3166
+
3167
+ # ModifyInstanceAttributes返回参数结构体
3168
+ class ModifyInstanceAttributesResponse < TencentCloud::Common::AbstractModel
3169
+ # @param Result: 返回结果
3170
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.JgwOperateResponse`
3171
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3172
+ # @type RequestId: String
3173
+
3174
+ attr_accessor :Result, :RequestId
3175
+
3176
+ def initialize(result=nil, requestid=nil)
3177
+ @Result = result
3178
+ @RequestId = requestid
3179
+ end
3180
+
3181
+ def deserialize(params)
3182
+ unless params['Result'].nil?
3183
+ @Result = JgwOperateResponse.new
3184
+ @Result.deserialize(params['Result'])
3185
+ end
3186
+ @RequestId = params['RequestId']
3187
+ end
3188
+ end
3189
+
3190
+ # ModifyPassword请求参数结构体
3191
+ class ModifyPasswordRequest < TencentCloud::Common::AbstractModel
3192
+ # @param InstanceId: 实例Id
3193
+ # @type InstanceId: String
3194
+ # @param Name: 用户名称
3195
+ # @type Name: String
3196
+ # @param Password: 用户当前密码
3197
+ # @type Password: String
3198
+ # @param PasswordNew: 用户新密码
3199
+ # @type PasswordNew: String
3200
+
3201
+ attr_accessor :InstanceId, :Name, :Password, :PasswordNew
3202
+
3203
+ def initialize(instanceid=nil, name=nil, password=nil, passwordnew=nil)
3204
+ @InstanceId = instanceid
3205
+ @Name = name
3206
+ @Password = password
3207
+ @PasswordNew = passwordnew
3208
+ end
3209
+
3210
+ def deserialize(params)
3211
+ @InstanceId = params['InstanceId']
3212
+ @Name = params['Name']
3213
+ @Password = params['Password']
3214
+ @PasswordNew = params['PasswordNew']
3215
+ end
3216
+ end
3217
+
3218
+ # ModifyPassword返回参数结构体
3219
+ class ModifyPasswordResponse < TencentCloud::Common::AbstractModel
3220
+ # @param Result: 返回结果
3221
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.JgwOperateResponse`
3222
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3223
+ # @type RequestId: String
3224
+
3225
+ attr_accessor :Result, :RequestId
3226
+
3227
+ def initialize(result=nil, requestid=nil)
3228
+ @Result = result
3229
+ @RequestId = requestid
3230
+ end
3231
+
3232
+ def deserialize(params)
3233
+ unless params['Result'].nil?
3234
+ @Result = JgwOperateResponse.new
3235
+ @Result.deserialize(params['Result'])
3236
+ end
3237
+ @RequestId = params['RequestId']
3238
+ end
3239
+ end
3240
+
3241
+ # ModifyTopicAttributes请求参数结构体
3242
+ class ModifyTopicAttributesRequest < TencentCloud::Common::AbstractModel
3243
+ # @param InstanceId: 实例 ID。
3244
+ # @type InstanceId: String
3245
+ # @param TopicName: 主题名称。
3246
+ # @type TopicName: String
3247
+ # @param Note: 主题备注,是一个不超过64个字符的字符串,必须以字母为首字符,剩余部分可以包含字母、数字和横划线-。
3248
+ # @type Note: String
3249
+ # @param EnableWhiteList: IP 白名单开关,1:打开;0:关闭。
3250
+ # @type EnableWhiteList: Integer
3251
+ # @param MinInsyncReplicas: 默认为1。
3252
+ # @type MinInsyncReplicas: Integer
3253
+ # @param UncleanLeaderElectionEnable: 默认为 0,0:false;1:true。
3254
+ # @type UncleanLeaderElectionEnable: Integer
3255
+ # @param RetentionMs: 消息保留时间,单位:ms,当前最小值为60000ms。
3256
+ # @type RetentionMs: Integer
3257
+ # @param SegmentMs: Segment 分片滚动的时长,单位:ms,当前最小为86400000ms。
3258
+ # @type SegmentMs: Integer
3259
+ # @param MaxMessageBytes: 主题消息最大值,单位为 Byte,最大值为8388608Byte(即8MB)。
3260
+ # @type MaxMessageBytes: Integer
3261
+ # @param CleanUpPolicy: 消息删除策略,可以选择delete 或者compact
3262
+ # @type CleanUpPolicy: String
3263
+ # @param IpWhiteList: Ip白名单列表,配额限制,enableWhileList=1时必选
3264
+ # @type IpWhiteList: Array
3265
+ # @param EnableAclRule: 预设ACL规则, 1:打开 0:关闭,默认不打开
3266
+ # @type EnableAclRule: Integer
3267
+ # @param AclRuleName: 预设ACL规则的名称
3268
+ # @type AclRuleName: String
3269
+ # @param RetentionBytes: 可选, 保留文件大小. 默认为-1,单位bytes, 当前最小值为1048576B
3270
+ # @type RetentionBytes: Integer
3271
+
3272
+ attr_accessor :InstanceId, :TopicName, :Note, :EnableWhiteList, :MinInsyncReplicas, :UncleanLeaderElectionEnable, :RetentionMs, :SegmentMs, :MaxMessageBytes, :CleanUpPolicy, :IpWhiteList, :EnableAclRule, :AclRuleName, :RetentionBytes
3273
+
3274
+ def initialize(instanceid=nil, topicname=nil, note=nil, enablewhitelist=nil, mininsyncreplicas=nil, uncleanleaderelectionenable=nil, retentionms=nil, segmentms=nil, maxmessagebytes=nil, cleanuppolicy=nil, ipwhitelist=nil, enableaclrule=nil, aclrulename=nil, retentionbytes=nil)
3275
+ @InstanceId = instanceid
3276
+ @TopicName = topicname
3277
+ @Note = note
3278
+ @EnableWhiteList = enablewhitelist
3279
+ @MinInsyncReplicas = mininsyncreplicas
3280
+ @UncleanLeaderElectionEnable = uncleanleaderelectionenable
3281
+ @RetentionMs = retentionms
3282
+ @SegmentMs = segmentms
3283
+ @MaxMessageBytes = maxmessagebytes
3284
+ @CleanUpPolicy = cleanuppolicy
3285
+ @IpWhiteList = ipwhitelist
3286
+ @EnableAclRule = enableaclrule
3287
+ @AclRuleName = aclrulename
3288
+ @RetentionBytes = retentionbytes
3289
+ end
3290
+
3291
+ def deserialize(params)
3292
+ @InstanceId = params['InstanceId']
3293
+ @TopicName = params['TopicName']
3294
+ @Note = params['Note']
3295
+ @EnableWhiteList = params['EnableWhiteList']
3296
+ @MinInsyncReplicas = params['MinInsyncReplicas']
3297
+ @UncleanLeaderElectionEnable = params['UncleanLeaderElectionEnable']
3298
+ @RetentionMs = params['RetentionMs']
3299
+ @SegmentMs = params['SegmentMs']
3300
+ @MaxMessageBytes = params['MaxMessageBytes']
3301
+ @CleanUpPolicy = params['CleanUpPolicy']
3302
+ @IpWhiteList = params['IpWhiteList']
3303
+ @EnableAclRule = params['EnableAclRule']
3304
+ @AclRuleName = params['AclRuleName']
3305
+ @RetentionBytes = params['RetentionBytes']
3306
+ end
3307
+ end
3308
+
3309
+ # ModifyTopicAttributes返回参数结构体
3310
+ class ModifyTopicAttributesResponse < TencentCloud::Common::AbstractModel
3311
+ # @param Result: 返回结果集
3312
+ # @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.JgwOperateResponse`
3313
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3314
+ # @type RequestId: String
3315
+
3316
+ attr_accessor :Result, :RequestId
3317
+
3318
+ def initialize(result=nil, requestid=nil)
3319
+ @Result = result
3320
+ @RequestId = requestid
3321
+ end
3322
+
3323
+ def deserialize(params)
3324
+ unless params['Result'].nil?
3325
+ @Result = JgwOperateResponse.new
3326
+ @Result.deserialize(params['Result'])
3327
+ end
3328
+ @RequestId = params['RequestId']
3329
+ end
3330
+ end
3331
+
3332
+ # 操作类型返回的Data结构
3333
+ class OperateResponseData < TencentCloud::Common::AbstractModel
3334
+ # @param FlowId: FlowId11
3335
+ # 注意:此字段可能返回 null,表示取不到有效值。
3336
+ # @type FlowId: Integer
3337
+
3338
+ attr_accessor :FlowId
3339
+
3340
+ def initialize(flowid=nil)
3341
+ @FlowId = flowid
3342
+ end
3343
+
3344
+ def deserialize(params)
3345
+ @FlowId = params['FlowId']
3346
+ end
3347
+ end
3348
+
3349
+ # 分区实体
3350
+ class Partition < TencentCloud::Common::AbstractModel
3351
+ # @param PartitionId: 分区ID
3352
+ # @type PartitionId: Integer
3353
+
3354
+ attr_accessor :PartitionId
3355
+
3356
+ def initialize(partitionid=nil)
3357
+ @PartitionId = partitionid
3358
+ end
3359
+
3360
+ def deserialize(params)
3361
+ @PartitionId = params['PartitionId']
3362
+ end
3363
+ end
3364
+
3365
+ # 分区和位移
3366
+ class PartitionOffset < TencentCloud::Common::AbstractModel
3367
+ # @param Partition: Partition,例如"0"或"1"
3368
+ # 注意:此字段可能返回 null,表示取不到有效值。
3369
+ # @type Partition: String
3370
+ # @param Offset: Offset,例如100
3371
+ # 注意:此字段可能返回 null,表示取不到有效值。
3372
+ # @type Offset: Integer
3373
+
3374
+ attr_accessor :Partition, :Offset
3375
+
3376
+ def initialize(partition=nil, offset=nil)
3377
+ @Partition = partition
3378
+ @Offset = offset
3379
+ end
3380
+
3381
+ def deserialize(params)
3382
+ @Partition = params['Partition']
3383
+ @Offset = params['Offset']
3384
+ end
3385
+ end
3386
+
3387
+ # 消息价格实体
3388
+ class Price < TencentCloud::Common::AbstractModel
3389
+ # @param RealTotalCost: 折扣价
3390
+ # @type RealTotalCost: Float
3391
+ # @param TotalCost: 原价
3392
+ # @type TotalCost: Float
3393
+
3394
+ attr_accessor :RealTotalCost, :TotalCost
3395
+
3396
+ def initialize(realtotalcost=nil, totalcost=nil)
3397
+ @RealTotalCost = realtotalcost
3398
+ @TotalCost = totalcost
3399
+ end
3400
+
3401
+ def deserialize(params)
3402
+ @RealTotalCost = params['RealTotalCost']
3403
+ @TotalCost = params['TotalCost']
3404
+ end
3405
+ end
3406
+
3407
+ # 地域实体对象
3408
+ class Region < TencentCloud::Common::AbstractModel
3409
+ # @param RegionId: 地域ID
3410
+ # @type RegionId: Integer
3411
+ # @param RegionName: 地域名称
3412
+ # @type RegionName: String
3413
+ # @param AreaName: 区域名称
3414
+ # @type AreaName: String
3415
+ # @param RegionCode: 地域代码
3416
+ # 注意:此字段可能返回 null,表示取不到有效值。
3417
+ # @type RegionCode: String
3418
+ # @param RegionCodeV3: 地域代码(V3版本)
3419
+ # 注意:此字段可能返回 null,表示取不到有效值。
3420
+ # @type RegionCodeV3: String
3421
+ # @param Support: NONE:默认值不支持任何特殊机型\nCVM:支持CVM类型
3422
+ # 注意:此字段可能返回 null,表示取不到有效值。
3423
+ # @type Support: String
3424
+ # @param Ipv6: 是否支持ipv6, 0:表示不支持,1:表示支持
3425
+ # 注意:此字段可能返回 null,表示取不到有效值。
3426
+ # @type Ipv6: Integer
3427
+ # @param MultiZone: 是否支持跨可用区, 0:表示不支持,1:表示支持
3428
+ # 注意:此字段可能返回 null,表示取不到有效值。
3429
+ # @type MultiZone: Integer
3430
+
3431
+ attr_accessor :RegionId, :RegionName, :AreaName, :RegionCode, :RegionCodeV3, :Support, :Ipv6, :MultiZone
3432
+
3433
+ def initialize(regionid=nil, regionname=nil, areaname=nil, regioncode=nil, regioncodev3=nil, support=nil, ipv6=nil, multizone=nil)
3434
+ @RegionId = regionid
3435
+ @RegionName = regionname
3436
+ @AreaName = areaname
3437
+ @RegionCode = regioncode
3438
+ @RegionCodeV3 = regioncodev3
3439
+ @Support = support
3440
+ @Ipv6 = ipv6
3441
+ @MultiZone = multizone
3442
+ end
3443
+
3444
+ def deserialize(params)
3445
+ @RegionId = params['RegionId']
3446
+ @RegionName = params['RegionName']
3447
+ @AreaName = params['AreaName']
3448
+ @RegionCode = params['RegionCode']
3449
+ @RegionCodeV3 = params['RegionCodeV3']
3450
+ @Support = params['Support']
3451
+ @Ipv6 = params['Ipv6']
3452
+ @MultiZone = params['MultiZone']
3453
+ end
3454
+ end
3455
+
3456
+ # 路由实体对象
3457
+ class Route < TencentCloud::Common::AbstractModel
3458
+ # @param AccessType: 实例接入方式
3459
+ # 0:PLAINTEXT (明文方式,没有带用户信息老版本及社区版本都支持)
3460
+ # 1:SASL_PLAINTEXT(明文方式,不过在数据开始时,会通过SASL方式登录鉴权,仅社区版本支持)
3461
+ # 2:SSL(SSL加密通信,没有带用户信息,老版本及社区版本都支持)
3462
+ # 3:SASL_SSL(SSL加密通信,在数据开始时,会通过SASL方式登录鉴权,仅社区版本支持)
3463
+ # @type AccessType: Integer
3464
+ # @param RouteId: 路由ID
3465
+ # @type RouteId: Integer
3466
+ # @param VipType: vip网络类型(1:外网TGW 2:基础网络 3:VPC网络 4:支撑网络(标准版) 5:SSL外网访问方式访问 6:黑石环境vpc 7:支撑网络(专业版))
3467
+ # @type VipType: Integer
3468
+ # @param VipList: 虚拟IP列表
3469
+ # @type VipList: Array
3470
+ # @param Domain: 域名
3471
+ # 注意:此字段可能返回 null,表示取不到有效值。
3472
+ # @type Domain: String
3473
+ # @param DomainPort: 域名port
3474
+ # 注意:此字段可能返回 null,表示取不到有效值。
3475
+ # @type DomainPort: Integer
3476
+ # @param DeleteTimestamp: 时间戳
3477
+ # 注意:此字段可能返回 null,表示取不到有效值。
3478
+ # @type DeleteTimestamp: String
3479
+
3480
+ attr_accessor :AccessType, :RouteId, :VipType, :VipList, :Domain, :DomainPort, :DeleteTimestamp
3481
+
3482
+ def initialize(accesstype=nil, routeid=nil, viptype=nil, viplist=nil, domain=nil, domainport=nil, deletetimestamp=nil)
3483
+ @AccessType = accesstype
3484
+ @RouteId = routeid
3485
+ @VipType = viptype
3486
+ @VipList = viplist
3487
+ @Domain = domain
3488
+ @DomainPort = domainport
3489
+ @DeleteTimestamp = deletetimestamp
3490
+ end
3491
+
3492
+ def deserialize(params)
3493
+ @AccessType = params['AccessType']
3494
+ @RouteId = params['RouteId']
3495
+ @VipType = params['VipType']
3496
+ unless params['VipList'].nil?
3497
+ @VipList = []
3498
+ params['VipList'].each do |i|
3499
+ vipentity_tmp = VipEntity.new
3500
+ vipentity_tmp.deserialize(i)
3501
+ @VipList << vipentity_tmp
3502
+ end
3503
+ end
3504
+ @Domain = params['Domain']
3505
+ @DomainPort = params['DomainPort']
3506
+ @DeleteTimestamp = params['DeleteTimestamp']
3507
+ end
3508
+ end
3509
+
3510
+ # 路由信息返回对象
3511
+ class RouteResponse < TencentCloud::Common::AbstractModel
3512
+ # @param Routers: 路由信息列表
3513
+ # 注意:此字段可能返回 null,表示取不到有效值。
3514
+ # @type Routers: Array
3515
+
3516
+ attr_accessor :Routers
3517
+
3518
+ def initialize(routers=nil)
3519
+ @Routers = routers
3520
+ end
3521
+
3522
+ def deserialize(params)
3523
+ unless params['Routers'].nil?
3524
+ @Routers = []
3525
+ params['Routers'].each do |i|
3526
+ route_tmp = Route.new
3527
+ route_tmp.deserialize(i)
3528
+ @Routers << route_tmp
3529
+ end
3530
+ end
3531
+ end
3532
+ end
3533
+
3534
+ # 标准版销售信息
3535
+ class SaleInfo < TencentCloud::Common::AbstractModel
3536
+ # @param Flag: 手动设置的flag标志
3537
+ # 注意:此字段可能返回 null,表示取不到有效值。
3538
+ # @type Flag: Boolean
3539
+ # @param Version: ckakfa版本号(1.1.1/2.4.2/0.10.2)
3540
+ # 注意:此字段可能返回 null,表示取不到有效值。
3541
+ # @type Version: String
3542
+ # @param Platform: 专业版、标准版标志
3543
+ # 注意:此字段可能返回 null,表示取不到有效值。
3544
+ # @type Platform: String
3545
+ # @param SoldOut: 售罄标志:true售罄
3546
+ # 注意:此字段可能返回 null,表示取不到有效值。
3547
+ # @type SoldOut: Boolean
3548
+
3549
+ attr_accessor :Flag, :Version, :Platform, :SoldOut
3550
+
3551
+ def initialize(flag=nil, version=nil, platform=nil, soldout=nil)
3552
+ @Flag = flag
3553
+ @Version = version
3554
+ @Platform = platform
3555
+ @SoldOut = soldout
3556
+ end
3557
+
3558
+ def deserialize(params)
3559
+ @Flag = params['Flag']
3560
+ @Version = params['Version']
3561
+ @Platform = params['Platform']
3562
+ @SoldOut = params['SoldOut']
3563
+ end
3564
+ end
3565
+
3566
+ # 订阅信息实体
3567
+ class SubscribedInfo < TencentCloud::Common::AbstractModel
3568
+ # @param TopicName: 订阅的主题名
3569
+ # @type TopicName: String
3570
+ # @param Partition: 订阅的分区
3571
+ # 注意:此字段可能返回 null,表示取不到有效值。
3572
+ # @type Partition: Array
3573
+ # @param PartitionOffset: 分区offset信息
3574
+ # 注意:此字段可能返回 null,表示取不到有效值。
3575
+ # @type PartitionOffset: Array
3576
+ # @param TopicId: 订阅的主题ID
3577
+ # 注意:此字段可能返回 null,表示取不到有效值。
3578
+ # @type TopicId: String
3579
+
3580
+ attr_accessor :TopicName, :Partition, :PartitionOffset, :TopicId
3581
+
3582
+ def initialize(topicname=nil, partition=nil, partitionoffset=nil, topicid=nil)
3583
+ @TopicName = topicname
3584
+ @Partition = partition
3585
+ @PartitionOffset = partitionoffset
3586
+ @TopicId = topicid
3587
+ end
3588
+
3589
+ def deserialize(params)
3590
+ @TopicName = params['TopicName']
3591
+ @Partition = params['Partition']
3592
+ unless params['PartitionOffset'].nil?
3593
+ @PartitionOffset = []
3594
+ params['PartitionOffset'].each do |i|
3595
+ partitionoffset_tmp = PartitionOffset.new
3596
+ partitionoffset_tmp.deserialize(i)
3597
+ @PartitionOffset << partitionoffset_tmp
3598
+ end
3599
+ end
3600
+ @TopicId = params['TopicId']
3601
+ end
3602
+ end
3603
+
3604
+ # 实例详情中的标签对象
3605
+ class Tag < TencentCloud::Common::AbstractModel
3606
+ # @param TagKey: 标签的key
3607
+ # @type TagKey: String
3608
+ # @param TagValue: 标签的值
3609
+ # @type TagValue: String
3610
+
3611
+ attr_accessor :TagKey, :TagValue
3612
+
3613
+ def initialize(tagkey=nil, tagvalue=nil)
3614
+ @TagKey = tagkey
3615
+ @TagValue = tagvalue
3616
+ end
3617
+
3618
+ def deserialize(params)
3619
+ @TagKey = params['TagKey']
3620
+ @TagValue = params['TagValue']
3621
+ end
3622
+ end
3623
+
3624
+ # 返回的topic对象
3625
+ class Topic < TencentCloud::Common::AbstractModel
3626
+ # @param TopicId: 主题的ID
3627
+ # @type TopicId: String
3628
+ # @param TopicName: 主题的名称
3629
+ # @type TopicName: String
3630
+ # @param Note: 备注
3631
+ # 注意:此字段可能返回 null,表示取不到有效值。
3632
+ # @type Note: String
3633
+
3634
+ attr_accessor :TopicId, :TopicName, :Note
3635
+
3636
+ def initialize(topicid=nil, topicname=nil, note=nil)
3637
+ @TopicId = topicid
3638
+ @TopicName = topicname
3639
+ @Note = note
3640
+ end
3641
+
3642
+ def deserialize(params)
3643
+ @TopicId = params['TopicId']
3644
+ @TopicName = params['TopicName']
3645
+ @Note = params['Note']
3646
+ end
3647
+ end
3648
+
3649
+ # 主题属性返回结果实体
3650
+ class TopicAttributesResponse < TencentCloud::Common::AbstractModel
3651
+ # @param TopicId: 主题 ID
3652
+ # @type TopicId: String
3653
+ # @param CreateTime: 创建时间
3654
+ # @type CreateTime: Integer
3655
+ # @param Note: 主题备注
3656
+ # 注意:此字段可能返回 null,表示取不到有效值。
3657
+ # @type Note: String
3658
+ # @param PartitionNum: 分区个数
3659
+ # @type PartitionNum: Integer
3660
+ # @param EnableWhiteList: IP 白名单开关,1:打开; 0:关闭
3661
+ # @type EnableWhiteList: Integer
3662
+ # @param IpWhiteList: IP 白名单列表
3663
+ # @type IpWhiteList: Array
3664
+ # @param Config: topic 配置数组
3665
+ # @type Config: :class:`Tencentcloud::Ckafka.v20190819.models.Config`
3666
+ # @param Partitions: 分区详情
3667
+ # @type Partitions: Array
3668
+ # @param EnableAclRule: ACL预设策略开关,1:打开; 0:关闭
3669
+ # 注意:此字段可能返回 null,表示取不到有效值。
3670
+ # @type EnableAclRule: Integer
3671
+ # @param AclRuleList: 预设策略列表
3672
+ # 注意:此字段可能返回 null,表示取不到有效值。
3673
+ # @type AclRuleList: Array
3674
+
3675
+ attr_accessor :TopicId, :CreateTime, :Note, :PartitionNum, :EnableWhiteList, :IpWhiteList, :Config, :Partitions, :EnableAclRule, :AclRuleList
3676
+
3677
+ def initialize(topicid=nil, createtime=nil, note=nil, partitionnum=nil, enablewhitelist=nil, ipwhitelist=nil, config=nil, partitions=nil, enableaclrule=nil, aclrulelist=nil)
3678
+ @TopicId = topicid
3679
+ @CreateTime = createtime
3680
+ @Note = note
3681
+ @PartitionNum = partitionnum
3682
+ @EnableWhiteList = enablewhitelist
3683
+ @IpWhiteList = ipwhitelist
3684
+ @Config = config
3685
+ @Partitions = partitions
3686
+ @EnableAclRule = enableaclrule
3687
+ @AclRuleList = aclrulelist
3688
+ end
3689
+
3690
+ def deserialize(params)
3691
+ @TopicId = params['TopicId']
3692
+ @CreateTime = params['CreateTime']
3693
+ @Note = params['Note']
3694
+ @PartitionNum = params['PartitionNum']
3695
+ @EnableWhiteList = params['EnableWhiteList']
3696
+ @IpWhiteList = params['IpWhiteList']
3697
+ unless params['Config'].nil?
3698
+ @Config = Config.new
3699
+ @Config.deserialize(params['Config'])
3700
+ end
3701
+ unless params['Partitions'].nil?
3702
+ @Partitions = []
3703
+ params['Partitions'].each do |i|
3704
+ topicpartitiondo_tmp = TopicPartitionDO.new
3705
+ topicpartitiondo_tmp.deserialize(i)
3706
+ @Partitions << topicpartitiondo_tmp
3707
+ end
3708
+ end
3709
+ @EnableAclRule = params['EnableAclRule']
3710
+ unless params['AclRuleList'].nil?
3711
+ @AclRuleList = []
3712
+ params['AclRuleList'].each do |i|
3713
+ aclrule_tmp = AclRule.new
3714
+ aclrule_tmp.deserialize(i)
3715
+ @AclRuleList << aclrule_tmp
3716
+ end
3717
+ end
3718
+ end
3719
+ end
3720
+
3721
+ # 主题详情
3722
+ class TopicDetail < TencentCloud::Common::AbstractModel
3723
+ # @param TopicName: 主题名称
3724
+ # @type TopicName: String
3725
+ # @param TopicId: 主题ID
3726
+ # @type TopicId: String
3727
+ # @param PartitionNum: 分区数
3728
+ # @type PartitionNum: Integer
3729
+ # @param ReplicaNum: 副本数
3730
+ # @type ReplicaNum: Integer
3731
+ # @param Note: 备注
3732
+ # 注意:此字段可能返回 null,表示取不到有效值。
3733
+ # @type Note: String
3734
+ # @param CreateTime: 创建时间
3735
+ # @type CreateTime: Integer
3736
+ # @param EnableWhiteList: 是否开启ip鉴权白名单,true表示开启,false表示不开启
3737
+ # @type EnableWhiteList: Boolean
3738
+ # @param IpWhiteListCount: ip白名单中ip个数
3739
+ # @type IpWhiteListCount: Integer
3740
+ # @param ForwardCosBucket: 数据备份cos bucket: 转存到cos 的bucket地址
3741
+ # 注意:此字段可能返回 null,表示取不到有效值。
3742
+ # @type ForwardCosBucket: String
3743
+ # @param ForwardStatus: 数据备份cos 状态: 1 不开启数据备份,0 开启数据备份
3744
+ # @type ForwardStatus: Integer
3745
+ # @param ForwardInterval: 数据备份到cos的周期频率
3746
+ # @type ForwardInterval: Integer
3747
+ # @param Config: 高级配置
3748
+ # 注意:此字段可能返回 null,表示取不到有效值。
3749
+ # @type Config: :class:`Tencentcloud::Ckafka.v20190819.models.Config`
3750
+ # @param RetentionTimeConfig: 消息保留时间配置(用于动态配置变更记录)
3751
+ # 注意:此字段可能返回 null,表示取不到有效值。
3752
+ # @type RetentionTimeConfig: :class:`Tencentcloud::Ckafka.v20190819.models.TopicRetentionTimeConfigRsp`
3753
+ # @param Status: 0:正常,1:已删除,2:删除中
3754
+ # 注意:此字段可能返回 null,表示取不到有效值。
3755
+ # @type Status: Integer
3756
+
3757
+ attr_accessor :TopicName, :TopicId, :PartitionNum, :ReplicaNum, :Note, :CreateTime, :EnableWhiteList, :IpWhiteListCount, :ForwardCosBucket, :ForwardStatus, :ForwardInterval, :Config, :RetentionTimeConfig, :Status
3758
+
3759
+ def initialize(topicname=nil, topicid=nil, partitionnum=nil, replicanum=nil, note=nil, createtime=nil, enablewhitelist=nil, ipwhitelistcount=nil, forwardcosbucket=nil, forwardstatus=nil, forwardinterval=nil, config=nil, retentiontimeconfig=nil, status=nil)
3760
+ @TopicName = topicname
3761
+ @TopicId = topicid
3762
+ @PartitionNum = partitionnum
3763
+ @ReplicaNum = replicanum
3764
+ @Note = note
3765
+ @CreateTime = createtime
3766
+ @EnableWhiteList = enablewhitelist
3767
+ @IpWhiteListCount = ipwhitelistcount
3768
+ @ForwardCosBucket = forwardcosbucket
3769
+ @ForwardStatus = forwardstatus
3770
+ @ForwardInterval = forwardinterval
3771
+ @Config = config
3772
+ @RetentionTimeConfig = retentiontimeconfig
3773
+ @Status = status
3774
+ end
3775
+
3776
+ def deserialize(params)
3777
+ @TopicName = params['TopicName']
3778
+ @TopicId = params['TopicId']
3779
+ @PartitionNum = params['PartitionNum']
3780
+ @ReplicaNum = params['ReplicaNum']
3781
+ @Note = params['Note']
3782
+ @CreateTime = params['CreateTime']
3783
+ @EnableWhiteList = params['EnableWhiteList']
3784
+ @IpWhiteListCount = params['IpWhiteListCount']
3785
+ @ForwardCosBucket = params['ForwardCosBucket']
3786
+ @ForwardStatus = params['ForwardStatus']
3787
+ @ForwardInterval = params['ForwardInterval']
3788
+ unless params['Config'].nil?
3789
+ @Config = Config.new
3790
+ @Config.deserialize(params['Config'])
3791
+ end
3792
+ unless params['RetentionTimeConfig'].nil?
3793
+ @RetentionTimeConfig = TopicRetentionTimeConfigRsp.new
3794
+ @RetentionTimeConfig.deserialize(params['RetentionTimeConfig'])
3795
+ end
3796
+ @Status = params['Status']
3797
+ end
3798
+ end
3799
+
3800
+ # 主题详情返回实体
3801
+ class TopicDetailResponse < TencentCloud::Common::AbstractModel
3802
+ # @param TopicList: 返回的主题详情列表
3803
+ # 注意:此字段可能返回 null,表示取不到有效值。
3804
+ # @type TopicList: Array
3805
+ # @param TotalCount: 符合条件的所有主题详情数量
3806
+ # @type TotalCount: Integer
3807
+
3808
+ attr_accessor :TopicList, :TotalCount
3809
+
3810
+ def initialize(topiclist=nil, totalcount=nil)
3811
+ @TopicList = topiclist
3812
+ @TotalCount = totalcount
3813
+ end
3814
+
3815
+ def deserialize(params)
3816
+ unless params['TopicList'].nil?
3817
+ @TopicList = []
3818
+ params['TopicList'].each do |i|
3819
+ topicdetail_tmp = TopicDetail.new
3820
+ topicdetail_tmp.deserialize(i)
3821
+ @TopicList << topicdetail_tmp
3822
+ end
3823
+ end
3824
+ @TotalCount = params['TotalCount']
3825
+ end
3826
+ end
3827
+
3828
+ # topic副本及详细信息
3829
+ class TopicInSyncReplicaInfo < TencentCloud::Common::AbstractModel
3830
+ # @param Partition: 分区名称
3831
+ # @type Partition: String
3832
+ # @param Leader: Leader Id
3833
+ # @type Leader: Integer
3834
+ # @param Replica: 副本集
3835
+ # @type Replica: String
3836
+ # @param InSyncReplica: ISR
3837
+ # @type InSyncReplica: String
3838
+ # @param BeginOffset: 起始Offset
3839
+ # 注意:此字段可能返回 null,表示取不到有效值。
3840
+ # @type BeginOffset: Integer
3841
+ # @param EndOffset: 末端Offset
3842
+ # 注意:此字段可能返回 null,表示取不到有效值。
3843
+ # @type EndOffset: Integer
3844
+ # @param MessageCount: 消息数
3845
+ # 注意:此字段可能返回 null,表示取不到有效值。
3846
+ # @type MessageCount: Integer
3847
+ # @param OutOfSyncReplica: 未同步副本集
3848
+ # 注意:此字段可能返回 null,表示取不到有效值。
3849
+ # @type OutOfSyncReplica: String
3850
+
3851
+ attr_accessor :Partition, :Leader, :Replica, :InSyncReplica, :BeginOffset, :EndOffset, :MessageCount, :OutOfSyncReplica
3852
+
3853
+ def initialize(partition=nil, leader=nil, replica=nil, insyncreplica=nil, beginoffset=nil, endoffset=nil, messagecount=nil, outofsyncreplica=nil)
3854
+ @Partition = partition
3855
+ @Leader = leader
3856
+ @Replica = replica
3857
+ @InSyncReplica = insyncreplica
3858
+ @BeginOffset = beginoffset
3859
+ @EndOffset = endoffset
3860
+ @MessageCount = messagecount
3861
+ @OutOfSyncReplica = outofsyncreplica
3862
+ end
3863
+
3864
+ def deserialize(params)
3865
+ @Partition = params['Partition']
3866
+ @Leader = params['Leader']
3867
+ @Replica = params['Replica']
3868
+ @InSyncReplica = params['InSyncReplica']
3869
+ @BeginOffset = params['BeginOffset']
3870
+ @EndOffset = params['EndOffset']
3871
+ @MessageCount = params['MessageCount']
3872
+ @OutOfSyncReplica = params['OutOfSyncReplica']
3873
+ end
3874
+ end
3875
+
3876
+ # Topic 副本及详情数据集合
3877
+ class TopicInSyncReplicaResult < TencentCloud::Common::AbstractModel
3878
+ # @param TopicInSyncReplicaList: Topic详情及副本合集
3879
+ # @type TopicInSyncReplicaList: Array
3880
+ # @param TotalCount: 总计个数
3881
+ # @type TotalCount: Integer
3882
+
3883
+ attr_accessor :TopicInSyncReplicaList, :TotalCount
3884
+
3885
+ def initialize(topicinsyncreplicalist=nil, totalcount=nil)
3886
+ @TopicInSyncReplicaList = topicinsyncreplicalist
3887
+ @TotalCount = totalcount
3888
+ end
3889
+
3890
+ def deserialize(params)
3891
+ unless params['TopicInSyncReplicaList'].nil?
3892
+ @TopicInSyncReplicaList = []
3893
+ params['TopicInSyncReplicaList'].each do |i|
3894
+ topicinsyncreplicainfo_tmp = TopicInSyncReplicaInfo.new
3895
+ topicinsyncreplicainfo_tmp.deserialize(i)
3896
+ @TopicInSyncReplicaList << topicinsyncreplicainfo_tmp
3897
+ end
3898
+ end
3899
+ @TotalCount = params['TotalCount']
3900
+ end
3901
+ end
3902
+
3903
+ # 分区详情
3904
+ class TopicPartitionDO < TencentCloud::Common::AbstractModel
3905
+ # @param Partition: Partition ID
3906
+ # @type Partition: Integer
3907
+ # @param LeaderStatus: Leader 运行状态
3908
+ # @type LeaderStatus: Integer
3909
+ # @param IsrNum: ISR 个数
3910
+ # @type IsrNum: Integer
3911
+ # @param ReplicaNum: 副本个数
3912
+ # @type ReplicaNum: Integer
3913
+
3914
+ attr_accessor :Partition, :LeaderStatus, :IsrNum, :ReplicaNum
3915
+
3916
+ def initialize(partition=nil, leaderstatus=nil, isrnum=nil, replicanum=nil)
3917
+ @Partition = partition
3918
+ @LeaderStatus = leaderstatus
3919
+ @IsrNum = isrnum
3920
+ @ReplicaNum = replicanum
3921
+ end
3922
+
3923
+ def deserialize(params)
3924
+ @Partition = params['Partition']
3925
+ @LeaderStatus = params['LeaderStatus']
3926
+ @IsrNum = params['IsrNum']
3927
+ @ReplicaNum = params['ReplicaNum']
3928
+ end
3929
+ end
3930
+
3931
+ # 统一返回的TopicResponse
3932
+ class TopicResult < TencentCloud::Common::AbstractModel
3933
+ # @param TopicList: 返回的主题信息列表
3934
+ # 注意:此字段可能返回 null,表示取不到有效值。
3935
+ # @type TopicList: Array
3936
+ # @param TotalCount: 符合条件的 topic 数量
3937
+ # 注意:此字段可能返回 null,表示取不到有效值。
3938
+ # @type TotalCount: Integer
3939
+
3940
+ attr_accessor :TopicList, :TotalCount
3941
+
3942
+ def initialize(topiclist=nil, totalcount=nil)
3943
+ @TopicList = topiclist
3944
+ @TotalCount = totalcount
3945
+ end
3946
+
3947
+ def deserialize(params)
3948
+ unless params['TopicList'].nil?
3949
+ @TopicList = []
3950
+ params['TopicList'].each do |i|
3951
+ topic_tmp = Topic.new
3952
+ topic_tmp.deserialize(i)
3953
+ @TopicList << topic_tmp
3954
+ end
3955
+ end
3956
+ @TotalCount = params['TotalCount']
3957
+ end
3958
+ end
3959
+
3960
+ # Topic消息保留时间配置返回信息
3961
+ class TopicRetentionTimeConfigRsp < TencentCloud::Common::AbstractModel
3962
+ # @param Expect: 期望值,即用户配置的Topic消息保留时间(单位分钟)
3963
+ # 注意:此字段可能返回 null,表示取不到有效值。
3964
+ # @type Expect: Integer
3965
+ # @param Current: 当前值,即当前生效值(可能存在动态调整,单位分钟)
3966
+ # 注意:此字段可能返回 null,表示取不到有效值。
3967
+ # @type Current: Integer
3968
+ # @param ModTimeStamp: 最近变更时间
3969
+ # 注意:此字段可能返回 null,表示取不到有效值。
3970
+ # @type ModTimeStamp: Integer
3971
+
3972
+ attr_accessor :Expect, :Current, :ModTimeStamp
3973
+
3974
+ def initialize(expect=nil, current=nil, modtimestamp=nil)
3975
+ @Expect = expect
3976
+ @Current = current
3977
+ @ModTimeStamp = modtimestamp
3978
+ end
3979
+
3980
+ def deserialize(params)
3981
+ @Expect = params['Expect']
3982
+ @Current = params['Current']
3983
+ @ModTimeStamp = params['ModTimeStamp']
3984
+ end
3985
+ end
3986
+
3987
+ # DescribeTopicSubscribeGroup接口出参
3988
+ class TopicSubscribeGroup < TencentCloud::Common::AbstractModel
3989
+ # @param TotalCount: 总数
3990
+ # @type TotalCount: Integer
3991
+ # @param StatusCountInfo: 消费分组状态数量信息
3992
+ # @type StatusCountInfo: String
3993
+ # @param GroupsInfo: 消费分组信息
3994
+ # 注意:此字段可能返回 null,表示取不到有效值。
3995
+ # @type GroupsInfo: Array
3996
+ # @param Status: 此次请求是否异步的状态。实例里分组较少的会直接返回结果,Status为1。当分组较多时,会异步更新缓存,Status为0时不会返回分组信息,直至Status为1更新完毕返回结果。
3997
+ # 注意:此字段可能返回 null,表示取不到有效值。
3998
+ # @type Status: Integer
3999
+
4000
+ attr_accessor :TotalCount, :StatusCountInfo, :GroupsInfo, :Status
4001
+
4002
+ def initialize(totalcount=nil, statuscountinfo=nil, groupsinfo=nil, status=nil)
4003
+ @TotalCount = totalcount
4004
+ @StatusCountInfo = statuscountinfo
4005
+ @GroupsInfo = groupsinfo
4006
+ @Status = status
4007
+ end
4008
+
4009
+ def deserialize(params)
4010
+ @TotalCount = params['TotalCount']
4011
+ @StatusCountInfo = params['StatusCountInfo']
4012
+ unless params['GroupsInfo'].nil?
4013
+ @GroupsInfo = []
4014
+ params['GroupsInfo'].each do |i|
4015
+ groupinforesponse_tmp = GroupInfoResponse.new
4016
+ groupinforesponse_tmp.deserialize(i)
4017
+ @GroupsInfo << groupinforesponse_tmp
4018
+ end
4019
+ end
4020
+ @Status = params['Status']
4021
+ end
4022
+ end
4023
+
4024
+ # 用户实体
4025
+ class User < TencentCloud::Common::AbstractModel
4026
+ # @param UserId: 用户id
4027
+ # @type UserId: Integer
4028
+ # @param Name: 用户名称
4029
+ # @type Name: String
4030
+ # @param CreateTime: 创建时间
4031
+ # @type CreateTime: String
4032
+ # @param UpdateTime: 最后更新时间
4033
+ # @type UpdateTime: String
4034
+
4035
+ attr_accessor :UserId, :Name, :CreateTime, :UpdateTime
4036
+
4037
+ def initialize(userid=nil, name=nil, createtime=nil, updatetime=nil)
4038
+ @UserId = userid
4039
+ @Name = name
4040
+ @CreateTime = createtime
4041
+ @UpdateTime = updatetime
4042
+ end
4043
+
4044
+ def deserialize(params)
4045
+ @UserId = params['UserId']
4046
+ @Name = params['Name']
4047
+ @CreateTime = params['CreateTime']
4048
+ @UpdateTime = params['UpdateTime']
4049
+ end
4050
+ end
4051
+
4052
+ # 用户返回实体
4053
+ class UserResponse < TencentCloud::Common::AbstractModel
4054
+ # @param Users: 符合条件的用户列表
4055
+ # 注意:此字段可能返回 null,表示取不到有效值。
4056
+ # @type Users: Array
4057
+ # @param TotalCount: 符合条件的总用户数
4058
+ # @type TotalCount: Integer
4059
+
4060
+ attr_accessor :Users, :TotalCount
4061
+
4062
+ def initialize(users=nil, totalcount=nil)
4063
+ @Users = users
4064
+ @TotalCount = totalcount
4065
+ end
4066
+
4067
+ def deserialize(params)
4068
+ unless params['Users'].nil?
4069
+ @Users = []
4070
+ params['Users'].each do |i|
4071
+ user_tmp = User.new
4072
+ user_tmp.deserialize(i)
4073
+ @Users << user_tmp
4074
+ end
4075
+ end
4076
+ @TotalCount = params['TotalCount']
4077
+ end
4078
+ end
4079
+
4080
+ # 虚拟IP实体
4081
+ class VipEntity < TencentCloud::Common::AbstractModel
4082
+ # @param Vip: 虚拟IP
4083
+ # @type Vip: String
4084
+ # @param Vport: 虚拟端口
4085
+ # @type Vport: String
4086
+
4087
+ attr_accessor :Vip, :Vport
4088
+
4089
+ def initialize(vip=nil, vport=nil)
4090
+ @Vip = vip
4091
+ @Vport = vport
4092
+ end
4093
+
4094
+ def deserialize(params)
4095
+ @Vip = params['Vip']
4096
+ @Vport = params['Vport']
4097
+ end
4098
+ end
4099
+
4100
+ # zone信息实体
4101
+ class ZoneInfo < TencentCloud::Common::AbstractModel
4102
+ # @param ZoneId: zone的id
4103
+ # @type ZoneId: String
4104
+ # @param IsInternalApp: 是否内部APP
4105
+ # @type IsInternalApp: Integer
4106
+ # @param AppId: app id
4107
+ # @type AppId: Integer
4108
+ # @param Flag: 标识
4109
+ # @type Flag: Boolean
4110
+ # @param ZoneName: zone名称
4111
+ # @type ZoneName: String
4112
+ # @param ZoneStatus: zone状态
4113
+ # @type ZoneStatus: Integer
4114
+ # @param Exflag: 额外标识
4115
+ # @type Exflag: String
4116
+ # @param SoldOut: json对象,key为机型,value true为售罄,false为未售罄
4117
+ # @type SoldOut: String
4118
+ # @param SalesInfo: 标准版售罄信息
4119
+ # 注意:此字段可能返回 null,表示取不到有效值。
4120
+ # @type SalesInfo: Array
4121
+
4122
+ attr_accessor :ZoneId, :IsInternalApp, :AppId, :Flag, :ZoneName, :ZoneStatus, :Exflag, :SoldOut, :SalesInfo
4123
+
4124
+ def initialize(zoneid=nil, isinternalapp=nil, appid=nil, flag=nil, zonename=nil, zonestatus=nil, exflag=nil, soldout=nil, salesinfo=nil)
4125
+ @ZoneId = zoneid
4126
+ @IsInternalApp = isinternalapp
4127
+ @AppId = appid
4128
+ @Flag = flag
4129
+ @ZoneName = zonename
4130
+ @ZoneStatus = zonestatus
4131
+ @Exflag = exflag
4132
+ @SoldOut = soldout
4133
+ @SalesInfo = salesinfo
4134
+ end
4135
+
4136
+ def deserialize(params)
4137
+ @ZoneId = params['ZoneId']
4138
+ @IsInternalApp = params['IsInternalApp']
4139
+ @AppId = params['AppId']
4140
+ @Flag = params['Flag']
4141
+ @ZoneName = params['ZoneName']
4142
+ @ZoneStatus = params['ZoneStatus']
4143
+ @Exflag = params['Exflag']
4144
+ @SoldOut = params['SoldOut']
4145
+ unless params['SalesInfo'].nil?
4146
+ @SalesInfo = []
4147
+ params['SalesInfo'].each do |i|
4148
+ saleinfo_tmp = SaleInfo.new
4149
+ saleinfo_tmp.deserialize(i)
4150
+ @SalesInfo << saleinfo_tmp
4151
+ end
4152
+ end
4153
+ end
4154
+ end
4155
+
4156
+ # 查询kafka的zone信息返回的实体
4157
+ class ZoneResponse < TencentCloud::Common::AbstractModel
4158
+ # @param ZoneList: zone列表
4159
+ # @type ZoneList: Array
4160
+ # @param MaxBuyInstanceNum: 最大购买实例个数
4161
+ # @type MaxBuyInstanceNum: Integer
4162
+ # @param MaxBandwidth: 最大购买带宽 单位Mb/s
4163
+ # @type MaxBandwidth: Integer
4164
+ # @param UnitPrice: 后付费单位价格
4165
+ # @type UnitPrice: :class:`Tencentcloud::Ckafka.v20190819.models.Price`
4166
+ # @param MessagePrice: 后付费消息单价
4167
+ # @type MessagePrice: :class:`Tencentcloud::Ckafka.v20190819.models.Price`
4168
+ # @param ClusterInfo: 用户独占集群信息
4169
+ # 注意:此字段可能返回 null,表示取不到有效值。
4170
+ # @type ClusterInfo: Array
4171
+ # @param Standard: 购买标准版配置
4172
+ # 注意:此字段可能返回 null,表示取不到有效值。
4173
+ # @type Standard: String
4174
+ # @param StandardS2: 购买标准版S2配置
4175
+ # 注意:此字段可能返回 null,表示取不到有效值。
4176
+ # @type StandardS2: String
4177
+ # @param Profession: 购买专业版配置
4178
+ # 注意:此字段可能返回 null,表示取不到有效值。
4179
+ # @type Profession: String
4180
+ # @param Physical: 购买物理独占版配置
4181
+ # 注意:此字段可能返回 null,表示取不到有效值。
4182
+ # @type Physical: String
4183
+
4184
+ attr_accessor :ZoneList, :MaxBuyInstanceNum, :MaxBandwidth, :UnitPrice, :MessagePrice, :ClusterInfo, :Standard, :StandardS2, :Profession, :Physical
4185
+
4186
+ def initialize(zonelist=nil, maxbuyinstancenum=nil, maxbandwidth=nil, unitprice=nil, messageprice=nil, clusterinfo=nil, standard=nil, standards2=nil, profession=nil, physical=nil)
4187
+ @ZoneList = zonelist
4188
+ @MaxBuyInstanceNum = maxbuyinstancenum
4189
+ @MaxBandwidth = maxbandwidth
4190
+ @UnitPrice = unitprice
4191
+ @MessagePrice = messageprice
4192
+ @ClusterInfo = clusterinfo
4193
+ @Standard = standard
4194
+ @StandardS2 = standards2
4195
+ @Profession = profession
4196
+ @Physical = physical
4197
+ end
4198
+
4199
+ def deserialize(params)
4200
+ unless params['ZoneList'].nil?
4201
+ @ZoneList = []
4202
+ params['ZoneList'].each do |i|
4203
+ zoneinfo_tmp = ZoneInfo.new
4204
+ zoneinfo_tmp.deserialize(i)
4205
+ @ZoneList << zoneinfo_tmp
4206
+ end
4207
+ end
4208
+ @MaxBuyInstanceNum = params['MaxBuyInstanceNum']
4209
+ @MaxBandwidth = params['MaxBandwidth']
4210
+ unless params['UnitPrice'].nil?
4211
+ @UnitPrice = Price.new
4212
+ @UnitPrice.deserialize(params['UnitPrice'])
4213
+ end
4214
+ unless params['MessagePrice'].nil?
4215
+ @MessagePrice = Price.new
4216
+ @MessagePrice.deserialize(params['MessagePrice'])
4217
+ end
4218
+ unless params['ClusterInfo'].nil?
4219
+ @ClusterInfo = []
4220
+ params['ClusterInfo'].each do |i|
4221
+ clusterinfo_tmp = ClusterInfo.new
4222
+ clusterinfo_tmp.deserialize(i)
4223
+ @ClusterInfo << clusterinfo_tmp
4224
+ end
4225
+ end
4226
+ @Standard = params['Standard']
4227
+ @StandardS2 = params['StandardS2']
4228
+ @Profession = params['Profession']
4229
+ @Physical = params['Physical']
4230
+ end
4231
+ end
4232
+
4233
+ end
4234
+ end
4235
+ end
4236
+