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.



1350
1351
1352
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1350

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)


1343
1344
1345
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1343

def display_name
  @display_name
end

#phone_infoString

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

Returns:

  • (String)


1348
1349
1350
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1348

def phone_info
  @phone_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1355
1356
1357
1358
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1355

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