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

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

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

Returns a new instance of ProviderUserInfo



2251
2252
2253
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2251

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

Instance Attribute Details

#display_nameString

The user's display name at the IDP. Corresponds to the JSON property displayName

Returns:

  • (String)


2213
2214
2215
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2213

def display_name
  @display_name
end

#emailString

User's email at IDP. Corresponds to the JSON property email

Returns:

  • (String)


2218
2219
2220
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2218

def email
  @email
end

#federated_idString

User's identifier at IDP. Corresponds to the JSON property federatedId

Returns:

  • (String)


2223
2224
2225
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2223

def federated_id
  @federated_id
end

#phone_numberString

User's phone number. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


2228
2229
2230
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2228

def phone_number
  @phone_number
end

#photo_urlString

The user's photo url at the IDP. Corresponds to the JSON property photoUrl

Returns:

  • (String)


2233
2234
2235
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2233

def photo_url
  @photo_url
end

#provider_idString

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

Returns:

  • (String)


2239
2240
2241
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2239

def provider_id
  @provider_id
end

#raw_idString

User's raw identifier directly returned from IDP. Corresponds to the JSON property rawId

Returns:

  • (String)


2244
2245
2246
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2244

def raw_id
  @raw_id
end

#screen_nameString

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

Returns:

  • (String)


2249
2250
2251
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2249

def screen_name
  @screen_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2256

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)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
  @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