-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathBGPPeerService_mock.go
283 lines (245 loc) · 11.4 KB
/
BGPPeerService_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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
//
// 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/BGPPeerService.go
//
// Generated by this command:
//
// mockgen -destination=./cloudstack/BGPPeerService_mock.go -package=cloudstack -copyright_file=header.txt -source=./cloudstack/BGPPeerService.go
//
// Package cloudstack is a generated GoMock package.
package cloudstack
import (
reflect "reflect"
gomock "go.uber.org/mock/gomock"
)
// MockBGPPeerServiceIface is a mock of BGPPeerServiceIface interface.
type MockBGPPeerServiceIface struct {
ctrl *gomock.Controller
recorder *MockBGPPeerServiceIfaceMockRecorder
isgomock struct{}
}
// MockBGPPeerServiceIfaceMockRecorder is the mock recorder for MockBGPPeerServiceIface.
type MockBGPPeerServiceIfaceMockRecorder struct {
mock *MockBGPPeerServiceIface
}
// NewMockBGPPeerServiceIface creates a new mock instance.
func NewMockBGPPeerServiceIface(ctrl *gomock.Controller) *MockBGPPeerServiceIface {
mock := &MockBGPPeerServiceIface{ctrl: ctrl}
mock.recorder = &MockBGPPeerServiceIfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockBGPPeerServiceIface) EXPECT() *MockBGPPeerServiceIfaceMockRecorder {
return m.recorder
}
// ChangeBgpPeersForVpc mocks base method.
func (m *MockBGPPeerServiceIface) ChangeBgpPeersForVpc(p *ChangeBgpPeersForVpcParams) (*ChangeBgpPeersForVpcResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ChangeBgpPeersForVpc", p)
ret0, _ := ret[0].(*ChangeBgpPeersForVpcResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ChangeBgpPeersForVpc indicates an expected call of ChangeBgpPeersForVpc.
func (mr *MockBGPPeerServiceIfaceMockRecorder) ChangeBgpPeersForVpc(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeBgpPeersForVpc", reflect.TypeOf((*MockBGPPeerServiceIface)(nil).ChangeBgpPeersForVpc), p)
}
// CreateBgpPeer mocks base method.
func (m *MockBGPPeerServiceIface) CreateBgpPeer(p *CreateBgpPeerParams) (*CreateBgpPeerResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateBgpPeer", p)
ret0, _ := ret[0].(*CreateBgpPeerResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CreateBgpPeer indicates an expected call of CreateBgpPeer.
func (mr *MockBGPPeerServiceIfaceMockRecorder) CreateBgpPeer(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateBgpPeer", reflect.TypeOf((*MockBGPPeerServiceIface)(nil).CreateBgpPeer), p)
}
// DedicateBgpPeer mocks base method.
func (m *MockBGPPeerServiceIface) DedicateBgpPeer(p *DedicateBgpPeerParams) (*DedicateBgpPeerResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DedicateBgpPeer", p)
ret0, _ := ret[0].(*DedicateBgpPeerResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DedicateBgpPeer indicates an expected call of DedicateBgpPeer.
func (mr *MockBGPPeerServiceIfaceMockRecorder) DedicateBgpPeer(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DedicateBgpPeer", reflect.TypeOf((*MockBGPPeerServiceIface)(nil).DedicateBgpPeer), p)
}
// DeleteBgpPeer mocks base method.
func (m *MockBGPPeerServiceIface) DeleteBgpPeer(p *DeleteBgpPeerParams) (*DeleteBgpPeerResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteBgpPeer", p)
ret0, _ := ret[0].(*DeleteBgpPeerResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DeleteBgpPeer indicates an expected call of DeleteBgpPeer.
func (mr *MockBGPPeerServiceIfaceMockRecorder) DeleteBgpPeer(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteBgpPeer", reflect.TypeOf((*MockBGPPeerServiceIface)(nil).DeleteBgpPeer), p)
}
// GetBgpPeerByID mocks base method.
func (m *MockBGPPeerServiceIface) GetBgpPeerByID(id string, opts ...OptionFunc) (*BgpPeer, int, error) {
m.ctrl.T.Helper()
varargs := []any{id}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetBgpPeerByID", varargs...)
ret0, _ := ret[0].(*BgpPeer)
ret1, _ := ret[1].(int)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetBgpPeerByID indicates an expected call of GetBgpPeerByID.
func (mr *MockBGPPeerServiceIfaceMockRecorder) GetBgpPeerByID(id any, opts ...any) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]any{id}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetBgpPeerByID", reflect.TypeOf((*MockBGPPeerServiceIface)(nil).GetBgpPeerByID), varargs...)
}
// ListBgpPeers mocks base method.
func (m *MockBGPPeerServiceIface) ListBgpPeers(p *ListBgpPeersParams) (*ListBgpPeersResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListBgpPeers", p)
ret0, _ := ret[0].(*ListBgpPeersResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListBgpPeers indicates an expected call of ListBgpPeers.
func (mr *MockBGPPeerServiceIfaceMockRecorder) ListBgpPeers(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListBgpPeers", reflect.TypeOf((*MockBGPPeerServiceIface)(nil).ListBgpPeers), p)
}
// NewChangeBgpPeersForVpcParams mocks base method.
func (m *MockBGPPeerServiceIface) NewChangeBgpPeersForVpcParams(vpcid string) *ChangeBgpPeersForVpcParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewChangeBgpPeersForVpcParams", vpcid)
ret0, _ := ret[0].(*ChangeBgpPeersForVpcParams)
return ret0
}
// NewChangeBgpPeersForVpcParams indicates an expected call of NewChangeBgpPeersForVpcParams.
func (mr *MockBGPPeerServiceIfaceMockRecorder) NewChangeBgpPeersForVpcParams(vpcid any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewChangeBgpPeersForVpcParams", reflect.TypeOf((*MockBGPPeerServiceIface)(nil).NewChangeBgpPeersForVpcParams), vpcid)
}
// NewCreateBgpPeerParams mocks base method.
func (m *MockBGPPeerServiceIface) NewCreateBgpPeerParams(asnumber int64, zoneid string) *CreateBgpPeerParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewCreateBgpPeerParams", asnumber, zoneid)
ret0, _ := ret[0].(*CreateBgpPeerParams)
return ret0
}
// NewCreateBgpPeerParams indicates an expected call of NewCreateBgpPeerParams.
func (mr *MockBGPPeerServiceIfaceMockRecorder) NewCreateBgpPeerParams(asnumber, zoneid any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewCreateBgpPeerParams", reflect.TypeOf((*MockBGPPeerServiceIface)(nil).NewCreateBgpPeerParams), asnumber, zoneid)
}
// NewDedicateBgpPeerParams mocks base method.
func (m *MockBGPPeerServiceIface) NewDedicateBgpPeerParams(id string) *DedicateBgpPeerParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewDedicateBgpPeerParams", id)
ret0, _ := ret[0].(*DedicateBgpPeerParams)
return ret0
}
// NewDedicateBgpPeerParams indicates an expected call of NewDedicateBgpPeerParams.
func (mr *MockBGPPeerServiceIfaceMockRecorder) NewDedicateBgpPeerParams(id any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewDedicateBgpPeerParams", reflect.TypeOf((*MockBGPPeerServiceIface)(nil).NewDedicateBgpPeerParams), id)
}
// NewDeleteBgpPeerParams mocks base method.
func (m *MockBGPPeerServiceIface) NewDeleteBgpPeerParams(id string) *DeleteBgpPeerParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewDeleteBgpPeerParams", id)
ret0, _ := ret[0].(*DeleteBgpPeerParams)
return ret0
}
// NewDeleteBgpPeerParams indicates an expected call of NewDeleteBgpPeerParams.
func (mr *MockBGPPeerServiceIfaceMockRecorder) NewDeleteBgpPeerParams(id any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewDeleteBgpPeerParams", reflect.TypeOf((*MockBGPPeerServiceIface)(nil).NewDeleteBgpPeerParams), id)
}
// NewListBgpPeersParams mocks base method.
func (m *MockBGPPeerServiceIface) NewListBgpPeersParams() *ListBgpPeersParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewListBgpPeersParams")
ret0, _ := ret[0].(*ListBgpPeersParams)
return ret0
}
// NewListBgpPeersParams indicates an expected call of NewListBgpPeersParams.
func (mr *MockBGPPeerServiceIfaceMockRecorder) NewListBgpPeersParams() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewListBgpPeersParams", reflect.TypeOf((*MockBGPPeerServiceIface)(nil).NewListBgpPeersParams))
}
// NewReleaseBgpPeerParams mocks base method.
func (m *MockBGPPeerServiceIface) NewReleaseBgpPeerParams(id string) *ReleaseBgpPeerParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewReleaseBgpPeerParams", id)
ret0, _ := ret[0].(*ReleaseBgpPeerParams)
return ret0
}
// NewReleaseBgpPeerParams indicates an expected call of NewReleaseBgpPeerParams.
func (mr *MockBGPPeerServiceIfaceMockRecorder) NewReleaseBgpPeerParams(id any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewReleaseBgpPeerParams", reflect.TypeOf((*MockBGPPeerServiceIface)(nil).NewReleaseBgpPeerParams), id)
}
// NewUpdateBgpPeerParams mocks base method.
func (m *MockBGPPeerServiceIface) NewUpdateBgpPeerParams(id string) *UpdateBgpPeerParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewUpdateBgpPeerParams", id)
ret0, _ := ret[0].(*UpdateBgpPeerParams)
return ret0
}
// NewUpdateBgpPeerParams indicates an expected call of NewUpdateBgpPeerParams.
func (mr *MockBGPPeerServiceIfaceMockRecorder) NewUpdateBgpPeerParams(id any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewUpdateBgpPeerParams", reflect.TypeOf((*MockBGPPeerServiceIface)(nil).NewUpdateBgpPeerParams), id)
}
// ReleaseBgpPeer mocks base method.
func (m *MockBGPPeerServiceIface) ReleaseBgpPeer(p *ReleaseBgpPeerParams) (*ReleaseBgpPeerResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ReleaseBgpPeer", p)
ret0, _ := ret[0].(*ReleaseBgpPeerResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ReleaseBgpPeer indicates an expected call of ReleaseBgpPeer.
func (mr *MockBGPPeerServiceIfaceMockRecorder) ReleaseBgpPeer(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReleaseBgpPeer", reflect.TypeOf((*MockBGPPeerServiceIface)(nil).ReleaseBgpPeer), p)
}
// UpdateBgpPeer mocks base method.
func (m *MockBGPPeerServiceIface) UpdateBgpPeer(p *UpdateBgpPeerParams) (*UpdateBgpPeerResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateBgpPeer", p)
ret0, _ := ret[0].(*UpdateBgpPeerResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// UpdateBgpPeer indicates an expected call of UpdateBgpPeer.
func (mr *MockBGPPeerServiceIfaceMockRecorder) UpdateBgpPeer(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateBgpPeer", reflect.TypeOf((*MockBGPPeerServiceIface)(nil).UpdateBgpPeer), p)
}