class Google::Apis::TagmanagerV1::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.

Attributes

account_id[RW]

GTM Account ID. Corresponds to the JSON property `accountId` @return [String]

authorization_code[RW]

The environment authorization code. Corresponds to the JSON property `authorizationCode` @return [String]

authorization_timestamp_ms[RW]

The last update time-stamp for the authorization code. Corresponds to the JSON property `authorizationTimestampMs` @return [String]

container_id[RW]

GTM Container ID. Corresponds to the JSON property `containerId` @return [String]

container_version_id[RW]

Corresponds to the JSON property `containerVersionId` @return [String]

description[RW]

The environment description. Can be set or changed only on USER type environments. Corresponds to the JSON property `description` @return [String]

enable_debug[RW]

Whether or not to enable debug by default on for the environment. Corresponds to the JSON property `enableDebug` @return [Boolean]

enable_debug?[RW]

Whether or not to enable debug by default on for the environment. Corresponds to the JSON property `enableDebug` @return [Boolean]

environment_id[RW]

GTM Environment ID uniquely identifies the GTM Environment. Corresponds to the JSON property `environmentId` @return [String]

fingerprint[RW]

The fingerprint of the GTM environment as computed at storage time. This value is recomputed whenever the environment is modified. Corresponds to the JSON property `fingerprint` @return [String]

name[RW]

The environment display name. Can be set or changed only on USER type environments. Corresponds to the JSON property `name` @return [String]

type[RW]

The type of this environment. Corresponds to the JSON property `type` @return [String]

url[RW]

Default preview page url for the environment. Corresponds to the JSON property `url` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/tagmanager_v1/classes.rb, line 530
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/tagmanager_v1/classes.rb, line 535
def update!(**args)
  @account_id = args[:account_id] if args.key?(:account_id)
  @authorization_code = args[:authorization_code] if args.key?(:authorization_code)
  @authorization_timestamp_ms = args[:authorization_timestamp_ms] if args.key?(:authorization_timestamp_ms)
  @container_id = args[:container_id] if args.key?(:container_id)
  @container_version_id = args[:container_version_id] if args.key?(:container_version_id)
  @description = args[:description] if args.key?(:description)
  @enable_debug = args[:enable_debug] if args.key?(:enable_debug)
  @environment_id = args[:environment_id] if args.key?(:environment_id)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @name = args[:name] if args.key?(:name)
  @type = args[:type] if args.key?(:type)
  @url = args[:url] if args.key?(:url)
end