Class: Google::Apis::AndroidenterpriseV1::ProductSet
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::ProductSet
- 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
A set of products.
Instance Attribute Summary collapse
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductSet
constructor
A new instance of ProductSet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ProductSet
Returns a new instance of ProductSet.
1727 1728 1729 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1727 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
androidenterprise#productSet".
Corresponds to the JSON property kind
1711 1712 1713 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1711 def kind @kind end |
#product_id ⇒ Array<String>
The list of product IDs making up the set of products.
Corresponds to the JSON property productId
1716 1717 1718 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1716 def product_id @product_id end |
#product_set_behavior ⇒ String
The interpretation of this product set. "unknown" should never be sent and
ignored if received. "whitelist" means that this product set constitutes a
whitelist. "includeAll" means that all products are accessible (the value of
the productId field is therefore ignored). If a value is not supplied, it is
interpreted to be "whitelist" for backwards compatibility.
Corresponds to the JSON property productSetBehavior
1725 1726 1727 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1725 def product_set_behavior @product_set_behavior end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1732 1733 1734 1735 1736 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1732 def update!(**args) @kind = args[:kind] if args.key?(:kind) @product_id = args[:product_id] if args.key?(:product_id) @product_set_behavior = args[:product_set_behavior] if args.key?(:product_set_behavior) end |