target.apidocs.com.google.api.services.androidenterprise.model.Policy.html Maven / Gradle / Ivy
The newest version!
Policy (Google Play EMM API v1-rev20241113-2.0.0)
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 com.google.api.client.json.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
com.google.api.client.util.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()
Controls when automatic app updates on the device can be applied.
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
getPolicyId()
An identifier for the policy that will be passed with the app install feedback sent from the
Play Store.
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)
Controls when automatic app updates on the device can be applied.
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
setPolicyId(String policyId)
An identifier for the policy that will be passed with the app install feedback sent from the
Play Store.
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()
Controls when automatic app updates on the device can be applied. Recommended alternative:
autoUpdateMode which is set per app, provides greater flexibility around update frequency. When
autoUpdateMode is set to AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, autoUpdatePolicy
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. *Important:* Changes to app update policies don't
affect updates that are in progress. Any policy changes will apply to subsequent app updates.
- Returns:
- value or
null
for none
-
setAutoUpdatePolicy
public Policy setAutoUpdatePolicy(String autoUpdatePolicy)
Controls when automatic app updates on the device can be applied. Recommended alternative:
autoUpdateMode which is set per app, provides greater flexibility around update frequency. When
autoUpdateMode is set to AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, autoUpdatePolicy
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. *Important:* Changes to app update policies don't
affect updates that are in progress. Any policy changes will apply to subsequent app updates.
- 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
-
getPolicyId
public String getPolicyId()
An identifier for the policy that will be passed with the app install feedback sent from the
Play Store.
- Returns:
- value or
null
for none
-
setPolicyId
public Policy setPolicyId(String policyId)
An identifier for the policy that will be passed with the app install feedback sent from the
Play Store.
- Parameters:
policyId
- policyId 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 com.google.api.client.json.GenericJson
-
clone
public Policy clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy