Class: Google::Apis::PlayintegrityV1::DeviceIntegrity

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

Overview

Contains the device attestation information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeviceIntegrity

Returns a new instance of DeviceIntegrity.



209
210
211
# File 'lib/google/apis/playintegrity_v1/classes.rb', line 209

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

Instance Attribute Details

#device_recallGoogle::Apis::PlayintegrityV1::DeviceRecall

Contains the recall bits per device set by the developer. Corresponds to the JSON property deviceRecall



195
196
197
# File 'lib/google/apis/playintegrity_v1/classes.rb', line 195

def device_recall
  @device_recall
end

#device_recognition_verdictArray<String>

Details about the integrity of the device the app is running on. Corresponds to the JSON property deviceRecognitionVerdict

Returns:

  • (Array<String>)


200
201
202
# File 'lib/google/apis/playintegrity_v1/classes.rb', line 200

def device_recognition_verdict
  @device_recognition_verdict
end

#recent_device_activityGoogle::Apis::PlayintegrityV1::RecentDeviceActivity

Recent device activity can help developers identify devices that have exhibited hyperactive attestation activity, which could be a sign of an attack or token farming. Corresponds to the JSON property recentDeviceActivity



207
208
209
# File 'lib/google/apis/playintegrity_v1/classes.rb', line 207

def recent_device_activity
  @recent_device_activity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



214
215
216
217
218
# File 'lib/google/apis/playintegrity_v1/classes.rb', line 214

def update!(**args)
  @device_recall = args[:device_recall] if args.key?(:device_recall)
  @device_recognition_verdict = args[:device_recognition_verdict] if args.key?(:device_recognition_verdict)
  @recent_device_activity = args[:recent_device_activity] if args.key?(:recent_device_activity)
end