# 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::ContentModerator::V1_0
  module Models
    #
    # Schema items of the body.
    #
    class CreateReviewBodyItem

      include MsRestAzure

      # @return [Enum] Type of the content. Possible values include: 'Image',
      # 'Text'
      attr_accessor :type

      # @return [String] Content to review.
      attr_accessor :content

      # @return [String] Content Identifier.
      attr_accessor :content_id

      # @return [String] Optional CallbackEndpoint.
      attr_accessor :callback_endpoint

      # @return [Array<CreateReviewBodyItemMetadataItem>] Optional metadata
      # details.
      attr_accessor :metadata


      #
      # Mapper for CreateReviewBodyItem class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'createReviewBodyItem',
          type: {
            name: 'Composite',
            class_name: 'CreateReviewBodyItem',
            model_properties: {
              type: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Type',
                type: {
                  name: 'String'
                }
              },
              content: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Content',
                type: {
                  name: 'String'
                }
              },
              content_id: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ContentId',
                type: {
                  name: 'String'
                }
              },
              callback_endpoint: {
                client_side_validation: true,
                required: false,
                serialized_name: 'CallbackEndpoint',
                type: {
                  name: 'String'
                }
              },
              metadata: {
                client_side_validation: true,
                required: false,
                serialized_name: 'Metadata',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'CreateReviewBodyItemMetadataItemElementType',
                      type: {
                        name: 'Composite',
                        class_name: 'CreateReviewBodyItemMetadataItem'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
