Initial commit of PSProxmox module

This commit is contained in:
Alphaeus Mote
2025-04-28 14:11:32 -04:00
commit 2385442c83
80 changed files with 9481 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
using Newtonsoft.Json;
using System.Collections.Generic;
namespace PSProxmox.Models
{
/// <summary>
/// Represents a role in Proxmox VE.
/// </summary>
public class ProxmoxRole
{
/// <summary>
/// Gets or sets the role ID.
/// </summary>
[JsonProperty("roleid")]
public string RoleID { get; set; }
/// <summary>
/// Gets or sets the role's privileges.
/// </summary>
[JsonProperty("privs")]
public string Privileges { get; set; }
/// <summary>
/// Gets or sets a value indicating whether the role is a special role.
/// </summary>
[JsonProperty("special")]
public bool Special { get; set; }
/// <summary>
/// Gets the role's privileges as a list.
/// </summary>
[JsonIgnore]
public List<string> PrivilegesList => Privileges?.Split(',') ?? new List<string>();
}
}