// Code generated by MockGen. DO NOT EDIT.
// Source: gitlab.com/gitlab-org/api/client-go/v2 (interfaces: ContainerRegistryTagProtectionRulesServiceInterface)
//
// Generated by this command:
//
//	mockgen -typed -destination=container_registry_tag_protection_rules_mock.go -write_package_comment=false -package=testing gitlab.com/gitlab-org/api/client-go/v2 ContainerRegistryTagProtectionRulesServiceInterface
//

package testing

import (
	reflect "reflect"

	gitlab "gitlab.com/gitlab-org/api/client-go/v2"
	gomock "go.uber.org/mock/gomock"
)

// MockContainerRegistryTagProtectionRulesServiceInterface is a mock of ContainerRegistryTagProtectionRulesServiceInterface interface.
type MockContainerRegistryTagProtectionRulesServiceInterface struct {
	ctrl     *gomock.Controller
	recorder *MockContainerRegistryTagProtectionRulesServiceInterfaceMockRecorder
	isgomock struct{}
}

// MockContainerRegistryTagProtectionRulesServiceInterfaceMockRecorder is the mock recorder for MockContainerRegistryTagProtectionRulesServiceInterface.
type MockContainerRegistryTagProtectionRulesServiceInterfaceMockRecorder struct {
	mock *MockContainerRegistryTagProtectionRulesServiceInterface
}

// NewMockContainerRegistryTagProtectionRulesServiceInterface creates a new mock instance.
func NewMockContainerRegistryTagProtectionRulesServiceInterface(ctrl *gomock.Controller) *MockContainerRegistryTagProtectionRulesServiceInterface {
	mock := &MockContainerRegistryTagProtectionRulesServiceInterface{ctrl: ctrl}
	mock.recorder = &MockContainerRegistryTagProtectionRulesServiceInterfaceMockRecorder{mock}
	return mock
}

// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockContainerRegistryTagProtectionRulesServiceInterface) EXPECT() *MockContainerRegistryTagProtectionRulesServiceInterfaceMockRecorder {
	return m.recorder
}

// CreateContainerRegistryTagProtectionRule mocks base method.
func (m *MockContainerRegistryTagProtectionRulesServiceInterface) CreateContainerRegistryTagProtectionRule(pid any, opt *gitlab.CreateContainerRegistryTagProtectionRuleOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ContainerRegistryTagProtectionRule, *gitlab.Response, error) {
	m.ctrl.T.Helper()
	varargs := []any{pid, opt}
	for _, a := range options {
		varargs = append(varargs, a)
	}
	ret := m.ctrl.Call(m, "CreateContainerRegistryTagProtectionRule", varargs...)
	ret0, _ := ret[0].(*gitlab.ContainerRegistryTagProtectionRule)
	ret1, _ := ret[1].(*gitlab.Response)
	ret2, _ := ret[2].(error)
	return ret0, ret1, ret2
}

// CreateContainerRegistryTagProtectionRule indicates an expected call of CreateContainerRegistryTagProtectionRule.
func (mr *MockContainerRegistryTagProtectionRulesServiceInterfaceMockRecorder) CreateContainerRegistryTagProtectionRule(pid, opt any, options ...any) *MockContainerRegistryTagProtectionRulesServiceInterfaceCreateContainerRegistryTagProtectionRuleCall {
	mr.mock.ctrl.T.Helper()
	varargs := append([]any{pid, opt}, options...)
	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateContainerRegistryTagProtectionRule", reflect.TypeOf((*MockContainerRegistryTagProtectionRulesServiceInterface)(nil).CreateContainerRegistryTagProtectionRule), varargs...)
	return &MockContainerRegistryTagProtectionRulesServiceInterfaceCreateContainerRegistryTagProtectionRuleCall{Call: call}
}

// MockContainerRegistryTagProtectionRulesServiceInterfaceCreateContainerRegistryTagProtectionRuleCall wrap *gomock.Call
type MockContainerRegistryTagProtectionRulesServiceInterfaceCreateContainerRegistryTagProtectionRuleCall struct {
	*gomock.Call
}

// Return rewrite *gomock.Call.Return
func (c *MockContainerRegistryTagProtectionRulesServiceInterfaceCreateContainerRegistryTagProtectionRuleCall) Return(arg0 *gitlab.ContainerRegistryTagProtectionRule, arg1 *gitlab.Response, arg2 error) *MockContainerRegistryTagProtectionRulesServiceInterfaceCreateContainerRegistryTagProtectionRuleCall {
	c.Call = c.Call.Return(arg0, arg1, arg2)
	return c
}

// Do rewrite *gomock.Call.Do
func (c *MockContainerRegistryTagProtectionRulesServiceInterfaceCreateContainerRegistryTagProtectionRuleCall) Do(f func(any, *gitlab.CreateContainerRegistryTagProtectionRuleOptions, ...gitlab.RequestOptionFunc) (*gitlab.ContainerRegistryTagProtectionRule, *gitlab.Response, error)) *MockContainerRegistryTagProtectionRulesServiceInterfaceCreateContainerRegistryTagProtectionRuleCall {
	c.Call = c.Call.Do(f)
	return c
}

// DoAndReturn rewrite *gomock.Call.DoAndReturn
func (c *MockContainerRegistryTagProtectionRulesServiceInterfaceCreateContainerRegistryTagProtectionRuleCall) DoAndReturn(f func(any, *gitlab.CreateContainerRegistryTagProtectionRuleOptions, ...gitlab.RequestOptionFunc) (*gitlab.ContainerRegistryTagProtectionRule, *gitlab.Response, error)) *MockContainerRegistryTagProtectionRulesServiceInterfaceCreateContainerRegistryTagProtectionRuleCall {
	c.Call = c.Call.DoAndReturn(f)
	return c
}

// DeleteContainerRegistryTagProtectionRule mocks base method.
func (m *MockContainerRegistryTagProtectionRulesServiceInterface) DeleteContainerRegistryTagProtectionRule(pid any, ruleID int64, options ...gitlab.RequestOptionFunc) (*gitlab.Response, error) {
	m.ctrl.T.Helper()
	varargs := []any{pid, ruleID}
	for _, a := range options {
		varargs = append(varargs, a)
	}
	ret := m.ctrl.Call(m, "DeleteContainerRegistryTagProtectionRule", varargs...)
	ret0, _ := ret[0].(*gitlab.Response)
	ret1, _ := ret[1].(error)
	return ret0, ret1
}

// DeleteContainerRegistryTagProtectionRule indicates an expected call of DeleteContainerRegistryTagProtectionRule.
func (mr *MockContainerRegistryTagProtectionRulesServiceInterfaceMockRecorder) DeleteContainerRegistryTagProtectionRule(pid, ruleID any, options ...any) *MockContainerRegistryTagProtectionRulesServiceInterfaceDeleteContainerRegistryTagProtectionRuleCall {
	mr.mock.ctrl.T.Helper()
	varargs := append([]any{pid, ruleID}, options...)
	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteContainerRegistryTagProtectionRule", reflect.TypeOf((*MockContainerRegistryTagProtectionRulesServiceInterface)(nil).DeleteContainerRegistryTagProtectionRule), varargs...)
	return &MockContainerRegistryTagProtectionRulesServiceInterfaceDeleteContainerRegistryTagProtectionRuleCall{Call: call}
}

// MockContainerRegistryTagProtectionRulesServiceInterfaceDeleteContainerRegistryTagProtectionRuleCall wrap *gomock.Call
type MockContainerRegistryTagProtectionRulesServiceInterfaceDeleteContainerRegistryTagProtectionRuleCall struct {
	*gomock.Call
}

// Return rewrite *gomock.Call.Return
func (c *MockContainerRegistryTagProtectionRulesServiceInterfaceDeleteContainerRegistryTagProtectionRuleCall) Return(arg0 *gitlab.Response, arg1 error) *MockContainerRegistryTagProtectionRulesServiceInterfaceDeleteContainerRegistryTagProtectionRuleCall {
	c.Call = c.Call.Return(arg0, arg1)
	return c
}

// Do rewrite *gomock.Call.Do
func (c *MockContainerRegistryTagProtectionRulesServiceInterfaceDeleteContainerRegistryTagProtectionRuleCall) Do(f func(any, int64, ...gitlab.RequestOptionFunc) (*gitlab.Response, error)) *MockContainerRegistryTagProtectionRulesServiceInterfaceDeleteContainerRegistryTagProtectionRuleCall {
	c.Call = c.Call.Do(f)
	return c
}

// DoAndReturn rewrite *gomock.Call.DoAndReturn
func (c *MockContainerRegistryTagProtectionRulesServiceInterfaceDeleteContainerRegistryTagProtectionRuleCall) DoAndReturn(f func(any, int64, ...gitlab.RequestOptionFunc) (*gitlab.Response, error)) *MockContainerRegistryTagProtectionRulesServiceInterfaceDeleteContainerRegistryTagProtectionRuleCall {
	c.Call = c.Call.DoAndReturn(f)
	return c
}

// ListContainerRegistryTagProtectionRules mocks base method.
func (m *MockContainerRegistryTagProtectionRulesServiceInterface) ListContainerRegistryTagProtectionRules(pid any, options ...gitlab.RequestOptionFunc) ([]*gitlab.ContainerRegistryTagProtectionRule, *gitlab.Response, error) {
	m.ctrl.T.Helper()
	varargs := []any{pid}
	for _, a := range options {
		varargs = append(varargs, a)
	}
	ret := m.ctrl.Call(m, "ListContainerRegistryTagProtectionRules", varargs...)
	ret0, _ := ret[0].([]*gitlab.ContainerRegistryTagProtectionRule)
	ret1, _ := ret[1].(*gitlab.Response)
	ret2, _ := ret[2].(error)
	return ret0, ret1, ret2
}

// ListContainerRegistryTagProtectionRules indicates an expected call of ListContainerRegistryTagProtectionRules.
func (mr *MockContainerRegistryTagProtectionRulesServiceInterfaceMockRecorder) ListContainerRegistryTagProtectionRules(pid any, options ...any) *MockContainerRegistryTagProtectionRulesServiceInterfaceListContainerRegistryTagProtectionRulesCall {
	mr.mock.ctrl.T.Helper()
	varargs := append([]any{pid}, options...)
	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListContainerRegistryTagProtectionRules", reflect.TypeOf((*MockContainerRegistryTagProtectionRulesServiceInterface)(nil).ListContainerRegistryTagProtectionRules), varargs...)
	return &MockContainerRegistryTagProtectionRulesServiceInterfaceListContainerRegistryTagProtectionRulesCall{Call: call}
}

// MockContainerRegistryTagProtectionRulesServiceInterfaceListContainerRegistryTagProtectionRulesCall wrap *gomock.Call
type MockContainerRegistryTagProtectionRulesServiceInterfaceListContainerRegistryTagProtectionRulesCall struct {
	*gomock.Call
}

// Return rewrite *gomock.Call.Return
func (c *MockContainerRegistryTagProtectionRulesServiceInterfaceListContainerRegistryTagProtectionRulesCall) Return(arg0 []*gitlab.ContainerRegistryTagProtectionRule, arg1 *gitlab.Response, arg2 error) *MockContainerRegistryTagProtectionRulesServiceInterfaceListContainerRegistryTagProtectionRulesCall {
	c.Call = c.Call.Return(arg0, arg1, arg2)
	return c
}

// Do rewrite *gomock.Call.Do
func (c *MockContainerRegistryTagProtectionRulesServiceInterfaceListContainerRegistryTagProtectionRulesCall) Do(f func(any, ...gitlab.RequestOptionFunc) ([]*gitlab.ContainerRegistryTagProtectionRule, *gitlab.Response, error)) *MockContainerRegistryTagProtectionRulesServiceInterfaceListContainerRegistryTagProtectionRulesCall {
	c.Call = c.Call.Do(f)
	return c
}

// DoAndReturn rewrite *gomock.Call.DoAndReturn
func (c *MockContainerRegistryTagProtectionRulesServiceInterfaceListContainerRegistryTagProtectionRulesCall) DoAndReturn(f func(any, ...gitlab.RequestOptionFunc) ([]*gitlab.ContainerRegistryTagProtectionRule, *gitlab.Response, error)) *MockContainerRegistryTagProtectionRulesServiceInterfaceListContainerRegistryTagProtectionRulesCall {
	c.Call = c.Call.DoAndReturn(f)
	return c
}

// UpdateContainerRegistryTagProtectionRule mocks base method.
func (m *MockContainerRegistryTagProtectionRulesServiceInterface) UpdateContainerRegistryTagProtectionRule(pid any, ruleID int64, opt *gitlab.UpdateContainerRegistryTagProtectionRuleOptions, options ...gitlab.RequestOptionFunc) (*gitlab.ContainerRegistryTagProtectionRule, *gitlab.Response, error) {
	m.ctrl.T.Helper()
	varargs := []any{pid, ruleID, opt}
	for _, a := range options {
		varargs = append(varargs, a)
	}
	ret := m.ctrl.Call(m, "UpdateContainerRegistryTagProtectionRule", varargs...)
	ret0, _ := ret[0].(*gitlab.ContainerRegistryTagProtectionRule)
	ret1, _ := ret[1].(*gitlab.Response)
	ret2, _ := ret[2].(error)
	return ret0, ret1, ret2
}

// UpdateContainerRegistryTagProtectionRule indicates an expected call of UpdateContainerRegistryTagProtectionRule.
func (mr *MockContainerRegistryTagProtectionRulesServiceInterfaceMockRecorder) UpdateContainerRegistryTagProtectionRule(pid, ruleID, opt any, options ...any) *MockContainerRegistryTagProtectionRulesServiceInterfaceUpdateContainerRegistryTagProtectionRuleCall {
	mr.mock.ctrl.T.Helper()
	varargs := append([]any{pid, ruleID, opt}, options...)
	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateContainerRegistryTagProtectionRule", reflect.TypeOf((*MockContainerRegistryTagProtectionRulesServiceInterface)(nil).UpdateContainerRegistryTagProtectionRule), varargs...)
	return &MockContainerRegistryTagProtectionRulesServiceInterfaceUpdateContainerRegistryTagProtectionRuleCall{Call: call}
}

// MockContainerRegistryTagProtectionRulesServiceInterfaceUpdateContainerRegistryTagProtectionRuleCall wrap *gomock.Call
type MockContainerRegistryTagProtectionRulesServiceInterfaceUpdateContainerRegistryTagProtectionRuleCall struct {
	*gomock.Call
}

// Return rewrite *gomock.Call.Return
func (c *MockContainerRegistryTagProtectionRulesServiceInterfaceUpdateContainerRegistryTagProtectionRuleCall) Return(arg0 *gitlab.ContainerRegistryTagProtectionRule, arg1 *gitlab.Response, arg2 error) *MockContainerRegistryTagProtectionRulesServiceInterfaceUpdateContainerRegistryTagProtectionRuleCall {
	c.Call = c.Call.Return(arg0, arg1, arg2)
	return c
}

// Do rewrite *gomock.Call.Do
func (c *MockContainerRegistryTagProtectionRulesServiceInterfaceUpdateContainerRegistryTagProtectionRuleCall) Do(f func(any, int64, *gitlab.UpdateContainerRegistryTagProtectionRuleOptions, ...gitlab.RequestOptionFunc) (*gitlab.ContainerRegistryTagProtectionRule, *gitlab.Response, error)) *MockContainerRegistryTagProtectionRulesServiceInterfaceUpdateContainerRegistryTagProtectionRuleCall {
	c.Call = c.Call.Do(f)
	return c
}

// DoAndReturn rewrite *gomock.Call.DoAndReturn
func (c *MockContainerRegistryTagProtectionRulesServiceInterfaceUpdateContainerRegistryTagProtectionRuleCall) DoAndReturn(f func(any, int64, *gitlab.UpdateContainerRegistryTagProtectionRuleOptions, ...gitlab.RequestOptionFunc) (*gitlab.ContainerRegistryTagProtectionRule, *gitlab.Response, error)) *MockContainerRegistryTagProtectionRulesServiceInterfaceUpdateContainerRegistryTagProtectionRuleCall {
	c.Call = c.Call.DoAndReturn(f)
	return c
}
