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
|
// NewVirtualMachine is used to create new VirtualizationVirtualMachines
|
||||||
type NewVirtualMachine struct {
|
type NewVirtualMachine struct {
|
||||||
LastUpdated time.Time `json:"last_updated"`
|
CustomFields struct{} `json:"custom_fields"`
|
||||||
ConfigContext interface{} `json:"config_context"`
|
Status string `json:"status"`
|
||||||
CustomFields interface{} `json:"custom_fields"`
|
LocalContextData string `json:"local_context_data"`
|
||||||
Tenant struct {
|
Comments string `json:"comments"`
|
||||||
URL string `json:"url"`
|
Name string `json:"name"`
|
||||||
Name string `json:"name"`
|
Tags []struct {
|
||||||
Slug string `json:"slug"`
|
Name string `json:"name"`
|
||||||
ID int `json:"id"`
|
Slug string `json:"slug"`
|
||||||
} `json:"tenant"`
|
Color string `json:"color"`
|
||||||
Site struct {
|
} `json:"tags"`
|
||||||
URL string `json:"url"`
|
Platform int `json:"platform"`
|
||||||
Name string `json:"name"`
|
PrimaryIP4 int `json:"primary_ip4"`
|
||||||
Slug string `json:"slug"`
|
Vcpus int `json:"vcpus"`
|
||||||
ID int `json:"id"`
|
Memory int `json:"memory"`
|
||||||
} `json:"site"`
|
Disk int `json:"disk"`
|
||||||
PrimaryIP4 struct {
|
Role int `json:"role"`
|
||||||
URL string `json:"url"`
|
Cluster int `json:"cluster"`
|
||||||
Address string `json:"address"`
|
Tenant int `json:"tenant"`
|
||||||
ID int `json:"id"`
|
PrimaryIP6 int `json:"primary_ip6"`
|
||||||
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"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// VirtualMachineFilter is used to filter dcim_device_list query to the Netbox API
|
// VirtualMachineFilter is used to filter dcim_device_list query to the Netbox API
|
||||||
|
|
Loading…
Reference in a new issue