Class: Google::Apis::AndroidenterpriseV1::AutoInstallPolicy
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::AutoInstallPolicy
- 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
Instance Attribute Summary collapse
-
#auto_install_constraint ⇒ Array<Google::Apis::AndroidenterpriseV1::AutoInstallConstraint>
The constraints for the install.
-
#auto_install_mode ⇒ String
The auto install mode.
-
#auto_install_priority ⇒ Fixnum
The priority of the install, as an unsigned integer.
-
#minimum_version_code ⇒ Fixnum
The minimum version of the app.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutoInstallPolicy
constructor
A new instance of AutoInstallPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AutoInstallPolicy
Returns a new instance of AutoInstallPolicy
591 592 593 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 591 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auto_install_constraint ⇒ Array<Google::Apis::AndroidenterpriseV1::AutoInstallConstraint>
The constraints for the install. Currently there can be at most one constraint.
Corresponds to the JSON property autoInstallConstraint
571 572 573 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 571 def auto_install_constraint @auto_install_constraint end |
#auto_install_mode ⇒ String
The auto install mode. If unset defaults to AVAILABLE.
Corresponds to the JSON property autoInstallMode
576 577 578 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 576 def auto_install_mode @auto_install_mode end |
#auto_install_priority ⇒ Fixnum
The priority of the install, as an unsigned integer. Lower number means higher
priority.
Corresponds to the JSON property autoInstallPriority
582 583 584 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 582 def auto_install_priority @auto_install_priority end |
#minimum_version_code ⇒ Fixnum
The minimum version of the app. If a lower version of the app is installed
then the app will be auto-updated according to the auto-install constraints,
instead of waiting for the regular auto-update.
Corresponds to the JSON property minimumVersionCode
589 590 591 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 589 def minimum_version_code @minimum_version_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
596 597 598 599 600 601 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 596 def update!(**args) @auto_install_constraint = args[:auto_install_constraint] if args.key?(:auto_install_constraint) @auto_install_mode = args[:auto_install_mode] if args.key?(:auto_install_mode) @auto_install_priority = args[:auto_install_priority] if args.key?(:auto_install_priority) @minimum_version_code = args[:minimum_version_code] if args.key?(:minimum_version_code) end |