# 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::ResourceGraph::Mgmt::V2019_04_01
  module Models
    #
    # A request to compute additional statistics (facets) over the query
    # results.
    #
    class FacetRequest

      include MsRestAzure

      # @return [String] The column or list of columns to summarize by
      attr_accessor :expression

      # @return [FacetRequestOptions] The options for facet evaluation
      attr_accessor :options


      #
      # Mapper for FacetRequest class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'FacetRequest',
          type: {
            name: 'Composite',
            class_name: 'FacetRequest',
            model_properties: {
              expression: {
                client_side_validation: true,
                required: true,
                serialized_name: 'expression',
                type: {
                  name: 'String'
                }
              },
              options: {
                client_side_validation: true,
                required: false,
                serialized_name: 'options',
                type: {
                  name: 'Composite',
                  class_name: 'FacetRequestOptions'
                }
              }
            }
          }
        }
      end
    end
  end
end
