Usable variables and functions must start with a capital letter.
This commit is contained in:
parent
0f32a49e83
commit
64cc98fe52
1 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
type dcim_interfaces_create struct {
|
type Dcim_Interfaces_Create struct {
|
||||||
Device int `json:"device"`
|
Device int `json:"device"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Type int `json:"type,omitempty"`
|
Type int `json:"type,omitempty"`
|
||||||
|
@ -28,7 +28,7 @@ type dcim_interfaces_create struct {
|
||||||
Tags []string `json:"tags,omitempty"`
|
Tags []string `json:"tags,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type dcim_interfaces_list struct {
|
type Dcim_Interfaces_List struct {
|
||||||
Count int `json:"count,omitempty"`
|
Count int `json:"count,omitempty"`
|
||||||
Next interface{} `json:"next,omitempty"`
|
Next interface{} `json:"next,omitempty"`
|
||||||
Previous interface{} `json:"previous,omitempty"`
|
Previous interface{} `json:"previous,omitempty"`
|
||||||
|
@ -79,7 +79,7 @@ type dcim_interfaces_list struct {
|
||||||
} `json:"results,omitempty"`
|
} `json:"results,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (i *dcim_interfaces_create) CreateInterface(n *NetBox) error {
|
func (i *Dcim_Interfaces_Create) CreateInterface(n *NetBox) error {
|
||||||
interfaceData, err := json.Marshal(i)
|
interfaceData, err := json.Marshal(i)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in a new issue