# 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::Web::Mgmt::V2016_03_01
  module Models
    #
    # Class Representing Solution for problems detected.
    #
    class Solution

      include MsRestAzure

      # @return [Float] Solution Id.
      attr_accessor :id

      # @return [String] Display Name of the solution
      attr_accessor :display_name

      # @return [Float] Order of the solution.
      attr_accessor :order

      # @return [String] Description of the solution
      attr_accessor :description

      # @return [SolutionType] Type of Solution. Possible values include:
      # 'QuickSolution', 'DeepInvestigation', 'BestPractices'
      attr_accessor :type

      # @return [Array<Array<NameValuePair>>] Solution Data.
      attr_accessor :data

      # @return [Array<Array<NameValuePair>>] Solution Metadata.
      attr_accessor :metadata


      #
      # Mapper for Solution class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Solution',
          type: {
            name: 'Composite',
            class_name: 'Solution',
            model_properties: {
              id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'id',
                type: {
                  name: 'Double'
                }
              },
              display_name: {
                client_side_validation: true,
                required: false,
                serialized_name: 'displayName',
                type: {
                  name: 'String'
                }
              },
              order: {
                client_side_validation: true,
                required: false,
                serialized_name: 'order',
                type: {
                  name: 'Double'
                }
              },
              description: {
                client_side_validation: true,
                required: false,
                serialized_name: 'description',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'type',
                type: {
                  name: 'Enum',
                  module: 'SolutionType'
                }
              },
              data: {
                client_side_validation: true,
                required: false,
                serialized_name: 'data',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ArrayElementType',
                      type: {
                        name: 'Sequence',
                        element: {
                            client_side_validation: true,
                            required: false,
                            serialized_name: 'NameValuePairElementType',
                            type: {
                              name: 'Composite',
                              class_name: 'NameValuePair'
                            }
                        }
                      }
                  }
                }
              },
              metadata: {
                client_side_validation: true,
                required: false,
                serialized_name: 'metadata',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ArrayElementType',
                      type: {
                        name: 'Sequence',
                        element: {
                            client_side_validation: true,
                            required: false,
                            serialized_name: 'NameValuePairElementType',
                            type: {
                              name: 'Composite',
                              class_name: 'NameValuePair'
                            }
                        }
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
