-
Notifications
You must be signed in to change notification settings - Fork 25
/
NicService_mock.go
169 lines (145 loc) · 6.48 KB
/
NicService_mock.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
//
// Code generated by MockGen. DO NOT EDIT.
// Source: ./cloudstack/NicService.go
// Package cloudstack is a generated GoMock package.
package cloudstack
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockNicServiceIface is a mock of NicServiceIface interface.
type MockNicServiceIface struct {
ctrl *gomock.Controller
recorder *MockNicServiceIfaceMockRecorder
}
// MockNicServiceIfaceMockRecorder is the mock recorder for MockNicServiceIface.
type MockNicServiceIfaceMockRecorder struct {
mock *MockNicServiceIface
}
// NewMockNicServiceIface creates a new mock instance.
func NewMockNicServiceIface(ctrl *gomock.Controller) *MockNicServiceIface {
mock := &MockNicServiceIface{ctrl: ctrl}
mock.recorder = &MockNicServiceIfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockNicServiceIface) EXPECT() *MockNicServiceIfaceMockRecorder {
return m.recorder
}
// AddIpToNic mocks base method.
func (m *MockNicServiceIface) AddIpToNic(p *AddIpToNicParams) (*AddIpToNicResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "AddIpToNic", p)
ret0, _ := ret[0].(*AddIpToNicResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// AddIpToNic indicates an expected call of AddIpToNic.
func (mr *MockNicServiceIfaceMockRecorder) AddIpToNic(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddIpToNic", reflect.TypeOf((*MockNicServiceIface)(nil).AddIpToNic), p)
}
// ListNics mocks base method.
func (m *MockNicServiceIface) ListNics(p *ListNicsParams) (*ListNicsResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListNics", p)
ret0, _ := ret[0].(*ListNicsResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListNics indicates an expected call of ListNics.
func (mr *MockNicServiceIfaceMockRecorder) ListNics(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListNics", reflect.TypeOf((*MockNicServiceIface)(nil).ListNics), p)
}
// NewAddIpToNicParams mocks base method.
func (m *MockNicServiceIface) NewAddIpToNicParams(nicid string) *AddIpToNicParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewAddIpToNicParams", nicid)
ret0, _ := ret[0].(*AddIpToNicParams)
return ret0
}
// NewAddIpToNicParams indicates an expected call of NewAddIpToNicParams.
func (mr *MockNicServiceIfaceMockRecorder) NewAddIpToNicParams(nicid interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewAddIpToNicParams", reflect.TypeOf((*MockNicServiceIface)(nil).NewAddIpToNicParams), nicid)
}
// NewListNicsParams mocks base method.
func (m *MockNicServiceIface) NewListNicsParams(virtualmachineid string) *ListNicsParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewListNicsParams", virtualmachineid)
ret0, _ := ret[0].(*ListNicsParams)
return ret0
}
// NewListNicsParams indicates an expected call of NewListNicsParams.
func (mr *MockNicServiceIfaceMockRecorder) NewListNicsParams(virtualmachineid interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewListNicsParams", reflect.TypeOf((*MockNicServiceIface)(nil).NewListNicsParams), virtualmachineid)
}
// NewRemoveIpFromNicParams mocks base method.
func (m *MockNicServiceIface) NewRemoveIpFromNicParams(id string) *RemoveIpFromNicParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewRemoveIpFromNicParams", id)
ret0, _ := ret[0].(*RemoveIpFromNicParams)
return ret0
}
// NewRemoveIpFromNicParams indicates an expected call of NewRemoveIpFromNicParams.
func (mr *MockNicServiceIfaceMockRecorder) NewRemoveIpFromNicParams(id interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewRemoveIpFromNicParams", reflect.TypeOf((*MockNicServiceIface)(nil).NewRemoveIpFromNicParams), id)
}
// NewUpdateVmNicIpParams mocks base method.
func (m *MockNicServiceIface) NewUpdateVmNicIpParams(nicid string) *UpdateVmNicIpParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewUpdateVmNicIpParams", nicid)
ret0, _ := ret[0].(*UpdateVmNicIpParams)
return ret0
}
// NewUpdateVmNicIpParams indicates an expected call of NewUpdateVmNicIpParams.
func (mr *MockNicServiceIfaceMockRecorder) NewUpdateVmNicIpParams(nicid interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewUpdateVmNicIpParams", reflect.TypeOf((*MockNicServiceIface)(nil).NewUpdateVmNicIpParams), nicid)
}
// RemoveIpFromNic mocks base method.
func (m *MockNicServiceIface) RemoveIpFromNic(p *RemoveIpFromNicParams) (*RemoveIpFromNicResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "RemoveIpFromNic", p)
ret0, _ := ret[0].(*RemoveIpFromNicResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// RemoveIpFromNic indicates an expected call of RemoveIpFromNic.
func (mr *MockNicServiceIfaceMockRecorder) RemoveIpFromNic(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveIpFromNic", reflect.TypeOf((*MockNicServiceIface)(nil).RemoveIpFromNic), p)
}
// UpdateVmNicIp mocks base method.
func (m *MockNicServiceIface) UpdateVmNicIp(p *UpdateVmNicIpParams) (*UpdateVmNicIpResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateVmNicIp", p)
ret0, _ := ret[0].(*UpdateVmNicIpResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// UpdateVmNicIp indicates an expected call of UpdateVmNicIp.
func (mr *MockNicServiceIfaceMockRecorder) UpdateVmNicIp(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateVmNicIp", reflect.TypeOf((*MockNicServiceIface)(nil).UpdateVmNicIp), p)
}