// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;

namespace OpenAI.Files
{
    internal partial class InternalUpload
    {
        private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;

        internal InternalUpload(string id, DateTimeOffset createdAt, string filename, int bytes, string purpose, InternalUploadStatus status, DateTimeOffset expiresAt)
        {
            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> additionalBinaryDataProperties)
        {
            Id = id;
            CreatedAt = createdAt;
            Filename = filename;
            Bytes = bytes;
            Purpose = purpose;
            Status = status;
            ExpiresAt = expiresAt;
            Object = @object;
            File = @file;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        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; }

        internal IDictionary<string, BinaryData> SerializedAdditionalRawData
        {
            get => _additionalBinaryDataProperties;
            set => _additionalBinaryDataProperties = value;
        }
    }
}
