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.



1429
1430
1431
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1429

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)


1421
1422
1423
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1421

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)


1427
1428
1429
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1427

def phone_number
  @phone_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1434
1435
1436
1437
# File 'lib/google/apis/recaptchaenterprise_v1/classes.rb', line 1434

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