Class: Google::Apis::AndroidenterpriseV1::Collection
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::Collection
- 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 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.
Instance Attribute Summary collapse
-
#collection_id ⇒ String
Arbitrary unique ID, allocated by the API on creation.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#name ⇒ String
A user-friendly name for the collection (should be unique), e.g.
-
#product_id ⇒ Array<String>
The IDs of the products in the collection, in the order in which they should be displayed.
-
#visibility ⇒ String
Whether this collection is visible to all users, or only to the users that have been granted access through the "Collectionviewers" API.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Collection
constructor
A new instance of Collection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Collection
Returns a new instance of Collection.
356 357 358 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 356 def initialize(**args) update!(**args) end |
Instance Attribute Details
#collection_id ⇒ String
Arbitrary unique ID, allocated by the API on creation.
Corresponds to the JSON property collectionId
326 327 328 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 326 def collection_id @collection_id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
androidenterprise#collection".
Corresponds to the JSON property kind
332 333 334 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 332 def kind @kind end |
#name ⇒ String
A user-friendly name for the collection (should be unique), e.g. "Accounting
apps".
Corresponds to the JSON property name
338 339 340 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 338 def name @name end |
#product_id ⇒ Array<String>
The IDs of the products in the collection, in the order in which they should
be displayed.
Corresponds to the JSON property productId
344 345 346 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 344 def product_id @product_id end |
#visibility ⇒ 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
354 355 356 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 354 def visibility @visibility end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
361 362 363 364 365 366 367 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 361 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 |