Class: Google::Apis::TagmanagerV2::ZoneTypeRestriction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/tagmanager_v2/classes.rb,
generated/google/apis/tagmanager_v2/representations.rb,
generated/google/apis/tagmanager_v2/representations.rb

Overview

Represents a Zone's type restrictions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ZoneTypeRestriction

Returns a new instance of ZoneTypeRestriction.



2745
2746
2747
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2745

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

Instance Attribute Details

#enableBoolean Also known as: enable?

True if type restrictions have been enabled for this Zone. Corresponds to the JSON property enable

Returns:

  • (Boolean)


2737
2738
2739
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2737

def enable
  @enable
end

#whitelisted_type_idArray<String>

List of type public ids that have been whitelisted for use in this Zone. Corresponds to the JSON property whitelistedTypeId

Returns:

  • (Array<String>)


2743
2744
2745
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2743

def whitelisted_type_id
  @whitelisted_type_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2750
2751
2752
2753
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2750

def update!(**args)
  @enable = args[:enable] if args.key?(:enable)
  @whitelisted_type_id = args[:whitelisted_type_id] if args.key?(:whitelisted_type_id)
end