package model // NodeResponse is the simplified API response for a node. type NodeResponse struct { Name string `json:"name"` State []string `json:"state"` CPUs int32 `json:"cpus"` RealMemory int64 `json:"real_memory"` AllocMem int64 `json:"alloc_memory,omitempty"` Arch string `json:"architecture,omitempty"` OS string `json:"operating_system,omitempty"` } // PartitionResponse is the simplified API response for a partition. type PartitionResponse struct { Name string `json:"name"` State []string `json:"state"` Nodes string `json:"nodes,omitempty"` TotalCPUs int32 `json:"total_cpus,omitempty"` TotalNodes int32 `json:"total_nodes,omitempty"` MaxTime string `json:"max_time,omitempty"` Default bool `json:"default,omitempty"` }