diff --git a/access-types.go b/access-types.go index 39e74d1..3f61de5 100644 --- a/access-types.go +++ b/access-types.go @@ -6,9 +6,9 @@ type Pool struct { Groups []Group `json:"groups"` Resources map[string]any `json:"resources"` Templates Templates `json:"templates"` - AllowedNodes map[string]bool `json:"nodes-allowed"` - AllowedVMIDRange VMID `json:"vmid-allowed"` - AllowedBackups Backups `json:"backups-allowed"` + AllowedNodes map[string]bool `json:"nodes-allowed" mapstructure:"nodes-allowed"` + AllowedVMIDRange VMID `json:"vmid-allowed" mapstructure:"vmid-allowed"` + AllowedBackups Backups `json:"backups-allowed" mapstructure:"backups-allowed"` } // proxmox typically formats as gid-realm for non pve realms @@ -40,12 +40,12 @@ type User struct { type VMID struct { Min int `json:"min"` - MAx int `json:"max"` + Max int `json:"max"` } type Backups struct { - MaxPerInstance int `json:"max-per-instance"` - MaxTotal int `json:"max-total"` + MaxPerInstance int `json:"max-per-instance" mapstructure:"max-per-instance"` + MaxTotal int `json:"max-total" mapstructure:"max-total"` } type Templates struct {