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
-
#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
1599 1600 1601 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1599 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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. "allApproved"
entitles the device to access all products that are approved for the
enterprise. "allApproved" and "all" do 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
1592 1593 1594 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1592 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
1597 1598 1599 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1597 def product_policy @product_policy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1604 1605 1606 1607 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1604 def update!(**args) @product_availability_policy = args[:product_availability_policy] if args.key?(:product_availability_policy) @product_policy = args[:product_policy] if args.key?(:product_policy) end |