Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaImportProductsRequest
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaImportProductsRequest
- 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
-
#errors_config ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaImportErrorsConfig
Configuration of destination for Import related errors.
-
#input_config ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductInputConfig
The input config source for products.
-
#notification_pubsub_topic ⇒ String
Pub/Sub topic for receiving notification.
-
#reconciliation_mode ⇒ String
The mode of reconciliation between existing products and the products to be imported.
-
#request_id ⇒ String
Unique identifier provided by client, within the ancestor dataset scope.
-
#update_mask ⇒ String
Indicates which fields in the provided imported 'products' to update.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaImportProductsRequest
constructor
A new instance of GoogleCloudRetailV2alphaImportProductsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaImportProductsRequest
Returns a new instance of GoogleCloudRetailV2alphaImportProductsRequest.
1877 1878 1879 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1877 def initialize(**args) update!(**args) end |
Instance Attribute Details
#errors_config ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaImportErrorsConfig
Configuration of destination for Import related errors.
Corresponds to the JSON property errorsConfig
1840 1841 1842 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1840 def errors_config @errors_config end |
#input_config ⇒ Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductInputConfig
The input config source for products.
Corresponds to the JSON property inputConfig
1845 1846 1847 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1845 def input_config @input_config end |
#notification_pubsub_topic ⇒ String
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`
1854 1855 1856 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1854 def notification_pubsub_topic @notification_pubsub_topic end |
#reconciliation_mode ⇒ String
The mode of reconciliation between existing products and the products to be
imported. Defaults to ReconciliationMode.INCREMENTAL.
Corresponds to the JSON property reconciliationMode
1860 1861 1862 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1860 def reconciliation_mode @reconciliation_mode end |
#request_id ⇒ String
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
1869 1870 1871 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1869 def request_id @request_id 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
1875 1876 1877 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1875 def update_mask @update_mask end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1882 1883 1884 1885 1886 1887 1888 1889 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1882 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 |