Class: Google::Apis::AndroidenterpriseV1::ProductSet

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ProductSet

Returns a new instance of ProductSet



1654
1655
1656
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1654

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#kindString

Identifies what kind of resource this is. Value: the fixed string " androidenterprise#productSet". Corresponds to the JSON property kind

Returns:

  • (String)


1636
1637
1638
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1636

def kind
  @kind
end

#product_idArray<String>

The list of product IDs making up the set of products. Corresponds to the JSON property productId

Returns:

  • (Array<String>)


1641
1642
1643
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1641

def product_id
  @product_id
end

#product_set_behaviorString

The interpretation of this product set. "unknown" should never be sent and is ignored if received. "whitelist" means that this product set constitutes a whitelist. "includeAll" means that all products are accessible, including products that are approved, products with revoked approval, and products that have never been approved. If the value is "includeAll", 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

Returns:

  • (String)


1652
1653
1654
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1652

def product_set_behavior
  @product_set_behavior
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1659
1660
1661
1662
1663
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1659

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