Class: Google::Apis::TagmanagerV1::Rule
- Inherits:
-
Object
- Object
- Google::Apis::TagmanagerV1::Rule
- 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
-
#account_id ⇒ String
GTM Account ID.
-
#condition ⇒ Array<Google::Apis::TagmanagerV1::Condition>
The list of conditions that make up this rule (implicit AND between them).
-
#container_id ⇒ String
GTM Container ID.
-
#fingerprint ⇒ String
The fingerprint of the GTM Rule as computed at storage time.
-
#name ⇒ String
Rule display name.
-
#notes ⇒ String
User notes on how to apply this rule in the container.
-
#rule_id ⇒ String
The Rule ID uniquely identifies the GTM Rule.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Rule
constructor
A new instance of Rule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Rule
Returns a new instance of Rule
1125 1126 1127 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1125 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ String
GTM Account ID.
Corresponds to the JSON property accountId
1086 1087 1088 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1086 def account_id @account_id end |
#condition ⇒ Array<Google::Apis::TagmanagerV1::Condition>
The list of conditions that make up this rule (implicit AND between them).
Corresponds to the JSON property condition
1093 1094 1095 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1093 def condition @condition end |
#container_id ⇒ String
GTM Container ID.
Corresponds to the JSON property containerId
1098 1099 1100 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1098 def container_id @container_id end |
#fingerprint ⇒ String
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
1104 1105 1106 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1104 def fingerprint @fingerprint end |
#name ⇒ String
Rule display name.
Corresponds to the JSON property name
1111 1112 1113 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1111 def name @name end |
#notes ⇒ String
User notes on how to apply this rule in the container.
Corresponds to the JSON property notes
1118 1119 1120 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1118 def notes @notes end |
#rule_id ⇒ String
The Rule ID uniquely identifies the GTM Rule.
Corresponds to the JSON property ruleId
1123 1124 1125 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1123 def rule_id @rule_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1130 1131 1132 1133 1134 1135 1136 1137 1138 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1130 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 |