Class: TencentCloud::Wedata::V20210820::CommitRuleGroupTaskRequest

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

Overview

CommitRuleGroupTask请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rulegroupid = nil, triggertype = nil, execruleconfig = nil, execconfig = nil, projectid = nil, enginetype = nil) ⇒ CommitRuleGroupTaskRequest

Returns a new instance of CommitRuleGroupTaskRequest.



2733
2734
2735
2736
2737
2738
2739
2740
# File 'lib/v20210820/models.rb', line 2733

def initialize(rulegroupid=nil, triggertype=nil, execruleconfig=nil, execconfig=nil, projectid=nil, enginetype=nil)
  @RuleGroupId = rulegroupid
  @TriggerType = triggertype
  @ExecRuleConfig = execruleconfig
  @ExecConfig = execconfig
  @ProjectId = projectid
  @EngineType = enginetype
end

Instance Attribute Details

#EngineTypeObject

Parameters:

  • RuleGroupId:

    规则组ID

  • TriggerType:

    触发类型 1.手动触发 2.调度事中触发 3.周期调度触发

  • ExecRuleConfig:

    规则配置列表

  • ExecConfig:

    执行配置

  • ProjectId:

    项目ID

  • EngineType:

    该规则运行的执行引擎,不传时会请求该数据源下默认的执行引擎



2731
2732
2733
# File 'lib/v20210820/models.rb', line 2731

def EngineType
  @EngineType
end

#ExecConfigObject

Parameters:

  • RuleGroupId:

    规则组ID

  • TriggerType:

    触发类型 1.手动触发 2.调度事中触发 3.周期调度触发

  • ExecRuleConfig:

    规则配置列表

  • ExecConfig:

    执行配置

  • ProjectId:

    项目ID

  • EngineType:

    该规则运行的执行引擎,不传时会请求该数据源下默认的执行引擎



2731
2732
2733
# File 'lib/v20210820/models.rb', line 2731

def ExecConfig
  @ExecConfig
end

#ExecRuleConfigObject

Parameters:

  • RuleGroupId:

    规则组ID

  • TriggerType:

    触发类型 1.手动触发 2.调度事中触发 3.周期调度触发

  • ExecRuleConfig:

    规则配置列表

  • ExecConfig:

    执行配置

  • ProjectId:

    项目ID

  • EngineType:

    该规则运行的执行引擎,不传时会请求该数据源下默认的执行引擎



2731
2732
2733
# File 'lib/v20210820/models.rb', line 2731

def ExecRuleConfig
  @ExecRuleConfig
end

#ProjectIdObject

Parameters:

  • RuleGroupId:

    规则组ID

  • TriggerType:

    触发类型 1.手动触发 2.调度事中触发 3.周期调度触发

  • ExecRuleConfig:

    规则配置列表

  • ExecConfig:

    执行配置

  • ProjectId:

    项目ID

  • EngineType:

    该规则运行的执行引擎,不传时会请求该数据源下默认的执行引擎



2731
2732
2733
# File 'lib/v20210820/models.rb', line 2731

def ProjectId
  @ProjectId
end

#RuleGroupIdObject

Parameters:

  • RuleGroupId:

    规则组ID

  • TriggerType:

    触发类型 1.手动触发 2.调度事中触发 3.周期调度触发

  • ExecRuleConfig:

    规则配置列表

  • ExecConfig:

    执行配置

  • ProjectId:

    项目ID

  • EngineType:

    该规则运行的执行引擎,不传时会请求该数据源下默认的执行引擎



2731
2732
2733
# File 'lib/v20210820/models.rb', line 2731

def RuleGroupId
  @RuleGroupId
end

#TriggerTypeObject

Parameters:

  • RuleGroupId:

    规则组ID

  • TriggerType:

    触发类型 1.手动触发 2.调度事中触发 3.周期调度触发

  • ExecRuleConfig:

    规则配置列表

  • ExecConfig:

    执行配置

  • ProjectId:

    项目ID

  • EngineType:

    该规则运行的执行引擎,不传时会请求该数据源下默认的执行引擎



2731
2732
2733
# File 'lib/v20210820/models.rb', line 2731

def TriggerType
  @TriggerType
end

Instance Method Details

#deserialize(params) ⇒ Object



2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
# File 'lib/v20210820/models.rb', line 2742

def deserialize(params)
  @RuleGroupId = params['RuleGroupId']
  @TriggerType = params['TriggerType']
  unless params['ExecRuleConfig'].nil?
    @ExecRuleConfig = []
    params['ExecRuleConfig'].each do |i|
      ruleconfig_tmp = RuleConfig.new
      ruleconfig_tmp.deserialize(i)
      @ExecRuleConfig << ruleconfig_tmp
    end
  end
  unless params['ExecConfig'].nil?
    @ExecConfig = RuleExecConfig.new
    @ExecConfig.deserialize(params['ExecConfig'])
  end
  @ProjectId = params['ProjectId']
  @EngineType = params['EngineType']
end