Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaPinControlMetadataProductPins

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

Overview

List of product ids which have associated pins.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaPinControlMetadataProductPins

Returns a new instance of GoogleCloudRetailV2betaPinControlMetadataProductPins.



6147
6148
6149
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6147

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

Instance Attribute Details

#product_idArray<String>

List of product ids which have associated pins. Corresponds to the JSON property productId

Returns:

  • (Array<String>)


6145
6146
6147
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6145

def product_id
  @product_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6152
6153
6154
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6152

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