Class: Google::Apis::ContentV2_1::Errors

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/representations.rb

Overview

A list of errors returned by a failed batch entry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Errors

Returns a new instance of Errors



2334
2335
2336
# File 'generated/google/apis/content_v2_1/classes.rb', line 2334

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#codeFixnum

The HTTP status of the first error in errors. Corresponds to the JSON property code

Returns:

  • (Fixnum)


2322
2323
2324
# File 'generated/google/apis/content_v2_1/classes.rb', line 2322

def code
  @code
end

#errorsArray<Google::Apis::ContentV2_1::Error>

A list of errors. Corresponds to the JSON property errors



2327
2328
2329
# File 'generated/google/apis/content_v2_1/classes.rb', line 2327

def errors
  @errors
end

#messageString

The message of the first error in errors. Corresponds to the JSON property message

Returns:

  • (String)


2332
2333
2334
# File 'generated/google/apis/content_v2_1/classes.rb', line 2332

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2339
2340
2341
2342
2343
# File 'generated/google/apis/content_v2_1/classes.rb', line 2339

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