Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1UserInfo

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

An Identity Platform account's information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1UserInfo

Returns a new instance of GoogleCloudIdentitytoolkitV1UserInfo.



3857
3858
3859
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3857

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

Instance Attribute Details

#created_atFixnum

The time, in milliseconds from epoch, when the account was created. Corresponds to the JSON property createdAt

Returns:

  • (Fixnum)


3694
3695
3696
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3694

def created_at
  @created_at
end

#custom_attributesString

Custom claims to be added to any ID tokens minted for the account. Should be at most 1,000 characters in length and in valid JSON format. Corresponds to the JSON property customAttributes

Returns:

  • (String)


3700
3701
3702
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3700

def custom_attributes
  @custom_attributes
end

#custom_authBoolean Also known as: custom_auth?

Output only. Whether this account has been authenticated using SignInWithCustomToken. Corresponds to the JSON property customAuth

Returns:

  • (Boolean)


3706
3707
3708
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3706

def custom_auth
  @custom_auth
end

#date_of_birthString

Output only. The date of birth set for the account. This account attribute is not used by Identity Platform. It is available for informational purposes only. Corresponds to the JSON property dateOfBirth

Returns:

  • (String)


3713
3714
3715
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3713

def date_of_birth
  @date_of_birth
end

#disabledBoolean Also known as: disabled?

Whether the account is disabled. Disabled accounts are inaccessible except for requests bearing a Google OAuth2 credential with proper permissions. Corresponds to the JSON property disabled

Returns:

  • (Boolean)


3719
3720
3721
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3719

def disabled
  @disabled
end

#display_nameString

The display name of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only. Corresponds to the JSON property displayName

Returns:

  • (String)


3726
3727
3728
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3726

def display_name
  @display_name
end

#emailString

The account's email address. The length of the email should be less than 256 characters and in the format of [email protected]. The email should also match the RFC 822 addr-spec. Corresponds to the JSON property email

Returns:

  • (String)


3733
3734
3735
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3733

def email
  @email
end

Output only. Whether the account can authenticate with email link. Corresponds to the JSON property emailLinkSignin

Returns:

  • (Boolean)


3738
3739
3740
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3738

def 
  
end

#email_verifiedBoolean Also known as: email_verified?

Whether the account's email address has been verified. Corresponds to the JSON property emailVerified

Returns:

  • (Boolean)


3744
3745
3746
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3744

def email_verified
  @email_verified
end

#initial_emailString

The first email address associated with this account. The account's initial email cannot be changed once set and is used to recover access to this account if lost via the RECOVER_EMAIL flow in GetOobCode. Should match the RFC 822 addr-spec. Corresponds to the JSON property initialEmail

Returns:

  • (String)


3753
3754
3755
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3753

def initial_email
  @initial_email
end

#languageString

Output only. The language preference of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only. Corresponds to the JSON property language

Returns:

  • (String)


3759
3760
3761
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3759

def language
  @language
end

#last_login_atFixnum

The last time, in milliseconds from epoch, this account was logged into. Corresponds to the JSON property lastLoginAt

Returns:

  • (Fixnum)


3764
3765
3766
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3764

def 
  
end

#last_refresh_atString

Timestamp when an ID token was last minted for this account. Corresponds to the JSON property lastRefreshAt

Returns:

  • (String)


3769
3770
3771
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3769

def last_refresh_at
  @last_refresh_at
end

#local_idString

Immutable. The unique ID of the account. Corresponds to the JSON property localId

Returns:

  • (String)


3774
3775
3776
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3774

def local_id
  @local_id
end

#mfa_infoArray<Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1MfaEnrollment>

Information on which multi-factor authentication providers are enabled for this account. Corresponds to the JSON property mfaInfo



3780
3781
3782
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3780

def mfa_info
  @mfa_info
end

#password_hashString

The account's hashed password. Only accessible by requests bearing a Google OAuth2 credential with proper permissions. Corresponds to the JSON property passwordHash NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


3788
3789
3790
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3788

def password_hash
  @password_hash
end

#password_updated_atFloat

The timestamp, in milliseconds from the epoch of 1970-01-01T00:00:00Z, when the account's password was last updated. Corresponds to the JSON property passwordUpdatedAt

Returns:

  • (Float)


3794
3795
3796
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3794

def password_updated_at
  @password_updated_at
end

#phone_numberString

The account's phone number. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


3799
3800
3801
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3799

def phone_number
  @phone_number
end

#photo_urlString

The URL of the account's profile photo. This account attribute is not used by Identity Platform. It is available for informational purposes only. Corresponds to the JSON property photoUrl

Returns:

  • (String)


3805
3806
3807
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3805

def photo_url
  @photo_url
end

#provider_user_infoArray<Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1ProviderUserInfo>

Information about the user as provided by various Identity Providers. Corresponds to the JSON property providerUserInfo



3810
3811
3812
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3810

def 
  
end

#raw_passwordString

Input only. Plain text password used to update a account's password. This field is only ever used as input in a request. Identity Platform uses cryptographically secure hashing when managing passwords and will never store or transmit a user's password in plain text. Corresponds to the JSON property rawPassword

Returns:

  • (String)


3818
3819
3820
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3818

def raw_password
  @raw_password
end

#saltString

The account's password salt. Only accessible by requests bearing a Google OAuth2 credential with proper permissions. Corresponds to the JSON property salt NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


3825
3826
3827
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3825

def salt
  @salt
end

#screen_nameString

Output only. This account's screen name at Twitter or login name at GitHub. Corresponds to the JSON property screenName

Returns:

  • (String)


3830
3831
3832
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3830

def screen_name
  @screen_name
end

#tenant_idString

ID of the tenant this account belongs to. Only set if this account belongs to a tenant. Corresponds to the JSON property tenantId

Returns:

  • (String)


3836
3837
3838
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3836

def tenant_id
  @tenant_id
end

#time_zoneString

Output only. The time zone preference of the account. This account attribute is not used by Identity Platform. It is available for informational purposes only. Corresponds to the JSON property timeZone

Returns:

  • (String)


3843
3844
3845
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3843

def time_zone
  @time_zone
end

#valid_sinceFixnum

Oldest timestamp, in seconds since epoch, that an ID token should be considered valid. All ID tokens issued before this time are considered invalid. Corresponds to the JSON property validSince

Returns:

  • (Fixnum)


3849
3850
3851
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3849

def valid_since
  @valid_since
end

#versionFixnum

The version of the account's password. Only accessible by requests bearing a Google OAuth2 credential with proper permissions. Corresponds to the JSON property version

Returns:

  • (Fixnum)


3855
3856
3857
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3855

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3862

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)
  @date_of_birth = args[:date_of_birth] if args.key?(:date_of_birth)
  @disabled = args[:disabled] if args.key?(:disabled)
  @display_name = args[:display_name] if args.key?(:display_name)
  @email = args[:email] if args.key?(:email)
   = args[:email_link_signin] if args.key?(:email_link_signin)
  @email_verified = args[:email_verified] if args.key?(:email_verified)
  @initial_email = args[:initial_email] if args.key?(:initial_email)
  @language = args[:language] if args.key?(:language)
   = args[:last_login_at] if args.key?(:last_login_at)
  @last_refresh_at = args[:last_refresh_at] if args.key?(:last_refresh_at)
  @local_id = args[:local_id] if args.key?(:local_id)
  @mfa_info = args[:mfa_info] if args.key?(:mfa_info)
  @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)
   = 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)
  @tenant_id = args[:tenant_id] if args.key?(:tenant_id)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
  @valid_since = args[:valid_since] if args.key?(:valid_since)
  @version = args[:version] if args.key?(:version)
end