Class: Google::Apis::RetailV2::GoogleCloudRetailV2ProductInlineSource
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2::GoogleCloudRetailV2ProductInlineSource
- 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
-
#initialize(**args) ⇒ GoogleCloudRetailV2ProductInlineSource
constructor
A new instance of GoogleCloudRetailV2ProductInlineSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2ProductInlineSource
Returns a new instance of GoogleCloudRetailV2ProductInlineSource.
3654 3655 3656 |
# File 'lib/google/apis/retail_v2/classes.rb', line 3654 def initialize(**args) update!(**args) end |
Instance Attribute Details
#products ⇒ Array<Google::Apis::RetailV2::GoogleCloudRetailV2Product>
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
3652 3653 3654 |
# File 'lib/google/apis/retail_v2/classes.rb', line 3652 def products @products end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3659 3660 3661 |
# File 'lib/google/apis/retail_v2/classes.rb', line 3659 def update!(**args) @products = args[:products] if args.key?(:products) end |