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

package mock

import (
	context "context"

	bizerr "github.com/tidbcloud/pkgv2/bizerr"

	domain "github.com/tidbcloud/dataflow-service/app/models/domain"

	mock "github.com/stretchr/testify/mock"
)

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

// CreateBackupSetting provides a mock function with given fields: ctx, req
func (_m *BackupSettingModel) CreateBackupSetting(ctx context.Context, req *domain.CreateBackupSettingReqV2) bizerr.BizError {
	ret := _m.Called(ctx, req)

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

	var r0 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *domain.CreateBackupSettingReqV2) bizerr.BizError); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(bizerr.BizError)
		}
	}

	return r0
}

// DeleteBackupSetting provides a mock function with given fields: ctx, req
func (_m *BackupSettingModel) DeleteBackupSetting(ctx context.Context, req *domain.DeleteBackupSettingReqV2) bizerr.BizError {
	ret := _m.Called(ctx, req)

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

	var r0 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *domain.DeleteBackupSettingReqV2) bizerr.BizError); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(bizerr.BizError)
		}
	}

	return r0
}

// ListBackupSetting provides a mock function with given fields: ctx, req
func (_m *BackupSettingModel) ListBackupSetting(ctx context.Context, req *domain.ListBackupSettingReq) (*domain.ListBackupSettingResp, bizerr.BizError) {
	ret := _m.Called(ctx, req)

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

	var r0 *domain.ListBackupSettingResp
	var r1 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *domain.ListBackupSettingReq) (*domain.ListBackupSettingResp, bizerr.BizError)); ok {
		return rf(ctx, req)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *domain.ListBackupSettingReq) *domain.ListBackupSettingResp); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*domain.ListBackupSettingResp)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *domain.ListBackupSettingReq) bizerr.BizError); ok {
		r1 = rf(ctx, req)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(bizerr.BizError)
		}
	}

	return r0, r1
}

// MarkBackupScheduleAsDeleted provides a mock function with given fields: ctx, req
func (_m *BackupSettingModel) MarkBackupScheduleAsDeleted(ctx context.Context, req *domain.MarkBackupScheduleAsDeletedReq) bizerr.BizError {
	ret := _m.Called(ctx, req)

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

	var r0 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *domain.MarkBackupScheduleAsDeletedReq) bizerr.BizError); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(bizerr.BizError)
		}
	}

	return r0
}

// ModifyAutoBackupSetting provides a mock function with given fields: ctx, req
func (_m *BackupSettingModel) ModifyAutoBackupSetting(ctx context.Context, req *domain.ModifyAutoBackupSettingReq) (*domain.ModifyAutoBackupSettingResp, bizerr.BizError) {
	ret := _m.Called(ctx, req)

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

	var r0 *domain.ModifyAutoBackupSettingResp
	var r1 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *domain.ModifyAutoBackupSettingReq) (*domain.ModifyAutoBackupSettingResp, bizerr.BizError)); ok {
		return rf(ctx, req)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *domain.ModifyAutoBackupSettingReq) *domain.ModifyAutoBackupSettingResp); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*domain.ModifyAutoBackupSettingResp)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *domain.ModifyAutoBackupSettingReq) bizerr.BizError); ok {
		r1 = rf(ctx, req)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(bizerr.BizError)
		}
	}

	return r0, r1
}

// ModifyPitBackupSetting provides a mock function with given fields: ctx, req
func (_m *BackupSettingModel) ModifyPitBackupSetting(ctx context.Context, req *domain.PitSettingModificationReq) bizerr.BizError {
	ret := _m.Called(ctx, req)

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

	var r0 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *domain.PitSettingModificationReq) bizerr.BizError); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(bizerr.BizError)
		}
	}

	return r0
}

// ModifyRegionSetting provides a mock function with given fields: ctx, req
func (_m *BackupSettingModel) ModifyRegionSetting(ctx context.Context, req *domain.RegionSettingModificationReqV2) (*domain.RegionSettingModificationRespV2, bizerr.BizError) {
	ret := _m.Called(ctx, req)

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

	var r0 *domain.RegionSettingModificationRespV2
	var r1 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *domain.RegionSettingModificationReqV2) (*domain.RegionSettingModificationRespV2, bizerr.BizError)); ok {
		return rf(ctx, req)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *domain.RegionSettingModificationReqV2) *domain.RegionSettingModificationRespV2); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*domain.RegionSettingModificationRespV2)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *domain.RegionSettingModificationReqV2) bizerr.BizError); ok {
		r1 = rf(ctx, req)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(bizerr.BizError)
		}
	}

	return r0, r1
}

// ModifyReplicationRTC provides a mock function with given fields: ctx, req
func (_m *BackupSettingModel) ModifyReplicationRTC(ctx context.Context, req *domain.ReplicationRTCModificationReq) bizerr.BizError {
	ret := _m.Called(ctx, req)

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

	var r0 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *domain.ReplicationRTCModificationReq) bizerr.BizError); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(bizerr.BizError)
		}
	}

	return r0
}

// QueryBackupRegionOptions provides a mock function with given fields: ctx, req
func (_m *BackupSettingModel) QueryBackupRegionOptions(ctx context.Context, req *domain.QueryBackupRegionOptionsReq) (*domain.QueryBackupRegionOptionsResp, bizerr.BizError) {
	ret := _m.Called(ctx, req)

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

	var r0 *domain.QueryBackupRegionOptionsResp
	var r1 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *domain.QueryBackupRegionOptionsReq) (*domain.QueryBackupRegionOptionsResp, bizerr.BizError)); ok {
		return rf(ctx, req)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *domain.QueryBackupRegionOptionsReq) *domain.QueryBackupRegionOptionsResp); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*domain.QueryBackupRegionOptionsResp)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *domain.QueryBackupRegionOptionsReq) bizerr.BizError); ok {
		r1 = rf(ctx, req)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(bizerr.BizError)
		}
	}

	return r0, r1
}

// QueryBackupSetting provides a mock function with given fields: ctx, clusterId
func (_m *BackupSettingModel) QueryBackupSetting(ctx context.Context, clusterId *uint64) (*domain.QueryBackupSettingRespV2, bizerr.BizError) {
	ret := _m.Called(ctx, clusterId)

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

	var r0 *domain.QueryBackupSettingRespV2
	var r1 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *uint64) (*domain.QueryBackupSettingRespV2, bizerr.BizError)); ok {
		return rf(ctx, clusterId)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *uint64) *domain.QueryBackupSettingRespV2); ok {
		r0 = rf(ctx, clusterId)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*domain.QueryBackupSettingRespV2)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *uint64) bizerr.BizError); ok {
		r1 = rf(ctx, clusterId)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(bizerr.BizError)
		}
	}

	return r0, r1
}

// QueryBackupSettingForAPI provides a mock function with given fields: ctx, clusterId
func (_m *BackupSettingModel) QueryBackupSettingForAPI(ctx context.Context, clusterId *uint64) (*domain.QueryBackupSettingForAPIResp, bizerr.BizError) {
	ret := _m.Called(ctx, clusterId)

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

	var r0 *domain.QueryBackupSettingForAPIResp
	var r1 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *uint64) (*domain.QueryBackupSettingForAPIResp, bizerr.BizError)); ok {
		return rf(ctx, clusterId)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *uint64) *domain.QueryBackupSettingForAPIResp); ok {
		r0 = rf(ctx, clusterId)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*domain.QueryBackupSettingForAPIResp)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *uint64) bizerr.BizError); ok {
		r1 = rf(ctx, clusterId)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(bizerr.BizError)
		}
	}

	return r0, r1
}

// QueryMasterBucket provides a mock function with given fields: ctx, req
func (_m *BackupSettingModel) QueryMasterBucket(ctx context.Context, req *domain.QueryMasterBucketReqV2) (*domain.QueryMasterBucketRespV2, bizerr.BizError) {
	ret := _m.Called(ctx, req)

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

	var r0 *domain.QueryMasterBucketRespV2
	var r1 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *domain.QueryMasterBucketReqV2) (*domain.QueryMasterBucketRespV2, bizerr.BizError)); ok {
		return rf(ctx, req)
	}
	if rf, ok := ret.Get(0).(func(context.Context, *domain.QueryMasterBucketReqV2) *domain.QueryMasterBucketRespV2); ok {
		r0 = rf(ctx, req)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*domain.QueryMasterBucketRespV2)
		}
	}

	if rf, ok := ret.Get(1).(func(context.Context, *domain.QueryMasterBucketReqV2) bizerr.BizError); ok {
		r1 = rf(ctx, req)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(bizerr.BizError)
		}
	}

	return r0, r1
}

// NewBackupSettingModel creates a new instance of BackupSettingModel. 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 NewBackupSettingModel(t interface {
	mock.TestingT
	Cleanup(func())
}) *BackupSettingModel {
	mock := &BackupSettingModel{}
	mock.Mock.Test(t)

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

	return mock
}
