Class: Azure::CognitiveServices::ComputerVision::V1_0::Models::ComputerVisionError
- Inherits:
-
Object
- Object
- Azure::CognitiveServices::ComputerVision::V1_0::Models::ComputerVisionError
- Includes:
- MsRestAzure
- Defined in:
- lib/1.0/generated/azure_cognitiveservices_computervision/models/computer_vision_error.rb
Overview
Model object.
Instance Attribute Summary collapse
-
#code ⇒ ComputerVisionErrorCodes
include: ‘InvalidImageUrl’, ‘InvalidImageFormat’, ‘InvalidImageSize’, ‘NotSupportedVisualFeature’, ‘NotSupportedImage’, ‘InvalidDetails’, ‘NotSupportedLanguage’, ‘BadArgument’, ‘FailedToProcess’, ‘Timeout’, ‘InternalServerError’, ‘Unspecified’, ‘StorageException’.
-
#message ⇒ String
service.
-
#request_id ⇒ String
A unique request identifier.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ComputerVisionError class as Ruby Hash.
Instance Attribute Details
#code ⇒ ComputerVisionErrorCodes
include: ‘InvalidImageUrl’, ‘InvalidImageFormat’, ‘InvalidImageSize’, ‘NotSupportedVisualFeature’, ‘NotSupportedImage’, ‘InvalidDetails’, ‘NotSupportedLanguage’, ‘BadArgument’, ‘FailedToProcess’, ‘Timeout’, ‘InternalServerError’, ‘Unspecified’, ‘StorageException’
21 22 23 |
# File 'lib/1.0/generated/azure_cognitiveservices_computervision/models/computer_vision_error.rb', line 21 def code @code end |
#message ⇒ String
service.
25 26 27 |
# File 'lib/1.0/generated/azure_cognitiveservices_computervision/models/computer_vision_error.rb', line 25 def end |
#request_id ⇒ String
Returns A unique request identifier.
28 29 30 |
# File 'lib/1.0/generated/azure_cognitiveservices_computervision/models/computer_vision_error.rb', line 28 def request_id @request_id end |
Class Method Details
.mapper ⇒ Object
Mapper for ComputerVisionError class as Ruby Hash. This will be used for serialization/deserialization.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/1.0/generated/azure_cognitiveservices_computervision/models/computer_vision_error.rb', line 35 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ComputerVisionError', type: { name: 'Composite', class_name: 'ComputerVisionError', model_properties: { code: { client_side_validation: true, required: true, serialized_name: 'code', type: { name: 'Enum', module: 'ComputerVisionErrorCodes' } }, message: { client_side_validation: true, required: true, serialized_name: 'message', type: { name: 'String' } }, request_id: { client_side_validation: true, required: false, serialized_name: 'requestId', type: { name: 'String' } } } } } end |