// Code generated by mockery v2.53.4. DO NOT EDIT.

package resources

import (
	context "context"

	mock "github.com/stretchr/testify/mock"
	dynamic "k8s.io/client-go/dynamic"

	schema "k8s.io/apimachinery/pkg/runtime/schema"
)

// MockResourceClients is an autogenerated mock type for the ResourceClients type
type MockResourceClients struct {
	mock.Mock
}

type MockResourceClients_Expecter struct {
	mock *mock.Mock
}

func (_m *MockResourceClients) EXPECT() *MockResourceClients_Expecter {
	return &MockResourceClients_Expecter{mock: &_m.Mock}
}

// Folder provides a mock function with given fields: ctx
func (_m *MockResourceClients) Folder(ctx context.Context) (dynamic.ResourceInterface, error) {
	ret := _m.Called(ctx)

	if len(ret) == 0 {
		panic("no return value specified for Folder")
	}

	var r0 dynamic.ResourceInterface
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context) (dynamic.ResourceInterface, error)); ok {
		return rf(ctx)
	}
	if rf, ok := ret.Get(0).(func(context.Context) dynamic.ResourceInterface); ok {
		r0 = rf(ctx)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(dynamic.ResourceInterface)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context) error); ok {
		r1 = rf(ctx)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// MockResourceClients_Folder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Folder'
type MockResourceClients_Folder_Call struct {
	*mock.Call
}

// Folder is a helper method to define mock.On call
//   - ctx context.Context
func (_e *MockResourceClients_Expecter) Folder(ctx interface{}) *MockResourceClients_Folder_Call {
	return &MockResourceClients_Folder_Call{Call: _e.mock.On("Folder", ctx)}
}

func (_c *MockResourceClients_Folder_Call) Run(run func(ctx context.Context)) *MockResourceClients_Folder_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context))
	})
	return _c
}

func (_c *MockResourceClients_Folder_Call) Return(_a0 dynamic.ResourceInterface, _a1 error) *MockResourceClients_Folder_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *MockResourceClients_Folder_Call) RunAndReturn(run func(context.Context) (dynamic.ResourceInterface, error)) *MockResourceClients_Folder_Call {
	_c.Call.Return(run)
	return _c
}

// ForKind provides a mock function with given fields: ctx, gvk
func (_m *MockResourceClients) ForKind(ctx context.Context, gvk schema.GroupVersionKind) (dynamic.ResourceInterface, schema.GroupVersionResource, error) {
	ret := _m.Called(ctx, gvk)

	if len(ret) == 0 {
		panic("no return value specified for ForKind")
	}

	var r0 dynamic.ResourceInterface
	var r1 schema.GroupVersionResource
	var r2 error
	if rf, ok := ret.Get(0).(func(context.Context, schema.GroupVersionKind) (dynamic.ResourceInterface, schema.GroupVersionResource, error)); ok {
		return rf(ctx, gvk)
	}
	if rf, ok := ret.Get(0).(func(context.Context, schema.GroupVersionKind) dynamic.ResourceInterface); ok {
		r0 = rf(ctx, gvk)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(dynamic.ResourceInterface)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, schema.GroupVersionKind) schema.GroupVersionResource); ok {
		r1 = rf(ctx, gvk)
	} else {
		r1 = ret.Get(1).(schema.GroupVersionResource)
	}

	if rf, ok := ret.Get(2).(func(context.Context, schema.GroupVersionKind) error); ok {
		r2 = rf(ctx, gvk)
	} else {
		r2 = ret.Error(2)
	}

	return r0, r1, r2
}

// MockResourceClients_ForKind_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForKind'
type MockResourceClients_ForKind_Call struct {
	*mock.Call
}

// ForKind is a helper method to define mock.On call
//   - ctx context.Context
//   - gvk schema.GroupVersionKind
func (_e *MockResourceClients_Expecter) ForKind(ctx interface{}, gvk interface{}) *MockResourceClients_ForKind_Call {
	return &MockResourceClients_ForKind_Call{Call: _e.mock.On("ForKind", ctx, gvk)}
}

func (_c *MockResourceClients_ForKind_Call) Run(run func(ctx context.Context, gvk schema.GroupVersionKind)) *MockResourceClients_ForKind_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(schema.GroupVersionKind))
	})
	return _c
}

func (_c *MockResourceClients_ForKind_Call) Return(_a0 dynamic.ResourceInterface, _a1 schema.GroupVersionResource, _a2 error) *MockResourceClients_ForKind_Call {
	_c.Call.Return(_a0, _a1, _a2)
	return _c
}

func (_c *MockResourceClients_ForKind_Call) RunAndReturn(run func(context.Context, schema.GroupVersionKind) (dynamic.ResourceInterface, schema.GroupVersionResource, error)) *MockResourceClients_ForKind_Call {
	_c.Call.Return(run)
	return _c
}

// ForResource provides a mock function with given fields: ctx, gvr
func (_m *MockResourceClients) ForResource(ctx context.Context, gvr schema.GroupVersionResource) (dynamic.ResourceInterface, schema.GroupVersionKind, error) {
	ret := _m.Called(ctx, gvr)

	if len(ret) == 0 {
		panic("no return value specified for ForResource")
	}

	var r0 dynamic.ResourceInterface
	var r1 schema.GroupVersionKind
	var r2 error
	if rf, ok := ret.Get(0).(func(context.Context, schema.GroupVersionResource) (dynamic.ResourceInterface, schema.GroupVersionKind, error)); ok {
		return rf(ctx, gvr)
	}
	if rf, ok := ret.Get(0).(func(context.Context, schema.GroupVersionResource) dynamic.ResourceInterface); ok {
		r0 = rf(ctx, gvr)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(dynamic.ResourceInterface)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, schema.GroupVersionResource) schema.GroupVersionKind); ok {
		r1 = rf(ctx, gvr)
	} else {
		r1 = ret.Get(1).(schema.GroupVersionKind)
	}

	if rf, ok := ret.Get(2).(func(context.Context, schema.GroupVersionResource) error); ok {
		r2 = rf(ctx, gvr)
	} else {
		r2 = ret.Error(2)
	}

	return r0, r1, r2
}

// MockResourceClients_ForResource_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForResource'
type MockResourceClients_ForResource_Call struct {
	*mock.Call
}

// ForResource is a helper method to define mock.On call
//   - ctx context.Context
//   - gvr schema.GroupVersionResource
func (_e *MockResourceClients_Expecter) ForResource(ctx interface{}, gvr interface{}) *MockResourceClients_ForResource_Call {
	return &MockResourceClients_ForResource_Call{Call: _e.mock.On("ForResource", ctx, gvr)}
}

func (_c *MockResourceClients_ForResource_Call) Run(run func(ctx context.Context, gvr schema.GroupVersionResource)) *MockResourceClients_ForResource_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context), args[1].(schema.GroupVersionResource))
	})
	return _c
}

func (_c *MockResourceClients_ForResource_Call) Return(_a0 dynamic.ResourceInterface, _a1 schema.GroupVersionKind, _a2 error) *MockResourceClients_ForResource_Call {
	_c.Call.Return(_a0, _a1, _a2)
	return _c
}

func (_c *MockResourceClients_ForResource_Call) RunAndReturn(run func(context.Context, schema.GroupVersionResource) (dynamic.ResourceInterface, schema.GroupVersionKind, error)) *MockResourceClients_ForResource_Call {
	_c.Call.Return(run)
	return _c
}

// User provides a mock function with given fields: ctx
func (_m *MockResourceClients) User(ctx context.Context) (dynamic.ResourceInterface, error) {
	ret := _m.Called(ctx)

	if len(ret) == 0 {
		panic("no return value specified for User")
	}

	var r0 dynamic.ResourceInterface
	var r1 error
	if rf, ok := ret.Get(0).(func(context.Context) (dynamic.ResourceInterface, error)); ok {
		return rf(ctx)
	}
	if rf, ok := ret.Get(0).(func(context.Context) dynamic.ResourceInterface); ok {
		r0 = rf(ctx)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(dynamic.ResourceInterface)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context) error); ok {
		r1 = rf(ctx)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// MockResourceClients_User_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'User'
type MockResourceClients_User_Call struct {
	*mock.Call
}

// User is a helper method to define mock.On call
//   - ctx context.Context
func (_e *MockResourceClients_Expecter) User(ctx interface{}) *MockResourceClients_User_Call {
	return &MockResourceClients_User_Call{Call: _e.mock.On("User", ctx)}
}

func (_c *MockResourceClients_User_Call) Run(run func(ctx context.Context)) *MockResourceClients_User_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run(args[0].(context.Context))
	})
	return _c
}

func (_c *MockResourceClients_User_Call) Return(_a0 dynamic.ResourceInterface, _a1 error) *MockResourceClients_User_Call {
	_c.Call.Return(_a0, _a1)
	return _c
}

func (_c *MockResourceClients_User_Call) RunAndReturn(run func(context.Context) (dynamic.ResourceInterface, error)) *MockResourceClients_User_Call {
	_c.Call.Return(run)
	return _c
}

// NewMockResourceClients creates a new instance of MockResourceClients. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
// The first argument is typically a *testing.T value.
func NewMockResourceClients(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockResourceClients {
	mock := &MockResourceClients{}
	mock.Mock.Test(t)

	t.Cleanup(func() { mock.AssertExpectations(t) })

	return mock
}
