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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/androidenterprise_v1/classes.rb,
lib/google/apis/androidenterprise_v1/representations.rb,
lib/google/apis/androidenterprise_v1/representations.rb

Overview

A product to be made visible to a user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProductVisibility

Returns a new instance of ProductVisibility.



2417
2418
2419
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2417

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)


2404
2405
2406
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2404

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


2410
2411
2412
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2410

def track_ids
  @track_ids
end

#tracksArray<String>

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

Returns:

  • (Array<String>)


2415
2416
2417
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2415

def tracks
  @tracks
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2422
2423
2424
2425
2426
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2422

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