forked from apache/cloudstack-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
LimitService_mock.go
198 lines (170 loc) · 8.08 KB
/
LimitService_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
//
// 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/LimitService.go
// Package cloudstack is a generated GoMock package.
package cloudstack
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockLimitServiceIface is a mock of LimitServiceIface interface.
type MockLimitServiceIface struct {
ctrl *gomock.Controller
recorder *MockLimitServiceIfaceMockRecorder
}
// MockLimitServiceIfaceMockRecorder is the mock recorder for MockLimitServiceIface.
type MockLimitServiceIfaceMockRecorder struct {
mock *MockLimitServiceIface
}
// NewMockLimitServiceIface creates a new mock instance.
func NewMockLimitServiceIface(ctrl *gomock.Controller) *MockLimitServiceIface {
mock := &MockLimitServiceIface{ctrl: ctrl}
mock.recorder = &MockLimitServiceIfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockLimitServiceIface) EXPECT() *MockLimitServiceIfaceMockRecorder {
return m.recorder
}
// GetApiLimit mocks base method.
func (m *MockLimitServiceIface) GetApiLimit(p *GetApiLimitParams) (*GetApiLimitResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetApiLimit", p)
ret0, _ := ret[0].(*GetApiLimitResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetApiLimit indicates an expected call of GetApiLimit.
func (mr *MockLimitServiceIfaceMockRecorder) GetApiLimit(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetApiLimit", reflect.TypeOf((*MockLimitServiceIface)(nil).GetApiLimit), p)
}
// ListResourceLimits mocks base method.
func (m *MockLimitServiceIface) ListResourceLimits(p *ListResourceLimitsParams) (*ListResourceLimitsResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListResourceLimits", p)
ret0, _ := ret[0].(*ListResourceLimitsResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListResourceLimits indicates an expected call of ListResourceLimits.
func (mr *MockLimitServiceIfaceMockRecorder) ListResourceLimits(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListResourceLimits", reflect.TypeOf((*MockLimitServiceIface)(nil).ListResourceLimits), p)
}
// NewGetApiLimitParams mocks base method.
func (m *MockLimitServiceIface) NewGetApiLimitParams() *GetApiLimitParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewGetApiLimitParams")
ret0, _ := ret[0].(*GetApiLimitParams)
return ret0
}
// NewGetApiLimitParams indicates an expected call of NewGetApiLimitParams.
func (mr *MockLimitServiceIfaceMockRecorder) NewGetApiLimitParams() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewGetApiLimitParams", reflect.TypeOf((*MockLimitServiceIface)(nil).NewGetApiLimitParams))
}
// NewListResourceLimitsParams mocks base method.
func (m *MockLimitServiceIface) NewListResourceLimitsParams() *ListResourceLimitsParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewListResourceLimitsParams")
ret0, _ := ret[0].(*ListResourceLimitsParams)
return ret0
}
// NewListResourceLimitsParams indicates an expected call of NewListResourceLimitsParams.
func (mr *MockLimitServiceIfaceMockRecorder) NewListResourceLimitsParams() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewListResourceLimitsParams", reflect.TypeOf((*MockLimitServiceIface)(nil).NewListResourceLimitsParams))
}
// NewResetApiLimitParams mocks base method.
func (m *MockLimitServiceIface) NewResetApiLimitParams() *ResetApiLimitParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewResetApiLimitParams")
ret0, _ := ret[0].(*ResetApiLimitParams)
return ret0
}
// NewResetApiLimitParams indicates an expected call of NewResetApiLimitParams.
func (mr *MockLimitServiceIfaceMockRecorder) NewResetApiLimitParams() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewResetApiLimitParams", reflect.TypeOf((*MockLimitServiceIface)(nil).NewResetApiLimitParams))
}
// NewUpdateResourceCountParams mocks base method.
func (m *MockLimitServiceIface) NewUpdateResourceCountParams(domainid string) *UpdateResourceCountParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewUpdateResourceCountParams", domainid)
ret0, _ := ret[0].(*UpdateResourceCountParams)
return ret0
}
// NewUpdateResourceCountParams indicates an expected call of NewUpdateResourceCountParams.
func (mr *MockLimitServiceIfaceMockRecorder) NewUpdateResourceCountParams(domainid interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewUpdateResourceCountParams", reflect.TypeOf((*MockLimitServiceIface)(nil).NewUpdateResourceCountParams), domainid)
}
// NewUpdateResourceLimitParams mocks base method.
func (m *MockLimitServiceIface) NewUpdateResourceLimitParams(resourcetype int) *UpdateResourceLimitParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewUpdateResourceLimitParams", resourcetype)
ret0, _ := ret[0].(*UpdateResourceLimitParams)
return ret0
}
// NewUpdateResourceLimitParams indicates an expected call of NewUpdateResourceLimitParams.
func (mr *MockLimitServiceIfaceMockRecorder) NewUpdateResourceLimitParams(resourcetype interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewUpdateResourceLimitParams", reflect.TypeOf((*MockLimitServiceIface)(nil).NewUpdateResourceLimitParams), resourcetype)
}
// ResetApiLimit mocks base method.
func (m *MockLimitServiceIface) ResetApiLimit(p *ResetApiLimitParams) (*ResetApiLimitResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ResetApiLimit", p)
ret0, _ := ret[0].(*ResetApiLimitResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ResetApiLimit indicates an expected call of ResetApiLimit.
func (mr *MockLimitServiceIfaceMockRecorder) ResetApiLimit(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetApiLimit", reflect.TypeOf((*MockLimitServiceIface)(nil).ResetApiLimit), p)
}
// UpdateResourceCount mocks base method.
func (m *MockLimitServiceIface) UpdateResourceCount(p *UpdateResourceCountParams) (*UpdateResourceCountResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateResourceCount", p)
ret0, _ := ret[0].(*UpdateResourceCountResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// UpdateResourceCount indicates an expected call of UpdateResourceCount.
func (mr *MockLimitServiceIfaceMockRecorder) UpdateResourceCount(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResourceCount", reflect.TypeOf((*MockLimitServiceIface)(nil).UpdateResourceCount), p)
}
// UpdateResourceLimit mocks base method.
func (m *MockLimitServiceIface) UpdateResourceLimit(p *UpdateResourceLimitParams) (*UpdateResourceLimitResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "UpdateResourceLimit", p)
ret0, _ := ret[0].(*UpdateResourceLimitResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// UpdateResourceLimit indicates an expected call of UpdateResourceLimit.
func (mr *MockLimitServiceIfaceMockRecorder) UpdateResourceLimit(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateResourceLimit", reflect.TypeOf((*MockLimitServiceIface)(nil).UpdateResourceLimit), p)
}