mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-08-09 13:59:24 +00:00
0532327d46
The codebase uses Newtonsoft.Json (JObject.Parse + ToObject<T>) exclusively. Removed all [JsonPropertyName] attributes and [System.Text.Json.Serialization. JsonIgnore] attributes from 41 model files, along with the now-unused using System.Text.Json.Serialization imports. [JsonProperty] (Newtonsoft) attributes remain as the sole serialization annotations. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
32 lines
959 B
C#
32 lines
959 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace PSProxmoxVE.Core.Models.Users;
|
|
|
|
/// <summary>
|
|
/// Represents a Proxmox VE group as returned by the /access/groups endpoint.
|
|
/// </summary>
|
|
public class PveGroup
|
|
{
|
|
/// <summary>The unique group identifier.</summary>
|
|
[JsonProperty("groupid")]
|
|
public string GroupId { get; set; } = string.Empty;
|
|
|
|
/// <summary>Optional comment/description for the group.</summary>
|
|
[JsonProperty("comment")]
|
|
public string? Comment { get; set; }
|
|
|
|
/// <summary>Comma-separated list of user IDs that belong to this group.</summary>
|
|
[JsonProperty("users")]
|
|
public string? Users { get; set; }
|
|
|
|
/// <summary>Array of member user IDs. Populated when available.</summary>
|
|
[JsonProperty("members")]
|
|
public string[]? Members { get; set; }
|
|
|
|
/// <inheritdoc />
|
|
public override string ToString()
|
|
{
|
|
return $"Group: {GroupId} | Comment: {Comment ?? "N/A"} | Users: {Users ?? "none"}";
|
|
}
|
|
}
|