Class: Google::Apis::IdentitytoolkitV3::SetAccountInfoResponse

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

Respone of setting the account information.

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

Returns a new instance of SetAccountInfoResponse



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

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

Instance Attribute Details

#display_nameString

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

Returns:

  • (String)


1676
1677
1678
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1676

def display_name
  @display_name
end

#emailString

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

Returns:

  • (String)


1681
1682
1683
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1681

def email
  @email
end

#email_verifiedBoolean Also known as: email_verified?

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

Returns:

  • (Boolean)


1686
1687
1688
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1686

def email_verified
  @email_verified
end

#expires_inFixnum

If idToken is STS id token, then this field will be expiration time of STS id token in seconds. Corresponds to the JSON property expiresIn

Returns:

  • (Fixnum)


1693
1694
1695
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1693

def expires_in
  @expires_in
end

#id_tokenString

The Gitkit id token to login the newly sign up user. Corresponds to the JSON property idToken

Returns:

  • (String)


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

def id_token
  @id_token
end

#kindString

The fixed string "identitytoolkit#SetAccountInfoResponse". Corresponds to the JSON property kind

Returns:

  • (String)


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

def kind
  @kind
end

#local_idString

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

Returns:

  • (String)


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

def local_id
  @local_id
end

#new_emailString

The new email the user attempts to change to. Corresponds to the JSON property newEmail

Returns:

  • (String)


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

def new_email
  @new_email
end

#password_hashString

The user's hashed password. Corresponds to the JSON property passwordHash NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


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

def password_hash
  @password_hash
end

#photo_urlString

The photo url of the user. Corresponds to the JSON property photoUrl

Returns:

  • (String)


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

def photo_url
  @photo_url
end

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

The user's profiles at the associated IdPs. Corresponds to the JSON property providerUserInfo



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

def 
  @provider_user_info
end

#refresh_tokenString

If idToken is STS id token, then this field will be refresh token. Corresponds to the JSON property refreshToken

Returns:

  • (String)


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

def refresh_token
  @refresh_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1741

def update!(**args)
  @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)
  @expires_in = args[:expires_in] if args.key?(:expires_in)
  @id_token = args[:id_token] if args.key?(:id_token)
  @kind = args[:kind] if args.key?(:kind)
  @local_id = args[:local_id] if args.key?(:local_id)
  @new_email = args[:new_email] if args.key?(:new_email)
  @password_hash = args[:password_hash] if args.key?(:password_hash)
  @photo_url = args[:photo_url] if args.key?(:photo_url)
  @provider_user_info = args[:provider_user_info] if args.key?(:provider_user_info)
  @refresh_token = args[:refresh_token] if args.key?(:refresh_token)
end