Class: Google::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaDataRetentionSettings

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_retentionString

The length of time that event-level data is retained. Corresponds to the JSON property eventDataRetention

Returns:

  • (String)


1122
1123
1124
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1122

def event_data_retention
  @event_data_retention
end

#nameString

Output only. Resource name for this DataRetentionSetting resource. Format: properties/property/dataRetentionSettings Corresponds to the JSON property name

Returns:

  • (String)


1128
1129
1130
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1128

def name
  @name
end

#reset_user_data_on_new_activityBoolean 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

Returns:

  • (Boolean)


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