Class: Google::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaDataRetentionSettings
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaDataRetentionSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsadmin_v1beta/classes.rb,
lib/google/apis/analyticsadmin_v1beta/representations.rb,
lib/google/apis/analyticsadmin_v1beta/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) ⇒ GoogleAnalyticsAdminV1betaDataRetentionSettings
constructor
A new instance of GoogleAnalyticsAdminV1betaDataRetentionSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAnalyticsAdminV1betaDataRetentionSettings
Returns a new instance of GoogleAnalyticsAdminV1betaDataRetentionSettings.
1137 1138 1139 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1137 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
1122 1123 1124 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1122 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
1128 1129 1130 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1128 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
1134 1135 1136 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1134 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
1142 1143 1144 1145 1146 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1142 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 |