Class: Google::Apis::TagmanagerV2::CustomTemplate
- Inherits:
-
Object
- Object
- Google::Apis::TagmanagerV2::CustomTemplate
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/tagmanager_v2/classes.rb,
lib/google/apis/tagmanager_v2/representations.rb,
lib/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.
-
#gallery_reference ⇒ Google::Apis::TagmanagerV2::GalleryReference
Represents the link between a custom template and an entry on the Community Template Gallery site.
-
#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.
Constructor Details
#initialize(**args) ⇒ CustomTemplate
Returns a new instance of CustomTemplate.
952 953 954 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 952 def initialize(**args) update!(**args) end |
Instance Attribute Details
#account_id ⇒ String
GTM Account ID.
Corresponds to the JSON property accountId
903 904 905 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 903 def account_id @account_id end |
#container_id ⇒ String
GTM Container ID.
Corresponds to the JSON property containerId
908 909 910 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 908 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
914 915 916 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 914 def fingerprint @fingerprint end |
#gallery_reference ⇒ Google::Apis::TagmanagerV2::GalleryReference
Represents the link between a custom template and an entry on the Community
Template Gallery site.
Corresponds to the JSON property galleryReference
920 921 922 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 920 def gallery_reference @gallery_reference end |
#name ⇒ String
Custom Template display name.
Corresponds to the JSON property name
925 926 927 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 925 def name @name end |
#path ⇒ String
GTM Custom Template's API relative path.
Corresponds to the JSON property path
930 931 932 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 930 def path @path end |
#tag_manager_url ⇒ String
Auto generated link to the tag manager UI
Corresponds to the JSON property tagManagerUrl
935 936 937 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 935 def tag_manager_url @tag_manager_url end |
#template_data ⇒ String
The custom template in text format.
Corresponds to the JSON property templateData
940 941 942 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 940 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
945 946 947 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 945 def template_id @template_id end |
#workspace_id ⇒ String
GTM Workspace ID.
Corresponds to the JSON property workspaceId
950 951 952 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 950 def workspace_id @workspace_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
957 958 959 960 961 962 963 964 965 966 967 968 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 957 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) @gallery_reference = args[:gallery_reference] if args.key?(:gallery_reference) @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 |