Class: Google::Apis::IdentitytoolkitV3::UserInfo::ProviderUserInfo
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV3::UserInfo::ProviderUserInfo
- 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
Instance Attribute Summary collapse
-
#display_name ⇒ String
The user's display name at the IDP.
-
#email ⇒ String
User's email at IDP.
-
#federated_id ⇒ String
User's identifier at IDP.
-
#photo_url ⇒ String
The user's photo url at the IDP.
-
#provider_id ⇒ String
The IdP ID.
-
#raw_id ⇒ String
User's raw identifier directly returned from IDP.
-
#screen_name ⇒ String
User's screen name at Twitter or login name at Github.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProviderUserInfo
constructor
A new instance of ProviderUserInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ProviderUserInfo
Returns a new instance of ProviderUserInfo
1847 1848 1849 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1847 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
The user's display name at the IDP.
Corresponds to the JSON property displayName
1814 1815 1816 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1814 def display_name @display_name end |
#email ⇒ String
User's email at IDP.
Corresponds to the JSON property email
1819 1820 1821 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1819 def email @email end |
#federated_id ⇒ String
User's identifier at IDP.
Corresponds to the JSON property federatedId
1824 1825 1826 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1824 def federated_id @federated_id end |
#photo_url ⇒ String
The user's photo url at the IDP.
Corresponds to the JSON property photoUrl
1829 1830 1831 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1829 def photo_url @photo_url end |
#provider_id ⇒ String
The IdP ID. For white listed IdPs it's a short domain name, e.g., google.com,
aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP identifier.
Corresponds to the JSON property providerId
1835 1836 1837 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1835 def provider_id @provider_id end |
#raw_id ⇒ String
User's raw identifier directly returned from IDP.
Corresponds to the JSON property rawId
1840 1841 1842 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1840 def raw_id @raw_id end |
#screen_name ⇒ String
User's screen name at Twitter or login name at Github.
Corresponds to the JSON property screenName
1845 1846 1847 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1845 def screen_name @screen_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1852 1853 1854 1855 1856 1857 1858 1859 1860 |
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 1852 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @email = args[:email] if args.key?(:email) @federated_id = args[:federated_id] if args.key?(:federated_id) @photo_url = args[:photo_url] if args.key?(:photo_url) @provider_id = args[:provider_id] if args.key?(:provider_id) @raw_id = args[:raw_id] if args.key?(:raw_id) @screen_name = args[:screen_name] if args.key?(:screen_name) end |