Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProductInlineSource
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProductInlineSource
- 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
The inline source for the input config for ImportProducts method.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2betaProductInlineSource
constructor
A new instance of GoogleCloudRetailV2betaProductInlineSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2betaProductInlineSource
Returns a new instance of GoogleCloudRetailV2betaProductInlineSource.
5786 5787 5788 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 5786 def initialize(**args) update!(**args) end |
Instance Attribute Details
#products ⇒ Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProduct>
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
5784 5785 5786 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 5784 def products @products end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5791 5792 5793 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 5791 def update!(**args) @products = args[:products] if args.key?(:products) end |