func (c *FakeMPIJobs) Update(ctx context.Context, mPIJob *v1alpha1.MPIJob, opts v1.UpdateOptions) (result *v1alpha1.MPIJob, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewUpdateAction(mpijobsResource, c.ns, mPIJob), &v1alpha1.MPIJob{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.MPIJob), err
}
Update takes the representation of a mPIJob and updates it. Returns the server's representation of the mPIJob, and an error, if there is any.
package fake
import (
	"context"
	v1alpha1 "github.com/alibaba/kubedl/apis/training/v1alpha1"
	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 FakeMPIJobs struct {
	Fake *FakeTrainingV1alpha1
	ns   string
}
var mpijobsResource = schema.GroupVersionResource{Group: "training.kubedl.io", Version: "v1alpha1", Resource: "mpijobs"}
var mpijobsKind = schema.GroupVersionKind{Group: "training.kubedl.io", Version: "v1alpha1", Kind: "MPIJob"}
func (c *FakeMPIJobs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MPIJob, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewGetAction(mpijobsResource, c.ns, name), &v1alpha1.MPIJob{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.MPIJob), err
}
func (c *FakeMPIJobs) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MPIJobList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewListAction(mpijobsResource, mpijobsKind, c.ns, opts), &v1alpha1.MPIJobList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &v1alpha1.MPIJobList{ListMeta: obj.(*v1alpha1.MPIJobList).ListMeta}
	for _, item := range obj.(*v1alpha1.MPIJobList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func (c *FakeMPIJobs) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewWatchAction(mpijobsResource, c.ns, opts))
}
func (c *FakeMPIJobs) Create(ctx context.Context, mPIJob *v1alpha1.MPIJob, opts v1.CreateOptions) (result *v1alpha1.MPIJob, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewCreateAction(mpijobsResource, c.ns, mPIJob), &v1alpha1.MPIJob{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.MPIJob), err
}