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.



246
247
248
# File 'lib/google/apis/playintegrity_v1/classes.rb', line 246

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

Instance Attribute Details

#device_attributesGoogle::Apis::PlayintegrityV1::DeviceAttributes

Contains information about the device for which the integrity token was generated, e.g. Android SDK version. Corresponds to the JSON property deviceAttributes



219
220
221
# File 'lib/google/apis/playintegrity_v1/classes.rb', line 219

def device_attributes
  @device_attributes
end

#device_recallGoogle::Apis::PlayintegrityV1::DeviceRecall

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



224
225
226
# File 'lib/google/apis/playintegrity_v1/classes.rb', line 224

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>)


229
230
231
# File 'lib/google/apis/playintegrity_v1/classes.rb', line 229

def device_recognition_verdict
  @device_recognition_verdict
end

#legacy_device_recognition_verdictArray<String>

Contains legacy details about the integrity of the device the app is running on. Only for devices with Android version T or higher and only for apps opted in to the new verdicts. Only available during the transition period to the new verdicts system and will be removed afterwards. Corresponds to the JSON property legacyDeviceRecognitionVerdict

Returns:

  • (Array<String>)


237
238
239
# File 'lib/google/apis/playintegrity_v1/classes.rb', line 237

def legacy_device_recognition_verdict
  @legacy_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



244
245
246
# File 'lib/google/apis/playintegrity_v1/classes.rb', line 244

def recent_device_activity
  @recent_device_activity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



251
252
253
254
255
256
257
# File 'lib/google/apis/playintegrity_v1/classes.rb', line 251

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