# 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::ComputerVision::V1_0
  module Models
    #
    # An object providing additional metadata describing color attributes.
    #
    class ColorInfo

      include MsRestAzure

      # @return [String] Possible dominant foreground color.
      attr_accessor :dominant_color_foreground

      # @return [String] Possible dominant background color.
      attr_accessor :dominant_color_background

      # @return [Array<String>] An array of possible dominant colors.
      attr_accessor :dominant_colors

      # @return [String] Possible accent color.
      attr_accessor :accent_color

      # @return [Boolean] A value indicating if the image is black and white.
      attr_accessor :is_bwimg


      #
      # Mapper for ColorInfo class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ColorInfo',
          type: {
            name: 'Composite',
            class_name: 'ColorInfo',
            model_properties: {
              dominant_color_foreground: {
                client_side_validation: true,
                required: false,
                serialized_name: 'dominantColorForeground',
                type: {
                  name: 'String'
                }
              },
              dominant_color_background: {
                client_side_validation: true,
                required: false,
                serialized_name: 'dominantColorBackground',
                type: {
                  name: 'String'
                }
              },
              dominant_colors: {
                client_side_validation: true,
                required: false,
                serialized_name: 'dominantColors',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              accent_color: {
                client_side_validation: true,
                required: false,
                serialized_name: 'accentColor',
                type: {
                  name: 'String'
                }
              },
              is_bwimg: {
                client_side_validation: true,
                required: false,
                serialized_name: 'isBWImg',
                type: {
                  name: 'Boolean'
                }
              }
            }
          }
        }
      end
    end
  end
end
