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. If a set of activities is related they can be consolidated into one combined activity, 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.



401
402
403
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 401

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

Instance Attribute Details

#legacyGoogle::Apis::DriveactivityV2::Legacy

A strategy that 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



394
395
396
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 394

def legacy
  @legacy
end

#noneGoogle::Apis::DriveactivityV2::NoConsolidation

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



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

def none
  @none
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



406
407
408
409
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 406

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