Class: TencentCloud::Cls::V20201016::CreateNoticeContentRequest

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20201016/models.rb

Overview

CreateNoticeContent请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Parameters:

  • Name: —

    模板名称。最大支持255个字节

  • Type: —

    模板内容语言。0:中文1:英文

  • NoticeContents: —

    模板详细配置。



4386
4387
4388
# File 'lib/v20201016/models.rb', line 4386

def Name
  @Name
end

#NoticeContents ⇒ Object

Parameters:

  • Name: —

    模板名称。最大支持255个字节

  • Type: —

    模板内容语言。0:中文1:英文

  • NoticeContents: —

    模板详细配置。



4386
4387
4388
# File 'lib/v20201016/models.rb', line 4386

def NoticeContents
  @NoticeContents
end

#Type ⇒ Object

Parameters:

  • Name: —

    模板名称。最大支持255个字节

  • Type: —

    模板内容语言。0:中文1:英文

  • NoticeContents: —

    模板详细配置。



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