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.
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
#code ⇒ String
The type of image error encountered. Optional for older image errors.
Corresponds to the JSON property code
285 286 287 |
# File 'generated/google/apis/poly_v1/classes.rb', line 285 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
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 |