sigs.k8s.io/cluster-api-provider-azure@v1.14.3/azure/services/subnets/mock_subnets/subnets_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: ../subnets.go
    19  //
    20  // Generated by this command:
    21  //
    22  //	mockgen -destination subnets_mock.go -package mock_subnets -source ../subnets.go SubnetScope
    23  //
    24  
    25  // Package mock_subnets is a generated GoMock package.
    26  package mock_subnets
    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  // MockSubnetScope is a mock of SubnetScope interface.
    41  type MockSubnetScope struct {
    42  	ctrl     *gomock.Controller
    43  	recorder *MockSubnetScopeMockRecorder
    44  }
    45  
    46  // MockSubnetScopeMockRecorder is the mock recorder for MockSubnetScope.
    47  type MockSubnetScopeMockRecorder struct {
    48  	mock *MockSubnetScope
    49  }
    50  
    51  // NewMockSubnetScope creates a new mock instance.
    52  func NewMockSubnetScope(ctrl *gomock.Controller) *MockSubnetScope {
    53  	mock := &MockSubnetScope{ctrl: ctrl}
    54  	mock.recorder = &MockSubnetScopeMockRecorder{mock}
    55  	return mock
    56  }
    57  
    58  // EXPECT returns an object that allows the caller to indicate expected use.
    59  func (m *MockSubnetScope) EXPECT() *MockSubnetScopeMockRecorder {
    60  	return m.recorder
    61  }
    62  
    63  // ASOOwner mocks base method.
    64  func (m *MockSubnetScope) 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 *MockSubnetScopeMockRecorder) ASOOwner() *gomock.Call {
    73  	mr.mock.ctrl.T.Helper()
    74  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ASOOwner", reflect.TypeOf((*MockSubnetScope)(nil).ASOOwner))
    75  }
    76  
    77  // ClusterName mocks base method.
    78  func (m *MockSubnetScope) 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 *MockSubnetScopeMockRecorder) ClusterName() *gomock.Call {
    87  	mr.mock.ctrl.T.Helper()
    88  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClusterName", reflect.TypeOf((*MockSubnetScope)(nil).ClusterName))
    89  }
    90  
    91  // DefaultedAzureCallTimeout mocks base method.
    92  func (m *MockSubnetScope) 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 *MockSubnetScopeMockRecorder) DefaultedAzureCallTimeout() *gomock.Call {
   101  	mr.mock.ctrl.T.Helper()
   102  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedAzureCallTimeout", reflect.TypeOf((*MockSubnetScope)(nil).DefaultedAzureCallTimeout))
   103  }
   104  
   105  // DefaultedAzureServiceReconcileTimeout mocks base method.
   106  func (m *MockSubnetScope) 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 *MockSubnetScopeMockRecorder) DefaultedAzureServiceReconcileTimeout() *gomock.Call {
   115  	mr.mock.ctrl.T.Helper()
   116  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedAzureServiceReconcileTimeout", reflect.TypeOf((*MockSubnetScope)(nil).DefaultedAzureServiceReconcileTimeout))
   117  }
   118  
   119  // DefaultedReconcilerRequeue mocks base method.
   120  func (m *MockSubnetScope) 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 *MockSubnetScopeMockRecorder) DefaultedReconcilerRequeue() *gomock.Call {
   129  	mr.mock.ctrl.T.Helper()
   130  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedReconcilerRequeue", reflect.TypeOf((*MockSubnetScope)(nil).DefaultedReconcilerRequeue))
   131  }
   132  
   133  // DeleteLongRunningOperationState mocks base method.
   134  func (m *MockSubnetScope) 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 *MockSubnetScopeMockRecorder) DeleteLongRunningOperationState(arg0, arg1, arg2 any) *gomock.Call {
   141  	mr.mock.ctrl.T.Helper()
   142  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLongRunningOperationState", reflect.TypeOf((*MockSubnetScope)(nil).DeleteLongRunningOperationState), arg0, arg1, arg2)
   143  }
   144  
   145  // GetClient mocks base method.
   146  func (m *MockSubnetScope) 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 *MockSubnetScopeMockRecorder) GetClient() *gomock.Call {
   155  	mr.mock.ctrl.T.Helper()
   156  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetClient", reflect.TypeOf((*MockSubnetScope)(nil).GetClient))
   157  }
   158  
   159  // GetLongRunningOperationState mocks base method.
   160  func (m *MockSubnetScope) 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 *MockSubnetScopeMockRecorder) GetLongRunningOperationState(arg0, arg1, arg2 any) *gomock.Call {
   169  	mr.mock.ctrl.T.Helper()
   170  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLongRunningOperationState", reflect.TypeOf((*MockSubnetScope)(nil).GetLongRunningOperationState), arg0, arg1, arg2)
   171  }
   172  
   173  // SetLongRunningOperationState mocks base method.
   174  func (m *MockSubnetScope) 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 *MockSubnetScopeMockRecorder) SetLongRunningOperationState(arg0 any) *gomock.Call {
   181  	mr.mock.ctrl.T.Helper()
   182  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLongRunningOperationState", reflect.TypeOf((*MockSubnetScope)(nil).SetLongRunningOperationState), arg0)
   183  }
   184  
   185  // SubnetSpecs mocks base method.
   186  func (m *MockSubnetScope) SubnetSpecs() []azure.ASOResourceSpecGetter[*v1api20201101.VirtualNetworksSubnet] {
   187  	m.ctrl.T.Helper()
   188  	ret := m.ctrl.Call(m, "SubnetSpecs")
   189  	ret0, _ := ret[0].([]azure.ASOResourceSpecGetter[*v1api20201101.VirtualNetworksSubnet])
   190  	return ret0
   191  }
   192  
   193  // SubnetSpecs indicates an expected call of SubnetSpecs.
   194  func (mr *MockSubnetScopeMockRecorder) SubnetSpecs() *gomock.Call {
   195  	mr.mock.ctrl.T.Helper()
   196  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubnetSpecs", reflect.TypeOf((*MockSubnetScope)(nil).SubnetSpecs))
   197  }
   198  
   199  // UpdateDeleteStatus mocks base method.
   200  func (m *MockSubnetScope) 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 *MockSubnetScopeMockRecorder) UpdateDeleteStatus(arg0, arg1, arg2 any) *gomock.Call {
   207  	mr.mock.ctrl.T.Helper()
   208  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDeleteStatus", reflect.TypeOf((*MockSubnetScope)(nil).UpdateDeleteStatus), arg0, arg1, arg2)
   209  }
   210  
   211  // UpdatePatchStatus mocks base method.
   212  func (m *MockSubnetScope) 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 *MockSubnetScopeMockRecorder) UpdatePatchStatus(arg0, arg1, arg2 any) *gomock.Call {
   219  	mr.mock.ctrl.T.Helper()
   220  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePatchStatus", reflect.TypeOf((*MockSubnetScope)(nil).UpdatePatchStatus), arg0, arg1, arg2)
   221  }
   222  
   223  // UpdatePutStatus mocks base method.
   224  func (m *MockSubnetScope) 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 *MockSubnetScopeMockRecorder) UpdatePutStatus(arg0, arg1, arg2 any) *gomock.Call {
   231  	mr.mock.ctrl.T.Helper()
   232  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePutStatus", reflect.TypeOf((*MockSubnetScope)(nil).UpdatePutStatus), arg0, arg1, arg2)
   233  }
   234  
   235  // UpdateSubnetCIDRs mocks base method.
   236  func (m *MockSubnetScope) UpdateSubnetCIDRs(arg0 string, arg1 []string) {
   237  	m.ctrl.T.Helper()
   238  	m.ctrl.Call(m, "UpdateSubnetCIDRs", arg0, arg1)
   239  }
   240  
   241  // UpdateSubnetCIDRs indicates an expected call of UpdateSubnetCIDRs.
   242  func (mr *MockSubnetScopeMockRecorder) UpdateSubnetCIDRs(arg0, arg1 any) *gomock.Call {
   243  	mr.mock.ctrl.T.Helper()
   244  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSubnetCIDRs", reflect.TypeOf((*MockSubnetScope)(nil).UpdateSubnetCIDRs), arg0, arg1)
   245  }
   246  
   247  // UpdateSubnetID mocks base method.
   248  func (m *MockSubnetScope) UpdateSubnetID(arg0, arg1 string) {
   249  	m.ctrl.T.Helper()
   250  	m.ctrl.Call(m, "UpdateSubnetID", arg0, arg1)
   251  }
   252  
   253  // UpdateSubnetID indicates an expected call of UpdateSubnetID.
   254  func (mr *MockSubnetScopeMockRecorder) UpdateSubnetID(arg0, arg1 any) *gomock.Call {
   255  	mr.mock.ctrl.T.Helper()
   256  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateSubnetID", reflect.TypeOf((*MockSubnetScope)(nil).UpdateSubnetID), arg0, arg1)
   257  }