func (r bgpConfigurations) Watch(ctx context.Context, opts options.ListOptions) (watch.Interface, error) {
	return r.client.resources.Watch(ctx, opts, apiv3.KindBGPConfiguration, nil)
}
Watch returns a watch.Interface that watches the BGPConfiguration that
match the supplied options.
package clientv3
import (
	"context"
	apiv3 "github.com/projectcalico/api/pkg/apis/projectcalico/v3"
	cerrors "github.com/projectcalico/libcalico-go/lib/errors"
	"github.com/projectcalico/libcalico-go/lib/options"
	validator "github.com/projectcalico/libcalico-go/lib/validator/v3"
	"github.com/projectcalico/libcalico-go/lib/watch"
)
type BGPConfigurationInterface interface {
	Create(ctx context.Context, res *apiv3.BGPConfiguration, opts options.SetOptions) (*apiv3.BGPConfiguration, error)
	Update(ctx context.Context, res *apiv3.BGPConfiguration, opts options.SetOptions) (*apiv3.BGPConfiguration, error)
	Delete(ctx context.Context, name string, opts options.DeleteOptions) (*apiv3.BGPConfiguration, error)
	Get(ctx context.Context, name string, opts options.GetOptions) (*apiv3.BGPConfiguration, error)
	List(ctx context.Context, opts options.ListOptions) (*apiv3.BGPConfigurationList, error)
	Watch(ctx context.Context, opts options.ListOptions) (watch.Interface, error)
}
type bgpConfigurations struct {
	client client
}
func (r bgpConfigurations) Create(ctx context.Context, res *apiv3.BGPConfiguration, opts options.SetOptions) (*apiv3.BGPConfiguration, error) {
	if err := validator.Validate(res); err != nil {
		return nil, err
	}
	if err := r.ValidateDefaultOnlyFields(res); err != nil {
		return nil, err
	}
	out, err := r.client.resources.Create(ctx, opts, apiv3.KindBGPConfiguration, res)
	if out != nil {
		return out.(*apiv3.BGPConfiguration), err
	}
	return nil, err
}
func (r bgpConfigurations) Update(ctx context.Context, res *apiv3.BGPConfiguration, opts options.SetOptions) (*apiv3.BGPConfiguration, error) {
	if err := validator.Validate(res); err != nil {
		return nil, err
	}
	if err := r.ValidateDefaultOnlyFields(res); err != nil {
		return nil, err
	}
	out, err := r.client.resources.Update(ctx, opts, apiv3.KindBGPConfiguration, res)
	if out != nil {
		return out.(*apiv3.BGPConfiguration), err
	}
	return nil, err
}
func (r bgpConfigurations) Delete(ctx context.Context, name string, opts options.DeleteOptions) (*apiv3.BGPConfiguration, error) {
	out, err := r.client.resources.Delete(ctx, opts, apiv3.KindBGPConfiguration, noNamespace, name)
	if out != nil {
		return out.(*apiv3.BGPConfiguration), err
	}
	return nil, err
}
func (r bgpConfigurations) Get(ctx context.Context, name string, opts options.GetOptions) (*apiv3.BGPConfiguration, error) {
	out, err := r.client.resources.Get(ctx, opts, apiv3.KindBGPConfiguration, noNamespace, name)
	if out != nil {
		return out.(*apiv3.BGPConfiguration), err
	}
	return nil, err
}
func (r bgpConfigurations) List(ctx context.Context, opts options.ListOptions) (*apiv3.BGPConfigurationList, error) {
	res := &apiv3.BGPConfigurationList{}
	if err := r.client.resources.List(ctx, opts, apiv3.KindBGPConfiguration, apiv3.KindBGPConfigurationList, res); err != nil {
		return nil, err
	}
	return res, nil
}