# 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 succeeding.
    # Contains the results of any "Get" operations in the batch.
    #
    class SuccessfulPropertyBatchInfo < PropertyBatchInfo

      include MsRestAzure


      def initialize
        @Kind = "Successful"
      end

      attr_accessor :Kind

      # @return [Hash{String => PropertyInfo}] A map containing the properties
      # that were requested through any "Get" property batch operations. The
      # key represents the index of the "Get" operation in the original
      # request, in string form. The value is the property. If a property is
      # not found, it will not be in the map.
      attr_accessor :properties


      #
      # Mapper for SuccessfulPropertyBatchInfo class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Successful',
          type: {
            name: 'Composite',
            class_name: 'SuccessfulPropertyBatchInfo',
            model_properties: {
              Kind: {
                client_side_validation: true,
                required: true,
                serialized_name: 'Kind',
                type: {
                  name: 'String'
                }
              },
              properties: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Properties',
                type: {
                  name: 'Dictionary',
                  value: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'PropertyInfoElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'PropertyInfo'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
