Class: TencentCloud::Cls::V20201016::CreateNoticeContentRequest
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cls::V20201016::CreateNoticeContentRequest
- Defined in:
- lib/v20201016/models.rb
Overview
CreateNoticeContent请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, type = nil, noticecontents = nil) ⇒ CreateNoticeContentRequest
constructor
A new instance of CreateNoticeContentRequest.
Constructor Details
#initialize(name = nil, type = nil, noticecontents = nil) ⇒ CreateNoticeContentRequest
Returns a new instance of CreateNoticeContentRequest.
4388 4389 4390 4391 4392 |
# File 'lib/v20201016/models.rb', line 4388 def initialize(name=nil, type=nil, noticecontents=nil) @Name = name @Type = type @NoticeContents = noticecontents end |
Instance Attribute Details
#Name ⇒ Object
4386 4387 4388 |
# File 'lib/v20201016/models.rb', line 4386 def Name @Name end |
#NoticeContents ⇒ Object
4386 4387 4388 |
# File 'lib/v20201016/models.rb', line 4386 def NoticeContents @NoticeContents end |
#Type ⇒ Object
4386 4387 4388 |
# File 'lib/v20201016/models.rb', line 4386 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 |
# File 'lib/v20201016/models.rb', line 4394 def deserialize(params) @Name = params['Name'] @Type = params['Type'] unless params['NoticeContents'].nil? @NoticeContents = [] params['NoticeContents'].each do |i| noticecontent_tmp = NoticeContent.new noticecontent_tmp.deserialize(i) @NoticeContents << noticecontent_tmp end end end |