# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::StorageSync::Mgmt::V2018_04_02
  module Models
    #
    # Error type
    #
    class StorageSyncError

      include MsRestAzure

      # @return [StorageSyncApiError] Error details of the given entry.
      attr_accessor :error

      # @return [StorageSyncApiError] Error details of the given entry.
      attr_accessor :innererror


      #
      # Mapper for StorageSyncError class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'StorageSyncError',
          type: {
            name: 'Composite',
            class_name: 'StorageSyncError',
            model_properties: {
              error: {
                client_side_validation: true,
                required: false,
                serialized_name: 'error',
                type: {
                  name: 'Composite',
                  class_name: 'StorageSyncApiError'
                }
              },
              innererror: {
                client_side_validation: true,
                required: false,
                serialized_name: 'innererror',
                type: {
                  name: 'Composite',
                  class_name: 'StorageSyncApiError'
                }
              }
            }
          }
        }
      end
    end
  end
end
