//go:build !ignore_autogenerated
// +build !ignore_autogenerated

// Code generated by mga tool. DO NOT EDIT.

package integratedservices

import (
	"context"
	"github.com/stretchr/testify/mock"
)

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

// CheckClusterReady provides a mock function.
func (_m *MockClusterService) CheckClusterReady(ctx context.Context, clusterID uint) (_result_0 error) {
	ret := _m.Called(ctx, clusterID)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, uint) error); ok {
		r0 = rf(ctx, clusterID)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

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

// Activate provides a mock function.
func (_m *MockService) Activate(ctx context.Context, clusterID uint, serviceName string, spec map[string]interface{}) (_result_0 error) {
	ret := _m.Called(ctx, clusterID, serviceName, spec)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, uint, string, map[string]interface{}) error); ok {
		r0 = rf(ctx, clusterID, serviceName, spec)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// Deactivate provides a mock function.
func (_m *MockService) Deactivate(ctx context.Context, clusterID uint, serviceName string) (_result_0 error) {
	ret := _m.Called(ctx, clusterID, serviceName)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, uint, string) error); ok {
		r0 = rf(ctx, clusterID, serviceName)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// Details provides a mock function.
func (_m *MockService) Details(ctx context.Context, clusterID uint, serviceName string) (service IntegratedService, err error) {
	ret := _m.Called(ctx, clusterID, serviceName)

	var r0 IntegratedService
	if rf, ok := ret.Get(0).(func(context.Context, uint, string) IntegratedService); ok {
		r0 = rf(ctx, clusterID, serviceName)
	} else {
		r0 = ret.Get(0).(IntegratedService)
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, uint, string) error); ok {
		r1 = rf(ctx, clusterID, serviceName)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// List provides a mock function.
func (_m *MockService) List(ctx context.Context, clusterID uint) (services []IntegratedService, err error) {
	ret := _m.Called(ctx, clusterID)

	var r0 []IntegratedService
	if rf, ok := ret.Get(0).(func(context.Context, uint) []IntegratedService); ok {
		r0 = rf(ctx, clusterID)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]IntegratedService)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, uint) error); ok {
		r1 = rf(ctx, clusterID)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// Update provides a mock function.
func (_m *MockService) Update(ctx context.Context, clusterID uint, serviceName string, spec map[string]interface{}) (_result_0 error) {
	ret := _m.Called(ctx, clusterID, serviceName, spec)

	var r0 error
	if rf, ok := ret.Get(0).(func(context.Context, uint, string, map[string]interface{}) error); ok {
		r0 = rf(ctx, clusterID, serviceName, spec)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}
