Class: Google::Apis::TagmanagerV2::GalleryReference

Inherits:
Object
  • Object
show all
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 the link between a custom template and an entry on the Community Template Gallery site.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GalleryReference

Returns a new instance of GalleryReference.



1094
1095
1096
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1094

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

Instance Attribute Details

#hostString

The name of the host for the community gallery template. Corresponds to the JSON property host

Returns:

  • (String)


1065
1066
1067
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1065

def host
  @host
end

#is_modifiedBoolean Also known as: is_modified?

If a user has manually edited the community gallery template. Corresponds to the JSON property isModified

Returns:

  • (Boolean)


1070
1071
1072
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1070

def is_modified
  @is_modified
end

#ownerString

The name of the owner for the community gallery template. Corresponds to the JSON property owner

Returns:

  • (String)


1076
1077
1078
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1076

def owner
  @owner
end

#repositoryString

The name of the repository for the community gallery template. Corresponds to the JSON property repository

Returns:

  • (String)


1081
1082
1083
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1081

def repository
  @repository
end

#signatureString

The signature of the community gallery template as computed at import time. This value is recomputed whenever the template is updated from the gallery. Corresponds to the JSON property signature

Returns:

  • (String)


1087
1088
1089
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1087

def signature
  @signature
end

#versionString

The version of the community gallery template. Corresponds to the JSON property version

Returns:

  • (String)


1092
1093
1094
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1092

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1099
1100
1101
1102
1103
1104
1105
1106
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 1099

def update!(**args)
  @host = args[:host] if args.key?(:host)
  @is_modified = args[:is_modified] if args.key?(:is_modified)
  @owner = args[:owner] if args.key?(:owner)
  @repository = args[:repository] if args.key?(:repository)
  @signature = args[:signature] if args.key?(:signature)
  @version = args[:version] if args.key?(:version)
end