Class: Google::Apis::DriveactivityV2::ConsolidationStrategy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/driveactivity_v2/classes.rb,
lib/google/apis/driveactivity_v2/representations.rb,
lib/google/apis/driveactivity_v2/representations.rb

Overview

How the individual activities are consolidated. A set of activities may be consolidated into one combined activity if they are related in some way, such as one actor performing the same action on multiple targets, or multiple actors performing the same action on a single target. The strategy defines the rules for which activities are related.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ConsolidationStrategy

Returns a new instance of ConsolidationStrategy.



399
400
401
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 399

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#legacyGoogle::Apis::DriveactivityV2::Legacy

A strategy which consolidates activities using the grouping rules from the legacy V1 Activity API. Similar actions occurring within a window of time can be grouped across multiple targets (such as moving a set of files at once) or multiple actors (such as several users editing the same item). Grouping rules for this strategy are specific to each type of action. Corresponds to the JSON property legacy



392
393
394
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 392

def legacy
  @legacy
end

#noneGoogle::Apis::DriveactivityV2::NoConsolidation

A strategy which does no consolidation of individual activities. Corresponds to the JSON property none



397
398
399
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 397

def none
  @none
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



404
405
406
407
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 404

def update!(**args)
  @legacy = args[:legacy] if args.key?(:legacy)
  @none = args[:none] if args.key?(:none)
end