Class Environment
Represents a Google Tag Manager Environment. Note that a user can create, delete and update environments of type USER, but can only update the enable_debug and url fields of environments of other types.
Implements
Inherited Members
Namespace: Google.Apis.TagManager.v2.Data
Assembly: Google.Apis.TagManager.v2.dll
Syntax
public class Environment : IDirectResponseSchema
Properties
AccountId
GTM Account ID.
Declaration
[JsonProperty("accountId")]
public virtual string AccountId { get; set; }
Property Value
Type | Description |
---|---|
string |
AuthorizationCode
The environment authorization code.
Declaration
[JsonProperty("authorizationCode")]
public virtual string AuthorizationCode { get; set; }
Property Value
Type | Description |
---|---|
string |
AuthorizationTimestamp
object representation of AuthorizationTimestampRaw.
Declaration
[JsonIgnore]
[Obsolete("This property is obsolete and may behave unexpectedly; please use AuthorizationTimestampDateTimeOffset instead.")]
public virtual object AuthorizationTimestamp { get; set; }
Property Value
Type | Description |
---|---|
object |
AuthorizationTimestampDateTimeOffset
DateTimeOffset representation of AuthorizationTimestampRaw.
Declaration
[JsonIgnore]
public virtual DateTimeOffset? AuthorizationTimestampDateTimeOffset { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
AuthorizationTimestampRaw
The last update time-stamp for the authorization code.
Declaration
[JsonProperty("authorizationTimestamp")]
public virtual string AuthorizationTimestampRaw { get; set; }
Property Value
Type | Description |
---|---|
string |
ContainerId
GTM Container ID.
Declaration
[JsonProperty("containerId")]
public virtual string ContainerId { get; set; }
Property Value
Type | Description |
---|---|
string |
ContainerVersionId
Represents a link to a container version.
Declaration
[JsonProperty("containerVersionId")]
public virtual string ContainerVersionId { get; set; }
Property Value
Type | Description |
---|---|
string |
Description
The environment description. Can be set or changed only on USER type environments. @mutable tagmanager.accounts.containers.environments.create @mutable tagmanager.accounts.containers.environments.update
Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
EnableDebug
Whether or not to enable debug by default for the environment. @mutable tagmanager.accounts.containers.environments.create @mutable tagmanager.accounts.containers.environments.update
Declaration
[JsonProperty("enableDebug")]
public virtual bool? EnableDebug { get; set; }
Property Value
Type | Description |
---|---|
bool? |
EnvironmentId
GTM Environment ID uniquely identifies the GTM Environment.
Declaration
[JsonProperty("environmentId")]
public virtual string EnvironmentId { get; set; }
Property Value
Type | Description |
---|---|
string |
Fingerprint
The fingerprint of the GTM environment as computed at storage time. This value is recomputed whenever the environment is modified.
Declaration
[JsonProperty("fingerprint")]
public virtual string Fingerprint { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
The environment display name. Can be set or changed only on USER type environments. @mutable tagmanager.accounts.containers.environments.create @mutable tagmanager.accounts.containers.environments.update
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Path
GTM Environment's API relative path.
Declaration
[JsonProperty("path")]
public virtual string Path { get; set; }
Property Value
Type | Description |
---|---|
string |
TagManagerUrl
Auto generated link to the tag manager UI
Declaration
[JsonProperty("tagManagerUrl")]
public virtual string TagManagerUrl { get; set; }
Property Value
Type | Description |
---|---|
string |
Type
The type of this environment.
Declaration
[JsonProperty("type")]
public virtual string Type { get; set; }
Property Value
Type | Description |
---|---|
string |
Url
Default preview page url for the environment. @mutable tagmanager.accounts.containers.environments.create @mutable tagmanager.accounts.containers.environments.update
Declaration
[JsonProperty("url")]
public virtual string Url { get; set; }
Property Value
Type | Description |
---|---|
string |
WorkspaceId
Represents a link to a quick preview of a workspace.
Declaration
[JsonProperty("workspaceId")]
public virtual string WorkspaceId { get; set; }
Property Value
Type | Description |
---|---|
string |