Class: TencentCloud::Teo::V20220901::RuleEngineSubRule

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

Overview

子规则。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(branches = nil, description = nil) ⇒ RuleEngineSubRule

Returns a new instance of RuleEngineSubRule.



20909
20910
20911
20912
# File 'lib/v20220901/models.rb', line 20909

def initialize(branches=nil, description=nil)
  @Branches = branches
  @Description = description
end

Instance Attribute Details

#BranchesObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Branches:

    子规则分支

  • Description:

    规则注释。



20907
20908
20909
# File 'lib/v20220901/models.rb', line 20907

def Branches
  @Branches
end

#DescriptionObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Branches:

    子规则分支

  • Description:

    规则注释。



20907
20908
20909
# File 'lib/v20220901/models.rb', line 20907

def Description
  @Description
end

Instance Method Details

#deserialize(params) ⇒ Object



20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
# File 'lib/v20220901/models.rb', line 20914

def deserialize(params)
  unless params['Branches'].nil?
    @Branches = []
    params['Branches'].each do |i|
      rulebranch_tmp = RuleBranch.new
      rulebranch_tmp.deserialize(i)
      @Branches << rulebranch_tmp
    end
  end
  @Description = params['Description']
end