Class: Google::Apis::AndroidenterpriseV1::AutoInstallConstraint

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

Overview

The auto-install constraint. Defines a set of restrictions for installation. At least one of the fields must be set.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AutoInstallConstraint

Returns a new instance of AutoInstallConstraint.



573
574
575
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 573

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

Instance Attribute Details

#charging_state_constraintString

Charging state constraint. Corresponds to the JSON property chargingStateConstraint

Returns:

  • (String)


561
562
563
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 561

def charging_state_constraint
  @charging_state_constraint
end

#device_idle_state_constraintString

Device idle state constraint. Corresponds to the JSON property deviceIdleStateConstraint

Returns:

  • (String)


566
567
568
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 566

def device_idle_state_constraint
  @device_idle_state_constraint
end

#network_type_constraintString

Network type constraint. Corresponds to the JSON property networkTypeConstraint

Returns:

  • (String)


571
572
573
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 571

def network_type_constraint
  @network_type_constraint
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



578
579
580
581
582
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 578

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