Class: TencentCloud::Tdmq::V20200217::CreateCmqTopicRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tdmq::V20200217::CreateCmqTopicRequest
- Defined in:
- lib/v20200217/models.rb
Overview
CreateCmqTopic请求参数结构体
Instance Attribute Summary collapse
- #FilterType ⇒ Object
- #MaxMsgSize ⇒ Object
- #MsgRetentionSeconds ⇒ Object
- #Tags ⇒ Object
- #TopicName ⇒ Object
- #Trace ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(topicname = nil, maxmsgsize = nil, filtertype = nil, msgretentionseconds = nil, trace = nil, tags = nil) ⇒ CreateCmqTopicRequest
constructor
A new instance of CreateCmqTopicRequest.
Constructor Details
#initialize(topicname = nil, maxmsgsize = nil, filtertype = nil, msgretentionseconds = nil, trace = nil, tags = nil) ⇒ CreateCmqTopicRequest
Returns a new instance of CreateCmqTopicRequest.
1365 1366 1367 1368 1369 1370 1371 1372 |
# File 'lib/v20200217/models.rb', line 1365 def initialize(topicname=nil, maxmsgsize=nil, filtertype=nil, msgretentionseconds=nil, trace=nil, =nil) @TopicName = topicname @MaxMsgSize = maxmsgsize @FilterType = filtertype @MsgRetentionSeconds = msgretentionseconds @Trace = trace @Tags = end |
Instance Attribute Details
#FilterType ⇒ Object
1363 1364 1365 |
# File 'lib/v20200217/models.rb', line 1363 def FilterType @FilterType end |
#MaxMsgSize ⇒ Object
1363 1364 1365 |
# File 'lib/v20200217/models.rb', line 1363 def MaxMsgSize @MaxMsgSize end |
#MsgRetentionSeconds ⇒ Object
1363 1364 1365 |
# File 'lib/v20200217/models.rb', line 1363 def MsgRetentionSeconds @MsgRetentionSeconds end |
#Tags ⇒ Object
1363 1364 1365 |
# File 'lib/v20200217/models.rb', line 1363 def Tags @Tags end |
#TopicName ⇒ Object
1363 1364 1365 |
# File 'lib/v20200217/models.rb', line 1363 def TopicName @TopicName end |
#Trace ⇒ Object
1363 1364 1365 |
# File 'lib/v20200217/models.rb', line 1363 def Trace @Trace end |
Instance Method Details
#deserialize(params) ⇒ Object
1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 |
# File 'lib/v20200217/models.rb', line 1374 def deserialize(params) @TopicName = params['TopicName'] @MaxMsgSize = params['MaxMsgSize'] @FilterType = params['FilterType'] @MsgRetentionSeconds = params['MsgRetentionSeconds'] @Trace = params['Trace'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |