Class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1PhoneAuthenticationEvent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/recaptchaenterprise_v1/classes.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb,
lib/google/apis/recaptchaenterprise_v1/representations.rb

Overview

Details on a phone authentication event

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRecaptchaenterpriseV1PhoneAuthenticationEvent

Returns a new instance of GoogleCloudRecaptchaenterpriseV1PhoneAuthenticationEvent.



1681
1682
1683
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1681

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

Instance Attribute Details

#event_timeString

Optional. The time at which the multi-factor authentication event (challenge or verification) occurred. Corresponds to the JSON property eventTime

Returns:

  • (String)


1673
1674
1675
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1673

def event_time
  @event_time
end

#phone_numberString

Required. Phone number in E.164 format for which a multi-factor authentication challenge was initiated, succeeded, or failed. Corresponds to the JSON property phoneNumber

Returns:

  • (String)


1679
1680
1681
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1679

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1686
1687
1688
1689
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1686

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