Class: Google::Apis::AndroidmanagementV1::InstallConstraint

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

Amongst apps with InstallType set to: FORCE_INSTALLED PREINSTALLEDthis defines a set of restrictions for the app installation. At least one of the fields must be set. When multiple fields are set, then all the constraints need to be satisfied for the app to be installed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InstallConstraint

Returns a new instance of InstallConstraint.



2699
2700
2701
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2699

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

Instance Attribute Details

#charging_constraintString

Optional. Charging constraint. Corresponds to the JSON property chargingConstraint

Returns:

  • (String)


2687
2688
2689
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2687

def charging_constraint
  @charging_constraint
end

#device_idle_constraintString

Optional. Device idle constraint. Corresponds to the JSON property deviceIdleConstraint

Returns:

  • (String)


2692
2693
2694
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2692

def device_idle_constraint
  @device_idle_constraint
end

#network_type_constraintString

Optional. Network type constraint. Corresponds to the JSON property networkTypeConstraint

Returns:

  • (String)


2697
2698
2699
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2697

def network_type_constraint
  @network_type_constraint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2704
2705
2706
2707
2708
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 2704

def update!(**args)
  @charging_constraint = args[:charging_constraint] if args.key?(:charging_constraint)
  @device_idle_constraint = args[:device_idle_constraint] if args.key?(:device_idle_constraint)
  @network_type_constraint = args[:network_type_constraint] if args.key?(:network_type_constraint)
end