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.



1465
1466
1467
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1465

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

Instance Attribute Details

#idString

User gaia id. Corresponds to the JSON property id

Returns:

  • (String)


1458
1459
1460
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1458

def id
  @id
end

#user_emailString

User email. Corresponds to the JSON property userEmail

Returns:

  • (String)


1463
1464
1465
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1463

def user_email
  @user_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1470
1471
1472
1473
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1470

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