Class: Google::Apis::AndroidenterpriseV1::ProductVisibility
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::ProductVisibility
- 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
-
#product_id ⇒ String
The product ID to make visible to the user.
-
#track_ids ⇒ Array<String>
Grants the user visibility to the specified product track(s), identified by trackIds.
-
#tracks ⇒ Array<String>
Deprecated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ProductVisibility
constructor
A new instance of ProductVisibility.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ProductVisibility
Returns a new instance of ProductVisibility
2315 2316 2317 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2315 def initialize(**args) update!(**args) end |
Instance Attribute Details
#product_id ⇒ String
The product ID to make visible to the user. Required for each item in the
productVisibility list.
Corresponds to the JSON property productId
2302 2303 2304 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2302 def product_id @product_id end |
#track_ids ⇒ Array<String>
Grants the user visibility to the specified product track(s), identified by
trackIds.
Corresponds to the JSON property trackIds
2308 2309 2310 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2308 def track_ids @track_ids end |
#tracks ⇒ Array<String>
Deprecated. Use trackIds instead.
Corresponds to the JSON property tracks
2313 2314 2315 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2313 def tracks @tracks end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2320 2321 2322 2323 2324 |
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2320 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 |