
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
//
// Changes to this file may cause incorrect behavior and will be lost when
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
#nullable enable
namespace HathoraCloud.Models.Shared
{
    using HathoraCloud.Models.Shared;
    using Newtonsoft.Json;
    using System;
    using UnityEngine;
    
    [Serializable]
    public class OrgToken
    {

        [SerializeField]
        [JsonProperty("createdAt")]
        public DateTime CreatedAt { get; set; } = default!;

        [SerializeField]
        [JsonProperty("createdBy")]
        public string CreatedBy { get; set; } = default!;

        [SerializeField]
        [JsonProperty("lastFourCharsOfKey")]
        public string LastFourCharsOfKey { get; set; } = default!;

        /// <summary>
        /// Readable name for a token. Must be unique within an organization.
        /// </summary>
        [SerializeField]
        [JsonProperty("name")]
        public string Name { get; set; } = default!;

        [SerializeField]
        [JsonProperty("orgId")]
        public string OrgId { get; set; } = default!;

        /// <summary>
        /// System generated unique identifier for an organization token.
        /// </summary>
        [SerializeField]
        [JsonProperty("orgTokenId")]
        public string OrgTokenId { get; set; } = default!;

        /// <summary>
        /// If not defined, the token has Admin access.
        /// </summary>
        [SerializeField]
        [JsonProperty("scopes")]
        public OrgTokenScopes? Scopes { get; set; }

        [SerializeField]
        [JsonProperty("status")]
        public OrgTokenStatus Status { get; set; } = default!;
    }
}