Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest

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

Sends MFA enrollment verification SMS for a user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest

Returns a new instance of GoogleCloudIdentitytoolkitV2StartMfaEnrollmentRequest.



1996
1997
1998
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1996

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

Instance Attribute Details

#id_tokenString

Required. User's ID token. Corresponds to the JSON property idToken

Returns:

  • (String)


1983
1984
1985
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1983

def id_token
  @id_token
end

#phone_enrollment_infoGoogle::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo

App Verification info for a StartMfa request. Corresponds to the JSON property phoneEnrollmentInfo



1988
1989
1990
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1988

def phone_enrollment_info
  @phone_enrollment_info
end

#tenant_idString

The ID of the Identity Platform tenant that the user enrolling MFA belongs to. If not set, the user belongs to the default Identity Platform project. Corresponds to the JSON property tenantId

Returns:

  • (String)


1994
1995
1996
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1994

def tenant_id
  @tenant_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2001
2002
2003
2004
2005
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 2001

def update!(**args)
  @id_token = args[:id_token] if args.key?(:id_token)
  @phone_enrollment_info = args[:phone_enrollment_info] if args.key?(:phone_enrollment_info)
  @tenant_id = args[:tenant_id] if args.key?(:tenant_id)
end