func (c *FakeTrials) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
	action := testing.NewDeleteCollectionAction(trialsResource, c.ns, listOpts)
	_, err := c.Fake.Invokes(action, &v1beta1.TrialList{})
	return err
}
DeleteCollection deletes a collection of objects.
package fake
import (
	"context"
	v1beta1 "github.com/kubeflow/katib/pkg/apis/controller/trials/v1beta1"
	v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	labels "k8s.io/apimachinery/pkg/labels"
	schema "k8s.io/apimachinery/pkg/runtime/schema"
	types "k8s.io/apimachinery/pkg/types"
	watch "k8s.io/apimachinery/pkg/watch"
	testing "k8s.io/client-go/testing"
)
type FakeTrials struct {
	Fake *FakeTrialV1beta1
	ns   string
}
var trialsResource = schema.GroupVersionResource{Group: "trial.kubeflow.org", Version: "v1beta1", Resource: "trials"}
var trialsKind = schema.GroupVersionKind{Group: "trial.kubeflow.org", Version: "v1beta1", Kind: "Trial"}
func (c *FakeTrials) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Trial, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewGetAction(trialsResource, c.ns, name), &v1beta1.Trial{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1beta1.Trial), err
}
func (c *FakeTrials) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.TrialList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(trialsResource, trialsKind, c.ns, opts), &v1beta1.TrialList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &v1beta1.TrialList{ListMeta: obj.(*v1beta1.TrialList).ListMeta}
	for _, item := range obj.(*v1beta1.TrialList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func (c *FakeTrials) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(trialsResource, c.ns, opts))
}
func (c *FakeTrials) Create(ctx context.Context, trial *v1beta1.Trial, opts v1.CreateOptions) (result *v1beta1.Trial, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewCreateAction(trialsResource, c.ns, trial), &v1beta1.Trial{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1beta1.Trial), err
}
func (c *FakeTrials) Update(ctx context.Context, trial *v1beta1.Trial, opts v1.UpdateOptions) (result *v1beta1.Trial, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewUpdateAction(trialsResource, c.ns, trial), &v1beta1.Trial{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1beta1.Trial), err
}
func (c *FakeTrials) UpdateStatus(ctx context.Context, trial *v1beta1.Trial, opts v1.UpdateOptions) (*v1beta1.Trial, error) {
	obj, err := c.Fake.
		Invokes(testing.NewUpdateSubresourceAction(trialsResource, "status", c.ns, trial), &v1beta1.Trial{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1beta1.Trial), err
}
func (c *FakeTrials) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewDeleteAction(trialsResource, c.ns, name), &v1beta1.Trial{})
	return err
}