// Code generated by MockGen. DO NOT EDIT.
// Source: ./internal/domain/service/auditlog.go
//
// Generated by this command:
//
//	mockgen -source=./internal/domain/service/auditlog.go -destination ./internal/domain/service/mock_service/mock_auditlog.go -package mock_service
//

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

import (
	context "context"
	reflect "reflect"

	bizerr "github.com/tidbcloud/pkgv2/bizerr"
	entity "github.com/tidbcloud/serverless-service/internal/domain/entity"
	vo "github.com/tidbcloud/serverless-service/internal/domain/vo"
	gomock "go.uber.org/mock/gomock"
)

// MockAuditLogService is a mock of AuditLogService interface.
type MockAuditLogService struct {
	ctrl     *gomock.Controller
	recorder *MockAuditLogServiceMockRecorder
}

// MockAuditLogServiceMockRecorder is the mock recorder for MockAuditLogService.
type MockAuditLogServiceMockRecorder struct {
	mock *MockAuditLogService
}

// NewMockAuditLogService creates a new mock instance.
func NewMockAuditLogService(ctrl *gomock.Controller) *MockAuditLogService {
	mock := &MockAuditLogService{ctrl: ctrl}
	mock.recorder = &MockAuditLogServiceMockRecorder{mock}
	return mock
}

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

// CreateAuditLogFilterRule mocks base method.
func (m *MockAuditLogService) CreateAuditLogFilterRule(ctx context.Context, clusterId string, filterRule *entity.AuditLogFilterRule) (*entity.AuditLogFilterRule, bizerr.BizError) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "CreateAuditLogFilterRule", ctx, clusterId, filterRule)
	ret0, _ := ret[0].(*entity.AuditLogFilterRule)
	ret1, _ := ret[1].(bizerr.BizError)
	return ret0, ret1
}

// CreateAuditLogFilterRule indicates an expected call of CreateAuditLogFilterRule.
func (mr *MockAuditLogServiceMockRecorder) CreateAuditLogFilterRule(ctx, clusterId, filterRule any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAuditLogFilterRule", reflect.TypeOf((*MockAuditLogService)(nil).CreateAuditLogFilterRule), ctx, clusterId, filterRule)
}

// DeleteAuditLogFilterRule mocks base method.
func (m *MockAuditLogService) DeleteAuditLogFilterRule(ctx context.Context, clusterId, ruleId string) (*entity.AuditLogFilterRule, bizerr.BizError) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "DeleteAuditLogFilterRule", ctx, clusterId, ruleId)
	ret0, _ := ret[0].(*entity.AuditLogFilterRule)
	ret1, _ := ret[1].(bizerr.BizError)
	return ret0, ret1
}

// DeleteAuditLogFilterRule indicates an expected call of DeleteAuditLogFilterRule.
func (mr *MockAuditLogServiceMockRecorder) DeleteAuditLogFilterRule(ctx, clusterId, ruleId any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAuditLogFilterRule", reflect.TypeOf((*MockAuditLogService)(nil).DeleteAuditLogFilterRule), ctx, clusterId, ruleId)
}

// DownloadAuditLogFiles mocks base method.
func (m *MockAuditLogService) DownloadAuditLogFiles(ctx context.Context, clusterId string, fileNames []string) ([]*vo.AuditLogFile, bizerr.BizError) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "DownloadAuditLogFiles", ctx, clusterId, fileNames)
	ret0, _ := ret[0].([]*vo.AuditLogFile)
	ret1, _ := ret[1].(bizerr.BizError)
	return ret0, ret1
}

// DownloadAuditLogFiles indicates an expected call of DownloadAuditLogFiles.
func (mr *MockAuditLogServiceMockRecorder) DownloadAuditLogFiles(ctx, clusterId, fileNames any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DownloadAuditLogFiles", reflect.TypeOf((*MockAuditLogService)(nil).DownloadAuditLogFiles), ctx, clusterId, fileNames)
}

// GetAuditLogConfig mocks base method.
func (m *MockAuditLogService) GetAuditLogConfig(ctx context.Context, clusterId string) (*entity.AuditLogConfig, bizerr.BizError) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetAuditLogConfig", ctx, clusterId)
	ret0, _ := ret[0].(*entity.AuditLogConfig)
	ret1, _ := ret[1].(bizerr.BizError)
	return ret0, ret1
}

// GetAuditLogConfig indicates an expected call of GetAuditLogConfig.
func (mr *MockAuditLogServiceMockRecorder) GetAuditLogConfig(ctx, clusterId any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAuditLogConfig", reflect.TypeOf((*MockAuditLogService)(nil).GetAuditLogConfig), ctx, clusterId)
}

// GetAuditLogFilterRule mocks base method.
func (m *MockAuditLogService) GetAuditLogFilterRule(ctx context.Context, clusterId, ruleId string) (*entity.AuditLogFilterRule, bizerr.BizError) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "GetAuditLogFilterRule", ctx, clusterId, ruleId)
	ret0, _ := ret[0].(*entity.AuditLogFilterRule)
	ret1, _ := ret[1].(bizerr.BizError)
	return ret0, ret1
}

// GetAuditLogFilterRule indicates an expected call of GetAuditLogFilterRule.
func (mr *MockAuditLogServiceMockRecorder) GetAuditLogFilterRule(ctx, clusterId, ruleId any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAuditLogFilterRule", reflect.TypeOf((*MockAuditLogService)(nil).GetAuditLogFilterRule), ctx, clusterId, ruleId)
}

// ListAuditLogFiles mocks base method.
func (m *MockAuditLogService) ListAuditLogFiles(ctx context.Context, clusterId, pageToken, date string, pageSize int32) ([]*vo.AuditLogFile, string, bizerr.BizError) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListAuditLogFiles", ctx, clusterId, pageToken, date, pageSize)
	ret0, _ := ret[0].([]*vo.AuditLogFile)
	ret1, _ := ret[1].(string)
	ret2, _ := ret[2].(bizerr.BizError)
	return ret0, ret1, ret2
}

// ListAuditLogFiles indicates an expected call of ListAuditLogFiles.
func (mr *MockAuditLogServiceMockRecorder) ListAuditLogFiles(ctx, clusterId, pageToken, date, pageSize any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAuditLogFiles", reflect.TypeOf((*MockAuditLogService)(nil).ListAuditLogFiles), ctx, clusterId, pageToken, date, pageSize)
}

// ListAuditLogFilterRules mocks base method.
func (m *MockAuditLogService) ListAuditLogFilterRules(ctx context.Context, opts *vo.ListFilterRuleOpts) ([]*entity.AuditLogFilterRule, uint32, bizerr.BizError) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "ListAuditLogFilterRules", ctx, opts)
	ret0, _ := ret[0].([]*entity.AuditLogFilterRule)
	ret1, _ := ret[1].(uint32)
	ret2, _ := ret[2].(bizerr.BizError)
	return ret0, ret1, ret2
}

// ListAuditLogFilterRules indicates an expected call of ListAuditLogFilterRules.
func (mr *MockAuditLogServiceMockRecorder) ListAuditLogFilterRules(ctx, opts any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAuditLogFilterRules", reflect.TypeOf((*MockAuditLogService)(nil).ListAuditLogFilterRules), ctx, opts)
}

// PreCheckAuditLogConfig mocks base method.
func (m *MockAuditLogService) PreCheckAuditLogConfig(ctx context.Context, auditLogConfig *entity.AuditLogConfig) bizerr.BizError {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "PreCheckAuditLogConfig", ctx, auditLogConfig)
	ret0, _ := ret[0].(bizerr.BizError)
	return ret0
}

// PreCheckAuditLogConfig indicates an expected call of PreCheckAuditLogConfig.
func (mr *MockAuditLogServiceMockRecorder) PreCheckAuditLogConfig(ctx, auditLogConfig any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PreCheckAuditLogConfig", reflect.TypeOf((*MockAuditLogService)(nil).PreCheckAuditLogConfig), ctx, auditLogConfig)
}

// UpdateAuditLogConfig mocks base method.
func (m *MockAuditLogService) UpdateAuditLogConfig(ctx context.Context, auditLogConfig *entity.AuditLogConfig) (*entity.AuditLogConfig, bizerr.BizError) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "UpdateAuditLogConfig", ctx, auditLogConfig)
	ret0, _ := ret[0].(*entity.AuditLogConfig)
	ret1, _ := ret[1].(bizerr.BizError)
	return ret0, ret1
}

// UpdateAuditLogConfig indicates an expected call of UpdateAuditLogConfig.
func (mr *MockAuditLogServiceMockRecorder) UpdateAuditLogConfig(ctx, auditLogConfig any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAuditLogConfig", reflect.TypeOf((*MockAuditLogService)(nil).UpdateAuditLogConfig), ctx, auditLogConfig)
}

// UpdateAuditLogFilterRule mocks base method.
func (m *MockAuditLogService) UpdateAuditLogFilterRule(ctx context.Context, clusterId string, filterRule *entity.AuditLogFilterRule) (*entity.AuditLogFilterRule, bizerr.BizError) {
	m.ctrl.T.Helper()
	ret := m.ctrl.Call(m, "UpdateAuditLogFilterRule", ctx, clusterId, filterRule)
	ret0, _ := ret[0].(*entity.AuditLogFilterRule)
	ret1, _ := ret[1].(bizerr.BizError)
	return ret0, ret1
}

// UpdateAuditLogFilterRule indicates an expected call of UpdateAuditLogFilterRule.
func (mr *MockAuditLogServiceMockRecorder) UpdateAuditLogFilterRule(ctx, clusterId, filterRule any) *gomock.Call {
	mr.mock.ctrl.T.Helper()
	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAuditLogFilterRule", reflect.TypeOf((*MockAuditLogService)(nil).UpdateAuditLogFilterRule), ctx, clusterId, filterRule)
}
