Class: TencentCloud::Monitor::V20180724::CreateAlarmNoticeRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Monitor::V20180724::CreateAlarmNoticeRequest
- Defined in:
- lib/v20180724/models.rb
Overview
CreateAlarmNotice请求参数结构体
Instance Attribute Summary collapse
- #CLSNotices ⇒ Object
- #IsLoginFree ⇒ Object
- #Module ⇒ Object
- #Name ⇒ Object
- #NoticeLanguage ⇒ Object
- #NoticeType ⇒ Object
- #Tags ⇒ Object
- #URLNotices ⇒ Object
- #UserNotices ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(_module = nil, name = nil, noticetype = nil, noticelanguage = nil, usernotices = nil, urlnotices = nil, clsnotices = nil, tags = nil, isloginfree = nil) ⇒ CreateAlarmNoticeRequest
constructor
A new instance of CreateAlarmNoticeRequest.
Constructor Details
#initialize(_module = nil, name = nil, noticetype = nil, noticelanguage = nil, usernotices = nil, urlnotices = nil, clsnotices = nil, tags = nil, isloginfree = nil) ⇒ CreateAlarmNoticeRequest
Returns a new instance of CreateAlarmNoticeRequest.
1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 |
# File 'lib/v20180724/models.rb', line 1568 def initialize(_module=nil, name=nil, noticetype=nil, noticelanguage=nil, usernotices=nil, urlnotices=nil, clsnotices=nil, =nil, isloginfree=nil) @Module = _module @Name = name @NoticeType = noticetype @NoticeLanguage = noticelanguage @UserNotices = usernotices @URLNotices = urlnotices @CLSNotices = clsnotices @Tags = @IsLoginFree = isloginfree end |
Instance Attribute Details
#CLSNotices ⇒ Object
1566 1567 1568 |
# File 'lib/v20180724/models.rb', line 1566 def CLSNotices @CLSNotices end |
#IsLoginFree ⇒ Object
1566 1567 1568 |
# File 'lib/v20180724/models.rb', line 1566 def IsLoginFree @IsLoginFree end |
#Module ⇒ Object
1566 1567 1568 |
# File 'lib/v20180724/models.rb', line 1566 def Module @Module end |
#Name ⇒ Object
1566 1567 1568 |
# File 'lib/v20180724/models.rb', line 1566 def Name @Name end |
#NoticeLanguage ⇒ Object
1566 1567 1568 |
# File 'lib/v20180724/models.rb', line 1566 def NoticeLanguage @NoticeLanguage end |
#NoticeType ⇒ Object
1566 1567 1568 |
# File 'lib/v20180724/models.rb', line 1566 def NoticeType @NoticeType end |
#Tags ⇒ Object
1566 1567 1568 |
# File 'lib/v20180724/models.rb', line 1566 def Tags @Tags end |
#URLNotices ⇒ Object
1566 1567 1568 |
# File 'lib/v20180724/models.rb', line 1566 def URLNotices @URLNotices end |
#UserNotices ⇒ Object
1566 1567 1568 |
# File 'lib/v20180724/models.rb', line 1566 def UserNotices @UserNotices end |
Instance Method Details
#deserialize(params) ⇒ Object
1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 |
# File 'lib/v20180724/models.rb', line 1580 def deserialize(params) @Module = params['Module'] @Name = params['Name'] @NoticeType = params['NoticeType'] @NoticeLanguage = params['NoticeLanguage'] unless params['UserNotices'].nil? @UserNotices = [] params['UserNotices'].each do |i| usernotice_tmp = UserNotice.new usernotice_tmp.deserialize(i) @UserNotices << usernotice_tmp end end unless params['URLNotices'].nil? @URLNotices = [] params['URLNotices'].each do |i| urlnotice_tmp = URLNotice.new urlnotice_tmp.deserialize(i) @URLNotices << urlnotice_tmp end end unless params['CLSNotices'].nil? @CLSNotices = [] params['CLSNotices'].each do |i| clsnotice_tmp = CLSNotice.new clsnotice_tmp.deserialize(i) @CLSNotices << clsnotice_tmp end end unless params['Tags'].nil? @Tags = [] params['Tags'].each do |i| tag_tmp = Tag.new tag_tmp.deserialize(i) @Tags << tag_tmp end end @IsLoginFree = params['IsLoginFree'] end |