Class: Google::Apis::ContentV2_1::DatafeedStatusError

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb

Overview

An error occurring in the feed, like "invalid price".

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ DatafeedStatusError

Returns a new instance of DatafeedStatusError



1830
1831
1832
# File 'generated/google/apis/content_v2_1/classes.rb', line 1830

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

Instance Attribute Details

#codeString

The code of the error, e.g., "validation/invalid_value". Corresponds to the JSON property code

Returns:

  • (String)


1813
1814
1815
# File 'generated/google/apis/content_v2_1/classes.rb', line 1813

def code
  @code
end

#countFixnum

The number of occurrences of the error in the feed. Corresponds to the JSON property count

Returns:

  • (Fixnum)


1818
1819
1820
# File 'generated/google/apis/content_v2_1/classes.rb', line 1818

def count
  @count
end

#examplesArray<Google::Apis::ContentV2_1::DatafeedStatusExample>

A list of example occurrences of the error, grouped by product. Corresponds to the JSON property examples



1823
1824
1825
# File 'generated/google/apis/content_v2_1/classes.rb', line 1823

def examples
  @examples
end

#messageString

The error message, e.g., "Invalid price". Corresponds to the JSON property message

Returns:

  • (String)


1828
1829
1830
# File 'generated/google/apis/content_v2_1/classes.rb', line 1828

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1835
1836
1837
1838
1839
1840
# File 'generated/google/apis/content_v2_1/classes.rb', line 1835

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @count = args[:count] if args.key?(:count)
  @examples = args[:examples] if args.key?(:examples)
  @message = args[:message] if args.key?(:message)
end