# 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::CognitiveServices::WebSearch::V1_0
  module Models
    #
    # Defines an image answer
    #
    class Images < SearchResultsAnswer

      include MsRestAzure


      def initialize
        @_type = "Images"
      end

      attr_accessor :_type

      # @return [Integer]
      attr_accessor :next_offset

      # @return [Array<ImageObject>] A list of image objects that are relevant
      # to the query. If there are no results, the List is empty.
      attr_accessor :value

      # @return [Array<Query>]
      attr_accessor :query_expansions

      # @return [Array<Query>]
      attr_accessor :similar_terms

      # @return [Array<Query>]
      attr_accessor :related_searches


      #
      # Mapper for Images class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'Images',
          type: {
            name: 'Composite',
            class_name: 'Images',
            model_properties: {
              _type: {
                client_side_validation: true,
                required: true,
                serialized_name: '_type',
                type: {
                  name: 'String'
                }
              },
              id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              web_search_url: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'webSearchUrl',
                type: {
                  name: 'String'
                }
              },
              follow_up_queries: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'followUpQueries',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'QueryElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'Query'
                      }
                  }
                }
              },
              query_context: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'queryContext',
                type: {
                  name: 'Composite',
                  class_name: 'QueryContext'
                }
              },
              total_estimated_matches: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'totalEstimatedMatches',
                type: {
                  name: 'Number'
                }
              },
              is_family_friendly: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'isFamilyFriendly',
                type: {
                  name: 'Boolean'
                }
              },
              next_offset: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'nextOffset',
                type: {
                  name: 'Number'
                }
              },
              value: {
                client_side_validation: true,
                required: true,
                serialized_name: 'value',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'ImageObjectElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'ImageObject'
                      }
                  }
                }
              },
              query_expansions: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'queryExpansions',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'QueryElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'Query'
                      }
                  }
                }
              },
              similar_terms: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'similarTerms',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'QueryElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'Query'
                      }
                  }
                }
              },
              related_searches: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'relatedSearches',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'QueryElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'Query'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
