class Google::Apis::DriveactivityV2::DriveActivity

A single Drive activity comprising one or more Actions by one or more Actors on one or more Targets. Some Action groupings occur spontaneously, such as moving an item into a shared folder triggering a permission change. Other groupings of related Actions, such as multiple Actors editing one item or moving multiple files into a new folder, are controlled by the selection of a ConsolidationStrategy in the QueryDriveActivityRequest.

Attributes

actions[RW]

Details on all actions in this activity. Corresponds to the JSON property `actions` @return [Array<Google::Apis::DriveactivityV2::Action>]

actors[RW]

All actor(s) responsible for the activity. Corresponds to the JSON property `actors` @return [Array<Google::Apis::DriveactivityV2::Actor>]

primary_action_detail[RW]

Data describing the type and additional information of an action. Corresponds to the JSON property `primaryActionDetail` @return [Google::Apis::DriveactivityV2::ActionDetail]

targets[RW]

All Google Drive objects this activity is about (e.g. file, folder, drive). This represents the state of the target immediately after the actions occurred. Corresponds to the JSON property `targets` @return [Array<Google::Apis::DriveactivityV2::Target>]

time_range[RW]

Information about time ranges. Corresponds to the JSON property `timeRange` @return [Google::Apis::DriveactivityV2::TimeRange]

timestamp[RW]

The activity occurred at this specific time. Corresponds to the JSON property `timestamp` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/driveactivity_v2/classes.rb, line 544
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/driveactivity_v2/classes.rb, line 549
def update!(**args)
  @actions = args[:actions] if args.key?(:actions)
  @actors = args[:actors] if args.key?(:actors)
  @primary_action_detail = args[:primary_action_detail] if args.key?(:primary_action_detail)
  @targets = args[:targets] if args.key?(:targets)
  @time_range = args[:time_range] if args.key?(:time_range)
  @timestamp = args[:timestamp] if args.key?(:timestamp)
end