Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PhoneNumber
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitAdminV2PhoneNumber
- 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
-
#enabled ⇒ Boolean
(also: #enabled?)
Whether phone number auth is enabled for the project or not.
-
#test_phone_numbers ⇒ Hash<String,String>
A map of that can be used for phone auth testing.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitAdminV2PhoneNumber
constructor
A new instance of GoogleCloudIdentitytoolkitAdminV2PhoneNumber.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#enabled ⇒ Boolean Also known as: enabled?
Whether phone number auth is enabled for the project or not.
Corresponds to the JSON property enabled
1335 1336 1337 |
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1335 def enabled @enabled end |
#test_phone_numbers ⇒ Hash<String,String>
A map of that can be used for phone auth testing.
Corresponds to the JSON property testPhoneNumbers
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 |