Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaDataRetentionSettings

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

Instance Method Summary collapse

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_retentionString

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

Returns:

  • (String)


2716
2717
2718
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2716

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)


2722
2723
2724
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 2722

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)


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