Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PhoneNumber

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 authenticated a user by their phone number.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2PhoneNumber

Returns a new instance of GoogleCloudIdentitytoolkitAdminV2PhoneNumber.



1343
1344
1345
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1343

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

Instance Attribute Details

#enabledBoolean Also known as: enabled?

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

Returns:

  • (Boolean)


1335
1336
1337
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1335

def enabled
  @enabled
end

#test_phone_numbersHash<String,String>

A map of that can be used for phone auth testing. Corresponds to the JSON property testPhoneNumbers

Returns:

  • (Hash<String,String>)


1341
1342
1343
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1341

def test_phone_numbers
  @test_phone_numbers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1348
1349
1350
1351
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1348

def update!(**args)
  @enabled = args[:enabled] if args.key?(:enabled)
  @test_phone_numbers = args[:test_phone_numbers] if args.key?(:test_phone_numbers)
end