# 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::V2_0
  module Models
    #
    # An object describing additional category details.
    #
    class CategoryDetail

      include MsRestAzure

      # @return [Array<CelebritiesModel>] An array of celebrities if any
      # identified.
      attr_accessor :celebrities

      # @return [Array<LandmarksModel>] An array of landmarks if any
      # identified.
      attr_accessor :landmarks


      #
      # Mapper for CategoryDetail class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'CategoryDetail',
          type: {
            name: 'Composite',
            class_name: 'CategoryDetail',
            model_properties: {
              celebrities: {
                client_side_validation: true,
                required: false,
                serialized_name: 'celebrities',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'CelebritiesModelElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'CelebritiesModel'
                      }
                  }
                }
              },
              landmarks: {
                client_side_validation: true,
                required: false,
                serialized_name: 'landmarks',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'LandmarksModelElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'LandmarksModel'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
