Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1SignInWithPasswordResponse

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

Response message for SignInWithPassword.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1SignInWithPasswordResponse

Returns a new instance of GoogleCloudIdentitytoolkitV1SignInWithPasswordResponse.



3068
3069
3070
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3068

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

Instance Attribute Details

#display_nameString

The user's display name stored in the account's attributes. Corresponds to the JSON property displayName

Returns:

  • (String)


2992
2993
2994
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2992

def display_name
  @display_name
end

#emailString

The email of the authenticated user. Always present in the response. Corresponds to the JSON property email

Returns:

  • (String)


2997
2998
2999
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 2997

def email
  @email
end

#expires_inFixnum

The number of seconds until the Identity Platform ID token expires. Corresponds to the JSON property expiresIn

Returns:

  • (Fixnum)


3002
3003
3004
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3002

def expires_in
  @expires_in
end

#id_tokenString

An Identity Platform ID token for the authenticated user. Corresponds to the JSON property idToken

Returns:

  • (String)


3007
3008
3009
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3007

def id_token
  @id_token
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


3012
3013
3014
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3012

def kind
  @kind
end

#local_idString

The ID of the authenticated user. Always present in the response. Corresponds to the JSON property localId

Returns:

  • (String)


3017
3018
3019
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3017

def local_id
  @local_id
end

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

Info on which multi-factor authentication providers are enabled for the account. Present if the user needs to complete the sign-in using multi-factor authentication. Corresponds to the JSON property mfaInfo



3024
3025
3026
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3024

def mfa_info
  @mfa_info
end

#mfa_pending_credentialString

An opaque string that functions as proof that the user has successfully passed the first factor authentication. Corresponds to the JSON property mfaPendingCredential

Returns:

  • (String)


3030
3031
3032
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3030

def mfa_pending_credential
  @mfa_pending_credential
end

#oauth_access_tokenString

The OAuth2 access token. Corresponds to the JSON property oauthAccessToken

Returns:

  • (String)


3035
3036
3037
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3035

def oauth_access_token
  @oauth_access_token
end

#oauth_authorization_codeString

Corresponds to the JSON property oauthAuthorizationCode

Returns:

  • (String)


3040
3041
3042
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3040

def oauth_authorization_code
  @oauth_authorization_code
end

#oauth_expire_inFixnum

The access token expiration time in seconds. Corresponds to the JSON property oauthExpireIn

Returns:

  • (Fixnum)


3045
3046
3047
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3045

def oauth_expire_in
  @oauth_expire_in
end

#profile_pictureString

The user's profile picture stored in the account's attributes. Corresponds to the JSON property profilePicture

Returns:

  • (String)


3050
3051
3052
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3050

def profile_picture
  @profile_picture
end

#refresh_tokenString

An Identity Platform refresh token for the authenticated user. Corresponds to the JSON property refreshToken

Returns:

  • (String)


3055
3056
3057
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3055

def refresh_token
  @refresh_token
end

#registeredBoolean Also known as: registered?

Whether the email is for an existing account. Always true. Corresponds to the JSON property registered

Returns:

  • (Boolean)


3060
3061
3062
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3060

def registered
  @registered
end

#user_notificationsArray<Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1UserNotification>

Warning notifications for the user. Corresponds to the JSON property userNotifications



3066
3067
3068
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3066

def user_notifications
  @user_notifications
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3073

def update!(**args)
  @display_name = args[:display_name] if args.key?(:display_name)
  @email = args[:email] if args.key?(:email)
  @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)
  @mfa_info = args[:mfa_info] if args.key?(:mfa_info)
  @mfa_pending_credential = args[:mfa_pending_credential] if args.key?(:mfa_pending_credential)
  @oauth_access_token = args[:oauth_access_token] if args.key?(:oauth_access_token)
  @oauth_authorization_code = args[:oauth_authorization_code] if args.key?(:oauth_authorization_code)
  @oauth_expire_in = args[:oauth_expire_in] if args.key?(:oauth_expire_in)
  @profile_picture = args[:profile_picture] if args.key?(:profile_picture)
  @refresh_token = args[:refresh_token] if args.key?(:refresh_token)
  @registered = args[:registered] if args.key?(:registered)
  @user_notifications = args[:user_notifications] if args.key?(:user_notifications)
end