// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace OpenAI.Files
{
    public partial class OpenAIFile
    {
        internal IDictionary<string, BinaryData> SerializedAdditionalRawData { get; set; }
        internal OpenAIFile(string id, int? sizeInBytes, DateTimeOffset createdAt, string filename, FilePurpose purpose, FileStatus status)
        {
            Argument.AssertNotNull(id, nameof(id));
            Argument.AssertNotNull(filename, nameof(filename));

            Id = id;
            SizeInBytes = sizeInBytes;
            CreatedAt = createdAt;
            Filename = filename;
            Purpose = purpose;
            Status = status;
        }

        internal OpenAIFile(string id, int? sizeInBytes, DateTimeOffset createdAt, string filename, InternalOpenAIFileObject @object, FilePurpose purpose, FileStatus status, string statusDetails, IDictionary<string, BinaryData> serializedAdditionalRawData)
        {
            Id = id;
            SizeInBytes = sizeInBytes;
            CreatedAt = createdAt;
            Filename = filename;
            Object = @object;
            Purpose = purpose;
            Status = status;
            StatusDetails = statusDetails;
            SerializedAdditionalRawData = serializedAdditionalRawData;
        }

        internal OpenAIFile()
        {
        }

        public string Id { get; }
        public DateTimeOffset CreatedAt { get; }
        public string Filename { get; }

        public FilePurpose Purpose { get; }
    }
}
