Class: Google::Apis::RetailV2alpha::GoogleCloudRetailLoggingImportErrorContext

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

The error payload that is populated on LRO import APIs. Including: "google. cloud.retail.v2.ProductService.ImportProducts" "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.



264
265
266
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 264

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_v2alpha/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_v2alpha/classes.rb', line 204

def gcs_path
  @gcs_path
end

#inventory_activityString

The detailed content which caused the error on importing an inventory activity. http://cs/google3/google/cloud/retail/v2main/inventory_activity.proto Corresponds to the JSON property inventoryActivity

Returns:

  • (String)


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

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


216
217
218
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 216

def line_number
  @line_number
end

#operation_nameString

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

Returns:

  • (String)


221
222
223
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 221

def operation_name
  @operation_name
end

#orderString

The detailed content which caused the error on importing an order. http://cs/ google3/google/cloud/retail/v2main/order.proto Corresponds to the JSON property order

Returns:

  • (String)


227
228
229
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 227

def order
  @order
end

#placeString

The detailed content which caused the error on importing a place. http://cs/ google3/google/cloud/retail/v2main/place.proto Corresponds to the JSON property place

Returns:

  • (String)


233
234
235
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 233

def place
  @place
end

#place_assetString

The detailed content which caused the error on importing a place asset. http:// cs/google3/google/cloud/retail/v2main/place_asset.proto Corresponds to the JSON property placeAsset

Returns:

  • (String)


239
240
241
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 239

def place_asset
  @place_asset
end

#place_product_priceString

The detailed content which caused the error on importing a place product price. http://cs/google3/google/cloud/retail/v2main/place_product_price.proto Corresponds to the JSON property placeProductPrice

Returns:

  • (String)


245
246
247
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 245

def place_product_price
  @place_product_price
end

#place_product_settingsString

The detailed content which caused the error on importing a place product settings. http://cs/google3/google/cloud/retail/v2main/place_product_settings. proto Corresponds to the JSON property placeProductSettings

Returns:

  • (String)


252
253
254
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 252

def place_product_settings
  @place_product_settings
end

#productString

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

Returns:

  • (String)


257
258
259
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 257

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)


262
263
264
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 262

def user_event
  @user_event
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



269
270
271
272
273
274
275
276
277
278
279
280
281
282
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 269

def update!(**args)
  @catalog_item = args[:catalog_item] if args.key?(:catalog_item)
  @gcs_path = args[:gcs_path] if args.key?(:gcs_path)
  @inventory_activity = args[:inventory_activity] if args.key?(:inventory_activity)
  @line_number = args[:line_number] if args.key?(:line_number)
  @operation_name = args[:operation_name] if args.key?(:operation_name)
  @order = args[:order] if args.key?(:order)
  @place = args[:place] if args.key?(:place)
  @place_asset = args[:place_asset] if args.key?(:place_asset)
  @place_product_price = args[:place_product_price] if args.key?(:place_product_price)
  @place_product_settings = args[:place_product_settings] if args.key?(:place_product_settings)
  @product = args[:product] if args.key?(:product)
  @user_event = args[:user_event] if args.key?(:user_event)
end