class Google::Apis::DriveactivityV2::Action

Information about the action.

Attributes

actor[RW]

The actor of a Drive activity. Corresponds to the JSON property `actor` @return [Google::Apis::DriveactivityV2::Actor]

detail[RW]

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

target[RW]

Information about the target of activity. Corresponds to the JSON property `target` @return [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 action 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 54
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 59
def update!(**args)
  @actor = args[:actor] if args.key?(:actor)
  @detail = args[:detail] if args.key?(:detail)
  @target = args[:target] if args.key?(:target)
  @time_range = args[:time_range] if args.key?(:time_range)
  @timestamp = args[:timestamp] if args.key?(:timestamp)
end