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



2238
2239
2240
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2238

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

Instance Attribute Details

#product_idString

The product ID to make visible to the user. Required for each item in the productVisibility list. Corresponds to the JSON property productId

Returns:

  • (String)


2211
2212
2213
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2211

def product_id
  @product_id
end

#track_idsArray<String>

Grants visibility to the specified track(s) of the product to the user. This replaces the tracks field, and specifies the track by their unique id. Corresponds to the JSON property trackIds

Returns:

  • (Array<String>)


2217
2218
2219
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2217

def track_ids
  @track_ids
end

#tracksArray<String>

Grants visibility to the specified track(s) of the product to the user. The track available to the user is based on the following order of preference: alpha, beta, production. 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 adding the "alpha" and " beta" values to the list of tracks will have no effect. Note that the enterprise requires access to alpha and/or beta tracks before users can be granted visibility to apps in 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. This is deprecated. Use track_ids instead. Corresponds to the JSON propertytracks`

Returns:

  • (Array<String>)


2236
2237
2238
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2236

def tracks
  @tracks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2243
2244
2245
2246
2247
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2243

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