class Azure::CognitiveServices::ComputerVision::V1_0::Models::ComputerVisionError

Model object.

Attributes

code[RW]

@return [ComputerVisionErrorCodes] The error code. Possible values include: 'InvalidImageUrl', 'InvalidImageFormat', 'InvalidImageSize', 'NotSupportedVisualFeature', 'NotSupportedImage', 'InvalidDetails', 'NotSupportedLanguage', 'BadArgument', 'FailedToProcess', 'Timeout', 'InternalServerError', 'Unspecified', 'StorageException'

message[RW]

@return [String] A message explaining the error reported by the service.

request_id[RW]

@return [String] A unique request identifier.

Public Class Methods

mapper() click to toggle source

Mapper for ComputerVisionError class as Ruby Hash. This will be used for serialization/deserialization.

# 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