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.


2255
2256
2257
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2255

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)

2242
2243
2244
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2242

def product_id
  @product_id
end

#track_idsArray<String>

Grants the user visibility to the specified product track(s), identified by trackIds. Corresponds to the JSON property trackIds

Returns:

  • (Array<String>)

2248
2249
2250
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2248

def track_ids
  @track_ids
end

#tracksArray<String>

Deprecated. Use trackIds instead. Corresponds to the JSON property tracks

Returns:

  • (Array<String>)

2253
2254
2255
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2253

def tracks
  @tracks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2260
2261
2262
2263
2264
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2260

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