
#nullable enable

namespace Cohere
{
    /// <summary>
    /// 
    /// </summary>
    public sealed partial class ApiMeta
    {
        /// <summary>
        /// 
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("api_version")]
        public global::Cohere.ApiMetaApiVersion? ApiVersion { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("billed_units")]
        public global::Cohere.ApiMetaBilledUnits? BilledUnits { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("tokens")]
        public global::Cohere.ApiMetaTokens? Tokens { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("warnings")]
        public global::System.Collections.Generic.IList<string>? Warnings { get; set; }

        /// <summary>
        /// Additional properties that are not explicitly defined in the schema
        /// </summary>
        [global::System.Text.Json.Serialization.JsonExtensionData]
        public global::System.Collections.Generic.IDictionary<string, object> AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary<string, object>();

        /// <summary>
        /// Initializes a new instance of the <see cref="ApiMeta" /> class.
        /// </summary>
        /// <param name="apiVersion"></param>
        /// <param name="billedUnits"></param>
        /// <param name="tokens"></param>
        /// <param name="warnings"></param>
        [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
        public ApiMeta(
            global::Cohere.ApiMetaApiVersion? apiVersion,
            global::Cohere.ApiMetaBilledUnits? billedUnits,
            global::Cohere.ApiMetaTokens? tokens,
            global::System.Collections.Generic.IList<string>? warnings)
        {
            this.ApiVersion = apiVersion;
            this.BilledUnits = billedUnits;
            this.Tokens = tokens;
            this.Warnings = warnings;
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="ApiMeta" /> class.
        /// </summary>
        public ApiMeta()
        {
        }
    }
}