Class: Google::Apis::ContentV2::DatafeedStatusError

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



2084
2085
2086
# File 'lib/google/apis/content_v2/classes.rb', line 2084

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)


2067
2068
2069
# File 'lib/google/apis/content_v2/classes.rb', line 2067

def code
  @code
end

#countFixnum

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

Returns:

  • (Fixnum)


2072
2073
2074
# File 'lib/google/apis/content_v2/classes.rb', line 2072

def count
  @count
end

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

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



2077
2078
2079
# File 'lib/google/apis/content_v2/classes.rb', line 2077

def examples
  @examples
end

#messageString

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

Returns:

  • (String)


2082
2083
2084
# File 'lib/google/apis/content_v2/classes.rb', line 2082

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2089
2090
2091
2092
2093
2094
# File 'lib/google/apis/content_v2/classes.rb', line 2089

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