# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ARM::Web module Models # # Body of the error response returned from the API. # class ErrorEntity include MsRestAzure include MsRest::JSONable # @return [String] Basic error code. attr_accessor :code # @return [String] Any details of the error. attr_accessor :message # @return [String] Type of error. attr_accessor :extended_code # @return [String] Message template. attr_accessor :message_template # @return [Array] Parameters for the template. attr_accessor :parameters # @return [Array] Inner errors. attr_accessor :inner_errors # # Mapper for ErrorEntity class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { required: false, serialized_name: 'ErrorEntity', type: { name: 'Composite', class_name: 'ErrorEntity', model_properties: { code: { required: false, serialized_name: 'code', type: { name: 'String' } }, message: { required: false, serialized_name: 'message', type: { name: 'String' } }, extended_code: { required: false, serialized_name: 'extendedCode', type: { name: 'String' } }, message_template: { required: false, serialized_name: 'messageTemplate', type: { name: 'String' } }, parameters: { required: false, serialized_name: 'parameters', type: { name: 'Sequence', element: { required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, inner_errors: { required: false, serialized_name: 'innerErrors', type: { name: 'Sequence', element: { required: false, serialized_name: 'ErrorEntityElementType', type: { name: 'Composite', class_name: 'ErrorEntity' } } } } } } } end end end end