func (c *FakeNodeAssignmentGroups) Create(nodeAssignmentGroup *v1alpha1.NodeAssignmentGroup) (result *v1alpha1.NodeAssignmentGroup, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootCreateAction(nodeassignmentgroupsResource, nodeAssignmentGroup), &v1alpha1.NodeAssignmentGroup{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.NodeAssignmentGroup), err
}
Create takes the representation of a nodeAssignmentGroup and creates it.  Returns the server's representation of the nodeAssignmentGroup, and an error, if there is any.
package fake
import (
	v1alpha1 "github.com/domoinc/kube-valet/pkg/apis/assignments/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 FakeNodeAssignmentGroups struct {
	Fake *FakeAssignmentsV1alpha1
}
var nodeassignmentgroupsResource = schema.GroupVersionResource{Group: "assignments.kube-valet.io", Version: "v1alpha1", Resource: "nodeassignmentgroups"}
var nodeassignmentgroupsKind = schema.GroupVersionKind{Group: "assignments.kube-valet.io", Version: "v1alpha1", Kind: "NodeAssignmentGroup"}
func (c *FakeNodeAssignmentGroups) Get(name string, options v1.GetOptions) (result *v1alpha1.NodeAssignmentGroup, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootGetAction(nodeassignmentgroupsResource, name), &v1alpha1.NodeAssignmentGroup{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.NodeAssignmentGroup), err
}
func (c *FakeNodeAssignmentGroups) List(opts v1.ListOptions) (result *v1alpha1.NodeAssignmentGroupList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootListAction(nodeassignmentgroupsResource, nodeassignmentgroupsKind, opts), &v1alpha1.NodeAssignmentGroupList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &v1alpha1.NodeAssignmentGroupList{ListMeta: obj.(*v1alpha1.NodeAssignmentGroupList).ListMeta}
	for _, item := range obj.(*v1alpha1.NodeAssignmentGroupList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func (c *FakeNodeAssignmentGroups) Watch(opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewRootWatchAction(nodeassignmentgroupsResource, opts))
}