Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataRetentionSettings
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataRetentionSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsadmin_v1alpha/classes.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb
Overview
Settings values for data retention. This is a singleton resource.
Instance Attribute Summary collapse
-
#event_data_retention ⇒ String
The length of time that event-level data is retained.
-
#name ⇒ String
Output only.
-
#reset_user_data_on_new_activity ⇒ Boolean
(also: #reset_user_data_on_new_activity?)
If true, reset the retention period for the user identifier with every event from that user.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaDataRetentionSettings
constructor
A new instance of GoogleAnalyticsAdminV1alphaDataRetentionSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaDataRetentionSettings
Returns a new instance of GoogleAnalyticsAdminV1alphaDataRetentionSettings.
2731 2732 2733 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2731 def initialize(**args) update!(**args) end |
Instance Attribute Details
#event_data_retention ⇒ String
The length of time that event-level data is retained.
Corresponds to the JSON property eventDataRetention
2716 2717 2718 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2716 def event_data_retention @event_data_retention end |
#name ⇒ String
Output only. Resource name for this DataRetentionSetting resource. Format:
properties/property
/dataRetentionSettings
Corresponds to the JSON property name
2722 2723 2724 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2722 def name @name end |
#reset_user_data_on_new_activity ⇒ Boolean Also known as: reset_user_data_on_new_activity?
If true, reset the retention period for the user identifier with every event
from that user.
Corresponds to the JSON property resetUserDataOnNewActivity
2728 2729 2730 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2728 def reset_user_data_on_new_activity @reset_user_data_on_new_activity end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2736 2737 2738 2739 2740 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2736 def update!(**args) @event_data_retention = args[:event_data_retention] if args.key?(:event_data_retention) @name = args[:name] if args.key?(:name) @reset_user_data_on_new_activity = args[:reset_user_data_on_new_activity] if args.key?(:reset_user_data_on_new_activity) end |