Class: Google::Apis::AndroidenterpriseV1::AutoInstallPolicy

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AutoInstallPolicy

Returns a new instance of AutoInstallPolicy.



625
626
627
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 625

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

Instance Attribute Details

#auto_install_constraintArray<Google::Apis::AndroidenterpriseV1::AutoInstallConstraint>

The constraints for auto-installing the app. You can specify a maximum of one constraint. Corresponds to the JSON property autoInstallConstraint



603
604
605
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 603

def auto_install_constraint
  @auto_install_constraint
end

#auto_install_modeString

The auto-install mode. If unset, defaults to "doNotAutoInstall". An app is automatically installed regardless of a set maintenance window. Corresponds to the JSON property autoInstallMode

Returns:

  • (String)


609
610
611
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 609

def auto_install_mode
  @auto_install_mode
end

#auto_install_priorityFixnum

The priority of the install, as an unsigned integer. A lower number means higher priority. Corresponds to the JSON property autoInstallPriority

Returns:

  • (Fixnum)


615
616
617
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 615

def auto_install_priority
  @auto_install_priority
end

#minimum_version_codeFixnum

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. You can set a minimum version code for at most 20 apps per device. Corresponds to the JSON property minimumVersionCode

Returns:

  • (Fixnum)


623
624
625
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 623

def minimum_version_code
  @minimum_version_code
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



630
631
632
633
634
635
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 630

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