Class: Google::Apis::AndroidenterpriseV1::Policy
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AndroidenterpriseV1::Policy
 
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/androidenterprise_v1/classes.rb,
 generated/google/apis/androidenterprise_v1/representations.rb,
 generated/google/apis/androidenterprise_v1/representations.rb
Overview
The device policy for a given managed device.
Instance Attribute Summary collapse
- 
  
    
      #auto_update_policy  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The auto-update policy for apps installed on the device. 
- 
  
    
      #maintenance_window  ⇒ Google::Apis::AndroidenterpriseV1::MaintenanceWindow 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Maintenance window for managed Google Play Accounts. 
- 
  
    
      #product_availability_policy  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The availability granted to the device for the specified products. 
- 
  
    
      #product_policy  ⇒ Array<Google::Apis::AndroidenterpriseV1::ProductPolicy> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The list of product policies. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Policy 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Policy. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Policy
Returns a new instance of Policy
| 1650 1651 1652 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1650 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#auto_update_policy ⇒ String
The auto-update policy for apps installed on the device. "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
| 1626 1627 1628 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1626 def auto_update_policy @auto_update_policy end | 
#maintenance_window ⇒ Google::Apis::AndroidenterpriseV1::MaintenanceWindow
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
| 1632 1633 1634 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1632 def maintenance_window @maintenance_window end | 
#product_availability_policy ⇒ String
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
| 1643 1644 1645 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1643 def product_availability_policy @product_availability_policy end | 
#product_policy ⇒ Array<Google::Apis::AndroidenterpriseV1::ProductPolicy>
The list of product policies.
Corresponds to the JSON property productPolicy
| 1648 1649 1650 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1648 def product_policy @product_policy end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1655 1656 1657 1658 1659 1660 | # File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1655 def update!(**args) @auto_update_policy = args[:auto_update_policy] if args.key?(:auto_update_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 |