Class: Google::Apis::IdentitytoolkitV3::ResetPasswordRequest

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 to reset 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) ⇒ ResetPasswordRequest

Returns a new instance of ResetPasswordRequest.


591
592
593
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 591

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

Instance Attribute Details

#emailString

The email address of the user. Corresponds to the JSON property email

Returns:

  • (String)

574
575
576
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 574

def email
  @email
end

#new_passwordString

The new password inputted by the user. Corresponds to the JSON property newPassword

Returns:

  • (String)

579
580
581
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 579

def new_password
  @new_password
end

#old_passwordString

The old password inputted by the user. Corresponds to the JSON property oldPassword

Returns:

  • (String)

584
585
586
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 584

def old_password
  @old_password
end

#oob_codeString

The confirmation code. Corresponds to the JSON property oobCode

Returns:

  • (String)

589
590
591
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 589

def oob_code
  @oob_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


596
597
598
599
600
601
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 596

def update!(**args)
  @email = args[:email] if args.key?(:email)
  @new_password = args[:new_password] if args.key?(:new_password)
  @old_password = args[:old_password] if args.key?(:old_password)
  @oob_code = args[:oob_code] if args.key?(:oob_code)
end