class Azure::CognitiveServices::SpellCheck::V1_0::Models::ErrorResponse
The top-level response that represents a failed request.
Attributes
_type[RW]
errors[RW]
@return [Array<Error>] A list of errors that describe the reasons why the request failed.
Private Class Methods
mapper()
click to toggle source
Mapper for ErrorResponse
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/1.0/generated/azure_cognitiveservices_spellcheck/models/error_response.rb, line 31 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ErrorResponse', type: { name: 'Composite', class_name: 'ErrorResponse', model_properties: { _type: { client_side_validation: true, required: true, serialized_name: '_type', type: { name: 'String' } }, id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, errors: { client_side_validation: true, required: true, serialized_name: 'errors', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ErrorElementType', type: { name: 'Composite', class_name: 'Error' } } } } } } } end
new()
click to toggle source
# File lib/1.0/generated/azure_cognitiveservices_spellcheck/models/error_response.rb, line 16 def initialize @_type = "ErrorResponse" end