github.com/kubearmor/cilium@v1.6.12/api/v1/models/ip_a_m_address_response.go (about) 1 // Code generated by go-swagger; DO NOT EDIT. 2 3 package models 4 5 // This file was generated by the swagger tool. 6 // Editing this file might prove futile when you re-run the swagger generate command 7 8 import ( 9 strfmt "github.com/go-openapi/strfmt" 10 11 "github.com/go-openapi/swag" 12 ) 13 14 // IPAMAddressResponse IPAM configuration of an individual address family 15 // swagger:model IPAMAddressResponse 16 type IPAMAddressResponse struct { 17 18 // List of CIDRs out of which IPs are allocated 19 Cidrs []string `json:"cidrs"` 20 21 // The UUID for the expiration timer. Set when expiration has been 22 // enabled while allocating. 23 // 24 ExpirationUUID string `json:"expiration-uuid,omitempty"` 25 26 // IP of gateway 27 Gateway string `json:"gateway,omitempty"` 28 29 // Allocated IP for endpoint 30 IP string `json:"ip,omitempty"` 31 32 // MAC of master interface if address is a slave/secondary of a master interface 33 MasterMac string `json:"master-mac,omitempty"` 34 } 35 36 // Validate validates this IP a m address response 37 func (m *IPAMAddressResponse) Validate(formats strfmt.Registry) error { 38 return nil 39 } 40 41 // MarshalBinary interface implementation 42 func (m *IPAMAddressResponse) MarshalBinary() ([]byte, error) { 43 if m == nil { 44 return nil, nil 45 } 46 return swag.WriteJSON(m) 47 } 48 49 // UnmarshalBinary interface implementation 50 func (m *IPAMAddressResponse) UnmarshalBinary(b []byte) error { 51 var res IPAMAddressResponse 52 if err := swag.ReadJSON(b, &res); err != nil { 53 return err 54 } 55 *m = res 56 return nil 57 }