// <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, string @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; }

        internal InternalUploadStatus Status { get; }

        public DateTimeOffset ExpiresAt { get; }

        public string Object { get; }

        public OpenAIFile File { get; }

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