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



1732
1733
1734
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1732

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)


1700
1701
1702
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1700

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>)


1705
1706
1707
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1705

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 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

Returns:

  • (String)


1720
1721
1722
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1720

def product_set_behavior
  @product_set_behavior
end

#product_visibilityArray<Google::Apis::AndroidenterpriseV1::ProductVisibility>

Other products that are part of the set, in addition to those specified in the productId array. The only difference between this field and the productId array is that it's possible to specify additional information about this product visibility, 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



1730
1731
1732
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1730

def product_visibility
  @product_visibility
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1737
1738
1739
1740
1741
1742
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1737

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)
  @product_visibility = args[:product_visibility] if args.key?(:product_visibility)
end