tencentcloud-sdk-tdmq 1.0.343 → 1.0.346

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: 8c19caaf136080dfc12c625e394c064406f49864
4
- data.tar.gz: ebd3906625155d36f122f647ab78736bef4f412a
3
+ metadata.gz: e0a643334139f96dd91e2a7485819b0223823a42
4
+ data.tar.gz: 5e4fb920aef3c589478dca7483991b69d86237ab
5
5
  SHA512:
6
- metadata.gz: 0c96b592c717689904135d5ca5a32e92fb05d16f6737acd4dd32df80fd0914e8247ca9b319a8e337d6ed4768f26992f612201b565ac8d4d514f2b9762187e447
7
- data.tar.gz: e5519a8e6342e74197e68378a67bdd56309af0af1b34675ff5bc0fa06fb5acdf6cb2e08e43650378c6077f6bb451611cb762f3eed189a89094cd0044438415ef
6
+ metadata.gz: 82d9cbb290f3e87474c294600d09eb09cb8e5a8a011754f4137fa03fff63d81fa802536809d573dcd286270dbb02b4476b2b89bc5fa84e7ec3409821d641fd42
7
+ data.tar.gz: aa87b6814005984bc1cb6c1dc329271b894de9a812a82ce5e7cb5101ba430ee5b314b85b7f05eb83b9a8c89d797ac3c272520cdfba415edf0a15f0d9f19109ab
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.343
1
+ 1.0.346
@@ -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
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.343
4
+ version: 1.0.346
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-27 00:00:00.000000000 Z
11
+ date: 2022-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common