sigs.k8s.io/cluster-api-provider-azure@v1.14.3/azure/services/routetables/mock_routetables/routetables_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: ../routetables.go 19 // 20 // Generated by this command: 21 // 22 // mockgen -destination routetables_mock.go -package mock_routetables -source ../routetables.go RouteTableScope 23 // 24 25 // Package mock_routetables is a generated GoMock package. 26 package mock_routetables 27 28 import ( 29 reflect "reflect" 30 time "time" 31 32 azcore "github.com/Azure/azure-sdk-for-go/sdk/azcore" 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 ) 38 39 // MockRouteTableScope is a mock of RouteTableScope interface. 40 type MockRouteTableScope struct { 41 ctrl *gomock.Controller 42 recorder *MockRouteTableScopeMockRecorder 43 } 44 45 // MockRouteTableScopeMockRecorder is the mock recorder for MockRouteTableScope. 46 type MockRouteTableScopeMockRecorder struct { 47 mock *MockRouteTableScope 48 } 49 50 // NewMockRouteTableScope creates a new mock instance. 51 func NewMockRouteTableScope(ctrl *gomock.Controller) *MockRouteTableScope { 52 mock := &MockRouteTableScope{ctrl: ctrl} 53 mock.recorder = &MockRouteTableScopeMockRecorder{mock} 54 return mock 55 } 56 57 // EXPECT returns an object that allows the caller to indicate expected use. 58 func (m *MockRouteTableScope) EXPECT() *MockRouteTableScopeMockRecorder { 59 return m.recorder 60 } 61 62 // BaseURI mocks base method. 63 func (m *MockRouteTableScope) BaseURI() string { 64 m.ctrl.T.Helper() 65 ret := m.ctrl.Call(m, "BaseURI") 66 ret0, _ := ret[0].(string) 67 return ret0 68 } 69 70 // BaseURI indicates an expected call of BaseURI. 71 func (mr *MockRouteTableScopeMockRecorder) BaseURI() *gomock.Call { 72 mr.mock.ctrl.T.Helper() 73 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BaseURI", reflect.TypeOf((*MockRouteTableScope)(nil).BaseURI)) 74 } 75 76 // ClientID mocks base method. 77 func (m *MockRouteTableScope) ClientID() string { 78 m.ctrl.T.Helper() 79 ret := m.ctrl.Call(m, "ClientID") 80 ret0, _ := ret[0].(string) 81 return ret0 82 } 83 84 // ClientID indicates an expected call of ClientID. 85 func (mr *MockRouteTableScopeMockRecorder) ClientID() *gomock.Call { 86 mr.mock.ctrl.T.Helper() 87 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClientID", reflect.TypeOf((*MockRouteTableScope)(nil).ClientID)) 88 } 89 90 // ClientSecret mocks base method. 91 func (m *MockRouteTableScope) ClientSecret() string { 92 m.ctrl.T.Helper() 93 ret := m.ctrl.Call(m, "ClientSecret") 94 ret0, _ := ret[0].(string) 95 return ret0 96 } 97 98 // ClientSecret indicates an expected call of ClientSecret. 99 func (mr *MockRouteTableScopeMockRecorder) ClientSecret() *gomock.Call { 100 mr.mock.ctrl.T.Helper() 101 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClientSecret", reflect.TypeOf((*MockRouteTableScope)(nil).ClientSecret)) 102 } 103 104 // CloudEnvironment mocks base method. 105 func (m *MockRouteTableScope) CloudEnvironment() string { 106 m.ctrl.T.Helper() 107 ret := m.ctrl.Call(m, "CloudEnvironment") 108 ret0, _ := ret[0].(string) 109 return ret0 110 } 111 112 // CloudEnvironment indicates an expected call of CloudEnvironment. 113 func (mr *MockRouteTableScopeMockRecorder) CloudEnvironment() *gomock.Call { 114 mr.mock.ctrl.T.Helper() 115 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloudEnvironment", reflect.TypeOf((*MockRouteTableScope)(nil).CloudEnvironment)) 116 } 117 118 // DefaultedAzureCallTimeout mocks base method. 119 func (m *MockRouteTableScope) DefaultedAzureCallTimeout() time.Duration { 120 m.ctrl.T.Helper() 121 ret := m.ctrl.Call(m, "DefaultedAzureCallTimeout") 122 ret0, _ := ret[0].(time.Duration) 123 return ret0 124 } 125 126 // DefaultedAzureCallTimeout indicates an expected call of DefaultedAzureCallTimeout. 127 func (mr *MockRouteTableScopeMockRecorder) DefaultedAzureCallTimeout() *gomock.Call { 128 mr.mock.ctrl.T.Helper() 129 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedAzureCallTimeout", reflect.TypeOf((*MockRouteTableScope)(nil).DefaultedAzureCallTimeout)) 130 } 131 132 // DefaultedAzureServiceReconcileTimeout mocks base method. 133 func (m *MockRouteTableScope) DefaultedAzureServiceReconcileTimeout() time.Duration { 134 m.ctrl.T.Helper() 135 ret := m.ctrl.Call(m, "DefaultedAzureServiceReconcileTimeout") 136 ret0, _ := ret[0].(time.Duration) 137 return ret0 138 } 139 140 // DefaultedAzureServiceReconcileTimeout indicates an expected call of DefaultedAzureServiceReconcileTimeout. 141 func (mr *MockRouteTableScopeMockRecorder) DefaultedAzureServiceReconcileTimeout() *gomock.Call { 142 mr.mock.ctrl.T.Helper() 143 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedAzureServiceReconcileTimeout", reflect.TypeOf((*MockRouteTableScope)(nil).DefaultedAzureServiceReconcileTimeout)) 144 } 145 146 // DefaultedReconcilerRequeue mocks base method. 147 func (m *MockRouteTableScope) DefaultedReconcilerRequeue() time.Duration { 148 m.ctrl.T.Helper() 149 ret := m.ctrl.Call(m, "DefaultedReconcilerRequeue") 150 ret0, _ := ret[0].(time.Duration) 151 return ret0 152 } 153 154 // DefaultedReconcilerRequeue indicates an expected call of DefaultedReconcilerRequeue. 155 func (mr *MockRouteTableScopeMockRecorder) DefaultedReconcilerRequeue() *gomock.Call { 156 mr.mock.ctrl.T.Helper() 157 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedReconcilerRequeue", reflect.TypeOf((*MockRouteTableScope)(nil).DefaultedReconcilerRequeue)) 158 } 159 160 // DeleteLongRunningOperationState mocks base method. 161 func (m *MockRouteTableScope) DeleteLongRunningOperationState(arg0, arg1, arg2 string) { 162 m.ctrl.T.Helper() 163 m.ctrl.Call(m, "DeleteLongRunningOperationState", arg0, arg1, arg2) 164 } 165 166 // DeleteLongRunningOperationState indicates an expected call of DeleteLongRunningOperationState. 167 func (mr *MockRouteTableScopeMockRecorder) DeleteLongRunningOperationState(arg0, arg1, arg2 any) *gomock.Call { 168 mr.mock.ctrl.T.Helper() 169 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLongRunningOperationState", reflect.TypeOf((*MockRouteTableScope)(nil).DeleteLongRunningOperationState), arg0, arg1, arg2) 170 } 171 172 // GetLongRunningOperationState mocks base method. 173 func (m *MockRouteTableScope) GetLongRunningOperationState(arg0, arg1, arg2 string) *v1beta1.Future { 174 m.ctrl.T.Helper() 175 ret := m.ctrl.Call(m, "GetLongRunningOperationState", arg0, arg1, arg2) 176 ret0, _ := ret[0].(*v1beta1.Future) 177 return ret0 178 } 179 180 // GetLongRunningOperationState indicates an expected call of GetLongRunningOperationState. 181 func (mr *MockRouteTableScopeMockRecorder) GetLongRunningOperationState(arg0, arg1, arg2 any) *gomock.Call { 182 mr.mock.ctrl.T.Helper() 183 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLongRunningOperationState", reflect.TypeOf((*MockRouteTableScope)(nil).GetLongRunningOperationState), arg0, arg1, arg2) 184 } 185 186 // HashKey mocks base method. 187 func (m *MockRouteTableScope) HashKey() string { 188 m.ctrl.T.Helper() 189 ret := m.ctrl.Call(m, "HashKey") 190 ret0, _ := ret[0].(string) 191 return ret0 192 } 193 194 // HashKey indicates an expected call of HashKey. 195 func (mr *MockRouteTableScopeMockRecorder) HashKey() *gomock.Call { 196 mr.mock.ctrl.T.Helper() 197 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HashKey", reflect.TypeOf((*MockRouteTableScope)(nil).HashKey)) 198 } 199 200 // IsVnetManaged mocks base method. 201 func (m *MockRouteTableScope) IsVnetManaged() bool { 202 m.ctrl.T.Helper() 203 ret := m.ctrl.Call(m, "IsVnetManaged") 204 ret0, _ := ret[0].(bool) 205 return ret0 206 } 207 208 // IsVnetManaged indicates an expected call of IsVnetManaged. 209 func (mr *MockRouteTableScopeMockRecorder) IsVnetManaged() *gomock.Call { 210 mr.mock.ctrl.T.Helper() 211 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsVnetManaged", reflect.TypeOf((*MockRouteTableScope)(nil).IsVnetManaged)) 212 } 213 214 // RouteTableSpecs mocks base method. 215 func (m *MockRouteTableScope) RouteTableSpecs() []azure.ResourceSpecGetter { 216 m.ctrl.T.Helper() 217 ret := m.ctrl.Call(m, "RouteTableSpecs") 218 ret0, _ := ret[0].([]azure.ResourceSpecGetter) 219 return ret0 220 } 221 222 // RouteTableSpecs indicates an expected call of RouteTableSpecs. 223 func (mr *MockRouteTableScopeMockRecorder) RouteTableSpecs() *gomock.Call { 224 mr.mock.ctrl.T.Helper() 225 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RouteTableSpecs", reflect.TypeOf((*MockRouteTableScope)(nil).RouteTableSpecs)) 226 } 227 228 // SetLongRunningOperationState mocks base method. 229 func (m *MockRouteTableScope) SetLongRunningOperationState(arg0 *v1beta1.Future) { 230 m.ctrl.T.Helper() 231 m.ctrl.Call(m, "SetLongRunningOperationState", arg0) 232 } 233 234 // SetLongRunningOperationState indicates an expected call of SetLongRunningOperationState. 235 func (mr *MockRouteTableScopeMockRecorder) SetLongRunningOperationState(arg0 any) *gomock.Call { 236 mr.mock.ctrl.T.Helper() 237 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLongRunningOperationState", reflect.TypeOf((*MockRouteTableScope)(nil).SetLongRunningOperationState), arg0) 238 } 239 240 // SubscriptionID mocks base method. 241 func (m *MockRouteTableScope) SubscriptionID() string { 242 m.ctrl.T.Helper() 243 ret := m.ctrl.Call(m, "SubscriptionID") 244 ret0, _ := ret[0].(string) 245 return ret0 246 } 247 248 // SubscriptionID indicates an expected call of SubscriptionID. 249 func (mr *MockRouteTableScopeMockRecorder) SubscriptionID() *gomock.Call { 250 mr.mock.ctrl.T.Helper() 251 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscriptionID", reflect.TypeOf((*MockRouteTableScope)(nil).SubscriptionID)) 252 } 253 254 // TenantID mocks base method. 255 func (m *MockRouteTableScope) TenantID() string { 256 m.ctrl.T.Helper() 257 ret := m.ctrl.Call(m, "TenantID") 258 ret0, _ := ret[0].(string) 259 return ret0 260 } 261 262 // TenantID indicates an expected call of TenantID. 263 func (mr *MockRouteTableScopeMockRecorder) TenantID() *gomock.Call { 264 mr.mock.ctrl.T.Helper() 265 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TenantID", reflect.TypeOf((*MockRouteTableScope)(nil).TenantID)) 266 } 267 268 // Token mocks base method. 269 func (m *MockRouteTableScope) Token() azcore.TokenCredential { 270 m.ctrl.T.Helper() 271 ret := m.ctrl.Call(m, "Token") 272 ret0, _ := ret[0].(azcore.TokenCredential) 273 return ret0 274 } 275 276 // Token indicates an expected call of Token. 277 func (mr *MockRouteTableScopeMockRecorder) Token() *gomock.Call { 278 mr.mock.ctrl.T.Helper() 279 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Token", reflect.TypeOf((*MockRouteTableScope)(nil).Token)) 280 } 281 282 // UpdateDeleteStatus mocks base method. 283 func (m *MockRouteTableScope) UpdateDeleteStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) { 284 m.ctrl.T.Helper() 285 m.ctrl.Call(m, "UpdateDeleteStatus", arg0, arg1, arg2) 286 } 287 288 // UpdateDeleteStatus indicates an expected call of UpdateDeleteStatus. 289 func (mr *MockRouteTableScopeMockRecorder) UpdateDeleteStatus(arg0, arg1, arg2 any) *gomock.Call { 290 mr.mock.ctrl.T.Helper() 291 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDeleteStatus", reflect.TypeOf((*MockRouteTableScope)(nil).UpdateDeleteStatus), arg0, arg1, arg2) 292 } 293 294 // UpdatePatchStatus mocks base method. 295 func (m *MockRouteTableScope) UpdatePatchStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) { 296 m.ctrl.T.Helper() 297 m.ctrl.Call(m, "UpdatePatchStatus", arg0, arg1, arg2) 298 } 299 300 // UpdatePatchStatus indicates an expected call of UpdatePatchStatus. 301 func (mr *MockRouteTableScopeMockRecorder) UpdatePatchStatus(arg0, arg1, arg2 any) *gomock.Call { 302 mr.mock.ctrl.T.Helper() 303 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePatchStatus", reflect.TypeOf((*MockRouteTableScope)(nil).UpdatePatchStatus), arg0, arg1, arg2) 304 } 305 306 // UpdatePutStatus mocks base method. 307 func (m *MockRouteTableScope) UpdatePutStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) { 308 m.ctrl.T.Helper() 309 m.ctrl.Call(m, "UpdatePutStatus", arg0, arg1, arg2) 310 } 311 312 // UpdatePutStatus indicates an expected call of UpdatePutStatus. 313 func (mr *MockRouteTableScopeMockRecorder) UpdatePutStatus(arg0, arg1, arg2 any) *gomock.Call { 314 mr.mock.ctrl.T.Helper() 315 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePutStatus", reflect.TypeOf((*MockRouteTableScope)(nil).UpdatePutStatus), arg0, arg1, arg2) 316 }