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.



3095
3096
3097
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3095

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)


3019
3020
3021
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3019

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)


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

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)


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

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)


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

def id_token
  @id_token
end

#kindString

Corresponds to the JSON property kind

Returns:

  • (String)


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

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)


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

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



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

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)


3057
3058
3059
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3057

def mfa_pending_credential
  @mfa_pending_credential
end

#oauth_access_tokenString

The OAuth2 access token. Corresponds to the JSON property oauthAccessToken

Returns:

  • (String)


3062
3063
3064
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3062

def oauth_access_token
  @oauth_access_token
end

#oauth_authorization_codeString

Corresponds to the JSON property oauthAuthorizationCode

Returns:

  • (String)


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

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)


3072
3073
3074
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3072

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)


3077
3078
3079
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3077

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)


3082
3083
3084
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3082

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)


3087
3088
3089
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3087

def registered
  @registered
end

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

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



3093
3094
3095
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3093

def user_notifications
  @user_notifications
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 3100

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