Class: Google::Apis::AdminReportsV1::UserIdentity

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

Overview

Identity of the user who owns the resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UserIdentity

Returns a new instance of UserIdentity.



1571
1572
1573
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1571

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

Instance Attribute Details

#idString

User gaia id. Corresponds to the JSON property id

Returns:

  • (String)


1564
1565
1566
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1564

def id
  @id
end

#user_emailString

User email. Corresponds to the JSON property userEmail

Returns:

  • (String)


1569
1570
1571
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1569

def user_email
  @user_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1576
1577
1578
1579
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1576

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