-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvlan.go
45 lines (43 loc) · 1.18 KB
/
vlan.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package main
import "time"
type Vlan struct {
Id int `json:"id"`
Url string `json:"url"`
Display string `json:"display"`
Site struct {
Id int `json:"id"`
Url string `json:"url"`
Display string `json:"display"`
Name string `json:"name"`
Slug string `json:"slug"`
} `json:"site"`
Group interface{} `json:"group"`
Vid int `json:"vid"`
Name string `json:"name"`
Tenant struct {
Id int `json:"id"`
Url string `json:"url"`
Display string `json:"display"`
Name string `json:"name"`
Slug string `json:"slug"`
} `json:"tenant"`
Status struct {
Value string `json:"value"`
Label string `json:"label"`
} `json:"status"`
Role interface{} `json:"role"`
Description string `json:"description"`
Tags []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"`
} `json:"tags"`
CustomFields struct {
} `json:"custom_fields"`
Created time.Time `json:"created"`
LastUpdated time.Time `json:"last_updated"`
PrefixCount int `json:"prefix_count"`
}