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.



19539
19540
19541
19542
19543
19544
19545
# File 'lib/v20210820/models.rb', line 19539

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”



19537
19538
19539
# File 'lib/v20210820/models.rb', line 19537

def EventName
  @EventName
end

#KeyObject

Parameters:

  • Key:

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

  • EventName:

    事件名称

  • ProjectId:

    项目id

  • Type:

    事件类型,默认 REST_API

  • Properties:

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



19537
19538
19539
# File 'lib/v20210820/models.rb', line 19537

def Key
  @Key
end

#ProjectIdObject

Parameters:

  • Key:

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

  • EventName:

    事件名称

  • ProjectId:

    项目id

  • Type:

    事件类型,默认 REST_API

  • Properties:

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



19537
19538
19539
# File 'lib/v20210820/models.rb', line 19537

def ProjectId
  @ProjectId
end

#PropertiesObject

Parameters:

  • Key:

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

  • EventName:

    事件名称

  • ProjectId:

    项目id

  • Type:

    事件类型,默认 REST_API

  • Properties:

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



19537
19538
19539
# File 'lib/v20210820/models.rb', line 19537

def Properties
  @Properties
end

#TypeObject

Parameters:

  • Key:

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

  • EventName:

    事件名称

  • ProjectId:

    项目id

  • Type:

    事件类型,默认 REST_API

  • Properties:

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



19537
19538
19539
# File 'lib/v20210820/models.rb', line 19537

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



19547
19548
19549
19550
19551
19552
19553
# File 'lib/v20210820/models.rb', line 19547

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