// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;

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

        internal OpenAIFile(string id, DateTimeOffset createdAt, string filename, FilePurpose purpose, long? sizeInBytesLong, FileStatus status)
        {
            Id = id;
            CreatedAt = createdAt;
            Filename = filename;
            Purpose = purpose;
            SizeInBytesLong = sizeInBytesLong;
            Status = status;
        }

        internal OpenAIFile(string id, DateTimeOffset createdAt, DateTimeOffset? expiresAt, string filename, FilePurpose purpose, string @object, long? sizeInBytesLong, FileStatus status, string statusDetails, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            Id = id;
            CreatedAt = createdAt;
            ExpiresAt = expiresAt;
            Filename = filename;
            Purpose = purpose;
            Object = @object;
            SizeInBytesLong = sizeInBytesLong;
            Status = status;
            StatusDetails = statusDetails;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public string Id { get; }

        public DateTimeOffset CreatedAt { get; }

        [Experimental("OPENAI001")]
        public DateTimeOffset? ExpiresAt { get; }

        public string Filename { get; }

        public FilePurpose Purpose { get; }

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