class Google::Apis::AppsactivityV1::Event

Represents the changes associated with an action taken by a user.

Attributes

additional_event_types[RW]

Additional event types. Some events may have multiple types when multiple actions are part of a single event. For example, creating a document, renaming it, and sharing it may be part of a single file-creation event. Corresponds to the JSON property `additionalEventTypes` @return [Array<String>]

event_time_millis[RW]

The time at which the event occurred formatted as Unix time in milliseconds. Corresponds to the JSON property `eventTimeMillis` @return [String]

from_user_deletion[RW]

Whether this event is caused by a user being deleted. Corresponds to the JSON property `fromUserDeletion` @return [Boolean]

from_user_deletion?[RW]

Whether this event is caused by a user being deleted. Corresponds to the JSON property `fromUserDeletion` @return [Boolean]

move[RW]

Contains information about changes in an object's parents as a result of a move type event. Corresponds to the JSON property `move` @return [Google::Apis::AppsactivityV1::Move]

permission_changes[RW]

Extra information for permissionChange type events, such as the user or group the new permission applies to. Corresponds to the JSON property `permissionChanges` @return [Array<Google::Apis::AppsactivityV1::PermissionChange>]

primary_event_type[RW]

The main type of event that occurred. Corresponds to the JSON property `primaryEventType` @return [String]

rename[RW]

Contains information about a renametype event. Corresponds to the JSON property `rename` @return [Google::Apis::AppsactivityV1::Rename]

target[RW]

Information about the object modified by the event. Corresponds to the JSON property `target` @return [Google::Apis::AppsactivityV1::Target]

user[RW]

A representation of a user. Corresponds to the JSON property `user` @return [Google::Apis::AppsactivityV1::User]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/appsactivity_v1/classes.rb, line 111
def update!(**args)
  @additional_event_types = args[:additional_event_types] if args.key?(:additional_event_types)
  @event_time_millis = args[:event_time_millis] if args.key?(:event_time_millis)
  @from_user_deletion = args[:from_user_deletion] if args.key?(:from_user_deletion)
  @move = args[:move] if args.key?(:move)
  @permission_changes = args[:permission_changes] if args.key?(:permission_changes)
  @primary_event_type = args[:primary_event_type] if args.key?(:primary_event_type)
  @rename = args[:rename] if args.key?(:rename)
  @target = args[:target] if args.key?(:target)
  @user = args[:user] if args.key?(:user)
end