Class: Google::Apis::IdentitytoolkitV3::UserInfo
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV3::UserInfo
- 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
-
#created_at ⇒ Fixnum
User creation timestamp.
-
#custom_attributes ⇒ String
The custom attributes to be set in the user's id token.
-
#custom_auth ⇒ Boolean
(also: #custom_auth?)
Whether the user is authenticated by the developer.
-
#disabled ⇒ Boolean
(also: #disabled?)
Whether the user is disabled.
-
#display_name ⇒ String
The name of the user.
-
#email ⇒ String
The email of the user.
-
#email_verified ⇒ Boolean
(also: #email_verified?)
Whether the email has been verified.
-
#last_login_at ⇒ Fixnum
last login timestamp.
-
#local_id ⇒ String
The local ID of the user.
-
#password_hash ⇒ String
The user's hashed password.
-
#password_updated_at ⇒ Float
The timestamp when the password was last updated.
-
#phone_number ⇒ String
User's phone number.
-
#photo_url ⇒ String
The URL of the user profile photo.
-
#provider_user_info ⇒ Array<Google::Apis::IdentitytoolkitV3::UserInfo::ProviderUserInfo>
The IDP of the user.
-
#raw_password ⇒ String
The user's plain text password.
-
#salt ⇒ String
The user's password salt.
-
#screen_name ⇒ String
User's screen name at Twitter or login name at Github.
-
#valid_since ⇒ Fixnum
Timestamp in seconds for valid login token.
-
#version ⇒ Fixnum
Version of the user's password.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UserInfo
constructor
A new instance of UserInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UserInfo
Returns a new instance of UserInfo
2030 2031 2032 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2030 def initialize(**args) update!(**args) end |
Instance Attribute Details
#created_at ⇒ Fixnum
User creation timestamp.
Corresponds to the JSON property createdAt
1933 1934 1935 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1933 def created_at @created_at end |
#custom_attributes ⇒ String
The custom attributes to be set in the user's id token.
Corresponds to the JSON property customAttributes
1938 1939 1940 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1938 def custom_attributes @custom_attributes end |
#custom_auth ⇒ Boolean Also known as: custom_auth?
Whether the user is authenticated by the developer.
Corresponds to the JSON property customAuth
1943 1944 1945 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1943 def custom_auth @custom_auth end |
#disabled ⇒ Boolean Also known as: disabled?
Whether the user is disabled.
Corresponds to the JSON property disabled
1949 1950 1951 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1949 def disabled @disabled end |
#display_name ⇒ String
The name of the user.
Corresponds to the JSON property displayName
1955 1956 1957 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1955 def display_name @display_name end |
#email ⇒ String
The email of the user.
Corresponds to the JSON property email
1960 1961 1962 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1960 def email @email end |
#email_verified ⇒ Boolean Also known as: email_verified?
Whether the email has been verified.
Corresponds to the JSON property emailVerified
1965 1966 1967 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1965 def email_verified @email_verified end |
#last_login_at ⇒ Fixnum
last login timestamp.
Corresponds to the JSON property lastLoginAt
1971 1972 1973 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1971 def last_login_at @last_login_at end |
#local_id ⇒ String
The local ID of the user.
Corresponds to the JSON property localId
1976 1977 1978 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1976 def local_id @local_id end |
#password_hash ⇒ String
The user's hashed password.
Corresponds to the JSON property passwordHash
NOTE: Values are automatically base64 encoded/decoded in the client library.
1982 1983 1984 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1982 def password_hash @password_hash end |
#password_updated_at ⇒ Float
The timestamp when the password was last updated.
Corresponds to the JSON property passwordUpdatedAt
1987 1988 1989 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1987 def password_updated_at @password_updated_at end |
#phone_number ⇒ String
User's phone number.
Corresponds to the JSON property phoneNumber
1992 1993 1994 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1992 def phone_number @phone_number end |
#photo_url ⇒ String
The URL of the user profile photo.
Corresponds to the JSON property photoUrl
1997 1998 1999 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1997 def photo_url @photo_url end |
#provider_user_info ⇒ Array<Google::Apis::IdentitytoolkitV3::UserInfo::ProviderUserInfo>
The IDP of the user.
Corresponds to the JSON property providerUserInfo
2002 2003 2004 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2002 def provider_user_info @provider_user_info end |
#raw_password ⇒ String
The user's plain text password.
Corresponds to the JSON property rawPassword
2007 2008 2009 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2007 def raw_password @raw_password end |
#salt ⇒ String
The user's password salt.
Corresponds to the JSON property salt
NOTE: Values are automatically base64 encoded/decoded in the client library.
2013 2014 2015 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2013 def salt @salt end |
#screen_name ⇒ String
User's screen name at Twitter or login name at Github.
Corresponds to the JSON property screenName
2018 2019 2020 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2018 def screen_name @screen_name end |
#valid_since ⇒ Fixnum
Timestamp in seconds for valid login token.
Corresponds to the JSON property validSince
2023 2024 2025 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2023 def valid_since @valid_since end |
#version ⇒ Fixnum
Version of the user's password.
Corresponds to the JSON property version
2028 2029 2030 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2028 def version @version end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2035 def update!(**args) @created_at = args[:created_at] if args.key?(:created_at) @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes) @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) @phone_number = args[:phone_number] if args.key?(:phone_number) @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 |