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.



1093
1094
1095
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1093

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)


1085
1086
1087
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1085

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


1091
1092
1093
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1091

def test_phone_numbers
  @test_phone_numbers
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1098
1099
1100
1101
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1098

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