tencentcloud-sdk-ckafka 1.0.226 → 1.0.227

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb3c9019509c937b0b8c608d694a27a2931bb893
4
- data.tar.gz: 2400cc576f195c47cb71c2057fef02608504dd60
3
+ metadata.gz: 9b760e46e38a49186ea333be1b47702fe96ff418
4
+ data.tar.gz: 4dd922202a8119e14a164f0c0f5e6760bb0abb5e
5
5
  SHA512:
6
- metadata.gz: d0b340568d735df01284719c041aa69e39126b75a90ce7b9a2288d95914e9701b5bb53ffbb03bf064f4dc12f30bd08c214a860b9f30202a23c76f7898c8b936b
7
- data.tar.gz: 05d5eb24b5a9a3c2d8fb96c7558a83a4a7e4314074789abb99a39074f6e5ab27a6f5412dcb7eec2a610c8291719620f4c90f622316d539804f11c75aa4f7898b
6
+ metadata.gz: 066b1b8e6cfcfd143b06f6d275d4205212f98f9a0597306d7a700d65f301f51bac4ac8263f27d9174d970f3e3e590f5d704e5e937798084ab2e49e28856f9f20
7
+ data.tar.gz: f579bea57d58cbdd251788a0c2d29644cce7972dd54a14410d57839d41ce791f5a44541168fe0f4d6c1a67aec696256d464f3b41c35dc0db1bf122dbbc277e8e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.226
1
+ 1.0.227
@@ -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.
@@ -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
@@ -3461,6 +3660,26 @@ module TencentCloud
3461
3660
  end
3462
3661
  end
3463
3662
 
3663
+ # partition信息
3664
+ class Partitions < TencentCloud::Common::AbstractModel
3665
+ # @param Partition: 分区
3666
+ # @type Partition: Integer
3667
+ # @param Offset: partition 消费位移
3668
+ # @type Offset: Integer
3669
+
3670
+ attr_accessor :Partition, :Offset
3671
+
3672
+ def initialize(partition=nil, offset=nil)
3673
+ @Partition = partition
3674
+ @Offset = offset
3675
+ end
3676
+
3677
+ def deserialize(params)
3678
+ @Partition = params['Partition']
3679
+ @Offset = params['Offset']
3680
+ end
3681
+ end
3682
+
3464
3683
  # 消息价格实体
3465
3684
  class Price < TencentCloud::Common::AbstractModel
3466
3685
  # @param RealTotalCost: 折扣价
@@ -4257,10 +4476,16 @@ module TencentCloud
4257
4476
  # @param Physical: 购买物理独占版配置
4258
4477
  # 注意:此字段可能返回 null,表示取不到有效值。
4259
4478
  # @type Physical: String
4479
+ # @param PublicNetwork: 公网带宽
4480
+ # 注意:此字段可能返回 null,表示取不到有效值。
4481
+ # @type PublicNetwork: String
4482
+ # @param PublicNetworkLimit: 公网带宽配置
4483
+ # 注意:此字段可能返回 null,表示取不到有效值。
4484
+ # @type PublicNetworkLimit: String
4260
4485
 
4261
- attr_accessor :ZoneList, :MaxBuyInstanceNum, :MaxBandwidth, :UnitPrice, :MessagePrice, :ClusterInfo, :Standard, :StandardS2, :Profession, :Physical
4486
+ attr_accessor :ZoneList, :MaxBuyInstanceNum, :MaxBandwidth, :UnitPrice, :MessagePrice, :ClusterInfo, :Standard, :StandardS2, :Profession, :Physical, :PublicNetwork, :PublicNetworkLimit
4262
4487
 
4263
- def initialize(zonelist=nil, maxbuyinstancenum=nil, maxbandwidth=nil, unitprice=nil, messageprice=nil, clusterinfo=nil, standard=nil, standards2=nil, profession=nil, physical=nil)
4488
+ 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
4489
  @ZoneList = zonelist
4265
4490
  @MaxBuyInstanceNum = maxbuyinstancenum
4266
4491
  @MaxBandwidth = maxbandwidth
@@ -4271,6 +4496,8 @@ module TencentCloud
4271
4496
  @StandardS2 = standards2
4272
4497
  @Profession = profession
4273
4498
  @Physical = physical
4499
+ @PublicNetwork = publicnetwork
4500
+ @PublicNetworkLimit = publicnetworklimit
4274
4501
  end
4275
4502
 
4276
4503
  def deserialize(params)
@@ -4304,6 +4531,8 @@ module TencentCloud
4304
4531
  @StandardS2 = params['StandardS2']
4305
4532
  @Profession = params['Profession']
4306
4533
  @Physical = params['Physical']
4534
+ @PublicNetwork = params['PublicNetwork']
4535
+ @PublicNetworkLimit = params['PublicNetworkLimit']
4307
4536
  end
4308
4537
  end
4309
4538
 
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.226
4
+ version: 1.0.227
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-17 00:00:00.000000000 Z
11
+ date: 2021-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common