Class: Google::Apis::TagmanagerV2::ZoneTypeRestriction
- Inherits:
-
Object
- Object
- Google::Apis::TagmanagerV2::ZoneTypeRestriction
- 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
-
#enable ⇒ Boolean
(also: #enable?)
True if type restrictions have been enabled for this Zone.
-
#whitelisted_type_id ⇒ Array<String>
List of type public ids that have been whitelisted for use in this Zone.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ZoneTypeRestriction
constructor
A new instance of ZoneTypeRestriction.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#enable ⇒ Boolean Also known as: enable?
True if type restrictions have been enabled for this Zone.
Corresponds to the JSON property enable
2709 2710 2711 |
# File 'generated/google/apis/tagmanager_v2/classes.rb', line 2709 def enable @enable end |
#whitelisted_type_id ⇒ Array<String>
List of type public ids that have been whitelisted for use in this Zone.
Corresponds to the JSON property whitelistedTypeId
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 |