Class: Google::Apis::RetailV2::GoogleCloudRetailV2ImportProductsRequest
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2::GoogleCloudRetailV2ImportProductsRequest
- 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
Request message for Import methods.
Instance Attribute Summary collapse
-
#errors_config ⇒ Google::Apis::RetailV2::GoogleCloudRetailV2ImportErrorsConfig
Configuration of destination for Import related errors.
-
#input_config ⇒ Google::Apis::RetailV2::GoogleCloudRetailV2ProductInputConfig
The input config source for products.
-
#update_mask ⇒ String
Indicates which fields in the provided imported 'products' to update.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2ImportProductsRequest
constructor
A new instance of GoogleCloudRetailV2ImportProductsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2ImportProductsRequest
Returns a new instance of GoogleCloudRetailV2ImportProductsRequest.
559 560 561 |
# File 'lib/google/apis/retail_v2/classes.rb', line 559 def initialize(**args) update!(**args) end |
Instance Attribute Details
#errors_config ⇒ Google::Apis::RetailV2::GoogleCloudRetailV2ImportErrorsConfig
Configuration of destination for Import related errors.
Corresponds to the JSON property errorsConfig
546 547 548 |
# File 'lib/google/apis/retail_v2/classes.rb', line 546 def errors_config @errors_config end |
#input_config ⇒ Google::Apis::RetailV2::GoogleCloudRetailV2ProductInputConfig
The input config source for products.
Corresponds to the JSON property inputConfig
551 552 553 |
# File 'lib/google/apis/retail_v2/classes.rb', line 551 def input_config @input_config end |
#update_mask ⇒ String
Indicates which fields in the provided imported 'products' to update. If not
set, will by default update all fields.
Corresponds to the JSON property updateMask
557 558 559 |
# File 'lib/google/apis/retail_v2/classes.rb', line 557 def update_mask @update_mask end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
564 565 566 567 568 |
# File 'lib/google/apis/retail_v2/classes.rb', line 564 def update!(**args) @errors_config = args[:errors_config] if args.key?(:errors_config) @input_config = args[:input_config] if args.key?(:input_config) @update_mask = args[:update_mask] if args.key?(:update_mask) end |