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



2611
2612
2613
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2611

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)


2603
2604
2605
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2603

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


2609
2610
2611
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2609

def whitelisted_type_id
  @whitelisted_type_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2616
2617
2618
2619
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2616

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