class Google::Apis::AndroidenterpriseV1::Policy

The device policy for a given managed device.

Attributes

auto_update_policy[RW]

Deprecated. Use autoUpdateMode instead. When autoUpdateMode is set to AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, this field has no effect. “ choiceToTheUser” allows the device's user to configure the app update policy. “ always” enables auto updates. “never” disables auto updates. “wifiOnly” enables auto updates only when the device is connected to wifi. Corresponds to the JSON property `autoUpdatePolicy` @return [String]

device_report_policy[RW]

Whether the device reports app states to the EMM. The default value is “ deviceReportDisabled”. Corresponds to the JSON property `deviceReportPolicy` @return [String]

maintenance_window[RW]

Maintenance window for managed Google Play Accounts. This allows Play store to update the apps on the foreground in the designated window. Corresponds to the JSON property `maintenanceWindow` @return [Google::Apis::AndroidenterpriseV1::MaintenanceWindow]

product_availability_policy[RW]

The availability granted to the device for the specified products. “all” gives the device access to all products, regardless of approval status. “all” does not enable automatic visibility of “alpha” or “beta” tracks. “whitelist” grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default. Corresponds to the JSON property `productAvailabilityPolicy` @return [String]

product_policy[RW]

The list of product policies. The productAvailabilityPolicy needs to be set to WHITELIST or ALL for the product policies to be applied. Corresponds to the JSON property `productPolicy` @return [Array<Google::Apis::AndroidenterpriseV1::ProductPolicy>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/androidenterprise_v1/classes.rb, line 1846
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/androidenterprise_v1/classes.rb, line 1851
def update!(**args)
  @auto_update_policy = args[:auto_update_policy] if args.key?(:auto_update_policy)
  @device_report_policy = args[:device_report_policy] if args.key?(:device_report_policy)
  @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
  @product_availability_policy = args[:product_availability_policy] if args.key?(:product_availability_policy)
  @product_policy = args[:product_policy] if args.key?(:product_policy)
end