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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Errors

Returns a new instance of Errors.



2698
2699
2700
# File 'lib/google/apis/content_v2/classes.rb', line 2698

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)


2686
2687
2688
# File 'lib/google/apis/content_v2/classes.rb', line 2686

def code
  @code
end

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

A list of errors. Corresponds to the JSON property errors

Returns:



2691
2692
2693
# File 'lib/google/apis/content_v2/classes.rb', line 2691

def errors
  @errors
end

#messageString

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

Returns:

  • (String)


2696
2697
2698
# File 'lib/google/apis/content_v2/classes.rb', line 2696

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2703
2704
2705
2706
2707
# File 'lib/google/apis/content_v2/classes.rb', line 2703

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