# 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::ServiceFabric::V6_5_0_36
  module Models
    #
    # Derived from PropertyBatchInfo. Represents the property batch failing.
    # Contains information about the specific batch failure.
    #
    class FailedPropertyBatchInfo < PropertyBatchInfo

      include MsRestAzure


      def initialize
        @Kind = "Failed"
      end

      attr_accessor :Kind

      # @return [String] The error message of the failed operation. Describes
      # the exception thrown due to the first unsuccessful operation in the
      # property batch.
      attr_accessor :error_message

      # @return [Integer] The index of the unsuccessful operation in the
      # property batch.
      attr_accessor :operation_index


      #
      # Mapper for FailedPropertyBatchInfo class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Failed',
          type: {
            name: 'Composite',
            class_name: 'FailedPropertyBatchInfo',
            model_properties: {
              Kind: {
                client_side_validation: true,
                required: true,
                serialized_name: 'Kind',
                type: {
                  name: 'String'
                }
              },
              error_message: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ErrorMessage',
                type: {
                  name: 'String'
                }
              },
              operation_index: {
                client_side_validation: true,
                required: false,
                serialized_name: 'OperationIndex',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
