Class: Google::Apis::RetailV2beta::GoogleCloudRetailLoggingImportErrorContext

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

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

Instance Method Summary collapse

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_itemString

The detailed content which caused the error on importing a catalog item. Corresponds to the JSON property catalogItem

Returns:

  • (String)


198
199
200
# File 'lib/google/apis/retail_v2beta/classes.rb', line 198

def catalog_item
  @catalog_item
end

#gcs_pathString

Cloud Storage file path of the import source. Can be set for batch operation error. Corresponds to the JSON property gcsPath

Returns:

  • (String)


204
205
206
# File 'lib/google/apis/retail_v2beta/classes.rb', line 204

def gcs_path
  @gcs_path
end

#line_numberString

Line number of the content in file. Should be empty for permission or batch operation error. Corresponds to the JSON property lineNumber

Returns:

  • (String)


210
211
212
# File 'lib/google/apis/retail_v2beta/classes.rb', line 210

def line_number
  @line_number
end

#operation_nameString

The operation resource name of the LRO. Corresponds to the JSON property operationName

Returns:

  • (String)


215
216
217
# File 'lib/google/apis/retail_v2beta/classes.rb', line 215

def operation_name
  @operation_name
end

#productString

The detailed content which caused the error on importing a product. Corresponds to the JSON property product

Returns:

  • (String)


220
221
222
# File 'lib/google/apis/retail_v2beta/classes.rb', line 220

def product
  @product
end

#user_eventString

The detailed content which caused the error on importing a user event. Corresponds to the JSON property userEvent

Returns:

  • (String)


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