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.



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

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)


1387
1388
1389
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1387

def display_name
  @display_name
end

#phone_infoString

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

Returns:

  • (String)


1392
1393
1394
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1392

def phone_info
  @phone_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1399
1400
1401
1402
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1399

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