Class: Google::Apis::TagmanagerV2::TagConsentSetting
- Inherits:
-
Object
- Object
- Google::Apis::TagmanagerV2::TagConsentSetting
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/tagmanager_v2/classes.rb,
lib/google/apis/tagmanager_v2/representations.rb,
lib/google/apis/tagmanager_v2/representations.rb
Instance Attribute Summary collapse
-
#consent_status ⇒ String
The tag's consent status.
-
#consent_type ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TagConsentSetting
constructor
A new instance of TagConsentSetting.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TagConsentSetting
Returns a new instance of TagConsentSetting.
2479 2480 2481 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2479 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consent_status ⇒ String
The tag's consent status. If set to NEEDED, the runtime will check that the
consent types specified by the consent_type field have been granted.
Corresponds to the JSON property consentStatus
2472 2473 2474 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2472 def @consent_status end |
#consent_type ⇒ Google::Apis::TagmanagerV2::Parameter
Represents a Google Tag Manager Parameter.
Corresponds to the JSON property consentType
2477 2478 2479 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2477 def @consent_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2484 2485 2486 2487 |
# File 'lib/google/apis/tagmanager_v2/classes.rb', line 2484 def update!(**args) @consent_status = args[:consent_status] if args.key?(:consent_status) @consent_type = args[:consent_type] if args.key?(:consent_type) end |