sigs.k8s.io/cluster-api-provider-azure@v1.17.0/azure/services/virtualmachines/mock_virtualmachines/client_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: ../client.go
    19  //
    20  // Generated by this command:
    21  //
    22  //	mockgen -destination client_mock.go -package mock_virtualmachines -source ../client.go Client
    23  //
    24  
    25  // Package mock_virtualmachines is a generated GoMock package.
    26  package mock_virtualmachines
    27  
    28  import (
    29  	context "context"
    30  	reflect "reflect"
    31  
    32  	runtime "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime"
    33  	armcompute "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5"
    34  	gomock "go.uber.org/mock/gomock"
    35  	azure "sigs.k8s.io/cluster-api-provider-azure/azure"
    36  )
    37  
    38  // MockClient is a mock of Client interface.
    39  type MockClient struct {
    40  	ctrl     *gomock.Controller
    41  	recorder *MockClientMockRecorder
    42  }
    43  
    44  // MockClientMockRecorder is the mock recorder for MockClient.
    45  type MockClientMockRecorder struct {
    46  	mock *MockClient
    47  }
    48  
    49  // NewMockClient creates a new mock instance.
    50  func NewMockClient(ctrl *gomock.Controller) *MockClient {
    51  	mock := &MockClient{ctrl: ctrl}
    52  	mock.recorder = &MockClientMockRecorder{mock}
    53  	return mock
    54  }
    55  
    56  // EXPECT returns an object that allows the caller to indicate expected use.
    57  func (m *MockClient) EXPECT() *MockClientMockRecorder {
    58  	return m.recorder
    59  }
    60  
    61  // CreateOrUpdateAsync mocks base method.
    62  func (m *MockClient) CreateOrUpdateAsync(ctx context.Context, spec azure.ResourceSpecGetter, resumeToken string, parameters any) (any, *runtime.Poller[armcompute.VirtualMachinesClientCreateOrUpdateResponse], error) {
    63  	m.ctrl.T.Helper()
    64  	ret := m.ctrl.Call(m, "CreateOrUpdateAsync", ctx, spec, resumeToken, parameters)
    65  	ret0, _ := ret[0].(any)
    66  	ret1, _ := ret[1].(*runtime.Poller[armcompute.VirtualMachinesClientCreateOrUpdateResponse])
    67  	ret2, _ := ret[2].(error)
    68  	return ret0, ret1, ret2
    69  }
    70  
    71  // CreateOrUpdateAsync indicates an expected call of CreateOrUpdateAsync.
    72  func (mr *MockClientMockRecorder) CreateOrUpdateAsync(ctx, spec, resumeToken, parameters any) *gomock.Call {
    73  	mr.mock.ctrl.T.Helper()
    74  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateOrUpdateAsync", reflect.TypeOf((*MockClient)(nil).CreateOrUpdateAsync), ctx, spec, resumeToken, parameters)
    75  }
    76  
    77  // DeleteAsync mocks base method.
    78  func (m *MockClient) DeleteAsync(ctx context.Context, spec azure.ResourceSpecGetter, resumeToken string) (*runtime.Poller[armcompute.VirtualMachinesClientDeleteResponse], error) {
    79  	m.ctrl.T.Helper()
    80  	ret := m.ctrl.Call(m, "DeleteAsync", ctx, spec, resumeToken)
    81  	ret0, _ := ret[0].(*runtime.Poller[armcompute.VirtualMachinesClientDeleteResponse])
    82  	ret1, _ := ret[1].(error)
    83  	return ret0, ret1
    84  }
    85  
    86  // DeleteAsync indicates an expected call of DeleteAsync.
    87  func (mr *MockClientMockRecorder) DeleteAsync(ctx, spec, resumeToken any) *gomock.Call {
    88  	mr.mock.ctrl.T.Helper()
    89  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAsync", reflect.TypeOf((*MockClient)(nil).DeleteAsync), ctx, spec, resumeToken)
    90  }
    91  
    92  // Get mocks base method.
    93  func (m *MockClient) Get(arg0 context.Context, arg1 azure.ResourceSpecGetter) (any, error) {
    94  	m.ctrl.T.Helper()
    95  	ret := m.ctrl.Call(m, "Get", arg0, arg1)
    96  	ret0, _ := ret[0].(any)
    97  	ret1, _ := ret[1].(error)
    98  	return ret0, ret1
    99  }
   100  
   101  // Get indicates an expected call of Get.
   102  func (mr *MockClientMockRecorder) Get(arg0, arg1 any) *gomock.Call {
   103  	mr.mock.ctrl.T.Helper()
   104  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockClient)(nil).Get), arg0, arg1)
   105  }