Class: Google::Apis::IdentitytoolkitV3::UserInfo

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

Overview

Template for an individual account info.

Defined Under Namespace

Classes: ProviderUserInfo

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) ⇒ UserInfo

Returns a new instance of UserInfo



1782
1783
1784
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1782

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

Instance Attribute Details

#created_atString

User creation timestamp. Corresponds to the JSON property createdAt

Returns:

  • (String)


1697
1698
1699
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1697

def created_at
  @created_at
end

#custom_authBoolean Also known as: custom_auth?

Whether the user is authenticated by the developer. Corresponds to the JSON property customAuth

Returns:

  • (Boolean)


1702
1703
1704
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1702

def custom_auth
  @custom_auth
end

#disabledBoolean Also known as: disabled?

Whether the user is disabled. Corresponds to the JSON property disabled

Returns:

  • (Boolean)


1708
1709
1710
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1708

def disabled
  @disabled
end

#display_nameString

The name of the user. Corresponds to the JSON property displayName

Returns:

  • (String)


1714
1715
1716
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1714

def display_name
  @display_name
end

#emailString

The email of the user. Corresponds to the JSON property email

Returns:

  • (String)


1719
1720
1721
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1719

def email
  @email
end

#email_verifiedBoolean Also known as: email_verified?

Whether the email has been verified. Corresponds to the JSON property emailVerified

Returns:

  • (Boolean)


1724
1725
1726
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1724

def email_verified
  @email_verified
end

#last_login_atString

last login timestamp. Corresponds to the JSON property lastLoginAt

Returns:

  • (String)


1730
1731
1732
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1730

def 
  @last_login_at
end

#local_idString

The local ID of the user. Corresponds to the JSON property localId

Returns:

  • (String)


1735
1736
1737
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1735

def local_id
  @local_id
end

#password_hashString

The user's hashed password. Corresponds to the JSON property passwordHash

Returns:

  • (String)


1740
1741
1742
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1740

def password_hash
  @password_hash
end

#password_updated_atFloat

The timestamp when the password was last updated. Corresponds to the JSON property passwordUpdatedAt

Returns:

  • (Float)


1745
1746
1747
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1745

def password_updated_at
  @password_updated_at
end

#photo_urlString

The URL of the user profile photo. Corresponds to the JSON property photoUrl

Returns:

  • (String)


1750
1751
1752
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1750

def photo_url
  @photo_url
end

#provider_user_infoArray<Google::Apis::IdentitytoolkitV3::UserInfo::ProviderUserInfo>

The IDP of the user. Corresponds to the JSON property providerUserInfo



1755
1756
1757
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1755

def 
  @provider_user_info
end

#raw_passwordString

The user's plain text password. Corresponds to the JSON property rawPassword

Returns:

  • (String)


1760
1761
1762
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1760

def raw_password
  @raw_password
end

#saltString

The user's password salt. Corresponds to the JSON property salt

Returns:

  • (String)


1765
1766
1767
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1765

def salt
  @salt
end

#screen_nameString

User's screen name at Twitter or login name at Github. Corresponds to the JSON property screenName

Returns:

  • (String)


1770
1771
1772
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1770

def screen_name
  @screen_name
end

#valid_sinceString

Timestamp in seconds for valid login token. Corresponds to the JSON property validSince

Returns:

  • (String)


1775
1776
1777
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1775

def valid_since
  @valid_since
end

#versionFixnum

Version of the user's password. Corresponds to the JSON property version

Returns:

  • (Fixnum)


1780
1781
1782
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1780

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1787

def update!(**args)
  @created_at = args[:created_at] if args.key?(:created_at)
  @custom_auth = args[:custom_auth] if args.key?(:custom_auth)
  @disabled = args[:disabled] if args.key?(:disabled)
  @display_name = args[:display_name] if args.key?(:display_name)
  @email = args[:email] if args.key?(:email)
  @email_verified = args[:email_verified] if args.key?(:email_verified)
  @last_login_at = args[:last_login_at] if args.key?(:last_login_at)
  @local_id = args[:local_id] if args.key?(:local_id)
  @password_hash = args[:password_hash] if args.key?(:password_hash)
  @password_updated_at = args[:password_updated_at] if args.key?(:password_updated_at)
  @photo_url = args[:photo_url] if args.key?(:photo_url)
  @provider_user_info = args[:provider_user_info] if args.key?(:provider_user_info)
  @raw_password = args[:raw_password] if args.key?(:raw_password)
  @salt = args[:salt] if args.key?(:salt)
  @screen_name = args[:screen_name] if args.key?(:screen_name)
  @valid_since = args[:valid_since] if args.key?(:valid_since)
  @version = args[:version] if args.key?(:version)
end