tencentcloud-sdk-tdmq 1.0.342 → 1.0.345

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: 5c3c38778e055b4fae34d711de59391c4686e78d
4
- data.tar.gz: b4cda181cacd8cd9aa88dbf9e43ebb0b8db4a6aa
3
+ metadata.gz: a7e94dacaff7cd81e34de71b36198f027b6d0dde
4
+ data.tar.gz: 4831d4e115f65d447987d847ec279a33efc420aa
5
5
  SHA512:
6
- metadata.gz: 6d413152291b9311dec0c7e9dc89fb3c7d672d08b67134177a78a524906d25deb821520965880c41d0d59f5c7fe12abfd079bb25c195d57fbb8f4f4eb97b72ca
7
- data.tar.gz: 7fbd4c0dd46c764f953da6fc02dd65721f206ccf62a19e0f1990e02e19ad863112a7fe931c02d508dae19006b44c787545a5d008d0f008620efc99839d5132c2
6
+ metadata.gz: f101a92551e3fe3b7d0ab4eb2201b340832950b4916f0959ed283760bbdc1d831c838c402403104353557aa940db5de18485df4ccfacb5c8316ed8eb06a391c9
7
+ data.tar.gz: 71c42536602b35ac86bbf96cb19b52360284e9b2a8fd27afedea49ef6c3bce9d4270391c581ed8a5bd3f64cc2ecc33b90789e2eaea2f0cf74799231dadf83dc3
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.342
1
+ 1.0.345
@@ -2165,7 +2165,26 @@ module TencentCloud
2165
2165
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2166
2166
  end
2167
2167
 
2168
- # 接收发送到指定 topic 中的消息
2168
+ # 接收发送到指定 topic 中的消息,当 Topic 中没有消息但还去尝试调用该接口时,会抛出 ReceiveTimeout 的异常。
2169
+
2170
+ # 如何使用 BatchReceivePolicy:
2171
+
2172
+ # BatchReceive 接口提供了如下三个参数:
2173
+
2174
+ # ● MaxNumMessages: 即每次使用 BatchReceive 的时候,最多一次Receive接口返回多少条消息。
2175
+ # ● MaxNumBytes:即每次使用 BatchReceive 的时候,最多一次Receive接口返回多大内容的消息,单位是:bytes。
2176
+ # ● Timeout:即每次使用 BatchReceive 的时候,最多一次 Receive 接口的超时时间是多久,单位是:MS。
2177
+
2178
+ # 默认如果上述三个参数都不指定,即关闭 BatchReceive 的特性。如果三个参数中的任意一个参数指定的数值大于 0,即开启 BatchReceive。BatchReceive 的结束条件为到达上述三个参数中任意一个指定的阈值。
2179
+
2180
+ # 注意:MaxNumMessages 和 MaxNumBytes 每一次接收的最大消息同时受限于 ReceiveQueueSize 的大小,如果 ReceiveQueueSize 的大小设置为 5,MaxNumMessages 设置为10,那么一次 BatchReceive 接收的最多的消息是 5条,而不是10条。
2181
+
2182
+
2183
+
2184
+ # BatchReceivePolicy 的接口会一次性返回多条消息:
2185
+
2186
+ # 1. 多条消息的内容之间使用特殊字符 '###' 来进行分割,业务侧接收到消息之后,可以利用不同语言提供的 Split 工具分割不同的消息。
2187
+ # 2. 多条消息的 MessageID 之间使用特殊字符 '###' 来进行分割,业务侧接收到消息之后,可以利用不同语言提供的 Split 工具分割不同的消息。(用于在调用 AcknowledgeMessage 接口中填入所需要的 MessageID 字段信息)
2169
2188
 
2170
2189
  # @param request: Request instance for ReceiveMessage.
2171
2190
  # @type request: :class:`Tencentcloud::tdmq::V20200217::ReceiveMessageRequest`
@@ -1747,7 +1747,7 @@ module TencentCloud
1747
1747
  class CreateEnvironmentRequest < TencentCloud::Common::AbstractModel
1748
1748
  # @param EnvironmentId: 环境(命名空间)名称,不支持中字以及除了短线和下划线外的特殊字符且不超过16个字符。
1749
1749
  # @type EnvironmentId: String
1750
- # @param MsgTTL: 未消费消息过期时间,单位:秒,最小60,最大1296000,(15天)。
1750
+ # @param MsgTTL: 未消费消息过期时间,单位:秒,取值范围:60秒~1天。
1751
1751
  # @type MsgTTL: Integer
1752
1752
  # @param Remark: 说明,128个字符以内。
1753
1753
  # @type Remark: String
@@ -2170,11 +2170,12 @@ module TencentCloud
2170
2170
  # @type EnvironmentId: String
2171
2171
  # @param TopicName: 主题名,不支持中字以及除了短线和下划线外的特殊字符且不超过64个字符。
2172
2172
  # @type TopicName: String
2173
- # @param Partitions: 0:非分区topic,无分区;非0:具体分区topic的分区数,最大不允许超过128。
2173
+ # @param Partitions: 入参为1,即是创建非分区topic,无分区;入参大于1,表示分区topic的分区数,最大不允许超过128。
2174
2174
  # @type Partitions: Integer
2175
2175
  # @param Remark: 备注,128字符以内。
2176
2176
  # @type Remark: String
2177
- # @param TopicType: 0: 普通消息;
2177
+ # @param TopicType: 该入参将逐步弃用,可切换至PulsarTopicType参数
2178
+ # 0: 普通消息;
2178
2179
  # 1 :全局顺序消息;
2179
2180
  # 2 :局部顺序消息;
2180
2181
  # 3 :重试队列;
@@ -2218,7 +2219,7 @@ module TencentCloud
2218
2219
  # @type EnvironmentId: String
2219
2220
  # @param TopicName: 主题名。
2220
2221
  # @type TopicName: String
2221
- # @param Partitions: 0:非分区topic,无分区;非0:具体分区topic的分区数。
2222
+ # @param Partitions: 0或1:非分区topic,无分区;大于1:具体分区topic的分区数。(存量非分区主题返回0,增量非分区主题返回1)
2222
2223
  # @type Partitions: Integer
2223
2224
  # @param Remark: 备注,128字符以内。
2224
2225
  # 注意:此字段可能返回 null,表示取不到有效值。
@@ -2228,7 +2229,6 @@ module TencentCloud
2228
2229
  # 2 :局部顺序消息;
2229
2230
  # 3 :重试队列;
2230
2231
  # 4 :死信队列;
2231
- # 5 :事务消息。
2232
2232
  # 注意:此字段可能返回 null,表示取不到有效值。
2233
2233
  # @type TopicType: Integer
2234
2234
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -5026,12 +5026,10 @@ module TencentCloud
5026
5026
  # @param Limit: 返回数量,不填则默认为10,最大值为20。
5027
5027
  # @type Limit: Integer
5028
5028
  # @param TopicType: topic类型描述:
5029
- # 0:普通消息;
5030
- # 1:全局顺序消息;
5031
- # 2:局部顺序消息;
5032
- # 3:重试队列;
5033
- # 4:死信队列;
5034
- # 5:事务消息。
5029
+ # 0:非持久非分区主题类型;
5030
+ # 1:非持久分区主题类型;
5031
+ # 2:持久非分区主题类型;
5032
+ # 3:持久分区主题类型;
5035
5033
  # @type TopicType: Integer
5036
5034
  # @param ClusterId: Pulsar 集群的ID
5037
5035
  # @type ClusterId: String
@@ -5040,10 +5038,14 @@ module TencentCloud
5040
5038
  # 类型:String
5041
5039
  # 必选:否
5042
5040
  # @type Filters: Array
5041
+ # @param TopicCreator: 创建来源:
5042
+ # 1:用户创建
5043
+ # 2:系统创建
5044
+ # @type TopicCreator: Integer
5043
5045
 
5044
- attr_accessor :EnvironmentId, :TopicName, :Offset, :Limit, :TopicType, :ClusterId, :Filters
5046
+ attr_accessor :EnvironmentId, :TopicName, :Offset, :Limit, :TopicType, :ClusterId, :Filters, :TopicCreator
5045
5047
 
5046
- def initialize(environmentid=nil, topicname=nil, offset=nil, limit=nil, topictype=nil, clusterid=nil, filters=nil)
5048
+ def initialize(environmentid=nil, topicname=nil, offset=nil, limit=nil, topictype=nil, clusterid=nil, filters=nil, topiccreator=nil)
5047
5049
  @EnvironmentId = environmentid
5048
5050
  @TopicName = topicname
5049
5051
  @Offset = offset
@@ -5051,6 +5053,7 @@ module TencentCloud
5051
5053
  @TopicType = topictype
5052
5054
  @ClusterId = clusterid
5053
5055
  @Filters = filters
5056
+ @TopicCreator = topiccreator
5054
5057
  end
5055
5058
 
5056
5059
  def deserialize(params)
@@ -5068,6 +5071,7 @@ module TencentCloud
5068
5071
  @Filters << filter_tmp
5069
5072
  end
5070
5073
  end
5074
+ @TopicCreator = params['TopicCreator']
5071
5075
  end
5072
5076
  end
5073
5077
 
@@ -5764,7 +5768,7 @@ module TencentCloud
5764
5768
  class ModifyEnvironmentAttributesRequest < TencentCloud::Common::AbstractModel
5765
5769
  # @param EnvironmentId: 命名空间名称。
5766
5770
  # @type EnvironmentId: String
5767
- # @param MsgTTL: 未消费消息过期时间,单位:秒,最大1296000。
5771
+ # @param MsgTTL: 未消费消息过期时间,单位:秒,范围60秒~1天。
5768
5772
  # @type MsgTTL: Integer
5769
5773
  # @param Remark: 备注,字符串最长不超过128。
5770
5774
  # @type Remark: String
@@ -6357,14 +6361,23 @@ module TencentCloud
6357
6361
  # @type ReceiverQueueSize: Integer
6358
6362
  # @param SubInitialPosition: 默认值为:Latest。用作判定consumer初始接收消息的位置,可选参数为:Earliest, Latest
6359
6363
  # @type SubInitialPosition: String
6364
+ # @param MaxNumMessages: 用于设置BatchReceivePolicy,指在一次batch中最多接收多少条消息,默认是 0。即不开启BatchReceivePolicy
6365
+ # @type MaxNumMessages: Integer
6366
+ # @param MaxNumBytes: 用于设置BatchReceivePolicy,指在一次batch中最多接收的消息体有多大,单位是 bytes。默认是 0,即不开启BatchReceivePolicy
6367
+ # @type MaxNumBytes: Integer
6368
+ # @param Timeout: 用于设置BatchReceivePolicy,指在一次batch消息的接收z中最多等待的超时时间,单位是毫秒。默认是 0,即不开启BatchReceivePolicy
6369
+ # @type Timeout: Integer
6360
6370
 
6361
- attr_accessor :Topic, :SubscriptionName, :ReceiverQueueSize, :SubInitialPosition
6371
+ attr_accessor :Topic, :SubscriptionName, :ReceiverQueueSize, :SubInitialPosition, :MaxNumMessages, :MaxNumBytes, :Timeout
6362
6372
 
6363
- def initialize(topic=nil, subscriptionname=nil, receiverqueuesize=nil, subinitialposition=nil)
6373
+ def initialize(topic=nil, subscriptionname=nil, receiverqueuesize=nil, subinitialposition=nil, maxnummessages=nil, maxnumbytes=nil, timeout=nil)
6364
6374
  @Topic = topic
6365
6375
  @SubscriptionName = subscriptionname
6366
6376
  @ReceiverQueueSize = receiverqueuesize
6367
6377
  @SubInitialPosition = subinitialposition
6378
+ @MaxNumMessages = maxnummessages
6379
+ @MaxNumBytes = maxnumbytes
6380
+ @Timeout = timeout
6368
6381
  end
6369
6382
 
6370
6383
  def deserialize(params)
@@ -6372,6 +6385,9 @@ module TencentCloud
6372
6385
  @SubscriptionName = params['SubscriptionName']
6373
6386
  @ReceiverQueueSize = params['ReceiverQueueSize']
6374
6387
  @SubInitialPosition = params['SubInitialPosition']
6388
+ @MaxNumMessages = params['MaxNumMessages']
6389
+ @MaxNumBytes = params['MaxNumBytes']
6390
+ @Timeout = params['Timeout']
6375
6391
  end
6376
6392
  end
6377
6393
 
@@ -6389,17 +6405,25 @@ module TencentCloud
6389
6405
  # @param SubName: 返回订阅者的名字,用来创建 ack consumer时使用
6390
6406
  # 注意:此字段可能返回 null,表示取不到有效值。
6391
6407
  # @type SubName: String
6408
+ # @param MessageIDList: BatchReceivePolicy 一次性返回的多条消息的 MessageID,用 ‘###’ 来区分不同的 MessageID
6409
+ # 注意:此字段可能返回 null,表示取不到有效值。
6410
+ # @type MessageIDList: String
6411
+ # @param MessagesPayload: BatchReceivePolicy 一次性返回的多条消息的消息内容,用 ‘###’ 来区分不同的消息内容
6412
+ # 注意:此字段可能返回 null,表示取不到有效值。
6413
+ # @type MessagesPayload: String
6392
6414
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6393
6415
  # @type RequestId: String
6394
6416
 
6395
- attr_accessor :MessageID, :MessagePayload, :AckTopic, :ErrorMsg, :SubName, :RequestId
6417
+ attr_accessor :MessageID, :MessagePayload, :AckTopic, :ErrorMsg, :SubName, :MessageIDList, :MessagesPayload, :RequestId
6396
6418
 
6397
- def initialize(messageid=nil, messagepayload=nil, acktopic=nil, errormsg=nil, subname=nil, requestid=nil)
6419
+ def initialize(messageid=nil, messagepayload=nil, acktopic=nil, errormsg=nil, subname=nil, messageidlist=nil, messagespayload=nil, requestid=nil)
6398
6420
  @MessageID = messageid
6399
6421
  @MessagePayload = messagepayload
6400
6422
  @AckTopic = acktopic
6401
6423
  @ErrorMsg = errormsg
6402
6424
  @SubName = subname
6425
+ @MessageIDList = messageidlist
6426
+ @MessagesPayload = messagespayload
6403
6427
  @RequestId = requestid
6404
6428
  end
6405
6429
 
@@ -6409,6 +6433,8 @@ module TencentCloud
6409
6433
  @AckTopic = params['AckTopic']
6410
6434
  @ErrorMsg = params['ErrorMsg']
6411
6435
  @SubName = params['SubName']
6436
+ @MessageIDList = params['MessageIDList']
6437
+ @MessagesPayload = params['MessagesPayload']
6412
6438
  @RequestId = params['RequestId']
6413
6439
  end
6414
6440
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tdmq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.342
4
+ version: 1.0.345
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-26 00:00:00.000000000 Z
11
+ date: 2022-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common