// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/tidbcloud/infra-provider/regional-server/pkg/repository (interfaces: InternetReader,InternetWriter,InternetReaderWriter)
//
// Generated by this command:
//
//	mockgen -destination ./test/mockrepository/internet.go -package mockrepository github.com/tidbcloud/infra-provider/regional-server/pkg/repository InternetReader,InternetWriter,InternetReaderWriter
//

// Package mockrepository is a generated GoMock package.
package mockrepository

import (
	context "context"
	reflect "reflect"

	v1alpha1 "github.com/tidbcloud/infra-provider/regional-server/api/v1alpha1"
	gomock "go.uber.org/mock/gomock"
	types "k8s.io/apimachinery/pkg/types"
	client "sigs.k8s.io/controller-runtime/pkg/client"
)

// MockInternetReader is a mock of InternetReader interface.
type MockInternetReader struct {
	ctrl     *gomock.Controller
	recorder *MockInternetReaderMockRecorder
}

// MockInternetReaderMockRecorder is the mock recorder for MockInternetReader.
type MockInternetReaderMockRecorder struct {
	mock *MockInternetReader
}

// NewMockInternetReader creates a new mock instance.
func NewMockInternetReader(ctrl *gomock.Controller) *MockInternetReader {
	mock := &MockInternetReader{ctrl: ctrl}
	mock.recorder = &MockInternetReaderMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockInternetReader) EXPECT() *MockInternetReaderMockRecorder {
	return m.recorder
}

// Get mocks base method.
func (m *MockInternetReader) Get(arg0 context.Context, arg1 types.NamespacedName, arg2 *v1alpha1.Internet) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2)
	ret0, _ := ret[0].(error)
	return ret0
}

// Get indicates an expected call of Get.
func (mr *MockInternetReaderMockRecorder) Get(arg0, arg1, arg2 any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockInternetReader)(nil).Get), arg0, arg1, arg2)
}

// List mocks base method.
func (m *MockInternetReader) List(arg0 context.Context, arg1 *v1alpha1.InternetList, arg2 ...client.ListOption) error {
	m.ctrl.T.Helper()
	varargs := []any{arg0, arg1}
	for _, a := range arg2 {
		varargs = append(varargs, a)
	}
	ret := m.ctrl.Call(m, "List", varargs...)
	ret0, _ := ret[0].(error)
	return ret0
}

// List indicates an expected call of List.
func (mr *MockInternetReaderMockRecorder) List(arg0, arg1 any, arg2 ...any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	varargs := append([]any{arg0, arg1}, arg2...)
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockInternetReader)(nil).List), varargs...)
}

// MockInternetWriter is a mock of InternetWriter interface.
type MockInternetWriter struct {
	ctrl     *gomock.Controller
	recorder *MockInternetWriterMockRecorder
}

// MockInternetWriterMockRecorder is the mock recorder for MockInternetWriter.
type MockInternetWriterMockRecorder struct {
	mock *MockInternetWriter
}

// NewMockInternetWriter creates a new mock instance.
func NewMockInternetWriter(ctrl *gomock.Controller) *MockInternetWriter {
	mock := &MockInternetWriter{ctrl: ctrl}
	mock.recorder = &MockInternetWriterMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockInternetWriter) EXPECT() *MockInternetWriterMockRecorder {
	return m.recorder
}

// Create mocks base method.
func (m *MockInternetWriter) Create(arg0 context.Context, arg1 *v1alpha1.Internet) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Create", arg0, arg1)
	ret0, _ := ret[0].(error)
	return ret0
}

// Create indicates an expected call of Create.
func (mr *MockInternetWriterMockRecorder) Create(arg0, arg1 any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockInternetWriter)(nil).Create), arg0, arg1)
}

// Delete mocks base method.
func (m *MockInternetWriter) Delete(arg0 context.Context, arg1 *v1alpha1.Internet) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Delete", arg0, arg1)
	ret0, _ := ret[0].(error)
	return ret0
}

// Delete indicates an expected call of Delete.
func (mr *MockInternetWriterMockRecorder) Delete(arg0, arg1 any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockInternetWriter)(nil).Delete), arg0, arg1)
}

// Patch mocks base method.
func (m *MockInternetWriter) Patch(arg0 context.Context, arg1 *v1alpha1.Internet, arg2 client.Patch) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Patch", arg0, arg1, arg2)
	ret0, _ := ret[0].(error)
	return ret0
}

// Patch indicates an expected call of Patch.
func (mr *MockInternetWriterMockRecorder) Patch(arg0, arg1, arg2 any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockInternetWriter)(nil).Patch), arg0, arg1, arg2)
}

// Update mocks base method.
func (m *MockInternetWriter) Update(arg0 context.Context, arg1 *v1alpha1.Internet) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Update", arg0, arg1)
	ret0, _ := ret[0].(error)
	return ret0
}

// Update indicates an expected call of Update.
func (mr *MockInternetWriterMockRecorder) Update(arg0, arg1 any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockInternetWriter)(nil).Update), arg0, arg1)
}

// UpdateStatus mocks base method.
func (m *MockInternetWriter) UpdateStatus(arg0 context.Context, arg1 *v1alpha1.Internet) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1)
	ret0, _ := ret[0].(error)
	return ret0
}

// UpdateStatus indicates an expected call of UpdateStatus.
func (mr *MockInternetWriterMockRecorder) UpdateStatus(arg0, arg1 any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockInternetWriter)(nil).UpdateStatus), arg0, arg1)
}

// MockInternetReaderWriter is a mock of InternetReaderWriter interface.
type MockInternetReaderWriter struct {
	ctrl     *gomock.Controller
	recorder *MockInternetReaderWriterMockRecorder
}

// MockInternetReaderWriterMockRecorder is the mock recorder for MockInternetReaderWriter.
type MockInternetReaderWriterMockRecorder struct {
	mock *MockInternetReaderWriter
}

// NewMockInternetReaderWriter creates a new mock instance.
func NewMockInternetReaderWriter(ctrl *gomock.Controller) *MockInternetReaderWriter {
	mock := &MockInternetReaderWriter{ctrl: ctrl}
	mock.recorder = &MockInternetReaderWriterMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockInternetReaderWriter) EXPECT() *MockInternetReaderWriterMockRecorder {
	return m.recorder
}

// Create mocks base method.
func (m *MockInternetReaderWriter) Create(arg0 context.Context, arg1 *v1alpha1.Internet) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Create", arg0, arg1)
	ret0, _ := ret[0].(error)
	return ret0
}

// Create indicates an expected call of Create.
func (mr *MockInternetReaderWriterMockRecorder) Create(arg0, arg1 any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Create", reflect.TypeOf((*MockInternetReaderWriter)(nil).Create), arg0, arg1)
}

// Delete mocks base method.
func (m *MockInternetReaderWriter) Delete(arg0 context.Context, arg1 *v1alpha1.Internet) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Delete", arg0, arg1)
	ret0, _ := ret[0].(error)
	return ret0
}

// Delete indicates an expected call of Delete.
func (mr *MockInternetReaderWriterMockRecorder) Delete(arg0, arg1 any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Delete", reflect.TypeOf((*MockInternetReaderWriter)(nil).Delete), arg0, arg1)
}

// Get mocks base method.
func (m *MockInternetReaderWriter) Get(arg0 context.Context, arg1 types.NamespacedName, arg2 *v1alpha1.Internet) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Get", arg0, arg1, arg2)
	ret0, _ := ret[0].(error)
	return ret0
}

// Get indicates an expected call of Get.
func (mr *MockInternetReaderWriterMockRecorder) Get(arg0, arg1, arg2 any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockInternetReaderWriter)(nil).Get), arg0, arg1, arg2)
}

// List mocks base method.
func (m *MockInternetReaderWriter) List(arg0 context.Context, arg1 *v1alpha1.InternetList, arg2 ...client.ListOption) error {
	m.ctrl.T.Helper()
	varargs := []any{arg0, arg1}
	for _, a := range arg2 {
		varargs = append(varargs, a)
	}
	ret := m.ctrl.Call(m, "List", varargs...)
	ret0, _ := ret[0].(error)
	return ret0
}

// List indicates an expected call of List.
func (mr *MockInternetReaderWriterMockRecorder) List(arg0, arg1 any, arg2 ...any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	varargs := append([]any{arg0, arg1}, arg2...)
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "List", reflect.TypeOf((*MockInternetReaderWriter)(nil).List), varargs...)
}

// Patch mocks base method.
func (m *MockInternetReaderWriter) Patch(arg0 context.Context, arg1 *v1alpha1.Internet, arg2 client.Patch) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Patch", arg0, arg1, arg2)
	ret0, _ := ret[0].(error)
	return ret0
}

// Patch indicates an expected call of Patch.
func (mr *MockInternetReaderWriterMockRecorder) Patch(arg0, arg1, arg2 any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Patch", reflect.TypeOf((*MockInternetReaderWriter)(nil).Patch), arg0, arg1, arg2)
}

// Update mocks base method.
func (m *MockInternetReaderWriter) Update(arg0 context.Context, arg1 *v1alpha1.Internet) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "Update", arg0, arg1)
	ret0, _ := ret[0].(error)
	return ret0
}

// Update indicates an expected call of Update.
func (mr *MockInternetReaderWriterMockRecorder) Update(arg0, arg1 any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Update", reflect.TypeOf((*MockInternetReaderWriter)(nil).Update), arg0, arg1)
}

// UpdateStatus mocks base method.
func (m *MockInternetReaderWriter) UpdateStatus(arg0 context.Context, arg1 *v1alpha1.Internet) error {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "UpdateStatus", arg0, arg1)
	ret0, _ := ret[0].(error)
	return ret0
}

// UpdateStatus indicates an expected call of UpdateStatus.
func (mr *MockInternetReaderWriterMockRecorder) UpdateStatus(arg0, arg1 any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateStatus", reflect.TypeOf((*MockInternetReaderWriter)(nil).UpdateStatus), arg0, arg1)
}
