Class: Google::Apis::ContentV2_1::Errors
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::Errors
- 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
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_1::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.
3318 3319 3320 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3318 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
3306 3307 3308 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3306 def code @code end |
#errors ⇒ Array<Google::Apis::ContentV2_1::Error>
A list of errors.
Corresponds to the JSON property errors
3311 3312 3313 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3311 def errors @errors end |
#message ⇒ String
The message of the first error in errors.
Corresponds to the JSON property message
3316 3317 3318 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3316 def @message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3323 3324 3325 3326 3327 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3323 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 |