Class: Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1MfaEnrollment
- Inherits:
-
Object
- Object
- Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1MfaEnrollment
- 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
Overview
Information on which multi-factor authentication (MFA) providers are enabled for an account.
Instance Attribute Summary collapse
-
#display_name ⇒ String
Display name for this mfa option e.g.
-
#email_info ⇒ Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1EmailInfo
Information about email MFA.
-
#enrolled_at ⇒ String
Timestamp when the account enrolled this second factor.
-
#mfa_enrollment_id ⇒ String
ID of this MFA option.
-
#phone_info ⇒ String
Normally this will show the phone number associated with this enrollment.
-
#totp_info ⇒ Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1TotpInfo
Information about TOTP MFA.
-
#unobfuscated_phone_info ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1MfaEnrollment
constructor
A new instance of GoogleCloudIdentitytoolkitV1MfaEnrollment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV1MfaEnrollment
1372 1373 1374 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1372 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Display name for this mfa option e.g. "corp cell phone".
Corresponds to the JSON property displayName
1338 1339 1340 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1338 def display_name @display_name end |
#email_info ⇒ Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1EmailInfo
Information about email MFA.
Corresponds to the JSON property emailInfo
1343 1344 1345 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1343 def email_info @email_info end |
#enrolled_at ⇒ String
Timestamp when the account enrolled this second factor.
Corresponds to the JSON property enrolledAt
1348 1349 1350 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1348 def enrolled_at @enrolled_at end |
#mfa_enrollment_id ⇒ String
ID of this MFA option.
Corresponds to the JSON property mfaEnrollmentId
1353 1354 1355 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1353 def mfa_enrollment_id @mfa_enrollment_id end |
#phone_info ⇒ String
Normally this will show the phone number associated with this enrollment. In
some situations, such as after a first factor sign in, it will only show the
obfuscated version of the associated phone number.
Corresponds to the JSON property phoneInfo
1360 1361 1362 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1360 def phone_info @phone_info end |
#totp_info ⇒ Google::Apis::IdentitytoolkitV1::GoogleCloudIdentitytoolkitV1TotpInfo
Information about TOTP MFA.
Corresponds to the JSON property totpInfo
1365 1366 1367 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1365 def totp_info @totp_info end |
#unobfuscated_phone_info ⇒ String
Output only. Unobfuscated phone_info.
Corresponds to the JSON property unobfuscatedPhoneInfo
1370 1371 1372 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1370 def end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1377 1378 1379 1380 1381 1382 1383 1384 1385 |
# File 'lib/google/apis/identitytoolkit_v1/classes.rb', line 1377 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @email_info = args[:email_info] if args.key?(:email_info) @enrolled_at = args[:enrolled_at] if args.key?(:enrolled_at) @mfa_enrollment_id = args[:mfa_enrollment_id] if args.key?(:mfa_enrollment_id) @phone_info = args[:phone_info] if args.key?(:phone_info) @totp_info = args[:totp_info] if args.key?(:totp_info) = args[:unobfuscated_phone_info] if args.key?(:unobfuscated_phone_info) end |