// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace OpenAI.Files
{
    internal partial class InternalUpload
    {
        internal IDictionary<string, BinaryData> SerializedAdditionalRawData { get; set; }
        internal InternalUpload(string id, DateTimeOffset createdAt, string filename, int bytes, string purpose, InternalUploadStatus status, DateTimeOffset expiresAt)
        {
            Argument.AssertNotNull(id, nameof(id));
            Argument.AssertNotNull(filename, nameof(filename));
            Argument.AssertNotNull(purpose, nameof(purpose));

            Id = id;
            CreatedAt = createdAt;
            Filename = filename;
            Bytes = bytes;
            Purpose = purpose;
            Status = status;
            ExpiresAt = expiresAt;
        }

        internal InternalUpload(string id, DateTimeOffset createdAt, string filename, int bytes, string purpose, InternalUploadStatus status, DateTimeOffset expiresAt, InternalUploadObject? @object, OpenAIFile file, IDictionary<string, BinaryData> serializedAdditionalRawData)
        {
            Id = id;
            CreatedAt = createdAt;
            Filename = filename;
            Bytes = bytes;
            Purpose = purpose;
            Status = status;
            ExpiresAt = expiresAt;
            Object = @object;
            File = file;
            SerializedAdditionalRawData = serializedAdditionalRawData;
        }

        internal InternalUpload()
        {
        }

        public string Id { get; }
        public DateTimeOffset CreatedAt { get; }
        public string Filename { get; }
        public int Bytes { get; }
        public string Purpose { get; }
        public InternalUploadStatus Status { get; }
        public DateTimeOffset ExpiresAt { get; }
        public InternalUploadObject? Object { get; }
        public OpenAIFile File { get; }
    }
}
