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.



1514
1515
1516
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1514

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)


1506
1507
1508
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1506

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)


1512
1513
1514
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1512

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1519
1520
1521
1522
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1519

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