Class: Google::Apis::ContentV2_1::DatafeedStatusError
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::DatafeedStatusError
- 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
-
#code ⇒ String
The code of the error, for example, "validation/invalid_value".
-
#count ⇒ Fixnum
The number of occurrences of the error in the feed.
-
#examples ⇒ Array<Google::Apis::ContentV2_1::DatafeedStatusExample>
A list of example occurrences of the error, grouped by product.
-
#message ⇒ String
The error message, for example, "Invalid price".
Instance Method Summary collapse
-
#initialize(**args) ⇒ DatafeedStatusError
constructor
A new instance of DatafeedStatusError.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DatafeedStatusError
Returns a new instance of DatafeedStatusError.
3959 3960 3961 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3959 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
The code of the error, for example, "validation/invalid_value".
Corresponds to the JSON property code
3942 3943 3944 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3942 def code @code end |
#count ⇒ Fixnum
The number of occurrences of the error in the feed.
Corresponds to the JSON property count
3947 3948 3949 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3947 def count @count end |
#examples ⇒ Array<Google::Apis::ContentV2_1::DatafeedStatusExample>
A list of example occurrences of the error, grouped by product.
Corresponds to the JSON property examples
3952 3953 3954 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3952 def examples @examples end |
#message ⇒ String
The error message, for example, "Invalid price".
Corresponds to the JSON property message
3957 3958 3959 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3957 def @message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3964 3965 3966 3967 3968 3969 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3964 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 |