class Google::Apis::DriveactivityV2::Actor

The actor of a Drive activity.

Attributes

administrator[RW]

Empty message representing an administrator. Corresponds to the JSON property `administrator` @return [Google::Apis::DriveactivityV2::Administrator]

anonymous[RW]

Empty message representing an anonymous user or indicating the authenticated user should be anonymized. Corresponds to the JSON property `anonymous` @return [Google::Apis::DriveactivityV2::AnonymousUser]

impersonation[RW]

Information about an impersonation, where an admin acts on behalf of an end user. Information about the acting admin is not currently available. Corresponds to the JSON property `impersonation` @return [Google::Apis::DriveactivityV2::Impersonation]

system[RW]

Event triggered by system operations instead of end users. Corresponds to the JSON property `system` @return [Google::Apis::DriveactivityV2::SystemEvent]

user[RW]

Information about an end user. Corresponds to the JSON property `user` @return [Google::Apis::DriveactivityV2::User]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/driveactivity_v2/classes.rb, line 178
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 183
def update!(**args)
  @administrator = args[:administrator] if args.key?(:administrator)
  @anonymous = args[:anonymous] if args.key?(:anonymous)
  @impersonation = args[:impersonation] if args.key?(:impersonation)
  @system = args[:system] if args.key?(:system)
  @user = args[:user] if args.key?(:user)
end