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.



1509
1510
1511
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1509

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)


1501
1502
1503
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1501

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)


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

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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