-
Notifications
You must be signed in to change notification settings - Fork 25
/
AccountService_mock.go
427 lines (371 loc) · 18.1 KB
/
AccountService_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
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
//
// 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/AccountService.go
// Package cloudstack is a generated GoMock package.
package cloudstack
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockAccountServiceIface is a mock of AccountServiceIface interface.
type MockAccountServiceIface struct {
ctrl *gomock.Controller
recorder *MockAccountServiceIfaceMockRecorder
}
// MockAccountServiceIfaceMockRecorder is the mock recorder for MockAccountServiceIface.
type MockAccountServiceIfaceMockRecorder struct {
mock *MockAccountServiceIface
}
// NewMockAccountServiceIface creates a new mock instance.
func NewMockAccountServiceIface(ctrl *gomock.Controller) *MockAccountServiceIface {
mock := &MockAccountServiceIface{ctrl: ctrl}
mock.recorder = &MockAccountServiceIfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockAccountServiceIface) EXPECT() *MockAccountServiceIfaceMockRecorder {
return m.recorder
}
// CreateAccount mocks base method.
func (m *MockAccountServiceIface) CreateAccount(p *CreateAccountParams) (*CreateAccountResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreateAccount", p)
ret0, _ := ret[0].(*CreateAccountResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CreateAccount indicates an expected call of CreateAccount.
func (mr *MockAccountServiceIfaceMockRecorder) CreateAccount(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccount", reflect.TypeOf((*MockAccountServiceIface)(nil).CreateAccount), p)
}
// DeleteAccount mocks base method.
func (m *MockAccountServiceIface) DeleteAccount(p *DeleteAccountParams) (*DeleteAccountResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeleteAccount", p)
ret0, _ := ret[0].(*DeleteAccountResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DeleteAccount indicates an expected call of DeleteAccount.
func (mr *MockAccountServiceIfaceMockRecorder) DeleteAccount(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccount", reflect.TypeOf((*MockAccountServiceIface)(nil).DeleteAccount), p)
}
// DisableAccount mocks base method.
func (m *MockAccountServiceIface) DisableAccount(p *DisableAccountParams) (*DisableAccountResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DisableAccount", p)
ret0, _ := ret[0].(*DisableAccountResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DisableAccount indicates an expected call of DisableAccount.
func (mr *MockAccountServiceIfaceMockRecorder) DisableAccount(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableAccount", reflect.TypeOf((*MockAccountServiceIface)(nil).DisableAccount), p)
}
// EnableAccount mocks base method.
func (m *MockAccountServiceIface) EnableAccount(p *EnableAccountParams) (*EnableAccountResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "EnableAccount", p)
ret0, _ := ret[0].(*EnableAccountResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// EnableAccount indicates an expected call of EnableAccount.
func (mr *MockAccountServiceIfaceMockRecorder) EnableAccount(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnableAccount", reflect.TypeOf((*MockAccountServiceIface)(nil).EnableAccount), p)
}
// GetAccountByID mocks base method.
func (m *MockAccountServiceIface) GetAccountByID(id string, opts ...OptionFunc) (*Account, int, error) {
m.ctrl.T.Helper()
varargs := []interface{}{id}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetAccountByID", varargs...)
ret0, _ := ret[0].(*Account)
ret1, _ := ret[1].(int)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetAccountByID indicates an expected call of GetAccountByID.
func (mr *MockAccountServiceIfaceMockRecorder) GetAccountByID(id interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{id}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountByID", reflect.TypeOf((*MockAccountServiceIface)(nil).GetAccountByID), varargs...)
}
// GetAccountByName mocks base method.
func (m *MockAccountServiceIface) GetAccountByName(name string, opts ...OptionFunc) (*Account, int, error) {
m.ctrl.T.Helper()
varargs := []interface{}{name}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetAccountByName", varargs...)
ret0, _ := ret[0].(*Account)
ret1, _ := ret[1].(int)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetAccountByName indicates an expected call of GetAccountByName.
func (mr *MockAccountServiceIfaceMockRecorder) GetAccountByName(name interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{name}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountByName", reflect.TypeOf((*MockAccountServiceIface)(nil).GetAccountByName), varargs...)
}
// GetAccountID mocks base method.
func (m *MockAccountServiceIface) GetAccountID(name string, opts ...OptionFunc) (string, int, error) {
m.ctrl.T.Helper()
varargs := []interface{}{name}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetAccountID", varargs...)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(int)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetAccountID indicates an expected call of GetAccountID.
func (mr *MockAccountServiceIfaceMockRecorder) GetAccountID(name interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{name}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccountID", reflect.TypeOf((*MockAccountServiceIface)(nil).GetAccountID), varargs...)
}
// GetProjectAccountID mocks base method.
func (m *MockAccountServiceIface) GetProjectAccountID(keyword, projectid string, opts ...OptionFunc) (string, int, error) {
m.ctrl.T.Helper()
varargs := []interface{}{keyword, projectid}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetProjectAccountID", varargs...)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(int)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetProjectAccountID indicates an expected call of GetProjectAccountID.
func (mr *MockAccountServiceIfaceMockRecorder) GetProjectAccountID(keyword, projectid interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{keyword, projectid}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetProjectAccountID", reflect.TypeOf((*MockAccountServiceIface)(nil).GetProjectAccountID), varargs...)
}
// GetSolidFireAccountId mocks base method.
func (m *MockAccountServiceIface) GetSolidFireAccountId(p *GetSolidFireAccountIdParams) (*GetSolidFireAccountIdResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetSolidFireAccountId", p)
ret0, _ := ret[0].(*GetSolidFireAccountIdResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetSolidFireAccountId indicates an expected call of GetSolidFireAccountId.
func (mr *MockAccountServiceIfaceMockRecorder) GetSolidFireAccountId(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSolidFireAccountId", reflect.TypeOf((*MockAccountServiceIface)(nil).GetSolidFireAccountId), p)
}
// ListAccounts mocks base method.
func (m *MockAccountServiceIface) ListAccounts(p *ListAccountsParams) (*ListAccountsResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListAccounts", p)
ret0, _ := ret[0].(*ListAccountsResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListAccounts indicates an expected call of ListAccounts.
func (mr *MockAccountServiceIfaceMockRecorder) ListAccounts(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListAccounts", reflect.TypeOf((*MockAccountServiceIface)(nil).ListAccounts), p)
}
// ListProjectAccounts mocks base method.
func (m *MockAccountServiceIface) ListProjectAccounts(p *ListProjectAccountsParams) (*ListProjectAccountsResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListProjectAccounts", p)
ret0, _ := ret[0].(*ListProjectAccountsResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListProjectAccounts indicates an expected call of ListProjectAccounts.
func (mr *MockAccountServiceIfaceMockRecorder) ListProjectAccounts(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListProjectAccounts", reflect.TypeOf((*MockAccountServiceIface)(nil).ListProjectAccounts), p)
}
// LockAccount mocks base method.
func (m *MockAccountServiceIface) LockAccount(p *LockAccountParams) (*LockAccountResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "LockAccount", p)
ret0, _ := ret[0].(*LockAccountResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// LockAccount indicates an expected call of LockAccount.
func (mr *MockAccountServiceIfaceMockRecorder) LockAccount(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LockAccount", reflect.TypeOf((*MockAccountServiceIface)(nil).LockAccount), p)
}
// MarkDefaultZoneForAccount mocks base method.
func (m *MockAccountServiceIface) MarkDefaultZoneForAccount(p *MarkDefaultZoneForAccountParams) (*MarkDefaultZoneForAccountResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "MarkDefaultZoneForAccount", p)
ret0, _ := ret[0].(*MarkDefaultZoneForAccountResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// MarkDefaultZoneForAccount indicates an expected call of MarkDefaultZoneForAccount.
func (mr *MockAccountServiceIfaceMockRecorder) MarkDefaultZoneForAccount(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MarkDefaultZoneForAccount", reflect.TypeOf((*MockAccountServiceIface)(nil).MarkDefaultZoneForAccount), p)
}
// NewCreateAccountParams mocks base method.
func (m *MockAccountServiceIface) NewCreateAccountParams(email, firstname, lastname, password, username string) *CreateAccountParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewCreateAccountParams", email, firstname, lastname, password, username)
ret0, _ := ret[0].(*CreateAccountParams)
return ret0
}
// NewCreateAccountParams indicates an expected call of NewCreateAccountParams.
func (mr *MockAccountServiceIfaceMockRecorder) NewCreateAccountParams(email, firstname, lastname, password, username interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewCreateAccountParams", reflect.TypeOf((*MockAccountServiceIface)(nil).NewCreateAccountParams), email, firstname, lastname, password, username)
}
// NewDeleteAccountParams mocks base method.
func (m *MockAccountServiceIface) NewDeleteAccountParams(id string) *DeleteAccountParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewDeleteAccountParams", id)
ret0, _ := ret[0].(*DeleteAccountParams)
return ret0
}
// NewDeleteAccountParams indicates an expected call of NewDeleteAccountParams.
func (mr *MockAccountServiceIfaceMockRecorder) NewDeleteAccountParams(id interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewDeleteAccountParams", reflect.TypeOf((*MockAccountServiceIface)(nil).NewDeleteAccountParams), id)
}
// NewDisableAccountParams mocks base method.
func (m *MockAccountServiceIface) NewDisableAccountParams(lock bool) *DisableAccountParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewDisableAccountParams", lock)
ret0, _ := ret[0].(*DisableAccountParams)
return ret0
}
// NewDisableAccountParams indicates an expected call of NewDisableAccountParams.
func (mr *MockAccountServiceIfaceMockRecorder) NewDisableAccountParams(lock interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewDisableAccountParams", reflect.TypeOf((*MockAccountServiceIface)(nil).NewDisableAccountParams), lock)
}
// NewEnableAccountParams mocks base method.
func (m *MockAccountServiceIface) NewEnableAccountParams() *EnableAccountParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewEnableAccountParams")
ret0, _ := ret[0].(*EnableAccountParams)
return ret0
}
// NewEnableAccountParams indicates an expected call of NewEnableAccountParams.
func (mr *MockAccountServiceIfaceMockRecorder) NewEnableAccountParams() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewEnableAccountParams", reflect.TypeOf((*MockAccountServiceIface)(nil).NewEnableAccountParams))
}
// NewGetSolidFireAccountIdParams mocks base method.
func (m *MockAccountServiceIface) NewGetSolidFireAccountIdParams(accountid, storageid string) *GetSolidFireAccountIdParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewGetSolidFireAccountIdParams", accountid, storageid)
ret0, _ := ret[0].(*GetSolidFireAccountIdParams)
return ret0
}
// NewGetSolidFireAccountIdParams indicates an expected call of NewGetSolidFireAccountIdParams.
func (mr *MockAccountServiceIfaceMockRecorder) NewGetSolidFireAccountIdParams(accountid, storageid interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewGetSolidFireAccountIdParams", reflect.TypeOf((*MockAccountServiceIface)(nil).NewGetSolidFireAccountIdParams), accountid, storageid)
}
// NewListAccountsParams mocks base method.
func (m *MockAccountServiceIface) NewListAccountsParams() *ListAccountsParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewListAccountsParams")
ret0, _ := ret[0].(*ListAccountsParams)
return ret0
}
// NewListAccountsParams indicates an expected call of NewListAccountsParams.
func (mr *MockAccountServiceIfaceMockRecorder) NewListAccountsParams() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewListAccountsParams", reflect.TypeOf((*MockAccountServiceIface)(nil).NewListAccountsParams))
}
// NewListProjectAccountsParams mocks base method.
func (m *MockAccountServiceIface) NewListProjectAccountsParams(projectid string) *ListProjectAccountsParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewListProjectAccountsParams", projectid)
ret0, _ := ret[0].(*ListProjectAccountsParams)
return ret0
}
// NewListProjectAccountsParams indicates an expected call of NewListProjectAccountsParams.
func (mr *MockAccountServiceIfaceMockRecorder) NewListProjectAccountsParams(projectid interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewListProjectAccountsParams", reflect.TypeOf((*MockAccountServiceIface)(nil).NewListProjectAccountsParams), projectid)
}
// NewLockAccountParams mocks base method.
func (m *MockAccountServiceIface) NewLockAccountParams(account, domainid string) *LockAccountParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewLockAccountParams", account, domainid)
ret0, _ := ret[0].(*LockAccountParams)
return ret0
}
// NewLockAccountParams indicates an expected call of NewLockAccountParams.
func (mr *MockAccountServiceIfaceMockRecorder) NewLockAccountParams(account, domainid interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewLockAccountParams", reflect.TypeOf((*MockAccountServiceIface)(nil).NewLockAccountParams), account, domainid)
}
// NewMarkDefaultZoneForAccountParams mocks base method.
func (m *MockAccountServiceIface) NewMarkDefaultZoneForAccountParams(account, domainid, zoneid string) *MarkDefaultZoneForAccountParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewMarkDefaultZoneForAccountParams", account, domainid, zoneid)
ret0, _ := ret[0].(*MarkDefaultZoneForAccountParams)
return ret0
}
// NewMarkDefaultZoneForAccountParams indicates an expected call of NewMarkDefaultZoneForAccountParams.
func (mr *MockAccountServiceIfaceMockRecorder) NewMarkDefaultZoneForAccountParams(account, domainid, zoneid interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewMarkDefaultZoneForAccountParams", reflect.TypeOf((*MockAccountServiceIface)(nil).NewMarkDefaultZoneForAccountParams), account, domainid, zoneid)
}
// NewUpdateAccountParams mocks base method.
func (m *MockAccountServiceIface) NewUpdateAccountParams() *UpdateAccountParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewUpdateAccountParams")
ret0, _ := ret[0].(*UpdateAccountParams)
return ret0
}
// NewUpdateAccountParams indicates an expected call of NewUpdateAccountParams.
func (mr *MockAccountServiceIfaceMockRecorder) NewUpdateAccountParams() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewUpdateAccountParams", reflect.TypeOf((*MockAccountServiceIface)(nil).NewUpdateAccountParams))
}
// UpdateAccount mocks base method.
func (m *MockAccountServiceIface) UpdateAccount(p *UpdateAccountParams) (*UpdateAccountResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateAccount", p)
ret0, _ := ret[0].(*UpdateAccountResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// UpdateAccount indicates an expected call of UpdateAccount.
func (mr *MockAccountServiceIfaceMockRecorder) UpdateAccount(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateAccount", reflect.TypeOf((*MockAccountServiceIface)(nil).UpdateAccount), p)
}