Class: Google::Apis::AndroidenterpriseV1::ProductSet
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::ProductSet
- 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
A set of products.
Instance Attribute Summary collapse
-
#product_id ⇒ Array<String>
The list of product IDs making up the set of products.
-
#product_set_behavior ⇒ String
The interpretation of this product set.
-
#product_visibility ⇒ Array<Google::Apis::AndroidenterpriseV1::ProductVisibility>
Additional list of product IDs making up the product set.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductSet
constructor
A new instance of ProductSet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ProductSet
Returns a new instance of ProductSet.
2357 2358 2359 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2357 def initialize(**args) update!(**args) end |
Instance Attribute Details
#product_id ⇒ Array<String>
The list of product IDs making up the set of products.
Corresponds to the JSON property productId
2331 2332 2333 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2331 def product_id @product_id end |
#product_set_behavior ⇒ String
The interpretation of this product set. "unknown" should never be sent and is
ignored if received. "whitelist" means that the user is entitled to access the
product set. "includeAll" means that all products are accessible, including
products that are approved, products with revoked approval, and products that
have never been approved. "allApproved" means that the user is entitled to
access all products that are approved for the enterprise. If the value is "
allApproved" or "includeAll", the productId field is ignored. If no value is
provided, it is interpreted as "whitelist" for backwards compatibility.
Further "allApproved" or "includeAll" does not enable automatic visibility of "
alpha" or "beta" tracks for Android app. Use ProductVisibility to enable "
alpha" or "beta" tracks per user.
Corresponds to the JSON property productSetBehavior
2346 2347 2348 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2346 def product_set_behavior @product_set_behavior end |
#product_visibility ⇒ Array<Google::Apis::AndroidenterpriseV1::ProductVisibility>
Additional list of product IDs making up the product set. Unlike the productID
array, in this list It's possible to specify which tracks (alpha, beta,
production) of a product are visible to the user. See ProductVisibility and
its fields for more information. Specifying the same product ID both here and
in the productId array is not allowed and it will result in an error.
Corresponds to the JSON property productVisibility
2355 2356 2357 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2355 def product_visibility @product_visibility end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2362 2363 2364 2365 2366 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2362 def update!(**args) @product_id = args[:product_id] if args.key?(:product_id) @product_set_behavior = args[:product_set_behavior] if args.key?(:product_set_behavior) @product_visibility = args[:product_visibility] if args.key?(:product_visibility) end |