Class: TencentCloud::Ckafka::V20190819::CreateDatahubTopicRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Ckafka::V20190819::CreateDatahubTopicRequest
- Defined in:
- lib/v20190819/models.rb
Overview
CreateDatahubTopic请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, partitionnum = nil, retentionms = nil, note = nil, tags = nil) ⇒ CreateDatahubTopicRequest
constructor
A new instance of CreateDatahubTopicRequest.
Constructor Details
#initialize(name = nil, partitionnum = nil, retentionms = nil, note = nil, tags = nil) ⇒ CreateDatahubTopicRequest
Returns a new instance of CreateDatahubTopicRequest.
1876 1877 1878 1879 1880 1881 1882 |
# File 'lib/v20190819/models.rb', line 1876 def initialize(name=nil, partitionnum=nil, retentionms=nil, note=nil, =nil) @Name = name @PartitionNum = partitionnum @RetentionMs = retentionms @Note = note @Tags = end |
Instance Attribute Details
#Name ⇒ Object
1874 1875 1876 |
# File 'lib/v20190819/models.rb', line 1874 def Name @Name end |
#Note ⇒ Object
1874 1875 1876 |
# File 'lib/v20190819/models.rb', line 1874 def Note @Note end |
#PartitionNum ⇒ Object
1874 1875 1876 |
# File 'lib/v20190819/models.rb', line 1874 def PartitionNum @PartitionNum end |
#RetentionMs ⇒ Object
1874 1875 1876 |
# File 'lib/v20190819/models.rb', line 1874 def RetentionMs @RetentionMs end |
#Tags ⇒ Object
1874 1875 1876 |
# File 'lib/v20190819/models.rb', line 1874 def Tags @Tags end |
Instance Method Details
#deserialize(params) ⇒ Object
1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 |
# File 'lib/v20190819/models.rb', line 1884 def deserialize(params) @Name = params['Name'] @PartitionNum = params['PartitionNum'] @RetentionMs = params['RetentionMs'] @Note = params['Note'] unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end end |