sigs.k8s.io/cluster-api-provider-azure@v1.14.3/azure/services/securitygroups/mock_securitygroups/securitygroups_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: ../securitygroups.go
    19  //
    20  // Generated by this command:
    21  //
    22  //	mockgen -destination securitygroups_mock.go -package mock_securitygroups -source ../securitygroups.go NSGScope
    23  //
    24  
    25  // Package mock_securitygroups is a generated GoMock package.
    26  package mock_securitygroups
    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  // MockNSGScope is a mock of NSGScope interface.
    40  type MockNSGScope struct {
    41  	ctrl     *gomock.Controller
    42  	recorder *MockNSGScopeMockRecorder
    43  }
    44  
    45  // MockNSGScopeMockRecorder is the mock recorder for MockNSGScope.
    46  type MockNSGScopeMockRecorder struct {
    47  	mock *MockNSGScope
    48  }
    49  
    50  // NewMockNSGScope creates a new mock instance.
    51  func NewMockNSGScope(ctrl *gomock.Controller) *MockNSGScope {
    52  	mock := &MockNSGScope{ctrl: ctrl}
    53  	mock.recorder = &MockNSGScopeMockRecorder{mock}
    54  	return mock
    55  }
    56  
    57  // EXPECT returns an object that allows the caller to indicate expected use.
    58  func (m *MockNSGScope) EXPECT() *MockNSGScopeMockRecorder {
    59  	return m.recorder
    60  }
    61  
    62  // BaseURI mocks base method.
    63  func (m *MockNSGScope) 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 *MockNSGScopeMockRecorder) BaseURI() *gomock.Call {
    72  	mr.mock.ctrl.T.Helper()
    73  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BaseURI", reflect.TypeOf((*MockNSGScope)(nil).BaseURI))
    74  }
    75  
    76  // ClientID mocks base method.
    77  func (m *MockNSGScope) 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 *MockNSGScopeMockRecorder) ClientID() *gomock.Call {
    86  	mr.mock.ctrl.T.Helper()
    87  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClientID", reflect.TypeOf((*MockNSGScope)(nil).ClientID))
    88  }
    89  
    90  // ClientSecret mocks base method.
    91  func (m *MockNSGScope) 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 *MockNSGScopeMockRecorder) ClientSecret() *gomock.Call {
   100  	mr.mock.ctrl.T.Helper()
   101  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClientSecret", reflect.TypeOf((*MockNSGScope)(nil).ClientSecret))
   102  }
   103  
   104  // CloudEnvironment mocks base method.
   105  func (m *MockNSGScope) 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 *MockNSGScopeMockRecorder) CloudEnvironment() *gomock.Call {
   114  	mr.mock.ctrl.T.Helper()
   115  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloudEnvironment", reflect.TypeOf((*MockNSGScope)(nil).CloudEnvironment))
   116  }
   117  
   118  // DefaultedAzureCallTimeout mocks base method.
   119  func (m *MockNSGScope) 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 *MockNSGScopeMockRecorder) DefaultedAzureCallTimeout() *gomock.Call {
   128  	mr.mock.ctrl.T.Helper()
   129  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedAzureCallTimeout", reflect.TypeOf((*MockNSGScope)(nil).DefaultedAzureCallTimeout))
   130  }
   131  
   132  // DefaultedAzureServiceReconcileTimeout mocks base method.
   133  func (m *MockNSGScope) 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 *MockNSGScopeMockRecorder) DefaultedAzureServiceReconcileTimeout() *gomock.Call {
   142  	mr.mock.ctrl.T.Helper()
   143  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedAzureServiceReconcileTimeout", reflect.TypeOf((*MockNSGScope)(nil).DefaultedAzureServiceReconcileTimeout))
   144  }
   145  
   146  // DefaultedReconcilerRequeue mocks base method.
   147  func (m *MockNSGScope) 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 *MockNSGScopeMockRecorder) DefaultedReconcilerRequeue() *gomock.Call {
   156  	mr.mock.ctrl.T.Helper()
   157  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedReconcilerRequeue", reflect.TypeOf((*MockNSGScope)(nil).DefaultedReconcilerRequeue))
   158  }
   159  
   160  // DeleteLongRunningOperationState mocks base method.
   161  func (m *MockNSGScope) 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 *MockNSGScopeMockRecorder) DeleteLongRunningOperationState(arg0, arg1, arg2 any) *gomock.Call {
   168  	mr.mock.ctrl.T.Helper()
   169  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLongRunningOperationState", reflect.TypeOf((*MockNSGScope)(nil).DeleteLongRunningOperationState), arg0, arg1, arg2)
   170  }
   171  
   172  // GetLongRunningOperationState mocks base method.
   173  func (m *MockNSGScope) 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 *MockNSGScopeMockRecorder) GetLongRunningOperationState(arg0, arg1, arg2 any) *gomock.Call {
   182  	mr.mock.ctrl.T.Helper()
   183  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLongRunningOperationState", reflect.TypeOf((*MockNSGScope)(nil).GetLongRunningOperationState), arg0, arg1, arg2)
   184  }
   185  
   186  // HashKey mocks base method.
   187  func (m *MockNSGScope) 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 *MockNSGScopeMockRecorder) HashKey() *gomock.Call {
   196  	mr.mock.ctrl.T.Helper()
   197  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HashKey", reflect.TypeOf((*MockNSGScope)(nil).HashKey))
   198  }
   199  
   200  // IsVnetManaged mocks base method.
   201  func (m *MockNSGScope) 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 *MockNSGScopeMockRecorder) IsVnetManaged() *gomock.Call {
   210  	mr.mock.ctrl.T.Helper()
   211  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsVnetManaged", reflect.TypeOf((*MockNSGScope)(nil).IsVnetManaged))
   212  }
   213  
   214  // NSGSpecs mocks base method.
   215  func (m *MockNSGScope) NSGSpecs() []azure.ResourceSpecGetter {
   216  	m.ctrl.T.Helper()
   217  	ret := m.ctrl.Call(m, "NSGSpecs")
   218  	ret0, _ := ret[0].([]azure.ResourceSpecGetter)
   219  	return ret0
   220  }
   221  
   222  // NSGSpecs indicates an expected call of NSGSpecs.
   223  func (mr *MockNSGScopeMockRecorder) NSGSpecs() *gomock.Call {
   224  	mr.mock.ctrl.T.Helper()
   225  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NSGSpecs", reflect.TypeOf((*MockNSGScope)(nil).NSGSpecs))
   226  }
   227  
   228  // SetLongRunningOperationState mocks base method.
   229  func (m *MockNSGScope) 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 *MockNSGScopeMockRecorder) SetLongRunningOperationState(arg0 any) *gomock.Call {
   236  	mr.mock.ctrl.T.Helper()
   237  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLongRunningOperationState", reflect.TypeOf((*MockNSGScope)(nil).SetLongRunningOperationState), arg0)
   238  }
   239  
   240  // SubscriptionID mocks base method.
   241  func (m *MockNSGScope) 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 *MockNSGScopeMockRecorder) SubscriptionID() *gomock.Call {
   250  	mr.mock.ctrl.T.Helper()
   251  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscriptionID", reflect.TypeOf((*MockNSGScope)(nil).SubscriptionID))
   252  }
   253  
   254  // TenantID mocks base method.
   255  func (m *MockNSGScope) 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 *MockNSGScopeMockRecorder) TenantID() *gomock.Call {
   264  	mr.mock.ctrl.T.Helper()
   265  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TenantID", reflect.TypeOf((*MockNSGScope)(nil).TenantID))
   266  }
   267  
   268  // Token mocks base method.
   269  func (m *MockNSGScope) 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 *MockNSGScopeMockRecorder) Token() *gomock.Call {
   278  	mr.mock.ctrl.T.Helper()
   279  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Token", reflect.TypeOf((*MockNSGScope)(nil).Token))
   280  }
   281  
   282  // UpdateAnnotationJSON mocks base method.
   283  func (m *MockNSGScope) UpdateAnnotationJSON(arg0 string, arg1 map[string]any) error {
   284  	m.ctrl.T.Helper()
   285  	ret := m.ctrl.Call(m, "UpdateAnnotationJSON", arg0, arg1)
   286  	ret0, _ := ret[0].(error)
   287  	return ret0
   288  }
   289  
   290  // UpdateAnnotationJSON indicates an expected call of UpdateAnnotationJSON.
   291  func (mr *MockNSGScopeMockRecorder) UpdateAnnotationJSON(arg0, arg1 any) *gomock.Call {
   292  	mr.mock.ctrl.T.Helper()
   293  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAnnotationJSON", reflect.TypeOf((*MockNSGScope)(nil).UpdateAnnotationJSON), arg0, arg1)
   294  }
   295  
   296  // UpdateDeleteStatus mocks base method.
   297  func (m *MockNSGScope) UpdateDeleteStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) {
   298  	m.ctrl.T.Helper()
   299  	m.ctrl.Call(m, "UpdateDeleteStatus", arg0, arg1, arg2)
   300  }
   301  
   302  // UpdateDeleteStatus indicates an expected call of UpdateDeleteStatus.
   303  func (mr *MockNSGScopeMockRecorder) UpdateDeleteStatus(arg0, arg1, arg2 any) *gomock.Call {
   304  	mr.mock.ctrl.T.Helper()
   305  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDeleteStatus", reflect.TypeOf((*MockNSGScope)(nil).UpdateDeleteStatus), arg0, arg1, arg2)
   306  }
   307  
   308  // UpdatePatchStatus mocks base method.
   309  func (m *MockNSGScope) UpdatePatchStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) {
   310  	m.ctrl.T.Helper()
   311  	m.ctrl.Call(m, "UpdatePatchStatus", arg0, arg1, arg2)
   312  }
   313  
   314  // UpdatePatchStatus indicates an expected call of UpdatePatchStatus.
   315  func (mr *MockNSGScopeMockRecorder) UpdatePatchStatus(arg0, arg1, arg2 any) *gomock.Call {
   316  	mr.mock.ctrl.T.Helper()
   317  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePatchStatus", reflect.TypeOf((*MockNSGScope)(nil).UpdatePatchStatus), arg0, arg1, arg2)
   318  }
   319  
   320  // UpdatePutStatus mocks base method.
   321  func (m *MockNSGScope) UpdatePutStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) {
   322  	m.ctrl.T.Helper()
   323  	m.ctrl.Call(m, "UpdatePutStatus", arg0, arg1, arg2)
   324  }
   325  
   326  // UpdatePutStatus indicates an expected call of UpdatePutStatus.
   327  func (mr *MockNSGScopeMockRecorder) UpdatePutStatus(arg0, arg1, arg2 any) *gomock.Call {
   328  	mr.mock.ctrl.T.Helper()
   329  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePutStatus", reflect.TypeOf((*MockNSGScope)(nil).UpdatePutStatus), arg0, arg1, arg2)
   330  }