Class: Google::Apis::TagmanagerV2::Condition
- Inherits:
-
Object
- Object
- Google::Apis::TagmanagerV2::Condition
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/tagmanager_v2/classes.rb,
generated/google/apis/tagmanager_v2/representations.rb,
generated/google/apis/tagmanager_v2/representations.rb
Overview
Represents a predicate.
Instance Attribute Summary collapse
-
#parameter ⇒ Array<Google::Apis::TagmanagerV2::Parameter>
A list of named parameters (key/value), depending on the condition's type.
-
#type ⇒ String
The type of operator for this condition.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Condition
constructor
A new instance of Condition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Condition
Returns a new instance of Condition
174 175 176 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 174 def initialize(**args) update!(**args) end |
Instance Attribute Details
#parameter ⇒ Array<Google::Apis::TagmanagerV2::Parameter>
A list of named parameters (key/value), depending on the condition's type. Notes:
- For binary operators, include parameters named arg0 and arg1 for specifying the left and right operands, respectively.
- At this time, the left operand (arg0) must be a reference to a variable.
- For case-insensitive Regex matching, include a boolean parameter named ignore_case that is set to true. If not specified or set to any other value, the matching will be case sensitive.
- To negate an operator, include a boolean parameter named negate boolean
parameter that is set to true.
Corresponds to the JSON property
parameter
167 168 169 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 167 def parameter @parameter end |
#type ⇒ String
The type of operator for this condition.
Corresponds to the JSON property type
172 173 174 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 172 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
179 180 181 182 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 179 def update!(**args) @parameter = args[:parameter] if args.key?(:parameter) @type = args[:type] if args.key?(:type) end |