GTM Versions

version

class gtm_manager.version.GTMVersion(version=None, path=None, workspaceId=None, **kwargs)[source]

Open a specific GTM Version.

Parameters
  • version (dict) – An API representation of the GTM Forlder. If provided, the resource will be not be loaded from the API. version or path argument must be set.

  • path (str) – The API path to the resource, i.e. “accounts/1234/containers/1234/version/123”. If provided instead of version, the representation will be loaded from the API. path or version argument must be set.

  • parent (str) – Required, when the instance is initialized with a version argument to explizitly set the parent path, i.e. “accounts/1234/containers/1234/workspaces/1234”

  • **kwargs – Additional keyword args to initialize the base class.

property container

The container that this version was taken from.

Type

gtm_manager.container.GTMContainer

property containerId

GTM Container ID.

Type

str

property zone

The zones in the container that this version was taken from.

Type

list

property deleted

A value of true indicates this container version has been deleted.

Type

bool

property trigger

The triggers in the container that this version was taken from.

Type

list

property description

Container version description.

Type

str

property builtInVariable

The built-in variables in the container that this version was taken from.

Type

list

property name

Container version display name.

Type

str

property tag

The tags in the container that this version was taken from.

Type

list

property tagManagerUrl

Auto generated link to the tag manager UI

Type

str

property containerVersionId

The Container Version ID uniquely identifies the GTM Container Version.

Type

str

property fingerprint

The fingerprint of the GTM Container Version as computed at storage time. This value is recomputed whenever the container version is modified.

Type

str

property variable

The variables in the container that this version was taken from.

Type

list

property path

GTM ContainerVersions’s API relative path.

Type

str

property folder

The folders in the container that this version was taken from.

Type

list

property accountId

GTM Account ID.

Type

str

publish()[source]
class gtm_manager.version.GTMVersionHeader(versionHeader)[source]