sigs.k8s.io/cluster-api-provider-azure@v1.14.3/azure/services/vmextensions/mock_vmextensions/vmextensions_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: ../vmextensions.go
    19  //
    20  // Generated by this command:
    21  //
    22  //	mockgen -destination vmextensions_mock.go -package mock_vmextensions -source ../vmextensions.go VMExtensionScope
    23  //
    24  
    25  // Package mock_vmextensions is a generated GoMock package.
    26  package mock_vmextensions
    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  // MockVMExtensionScope is a mock of VMExtensionScope interface.
    40  type MockVMExtensionScope struct {
    41  	ctrl     *gomock.Controller
    42  	recorder *MockVMExtensionScopeMockRecorder
    43  }
    44  
    45  // MockVMExtensionScopeMockRecorder is the mock recorder for MockVMExtensionScope.
    46  type MockVMExtensionScopeMockRecorder struct {
    47  	mock *MockVMExtensionScope
    48  }
    49  
    50  // NewMockVMExtensionScope creates a new mock instance.
    51  func NewMockVMExtensionScope(ctrl *gomock.Controller) *MockVMExtensionScope {
    52  	mock := &MockVMExtensionScope{ctrl: ctrl}
    53  	mock.recorder = &MockVMExtensionScopeMockRecorder{mock}
    54  	return mock
    55  }
    56  
    57  // EXPECT returns an object that allows the caller to indicate expected use.
    58  func (m *MockVMExtensionScope) EXPECT() *MockVMExtensionScopeMockRecorder {
    59  	return m.recorder
    60  }
    61  
    62  // BaseURI mocks base method.
    63  func (m *MockVMExtensionScope) 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 *MockVMExtensionScopeMockRecorder) BaseURI() *gomock.Call {
    72  	mr.mock.ctrl.T.Helper()
    73  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BaseURI", reflect.TypeOf((*MockVMExtensionScope)(nil).BaseURI))
    74  }
    75  
    76  // ClientID mocks base method.
    77  func (m *MockVMExtensionScope) 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 *MockVMExtensionScopeMockRecorder) ClientID() *gomock.Call {
    86  	mr.mock.ctrl.T.Helper()
    87  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClientID", reflect.TypeOf((*MockVMExtensionScope)(nil).ClientID))
    88  }
    89  
    90  // ClientSecret mocks base method.
    91  func (m *MockVMExtensionScope) 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 *MockVMExtensionScopeMockRecorder) ClientSecret() *gomock.Call {
   100  	mr.mock.ctrl.T.Helper()
   101  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ClientSecret", reflect.TypeOf((*MockVMExtensionScope)(nil).ClientSecret))
   102  }
   103  
   104  // CloudEnvironment mocks base method.
   105  func (m *MockVMExtensionScope) 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 *MockVMExtensionScopeMockRecorder) CloudEnvironment() *gomock.Call {
   114  	mr.mock.ctrl.T.Helper()
   115  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CloudEnvironment", reflect.TypeOf((*MockVMExtensionScope)(nil).CloudEnvironment))
   116  }
   117  
   118  // DefaultedAzureCallTimeout mocks base method.
   119  func (m *MockVMExtensionScope) 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 *MockVMExtensionScopeMockRecorder) DefaultedAzureCallTimeout() *gomock.Call {
   128  	mr.mock.ctrl.T.Helper()
   129  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedAzureCallTimeout", reflect.TypeOf((*MockVMExtensionScope)(nil).DefaultedAzureCallTimeout))
   130  }
   131  
   132  // DefaultedAzureServiceReconcileTimeout mocks base method.
   133  func (m *MockVMExtensionScope) 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 *MockVMExtensionScopeMockRecorder) DefaultedAzureServiceReconcileTimeout() *gomock.Call {
   142  	mr.mock.ctrl.T.Helper()
   143  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedAzureServiceReconcileTimeout", reflect.TypeOf((*MockVMExtensionScope)(nil).DefaultedAzureServiceReconcileTimeout))
   144  }
   145  
   146  // DefaultedReconcilerRequeue mocks base method.
   147  func (m *MockVMExtensionScope) 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 *MockVMExtensionScopeMockRecorder) DefaultedReconcilerRequeue() *gomock.Call {
   156  	mr.mock.ctrl.T.Helper()
   157  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DefaultedReconcilerRequeue", reflect.TypeOf((*MockVMExtensionScope)(nil).DefaultedReconcilerRequeue))
   158  }
   159  
   160  // DeleteLongRunningOperationState mocks base method.
   161  func (m *MockVMExtensionScope) 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 *MockVMExtensionScopeMockRecorder) DeleteLongRunningOperationState(arg0, arg1, arg2 any) *gomock.Call {
   168  	mr.mock.ctrl.T.Helper()
   169  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteLongRunningOperationState", reflect.TypeOf((*MockVMExtensionScope)(nil).DeleteLongRunningOperationState), arg0, arg1, arg2)
   170  }
   171  
   172  // GetLongRunningOperationState mocks base method.
   173  func (m *MockVMExtensionScope) 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 *MockVMExtensionScopeMockRecorder) GetLongRunningOperationState(arg0, arg1, arg2 any) *gomock.Call {
   182  	mr.mock.ctrl.T.Helper()
   183  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLongRunningOperationState", reflect.TypeOf((*MockVMExtensionScope)(nil).GetLongRunningOperationState), arg0, arg1, arg2)
   184  }
   185  
   186  // HashKey mocks base method.
   187  func (m *MockVMExtensionScope) 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 *MockVMExtensionScopeMockRecorder) HashKey() *gomock.Call {
   196  	mr.mock.ctrl.T.Helper()
   197  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HashKey", reflect.TypeOf((*MockVMExtensionScope)(nil).HashKey))
   198  }
   199  
   200  // SetLongRunningOperationState mocks base method.
   201  func (m *MockVMExtensionScope) SetLongRunningOperationState(arg0 *v1beta1.Future) {
   202  	m.ctrl.T.Helper()
   203  	m.ctrl.Call(m, "SetLongRunningOperationState", arg0)
   204  }
   205  
   206  // SetLongRunningOperationState indicates an expected call of SetLongRunningOperationState.
   207  func (mr *MockVMExtensionScopeMockRecorder) SetLongRunningOperationState(arg0 any) *gomock.Call {
   208  	mr.mock.ctrl.T.Helper()
   209  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLongRunningOperationState", reflect.TypeOf((*MockVMExtensionScope)(nil).SetLongRunningOperationState), arg0)
   210  }
   211  
   212  // SubscriptionID mocks base method.
   213  func (m *MockVMExtensionScope) SubscriptionID() string {
   214  	m.ctrl.T.Helper()
   215  	ret := m.ctrl.Call(m, "SubscriptionID")
   216  	ret0, _ := ret[0].(string)
   217  	return ret0
   218  }
   219  
   220  // SubscriptionID indicates an expected call of SubscriptionID.
   221  func (mr *MockVMExtensionScopeMockRecorder) SubscriptionID() *gomock.Call {
   222  	mr.mock.ctrl.T.Helper()
   223  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SubscriptionID", reflect.TypeOf((*MockVMExtensionScope)(nil).SubscriptionID))
   224  }
   225  
   226  // TenantID mocks base method.
   227  func (m *MockVMExtensionScope) TenantID() string {
   228  	m.ctrl.T.Helper()
   229  	ret := m.ctrl.Call(m, "TenantID")
   230  	ret0, _ := ret[0].(string)
   231  	return ret0
   232  }
   233  
   234  // TenantID indicates an expected call of TenantID.
   235  func (mr *MockVMExtensionScopeMockRecorder) TenantID() *gomock.Call {
   236  	mr.mock.ctrl.T.Helper()
   237  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TenantID", reflect.TypeOf((*MockVMExtensionScope)(nil).TenantID))
   238  }
   239  
   240  // Token mocks base method.
   241  func (m *MockVMExtensionScope) Token() azcore.TokenCredential {
   242  	m.ctrl.T.Helper()
   243  	ret := m.ctrl.Call(m, "Token")
   244  	ret0, _ := ret[0].(azcore.TokenCredential)
   245  	return ret0
   246  }
   247  
   248  // Token indicates an expected call of Token.
   249  func (mr *MockVMExtensionScopeMockRecorder) Token() *gomock.Call {
   250  	mr.mock.ctrl.T.Helper()
   251  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Token", reflect.TypeOf((*MockVMExtensionScope)(nil).Token))
   252  }
   253  
   254  // UpdateDeleteStatus mocks base method.
   255  func (m *MockVMExtensionScope) UpdateDeleteStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) {
   256  	m.ctrl.T.Helper()
   257  	m.ctrl.Call(m, "UpdateDeleteStatus", arg0, arg1, arg2)
   258  }
   259  
   260  // UpdateDeleteStatus indicates an expected call of UpdateDeleteStatus.
   261  func (mr *MockVMExtensionScopeMockRecorder) UpdateDeleteStatus(arg0, arg1, arg2 any) *gomock.Call {
   262  	mr.mock.ctrl.T.Helper()
   263  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateDeleteStatus", reflect.TypeOf((*MockVMExtensionScope)(nil).UpdateDeleteStatus), arg0, arg1, arg2)
   264  }
   265  
   266  // UpdatePatchStatus mocks base method.
   267  func (m *MockVMExtensionScope) UpdatePatchStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) {
   268  	m.ctrl.T.Helper()
   269  	m.ctrl.Call(m, "UpdatePatchStatus", arg0, arg1, arg2)
   270  }
   271  
   272  // UpdatePatchStatus indicates an expected call of UpdatePatchStatus.
   273  func (mr *MockVMExtensionScopeMockRecorder) UpdatePatchStatus(arg0, arg1, arg2 any) *gomock.Call {
   274  	mr.mock.ctrl.T.Helper()
   275  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePatchStatus", reflect.TypeOf((*MockVMExtensionScope)(nil).UpdatePatchStatus), arg0, arg1, arg2)
   276  }
   277  
   278  // UpdatePutStatus mocks base method.
   279  func (m *MockVMExtensionScope) UpdatePutStatus(arg0 v1beta10.ConditionType, arg1 string, arg2 error) {
   280  	m.ctrl.T.Helper()
   281  	m.ctrl.Call(m, "UpdatePutStatus", arg0, arg1, arg2)
   282  }
   283  
   284  // UpdatePutStatus indicates an expected call of UpdatePutStatus.
   285  func (mr *MockVMExtensionScopeMockRecorder) UpdatePutStatus(arg0, arg1, arg2 any) *gomock.Call {
   286  	mr.mock.ctrl.T.Helper()
   287  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePutStatus", reflect.TypeOf((*MockVMExtensionScope)(nil).UpdatePutStatus), arg0, arg1, arg2)
   288  }
   289  
   290  // VMExtensionSpecs mocks base method.
   291  func (m *MockVMExtensionScope) VMExtensionSpecs() []azure.ResourceSpecGetter {
   292  	m.ctrl.T.Helper()
   293  	ret := m.ctrl.Call(m, "VMExtensionSpecs")
   294  	ret0, _ := ret[0].([]azure.ResourceSpecGetter)
   295  	return ret0
   296  }
   297  
   298  // VMExtensionSpecs indicates an expected call of VMExtensionSpecs.
   299  func (mr *MockVMExtensionScopeMockRecorder) VMExtensionSpecs() *gomock.Call {
   300  	mr.mock.ctrl.T.Helper()
   301  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "VMExtensionSpecs", reflect.TypeOf((*MockVMExtensionScope)(nil).VMExtensionSpecs))
   302  }