Class: Google::Apis::TagmanagerV2::CustomTemplate
- Inherits:
-
Object
- Object
- Google::Apis::TagmanagerV2::CustomTemplate
- 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 Google Tag Manager Custom Template's contents.
Instance Attribute Summary collapse
-
#account_id ⇒ String
GTM Account ID.
-
#container_id ⇒ String
GTM Container ID.
-
#fingerprint ⇒ String
The fingerprint of the GTM Custom Template as computed at storage time.
-
#name ⇒ String
Custom Template display name.
-
#path ⇒ String
GTM Custom Template's API relative path.
-
#tag_manager_url ⇒ String
Auto generated link to the tag manager UI Corresponds to the JSON property
tagManagerUrl
. -
#template_data ⇒ String
The custom template in text format.
-
#template_id ⇒ String
The Custom Template ID uniquely identifies the GTM custom template.
-
#workspace_id ⇒ String
GTM Workspace ID.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomTemplate
constructor
A new instance of CustomTemplate.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ CustomTemplate
Returns a new instance of CustomTemplate
662 663 664 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 662 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ String
GTM Account ID.
Corresponds to the JSON property accountId
619 620 621 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 619 def account_id @account_id end |
#container_id ⇒ String
GTM Container ID.
Corresponds to the JSON property containerId
624 625 626 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 624 def container_id @container_id end |
#fingerprint ⇒ String
The fingerprint of the GTM Custom Template as computed at storage time.
This value is recomputed whenever the template is modified.
Corresponds to the JSON property fingerprint
630 631 632 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 630 def fingerprint @fingerprint end |
#name ⇒ String
Custom Template display name.
Corresponds to the JSON property name
635 636 637 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 635 def name @name end |
#path ⇒ String
GTM Custom Template's API relative path.
Corresponds to the JSON property path
640 641 642 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 640 def path @path end |
#tag_manager_url ⇒ String
Auto generated link to the tag manager UI
Corresponds to the JSON property tagManagerUrl
645 646 647 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 645 def tag_manager_url @tag_manager_url end |
#template_data ⇒ String
The custom template in text format.
Corresponds to the JSON property templateData
650 651 652 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 650 def template_data @template_data end |
#template_id ⇒ String
The Custom Template ID uniquely identifies the GTM custom template.
Corresponds to the JSON property templateId
655 656 657 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 655 def template_id @template_id end |
#workspace_id ⇒ String
GTM Workspace ID.
Corresponds to the JSON property workspaceId
660 661 662 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 660 def workspace_id @workspace_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
667 668 669 670 671 672 673 674 675 676 677 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 667 def update!(**args) @account_id = args[:account_id] if args.key?(:account_id) @container_id = args[:container_id] if args.key?(:container_id) @fingerprint = args[:fingerprint] if args.key?(:fingerprint) @name = args[:name] if args.key?(:name) @path = args[:path] if args.key?(:path) @tag_manager_url = args[:tag_manager_url] if args.key?(:tag_manager_url) @template_data = args[:template_data] if args.key?(:template_data) @template_id = args[:template_id] if args.key?(:template_id) @workspace_id = args[:workspace_id] if args.key?(:workspace_id) end |