Class: Google::Apis::PolyV1::ImageError

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

Overview

A message resulting from reading an image file.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ImageError

Returns a new instance of ImageError



300
301
302
# File 'generated/google/apis/poly_v1/classes.rb', line 300

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

Instance Attribute Details

#codeString

The type of image error encountered. Optional for older image errors. Corresponds to the JSON property code

Returns:

  • (String)


293
294
295
# File 'generated/google/apis/poly_v1/classes.rb', line 293

def code
  @code
end

#file_pathString

The file path in the import of the image that was rejected. Corresponds to the JSON property filePath

Returns:

  • (String)


298
299
300
# File 'generated/google/apis/poly_v1/classes.rb', line 298

def file_path
  @file_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



305
306
307
308
# File 'generated/google/apis/poly_v1/classes.rb', line 305

def update!(**args)
  @code = args[:code] if args.key?(:code)
  @file_path = args[:file_path] if args.key?(:file_path)
end