Omit ALL optional fields..
This commit is contained in:
parent
63c2a86871
commit
d9a9af4eae
1 changed files with 3 additions and 3 deletions
|
@ -20,9 +20,9 @@ type NewVirtualizationInterface struct {
|
|||
Description string `json:"description,omitempty"`
|
||||
MACAddress string `json:"mac_address,omitempty"`
|
||||
Tags *[]struct {
|
||||
Name string `json:"name"`
|
||||
Slug string `json:"slug"`
|
||||
Color string `json:"color"`
|
||||
Name string `json:"name,omitempty"`
|
||||
Slug string `json:"slug,omitempty"`
|
||||
Color string `json:"color,omitempty"`
|
||||
} `json:"tags,omitempty"`
|
||||
TaggedVLANs *[]int `json:"tagged_vlans,omitempty"`
|
||||
Bridge int `json:"bridge,omitempty"`
|
||||
|
|
Loading…
Reference in a new issue