Class: Google::Apis::AndroidenterpriseV1::AutoInstallConstraint
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::AutoInstallConstraint
- 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
-
#charging_state_constraint ⇒ String
Charging state constraint.
-
#device_idle_state_constraint ⇒ String
Device idle state constraint.
-
#network_type_constraint ⇒ String
Network type constraint.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutoInstallConstraint
constructor
A new instance of AutoInstallConstraint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AutoInstallConstraint
Returns a new instance of AutoInstallConstraint
552 553 554 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 552 def initialize(**args) update!(**args) end |
Instance Attribute Details
#charging_state_constraint ⇒ String
Charging state constraint.
Corresponds to the JSON property chargingStateConstraint
540 541 542 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 540 def charging_state_constraint @charging_state_constraint end |
#device_idle_state_constraint ⇒ String
Device idle state constraint.
Corresponds to the JSON property deviceIdleStateConstraint
545 546 547 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 545 def device_idle_state_constraint @device_idle_state_constraint end |
#network_type_constraint ⇒ String
Network type constraint.
Corresponds to the JSON property networkTypeConstraint
550 551 552 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 550 def network_type_constraint @network_type_constraint end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
557 558 559 560 561 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 557 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 |