sigs.k8s.io/cluster-api-provider-azure@v1.14.3/azure/services/privateendpoints/mock_privateendpoints/privateendpoints_mock.go (about) 1 /* 2 Copyright The Kubernetes Authors. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 // Code generated by MockGen. DO NOT EDIT. 18 // Source: ../privateendpoints.go 19 // 20 // Generated by this command: 21 // 22 // mockgen -destination privateendpoints_mock.go -package mock_privateendpoints -source ../privateendpoints.go PrivateEndpointScope 23 // 24 25 // Package mock_privateendpoints is a generated GoMock package. 26 package mock_privateendpoints 27 28 import ( 29 reflect "reflect" 30 time "time" 31 32 v1api20220701 "github.com/Azure/azure-service-operator/v2/api/network/v1api20220701" 33 gomock "go.uber.org/mock/gomock" 34 v1beta1 "sigs.k8s.io/cluster-api-provider-azure/api/v1beta1" 35 azure "sigs.k8s.io/cluster-api-provider-azure/azure" 36 v1beta10 "sigs.k8s.io/cluster-api/api/v1beta1" 37 client "sigs.k8s.io/controller-runtime/pkg/client" 38 ) 39 40 // MockPrivateEndpointScope is a mock of PrivateEndpointScope interface. 41 type MockPrivateEndpointScope struct { 42 ctrl *gomock.Controller 43 recorder *MockPrivateEndpointScopeMockRecorder 44 } 45 46 // MockPrivateEndpointScopeMockRecorder is the mock recorder for MockPrivateEndpointScope. 47 type MockPrivateEndpointScopeMockRecorder struct { 48 mock *MockPrivateEndpointScope 49 } 50 51 // NewMockPrivateEndpointScope creates a new mock instance. 52 func NewMockPrivateEndpointScope(ctrl *gomock.Controller) *MockPrivateEndpointScope { 53 mock := &MockPrivateEndpointScope{ctrl: ctrl} 54 mock.recorder = &MockPrivateEndpointScopeMockRecorder{mock} 55 return mock 56 } 57 58 // EXPECT returns an object that allows the caller to indicate expected use. 59 func (m *MockPrivateEndpointScope) EXPECT() *MockPrivateEndpointScopeMockRecorder { 60 return m.recorder 61 } 62 63 // ASOOwner mocks base method. 64 func (m *MockPrivateEndpointScope) ASOOwner() client.Object { 65 m.ctrl.T.Helper() 66 ret := m.ctrl.Call(m, "ASOOwner") 67 ret0, _ := ret[0].(client.Object) 68 return ret0 69 } 70 71 // ASOOwner indicates an expected call of ASOOwner. 72 func (mr *MockPrivateEndpointScopeMockRecorder) ASOOwner() *gomock.Call { 73 mr.mock.ctrl.T.Helper() 74 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ASOOwner", reflect.TypeOf((*MockPrivateEndpointScope)(nil).ASOOwner)) 75 } 76 77 // ClusterName mocks base method. 78 func (m *MockPrivateEndpointScope) ClusterName() string { 79 m.ctrl.T.Helper() 80 ret := m.ctrl.Call(m, "ClusterName") 81 ret0, _ := ret[0].(string) 82 return ret0 83 } 84 85 // ClusterName indicates an expected call of ClusterName. 86 func (mr *MockPrivateEndpointScopeMockRecorder) ClusterName() *gomock.Call { 87 mr.mock.ctrl.T.Helper() 88 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterName", reflect.TypeOf((*MockPrivateEndpointScope)(nil).ClusterName)) 89 } 90 91 // DefaultedAzureCallTimeout mocks base method. 92 func (m *MockPrivateEndpointScope) DefaultedAzureCallTimeout() time.Duration { 93 m.ctrl.T.Helper() 94 ret := m.ctrl.Call(m, "DefaultedAzureCallTimeout") 95 ret0, _ := ret[0].(time.Duration) 96 return ret0 97 } 98 99 // DefaultedAzureCallTimeout indicates an expected call of DefaultedAzureCallTimeout. 100 func (mr *MockPrivateEndpointScopeMockRecorder) DefaultedAzureCallTimeout() *gomock.Call { 101 mr.mock.ctrl.T.Helper() 102 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedAzureCallTimeout", reflect.TypeOf((*MockPrivateEndpointScope)(nil).DefaultedAzureCallTimeout)) 103 } 104 105 // DefaultedAzureServiceReconcileTimeout mocks base method. 106 func (m *MockPrivateEndpointScope) DefaultedAzureServiceReconcileTimeout() time.Duration { 107 m.ctrl.T.Helper() 108 ret := m.ctrl.Call(m, "DefaultedAzureServiceReconcileTimeout") 109 ret0, _ := ret[0].(time.Duration) 110 return ret0 111 } 112 113 // DefaultedAzureServiceReconcileTimeout indicates an expected call of DefaultedAzureServiceReconcileTimeout. 114 func (mr *MockPrivateEndpointScopeMockRecorder) DefaultedAzureServiceReconcileTimeout() *gomock.Call { 115 mr.mock.ctrl.T.Helper() 116 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedAzureServiceReconcileTimeout", reflect.TypeOf((*MockPrivateEndpointScope)(nil).DefaultedAzureServiceReconcileTimeout)) 117 } 118 119 // DefaultedReconcilerRequeue mocks base method. 120 func (m *MockPrivateEndpointScope) DefaultedReconcilerRequeue() time.Duration { 121 m.ctrl.T.Helper() 122 ret := m.ctrl.Call(m, "DefaultedReconcilerRequeue") 123 ret0, _ := ret[0].(time.Duration) 124 return ret0 125 } 126 127 // DefaultedReconcilerRequeue indicates an expected call of DefaultedReconcilerRequeue. 128 func (mr *MockPrivateEndpointScopeMockRecorder) DefaultedReconcilerRequeue() *gomock.Call { 129 mr.mock.ctrl.T.Helper() 130 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedReconcilerRequeue", reflect.TypeOf((*MockPrivateEndpointScope)(nil).DefaultedReconcilerRequeue)) 131 } 132 133 // DeleteLongRunningOperationState mocks base method. 134 func (m *MockPrivateEndpointScope) DeleteLongRunningOperationState(arg0, arg1, arg2 string) { 135 m.ctrl.T.Helper() 136 m.ctrl.Call(m, "DeleteLongRunningOperationState", arg0, arg1, arg2) 137 } 138 139 // DeleteLongRunningOperationState indicates an expected call of DeleteLongRunningOperationState. 140 func (mr *MockPrivateEndpointScopeMockRecorder) DeleteLongRunningOperationState(arg0, arg1, arg2 any) *gomock.Call { 141 mr.mock.ctrl.T.Helper() 142 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLongRunningOperationState", reflect.TypeOf((*MockPrivateEndpointScope)(nil).DeleteLongRunningOperationState), arg0, arg1, arg2) 143 } 144 145 // GetClient mocks base method. 146 func (m *MockPrivateEndpointScope) GetClient() client.Client { 147 m.ctrl.T.Helper() 148 ret := m.ctrl.Call(m, "GetClient") 149 ret0, _ := ret[0].(client.Client) 150 return ret0 151 } 152 153 // GetClient indicates an expected call of GetClient. 154 func (mr *MockPrivateEndpointScopeMockRecorder) GetClient() *gomock.Call { 155 mr.mock.ctrl.T.Helper() 156 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClient", reflect.TypeOf((*MockPrivateEndpointScope)(nil).GetClient)) 157 } 158 159 // GetLongRunningOperationState mocks base method. 160 func (m *MockPrivateEndpointScope) GetLongRunningOperationState(arg0, arg1, arg2 string) *v1beta1.Future { 161 m.ctrl.T.Helper() 162 ret := m.ctrl.Call(m, "GetLongRunningOperationState", arg0, arg1, arg2) 163 ret0, _ := ret[0].(*v1beta1.Future) 164 return ret0 165 } 166 167 // GetLongRunningOperationState indicates an expected call of GetLongRunningOperationState. 168 func (mr *MockPrivateEndpointScopeMockRecorder) GetLongRunningOperationState(arg0, arg1, arg2 any) *gomock.Call { 169 mr.mock.ctrl.T.Helper() 170 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLongRunningOperationState", reflect.TypeOf((*MockPrivateEndpointScope)(nil).GetLongRunningOperationState), arg0, arg1, arg2) 171 } 172 173 // PrivateEndpointSpecs mocks base method. 174 func (m *MockPrivateEndpointScope) PrivateEndpointSpecs() []azure.ASOResourceSpecGetter[*v1api20220701.PrivateEndpoint] { 175 m.ctrl.T.Helper() 176 ret := m.ctrl.Call(m, "PrivateEndpointSpecs") 177 ret0, _ := ret[0].([]azure.ASOResourceSpecGetter[*v1api20220701.PrivateEndpoint]) 178 return ret0 179 } 180 181 // PrivateEndpointSpecs indicates an expected call of PrivateEndpointSpecs. 182 func (mr *MockPrivateEndpointScopeMockRecorder) PrivateEndpointSpecs() *gomock.Call { 183 mr.mock.ctrl.T.Helper() 184 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrivateEndpointSpecs", reflect.TypeOf((*MockPrivateEndpointScope)(nil).PrivateEndpointSpecs)) 185 } 186 187 // SetLongRunningOperationState mocks base method. 188 func (m *MockPrivateEndpointScope) SetLongRunningOperationState(arg0 *v1beta1.Future) { 189 m.ctrl.T.Helper() 190 m.ctrl.Call(m, "SetLongRunningOperationState", arg0) 191 } 192 193 // SetLongRunningOperationState indicates an expected call of SetLongRunningOperationState. 194 func (mr *MockPrivateEndpointScopeMockRecorder) SetLongRunningOperationState(arg0 any) *gomock.Call { 195 mr.mock.ctrl.T.Helper() 196 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLongRunningOperationState", reflect.TypeOf((*MockPrivateEndpointScope)(nil).SetLongRunningOperationState), arg0) 197 } 198 199 // UpdateDeleteStatus mocks base method. 200 func (m *MockPrivateEndpointScope) UpdateDeleteStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) { 201 m.ctrl.T.Helper() 202 m.ctrl.Call(m, "UpdateDeleteStatus", arg0, arg1, arg2) 203 } 204 205 // UpdateDeleteStatus indicates an expected call of UpdateDeleteStatus. 206 func (mr *MockPrivateEndpointScopeMockRecorder) UpdateDeleteStatus(arg0, arg1, arg2 any) *gomock.Call { 207 mr.mock.ctrl.T.Helper() 208 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDeleteStatus", reflect.TypeOf((*MockPrivateEndpointScope)(nil).UpdateDeleteStatus), arg0, arg1, arg2) 209 } 210 211 // UpdatePatchStatus mocks base method. 212 func (m *MockPrivateEndpointScope) UpdatePatchStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) { 213 m.ctrl.T.Helper() 214 m.ctrl.Call(m, "UpdatePatchStatus", arg0, arg1, arg2) 215 } 216 217 // UpdatePatchStatus indicates an expected call of UpdatePatchStatus. 218 func (mr *MockPrivateEndpointScopeMockRecorder) UpdatePatchStatus(arg0, arg1, arg2 any) *gomock.Call { 219 mr.mock.ctrl.T.Helper() 220 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePatchStatus", reflect.TypeOf((*MockPrivateEndpointScope)(nil).UpdatePatchStatus), arg0, arg1, arg2) 221 } 222 223 // UpdatePutStatus mocks base method. 224 func (m *MockPrivateEndpointScope) UpdatePutStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) { 225 m.ctrl.T.Helper() 226 m.ctrl.Call(m, "UpdatePutStatus", arg0, arg1, arg2) 227 } 228 229 // UpdatePutStatus indicates an expected call of UpdatePutStatus. 230 func (mr *MockPrivateEndpointScopeMockRecorder) UpdatePutStatus(arg0, arg1, arg2 any) *gomock.Call { 231 mr.mock.ctrl.T.Helper() 232 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePutStatus", reflect.TypeOf((*MockPrivateEndpointScope)(nil).UpdatePutStatus), arg0, arg1, arg2) 233 }