Class: TencentCloud::Cls::V20201016::ModifyNoticeContentRequest

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

Overview

ModifyNoticeContent请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(noticecontentid = nil, name = nil, type = nil, noticecontents = nil) ⇒ ModifyNoticeContentRequest

Returns a new instance of ModifyNoticeContentRequest.



14994
14995
14996
14997
14998
14999
# File 'lib/v20201016/models.rb', line 14994

def initialize(noticecontentid=nil, name=nil, type=nil, noticecontents=nil)
  @NoticeContentId = noticecontentid
  @Name = name
  @Type = type
  @NoticeContents = noticecontents
end

Instance Attribute Details

#Name ⇒ Object

0:中文 1:英文

Parameters:

  • NoticeContents: —

    通知内容模板详细信息。



14992
14993
14994
# File 'lib/v20201016/models.rb', line 14992

def Name
  @Name
end

#NoticeContentId ⇒ Object

0:中文 1:英文

Parameters:

  • NoticeContents: —

    通知内容模板详细信息。



14992
14993
14994
# File 'lib/v20201016/models.rb', line 14992

def NoticeContentId
  @NoticeContentId
end

#NoticeContents ⇒ Object

0:中文 1:英文

Parameters:

  • NoticeContents: —

    通知内容模板详细信息。



14992
14993
14994
# File 'lib/v20201016/models.rb', line 14992

def NoticeContents
  @NoticeContents
end

#Type ⇒ Object

0:中文 1:英文

Parameters:

  • NoticeContents: —

    通知内容模板详细信息。



14992
14993
14994
# File 'lib/v20201016/models.rb', line 14992

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
# File 'lib/v20201016/models.rb', line 15001

def deserialize(params)
  @NoticeContentId = params['NoticeContentId']
  @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