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"`
|
Description string `json:"description,omitempty"`
|
||||||
MACAddress string `json:"mac_address,omitempty"`
|
MACAddress string `json:"mac_address,omitempty"`
|
||||||
Tags *[]struct {
|
Tags *[]struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name,omitempty"`
|
||||||
Slug string `json:"slug"`
|
Slug string `json:"slug,omitempty"`
|
||||||
Color string `json:"color"`
|
Color string `json:"color,omitempty"`
|
||||||
} `json:"tags,omitempty"`
|
} `json:"tags,omitempty"`
|
||||||
TaggedVLANs *[]int `json:"tagged_vlans,omitempty"`
|
TaggedVLANs *[]int `json:"tagged_vlans,omitempty"`
|
||||||
Bridge int `json:"bridge,omitempty"`
|
Bridge int `json:"bridge,omitempty"`
|
||||||
|
|
Loading…
Reference in a new issue