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.



998
999
1000
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 998

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



973
974
975
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 973

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



979
980
981
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 979

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



985
986
987
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 985

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



990
991
992
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 990

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



996
997
998
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 996

def required_system_features
  @required_system_features
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1003
1004
1005
1006
1007
1008
1009
# File 'lib/google/apis/androidpublisher_v3/classes.rb', line 1003

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