Class: Google::Apis::TagmanagerV2::Condition

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Condition

Returns a new instance of Condition.



275
276
277
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 275

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#parameterArray<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. @mutable tagmanager.accounts.containers. workspaces.triggers.create @mutable tagmanager.accounts.containers.workspaces. triggers.update Corresponds to the JSON property parameter



266
267
268
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 266

def parameter
  @parameter
end

#typeString

The type of operator for this condition. @mutable tagmanager.accounts. containers.workspaces.triggers.create @mutable tagmanager.accounts.containers. workspaces.triggers.update Corresponds to the JSON property type

Returns:

  • (String)


273
274
275
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 273

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



280
281
282
283
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 280

def update!(**args)
  @parameter = args[:parameter] if args.key?(:parameter)
  @type = args[:type] if args.key?(:type)
end