Class: Google::Apis::AndroidenterpriseV1::Policy
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::Policy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/androidenterprise_v1/classes.rb,
lib/google/apis/androidenterprise_v1/representations.rb,
lib/google/apis/androidenterprise_v1/representations.rb
Overview
The device policy for a given managed device.
Instance Attribute Summary collapse
-
#auto_update_policy ⇒ String
Controls when automatic app updates on the device can be applied.
-
#device_report_policy ⇒ String
Whether the device reports app states to the EMM.
-
#maintenance_window ⇒ Google::Apis::AndroidenterpriseV1::MaintenanceWindow
Maintenance window for managed Google Play Accounts.
-
#policy_id ⇒ String
An identifier for the policy that will be passed with the app install feedback sent from the Play Store.
-
#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.
Constructor Details
#initialize(**args) ⇒ Policy
Returns a new instance of Policy.
1949 1950 1951 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1949 def initialize(**args) update!(**args) end |
Instance Attribute Details
#auto_update_policy ⇒ String
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.
Corresponds to the JSON property autoUpdatePolicy
1912 1913 1914 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1912 def auto_update_policy @auto_update_policy end |
#device_report_policy ⇒ String
Whether the device reports app states to the EMM. The default value is "
deviceReportDisabled".
Corresponds to the JSON property deviceReportPolicy
1918 1919 1920 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1918 def device_report_policy @device_report_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
1924 1925 1926 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1924 def maintenance_window @maintenance_window end |
#policy_id ⇒ String
An identifier for the policy that will be passed with the app install feedback
sent from the Play Store.
Corresponds to the JSON property policyId
1930 1931 1932 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1930 def policy_id @policy_id 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
1941 1942 1943 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1941 def product_availability_policy @product_availability_policy end |
#product_policy ⇒ Array<Google::Apis::AndroidenterpriseV1::ProductPolicy>
The list of product policies. The productAvailabilityPolicy needs to be set to
WHITELIST or ALL for the product policies to be applied.
Corresponds to the JSON property productPolicy
1947 1948 1949 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1947 def product_policy @product_policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1954 1955 1956 1957 1958 1959 1960 1961 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1954 def update!(**args) @auto_update_policy = args[:auto_update_policy] if args.key?(:auto_update_policy) @device_report_policy = args[:device_report_policy] if args.key?(:device_report_policy) @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window) @policy_id = args[:policy_id] if args.key?(:policy_id) @product_availability_policy = args[:product_availability_policy] if args.key?(:product_availability_policy) @product_policy = args[:product_policy] if args.key?(:product_policy) end |