func (r ipReservations) Watch(ctx context.Context, opts options.ListOptions) (watch.Interface, error) {
	return r.client.resources.Watch(ctx, opts, apiv3.KindIPReservation, nil)
}
Watch returns a watch.Interface that watches the IPReservations that match the
supplied options.
package clientv3
import (
	"context"
	log "github.com/sirupsen/logrus"
	apiv3 "github.com/projectcalico/api/pkg/apis/projectcalico/v3"
	"github.com/projectcalico/libcalico-go/lib/options"
	validator "github.com/projectcalico/libcalico-go/lib/validator/v3"
	"github.com/projectcalico/libcalico-go/lib/watch"
)
type IPReservationInterface interface {
	Create(ctx context.Context, res *apiv3.IPReservation, opts options.SetOptions) (*apiv3.IPReservation, error)
	Update(ctx context.Context, res *apiv3.IPReservation, opts options.SetOptions) (*apiv3.IPReservation, error)
	Delete(ctx context.Context, name string, opts options.DeleteOptions) (*apiv3.IPReservation, error)
	Get(ctx context.Context, name string, opts options.GetOptions) (*apiv3.IPReservation, error)
	List(ctx context.Context, opts options.ListOptions) (*apiv3.IPReservationList, error)
	Watch(ctx context.Context, opts options.ListOptions) (watch.Interface, error)
}
type ipReservations struct {
	client client
}
func (r ipReservations) Create(ctx context.Context, res *apiv3.IPReservation, opts options.SetOptions) (*apiv3.IPReservation, error) {
	if err := validator.Validate(res); err != nil {
		return nil, err
	}
	out, err := r.client.resources.Create(ctx, opts, apiv3.KindIPReservation, res)
	if out != nil {
		return out.(*apiv3.IPReservation), err
	}
	return nil, err
}
func (r ipReservations) Update(ctx context.Context, res *apiv3.IPReservation, opts options.SetOptions) (*apiv3.IPReservation, error) {
	if err := validator.Validate(res); err != nil {
		return nil, err
	}
	out, err := r.client.resources.Update(ctx, opts, apiv3.KindIPReservation, res)
	if out != nil {
		return out.(*apiv3.IPReservation), err
	}
	return nil, err
}
func (r ipReservations) Delete(ctx context.Context, name string, opts options.DeleteOptions) (*apiv3.IPReservation, error) {
	log.WithField("name", name).Info("Deleting reservation")
	out, err := r.client.resources.Delete(ctx, opts, apiv3.KindIPReservation, noNamespace, name)
	if out != nil {
		return out.(*apiv3.IPReservation), err
	}
	return nil, err
}
func (r ipReservations) Get(ctx context.Context, name string, opts options.GetOptions) (*apiv3.IPReservation, error) {
	out, err := r.client.resources.Get(ctx, opts, apiv3.KindIPReservation, noNamespace, name)
	if out != nil {
		return out.(*apiv3.IPReservation), err
	}
	return nil, err
}
func (r ipReservations) List(ctx context.Context, opts options.ListOptions) (*apiv3.IPReservationList, error) {
	res := &apiv3.IPReservationList{}
	if err := r.client.resources.List(ctx, opts, apiv3.KindIPReservation, apiv3.KindIPReservationList, res); err != nil {
		return nil, err
	}
	return res, nil
}