Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2Email

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#enabledBoolean Also known as: enabled?

Whether email auth is enabled for the project or not. Corresponds to the JSON property enabled

Returns:

  • (Boolean)


546
547
548
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 546

def enabled
  @enabled
end

#password_requiredBoolean 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

Returns:

  • (Boolean)


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