// Code generated by mockery; DO NOT EDIT.
// github.com/vektra/mockery
// template: testify

package mocks

import (
	"context"

	mock "github.com/stretchr/testify/mock"
	"github.com/tidbcloud/cluster-service-ng/domain/entity"
	"github.com/tidbcloud/config-center/proto/config_center"
)

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

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

	return mock
}

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

type Client_Expecter struct {
	mock *mock.Mock
}

func (_m *Client) EXPECT() *Client_Expecter {
	return &Client_Expecter{mock: &_m.Mock}
}

// AddBRComponentsToClusterMeta provides a mock function for the type Client
func (_mock *Client) AddBRComponentsToClusterMeta(ctx context.Context, sharedPool *entity.SharedPool, tenantId string, metaProfileId string) error {
	ret := _mock.Called(ctx, sharedPool, tenantId, metaProfileId)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.SharedPool, string, string) error); ok {
		r0 = returnFunc(ctx, sharedPool, tenantId, metaProfileId)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// AddBRComponentsToClusterMeta is a helper method to define mock.On call
//   - ctx context.Context
//   - sharedPool *entity.SharedPool
//   - tenantId string
//   - metaProfileId string
func (_e *Client_Expecter) AddBRComponentsToClusterMeta(ctx interface{}, sharedPool interface{}, tenantId interface{}, metaProfileId interface{}) *Client_AddBRComponentsToClusterMeta_Call {
	return &Client_AddBRComponentsToClusterMeta_Call{Call: _e.mock.On("AddBRComponentsToClusterMeta", ctx, sharedPool, tenantId, metaProfileId)}
}

func (_c *Client_AddBRComponentsToClusterMeta_Call) Run(run func(ctx context.Context, sharedPool *entity.SharedPool, tenantId string, metaProfileId string)) *Client_AddBRComponentsToClusterMeta_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *entity.SharedPool
		if args[1] != nil {
			arg1 = args[1].(*entity.SharedPool)
		}
		var arg2 string
		if args[2] != nil {
			arg2 = args[2].(string)
		}
		var arg3 string
		if args[3] != nil {
			arg3 = args[3].(string)
		}
		run(
			arg0,
			arg1,
			arg2,
			arg3,
		)
	})
	return _c
}

func (_c *Client_AddBRComponentsToClusterMeta_Call) Return(err error) *Client_AddBRComponentsToClusterMeta_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *Client_AddBRComponentsToClusterMeta_Call) RunAndReturn(run func(ctx context.Context, sharedPool *entity.SharedPool, tenantId string, metaProfileId string) error) *Client_AddBRComponentsToClusterMeta_Call {
	_c.Call.Return(run)
	return _c
}

// AddExportComponentsToClusterMeta provides a mock function for the type Client
func (_mock *Client) AddExportComponentsToClusterMeta(ctx context.Context, tidbCluster *entity.TiDBCluster) error {
	ret := _mock.Called(ctx, tidbCluster)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.TiDBCluster) error); ok {
		r0 = returnFunc(ctx, tidbCluster)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// AddExportComponentsToClusterMeta is a helper method to define mock.On call
//   - ctx context.Context
//   - tidbCluster *entity.TiDBCluster
func (_e *Client_Expecter) AddExportComponentsToClusterMeta(ctx interface{}, tidbCluster interface{}) *Client_AddExportComponentsToClusterMeta_Call {
	return &Client_AddExportComponentsToClusterMeta_Call{Call: _e.mock.On("AddExportComponentsToClusterMeta", ctx, tidbCluster)}
}

func (_c *Client_AddExportComponentsToClusterMeta_Call) Run(run func(ctx context.Context, tidbCluster *entity.TiDBCluster)) *Client_AddExportComponentsToClusterMeta_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *entity.TiDBCluster
		if args[1] != nil {
			arg1 = args[1].(*entity.TiDBCluster)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

func (_c *Client_AddExportComponentsToClusterMeta_Call) Return(err error) *Client_AddExportComponentsToClusterMeta_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *Client_AddExportComponentsToClusterMeta_Call) RunAndReturn(run func(ctx context.Context, tidbCluster *entity.TiDBCluster) error) *Client_AddExportComponentsToClusterMeta_Call {
	_c.Call.Return(run)
	return _c
}

// CreateClusterMeta provides a mock function for the type Client
func (_mock *Client) CreateClusterMeta(ctx context.Context, sharedPool *entity.SharedPool, tenantId string, metaProfileId string) error {
	ret := _mock.Called(ctx, sharedPool, tenantId, metaProfileId)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.SharedPool, string, string) error); ok {
		r0 = returnFunc(ctx, sharedPool, tenantId, metaProfileId)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// CreateClusterMeta is a helper method to define mock.On call
//   - ctx context.Context
//   - sharedPool *entity.SharedPool
//   - tenantId string
//   - metaProfileId string
func (_e *Client_Expecter) CreateClusterMeta(ctx interface{}, sharedPool interface{}, tenantId interface{}, metaProfileId interface{}) *Client_CreateClusterMeta_Call {
	return &Client_CreateClusterMeta_Call{Call: _e.mock.On("CreateClusterMeta", ctx, sharedPool, tenantId, metaProfileId)}
}

func (_c *Client_CreateClusterMeta_Call) Run(run func(ctx context.Context, sharedPool *entity.SharedPool, tenantId string, metaProfileId string)) *Client_CreateClusterMeta_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *entity.SharedPool
		if args[1] != nil {
			arg1 = args[1].(*entity.SharedPool)
		}
		var arg2 string
		if args[2] != nil {
			arg2 = args[2].(string)
		}
		var arg3 string
		if args[3] != nil {
			arg3 = args[3].(string)
		}
		run(
			arg0,
			arg1,
			arg2,
			arg3,
		)
	})
	return _c
}

func (_c *Client_CreateClusterMeta_Call) Return(err error) *Client_CreateClusterMeta_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *Client_CreateClusterMeta_Call) RunAndReturn(run func(ctx context.Context, sharedPool *entity.SharedPool, tenantId string, metaProfileId string) error) *Client_CreateClusterMeta_Call {
	_c.Call.Return(run)
	return _c
}

// CreateNewComponentConfig provides a mock function for the type Client
func (_mock *Client) CreateNewComponentConfig(ctx context.Context, sharedPool *entity.SharedPool, componentGroup *entity.Component) error {
	ret := _mock.Called(ctx, sharedPool, componentGroup)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.SharedPool, *entity.Component) error); ok {
		r0 = returnFunc(ctx, sharedPool, componentGroup)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// CreateNewComponentConfig is a helper method to define mock.On call
//   - ctx context.Context
//   - sharedPool *entity.SharedPool
//   - componentGroup *entity.Component
func (_e *Client_Expecter) CreateNewComponentConfig(ctx interface{}, sharedPool interface{}, componentGroup interface{}) *Client_CreateNewComponentConfig_Call {
	return &Client_CreateNewComponentConfig_Call{Call: _e.mock.On("CreateNewComponentConfig", ctx, sharedPool, componentGroup)}
}

func (_c *Client_CreateNewComponentConfig_Call) Run(run func(ctx context.Context, sharedPool *entity.SharedPool, componentGroup *entity.Component)) *Client_CreateNewComponentConfig_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *entity.SharedPool
		if args[1] != nil {
			arg1 = args[1].(*entity.SharedPool)
		}
		var arg2 *entity.Component
		if args[2] != nil {
			arg2 = args[2].(*entity.Component)
		}
		run(
			arg0,
			arg1,
			arg2,
		)
	})
	return _c
}

func (_c *Client_CreateNewComponentConfig_Call) Return(err error) *Client_CreateNewComponentConfig_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *Client_CreateNewComponentConfig_Call) RunAndReturn(run func(ctx context.Context, sharedPool *entity.SharedPool, componentGroup *entity.Component) error) *Client_CreateNewComponentConfig_Call {
	_c.Call.Return(run)
	return _c
}

// CreateTiDBClusterMeta provides a mock function for the type Client
func (_mock *Client) CreateTiDBClusterMeta(ctx context.Context, sharedPool *entity.SharedPool, tidbCluster *entity.TiDBCluster) error {
	ret := _mock.Called(ctx, sharedPool, tidbCluster)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.SharedPool, *entity.TiDBCluster) error); ok {
		r0 = returnFunc(ctx, sharedPool, tidbCluster)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// CreateTiDBClusterMeta is a helper method to define mock.On call
//   - ctx context.Context
//   - sharedPool *entity.SharedPool
//   - tidbCluster *entity.TiDBCluster
func (_e *Client_Expecter) CreateTiDBClusterMeta(ctx interface{}, sharedPool interface{}, tidbCluster interface{}) *Client_CreateTiDBClusterMeta_Call {
	return &Client_CreateTiDBClusterMeta_Call{Call: _e.mock.On("CreateTiDBClusterMeta", ctx, sharedPool, tidbCluster)}
}

func (_c *Client_CreateTiDBClusterMeta_Call) Run(run func(ctx context.Context, sharedPool *entity.SharedPool, tidbCluster *entity.TiDBCluster)) *Client_CreateTiDBClusterMeta_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *entity.SharedPool
		if args[1] != nil {
			arg1 = args[1].(*entity.SharedPool)
		}
		var arg2 *entity.TiDBCluster
		if args[2] != nil {
			arg2 = args[2].(*entity.TiDBCluster)
		}
		run(
			arg0,
			arg1,
			arg2,
		)
	})
	return _c
}

func (_c *Client_CreateTiDBClusterMeta_Call) Return(err error) *Client_CreateTiDBClusterMeta_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *Client_CreateTiDBClusterMeta_Call) RunAndReturn(run func(ctx context.Context, sharedPool *entity.SharedPool, tidbCluster *entity.TiDBCluster) error) *Client_CreateTiDBClusterMeta_Call {
	_c.Call.Return(run)
	return _c
}

// CreateTiDBGroupConfig provides a mock function for the type Client
func (_mock *Client) CreateTiDBGroupConfig(ctx context.Context, tidbGroup *entity.TiDBGroup) error {
	ret := _mock.Called(ctx, tidbGroup)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.TiDBGroup) error); ok {
		r0 = returnFunc(ctx, tidbGroup)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// CreateTiDBGroupConfig is a helper method to define mock.On call
//   - ctx context.Context
//   - tidbGroup *entity.TiDBGroup
func (_e *Client_Expecter) CreateTiDBGroupConfig(ctx interface{}, tidbGroup interface{}) *Client_CreateTiDBGroupConfig_Call {
	return &Client_CreateTiDBGroupConfig_Call{Call: _e.mock.On("CreateTiDBGroupConfig", ctx, tidbGroup)}
}

func (_c *Client_CreateTiDBGroupConfig_Call) Run(run func(ctx context.Context, tidbGroup *entity.TiDBGroup)) *Client_CreateTiDBGroupConfig_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *entity.TiDBGroup
		if args[1] != nil {
			arg1 = args[1].(*entity.TiDBGroup)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

func (_c *Client_CreateTiDBGroupConfig_Call) Return(err error) *Client_CreateTiDBGroupConfig_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *Client_CreateTiDBGroupConfig_Call) RunAndReturn(run func(ctx context.Context, tidbGroup *entity.TiDBGroup) error) *Client_CreateTiDBGroupConfig_Call {
	_c.Call.Return(run)
	return _c
}

// DeleteClusterMeta provides a mock function for the type Client
func (_mock *Client) DeleteClusterMeta(ctx context.Context, sharedPoolId string) error {
	ret := _mock.Called(ctx, sharedPoolId)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
		r0 = returnFunc(ctx, sharedPoolId)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// DeleteClusterMeta is a helper method to define mock.On call
//   - ctx context.Context
//   - sharedPoolId string
func (_e *Client_Expecter) DeleteClusterMeta(ctx interface{}, sharedPoolId interface{}) *Client_DeleteClusterMeta_Call {
	return &Client_DeleteClusterMeta_Call{Call: _e.mock.On("DeleteClusterMeta", ctx, sharedPoolId)}
}

func (_c *Client_DeleteClusterMeta_Call) Run(run func(ctx context.Context, sharedPoolId string)) *Client_DeleteClusterMeta_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 string
		if args[1] != nil {
			arg1 = args[1].(string)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

func (_c *Client_DeleteClusterMeta_Call) Return(err error) *Client_DeleteClusterMeta_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *Client_DeleteClusterMeta_Call) RunAndReturn(run func(ctx context.Context, sharedPoolId string) error) *Client_DeleteClusterMeta_Call {
	_c.Call.Return(run)
	return _c
}

// DeleteTiDBClusterMeta provides a mock function for the type Client
func (_mock *Client) DeleteTiDBClusterMeta(ctx context.Context, tidbClusterId string) error {
	ret := _mock.Called(ctx, tidbClusterId)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok {
		r0 = returnFunc(ctx, tidbClusterId)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// DeleteTiDBClusterMeta is a helper method to define mock.On call
//   - ctx context.Context
//   - tidbClusterId string
func (_e *Client_Expecter) DeleteTiDBClusterMeta(ctx interface{}, tidbClusterId interface{}) *Client_DeleteTiDBClusterMeta_Call {
	return &Client_DeleteTiDBClusterMeta_Call{Call: _e.mock.On("DeleteTiDBClusterMeta", ctx, tidbClusterId)}
}

func (_c *Client_DeleteTiDBClusterMeta_Call) Run(run func(ctx context.Context, tidbClusterId string)) *Client_DeleteTiDBClusterMeta_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 string
		if args[1] != nil {
			arg1 = args[1].(string)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

func (_c *Client_DeleteTiDBClusterMeta_Call) Return(err error) *Client_DeleteTiDBClusterMeta_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *Client_DeleteTiDBClusterMeta_Call) RunAndReturn(run func(ctx context.Context, tidbClusterId string) error) *Client_DeleteTiDBClusterMeta_Call {
	_c.Call.Return(run)
	return _c
}

// DeleteTiDBGroupConfig provides a mock function for the type Client
func (_mock *Client) DeleteTiDBGroupConfig(ctx context.Context, tidbClusterId string, tidbGroupId string) error {
	ret := _mock.Called(ctx, tidbClusterId, tidbGroupId)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, string, string) error); ok {
		r0 = returnFunc(ctx, tidbClusterId, tidbGroupId)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// DeleteTiDBGroupConfig is a helper method to define mock.On call
//   - ctx context.Context
//   - tidbClusterId string
//   - tidbGroupId string
func (_e *Client_Expecter) DeleteTiDBGroupConfig(ctx interface{}, tidbClusterId interface{}, tidbGroupId interface{}) *Client_DeleteTiDBGroupConfig_Call {
	return &Client_DeleteTiDBGroupConfig_Call{Call: _e.mock.On("DeleteTiDBGroupConfig", ctx, tidbClusterId, tidbGroupId)}
}

func (_c *Client_DeleteTiDBGroupConfig_Call) Run(run func(ctx context.Context, tidbClusterId string, tidbGroupId string)) *Client_DeleteTiDBGroupConfig_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 string
		if args[1] != nil {
			arg1 = args[1].(string)
		}
		var arg2 string
		if args[2] != nil {
			arg2 = args[2].(string)
		}
		run(
			arg0,
			arg1,
			arg2,
		)
	})
	return _c
}

func (_c *Client_DeleteTiDBGroupConfig_Call) Return(err error) *Client_DeleteTiDBGroupConfig_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *Client_DeleteTiDBGroupConfig_Call) RunAndReturn(run func(ctx context.Context, tidbClusterId string, tidbGroupId string) error) *Client_DeleteTiDBGroupConfig_Call {
	_c.Call.Return(run)
	return _c
}

// DeleteTiKVComponentConfig provides a mock function for the type Client
func (_mock *Client) DeleteTiKVComponentConfig(ctx context.Context, sharedPool *entity.SharedPool, componentGroup *entity.Component) error {
	ret := _mock.Called(ctx, sharedPool, componentGroup)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.SharedPool, *entity.Component) error); ok {
		r0 = returnFunc(ctx, sharedPool, componentGroup)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// DeleteTiKVComponentConfig is a helper method to define mock.On call
//   - ctx context.Context
//   - sharedPool *entity.SharedPool
//   - componentGroup *entity.Component
func (_e *Client_Expecter) DeleteTiKVComponentConfig(ctx interface{}, sharedPool interface{}, componentGroup interface{}) *Client_DeleteTiKVComponentConfig_Call {
	return &Client_DeleteTiKVComponentConfig_Call{Call: _e.mock.On("DeleteTiKVComponentConfig", ctx, sharedPool, componentGroup)}
}

func (_c *Client_DeleteTiKVComponentConfig_Call) Run(run func(ctx context.Context, sharedPool *entity.SharedPool, componentGroup *entity.Component)) *Client_DeleteTiKVComponentConfig_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *entity.SharedPool
		if args[1] != nil {
			arg1 = args[1].(*entity.SharedPool)
		}
		var arg2 *entity.Component
		if args[2] != nil {
			arg2 = args[2].(*entity.Component)
		}
		run(
			arg0,
			arg1,
			arg2,
		)
	})
	return _c
}

func (_c *Client_DeleteTiKVComponentConfig_Call) Return(err error) *Client_DeleteTiKVComponentConfig_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *Client_DeleteTiKVComponentConfig_Call) RunAndReturn(run func(ctx context.Context, sharedPool *entity.SharedPool, componentGroup *entity.Component) error) *Client_DeleteTiKVComponentConfig_Call {
	_c.Call.Return(run)
	return _c
}

// EnsurePDMicroserviceComponents provides a mock function for the type Client
func (_mock *Client) EnsurePDMicroserviceComponents(ctx context.Context, sharedPool *entity.SharedPool) error {
	ret := _mock.Called(ctx, sharedPool)

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

	var r0 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.SharedPool) error); ok {
		r0 = returnFunc(ctx, sharedPool)
	} else {
		r0 = ret.Error(0)
	}
	return r0
}

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

// EnsurePDMicroserviceComponents is a helper method to define mock.On call
//   - ctx context.Context
//   - sharedPool *entity.SharedPool
func (_e *Client_Expecter) EnsurePDMicroserviceComponents(ctx interface{}, sharedPool interface{}) *Client_EnsurePDMicroserviceComponents_Call {
	return &Client_EnsurePDMicroserviceComponents_Call{Call: _e.mock.On("EnsurePDMicroserviceComponents", ctx, sharedPool)}
}

func (_c *Client_EnsurePDMicroserviceComponents_Call) Run(run func(ctx context.Context, sharedPool *entity.SharedPool)) *Client_EnsurePDMicroserviceComponents_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *entity.SharedPool
		if args[1] != nil {
			arg1 = args[1].(*entity.SharedPool)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

func (_c *Client_EnsurePDMicroserviceComponents_Call) Return(err error) *Client_EnsurePDMicroserviceComponents_Call {
	_c.Call.Return(err)
	return _c
}

func (_c *Client_EnsurePDMicroserviceComponents_Call) RunAndReturn(run func(ctx context.Context, sharedPool *entity.SharedPool) error) *Client_EnsurePDMicroserviceComponents_Call {
	_c.Call.Return(run)
	return _c
}

// GetBRComponentVersionAndConfig provides a mock function for the type Client
func (_mock *Client) GetBRComponentVersionAndConfig(ctx context.Context, sharedPool *entity.SharedPool, tenantId string, componentType entity.ComponentType) (string, *entity.ComponentConfiguration, error) {
	ret := _mock.Called(ctx, sharedPool, tenantId, componentType)

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

	var r0 string
	var r1 *entity.ComponentConfiguration
	var r2 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.SharedPool, string, entity.ComponentType) (string, *entity.ComponentConfiguration, error)); ok {
		return returnFunc(ctx, sharedPool, tenantId, componentType)
	}
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.SharedPool, string, entity.ComponentType) string); ok {
		r0 = returnFunc(ctx, sharedPool, tenantId, componentType)
	} else {
		r0 = ret.Get(0).(string)
	}
	if returnFunc, ok := ret.Get(1).(func(context.Context, *entity.SharedPool, string, entity.ComponentType) *entity.ComponentConfiguration); ok {
		r1 = returnFunc(ctx, sharedPool, tenantId, componentType)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(*entity.ComponentConfiguration)
		}
	}
	if returnFunc, ok := ret.Get(2).(func(context.Context, *entity.SharedPool, string, entity.ComponentType) error); ok {
		r2 = returnFunc(ctx, sharedPool, tenantId, componentType)
	} else {
		r2 = ret.Error(2)
	}
	return r0, r1, r2
}

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

// GetBRComponentVersionAndConfig is a helper method to define mock.On call
//   - ctx context.Context
//   - sharedPool *entity.SharedPool
//   - tenantId string
//   - componentType entity.ComponentType
func (_e *Client_Expecter) GetBRComponentVersionAndConfig(ctx interface{}, sharedPool interface{}, tenantId interface{}, componentType interface{}) *Client_GetBRComponentVersionAndConfig_Call {
	return &Client_GetBRComponentVersionAndConfig_Call{Call: _e.mock.On("GetBRComponentVersionAndConfig", ctx, sharedPool, tenantId, componentType)}
}

func (_c *Client_GetBRComponentVersionAndConfig_Call) Run(run func(ctx context.Context, sharedPool *entity.SharedPool, tenantId string, componentType entity.ComponentType)) *Client_GetBRComponentVersionAndConfig_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *entity.SharedPool
		if args[1] != nil {
			arg1 = args[1].(*entity.SharedPool)
		}
		var arg2 string
		if args[2] != nil {
			arg2 = args[2].(string)
		}
		var arg3 entity.ComponentType
		if args[3] != nil {
			arg3 = args[3].(entity.ComponentType)
		}
		run(
			arg0,
			arg1,
			arg2,
			arg3,
		)
	})
	return _c
}

func (_c *Client_GetBRComponentVersionAndConfig_Call) Return(s string, v *entity.ComponentConfiguration, err error) *Client_GetBRComponentVersionAndConfig_Call {
	_c.Call.Return(s, v, err)
	return _c
}

func (_c *Client_GetBRComponentVersionAndConfig_Call) RunAndReturn(run func(ctx context.Context, sharedPool *entity.SharedPool, tenantId string, componentType entity.ComponentType) (string, *entity.ComponentConfiguration, error)) *Client_GetBRComponentVersionAndConfig_Call {
	_c.Call.Return(run)
	return _c
}

// GetClient provides a mock function for the type Client
func (_mock *Client) GetClient() config_center.ConfigCenterServiceClient {
	ret := _mock.Called()

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

	var r0 config_center.ConfigCenterServiceClient
	if returnFunc, ok := ret.Get(0).(func() config_center.ConfigCenterServiceClient); ok {
		r0 = returnFunc()
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(config_center.ConfigCenterServiceClient)
		}
	}
	return r0
}

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

// GetClient is a helper method to define mock.On call
func (_e *Client_Expecter) GetClient() *Client_GetClient_Call {
	return &Client_GetClient_Call{Call: _e.mock.On("GetClient")}
}

func (_c *Client_GetClient_Call) Run(run func()) *Client_GetClient_Call {
	_c.Call.Run(func(args mock.Arguments) {
		run()
	})
	return _c
}

func (_c *Client_GetClient_Call) Return(configCenterServiceClient config_center.ConfigCenterServiceClient) *Client_GetClient_Call {
	_c.Call.Return(configCenterServiceClient)
	return _c
}

func (_c *Client_GetClient_Call) RunAndReturn(run func() config_center.ConfigCenterServiceClient) *Client_GetClient_Call {
	_c.Call.Return(run)
	return _c
}

// GetClusterInitSqlStmts provides a mock function for the type Client
func (_mock *Client) GetClusterInitSqlStmts(ctx context.Context, sharedPoolId string) (string, error) {
	ret := _mock.Called(ctx, sharedPoolId)

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

	var r0 string
	var r1 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, string) (string, error)); ok {
		return returnFunc(ctx, sharedPoolId)
	}
	if returnFunc, ok := ret.Get(0).(func(context.Context, string) string); ok {
		r0 = returnFunc(ctx, sharedPoolId)
	} else {
		r0 = ret.Get(0).(string)
	}
	if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok {
		r1 = returnFunc(ctx, sharedPoolId)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}

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

// GetClusterInitSqlStmts is a helper method to define mock.On call
//   - ctx context.Context
//   - sharedPoolId string
func (_e *Client_Expecter) GetClusterInitSqlStmts(ctx interface{}, sharedPoolId interface{}) *Client_GetClusterInitSqlStmts_Call {
	return &Client_GetClusterInitSqlStmts_Call{Call: _e.mock.On("GetClusterInitSqlStmts", ctx, sharedPoolId)}
}

func (_c *Client_GetClusterInitSqlStmts_Call) Run(run func(ctx context.Context, sharedPoolId string)) *Client_GetClusterInitSqlStmts_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 string
		if args[1] != nil {
			arg1 = args[1].(string)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

func (_c *Client_GetClusterInitSqlStmts_Call) Return(s string, err error) *Client_GetClusterInitSqlStmts_Call {
	_c.Call.Return(s, err)
	return _c
}

func (_c *Client_GetClusterInitSqlStmts_Call) RunAndReturn(run func(ctx context.Context, sharedPoolId string) (string, error)) *Client_GetClusterInitSqlStmts_Call {
	_c.Call.Return(run)
	return _c
}

// GetClusterTiDBSemConfig provides a mock function for the type Client
func (_mock *Client) GetClusterTiDBSemConfig(ctx context.Context, sharedPoolId string) (string, error) {
	ret := _mock.Called(ctx, sharedPoolId)

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

	var r0 string
	var r1 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, string) (string, error)); ok {
		return returnFunc(ctx, sharedPoolId)
	}
	if returnFunc, ok := ret.Get(0).(func(context.Context, string) string); ok {
		r0 = returnFunc(ctx, sharedPoolId)
	} else {
		r0 = ret.Get(0).(string)
	}
	if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok {
		r1 = returnFunc(ctx, sharedPoolId)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}

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

// GetClusterTiDBSemConfig is a helper method to define mock.On call
//   - ctx context.Context
//   - sharedPoolId string
func (_e *Client_Expecter) GetClusterTiDBSemConfig(ctx interface{}, sharedPoolId interface{}) *Client_GetClusterTiDBSemConfig_Call {
	return &Client_GetClusterTiDBSemConfig_Call{Call: _e.mock.On("GetClusterTiDBSemConfig", ctx, sharedPoolId)}
}

func (_c *Client_GetClusterTiDBSemConfig_Call) Run(run func(ctx context.Context, sharedPoolId string)) *Client_GetClusterTiDBSemConfig_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 string
		if args[1] != nil {
			arg1 = args[1].(string)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

func (_c *Client_GetClusterTiDBSemConfig_Call) Return(s string, err error) *Client_GetClusterTiDBSemConfig_Call {
	_c.Call.Return(s, err)
	return _c
}

func (_c *Client_GetClusterTiDBSemConfig_Call) RunAndReturn(run func(ctx context.Context, sharedPoolId string) (string, error)) *Client_GetClusterTiDBSemConfig_Call {
	_c.Call.Return(run)
	return _c
}

// GetComponentVersionAndConfig provides a mock function for the type Client
func (_mock *Client) GetComponentVersionAndConfig(ctx context.Context, sharedPool *entity.SharedPool, component *entity.Component) (string, *entity.ComponentConfiguration, error) {
	ret := _mock.Called(ctx, sharedPool, component)

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

	var r0 string
	var r1 *entity.ComponentConfiguration
	var r2 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.SharedPool, *entity.Component) (string, *entity.ComponentConfiguration, error)); ok {
		return returnFunc(ctx, sharedPool, component)
	}
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.SharedPool, *entity.Component) string); ok {
		r0 = returnFunc(ctx, sharedPool, component)
	} else {
		r0 = ret.Get(0).(string)
	}
	if returnFunc, ok := ret.Get(1).(func(context.Context, *entity.SharedPool, *entity.Component) *entity.ComponentConfiguration); ok {
		r1 = returnFunc(ctx, sharedPool, component)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(*entity.ComponentConfiguration)
		}
	}
	if returnFunc, ok := ret.Get(2).(func(context.Context, *entity.SharedPool, *entity.Component) error); ok {
		r2 = returnFunc(ctx, sharedPool, component)
	} else {
		r2 = ret.Error(2)
	}
	return r0, r1, r2
}

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

// GetComponentVersionAndConfig is a helper method to define mock.On call
//   - ctx context.Context
//   - sharedPool *entity.SharedPool
//   - component *entity.Component
func (_e *Client_Expecter) GetComponentVersionAndConfig(ctx interface{}, sharedPool interface{}, component interface{}) *Client_GetComponentVersionAndConfig_Call {
	return &Client_GetComponentVersionAndConfig_Call{Call: _e.mock.On("GetComponentVersionAndConfig", ctx, sharedPool, component)}
}

func (_c *Client_GetComponentVersionAndConfig_Call) Run(run func(ctx context.Context, sharedPool *entity.SharedPool, component *entity.Component)) *Client_GetComponentVersionAndConfig_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *entity.SharedPool
		if args[1] != nil {
			arg1 = args[1].(*entity.SharedPool)
		}
		var arg2 *entity.Component
		if args[2] != nil {
			arg2 = args[2].(*entity.Component)
		}
		run(
			arg0,
			arg1,
			arg2,
		)
	})
	return _c
}

func (_c *Client_GetComponentVersionAndConfig_Call) Return(s string, v *entity.ComponentConfiguration, err error) *Client_GetComponentVersionAndConfig_Call {
	_c.Call.Return(s, v, err)
	return _c
}

func (_c *Client_GetComponentVersionAndConfig_Call) RunAndReturn(run func(ctx context.Context, sharedPool *entity.SharedPool, component *entity.Component) (string, *entity.ComponentConfiguration, error)) *Client_GetComponentVersionAndConfig_Call {
	_c.Call.Return(run)
	return _c
}

// GetDMComponentVersionAndConfig provides a mock function for the type Client
func (_mock *Client) GetDMComponentVersionAndConfig(ctx context.Context, sharedPool *entity.SharedPool) (string, *entity.ComponentConfiguration, error) {
	ret := _mock.Called(ctx, sharedPool)

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

	var r0 string
	var r1 *entity.ComponentConfiguration
	var r2 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.SharedPool) (string, *entity.ComponentConfiguration, error)); ok {
		return returnFunc(ctx, sharedPool)
	}
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.SharedPool) string); ok {
		r0 = returnFunc(ctx, sharedPool)
	} else {
		r0 = ret.Get(0).(string)
	}
	if returnFunc, ok := ret.Get(1).(func(context.Context, *entity.SharedPool) *entity.ComponentConfiguration); ok {
		r1 = returnFunc(ctx, sharedPool)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(*entity.ComponentConfiguration)
		}
	}
	if returnFunc, ok := ret.Get(2).(func(context.Context, *entity.SharedPool) error); ok {
		r2 = returnFunc(ctx, sharedPool)
	} else {
		r2 = ret.Error(2)
	}
	return r0, r1, r2
}

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

// GetDMComponentVersionAndConfig is a helper method to define mock.On call
//   - ctx context.Context
//   - sharedPool *entity.SharedPool
func (_e *Client_Expecter) GetDMComponentVersionAndConfig(ctx interface{}, sharedPool interface{}) *Client_GetDMComponentVersionAndConfig_Call {
	return &Client_GetDMComponentVersionAndConfig_Call{Call: _e.mock.On("GetDMComponentVersionAndConfig", ctx, sharedPool)}
}

func (_c *Client_GetDMComponentVersionAndConfig_Call) Run(run func(ctx context.Context, sharedPool *entity.SharedPool)) *Client_GetDMComponentVersionAndConfig_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *entity.SharedPool
		if args[1] != nil {
			arg1 = args[1].(*entity.SharedPool)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

func (_c *Client_GetDMComponentVersionAndConfig_Call) Return(s string, v *entity.ComponentConfiguration, err error) *Client_GetDMComponentVersionAndConfig_Call {
	_c.Call.Return(s, v, err)
	return _c
}

func (_c *Client_GetDMComponentVersionAndConfig_Call) RunAndReturn(run func(ctx context.Context, sharedPool *entity.SharedPool) (string, *entity.ComponentConfiguration, error)) *Client_GetDMComponentVersionAndConfig_Call {
	_c.Call.Return(run)
	return _c
}

// GetDefaultVersion provides a mock function for the type Client
func (_mock *Client) GetDefaultVersion(ctx context.Context, tenantId string) (string, error) {
	ret := _mock.Called(ctx, tenantId)

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

	var r0 string
	var r1 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, string) (string, error)); ok {
		return returnFunc(ctx, tenantId)
	}
	if returnFunc, ok := ret.Get(0).(func(context.Context, string) string); ok {
		r0 = returnFunc(ctx, tenantId)
	} else {
		r0 = ret.Get(0).(string)
	}
	if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok {
		r1 = returnFunc(ctx, tenantId)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}

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

// GetDefaultVersion is a helper method to define mock.On call
//   - ctx context.Context
//   - tenantId string
func (_e *Client_Expecter) GetDefaultVersion(ctx interface{}, tenantId interface{}) *Client_GetDefaultVersion_Call {
	return &Client_GetDefaultVersion_Call{Call: _e.mock.On("GetDefaultVersion", ctx, tenantId)}
}

func (_c *Client_GetDefaultVersion_Call) Run(run func(ctx context.Context, tenantId string)) *Client_GetDefaultVersion_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 string
		if args[1] != nil {
			arg1 = args[1].(string)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

func (_c *Client_GetDefaultVersion_Call) Return(s string, err error) *Client_GetDefaultVersion_Call {
	_c.Call.Return(s, err)
	return _c
}

func (_c *Client_GetDefaultVersion_Call) RunAndReturn(run func(ctx context.Context, tenantId string) (string, error)) *Client_GetDefaultVersion_Call {
	_c.Call.Return(run)
	return _c
}

// GetEffectiveComponentImageTag provides a mock function for the type Client
func (_mock *Client) GetEffectiveComponentImageTag(ctx context.Context, sharedPool *entity.SharedPool, componentType entity.ComponentType) (string, error) {
	ret := _mock.Called(ctx, sharedPool, componentType)

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

	var r0 string
	var r1 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.SharedPool, entity.ComponentType) (string, error)); ok {
		return returnFunc(ctx, sharedPool, componentType)
	}
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.SharedPool, entity.ComponentType) string); ok {
		r0 = returnFunc(ctx, sharedPool, componentType)
	} else {
		r0 = ret.Get(0).(string)
	}
	if returnFunc, ok := ret.Get(1).(func(context.Context, *entity.SharedPool, entity.ComponentType) error); ok {
		r1 = returnFunc(ctx, sharedPool, componentType)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}

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

// GetEffectiveComponentImageTag is a helper method to define mock.On call
//   - ctx context.Context
//   - sharedPool *entity.SharedPool
//   - componentType entity.ComponentType
func (_e *Client_Expecter) GetEffectiveComponentImageTag(ctx interface{}, sharedPool interface{}, componentType interface{}) *Client_GetEffectiveComponentImageTag_Call {
	return &Client_GetEffectiveComponentImageTag_Call{Call: _e.mock.On("GetEffectiveComponentImageTag", ctx, sharedPool, componentType)}
}

func (_c *Client_GetEffectiveComponentImageTag_Call) Run(run func(ctx context.Context, sharedPool *entity.SharedPool, componentType entity.ComponentType)) *Client_GetEffectiveComponentImageTag_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *entity.SharedPool
		if args[1] != nil {
			arg1 = args[1].(*entity.SharedPool)
		}
		var arg2 entity.ComponentType
		if args[2] != nil {
			arg2 = args[2].(entity.ComponentType)
		}
		run(
			arg0,
			arg1,
			arg2,
		)
	})
	return _c
}

func (_c *Client_GetEffectiveComponentImageTag_Call) Return(s string, err error) *Client_GetEffectiveComponentImageTag_Call {
	_c.Call.Return(s, err)
	return _c
}

func (_c *Client_GetEffectiveComponentImageTag_Call) RunAndReturn(run func(ctx context.Context, sharedPool *entity.SharedPool, componentType entity.ComponentType) (string, error)) *Client_GetEffectiveComponentImageTag_Call {
	_c.Call.Return(run)
	return _c
}

// GetExportComponentVersionAndConfig provides a mock function for the type Client
func (_mock *Client) GetExportComponentVersionAndConfig(ctx context.Context, tidbCluster *entity.TiDBCluster, componentType entity.ComponentType) (string, *entity.ComponentConfiguration, error) {
	ret := _mock.Called(ctx, tidbCluster, componentType)

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

	var r0 string
	var r1 *entity.ComponentConfiguration
	var r2 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.TiDBCluster, entity.ComponentType) (string, *entity.ComponentConfiguration, error)); ok {
		return returnFunc(ctx, tidbCluster, componentType)
	}
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.TiDBCluster, entity.ComponentType) string); ok {
		r0 = returnFunc(ctx, tidbCluster, componentType)
	} else {
		r0 = ret.Get(0).(string)
	}
	if returnFunc, ok := ret.Get(1).(func(context.Context, *entity.TiDBCluster, entity.ComponentType) *entity.ComponentConfiguration); ok {
		r1 = returnFunc(ctx, tidbCluster, componentType)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(*entity.ComponentConfiguration)
		}
	}
	if returnFunc, ok := ret.Get(2).(func(context.Context, *entity.TiDBCluster, entity.ComponentType) error); ok {
		r2 = returnFunc(ctx, tidbCluster, componentType)
	} else {
		r2 = ret.Error(2)
	}
	return r0, r1, r2
}

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

// GetExportComponentVersionAndConfig is a helper method to define mock.On call
//   - ctx context.Context
//   - tidbCluster *entity.TiDBCluster
//   - componentType entity.ComponentType
func (_e *Client_Expecter) GetExportComponentVersionAndConfig(ctx interface{}, tidbCluster interface{}, componentType interface{}) *Client_GetExportComponentVersionAndConfig_Call {
	return &Client_GetExportComponentVersionAndConfig_Call{Call: _e.mock.On("GetExportComponentVersionAndConfig", ctx, tidbCluster, componentType)}
}

func (_c *Client_GetExportComponentVersionAndConfig_Call) Run(run func(ctx context.Context, tidbCluster *entity.TiDBCluster, componentType entity.ComponentType)) *Client_GetExportComponentVersionAndConfig_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *entity.TiDBCluster
		if args[1] != nil {
			arg1 = args[1].(*entity.TiDBCluster)
		}
		var arg2 entity.ComponentType
		if args[2] != nil {
			arg2 = args[2].(entity.ComponentType)
		}
		run(
			arg0,
			arg1,
			arg2,
		)
	})
	return _c
}

func (_c *Client_GetExportComponentVersionAndConfig_Call) Return(s string, v *entity.ComponentConfiguration, err error) *Client_GetExportComponentVersionAndConfig_Call {
	_c.Call.Return(s, v, err)
	return _c
}

func (_c *Client_GetExportComponentVersionAndConfig_Call) RunAndReturn(run func(ctx context.Context, tidbCluster *entity.TiDBCluster, componentType entity.ComponentType) (string, *entity.ComponentConfiguration, error)) *Client_GetExportComponentVersionAndConfig_Call {
	_c.Call.Return(run)
	return _c
}

// GetTiDBClusterVersion provides a mock function for the type Client
func (_mock *Client) GetTiDBClusterVersion(ctx context.Context, tidbGroup *entity.TiDBCluster) (string, error) {
	ret := _mock.Called(ctx, tidbGroup)

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

	var r0 string
	var r1 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.TiDBCluster) (string, error)); ok {
		return returnFunc(ctx, tidbGroup)
	}
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.TiDBCluster) string); ok {
		r0 = returnFunc(ctx, tidbGroup)
	} else {
		r0 = ret.Get(0).(string)
	}
	if returnFunc, ok := ret.Get(1).(func(context.Context, *entity.TiDBCluster) error); ok {
		r1 = returnFunc(ctx, tidbGroup)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}

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

// GetTiDBClusterVersion is a helper method to define mock.On call
//   - ctx context.Context
//   - tidbGroup *entity.TiDBCluster
func (_e *Client_Expecter) GetTiDBClusterVersion(ctx interface{}, tidbGroup interface{}) *Client_GetTiDBClusterVersion_Call {
	return &Client_GetTiDBClusterVersion_Call{Call: _e.mock.On("GetTiDBClusterVersion", ctx, tidbGroup)}
}

func (_c *Client_GetTiDBClusterVersion_Call) Run(run func(ctx context.Context, tidbGroup *entity.TiDBCluster)) *Client_GetTiDBClusterVersion_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *entity.TiDBCluster
		if args[1] != nil {
			arg1 = args[1].(*entity.TiDBCluster)
		}
		run(
			arg0,
			arg1,
		)
	})
	return _c
}

func (_c *Client_GetTiDBClusterVersion_Call) Return(s string, err error) *Client_GetTiDBClusterVersion_Call {
	_c.Call.Return(s, err)
	return _c
}

func (_c *Client_GetTiDBClusterVersion_Call) RunAndReturn(run func(ctx context.Context, tidbGroup *entity.TiDBCluster) (string, error)) *Client_GetTiDBClusterVersion_Call {
	_c.Call.Return(run)
	return _c
}

// GetTiDBClusterVersionAndConfig provides a mock function for the type Client
func (_mock *Client) GetTiDBClusterVersionAndConfig(ctx context.Context, tidbGroup *entity.TiDBGroup, componentType entity.ComponentType) (string, *entity.ComponentConfiguration, error) {
	ret := _mock.Called(ctx, tidbGroup, componentType)

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

	var r0 string
	var r1 *entity.ComponentConfiguration
	var r2 error
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.TiDBGroup, entity.ComponentType) (string, *entity.ComponentConfiguration, error)); ok {
		return returnFunc(ctx, tidbGroup, componentType)
	}
	if returnFunc, ok := ret.Get(0).(func(context.Context, *entity.TiDBGroup, entity.ComponentType) string); ok {
		r0 = returnFunc(ctx, tidbGroup, componentType)
	} else {
		r0 = ret.Get(0).(string)
	}
	if returnFunc, ok := ret.Get(1).(func(context.Context, *entity.TiDBGroup, entity.ComponentType) *entity.ComponentConfiguration); ok {
		r1 = returnFunc(ctx, tidbGroup, componentType)
	} else {
		if ret.Get(1) != nil {
			r1 = ret.Get(1).(*entity.ComponentConfiguration)
		}
	}
	if returnFunc, ok := ret.Get(2).(func(context.Context, *entity.TiDBGroup, entity.ComponentType) error); ok {
		r2 = returnFunc(ctx, tidbGroup, componentType)
	} else {
		r2 = ret.Error(2)
	}
	return r0, r1, r2
}

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

// GetTiDBClusterVersionAndConfig is a helper method to define mock.On call
//   - ctx context.Context
//   - tidbGroup *entity.TiDBGroup
//   - componentType entity.ComponentType
func (_e *Client_Expecter) GetTiDBClusterVersionAndConfig(ctx interface{}, tidbGroup interface{}, componentType interface{}) *Client_GetTiDBClusterVersionAndConfig_Call {
	return &Client_GetTiDBClusterVersionAndConfig_Call{Call: _e.mock.On("GetTiDBClusterVersionAndConfig", ctx, tidbGroup, componentType)}
}

func (_c *Client_GetTiDBClusterVersionAndConfig_Call) Run(run func(ctx context.Context, tidbGroup *entity.TiDBGroup, componentType entity.ComponentType)) *Client_GetTiDBClusterVersionAndConfig_Call {
	_c.Call.Run(func(args mock.Arguments) {
		var arg0 context.Context
		if args[0] != nil {
			arg0 = args[0].(context.Context)
		}
		var arg1 *entity.TiDBGroup
		if args[1] != nil {
			arg1 = args[1].(*entity.TiDBGroup)
		}
		var arg2 entity.ComponentType
		if args[2] != nil {
			arg2 = args[2].(entity.ComponentType)
		}
		run(
			arg0,
			arg1,
			arg2,
		)
	})
	return _c
}

func (_c *Client_GetTiDBClusterVersionAndConfig_Call) Return(s string, v *entity.ComponentConfiguration, err error) *Client_GetTiDBClusterVersionAndConfig_Call {
	_c.Call.Return(s, v, err)
	return _c
}

func (_c *Client_GetTiDBClusterVersionAndConfig_Call) RunAndReturn(run func(ctx context.Context, tidbGroup *entity.TiDBGroup, componentType entity.ComponentType) (string, *entity.ComponentConfiguration, error)) *Client_GetTiDBClusterVersionAndConfig_Call {
	_c.Call.Return(run)
	return _c
}
