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

package mock

import (
	context "context"

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

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

	regionalapi "github.com/tidbcloud/dataflow-service/pkg/regional-api"

	url "net/url"
)

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

// Delete provides a mock function with given fields: ctx, region, uriPath, pathParams, queryParams
func (_m *RegionalClient) Delete(ctx context.Context, region *regionalapi.Region, uriPath string, pathParams map[string]string, queryParams url.Values) bizerr.BizError {
	ret := _m.Called(ctx, region, uriPath, pathParams, queryParams)

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

	var r0 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *regionalapi.Region, string, map[string]string, url.Values) bizerr.BizError); ok {
		r0 = rf(ctx, region, uriPath, pathParams, queryParams)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(bizerr.BizError)
		}
	}

	return r0
}

// Get provides a mock function with given fields: ctx, region, uriPath, pathParams, queryParams, dest
func (_m *RegionalClient) Get(ctx context.Context, region *regionalapi.Region, uriPath string, pathParams map[string]string, queryParams url.Values, dest interface{}) bizerr.BizError {
	ret := _m.Called(ctx, region, uriPath, pathParams, queryParams, dest)

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

	var r0 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *regionalapi.Region, string, map[string]string, url.Values, interface{}) bizerr.BizError); ok {
		r0 = rf(ctx, region, uriPath, pathParams, queryParams, dest)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(bizerr.BizError)
		}
	}

	return r0
}

// ListRegions provides a mock function with given fields: ctx
func (_m *RegionalClient) ListRegions(ctx context.Context) ([]regionalapi.RegionInfo, bizerr.BizError) {
	ret := _m.Called(ctx)

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

	var r0 []regionalapi.RegionInfo
	var r1 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context) ([]regionalapi.RegionInfo, bizerr.BizError)); ok {
		return rf(ctx)
	}
	if rf, ok := ret.Get(0).(func(context.Context) []regionalapi.RegionInfo); ok {
		r0 = rf(ctx)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]regionalapi.RegionInfo)
		}
	}

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

	return r0, r1
}

// Post provides a mock function with given fields: ctx, region, uriPath, pathParams, queryParams, body, dest
func (_m *RegionalClient) Post(ctx context.Context, region *regionalapi.Region, uriPath string, pathParams map[string]string, queryParams url.Values, body interface{}, dest interface{}) bizerr.BizError {
	ret := _m.Called(ctx, region, uriPath, pathParams, queryParams, body, dest)

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

	var r0 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *regionalapi.Region, string, map[string]string, url.Values, interface{}, interface{}) bizerr.BizError); ok {
		r0 = rf(ctx, region, uriPath, pathParams, queryParams, body, dest)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(bizerr.BizError)
		}
	}

	return r0
}

// Put provides a mock function with given fields: ctx, region, uriPath, pathParams, body, dest
func (_m *RegionalClient) Put(ctx context.Context, region *regionalapi.Region, uriPath string, pathParams map[string]string, body interface{}, dest interface{}) bizerr.BizError {
	ret := _m.Called(ctx, region, uriPath, pathParams, body, dest)

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

	var r0 bizerr.BizError
	if rf, ok := ret.Get(0).(func(context.Context, *regionalapi.Region, string, map[string]string, interface{}, interface{}) bizerr.BizError); ok {
		r0 = rf(ctx, region, uriPath, pathParams, body, dest)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(bizerr.BizError)
		}
	}

	return r0
}

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

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

	return mock
}
