func (h *bgpPeers) Delete(metadata api.BGPPeerMetadata) error {
	return h.c.delete(metadata, h)
}
Delete deletes an existing BGP peer.
package client
import (
	api "github.com/projectcalico/libcalico-go/lib/apis/v1"
	"github.com/projectcalico/libcalico-go/lib/apis/v1/unversioned"
	"github.com/projectcalico/libcalico-go/lib/backend/model"
	"github.com/projectcalico/libcalico-go/lib/converter"
	"github.com/projectcalico/libcalico-go/lib/scope"
)
type BGPPeerInterface interface {
	List(api.BGPPeerMetadata) (*api.BGPPeerList, error)
	Get(api.BGPPeerMetadata) (*api.BGPPeer, error)
	Create(*api.BGPPeer) (*api.BGPPeer, error)
	Update(*api.BGPPeer) (*api.BGPPeer, error)
	Apply(*api.BGPPeer) (*api.BGPPeer, error)
	Delete(api.BGPPeerMetadata) error
}
type bgpPeers struct {
	converter.BGPPeerConverter
	c *Client
}
func newBGPPeers(c *Client) BGPPeerInterface {
	return &bgpPeers{c: c}
}
func (h *bgpPeers) Create(a *api.BGPPeer) (*api.BGPPeer, error) {
	return a, h.c.create(*a, h)
}
func (h *bgpPeers) Update(a *api.BGPPeer) (*api.BGPPeer, error) {
	return a, h.c.update(*a, h)
}
func (h *bgpPeers) Apply(a *api.BGPPeer) (*api.BGPPeer, error) {
	return a, h.c.apply(*a, h)
}