Class: Google::Apis::ContentV2::Errors

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/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



2557
2558
2559
# File 'generated/google/apis/content_v2/classes.rb', line 2557

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)


2545
2546
2547
# File 'generated/google/apis/content_v2/classes.rb', line 2545

def code
  @code
end

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

A list of errors. Corresponds to the JSON property errors

Returns:



2550
2551
2552
# File 'generated/google/apis/content_v2/classes.rb', line 2550

def errors
  @errors
end

#messageString

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

Returns:

  • (String)


2555
2556
2557
# File 'generated/google/apis/content_v2/classes.rb', line 2555

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2562
2563
2564
2565
2566
# File 'generated/google/apis/content_v2/classes.rb', line 2562

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