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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Errors

Returns a new instance of Errors.



4792
4793
4794
# File 'lib/google/apis/content_v2_1/classes.rb', line 4792

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)


4780
4781
4782
# File 'lib/google/apis/content_v2_1/classes.rb', line 4780

def code
  @code
end

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

A list of errors. Corresponds to the JSON property errors



4785
4786
4787
# File 'lib/google/apis/content_v2_1/classes.rb', line 4785

def errors
  @errors
end

#messageString

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

Returns:

  • (String)


4790
4791
4792
# File 'lib/google/apis/content_v2_1/classes.rb', line 4790

def message
  @message
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4797
4798
4799
4800
4801
# File 'lib/google/apis/content_v2_1/classes.rb', line 4797

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