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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ DatafeedStatusError

Returns a new instance of DatafeedStatusError.



3911
3912
3913
# File 'lib/google/apis/content_v2_1/classes.rb', line 3911

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

Instance Attribute Details

#codeString

The code of the error, for example, "validation/invalid_value". Corresponds to the JSON property code

Returns:

  • (String)


3894
3895
3896
# File 'lib/google/apis/content_v2_1/classes.rb', line 3894

def code
  @code
end

#countFixnum

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

Returns:

  • (Fixnum)


3899
3900
3901
# File 'lib/google/apis/content_v2_1/classes.rb', line 3899

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



3904
3905
3906
# File 'lib/google/apis/content_v2_1/classes.rb', line 3904

def examples
  @examples
end

#messageString

The error message, for example, "Invalid price". Corresponds to the JSON property message

Returns:

  • (String)


3909
3910
3911
# File 'lib/google/apis/content_v2_1/classes.rb', line 3909

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3916
3917
3918
3919
3920
3921
# File 'lib/google/apis/content_v2_1/classes.rb', line 3916

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