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



732
733
734
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 732

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



730
731
732
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 730

def impersonated_user
  @impersonated_user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



737
738
739
# File 'generated/google/apis/driveactivity_v2/classes.rb', line 737

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