Class: Google::Apis::AndroidmanagementV1::KeyguardDismissAuthAttemptEvent

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

Overview

An attempt was made to unlock the device.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ KeyguardDismissAuthAttemptEvent

Returns a new instance of KeyguardDismissAuthAttemptEvent.



2557
2558
2559
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2557

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

Instance Attribute Details

#strong_auth_method_usedBoolean Also known as: strong_auth_method_used?

Whether a strong form of authentication (password, PIN, or pattern) was used to unlock device. Corresponds to the JSON property strongAuthMethodUsed

Returns:

  • (Boolean)


2548
2549
2550
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2548

def strong_auth_method_used
  @strong_auth_method_used
end

#successBoolean Also known as: success?

Whether the unlock attempt was successful. Corresponds to the JSON property success

Returns:

  • (Boolean)


2554
2555
2556
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2554

def success
  @success
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2562
2563
2564
2565
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2562

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