
#nullable enable

namespace Cohere
{
    /// <summary>
    /// 
    /// </summary>
    public sealed partial class CheckAPIKeyResponse
    {
        /// <summary>
        /// 
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("valid")]
        [global::System.Text.Json.Serialization.JsonRequired]
        public required bool Valid { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("organization_id")]
        public string? OrganizationId { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [global::System.Text.Json.Serialization.JsonPropertyName("owner_id")]
        public string? OwnerId { 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="CheckAPIKeyResponse" /> class.
        /// </summary>
        /// <param name="valid"></param>
        /// <param name="organizationId"></param>
        /// <param name="ownerId"></param>
        [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers]
        public CheckAPIKeyResponse(
            bool valid,
            string? organizationId,
            string? ownerId)
        {
            this.Valid = valid;
            this.OrganizationId = organizationId;
            this.OwnerId = ownerId;
        }

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