Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1MfaFactor

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/identitytoolkit_v1/classes.rb,
lib/google/apis/identitytoolkit_v1/representations.rb,
lib/google/apis/identitytoolkit_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1MfaFactor

Returns a new instance of GoogleCloudIdentitytoolkitV1MfaFactor.



1396
1397
1398
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1396

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

Instance Attribute Details

#display_nameString

Display name for this mfa option e.g. "corp cell phone". Corresponds to the JSON property displayName

Returns:

  • (String)


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

def display_name
  @display_name
end

#phone_infoString

Phone number to receive OTP for MFA. Corresponds to the JSON property phoneInfo

Returns:

  • (String)


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

def phone_info
  @phone_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1401
1402
1403
1404
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1401

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