tencentcloud-sdk-ckafka 1.0.225 → 1.0.229
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190819/client.rb +48 -0
- data/lib/v20190819/models.rb +308 -10
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e37c0fe434cd4dd644ab15361e77913338606599
|
|
4
|
+
data.tar.gz: 76a3593d24f07f3a5bd67d91122fdf2a69b6bdc0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 870c1c14c1aa0a40ed2d038fcef900146b0e8eb97e296e08bf59e7abf4a4db4a2f2296c39046beda5662dfe5044ba1698a1519c111d2de522b703a24978e2c01
|
|
7
|
+
data.tar.gz: 2043494ea1ab7c676edeeaedfb7390131f9ba6b7eebc2e5a0faa1ea630fd161b4df12776d5b03b37a925ee5e7a97da4cec23f92dc896cedfdbf562983663a415
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.229
|
data/lib/v20190819/client.rb
CHANGED
|
@@ -53,6 +53,54 @@ module TencentCloud
|
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
54
54
|
end
|
|
55
55
|
|
|
56
|
+
# 批量修改消费组offset
|
|
57
|
+
|
|
58
|
+
# @param request: Request instance for BatchModifyGroupOffsets.
|
|
59
|
+
# @type request: :class:`Tencentcloud::ckafka::V20190819::BatchModifyGroupOffsetsRequest`
|
|
60
|
+
# @rtype: :class:`Tencentcloud::ckafka::V20190819::BatchModifyGroupOffsetsResponse`
|
|
61
|
+
def BatchModifyGroupOffsets(request)
|
|
62
|
+
body = send_request('BatchModifyGroupOffsets', request.serialize)
|
|
63
|
+
response = JSON.parse(body)
|
|
64
|
+
if response['Response'].key?('Error') == false
|
|
65
|
+
model = BatchModifyGroupOffsetsResponse.new
|
|
66
|
+
model.deserialize(response['Response'])
|
|
67
|
+
model
|
|
68
|
+
else
|
|
69
|
+
code = response['Response']['Error']['Code']
|
|
70
|
+
message = response['Response']['Error']['Message']
|
|
71
|
+
reqid = response['Response']['RequestId']
|
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
73
|
+
end
|
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
75
|
+
raise e
|
|
76
|
+
rescue StandardError => e
|
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# 批量设置主题属性
|
|
81
|
+
|
|
82
|
+
# @param request: Request instance for BatchModifyTopicAttributes.
|
|
83
|
+
# @type request: :class:`Tencentcloud::ckafka::V20190819::BatchModifyTopicAttributesRequest`
|
|
84
|
+
# @rtype: :class:`Tencentcloud::ckafka::V20190819::BatchModifyTopicAttributesResponse`
|
|
85
|
+
def BatchModifyTopicAttributes(request)
|
|
86
|
+
body = send_request('BatchModifyTopicAttributes', request.serialize)
|
|
87
|
+
response = JSON.parse(body)
|
|
88
|
+
if response['Response'].key?('Error') == false
|
|
89
|
+
model = BatchModifyTopicAttributesResponse.new
|
|
90
|
+
model.deserialize(response['Response'])
|
|
91
|
+
model
|
|
92
|
+
else
|
|
93
|
+
code = response['Response']['Error']['Code']
|
|
94
|
+
message = response['Response']['Error']['Message']
|
|
95
|
+
reqid = response['Response']['RequestId']
|
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
97
|
+
end
|
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
99
|
+
raise e
|
|
100
|
+
rescue StandardError => e
|
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
102
|
+
end
|
|
103
|
+
|
|
56
104
|
# 添加 ACL 策略
|
|
57
105
|
|
|
58
106
|
# @param request: Request instance for CreateAcl.
|
data/lib/v20190819/models.rb
CHANGED
|
@@ -292,6 +292,205 @@ module TencentCloud
|
|
|
292
292
|
end
|
|
293
293
|
end
|
|
294
294
|
|
|
295
|
+
# BatchModifyGroupOffsets请求参数结构体
|
|
296
|
+
class BatchModifyGroupOffsetsRequest < TencentCloud::Common::AbstractModel
|
|
297
|
+
# @param GroupName: 消费分组名称
|
|
298
|
+
# @type GroupName: String
|
|
299
|
+
# @param InstanceId: 实例名称
|
|
300
|
+
# @type InstanceId: String
|
|
301
|
+
# @param Partitions: partition信息
|
|
302
|
+
# @type Partitions: Array
|
|
303
|
+
# @param TopicName: 指定topic,默认所有topic
|
|
304
|
+
# @type TopicName: Array
|
|
305
|
+
|
|
306
|
+
attr_accessor :GroupName, :InstanceId, :Partitions, :TopicName
|
|
307
|
+
|
|
308
|
+
def initialize(groupname=nil, instanceid=nil, partitions=nil, topicname=nil)
|
|
309
|
+
@GroupName = groupname
|
|
310
|
+
@InstanceId = instanceid
|
|
311
|
+
@Partitions = partitions
|
|
312
|
+
@TopicName = topicname
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
def deserialize(params)
|
|
316
|
+
@GroupName = params['GroupName']
|
|
317
|
+
@InstanceId = params['InstanceId']
|
|
318
|
+
unless params['Partitions'].nil?
|
|
319
|
+
@Partitions = []
|
|
320
|
+
params['Partitions'].each do |i|
|
|
321
|
+
partitions_tmp = Partitions.new
|
|
322
|
+
partitions_tmp.deserialize(i)
|
|
323
|
+
@Partitions << partitions_tmp
|
|
324
|
+
end
|
|
325
|
+
end
|
|
326
|
+
@TopicName = params['TopicName']
|
|
327
|
+
end
|
|
328
|
+
end
|
|
329
|
+
|
|
330
|
+
# BatchModifyGroupOffsets返回参数结构体
|
|
331
|
+
class BatchModifyGroupOffsetsResponse < TencentCloud::Common::AbstractModel
|
|
332
|
+
# @param Result: 返回结果
|
|
333
|
+
# @type Result: :class:`Tencentcloud::Ckafka.v20190819.models.JgwOperateResponse`
|
|
334
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
335
|
+
# @type RequestId: String
|
|
336
|
+
|
|
337
|
+
attr_accessor :Result, :RequestId
|
|
338
|
+
|
|
339
|
+
def initialize(result=nil, requestid=nil)
|
|
340
|
+
@Result = result
|
|
341
|
+
@RequestId = requestid
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
def deserialize(params)
|
|
345
|
+
unless params['Result'].nil?
|
|
346
|
+
@Result = JgwOperateResponse.new
|
|
347
|
+
@Result.deserialize(params['Result'])
|
|
348
|
+
end
|
|
349
|
+
@RequestId = params['RequestId']
|
|
350
|
+
end
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
# BatchModifyTopicAttributes请求参数结构体
|
|
354
|
+
class BatchModifyTopicAttributesRequest < TencentCloud::Common::AbstractModel
|
|
355
|
+
# @param InstanceId: 实例id
|
|
356
|
+
# @type InstanceId: String
|
|
357
|
+
# @param Topic: 主题属性列表
|
|
358
|
+
# @type Topic: Array
|
|
359
|
+
|
|
360
|
+
attr_accessor :InstanceId, :Topic
|
|
361
|
+
|
|
362
|
+
def initialize(instanceid=nil, topic=nil)
|
|
363
|
+
@InstanceId = instanceid
|
|
364
|
+
@Topic = topic
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
def deserialize(params)
|
|
368
|
+
@InstanceId = params['InstanceId']
|
|
369
|
+
unless params['Topic'].nil?
|
|
370
|
+
@Topic = []
|
|
371
|
+
params['Topic'].each do |i|
|
|
372
|
+
batchmodifytopicinfo_tmp = BatchModifyTopicInfo.new
|
|
373
|
+
batchmodifytopicinfo_tmp.deserialize(i)
|
|
374
|
+
@Topic << batchmodifytopicinfo_tmp
|
|
375
|
+
end
|
|
376
|
+
end
|
|
377
|
+
end
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
# BatchModifyTopicAttributes返回参数结构体
|
|
381
|
+
class BatchModifyTopicAttributesResponse < TencentCloud::Common::AbstractModel
|
|
382
|
+
# @param Result: 返回结果
|
|
383
|
+
# @type Result: Array
|
|
384
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
385
|
+
# @type RequestId: String
|
|
386
|
+
|
|
387
|
+
attr_accessor :Result, :RequestId
|
|
388
|
+
|
|
389
|
+
def initialize(result=nil, requestid=nil)
|
|
390
|
+
@Result = result
|
|
391
|
+
@RequestId = requestid
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
def deserialize(params)
|
|
395
|
+
unless params['Result'].nil?
|
|
396
|
+
@Result = []
|
|
397
|
+
params['Result'].each do |i|
|
|
398
|
+
batchmodifytopicresultdto_tmp = BatchModifyTopicResultDTO.new
|
|
399
|
+
batchmodifytopicresultdto_tmp.deserialize(i)
|
|
400
|
+
@Result << batchmodifytopicresultdto_tmp
|
|
401
|
+
end
|
|
402
|
+
end
|
|
403
|
+
@RequestId = params['RequestId']
|
|
404
|
+
end
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
# 批量修改topic参数
|
|
408
|
+
class BatchModifyTopicInfo < TencentCloud::Common::AbstractModel
|
|
409
|
+
# @param TopicName: topic名称
|
|
410
|
+
# @type TopicName: String
|
|
411
|
+
# @param PartitionNum: 分区数
|
|
412
|
+
# @type PartitionNum: Integer
|
|
413
|
+
# @param Note: 备注
|
|
414
|
+
# @type Note: String
|
|
415
|
+
# @param ReplicaNum: 副本数
|
|
416
|
+
# @type ReplicaNum: Integer
|
|
417
|
+
# @param CleanUpPolicy: 消息删除策略,可以选择delete 或者compact
|
|
418
|
+
# @type CleanUpPolicy: String
|
|
419
|
+
# @param MinInsyncReplicas: 当producer设置request.required.acks为-1时,min.insync.replicas指定replicas的最小数目
|
|
420
|
+
# @type MinInsyncReplicas: Integer
|
|
421
|
+
# @param UncleanLeaderElectionEnable: 是否允许非ISR的副本成为Leader
|
|
422
|
+
# @type UncleanLeaderElectionEnable: Boolean
|
|
423
|
+
# @param RetentionMs: topic维度的消息保留时间(毫秒)范围1 分钟到90 天
|
|
424
|
+
# @type RetentionMs: Integer
|
|
425
|
+
# @param RetentionBytes: topic维度的消息保留大小,范围1 MB到1024 GB
|
|
426
|
+
# @type RetentionBytes: Integer
|
|
427
|
+
# @param SegmentMs: Segment分片滚动的时长(毫秒),范围1 到90 天
|
|
428
|
+
# @type SegmentMs: Integer
|
|
429
|
+
# @param MaxMessageBytes: 批次的消息大小,范围1 KB到12 MB
|
|
430
|
+
# @type MaxMessageBytes: Integer
|
|
431
|
+
|
|
432
|
+
attr_accessor :TopicName, :PartitionNum, :Note, :ReplicaNum, :CleanUpPolicy, :MinInsyncReplicas, :UncleanLeaderElectionEnable, :RetentionMs, :RetentionBytes, :SegmentMs, :MaxMessageBytes
|
|
433
|
+
|
|
434
|
+
def initialize(topicname=nil, partitionnum=nil, note=nil, replicanum=nil, cleanuppolicy=nil, mininsyncreplicas=nil, uncleanleaderelectionenable=nil, retentionms=nil, retentionbytes=nil, segmentms=nil, maxmessagebytes=nil)
|
|
435
|
+
@TopicName = topicname
|
|
436
|
+
@PartitionNum = partitionnum
|
|
437
|
+
@Note = note
|
|
438
|
+
@ReplicaNum = replicanum
|
|
439
|
+
@CleanUpPolicy = cleanuppolicy
|
|
440
|
+
@MinInsyncReplicas = mininsyncreplicas
|
|
441
|
+
@UncleanLeaderElectionEnable = uncleanleaderelectionenable
|
|
442
|
+
@RetentionMs = retentionms
|
|
443
|
+
@RetentionBytes = retentionbytes
|
|
444
|
+
@SegmentMs = segmentms
|
|
445
|
+
@MaxMessageBytes = maxmessagebytes
|
|
446
|
+
end
|
|
447
|
+
|
|
448
|
+
def deserialize(params)
|
|
449
|
+
@TopicName = params['TopicName']
|
|
450
|
+
@PartitionNum = params['PartitionNum']
|
|
451
|
+
@Note = params['Note']
|
|
452
|
+
@ReplicaNum = params['ReplicaNum']
|
|
453
|
+
@CleanUpPolicy = params['CleanUpPolicy']
|
|
454
|
+
@MinInsyncReplicas = params['MinInsyncReplicas']
|
|
455
|
+
@UncleanLeaderElectionEnable = params['UncleanLeaderElectionEnable']
|
|
456
|
+
@RetentionMs = params['RetentionMs']
|
|
457
|
+
@RetentionBytes = params['RetentionBytes']
|
|
458
|
+
@SegmentMs = params['SegmentMs']
|
|
459
|
+
@MaxMessageBytes = params['MaxMessageBytes']
|
|
460
|
+
end
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
# 批量修改topic属性结果
|
|
464
|
+
class BatchModifyTopicResultDTO < TencentCloud::Common::AbstractModel
|
|
465
|
+
# @param InstanceId: 实例id
|
|
466
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
467
|
+
# @type InstanceId: String
|
|
468
|
+
# @param TopicName: topic名称
|
|
469
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
470
|
+
# @type TopicName: String
|
|
471
|
+
# @param ReturnCode: 状态码
|
|
472
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
473
|
+
# @type ReturnCode: String
|
|
474
|
+
# @param Message: 状态消息
|
|
475
|
+
# @type Message: String
|
|
476
|
+
|
|
477
|
+
attr_accessor :InstanceId, :TopicName, :ReturnCode, :Message
|
|
478
|
+
|
|
479
|
+
def initialize(instanceid=nil, topicname=nil, returncode=nil, message=nil)
|
|
480
|
+
@InstanceId = instanceid
|
|
481
|
+
@TopicName = topicname
|
|
482
|
+
@ReturnCode = returncode
|
|
483
|
+
@Message = message
|
|
484
|
+
end
|
|
485
|
+
|
|
486
|
+
def deserialize(params)
|
|
487
|
+
@InstanceId = params['InstanceId']
|
|
488
|
+
@TopicName = params['TopicName']
|
|
489
|
+
@ReturnCode = params['ReturnCode']
|
|
490
|
+
@Message = params['Message']
|
|
491
|
+
end
|
|
492
|
+
end
|
|
493
|
+
|
|
295
494
|
# 集群信息实体
|
|
296
495
|
class ClusterInfo < TencentCloud::Common::AbstractModel
|
|
297
496
|
# @param ClusterId: 集群Id
|
|
@@ -926,10 +1125,12 @@ module TencentCloud
|
|
|
926
1125
|
# @type AclRuleName: String
|
|
927
1126
|
# @param RetentionBytes: 可选, 保留文件大小. 默认为-1,单位bytes, 当前最小值为1048576B
|
|
928
1127
|
# @type RetentionBytes: Integer
|
|
1128
|
+
# @param Tags: 标签列表
|
|
1129
|
+
# @type Tags: Array
|
|
929
1130
|
|
|
930
|
-
attr_accessor :InstanceId, :TopicName, :PartitionNum, :ReplicaNum, :EnableWhiteList, :IpWhiteList, :CleanUpPolicy, :Note, :MinInsyncReplicas, :UncleanLeaderElectionEnable, :RetentionMs, :SegmentMs, :EnableAclRule, :AclRuleName, :RetentionBytes
|
|
1131
|
+
attr_accessor :InstanceId, :TopicName, :PartitionNum, :ReplicaNum, :EnableWhiteList, :IpWhiteList, :CleanUpPolicy, :Note, :MinInsyncReplicas, :UncleanLeaderElectionEnable, :RetentionMs, :SegmentMs, :EnableAclRule, :AclRuleName, :RetentionBytes, :Tags
|
|
931
1132
|
|
|
932
|
-
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)
|
|
1133
|
+
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, tags=nil)
|
|
933
1134
|
@InstanceId = instanceid
|
|
934
1135
|
@TopicName = topicname
|
|
935
1136
|
@PartitionNum = partitionnum
|
|
@@ -945,6 +1146,7 @@ module TencentCloud
|
|
|
945
1146
|
@EnableAclRule = enableaclrule
|
|
946
1147
|
@AclRuleName = aclrulename
|
|
947
1148
|
@RetentionBytes = retentionbytes
|
|
1149
|
+
@Tags = tags
|
|
948
1150
|
end
|
|
949
1151
|
|
|
950
1152
|
def deserialize(params)
|
|
@@ -963,6 +1165,14 @@ module TencentCloud
|
|
|
963
1165
|
@EnableAclRule = params['EnableAclRule']
|
|
964
1166
|
@AclRuleName = params['AclRuleName']
|
|
965
1167
|
@RetentionBytes = params['RetentionBytes']
|
|
1168
|
+
unless params['Tags'].nil?
|
|
1169
|
+
@Tags = []
|
|
1170
|
+
params['Tags'].each do |i|
|
|
1171
|
+
tag_tmp = Tag.new
|
|
1172
|
+
tag_tmp.deserialize(i)
|
|
1173
|
+
@Tags << tag_tmp
|
|
1174
|
+
end
|
|
1175
|
+
end
|
|
966
1176
|
end
|
|
967
1177
|
end
|
|
968
1178
|
|
|
@@ -2298,6 +2508,38 @@ module TencentCloud
|
|
|
2298
2508
|
end
|
|
2299
2509
|
end
|
|
2300
2510
|
|
|
2511
|
+
# 动态硬盘扩容配置
|
|
2512
|
+
class DynamicDiskConfig < TencentCloud::Common::AbstractModel
|
|
2513
|
+
# @param Enable: 动态硬盘扩容配置开关(0: 关闭,1: 开启)
|
|
2514
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2515
|
+
# @type Enable: Integer
|
|
2516
|
+
# @param StepForwardPercentage: 每次磁盘动态扩容大小百分比
|
|
2517
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2518
|
+
# @type StepForwardPercentage: Integer
|
|
2519
|
+
# @param DiskQuotaPercentage: 磁盘配额百分比触发条件,即消息达到此值触发硬盘自动扩容事件
|
|
2520
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2521
|
+
# @type DiskQuotaPercentage: Integer
|
|
2522
|
+
# @param MaxDiskSpace: 最大扩容硬盘大小,以 GB 为单位
|
|
2523
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2524
|
+
# @type MaxDiskSpace: Integer
|
|
2525
|
+
|
|
2526
|
+
attr_accessor :Enable, :StepForwardPercentage, :DiskQuotaPercentage, :MaxDiskSpace
|
|
2527
|
+
|
|
2528
|
+
def initialize(enable=nil, stepforwardpercentage=nil, diskquotapercentage=nil, maxdiskspace=nil)
|
|
2529
|
+
@Enable = enable
|
|
2530
|
+
@StepForwardPercentage = stepforwardpercentage
|
|
2531
|
+
@DiskQuotaPercentage = diskquotapercentage
|
|
2532
|
+
@MaxDiskSpace = maxdiskspace
|
|
2533
|
+
end
|
|
2534
|
+
|
|
2535
|
+
def deserialize(params)
|
|
2536
|
+
@Enable = params['Enable']
|
|
2537
|
+
@StepForwardPercentage = params['StepForwardPercentage']
|
|
2538
|
+
@DiskQuotaPercentage = params['DiskQuotaPercentage']
|
|
2539
|
+
@MaxDiskSpace = params['MaxDiskSpace']
|
|
2540
|
+
end
|
|
2541
|
+
end
|
|
2542
|
+
|
|
2301
2543
|
# 动态消息保留时间配置
|
|
2302
2544
|
class DynamicRetentionTime < TencentCloud::Common::AbstractModel
|
|
2303
2545
|
# @param Enable: 动态消息保留时间配置开关(0: 关闭,1: 开启)
|
|
@@ -2756,10 +2998,13 @@ module TencentCloud
|
|
|
2756
2998
|
# @param RemainingTopics: 剩余创建主题数
|
|
2757
2999
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2758
3000
|
# @type RemainingTopics: Integer
|
|
3001
|
+
# @param DynamicDiskConfig: 动态硬盘扩容策略
|
|
3002
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3003
|
+
# @type DynamicDiskConfig: :class:`Tencentcloud::Ckafka.v20190819.models.DynamicDiskConfig`
|
|
2759
3004
|
|
|
2760
|
-
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, :RemainingPartitions, :RemainingTopics
|
|
3005
|
+
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, :RemainingPartitions, :RemainingTopics, :DynamicDiskConfig
|
|
2761
3006
|
|
|
2762
|
-
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, remainingpartitions=nil, remainingtopics=nil)
|
|
3007
|
+
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, remainingpartitions=nil, remainingtopics=nil, dynamicdiskconfig=nil)
|
|
2763
3008
|
@InstanceId = instanceid
|
|
2764
3009
|
@InstanceName = instancename
|
|
2765
3010
|
@VipList = viplist
|
|
@@ -2794,6 +3039,7 @@ module TencentCloud
|
|
|
2794
3039
|
@DeleteRouteTimestamp = deleteroutetimestamp
|
|
2795
3040
|
@RemainingPartitions = remainingpartitions
|
|
2796
3041
|
@RemainingTopics = remainingtopics
|
|
3042
|
+
@DynamicDiskConfig = dynamicdiskconfig
|
|
2797
3043
|
end
|
|
2798
3044
|
|
|
2799
3045
|
def deserialize(params)
|
|
@@ -2851,6 +3097,10 @@ module TencentCloud
|
|
|
2851
3097
|
@DeleteRouteTimestamp = params['DeleteRouteTimestamp']
|
|
2852
3098
|
@RemainingPartitions = params['RemainingPartitions']
|
|
2853
3099
|
@RemainingTopics = params['RemainingTopics']
|
|
3100
|
+
unless params['DynamicDiskConfig'].nil?
|
|
3101
|
+
@DynamicDiskConfig = DynamicDiskConfig.new
|
|
3102
|
+
@DynamicDiskConfig.deserialize(params['DynamicDiskConfig'])
|
|
3103
|
+
end
|
|
2854
3104
|
end
|
|
2855
3105
|
end
|
|
2856
3106
|
|
|
@@ -3211,10 +3461,12 @@ module TencentCloud
|
|
|
3211
3461
|
# @type RebalanceTime: Integer
|
|
3212
3462
|
# @param PublicNetwork: 时间戳
|
|
3213
3463
|
# @type PublicNetwork: Integer
|
|
3464
|
+
# @param DynamicDiskConfig: 动态硬盘扩容策略配置
|
|
3465
|
+
# @type DynamicDiskConfig: :class:`Tencentcloud::Ckafka.v20190819.models.DynamicDiskConfig`
|
|
3214
3466
|
|
|
3215
|
-
attr_accessor :InstanceId, :MsgRetentionTime, :InstanceName, :Config, :DynamicRetentionConfig, :RebalanceTime, :PublicNetwork
|
|
3467
|
+
attr_accessor :InstanceId, :MsgRetentionTime, :InstanceName, :Config, :DynamicRetentionConfig, :RebalanceTime, :PublicNetwork, :DynamicDiskConfig
|
|
3216
3468
|
|
|
3217
|
-
def initialize(instanceid=nil, msgretentiontime=nil, instancename=nil, config=nil, dynamicretentionconfig=nil, rebalancetime=nil, publicnetwork=nil)
|
|
3469
|
+
def initialize(instanceid=nil, msgretentiontime=nil, instancename=nil, config=nil, dynamicretentionconfig=nil, rebalancetime=nil, publicnetwork=nil, dynamicdiskconfig=nil)
|
|
3218
3470
|
@InstanceId = instanceid
|
|
3219
3471
|
@MsgRetentionTime = msgretentiontime
|
|
3220
3472
|
@InstanceName = instancename
|
|
@@ -3222,6 +3474,7 @@ module TencentCloud
|
|
|
3222
3474
|
@DynamicRetentionConfig = dynamicretentionconfig
|
|
3223
3475
|
@RebalanceTime = rebalancetime
|
|
3224
3476
|
@PublicNetwork = publicnetwork
|
|
3477
|
+
@DynamicDiskConfig = dynamicdiskconfig
|
|
3225
3478
|
end
|
|
3226
3479
|
|
|
3227
3480
|
def deserialize(params)
|
|
@@ -3238,6 +3491,10 @@ module TencentCloud
|
|
|
3238
3491
|
end
|
|
3239
3492
|
@RebalanceTime = params['RebalanceTime']
|
|
3240
3493
|
@PublicNetwork = params['PublicNetwork']
|
|
3494
|
+
unless params['DynamicDiskConfig'].nil?
|
|
3495
|
+
@DynamicDiskConfig = DynamicDiskConfig.new
|
|
3496
|
+
@DynamicDiskConfig.deserialize(params['DynamicDiskConfig'])
|
|
3497
|
+
end
|
|
3241
3498
|
end
|
|
3242
3499
|
end
|
|
3243
3500
|
|
|
@@ -3345,10 +3602,12 @@ module TencentCloud
|
|
|
3345
3602
|
# @type AclRuleName: String
|
|
3346
3603
|
# @param RetentionBytes: 可选, 保留文件大小. 默认为-1,单位bytes, 当前最小值为1048576B
|
|
3347
3604
|
# @type RetentionBytes: Integer
|
|
3605
|
+
# @param Tags: 标签列表
|
|
3606
|
+
# @type Tags: Array
|
|
3348
3607
|
|
|
3349
|
-
attr_accessor :InstanceId, :TopicName, :Note, :EnableWhiteList, :MinInsyncReplicas, :UncleanLeaderElectionEnable, :RetentionMs, :SegmentMs, :MaxMessageBytes, :CleanUpPolicy, :IpWhiteList, :EnableAclRule, :AclRuleName, :RetentionBytes
|
|
3608
|
+
attr_accessor :InstanceId, :TopicName, :Note, :EnableWhiteList, :MinInsyncReplicas, :UncleanLeaderElectionEnable, :RetentionMs, :SegmentMs, :MaxMessageBytes, :CleanUpPolicy, :IpWhiteList, :EnableAclRule, :AclRuleName, :RetentionBytes, :Tags
|
|
3350
3609
|
|
|
3351
|
-
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)
|
|
3610
|
+
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, tags=nil)
|
|
3352
3611
|
@InstanceId = instanceid
|
|
3353
3612
|
@TopicName = topicname
|
|
3354
3613
|
@Note = note
|
|
@@ -3363,6 +3622,7 @@ module TencentCloud
|
|
|
3363
3622
|
@EnableAclRule = enableaclrule
|
|
3364
3623
|
@AclRuleName = aclrulename
|
|
3365
3624
|
@RetentionBytes = retentionbytes
|
|
3625
|
+
@Tags = tags
|
|
3366
3626
|
end
|
|
3367
3627
|
|
|
3368
3628
|
def deserialize(params)
|
|
@@ -3380,6 +3640,14 @@ module TencentCloud
|
|
|
3380
3640
|
@EnableAclRule = params['EnableAclRule']
|
|
3381
3641
|
@AclRuleName = params['AclRuleName']
|
|
3382
3642
|
@RetentionBytes = params['RetentionBytes']
|
|
3643
|
+
unless params['Tags'].nil?
|
|
3644
|
+
@Tags = []
|
|
3645
|
+
params['Tags'].each do |i|
|
|
3646
|
+
tag_tmp = Tag.new
|
|
3647
|
+
tag_tmp.deserialize(i)
|
|
3648
|
+
@Tags << tag_tmp
|
|
3649
|
+
end
|
|
3650
|
+
end
|
|
3383
3651
|
end
|
|
3384
3652
|
end
|
|
3385
3653
|
|
|
@@ -3461,6 +3729,26 @@ module TencentCloud
|
|
|
3461
3729
|
end
|
|
3462
3730
|
end
|
|
3463
3731
|
|
|
3732
|
+
# partition信息
|
|
3733
|
+
class Partitions < TencentCloud::Common::AbstractModel
|
|
3734
|
+
# @param Partition: 分区
|
|
3735
|
+
# @type Partition: Integer
|
|
3736
|
+
# @param Offset: partition 消费位移
|
|
3737
|
+
# @type Offset: Integer
|
|
3738
|
+
|
|
3739
|
+
attr_accessor :Partition, :Offset
|
|
3740
|
+
|
|
3741
|
+
def initialize(partition=nil, offset=nil)
|
|
3742
|
+
@Partition = partition
|
|
3743
|
+
@Offset = offset
|
|
3744
|
+
end
|
|
3745
|
+
|
|
3746
|
+
def deserialize(params)
|
|
3747
|
+
@Partition = params['Partition']
|
|
3748
|
+
@Offset = params['Offset']
|
|
3749
|
+
end
|
|
3750
|
+
end
|
|
3751
|
+
|
|
3464
3752
|
# 消息价格实体
|
|
3465
3753
|
class Price < TencentCloud::Common::AbstractModel
|
|
3466
3754
|
# @param RealTotalCost: 折扣价
|
|
@@ -4257,10 +4545,16 @@ module TencentCloud
|
|
|
4257
4545
|
# @param Physical: 购买物理独占版配置
|
|
4258
4546
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
4259
4547
|
# @type Physical: String
|
|
4548
|
+
# @param PublicNetwork: 公网带宽
|
|
4549
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
4550
|
+
# @type PublicNetwork: String
|
|
4551
|
+
# @param PublicNetworkLimit: 公网带宽配置
|
|
4552
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
4553
|
+
# @type PublicNetworkLimit: String
|
|
4260
4554
|
|
|
4261
|
-
attr_accessor :ZoneList, :MaxBuyInstanceNum, :MaxBandwidth, :UnitPrice, :MessagePrice, :ClusterInfo, :Standard, :StandardS2, :Profession, :Physical
|
|
4555
|
+
attr_accessor :ZoneList, :MaxBuyInstanceNum, :MaxBandwidth, :UnitPrice, :MessagePrice, :ClusterInfo, :Standard, :StandardS2, :Profession, :Physical, :PublicNetwork, :PublicNetworkLimit
|
|
4262
4556
|
|
|
4263
|
-
def initialize(zonelist=nil, maxbuyinstancenum=nil, maxbandwidth=nil, unitprice=nil, messageprice=nil, clusterinfo=nil, standard=nil, standards2=nil, profession=nil, physical=nil)
|
|
4557
|
+
def initialize(zonelist=nil, maxbuyinstancenum=nil, maxbandwidth=nil, unitprice=nil, messageprice=nil, clusterinfo=nil, standard=nil, standards2=nil, profession=nil, physical=nil, publicnetwork=nil, publicnetworklimit=nil)
|
|
4264
4558
|
@ZoneList = zonelist
|
|
4265
4559
|
@MaxBuyInstanceNum = maxbuyinstancenum
|
|
4266
4560
|
@MaxBandwidth = maxbandwidth
|
|
@@ -4271,6 +4565,8 @@ module TencentCloud
|
|
|
4271
4565
|
@StandardS2 = standards2
|
|
4272
4566
|
@Profession = profession
|
|
4273
4567
|
@Physical = physical
|
|
4568
|
+
@PublicNetwork = publicnetwork
|
|
4569
|
+
@PublicNetworkLimit = publicnetworklimit
|
|
4274
4570
|
end
|
|
4275
4571
|
|
|
4276
4572
|
def deserialize(params)
|
|
@@ -4304,6 +4600,8 @@ module TencentCloud
|
|
|
4304
4600
|
@StandardS2 = params['StandardS2']
|
|
4305
4601
|
@Profession = params['Profession']
|
|
4306
4602
|
@Physical = params['Physical']
|
|
4603
|
+
@PublicNetwork = params['PublicNetwork']
|
|
4604
|
+
@PublicNetworkLimit = params['PublicNetworkLimit']
|
|
4307
4605
|
end
|
|
4308
4606
|
end
|
|
4309
4607
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-ckafka
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.229
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-12-
|
|
11
|
+
date: 2021-12-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|