Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2SignInConfig

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 related to local sign in methods.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2SignInConfig

Returns a new instance of GoogleCloudIdentitytoolkitAdminV2SignInConfig.



1407
1408
1409
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1407

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

Instance Attribute Details

#allow_duplicate_emailsBoolean Also known as: allow_duplicate_emails?

Whether to allow more than one account to have the same email. Corresponds to the JSON property allowDuplicateEmails

Returns:

  • (Boolean)


1383
1384
1385
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1383

def allow_duplicate_emails
  @allow_duplicate_emails
end

#anonymousGoogle::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2Anonymous

Configuration options related to authenticating an anonymous user. Corresponds to the JSON property anonymous



1389
1390
1391
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1389

def anonymous
  @anonymous
end

#emailGoogle::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2Email

Configuration options related to authenticating a user by their email address. Corresponds to the JSON property email



1394
1395
1396
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1394

def email
  @email
end

#hash_configGoogle::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2HashConfig

History information of the hash algorithm and key. Different accounts' passwords may be generated by different version. Corresponds to the JSON property hashConfig



1400
1401
1402
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1400

def hash_config
  @hash_config
end

#phone_numberGoogle::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PhoneNumber

Configuration options related to authenticated a user by their phone number. Corresponds to the JSON property phoneNumber



1405
1406
1407
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1405

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1412
1413
1414
1415
1416
1417
1418
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1412

def update!(**args)
  @allow_duplicate_emails = args[:allow_duplicate_emails] if args.key?(:allow_duplicate_emails)
  @anonymous = args[:anonymous] if args.key?(:anonymous)
  @email = args[:email] if args.key?(:email)
  @hash_config = args[:hash_config] if args.key?(:hash_config)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
end