All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.androidenterprise.model.Policy.html Maven / Gradle / Ivy

There is a newer version: v1-rev20241113-2.0.0
Show newest version






Policy (Google Play EMM API v1-rev20210723-1.32.1)












com.google.api.services.androidenterprise.model

Class Policy

    • Constructor Detail

      • Policy

        public Policy()
    • 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

Copyright © 2011–2021 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy