Class: Google::Apis::ContentV2::DatafeedStatusError
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::DatafeedStatusError
- Defined in:
- generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb
Overview
An error occurring in the feed, like "invalid price".
Instance Attribute Summary collapse
-
#code ⇒ String
The code of the error, e.g., "validation/invalid_value".
-
#count ⇒ Fixnum
The number of occurrences of the error in the feed.
-
#examples ⇒ Array<Google::Apis::ContentV2::DatafeedStatusExample>
A list of example occurrences of the error, grouped by product.
-
#message ⇒ String
The error message, e.g., "Invalid price".
Instance Method Summary collapse
-
#initialize(**args) ⇒ DatafeedStatusError
constructor
A new instance of DatafeedStatusError.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ DatafeedStatusError
Returns a new instance of DatafeedStatusError
1306 1307 1308 |
# File 'generated/google/apis/content_v2/classes.rb', line 1306 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
The code of the error, e.g., "validation/invalid_value".
Corresponds to the JSON property code
1289 1290 1291 |
# File 'generated/google/apis/content_v2/classes.rb', line 1289 def code @code end |
#count ⇒ Fixnum
The number of occurrences of the error in the feed.
Corresponds to the JSON property count
1294 1295 1296 |
# File 'generated/google/apis/content_v2/classes.rb', line 1294 def count @count end |
#examples ⇒ Array<Google::Apis::ContentV2::DatafeedStatusExample>
A list of example occurrences of the error, grouped by product.
Corresponds to the JSON property examples
1299 1300 1301 |
# File 'generated/google/apis/content_v2/classes.rb', line 1299 def examples @examples end |
#message ⇒ String
The error message, e.g., "Invalid price".
Corresponds to the JSON property message
1304 1305 1306 |
# File 'generated/google/apis/content_v2/classes.rb', line 1304 def @message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1311 1312 1313 1314 1315 1316 |
# File 'generated/google/apis/content_v2/classes.rb', line 1311 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 |