Class: TencentCloud::Batch::V20170312::Notification

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

Overview

通知信息

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#EventConfigsObject

Parameters:

  • TopicName:

    CMQ主题名字,要求主题名有效且关联订阅

  • EventConfigs:

    事件配置



3253
3254
3255
# File 'lib/v20170312/models.rb', line 3253

def EventConfigs
  @EventConfigs
end

#TopicNameObject

Parameters:

  • TopicName:

    CMQ主题名字,要求主题名有效且关联订阅

  • EventConfigs:

    事件配置



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