class Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaImportProductsRequest

Request message for Import methods.

Attributes

errors_config[RW]

Configuration of destination for Import related errors. Corresponds to the JSON property `errorsConfig` @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaImportErrorsConfig]

input_config[RW]

The input config source for products. Corresponds to the JSON property `inputConfig` @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductInputConfig]

notification_pubsub_topic[RW]

Pub/Sub topic for receiving notification. If this field is set, when the import is finished, a notification will be sent to specified Pub/Sub topic. The message data will be JSON string of a Operation. Format of the Pub/Sub topic is `projects/`project`/topics/`topic“. Only supported when ImportProductsRequest.reconciliation_mode is set to `FULL`. Corresponds to the JSON property `notificationPubsubTopic` @return [String]

reconciliation_mode[RW]

The mode of reconciliation between existing products and the products to be imported. Defaults to ReconciliationMode.INCREMENTAL. Corresponds to the JSON property `reconciliationMode` @return [String]

request_id[RW]

Unique identifier provided by client, within the ancestor dataset scope. Ensures idempotency and used for request deduplication. Server-generated if unspecified. Up to 128 characters long and must match the pattern: “[a-zA-Z0- 9_]+”. This is returned as Operation.name in ImportMetadata. Only supported when ImportProductsRequest.reconciliation_mode is set to `FULL`. Corresponds to the JSON property `requestId` @return [String]

update_mask[RW]

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` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/retail_v2alpha/classes.rb, line 1496
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/retail_v2alpha/classes.rb, line 1501
def update!(**args)
  @errors_config = args[:errors_config] if args.key?(:errors_config)
  @input_config = args[:input_config] if args.key?(:input_config)
  @notification_pubsub_topic = args[:notification_pubsub_topic] if args.key?(:notification_pubsub_topic)
  @reconciliation_mode = args[:reconciliation_mode] if args.key?(:reconciliation_mode)
  @request_id = args[:request_id] if args.key?(:request_id)
  @update_mask = args[:update_mask] if args.key?(:update_mask)
end