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
| 293 294 295 | # File 'generated/google/apis/poly_v1/classes.rb', line 293 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
| 286 287 288 | # File 'generated/google/apis/poly_v1/classes.rb', line 286 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
| 291 292 293 | # File 'generated/google/apis/poly_v1/classes.rb', line 291 def file_path @file_path end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 298 299 300 301 | # File 'generated/google/apis/poly_v1/classes.rb', line 298 def update!(**args) @code = args[:code] if args.key?(:code) @file_path = args[:file_path] if args.key?(:file_path) end |