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

Constructor Details

#initialize(**args) ⇒ ImageError

Returns a new instance of ImageError.



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

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)


285
286
287
# File 'generated/google/apis/poly_v1/classes.rb', line 285

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)


290
291
292
# File 'generated/google/apis/poly_v1/classes.rb', line 290

def file_path
  @file_path
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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