package netbox type LabeledInt struct { Value int `json:"value"` Label string `json:"label"` } type LabeledString struct { Value string `json:"value"` Label string `json:"label"` } type Role struct { ID int `json:"ID"` Url string `json:"url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slub"` } type Tag struct { ID int `json:"id"` Url string `json:"url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` Color string `json:"color"` } type SiteList struct { Count int `json:"count"` Next string `json:"next"` Previous string `json:"previous"` Results []*Site `json:"results"` } type Site struct { ID int `json:"id"` Url string `json:"url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` Facility string `json:"facility"` Description string `json:"description"` Timezone string `json:"time_zone"` ASN int `json:"asn"` Status LabeledString `json:"status"` } type PrefixList struct { Count int `json:"count"` Next string `json:"next"` Previous string `json:"previous"` Results []*Prefix `json:"results"` } type Prefix struct { ID int `json:"ID"` Url string `json:"url"` Display string `json:"display"` Prefix string `json:"prefix"` IsPool bool `json:"is_pool"` Description string `json:"description"` Created string `json:"created"` LastUpdated string `json:"last_updated"` Children int `json:"children"` Depth int `json:"_depth"` Family LabeledInt `json:"family"` Status LabeledString `json:"status"` Site *Site `json:"site"` Role *Role `json:"role"` Tags []*Tag `json:"tags"` CustomFields map[string]interface{} `json:"custom_fields"` }