class Google::Apis::AndroidenterpriseV1::Collection
A collection resource defines a named set of apps that is visible to a set of users in the Google Play Store app running on those users' managed devices. Those users can then install any of those apps if they wish (which will trigger creation of install and entitlement resources). A user cannot install an app on a managed device unless the app is listed in at least one collection that is visible to that user. Note that the API can be used to directly install an app regardless of whether it is in any collection - so an enterprise has a choice of either directly pushing apps to users, or allowing users to install apps if they want. Which is appropriate will depend on the enterprise's policies and the purpose of the apps concerned.
Attributes
Arbitrary unique ID, allocated by the API on creation. Corresponds to the JSON property `collectionId` @return [String]
Identifies what kind of resource this is. Value: the fixed string “ androidenterprise#collection”. Corresponds to the JSON property `kind` @return [String]
A user-friendly name for the collection (should be unique), e.g. “Accounting apps”. Corresponds to the JSON property `name` @return [String]
The IDs of the products in the collection, in the order in which they should be displayed. Corresponds to the JSON property `productId` @return [Array<String>]
Whether this collection is visible to all users, or only to the users that have been granted access through the “Collectionviewers” API. With the launch of the “setAvailableProductSet” API, this property should always be set to “ viewersOnly”, as the “allUsers” option will bypass the “availableProductSet” for all users within a domain. The “allUsers” setting is deprecated, and will be removed. Corresponds to the JSON property `visibility` @return [String]
Public Class Methods
# File generated/google/apis/androidenterprise_v1/classes.rb, line 256 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/androidenterprise_v1/classes.rb, line 261 def update!(**args) @collection_id = args[:collection_id] if args.key?(:collection_id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @product_id = args[:product_id] if args.key?(:product_id) @visibility = args[:visibility] if args.key?(:visibility) end