sigs.k8s.io/cluster-api-provider-azure@v1.14.3/azure/services/virtualnetworks/mock_virtualnetworks/virtualnetworks_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: ../virtualnetworks.go
    19  //
    20  // Generated by this command:
    21  //
    22  //	mockgen -destination virtualnetworks_mock.go -package mock_virtualnetworks -source ../virtualnetworks.go VNetScope
    23  //
    24  
    25  // Package mock_virtualnetworks is a generated GoMock package.
    26  package mock_virtualnetworks
    27  
    28  import (
    29  	reflect "reflect"
    30  	time "time"
    31  
    32  	v1api20201101 "github.com/Azure/azure-service-operator/v2/api/network/v1api20201101"
    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  // MockVNetScope is a mock of VNetScope interface.
    41  type MockVNetScope struct {
    42  	ctrl     *gomock.Controller
    43  	recorder *MockVNetScopeMockRecorder
    44  }
    45  
    46  // MockVNetScopeMockRecorder is the mock recorder for MockVNetScope.
    47  type MockVNetScopeMockRecorder struct {
    48  	mock *MockVNetScope
    49  }
    50  
    51  // NewMockVNetScope creates a new mock instance.
    52  func NewMockVNetScope(ctrl *gomock.Controller) *MockVNetScope {
    53  	mock := &MockVNetScope{ctrl: ctrl}
    54  	mock.recorder = &MockVNetScopeMockRecorder{mock}
    55  	return mock
    56  }
    57  
    58  // EXPECT returns an object that allows the caller to indicate expected use.
    59  func (m *MockVNetScope) EXPECT() *MockVNetScopeMockRecorder {
    60  	return m.recorder
    61  }
    62  
    63  // ASOOwner mocks base method.
    64  func (m *MockVNetScope) 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 *MockVNetScopeMockRecorder) ASOOwner() *gomock.Call {
    73  	mr.mock.ctrl.T.Helper()
    74  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ASOOwner", reflect.TypeOf((*MockVNetScope)(nil).ASOOwner))
    75  }
    76  
    77  // ClusterName mocks base method.
    78  func (m *MockVNetScope) 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 *MockVNetScopeMockRecorder) ClusterName() *gomock.Call {
    87  	mr.mock.ctrl.T.Helper()
    88  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterName", reflect.TypeOf((*MockVNetScope)(nil).ClusterName))
    89  }
    90  
    91  // DefaultedAzureCallTimeout mocks base method.
    92  func (m *MockVNetScope) 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 *MockVNetScopeMockRecorder) DefaultedAzureCallTimeout() *gomock.Call {
   101  	mr.mock.ctrl.T.Helper()
   102  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedAzureCallTimeout", reflect.TypeOf((*MockVNetScope)(nil).DefaultedAzureCallTimeout))
   103  }
   104  
   105  // DefaultedAzureServiceReconcileTimeout mocks base method.
   106  func (m *MockVNetScope) 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 *MockVNetScopeMockRecorder) DefaultedAzureServiceReconcileTimeout() *gomock.Call {
   115  	mr.mock.ctrl.T.Helper()
   116  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedAzureServiceReconcileTimeout", reflect.TypeOf((*MockVNetScope)(nil).DefaultedAzureServiceReconcileTimeout))
   117  }
   118  
   119  // DefaultedReconcilerRequeue mocks base method.
   120  func (m *MockVNetScope) 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 *MockVNetScopeMockRecorder) DefaultedReconcilerRequeue() *gomock.Call {
   129  	mr.mock.ctrl.T.Helper()
   130  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedReconcilerRequeue", reflect.TypeOf((*MockVNetScope)(nil).DefaultedReconcilerRequeue))
   131  }
   132  
   133  // DeleteLongRunningOperationState mocks base method.
   134  func (m *MockVNetScope) 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 *MockVNetScopeMockRecorder) DeleteLongRunningOperationState(arg0, arg1, arg2 any) *gomock.Call {
   141  	mr.mock.ctrl.T.Helper()
   142  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLongRunningOperationState", reflect.TypeOf((*MockVNetScope)(nil).DeleteLongRunningOperationState), arg0, arg1, arg2)
   143  }
   144  
   145  // GetClient mocks base method.
   146  func (m *MockVNetScope) 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 *MockVNetScopeMockRecorder) GetClient() *gomock.Call {
   155  	mr.mock.ctrl.T.Helper()
   156  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClient", reflect.TypeOf((*MockVNetScope)(nil).GetClient))
   157  }
   158  
   159  // GetLongRunningOperationState mocks base method.
   160  func (m *MockVNetScope) 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 *MockVNetScopeMockRecorder) GetLongRunningOperationState(arg0, arg1, arg2 any) *gomock.Call {
   169  	mr.mock.ctrl.T.Helper()
   170  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLongRunningOperationState", reflect.TypeOf((*MockVNetScope)(nil).GetLongRunningOperationState), arg0, arg1, arg2)
   171  }
   172  
   173  // SetLongRunningOperationState mocks base method.
   174  func (m *MockVNetScope) SetLongRunningOperationState(arg0 *v1beta1.Future) {
   175  	m.ctrl.T.Helper()
   176  	m.ctrl.Call(m, "SetLongRunningOperationState", arg0)
   177  }
   178  
   179  // SetLongRunningOperationState indicates an expected call of SetLongRunningOperationState.
   180  func (mr *MockVNetScopeMockRecorder) SetLongRunningOperationState(arg0 any) *gomock.Call {
   181  	mr.mock.ctrl.T.Helper()
   182  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLongRunningOperationState", reflect.TypeOf((*MockVNetScope)(nil).SetLongRunningOperationState), arg0)
   183  }
   184  
   185  // UpdateDeleteStatus mocks base method.
   186  func (m *MockVNetScope) UpdateDeleteStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) {
   187  	m.ctrl.T.Helper()
   188  	m.ctrl.Call(m, "UpdateDeleteStatus", arg0, arg1, arg2)
   189  }
   190  
   191  // UpdateDeleteStatus indicates an expected call of UpdateDeleteStatus.
   192  func (mr *MockVNetScopeMockRecorder) UpdateDeleteStatus(arg0, arg1, arg2 any) *gomock.Call {
   193  	mr.mock.ctrl.T.Helper()
   194  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDeleteStatus", reflect.TypeOf((*MockVNetScope)(nil).UpdateDeleteStatus), arg0, arg1, arg2)
   195  }
   196  
   197  // UpdatePatchStatus mocks base method.
   198  func (m *MockVNetScope) UpdatePatchStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) {
   199  	m.ctrl.T.Helper()
   200  	m.ctrl.Call(m, "UpdatePatchStatus", arg0, arg1, arg2)
   201  }
   202  
   203  // UpdatePatchStatus indicates an expected call of UpdatePatchStatus.
   204  func (mr *MockVNetScopeMockRecorder) UpdatePatchStatus(arg0, arg1, arg2 any) *gomock.Call {
   205  	mr.mock.ctrl.T.Helper()
   206  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePatchStatus", reflect.TypeOf((*MockVNetScope)(nil).UpdatePatchStatus), arg0, arg1, arg2)
   207  }
   208  
   209  // UpdatePutStatus mocks base method.
   210  func (m *MockVNetScope) UpdatePutStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) {
   211  	m.ctrl.T.Helper()
   212  	m.ctrl.Call(m, "UpdatePutStatus", arg0, arg1, arg2)
   213  }
   214  
   215  // UpdatePutStatus indicates an expected call of UpdatePutStatus.
   216  func (mr *MockVNetScopeMockRecorder) UpdatePutStatus(arg0, arg1, arg2 any) *gomock.Call {
   217  	mr.mock.ctrl.T.Helper()
   218  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePutStatus", reflect.TypeOf((*MockVNetScope)(nil).UpdatePutStatus), arg0, arg1, arg2)
   219  }
   220  
   221  // UpdateSubnetCIDRs mocks base method.
   222  func (m *MockVNetScope) UpdateSubnetCIDRs(arg0 string, arg1 []string) {
   223  	m.ctrl.T.Helper()
   224  	m.ctrl.Call(m, "UpdateSubnetCIDRs", arg0, arg1)
   225  }
   226  
   227  // UpdateSubnetCIDRs indicates an expected call of UpdateSubnetCIDRs.
   228  func (mr *MockVNetScopeMockRecorder) UpdateSubnetCIDRs(arg0, arg1 any) *gomock.Call {
   229  	mr.mock.ctrl.T.Helper()
   230  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSubnetCIDRs", reflect.TypeOf((*MockVNetScope)(nil).UpdateSubnetCIDRs), arg0, arg1)
   231  }
   232  
   233  // VNetSpec mocks base method.
   234  func (m *MockVNetScope) VNetSpec() azure.ASOResourceSpecGetter[*v1api20201101.VirtualNetwork] {
   235  	m.ctrl.T.Helper()
   236  	ret := m.ctrl.Call(m, "VNetSpec")
   237  	ret0, _ := ret[0].(azure.ASOResourceSpecGetter[*v1api20201101.VirtualNetwork])
   238  	return ret0
   239  }
   240  
   241  // VNetSpec indicates an expected call of VNetSpec.
   242  func (mr *MockVNetScopeMockRecorder) VNetSpec() *gomock.Call {
   243  	mr.mock.ctrl.T.Helper()
   244  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VNetSpec", reflect.TypeOf((*MockVNetScope)(nil).VNetSpec))
   245  }
   246  
   247  // Vnet mocks base method.
   248  func (m *MockVNetScope) Vnet() *v1beta1.VnetSpec {
   249  	m.ctrl.T.Helper()
   250  	ret := m.ctrl.Call(m, "Vnet")
   251  	ret0, _ := ret[0].(*v1beta1.VnetSpec)
   252  	return ret0
   253  }
   254  
   255  // Vnet indicates an expected call of Vnet.
   256  func (mr *MockVNetScopeMockRecorder) Vnet() *gomock.Call {
   257  	mr.mock.ctrl.T.Helper()
   258  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Vnet", reflect.TypeOf((*MockVNetScope)(nil).Vnet))
   259  }