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.



1207
1208
1209
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1207

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)


1199
1200
1201
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1199

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>)


1205
1206
1207
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1205

def test_phone_numbers
  @test_phone_numbers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1212
1213
1214
1215
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1212

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