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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/driveactivity_v2/classes.rb,
generated/google/apis/driveactivity_v2/representations.rb,
generated/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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ConsolidationStrategy

Returns a new instance of ConsolidationStrategy



329
330
331
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 329

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



322
323
324
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 322

def legacy
  @legacy
end

#noneGoogle::Apis::DriveactivityV2::NoConsolidation

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



327
328
329
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 327

def none
  @none
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



334
335
336
337
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 334

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