class Google::Apis::TagmanagerV1::Condition

Represents a predicate.

Attributes

parameter[RW]

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` @return [Array<Google::Apis::TagmanagerV1::Parameter>]

type[RW]

The type of operator for this condition. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/tagmanager_v1/classes.rb, line 106
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/tagmanager_v1/classes.rb, line 111
def update!(**args)
  @parameter = args[:parameter] if args.key?(:parameter)
  @type = args[:type] if args.key?(:type)
end