Class: TencentCloud::Batch::V20170312::Notification
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Batch::V20170312::Notification
- Defined in:
- lib/v20170312/models.rb
Overview
通知信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(topicname = nil, eventconfigs = nil) ⇒ Notification
constructor
A new instance of Notification.
Constructor Details
#initialize(topicname = nil, eventconfigs = nil) ⇒ Notification
Returns a new instance of Notification.
3255 3256 3257 3258 |
# File 'lib/v20170312/models.rb', line 3255 def initialize(topicname=nil, eventconfigs=nil) @TopicName = topicname @EventConfigs = eventconfigs end |
Instance Attribute Details
#EventConfigs ⇒ Object
3253 3254 3255 |
# File 'lib/v20170312/models.rb', line 3253 def EventConfigs @EventConfigs end |
#TopicName ⇒ Object
3253 3254 3255 |
# File 'lib/v20170312/models.rb', line 3253 def TopicName @TopicName end |
Instance Method Details
#deserialize(params) ⇒ Object
3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 |
# File 'lib/v20170312/models.rb', line 3260 def deserialize(params) @TopicName = params['TopicName'] unless params['EventConfigs'].nil? @EventConfigs = [] params['EventConfigs'].each do |i| eventconfig_tmp = EventConfig.new eventconfig_tmp.deserialize(i) @EventConfigs << eventconfig_tmp end end end |