// <auto-generated/>

#nullable disable

using System;
using System.Collections.Generic;
using System.Linq;
using OpenAI;

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

        public InternalCompleteUploadRequest(IEnumerable<string> partIds)
        {
            Argument.AssertNotNull(partIds, nameof(partIds));

            PartIds = partIds.ToList();
        }

        internal InternalCompleteUploadRequest(IList<string> partIds, string md5, IDictionary<string, BinaryData> additionalBinaryDataProperties)
        {
            // Plugin customization: ensure initialization of collections
            PartIds = partIds ?? new ChangeTrackingList<string>();
            Md5 = md5;
            _additionalBinaryDataProperties = additionalBinaryDataProperties;
        }

        public IList<string> PartIds { get; }

        public string Md5 { get; set; }

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