Class: Google::Apis::TagmanagerV1::Variable
- Inherits:
-
Object
- Object
- Google::Apis::TagmanagerV1::Variable
- 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 Variable.
Instance Attribute Summary collapse
-
#account_id ⇒ String
GTM Account ID.
-
#container_id ⇒ String
GTM Container ID.
-
#disabling_trigger_id ⇒ Array<String>
For mobile containers only: A list of trigger IDs for disabling conditional variables; the variable is enabled if one of the enabling trigger is true while all the disabling trigger are false.
-
#enabling_trigger_id ⇒ Array<String>
For mobile containers only: A list of trigger IDs for enabling conditional variables; the variable is enabled if one of the enabling triggers is true while all the disabling triggers are false.
-
#fingerprint ⇒ String
The fingerprint of the GTM Variable as computed at storage time.
-
#name ⇒ String
Variable display name.
-
#notes ⇒ String
User notes on how to apply this variable in the container.
-
#parameter ⇒ Array<Google::Apis::TagmanagerV1::Parameter>
The variable's parameters.
-
#parent_folder_id ⇒ String
Parent folder id.
-
#schedule_end_ms ⇒ Fixnum
The end timestamp in milliseconds to schedule a variable.
-
#schedule_start_ms ⇒ Fixnum
The start timestamp in milliseconds to schedule a variable.
-
#type ⇒ String
GTM Variable Type.
-
#variable_id ⇒ String
The Variable ID uniquely identifies the GTM Variable.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Variable
constructor
A new instance of Variable.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Variable
Returns a new instance of Variable
1471 1472 1473 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1471 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ String
GTM Account ID.
Corresponds to the JSON property accountId
1404 1405 1406 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1404 def account_id @account_id end |
#container_id ⇒ String
GTM Container ID.
Corresponds to the JSON property containerId
1409 1410 1411 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1409 def container_id @container_id end |
#disabling_trigger_id ⇒ Array<String>
For mobile containers only: A list of trigger IDs for disabling conditional
variables; the variable is enabled if one of the enabling trigger is true
while all the disabling trigger are false. Treated as an unordered set.
Corresponds to the JSON property disablingTriggerId
1416 1417 1418 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1416 def disabling_trigger_id @disabling_trigger_id end |
#enabling_trigger_id ⇒ Array<String>
For mobile containers only: A list of trigger IDs for enabling conditional
variables; the variable is enabled if one of the enabling triggers is true
while all the disabling triggers are false. Treated as an unordered set.
Corresponds to the JSON property enablingTriggerId
1423 1424 1425 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1423 def enabling_trigger_id @enabling_trigger_id end |
#fingerprint ⇒ String
The fingerprint of the GTM Variable as computed at storage time. This value is
recomputed whenever the variable is modified.
Corresponds to the JSON property fingerprint
1429 1430 1431 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1429 def fingerprint @fingerprint end |
#name ⇒ String
Variable display name.
Corresponds to the JSON property name
1434 1435 1436 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1434 def name @name end |
#notes ⇒ String
User notes on how to apply this variable in the container.
Corresponds to the JSON property notes
1439 1440 1441 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1439 def notes @notes end |
#parameter ⇒ Array<Google::Apis::TagmanagerV1::Parameter>
The variable's parameters.
Corresponds to the JSON property parameter
1444 1445 1446 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1444 def parameter @parameter end |
#parent_folder_id ⇒ String
Parent folder id.
Corresponds to the JSON property parentFolderId
1449 1450 1451 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1449 def parent_folder_id @parent_folder_id end |
#schedule_end_ms ⇒ Fixnum
The end timestamp in milliseconds to schedule a variable.
Corresponds to the JSON property scheduleEndMs
1454 1455 1456 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1454 def schedule_end_ms @schedule_end_ms end |
#schedule_start_ms ⇒ Fixnum
The start timestamp in milliseconds to schedule a variable.
Corresponds to the JSON property scheduleStartMs
1459 1460 1461 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1459 def schedule_start_ms @schedule_start_ms end |
#type ⇒ String
GTM Variable Type.
Corresponds to the JSON property type
1464 1465 1466 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1464 def type @type end |
#variable_id ⇒ String
The Variable ID uniquely identifies the GTM Variable.
Corresponds to the JSON property variableId
1469 1470 1471 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1469 def variable_id @variable_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 |
# File 'generated/google/apis/tagmanager_v1/classes.rb', line 1476 def update!(**args) @account_id = args[:account_id] if args.key?(:account_id) @container_id = args[:container_id] if args.key?(:container_id) @disabling_trigger_id = args[:disabling_trigger_id] if args.key?(:disabling_trigger_id) @enabling_trigger_id = args[:enabling_trigger_id] if args.key?(:enabling_trigger_id) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @name = args[:name] if args.key?(:name) @notes = args[:notes] if args.key?(:notes) @parameter = args[:parameter] if args.key?(:parameter) @parent_folder_id = args[:parent_folder_id] if args.key?(:parent_folder_id) @schedule_end_ms = args[:schedule_end_ms] if args.key?(:schedule_end_ms) @schedule_start_ms = args[:schedule_start_ms] if args.key?(:schedule_start_ms) @type = args[:type] if args.key?(:type) @variable_id = args[:variable_id] if args.key?(:variable_id) end |