Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2Email
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2Email
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/identitytoolkit_v2/classes.rb,
lib/google/apis/identitytoolkit_v2/representations.rb,
lib/google/apis/identitytoolkit_v2/representations.rb
Overview
Configuration options related to authenticating a user by their email address.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
(also: #enabled?)
Whether email auth is enabled for the project or not.
-
#password_required ⇒ Boolean
(also: #password_required?)
Whether a password is required for email auth or not.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2Email
constructor
A new instance of GoogleCloudIdentitytoolkitAdminV2Email.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2Email
Returns a new instance of GoogleCloudIdentitytoolkitAdminV2Email.
557 558 559 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 557 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
Whether email auth is enabled for the project or not.
Corresponds to the JSON property enabled
546 547 548 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 546 def enabled @enabled end |
#password_required ⇒ Boolean Also known as: password_required?
Whether a password is required for email auth or not. If true, both an email
and password must be provided to sign in. If false, a user may sign in via
either email/password or email link.
Corresponds to the JSON property passwordRequired
554 555 556 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 554 def password_required @password_required end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
562 563 564 565 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 562 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @password_required = args[:password_required] if args.key?(:password_required) end |