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

Constructor Details

#initialize(**args) ⇒ ZoneTypeRestriction

Returns a new instance of ZoneTypeRestriction.



2717
2718
2719
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2717

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)


2709
2710
2711
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2709

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>)


2715
2716
2717
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2715

def whitelisted_type_id
  @whitelisted_type_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2722
2723
2724
2725
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2722

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