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

The newest version!






Policy (Google Play EMM API v1-rev20241113-2.0.0)












com.google.api.services.androidenterprise.model

Class Policy

    • Constructor Detail

      • Policy

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