# 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::NetApp::Mgmt::V2017_08_15_preview module Models # # Error response describing why the operation failed. # class Error include MsRestAzure # @return [String] Error code attr_accessor :code # @return [String] Detailed error message attr_accessor :message # # Mapper for Error class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'error', type: { name: 'Composite', class_name: 'Error', model_properties: { code: { client_side_validation: true, required: true, serialized_name: 'code', type: { name: 'String' } }, message: { client_side_validation: true, required: true, serialized_name: 'message', type: { name: 'String' } } } } } end end end end