Documentation
¶
Index ¶
Constants ¶
const ( // FirmwareImageImageTypeKickstart captures enum value "kickstart" FirmwareImageImageTypeKickstart string = "kickstart" // FirmwareImageImageTypeSystem captures enum value "system" FirmwareImageImageTypeSystem string = "system" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type About ¶
type About struct {
// name
// Required: true
Name *string `json:"name"`
}
func (*About) MarshalBinary ¶
MarshalBinary interface implementation
func (*About) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type CheckVlan ¶
type CheckVlan struct {
// endpoint
// Required: true
Endpoint *SwitchEndpoint `json:"endpoint"`
// vlan ID
// Required: true
VlanID *int64 `json:"vlanID"`
}
func (*CheckVlan) MarshalBinary ¶
MarshalBinary interface implementation
func (*CheckVlan) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Error ¶
type Error struct {
// code
Code int32 `json:"code,omitempty"`
// fields
Fields string `json:"fields,omitempty"`
// message
Message string `json:"message,omitempty"`
}
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ErrorResponse ¶
type ErrorResponse struct {
// errors
Errors []string `json:"errors"`
// message
// Required: true
Message *string `json:"message"`
}
func (*ErrorResponse) MarshalBinary ¶
func (m *ErrorResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ErrorResponse) UnmarshalBinary ¶
func (m *ErrorResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type FirmwareImage ¶
type FirmwareImage struct {
// image type
// Required: true
ImageType *string `json:"imageType"`
// image URL
// Required: true
ImageURL *string `json:"imageURL"`
}
func (*FirmwareImage) MarshalBinary ¶
func (m *FirmwareImage) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FirmwareImage) UnmarshalBinary ¶
func (m *FirmwareImage) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Login ¶
type Login struct {
// password
Password string `json:"password,omitempty"`
// username
Username string `json:"username,omitempty"`
}
func (*Login) MarshalBinary ¶
MarshalBinary interface implementation
func (*Login) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type LoginError ¶
type LoginError struct {
// error
Error string `json:"error,omitempty"`
// message
Message string `json:"message,omitempty"`
}
func (*LoginError) MarshalBinary ¶
func (m *LoginError) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*LoginError) UnmarshalBinary ¶
func (m *LoginError) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Status ¶
type Status struct {
// message
Message string `json:"message,omitempty"`
}
func (*Status) MarshalBinary ¶
MarshalBinary interface implementation
func (*Status) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Switch ¶
type Switch struct {
// endpoint
// Required: true
Endpoint *SwitchEndpoint `json:"endpoint"`
}
func (*Switch) MarshalBinary ¶
MarshalBinary interface implementation
func (*Switch) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type SwitchConfig ¶
type SwitchConfig struct {
// config
Config string `json:"config,omitempty"`
}
func (*SwitchConfig) MarshalBinary ¶
func (m *SwitchConfig) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SwitchConfig) UnmarshalBinary ¶
func (m *SwitchConfig) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SwitchConfigResponse ¶
type SwitchConfigResponse struct {
// config
Config string `json:"config,omitempty"`
}
func (*SwitchConfigResponse) MarshalBinary ¶
func (m *SwitchConfigResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SwitchConfigResponse) UnmarshalBinary ¶
func (m *SwitchConfigResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SwitchEndpoint ¶
type SwitchEndpoint struct {
// ipaddress
// Required: true
Ipaddress *string `json:"ipaddress"`
// password
// Required: true
Password *string `json:"password"`
// switch type
// Required: true
SwitchType *string `json:"switchType"`
// username
// Required: true
Username *string `json:"username"`
}
func (*SwitchEndpoint) MarshalBinary ¶
func (m *SwitchEndpoint) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SwitchEndpoint) UnmarshalBinary ¶
func (m *SwitchEndpoint) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type SwitchVersionResponse ¶
type SwitchVersionResponse struct {
// version
Version string `json:"version,omitempty"`
}
func (*SwitchVersionResponse) MarshalBinary ¶
func (m *SwitchVersionResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*SwitchVersionResponse) UnmarshalBinary ¶
func (m *SwitchVersionResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Token ¶
type Token struct {
// token
Token string `json:"token,omitempty"`
}
func (*Token) MarshalBinary ¶
MarshalBinary interface implementation
func (*Token) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type UpdateSwitch ¶
type UpdateSwitch struct {
// endpoint
// Required: true
Endpoint *SwitchEndpoint `json:"endpoint"`
// firmware images
// Required: true
// Min Items: 1
FirmwareImages []*FirmwareImage `json:"firmwareImages"`
// switch model
// Required: true
SwitchModel *string `json:"switchModel"`
}
func (*UpdateSwitch) MarshalBinary ¶
func (m *UpdateSwitch) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdateSwitch) UnmarshalBinary ¶
func (m *UpdateSwitch) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation