class Google::Apis::TagmanagerV1::Rule

Represents a Google Tag Manager Rule.

Attributes

account_id[RW]

GTM Account ID. Corresponds to the JSON property `accountId` @return [String]

condition[RW]

The list of conditions that make up this rule (implicit AND between them). @ mutable tagmanager.accounts.containers.rules.create @mutable tagmanager. accounts.containers.rules.update Corresponds to the JSON property `condition` @return [Array<Google::Apis::TagmanagerV1::Condition>]

container_id[RW]

GTM Container ID. Corresponds to the JSON property `containerId` @return [String]

fingerprint[RW]

The fingerprint of the GTM Rule as computed at storage time. This value is recomputed whenever the rule is modified. Corresponds to the JSON property `fingerprint` @return [String]

name[RW]

Rule display name. @mutable tagmanager.accounts.containers.rules.create @ mutable tagmanager.accounts.containers.rules.update Corresponds to the JSON property `name` @return [String]

notes[RW]

User notes on how to apply this rule in the container. @mutable tagmanager. accounts.containers.rules.create @mutable tagmanager.accounts.containers.rules. update Corresponds to the JSON property `notes` @return [String]

rule_id[RW]

The Rule ID uniquely identifies the GTM Rule. Corresponds to the JSON property `ruleId` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/tagmanager_v1/classes.rb, line 1087
def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @condition = args[:condition] if args.key?(:condition)
  @container_id = args[:container_id] if args.key?(:container_id)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @name = args[:name] if args.key?(:name)
  @notes = args[:notes] if args.key?(:notes)
  @rule_id = args[:rule_id] if args.key?(:rule_id)
end