Class: Google::Apis::RetailV2::GoogleCloudRetailV2ProductInlineSource

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

Overview

The inline source for the input config for ImportProducts method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2ProductInlineSource

Returns a new instance of GoogleCloudRetailV2ProductInlineSource.



1105
1106
1107
# File 'lib/google/apis/retail_v2/classes.rb', line 1105

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

Instance Attribute Details

#productsArray<Google::Apis::RetailV2::GoogleCloudRetailV2Product>

Required. A list of products to update/create. Each product must have a valid Product.id. Recommended max of 10k items. Corresponds to the JSON property products



1103
1104
1105
# File 'lib/google/apis/retail_v2/classes.rb', line 1103

def products
  @products
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1110
1111
1112
# File 'lib/google/apis/retail_v2/classes.rb', line 1110

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