Class: TencentCloud::Ioa::V20220601::RuleExpression
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ioa::V20220601::RuleExpression
- Defined in:
- lib/v20220601/models.rb
Overview
规则表达式
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(items = nil, relation = nil) ⇒ RuleExpression
constructor
A new instance of RuleExpression.
Constructor Details
#initialize(items = nil, relation = nil) ⇒ RuleExpression
Returns a new instance of RuleExpression.
3746 3747 3748 3749 |
# File 'lib/v20220601/models.rb', line 3746 def initialize(items=nil, relation=nil) @Items = items @Relation = relation end |
Instance Attribute Details
#Items ⇒ Object
3744 3745 3746 |
# File 'lib/v20220601/models.rb', line 3744 def Items @Items end |
#Relation ⇒ Object
3744 3745 3746 |
# File 'lib/v20220601/models.rb', line 3744 def Relation @Relation end |
Instance Method Details
#deserialize(params) ⇒ Object
3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 |
# File 'lib/v20220601/models.rb', line 3751 def deserialize(params) unless params['Items'].nil? @Items = [] params['Items'].each do |i| ruleitem_tmp = RuleItem.new ruleitem_tmp.deserialize(i) @Items << ruleitem_tmp end end @Relation = params['Relation'] end |