# 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::ApiManagement::Mgmt::V2016_07_07
  module Models
    #
    # Operation response details.
    #
    class ResultContract

      include MsRestAzure

      # @return [Integer] Operation response HTTP status code.
      attr_accessor :status_code

      # @return [String] Operation response description.
      attr_accessor :description

      # @return [Array<RepresentationContract>] Collection of operation
      # response representations.
      attr_accessor :representations


      #
      # Mapper for ResultContract class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ResultContract',
          type: {
            name: 'Composite',
            class_name: 'ResultContract',
            model_properties: {
              status_code: {
                client_side_validation: true,
                required: true,
                serialized_name: 'statusCode',
                constraints: {
                  InclusiveMaximum: 599,
                  InclusiveMinimum: 100
                },
                type: {
                  name: 'Number'
                }
              },
              description: {
                client_side_validation: true,
                required: false,
                serialized_name: 'description',
                type: {
                  name: 'String'
                }
              },
              representations: {
                client_side_validation: true,
                required: false,
                serialized_name: 'representations',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'RepresentationContractElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'RepresentationContract'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
