Class: Google::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo

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

App Verification info for a StartMfa request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo

Returns a new instance of GoogleCloudIdentitytoolkitV2StartMfaPhoneRequestInfo.



1899
1900
1901
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1899

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

Instance Attribute Details

#auto_retrieval_infoGoogle::Apis::IdentitytoolkitV2::GoogleCloudIdentitytoolkitV2AutoRetrievalInfo

The information required to auto-retrieve an SMS. Corresponds to the JSON property autoRetrievalInfo



1869
1870
1871
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1869

def auto_retrieval_info
  @auto_retrieval_info
end

#ios_receiptString

iOS only. Receipt of successful app token validation with APNS. Corresponds to the JSON property iosReceipt

Returns:

  • (String)


1874
1875
1876
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1874

def ios_receipt
  @ios_receipt
end

#ios_secretString

iOS only. Secret delivered to iOS app via APNS. Corresponds to the JSON property iosSecret

Returns:

  • (String)


1879
1880
1881
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1879

def ios_secret
  @ios_secret
end

#phone_numberString

Required for enrollment. Phone number to be enrolled as MFA. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


1884
1885
1886
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1884

def phone_number
  @phone_number
end

#recaptcha_tokenString

Web only. Recaptcha solution. Corresponds to the JSON property recaptchaToken

Returns:

  • (String)


1889
1890
1891
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1889

def recaptcha_token
  @recaptcha_token
end

#safety_net_tokenString

Android only. Used to assert application identity in place of a recaptcha token. A SafetyNet Token can be generated via the SafetyNet Android Attestation API, with the Base64 encoding of the phone_number field as the nonce. Corresponds to the JSON property safetyNetToken

Returns:

  • (String)


1897
1898
1899
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1897

def safety_net_token
  @safety_net_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1904
1905
1906
1907
1908
1909
1910
1911
# File 'lib/google/apis/identitytoolkit_v2/classes.rb', line 1904

def update!(**args)
  @auto_retrieval_info = args[:auto_retrieval_info] if args.key?(:auto_retrieval_info)
  @ios_receipt = args[:ios_receipt] if args.key?(:ios_receipt)
  @ios_secret = args[:ios_secret] if args.key?(:ios_secret)
  @phone_number = args[:phone_number] if args.key?(:phone_number)
  @recaptcha_token = args[:recaptcha_token] if args.key?(:recaptcha_token)
  @safety_net_token = args[:safety_net_token] if args.key?(:safety_net_token)
end