Class: Google::Apis::DriveactivityV2::Impersonation

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

Overview

Information about an impersonation, where an admin acts on behalf of an end user. Information about the acting admin is not currently available.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Impersonation

Returns a new instance of Impersonation.



854
855
856
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 854

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

Instance Attribute Details

#impersonated_userGoogle::Apis::DriveactivityV2::User

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



852
853
854
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 852

def impersonated_user
  @impersonated_user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



859
860
861
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 859

def update!(**args)
  @impersonated_user = args[:impersonated_user] if args.key?(:impersonated_user)
end