target.apidocs.com.google.api.services.androidenterprise.model.Policy.html Maven / Gradle / Ivy
Policy (Google Play EMM API v1-rev20210723-1.32.1)
com.google.api.services.androidenterprise.model
Class Policy
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.androidenterprise.model.Policy
-
public final class Policy
extends GenericJson
The device policy for a given managed device.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Google Play EMM API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Policy()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Policy
clone()
String
getAutoUpdatePolicy()
Deprecated.
String
getDeviceReportPolicy()
Whether the device reports app states to the EMM.
MaintenanceWindow
getMaintenanceWindow()
The maintenance window defining when apps running in the foreground should be updated.
String
getProductAvailabilityPolicy()
The availability granted to the device for the specified products.
List<ProductPolicy>
getProductPolicy()
The list of product policies.
Policy
set(String fieldName,
Object value)
Policy
setAutoUpdatePolicy(String autoUpdatePolicy)
Deprecated.
Policy
setDeviceReportPolicy(String deviceReportPolicy)
Whether the device reports app states to the EMM.
Policy
setMaintenanceWindow(MaintenanceWindow maintenanceWindow)
The maintenance window defining when apps running in the foreground should be updated.
Policy
setProductAvailabilityPolicy(String productAvailabilityPolicy)
The availability granted to the device for the specified products.
Policy
setProductPolicy(List<ProductPolicy> productPolicy)
The list of product policies.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAutoUpdatePolicy
public String getAutoUpdatePolicy()
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.
- Returns:
- value or
null
for none
-
setAutoUpdatePolicy
public Policy setAutoUpdatePolicy(String autoUpdatePolicy)
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.
- Parameters:
autoUpdatePolicy
- autoUpdatePolicy or null
for none
-
getDeviceReportPolicy
public String getDeviceReportPolicy()
Whether the device reports app states to the EMM. The default value is "deviceReportDisabled".
- Returns:
- value or
null
for none
-
setDeviceReportPolicy
public Policy setDeviceReportPolicy(String deviceReportPolicy)
Whether the device reports app states to the EMM. The default value is "deviceReportDisabled".
- Parameters:
deviceReportPolicy
- deviceReportPolicy or null
for none
-
getMaintenanceWindow
public MaintenanceWindow getMaintenanceWindow()
The maintenance window defining when apps running in the foreground should be updated.
- Returns:
- value or
null
for none
-
setMaintenanceWindow
public Policy setMaintenanceWindow(MaintenanceWindow maintenanceWindow)
The maintenance window defining when apps running in the foreground should be updated.
- Parameters:
maintenanceWindow
- maintenanceWindow or null
for none
-
getProductAvailabilityPolicy
public String getProductAvailabilityPolicy()
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.
- Returns:
- value or
null
for none
-
setProductAvailabilityPolicy
public Policy setProductAvailabilityPolicy(String productAvailabilityPolicy)
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.
- Parameters:
productAvailabilityPolicy
- productAvailabilityPolicy or null
for none
-
getProductPolicy
public List<ProductPolicy> getProductPolicy()
The list of product policies. The productAvailabilityPolicy needs to be set to WHITELIST or ALL
for the product policies to be applied.
- Returns:
- value or
null
for none
-
setProductPolicy
public Policy setProductPolicy(List<ProductPolicy> productPolicy)
The list of product policies. The productAvailabilityPolicy needs to be set to WHITELIST or ALL
for the product policies to be applied.
- Parameters:
productPolicy
- productPolicy or null
for none
-
set
public Policy set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Policy clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy