Class: Google::Apis::ContentV2::Errors
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::Errors
- 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
A list of errors returned by a failed batch entry.
Instance Attribute Summary collapse
-
#code ⇒ Fixnum
The HTTP status of the first error in
errors. -
#errors ⇒ Array<Google::Apis::ContentV2::Error>
A list of errors.
-
#message ⇒ String
The message of the first error in
errors.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Errors
constructor
A new instance of Errors.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Errors
Returns a new instance of Errors.
2652 2653 2654 |
# File 'lib/google/apis/content_v2/classes.rb', line 2652 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ Fixnum
The HTTP status of the first error in errors.
Corresponds to the JSON property code
2640 2641 2642 |
# File 'lib/google/apis/content_v2/classes.rb', line 2640 def code @code end |
#errors ⇒ Array<Google::Apis::ContentV2::Error>
A list of errors.
Corresponds to the JSON property errors
2645 2646 2647 |
# File 'lib/google/apis/content_v2/classes.rb', line 2645 def errors @errors end |
#message ⇒ String
The message of the first error in errors.
Corresponds to the JSON property message
2650 2651 2652 |
# File 'lib/google/apis/content_v2/classes.rb', line 2650 def @message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2657 2658 2659 2660 2661 |
# File 'lib/google/apis/content_v2/classes.rb', line 2657 def update!(**args) @code = args[:code] if args.key?(:code) @errors = args[:errors] if args.key?(:errors) @message = args[:message] if args.key?(:message) end |