Class: Google::Apis::AndroidenterpriseV1::Collection

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_idString

Arbitrary unique ID, allocated by the API on creation. Corresponds to the JSON property collectionId

Returns:

  • (String)


326
327
328
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 326

def collection_id
  @collection_id
end

#kindString

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

Returns:

  • (String)


332
333
334
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 332

def kind
  @kind
end

#nameString

A user-friendly name for the collection (should be unique), e.g. "Accounting apps". Corresponds to the JSON property name

Returns:

  • (String)


338
339
340
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 338

def name
  @name
end

#product_idArray<String>

The IDs of the products in the collection, in the order in which they should be displayed. Corresponds to the JSON property productId

Returns:

  • (Array<String>)


344
345
346
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 344

def product_id
  @product_id
end

#visibilityString

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

Returns:

  • (String)


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