class Azure::CognitiveServices::ContentModerator::V1_0::Models::CreateVideoReviewsBodyItem

Schema items of the body.

Attributes

callback_endpoint[RW]

@return [String] Optional CallbackEndpoint.

content[RW]

@return [String] Video content url to review.

content_id[RW]

@return [String] Content Identifier.

metadata[RW]

@return [Array<CreateVideoReviewsBodyItemMetadataItem>] Optional metadata details.

status[RW]

@return [Enum] Status of the video(Complete,Unpublished,Pending). Possible values include: 'Complete', 'Unpublished', 'Pending'

timescale[RW]

@return [Integer] Timescale of the video.

type[RW]

@return [Enum] Type of the content. Possible values include: 'Video'

video_frames[RW]

@return [Array<CreateVideoReviewsBodyItemVideoFramesItem>] Optional metadata details.

Private Class Methods

mapper() click to toggle source

Mapper for CreateVideoReviewsBodyItem class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/1.0/generated/azure_cognitiveservices_contentmoderator/models/create_video_reviews_body_item.rb, line 47
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CreateVideoReviewsBodyItem',
    type: {
      name: 'Composite',
      class_name: 'CreateVideoReviewsBodyItem',
      model_properties: {
        video_frames: {
          client_side_validation: true,
          required: false,
          serialized_name: 'VideoFrames',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'CreateVideoReviewsBodyItemVideoFramesItemElementType',
                type: {
                  name: 'Composite',
                  class_name: 'CreateVideoReviewsBodyItemVideoFramesItem'
                }
            }
          }
        },
        metadata: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Metadata',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'CreateVideoReviewsBodyItemMetadataItemElementType',
                type: {
                  name: 'Composite',
                  class_name: 'CreateVideoReviewsBodyItemMetadataItem'
                }
            }
          }
        },
        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'
          }
        },
        status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Status',
          type: {
            name: 'String'
          }
        },
        timescale: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Timescale',
          type: {
            name: 'Number'
          }
        },
        callback_endpoint: {
          client_side_validation: true,
          required: false,
          serialized_name: 'CallbackEndpoint',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end