using Newtonsoft.Json;
namespace PSProxmoxVE.Core.Models.Users;
///
/// Represents a Proxmox VE group as returned by the /access/groups endpoint.
///
public class PveGroup
{
/// The unique group identifier.
[JsonProperty("groupid")]
public string GroupId { get; set; } = string.Empty;
/// Optional comment/description for the group.
[JsonProperty("comment")]
public string? Comment { get; set; }
/// Comma-separated list of user IDs that belong to this group.
[JsonProperty("users")]
public string? Users { get; set; }
/// Array of member user IDs. Populated when available.
[JsonProperty("members")]
public string[]? Members { get; set; }
///
public override string ToString()
{
return $"Group: {GroupId} | Comment: {Comment ?? "N/A"} | Users: {Users ?? "none"}";
}
}