func (c *FakeIAMIdentityMappings) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error {
	action := testing.NewRootDeleteCollectionAction(iamidentitymappingsResource, listOpts)
	_, err := c.Fake.Invokes(action, &v1alpha1.IAMIdentityMappingList{})
	return err
}
DeleteCollection deletes a collection of objects.
package fake
import (
	"context"
	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"
	v1alpha1 "sigs.k8s.io/aws-iam-authenticator/pkg/mapper/crd/apis/iamauthenticator/v1alpha1"
)
type FakeIAMIdentityMappings struct {
	Fake *FakeIamauthenticatorV1alpha1
}
var iamidentitymappingsResource = schema.GroupVersionResource{Group: "iamauthenticator.k8s.aws", Version: "v1alpha1", Resource: "iamidentitymappings"}
var iamidentitymappingsKind = schema.GroupVersionKind{Group: "iamauthenticator.k8s.aws", Version: "v1alpha1", Kind: "IAMIdentityMapping"}
func (c *FakeIAMIdentityMappings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.IAMIdentityMapping, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootGetAction(iamidentitymappingsResource, name), &v1alpha1.IAMIdentityMapping{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.IAMIdentityMapping), err
}
func (c *FakeIAMIdentityMappings) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.IAMIdentityMappingList, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootListAction(iamidentitymappingsResource, iamidentitymappingsKind, opts), &v1alpha1.IAMIdentityMappingList{})
	if obj == nil {
		return nil, err
	}
	label, _, _ := testing.ExtractFromListOptions(opts)
	if label == nil {
		label = labels.Everything()
	}
	list := &v1alpha1.IAMIdentityMappingList{ListMeta: obj.(*v1alpha1.IAMIdentityMappingList).ListMeta}
	for _, item := range obj.(*v1alpha1.IAMIdentityMappingList).Items {
		if label.Matches(labels.Set(item.Labels)) {
			list.Items = append(list.Items, item)
		}
	}
	return list, err
}
func (c *FakeIAMIdentityMappings) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) {
	return c.Fake.
		InvokesWatch(testing.NewRootWatchAction(iamidentitymappingsResource, opts))
}
func (c *FakeIAMIdentityMappings) Create(ctx context.Context, iAMIdentityMapping *v1alpha1.IAMIdentityMapping, opts v1.CreateOptions) (result *v1alpha1.IAMIdentityMapping, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootCreateAction(iamidentitymappingsResource, iAMIdentityMapping), &v1alpha1.IAMIdentityMapping{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.IAMIdentityMapping), err
}
func (c *FakeIAMIdentityMappings) Update(ctx context.Context, iAMIdentityMapping *v1alpha1.IAMIdentityMapping, opts v1.UpdateOptions) (result *v1alpha1.IAMIdentityMapping, err error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootUpdateAction(iamidentitymappingsResource, iAMIdentityMapping), &v1alpha1.IAMIdentityMapping{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.IAMIdentityMapping), err
}
func (c *FakeIAMIdentityMappings) UpdateStatus(ctx context.Context, iAMIdentityMapping *v1alpha1.IAMIdentityMapping, opts v1.UpdateOptions) (*v1alpha1.IAMIdentityMapping, error) {
	obj, err := c.Fake.
		Invokes(testing.NewRootUpdateSubresourceAction(iamidentitymappingsResource, "status", iAMIdentityMapping), &v1alpha1.IAMIdentityMapping{})
	if obj == nil {
		return nil, err
	}
	return obj.(*v1alpha1.IAMIdentityMapping), err
}
func (c *FakeIAMIdentityMappings) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error {
	_, err := c.Fake.
		Invokes(testing.NewRootDeleteAction(iamidentitymappingsResource, name), &v1alpha1.IAMIdentityMapping{})
	return err
}