Class: Google::Apis::AndroidpublisherV3::DeviceSelector

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

Overview

Selector for a device group. A selector consists of a set of conditions on the device that should all match (logical AND) to determine a device group eligibility. For instance, if a selector specifies RAM conditions, device model inclusion and device model exclusion, a device is considered to match if: device matches RAM conditions AND device matches one of the included device models AND device doesn't match excluded device models

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DeviceSelector

Returns a new instance of DeviceSelector.



1280
1281
1282
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1280

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

Instance Attribute Details

#device_ramGoogle::Apis::AndroidpublisherV3::DeviceRam

Conditions about a device's RAM capabilities. Corresponds to the JSON property deviceRam



1255
1256
1257
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1255

def device_ram
  @device_ram
end

#excluded_device_idsArray<Google::Apis::AndroidpublisherV3::DeviceId>

Device models excluded by this selector, even if they match all other conditions. Corresponds to the JSON property excludedDeviceIds



1261
1262
1263
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1261

def excluded_device_ids
  @excluded_device_ids
end

#forbidden_system_featuresArray<Google::Apis::AndroidpublisherV3::SystemFeature>

A device that has any of these system features is excluded by this selector, even if it matches all other conditions. Corresponds to the JSON property forbiddenSystemFeatures



1267
1268
1269
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1267

def forbidden_system_features
  @forbidden_system_features
end

#included_device_idsArray<Google::Apis::AndroidpublisherV3::DeviceId>

Device models included by this selector. Corresponds to the JSON property includedDeviceIds



1272
1273
1274
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1272

def included_device_ids
  @included_device_ids
end

#required_system_featuresArray<Google::Apis::AndroidpublisherV3::SystemFeature>

A device needs to have all these system features to be included by the selector. Corresponds to the JSON property requiredSystemFeatures



1278
1279
1280
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1278

def required_system_features
  @required_system_features
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1285
1286
1287
1288
1289
1290
1291
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1285

def update!(**args)
  @device_ram = args[:device_ram] if args.key?(:device_ram)
  @excluded_device_ids = args[:excluded_device_ids] if args.key?(:excluded_device_ids)
  @forbidden_system_features = args[:forbidden_system_features] if args.key?(:forbidden_system_features)
  @included_device_ids = args[:included_device_ids] if args.key?(:included_device_ids)
  @required_system_features = args[:required_system_features] if args.key?(:required_system_features)
end