add toughswitch consolidated type, and use in cmd

This commit is contained in:
2026-01-19 11:45:16 -05:00
parent 4964317b6b
commit b4f49be2c6
3 changed files with 143 additions and 1 deletions

View File

@@ -1,5 +1,16 @@
package toughswitch
// ToughSwitch combines all types into one response.
type ToughSwitch struct {
Device *Device `json:"device,omitempty"`
System *System `json:"system,omitempty"`
Interfaces []Interface `json:"interfaces,omitempty"`
Neighbors []Neighbor `json:"neighbors,omitempty"`
Statistics []Statistics `json:"statistics,omitempty"`
Services *Services `json:"services,omitempty"`
VLANs *VLANs `json:"vlans,omitempty"`
}
// LoginResponse represents the response from the login endpoint.
type LoginResponse struct {
StatusCode int `json:"statusCode"`