Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaImportProductsRequest

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

Request message for Import methods.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaImportProductsRequest

Returns a new instance of GoogleCloudRetailV2betaImportProductsRequest.



2289
2290
2291
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2289

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

Instance Attribute Details

#errors_configGoogle::Apis::RetailV2beta::GoogleCloudRetailV2betaImportErrorsConfig

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



2252
2253
2254
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2252

def errors_config
  @errors_config
end

#input_configGoogle::Apis::RetailV2beta::GoogleCloudRetailV2betaProductInputConfig

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



2257
2258
2259
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2257

def input_config
  @input_config
end

#notification_pubsub_topicString

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 toFULL. Corresponds to the JSON propertynotificationPubsubTopic`

Returns:

  • (String)


2266
2267
2268
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2266

def notification_pubsub_topic
  @notification_pubsub_topic
end

#reconciliation_modeString

The mode of reconciliation between existing products and the products to be imported. Defaults to ReconciliationMode.INCREMENTAL. Corresponds to the JSON property reconciliationMode

Returns:

  • (String)


2272
2273
2274
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2272

def reconciliation_mode
  @reconciliation_mode
end

#request_idString

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

Returns:

  • (String)


2281
2282
2283
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2281

def request_id
  @request_id
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)


2287
2288
2289
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2287

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2294
2295
2296
2297
2298
2299
2300
2301
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2294

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