Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductInlineSource
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductInlineSource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb
Overview
The inline source for the input config for ImportProducts method.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaProductInlineSource
constructor
A new instance of GoogleCloudRetailV2alphaProductInlineSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaProductInlineSource
Returns a new instance of GoogleCloudRetailV2alphaProductInlineSource.
5652 5653 5654 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5652 def initialize(**args) update!(**args) end |
Instance Attribute Details
#products ⇒ Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProduct>
Required. A list of products to update/create. Each product must have a valid
Product.id. Recommended max of 100 items.
Corresponds to the JSON property products
5650 5651 5652 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5650 def products @products end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5657 5658 5659 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 5657 def update!(**args) @products = args[:products] if args.key?(:products) end |