Class: Google::Apis::RetailV2beta::GoogleCloudRetailLoggingImportErrorContext
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailLoggingImportErrorContext
- 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
The error payload that is populated on LRO import APIs, including "google. cloud.retail.v2.ProductService.ImportProducts" and "google.cloud.retail.v2. EventService.ImportUserEvents".
Instance Attribute Summary collapse
-
#catalog_item ⇒ String
The detailed content which caused the error on importing a catalog item.
-
#gcs_path ⇒ String
Cloud Storage file path of the import source.
-
#line_number ⇒ String
Line number of the content in file.
-
#operation_name ⇒ String
The operation resource name of the LRO.
-
#product ⇒ String
The detailed content which caused the error on importing a product.
-
#user_event ⇒ String
The detailed content which caused the error on importing a user event.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailLoggingImportErrorContext
constructor
A new instance of GoogleCloudRetailLoggingImportErrorContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailLoggingImportErrorContext
Returns a new instance of GoogleCloudRetailLoggingImportErrorContext.
227 228 229 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 227 def initialize(**args) update!(**args) end |
Instance Attribute Details
#catalog_item ⇒ String
The detailed content which caused the error on importing a catalog item.
Corresponds to the JSON property catalogItem
198 199 200 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 198 def catalog_item @catalog_item end |
#gcs_path ⇒ String
Cloud Storage file path of the import source. Can be set for batch operation
error.
Corresponds to the JSON property gcsPath
204 205 206 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 204 def gcs_path @gcs_path end |
#line_number ⇒ String
Line number of the content in file. Should be empty for permission or batch
operation error.
Corresponds to the JSON property lineNumber
210 211 212 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 210 def line_number @line_number end |
#operation_name ⇒ String
The operation resource name of the LRO.
Corresponds to the JSON property operationName
215 216 217 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 215 def operation_name @operation_name end |
#product ⇒ String
The detailed content which caused the error on importing a product.
Corresponds to the JSON property product
220 221 222 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 220 def product @product end |
#user_event ⇒ String
The detailed content which caused the error on importing a user event.
Corresponds to the JSON property userEvent
225 226 227 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 225 def user_event @user_event end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
232 233 234 235 236 237 238 239 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 232 def update!(**args) @catalog_item = args[:catalog_item] if args.key?(:catalog_item) @gcs_path = args[:gcs_path] if args.key?(:gcs_path) @line_number = args[:line_number] if args.key?(:line_number) @operation_name = args[:operation_name] if args.key?(:operation_name) @product = args[:product] if args.key?(:product) @user_event = args[:user_event] if args.key?(:user_event) end |