Class: Google::Apis::TagmanagerV1::Rule

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/tagmanager_v1/classes.rb,
generated/google/apis/tagmanager_v1/representations.rb,
generated/google/apis/tagmanager_v1/representations.rb

Overview

Represents a Google Tag Manager Rule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Rule

Returns a new instance of Rule.



1082
1083
1084
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1082

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

Instance Attribute Details

#account_idString

GTM Account ID. Corresponds to the JSON property accountId

Returns:

  • (String)


1044
1045
1046
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1044

def 
  @account_id
end

#conditionArray<Google::Apis::TagmanagerV1::Condition>

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



1051
1052
1053
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1051

def condition
  @condition
end

#container_idString

GTM Container ID. Corresponds to the JSON property containerId

Returns:

  • (String)


1056
1057
1058
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1056

def container_id
  @container_id
end

#fingerprintString

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

Returns:

  • (String)


1062
1063
1064
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1062

def fingerprint
  @fingerprint
end

#nameString

Rule display name. @mutable tagmanager.accounts.containers.rules.create @ mutable tagmanager.accounts.containers.rules.update Corresponds to the JSON property name

Returns:

  • (String)


1068
1069
1070
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1068

def name
  @name
end

#notesString

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

Returns:

  • (String)


1075
1076
1077
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1075

def notes
  @notes
end

#rule_idString

The Rule ID uniquely identifies the GTM Rule. Corresponds to the JSON property ruleId

Returns:

  • (String)


1080
1081
1082
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1080

def rule_id
  @rule_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1087
1088
1089
1090
1091
1092
1093
1094
1095
# File 'generated/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