sigs.k8s.io/cluster-api-provider-azure@v1.14.3/azure/services/natgateways/mock_natgateways/natgateways_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: ../natgateways.go
    19  //
    20  // Generated by this command:
    21  //
    22  //	mockgen -destination natgateways_mock.go -package mock_natgateways -source ../natgateways.go NatGatewayScope
    23  //
    24  
    25  // Package mock_natgateways is a generated GoMock package.
    26  package mock_natgateways
    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  // MockNatGatewayScope is a mock of NatGatewayScope interface.
    41  type MockNatGatewayScope struct {
    42  	ctrl     *gomock.Controller
    43  	recorder *MockNatGatewayScopeMockRecorder
    44  }
    45  
    46  // MockNatGatewayScopeMockRecorder is the mock recorder for MockNatGatewayScope.
    47  type MockNatGatewayScopeMockRecorder struct {
    48  	mock *MockNatGatewayScope
    49  }
    50  
    51  // NewMockNatGatewayScope creates a new mock instance.
    52  func NewMockNatGatewayScope(ctrl *gomock.Controller) *MockNatGatewayScope {
    53  	mock := &MockNatGatewayScope{ctrl: ctrl}
    54  	mock.recorder = &MockNatGatewayScopeMockRecorder{mock}
    55  	return mock
    56  }
    57  
    58  // EXPECT returns an object that allows the caller to indicate expected use.
    59  func (m *MockNatGatewayScope) EXPECT() *MockNatGatewayScopeMockRecorder {
    60  	return m.recorder
    61  }
    62  
    63  // ASOOwner mocks base method.
    64  func (m *MockNatGatewayScope) 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 *MockNatGatewayScopeMockRecorder) ASOOwner() *gomock.Call {
    73  	mr.mock.ctrl.T.Helper()
    74  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ASOOwner", reflect.TypeOf((*MockNatGatewayScope)(nil).ASOOwner))
    75  }
    76  
    77  // ClusterName mocks base method.
    78  func (m *MockNatGatewayScope) 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 *MockNatGatewayScopeMockRecorder) ClusterName() *gomock.Call {
    87  	mr.mock.ctrl.T.Helper()
    88  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterName", reflect.TypeOf((*MockNatGatewayScope)(nil).ClusterName))
    89  }
    90  
    91  // DefaultedAzureCallTimeout mocks base method.
    92  func (m *MockNatGatewayScope) 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 *MockNatGatewayScopeMockRecorder) DefaultedAzureCallTimeout() *gomock.Call {
   101  	mr.mock.ctrl.T.Helper()
   102  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedAzureCallTimeout", reflect.TypeOf((*MockNatGatewayScope)(nil).DefaultedAzureCallTimeout))
   103  }
   104  
   105  // DefaultedAzureServiceReconcileTimeout mocks base method.
   106  func (m *MockNatGatewayScope) 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 *MockNatGatewayScopeMockRecorder) DefaultedAzureServiceReconcileTimeout() *gomock.Call {
   115  	mr.mock.ctrl.T.Helper()
   116  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedAzureServiceReconcileTimeout", reflect.TypeOf((*MockNatGatewayScope)(nil).DefaultedAzureServiceReconcileTimeout))
   117  }
   118  
   119  // DefaultedReconcilerRequeue mocks base method.
   120  func (m *MockNatGatewayScope) 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 *MockNatGatewayScopeMockRecorder) DefaultedReconcilerRequeue() *gomock.Call {
   129  	mr.mock.ctrl.T.Helper()
   130  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedReconcilerRequeue", reflect.TypeOf((*MockNatGatewayScope)(nil).DefaultedReconcilerRequeue))
   131  }
   132  
   133  // DeleteLongRunningOperationState mocks base method.
   134  func (m *MockNatGatewayScope) 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 *MockNatGatewayScopeMockRecorder) DeleteLongRunningOperationState(arg0, arg1, arg2 any) *gomock.Call {
   141  	mr.mock.ctrl.T.Helper()
   142  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLongRunningOperationState", reflect.TypeOf((*MockNatGatewayScope)(nil).DeleteLongRunningOperationState), arg0, arg1, arg2)
   143  }
   144  
   145  // GetClient mocks base method.
   146  func (m *MockNatGatewayScope) 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 *MockNatGatewayScopeMockRecorder) GetClient() *gomock.Call {
   155  	mr.mock.ctrl.T.Helper()
   156  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClient", reflect.TypeOf((*MockNatGatewayScope)(nil).GetClient))
   157  }
   158  
   159  // GetLongRunningOperationState mocks base method.
   160  func (m *MockNatGatewayScope) 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 *MockNatGatewayScopeMockRecorder) GetLongRunningOperationState(arg0, arg1, arg2 any) *gomock.Call {
   169  	mr.mock.ctrl.T.Helper()
   170  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLongRunningOperationState", reflect.TypeOf((*MockNatGatewayScope)(nil).GetLongRunningOperationState), arg0, arg1, arg2)
   171  }
   172  
   173  // NatGatewaySpecs mocks base method.
   174  func (m *MockNatGatewayScope) NatGatewaySpecs() []azure.ASOResourceSpecGetter[*v1api20220701.NatGateway] {
   175  	m.ctrl.T.Helper()
   176  	ret := m.ctrl.Call(m, "NatGatewaySpecs")
   177  	ret0, _ := ret[0].([]azure.ASOResourceSpecGetter[*v1api20220701.NatGateway])
   178  	return ret0
   179  }
   180  
   181  // NatGatewaySpecs indicates an expected call of NatGatewaySpecs.
   182  func (mr *MockNatGatewayScopeMockRecorder) NatGatewaySpecs() *gomock.Call {
   183  	mr.mock.ctrl.T.Helper()
   184  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NatGatewaySpecs", reflect.TypeOf((*MockNatGatewayScope)(nil).NatGatewaySpecs))
   185  }
   186  
   187  // SetLongRunningOperationState mocks base method.
   188  func (m *MockNatGatewayScope) 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 *MockNatGatewayScopeMockRecorder) SetLongRunningOperationState(arg0 any) *gomock.Call {
   195  	mr.mock.ctrl.T.Helper()
   196  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLongRunningOperationState", reflect.TypeOf((*MockNatGatewayScope)(nil).SetLongRunningOperationState), arg0)
   197  }
   198  
   199  // SetNatGatewayIDInSubnets mocks base method.
   200  func (m *MockNatGatewayScope) SetNatGatewayIDInSubnets(natGatewayName, natGatewayID string) {
   201  	m.ctrl.T.Helper()
   202  	m.ctrl.Call(m, "SetNatGatewayIDInSubnets", natGatewayName, natGatewayID)
   203  }
   204  
   205  // SetNatGatewayIDInSubnets indicates an expected call of SetNatGatewayIDInSubnets.
   206  func (mr *MockNatGatewayScopeMockRecorder) SetNatGatewayIDInSubnets(natGatewayName, natGatewayID any) *gomock.Call {
   207  	mr.mock.ctrl.T.Helper()
   208  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetNatGatewayIDInSubnets", reflect.TypeOf((*MockNatGatewayScope)(nil).SetNatGatewayIDInSubnets), natGatewayName, natGatewayID)
   209  }
   210  
   211  // UpdateDeleteStatus mocks base method.
   212  func (m *MockNatGatewayScope) UpdateDeleteStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) {
   213  	m.ctrl.T.Helper()
   214  	m.ctrl.Call(m, "UpdateDeleteStatus", arg0, arg1, arg2)
   215  }
   216  
   217  // UpdateDeleteStatus indicates an expected call of UpdateDeleteStatus.
   218  func (mr *MockNatGatewayScopeMockRecorder) UpdateDeleteStatus(arg0, arg1, arg2 any) *gomock.Call {
   219  	mr.mock.ctrl.T.Helper()
   220  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDeleteStatus", reflect.TypeOf((*MockNatGatewayScope)(nil).UpdateDeleteStatus), arg0, arg1, arg2)
   221  }
   222  
   223  // UpdatePatchStatus mocks base method.
   224  func (m *MockNatGatewayScope) UpdatePatchStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) {
   225  	m.ctrl.T.Helper()
   226  	m.ctrl.Call(m, "UpdatePatchStatus", arg0, arg1, arg2)
   227  }
   228  
   229  // UpdatePatchStatus indicates an expected call of UpdatePatchStatus.
   230  func (mr *MockNatGatewayScopeMockRecorder) UpdatePatchStatus(arg0, arg1, arg2 any) *gomock.Call {
   231  	mr.mock.ctrl.T.Helper()
   232  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePatchStatus", reflect.TypeOf((*MockNatGatewayScope)(nil).UpdatePatchStatus), arg0, arg1, arg2)
   233  }
   234  
   235  // UpdatePutStatus mocks base method.
   236  func (m *MockNatGatewayScope) UpdatePutStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) {
   237  	m.ctrl.T.Helper()
   238  	m.ctrl.Call(m, "UpdatePutStatus", arg0, arg1, arg2)
   239  }
   240  
   241  // UpdatePutStatus indicates an expected call of UpdatePutStatus.
   242  func (mr *MockNatGatewayScopeMockRecorder) UpdatePutStatus(arg0, arg1, arg2 any) *gomock.Call {
   243  	mr.mock.ctrl.T.Helper()
   244  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePutStatus", reflect.TypeOf((*MockNatGatewayScope)(nil).UpdatePutStatus), arg0, arg1, arg2)
   245  }