Class: Google::Apis::DriveactivityV2::Actor

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/driveactivity_v2/classes.rb,
lib/google/apis/driveactivity_v2/representations.rb,
lib/google/apis/driveactivity_v2/representations.rb

Overview

The actor of a Drive activity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Actor

Returns a new instance of Actor.



184
185
186
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 184

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#administratorGoogle::Apis::DriveactivityV2::Administrator

Empty message representing an administrator. Corresponds to the JSON property administrator



160
161
162
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 160

def administrator
  @administrator
end

#anonymousGoogle::Apis::DriveactivityV2::AnonymousUser

Empty message representing an anonymous user or indicating the authenticated user should be anonymized. Corresponds to the JSON property anonymous



166
167
168
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 166

def anonymous
  @anonymous
end

#impersonationGoogle::Apis::DriveactivityV2::Impersonation

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



172
173
174
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 172

def impersonation
  @impersonation
end

#systemGoogle::Apis::DriveactivityV2::SystemEvent

Event triggered by system operations instead of end users. Corresponds to the JSON property system



177
178
179
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 177

def system
  @system
end

#userGoogle::Apis::DriveactivityV2::User

Information about an end user. Corresponds to the JSON property user



182
183
184
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 182

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



189
190
191
192
193
194
195
# File 'lib/google/apis/driveactivity_v2/classes.rb', line 189

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