Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1ResetPasswordRequest
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1ResetPasswordRequest
- 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
Request message for ResetPassword.
Instance Attribute Summary collapse
-
#email ⇒ String
The email of the account to be modified.
-
#new_password ⇒ String
The new password to be set for this account.
-
#old_password ⇒ String
The current password of the account to be modified.
-
#oob_code ⇒ String
An out-of-band (OOB) code generated by GetOobCode request.
-
#tenant_id ⇒ String
The tenant ID of the Identity Platform tenant the account belongs to.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1ResetPasswordRequest
constructor
A new instance of GoogleCloudIdentitytoolkitV1ResetPasswordRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1ResetPasswordRequest
Returns a new instance of GoogleCloudIdentitytoolkitV1ResetPasswordRequest.
1667 1668 1669 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1667 def initialize(**args) update!(**args) end |
Instance Attribute Details
#email ⇒ String
The email of the account to be modified. Specify this and the old password in
order to change an account's password without using an out-of-band code.
Corresponds to the JSON property email
1639 1640 1641 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1639 def email @email end |
#new_password ⇒ String
The new password to be set for this account. Specifying this field will result
in a change to the account and consume the out-of-band code if one was
specified and it was of type PASSWORD_RESET.
Corresponds to the JSON property newPassword
1646 1647 1648 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1646 def new_password @new_password end |
#old_password ⇒ String
The current password of the account to be modified. Specify this and email to
change an account's password without using an out-of-band code.
Corresponds to the JSON property oldPassword
1652 1653 1654 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1652 def old_password @old_password end |
#oob_code ⇒ String
An out-of-band (OOB) code generated by GetOobCode request. Specify only this
parameter (or only this parameter and a tenant ID) to get the out-of-band code'
s type in the response without mutating the account's state. Only a
PASSWORD_RESET out-of-band code can be consumed via this method.
Corresponds to the JSON property oobCode
1660 1661 1662 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1660 def oob_code @oob_code end |
#tenant_id ⇒ String
The tenant ID of the Identity Platform tenant the account belongs to.
Corresponds to the JSON property tenantId
1665 1666 1667 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1665 def tenant_id @tenant_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1672 1673 1674 1675 1676 1677 1678 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1672 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) @tenant_id = args[:tenant_id] if args.key?(:tenant_id) end |