Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaImportProductsRequest

Inherits:
Object
  • Object
show all
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

Request message for Import methods.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaImportProductsRequest

Returns a new instance of GoogleCloudRetailV2alphaImportProductsRequest.



877
878
879
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 877

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

Instance Attribute Details

#errors_configGoogle::Apis::RetailV2alpha::GoogleCloudRetailV2alphaImportErrorsConfig

Configuration of destination for Import related errors. Corresponds to the JSON property errorsConfig



864
865
866
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 864

def errors_config
  @errors_config
end

#input_configGoogle::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductInputConfig

The input config source for products. Corresponds to the JSON property inputConfig



869
870
871
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 869

def input_config
  @input_config
end

#update_maskString

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

Returns:

  • (String)


875
876
877
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 875

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



882
883
884
885
886
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 882

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