Woops, edited the wrong dto
This commit is contained in:
parent
8a12a2668e
commit
cdbabd262a
1 changed files with 19 additions and 68 deletions
|
@ -77,74 +77,25 @@ type VirtualMachines struct {
|
|||
|
||||
// NewVirtualMachine is used to create new VirtualizationVirtualMachines
|
||||
type NewVirtualMachine struct {
|
||||
LastUpdated time.Time `json:"last_updated"`
|
||||
ConfigContext interface{} `json:"config_context"`
|
||||
CustomFields interface{} `json:"custom_fields"`
|
||||
Tenant struct {
|
||||
URL string `json:"url"`
|
||||
Name string `json:"name"`
|
||||
Slug string `json:"slug"`
|
||||
ID int `json:"id"`
|
||||
} `json:"tenant"`
|
||||
Site struct {
|
||||
URL string `json:"url"`
|
||||
Name string `json:"name"`
|
||||
Slug string `json:"slug"`
|
||||
ID int `json:"id"`
|
||||
} `json:"site"`
|
||||
PrimaryIP4 struct {
|
||||
URL string `json:"url"`
|
||||
Address string `json:"address"`
|
||||
ID int `json:"id"`
|
||||
Family int `json:"family"`
|
||||
} `json:"primary_ip4"`
|
||||
PrimaryIP struct {
|
||||
URL string `json:"url"`
|
||||
Address string `json:"address"`
|
||||
ID int `json:"id"`
|
||||
Family int `json:"family"`
|
||||
} `json:"primary_ip"`
|
||||
PrimaryIP6 struct {
|
||||
URL string `json:"url"`
|
||||
Address string `json:"address"`
|
||||
ID int `json:"id"`
|
||||
Family int `json:"family"`
|
||||
} `json:"primary_ip6"`
|
||||
LocalContextData string `json:"local_context_data"`
|
||||
Created string `json:"created"`
|
||||
Name string `json:"name"`
|
||||
Comments string `json:"comments"`
|
||||
Cluster struct {
|
||||
URL string `json:"url"`
|
||||
Name string `json:"name"`
|
||||
ID int `json:"id"`
|
||||
VirtualmachineCount int `json:"virtualmachine_count"`
|
||||
} `json:"cluster"`
|
||||
Tags []string `json:"tags"`
|
||||
Status struct {
|
||||
Label string `json:"label"`
|
||||
Value int `json:"value"`
|
||||
} `json:"status"`
|
||||
Platform struct {
|
||||
URL string `json:"url"`
|
||||
Name string `json:"name"`
|
||||
Slug string `json:"slug"`
|
||||
ID int `json:"id"`
|
||||
DeviceCount int `json:"device_count"`
|
||||
VirtualmachineCount int `json:"virtualmachine_count"`
|
||||
} `json:"platform"`
|
||||
Role struct {
|
||||
URL string `json:"url"`
|
||||
Name string `json:"name"`
|
||||
Slug string `json:"slug"`
|
||||
ID int `json:"id"`
|
||||
DeviceCount int `json:"device_count"`
|
||||
VirtualmachineCount int `json:"virtualmachine_count"`
|
||||
} `json:"role"`
|
||||
Disk int `json:"disk"`
|
||||
Memory int `json:"memory"`
|
||||
Vcpus int `json:"vcpus"`
|
||||
ID int `json:"id"`
|
||||
CustomFields struct{} `json:"custom_fields"`
|
||||
Status string `json:"status"`
|
||||
LocalContextData string `json:"local_context_data"`
|
||||
Comments string `json:"comments"`
|
||||
Name string `json:"name"`
|
||||
Tags []struct {
|
||||
Name string `json:"name"`
|
||||
Slug string `json:"slug"`
|
||||
Color string `json:"color"`
|
||||
} `json:"tags"`
|
||||
Platform int `json:"platform"`
|
||||
PrimaryIP4 int `json:"primary_ip4"`
|
||||
Vcpus int `json:"vcpus"`
|
||||
Memory int `json:"memory"`
|
||||
Disk int `json:"disk"`
|
||||
Role int `json:"role"`
|
||||
Cluster int `json:"cluster"`
|
||||
Tenant int `json:"tenant"`
|
||||
PrimaryIP6 int `json:"primary_ip6"`
|
||||
}
|
||||
|
||||
// VirtualMachineFilter is used to filter dcim_device_list query to the Netbox API
|
||||
|
|
Loading…
Reference in a new issue