Class: Google::Apis::IdentitytoolkitV3::VerifyPasswordResponse

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

Overview

Request of verifying the password.

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

Returns a new instance of VerifyPasswordResponse



2235
2236
2237
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2235

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

Instance Attribute Details

#display_nameString

The name of the user. Corresponds to the JSON property displayName

Returns:

  • (String)


2174
2175
2176
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2174

def display_name
  @display_name
end

#emailString

The email returned by the IdP. NOTE: The federated login user may not own the email. Corresponds to the JSON property email

Returns:

  • (String)


2180
2181
2182
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2180

def email
  @email
end

#expires_inString

If idToken is STS id token, then this field will be expiration time of STS id token in seconds. Corresponds to the JSON property expiresIn

Returns:

  • (String)


2186
2187
2188
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2186

def expires_in
  @expires_in
end

#id_tokenString

The GITKit token for authenticated user. Corresponds to the JSON property idToken

Returns:

  • (String)


2191
2192
2193
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2191

def id_token
  @id_token
end

#kindString

The fixed string "identitytoolkit#VerifyPasswordResponse". Corresponds to the JSON property kind

Returns:

  • (String)


2196
2197
2198
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2196

def kind
  @kind
end

#local_idString

The RP local ID if it's already been mapped to the IdP account identified by the federated ID. Corresponds to the JSON property localId

Returns:

  • (String)


2202
2203
2204
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2202

def local_id
  @local_id
end

#oauth_access_tokenString

The OAuth2 access token. Corresponds to the JSON property oauthAccessToken

Returns:

  • (String)


2207
2208
2209
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2207

def oauth_access_token
  @oauth_access_token
end

#oauth_authorization_codeString

The OAuth2 authorization code. Corresponds to the JSON property oauthAuthorizationCode

Returns:

  • (String)


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

def oauth_authorization_code
  @oauth_authorization_code
end

#oauth_expire_inFixnum

The lifetime in seconds of the OAuth2 access token. Corresponds to the JSON property oauthExpireIn

Returns:

  • (Fixnum)


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

def oauth_expire_in
  @oauth_expire_in
end

#photo_urlString

The URI of the user's photo at IdP Corresponds to the JSON property photoUrl

Returns:

  • (String)


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

def photo_url
  @photo_url
end

#refresh_tokenString

If idToken is STS id token, then this field will be refresh token. Corresponds to the JSON property refreshToken

Returns:

  • (String)


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

def refresh_token
  @refresh_token
end

#registeredBoolean Also known as: registered?

Whether the email is registered. Corresponds to the JSON property registered

Returns:

  • (Boolean)


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

def registered
  @registered
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 2240

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