Class: TencentCloud::Wedata::V20210820::RegisterEventListenerRequest

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

Overview

RegisterEventListener请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key = nil, eventname = nil, projectid = nil, type = nil, properties = nil) ⇒ RegisterEventListenerRequest

Returns a new instance of RegisterEventListenerRequest.



19823
19824
19825
19826
19827
19828
19829
# File 'lib/v20210820/models.rb', line 19823

def initialize(key=nil, eventname=nil, projectid=nil, type=nil, properties=nil)
  @Key = key
  @EventName = eventname
  @ProjectId = projectid
  @Type = type
  @Properties = properties
end

Instance Attribute Details

#EventNameObject

Parameters:

  • Key:

    关键字,如果是任务,则传任务Id

  • EventName:

    事件名称

  • ProjectId:

    项目id

  • Type:

    事件类型,默认 REST_API

  • Properties:

    配置信息,比如最长等待时间1天配置json:“maxWaitEventTime”:1,“maxWaitEventTimeUnit”:“DAYS”



19821
19822
19823
# File 'lib/v20210820/models.rb', line 19821

def EventName
  @EventName
end

#KeyObject

Parameters:

  • Key:

    关键字,如果是任务,则传任务Id

  • EventName:

    事件名称

  • ProjectId:

    项目id

  • Type:

    事件类型,默认 REST_API

  • Properties:

    配置信息,比如最长等待时间1天配置json:“maxWaitEventTime”:1,“maxWaitEventTimeUnit”:“DAYS”



19821
19822
19823
# File 'lib/v20210820/models.rb', line 19821

def Key
  @Key
end

#ProjectIdObject

Parameters:

  • Key:

    关键字,如果是任务,则传任务Id

  • EventName:

    事件名称

  • ProjectId:

    项目id

  • Type:

    事件类型,默认 REST_API

  • Properties:

    配置信息,比如最长等待时间1天配置json:“maxWaitEventTime”:1,“maxWaitEventTimeUnit”:“DAYS”



19821
19822
19823
# File 'lib/v20210820/models.rb', line 19821

def ProjectId
  @ProjectId
end

#PropertiesObject

Parameters:

  • Key:

    关键字,如果是任务,则传任务Id

  • EventName:

    事件名称

  • ProjectId:

    项目id

  • Type:

    事件类型,默认 REST_API

  • Properties:

    配置信息,比如最长等待时间1天配置json:“maxWaitEventTime”:1,“maxWaitEventTimeUnit”:“DAYS”



19821
19822
19823
# File 'lib/v20210820/models.rb', line 19821

def Properties
  @Properties
end

#TypeObject

Parameters:

  • Key:

    关键字,如果是任务,则传任务Id

  • EventName:

    事件名称

  • ProjectId:

    项目id

  • Type:

    事件类型,默认 REST_API

  • Properties:

    配置信息,比如最长等待时间1天配置json:“maxWaitEventTime”:1,“maxWaitEventTimeUnit”:“DAYS”



19821
19822
19823
# File 'lib/v20210820/models.rb', line 19821

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



19831
19832
19833
19834
19835
19836
19837
# File 'lib/v20210820/models.rb', line 19831

def deserialize(params)
  @Key = params['Key']
  @EventName = params['EventName']
  @ProjectId = params['ProjectId']
  @Type = params['Type']
  @Properties = params['Properties']
end