func (_m *ClientAPI) CreateOrUpdateByID(ctx context.Context, resourceID string, parameters resources.GenericResource) (resources.CreateOrUpdateByIDFuture, error) {
	ret := _m.Called(ctx, resourceID, parameters)
	var r0 resources.CreateOrUpdateByIDFuture
	if rf, ok := ret.Get(0).(func(context.Context, string, resources.GenericResource) resources.CreateOrUpdateByIDFuture); ok {
		r0 = rf(ctx, resourceID, parameters)
	} else {
		r0 = ret.Get(0).(resources.CreateOrUpdateByIDFuture)
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, string, resources.GenericResource) error); ok {
		r1 = rf(ctx, resourceID, parameters)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
CreateOrUpdateByID provides a mock function with given fields: ctx, resourceID, parameters
package mocks
import autorest "github.com/Azure/go-autorest/autorest"
import context "context"
import mock "github.com/stretchr/testify/mock"
import resources "github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2018-02-01/resources"
type ClientAPI struct {
	mock.Mock
}
func (_m *ClientAPI) CheckExistence(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string) (autorest.Response, error) {
	ret := _m.Called(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName)
	var r0 autorest.Response
	if rf, ok := ret.Get(0).(func(context.Context, string, string, string, string, string) autorest.Response); ok {
		r0 = rf(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName)
	} else {
		r0 = ret.Get(0).(autorest.Response)
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, string, string, string, string, string) error); ok {
		r1 = rf(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *ClientAPI) CheckExistenceByID(ctx context.Context, resourceID string) (autorest.Response, error) {
	ret := _m.Called(ctx, resourceID)
	var r0 autorest.Response
	if rf, ok := ret.Get(0).(func(context.Context, string) autorest.Response); ok {
		r0 = rf(ctx, resourceID)
	} else {
		r0 = ret.Get(0).(autorest.Response)
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, string) error); ok {
		r1 = rf(ctx, resourceID)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}
func (_m *ClientAPI) CreateOrUpdate(ctx context.Context, resourceGroupName string, resourceProviderNamespace string, parentResourcePath string, resourceType string, resourceName string, parameters resources.GenericResource) (resources.CreateOrUpdateFuture, error) {
	ret := _m.Called(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, parameters)
	var r0 resources.CreateOrUpdateFuture
	if rf, ok := ret.Get(0).(func(context.Context, string, string, string, string, string, resources.GenericResource) resources.CreateOrUpdateFuture); ok {
		r0 = rf(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, parameters)
	} else {
		r0 = ret.Get(0).(resources.CreateOrUpdateFuture)
	}
	var r1 error
	if rf, ok := ret.Get(1).(func(context.Context, string, string, string, string, string, resources.GenericResource) error); ok {
		r1 = rf(ctx, resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, parameters)
	} else {
		r1 = ret.Error(1)
	}
	return r0, r1
}