Class: Google::Apis::AndroidenterpriseV1::ProductVisibility

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 product to be made visible to a user.

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

Returns a new instance of ProductVisibility



1800
1801
1802
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1800

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

Instance Attribute Details

#product_idString

The product ID that should be made visible to the user. This is required. Corresponds to the JSON property productId

Returns:

  • (String)


1779
1780
1781
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1779

def product_id
  @product_id
end

#tracksArray<String>

This allows to only grant visibility to the specified tracks of the app. For example, if an app has a prod version, a beta version and an alpha version and the enterprise has been granted visibility to both the alpha and beta tracks, if tracks is "beta", "production" the user will be able to install the app and they will get the beta version of the app. If there are no app versions in the specified track or if the enterprise wasn't granted visibility for the track, adding the "alpha" and "beta" values to the list of tracks will have no effect for now; however they will take effect once both conditions are met. Note that the enterprise itself needs to be granted access to the alpha and/or beta tracks, regardless of whether individual users or admins have access to those tracks. The allowed sets are: `(considered equivalent to"production")" production""beta", "production""alpha", "beta", "production"The order of elements is not relevant. Any other set of tracks will be rejected with an error. Corresponds to the JSON propertytracks`

Returns:

  • (Array<String>)


1798
1799
1800
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1798

def tracks
  @tracks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1805
1806
1807
1808
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 1805

def update!(**args)
  @product_id = args[:product_id] if args.key?(:product_id)
  @tracks = args[:tracks] if args.key?(:tracks)
end