Class: Google::Apis::PolyV1::ImageError
- Inherits:
-
Object
- Object
- Google::Apis::PolyV1::ImageError
- 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
-
#code ⇒ String
The type of image error encountered.
-
#file_path ⇒ String
The file path in the import of the image that was rejected.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ImageError
constructor
A new instance of ImageError.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#code ⇒ String
The type of image error encountered. Optional for older image errors.
Corresponds to the JSON property code
293 294 295 |
# File 'generated/google/apis/poly_v1/classes.rb', line 293 def code @code end |
#file_path ⇒ String
The file path in the import of the image that was rejected.
Corresponds to the JSON property filePath
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 |