Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1ProviderUserInfo

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

Overview

Information about the user as provided by various Identity Providers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1ProviderUserInfo

Returns a new instance of GoogleCloudIdentitytoolkitV1ProviderUserInfo.



1522
1523
1524
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1522

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

Instance Attribute Details

#display_nameString

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

Returns:

  • (String)


1485
1486
1487
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1485

def display_name
  @display_name
end

#emailString

The user's email address at the Identity Provider. Corresponds to the JSON property email

Returns:

  • (String)


1490
1491
1492
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1490

def email
  @email
end

#federated_idString

The user's identifier at the Identity Provider. Corresponds to the JSON property federatedId

Returns:

  • (String)


1495
1496
1497
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1495

def federated_id
  @federated_id
end

#phone_numberString

The user's phone number at the Identity Provider. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


1500
1501
1502
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1500

def phone_number
  @phone_number
end

#photo_urlString

The user's profile photo URL at the Identity Provider. Corresponds to the JSON property photoUrl

Returns:

  • (String)


1505
1506
1507
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1505

def photo_url
  @photo_url
end

#provider_idString

The ID of the Identity Provider. Corresponds to the JSON property providerId

Returns:

  • (String)


1510
1511
1512
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1510

def provider_id
  @provider_id
end

#raw_idString

The user's raw identifier directly returned from Identity Provider. Corresponds to the JSON property rawId

Returns:

  • (String)


1515
1516
1517
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1515

def raw_id
  @raw_id
end

#screen_nameString

The user's screen_name at Twitter or login name at GitHub. Corresponds to the JSON property screenName

Returns:

  • (String)


1520
1521
1522
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1520

def screen_name
  @screen_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1527

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