-
Notifications
You must be signed in to change notification settings - Fork 25
/
InfrastructureUsageService_mock.go
174 lines (152 loc) · 7.76 KB
/
InfrastructureUsageService_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
//
// 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/InfrastructureUsageService.go
// Package cloudstack is a generated GoMock package.
package cloudstack
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
)
// MockInfrastructureUsageServiceIface is a mock of InfrastructureUsageServiceIface interface.
type MockInfrastructureUsageServiceIface struct {
ctrl *gomock.Controller
recorder *MockInfrastructureUsageServiceIfaceMockRecorder
}
// MockInfrastructureUsageServiceIfaceMockRecorder is the mock recorder for MockInfrastructureUsageServiceIface.
type MockInfrastructureUsageServiceIfaceMockRecorder struct {
mock *MockInfrastructureUsageServiceIface
}
// NewMockInfrastructureUsageServiceIface creates a new mock instance.
func NewMockInfrastructureUsageServiceIface(ctrl *gomock.Controller) *MockInfrastructureUsageServiceIface {
mock := &MockInfrastructureUsageServiceIface{ctrl: ctrl}
mock.recorder = &MockInfrastructureUsageServiceIfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockInfrastructureUsageServiceIface) EXPECT() *MockInfrastructureUsageServiceIfaceMockRecorder {
return m.recorder
}
// GetManagementServersMetricByID mocks base method.
func (m *MockInfrastructureUsageServiceIface) GetManagementServersMetricByID(id string, opts ...OptionFunc) (*ManagementServersMetric, int, error) {
m.ctrl.T.Helper()
varargs := []interface{}{id}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetManagementServersMetricByID", varargs...)
ret0, _ := ret[0].(*ManagementServersMetric)
ret1, _ := ret[1].(int)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetManagementServersMetricByID indicates an expected call of GetManagementServersMetricByID.
func (mr *MockInfrastructureUsageServiceIfaceMockRecorder) GetManagementServersMetricByID(id interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{id}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetManagementServersMetricByID", reflect.TypeOf((*MockInfrastructureUsageServiceIface)(nil).GetManagementServersMetricByID), varargs...)
}
// GetManagementServersMetricByName mocks base method.
func (m *MockInfrastructureUsageServiceIface) GetManagementServersMetricByName(name string, opts ...OptionFunc) (*ManagementServersMetric, int, error) {
m.ctrl.T.Helper()
varargs := []interface{}{name}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetManagementServersMetricByName", varargs...)
ret0, _ := ret[0].(*ManagementServersMetric)
ret1, _ := ret[1].(int)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetManagementServersMetricByName indicates an expected call of GetManagementServersMetricByName.
func (mr *MockInfrastructureUsageServiceIfaceMockRecorder) GetManagementServersMetricByName(name interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{name}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetManagementServersMetricByName", reflect.TypeOf((*MockInfrastructureUsageServiceIface)(nil).GetManagementServersMetricByName), varargs...)
}
// GetManagementServersMetricID mocks base method.
func (m *MockInfrastructureUsageServiceIface) GetManagementServersMetricID(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, "GetManagementServersMetricID", varargs...)
ret0, _ := ret[0].(string)
ret1, _ := ret[1].(int)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetManagementServersMetricID indicates an expected call of GetManagementServersMetricID.
func (mr *MockInfrastructureUsageServiceIfaceMockRecorder) GetManagementServersMetricID(name interface{}, opts ...interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]interface{}{name}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetManagementServersMetricID", reflect.TypeOf((*MockInfrastructureUsageServiceIface)(nil).GetManagementServersMetricID), varargs...)
}
// ListDbMetrics mocks base method.
func (m *MockInfrastructureUsageServiceIface) ListDbMetrics(p *ListDbMetricsParams) (*ListDbMetricsResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListDbMetrics", p)
ret0, _ := ret[0].(*ListDbMetricsResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListDbMetrics indicates an expected call of ListDbMetrics.
func (mr *MockInfrastructureUsageServiceIfaceMockRecorder) ListDbMetrics(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListDbMetrics", reflect.TypeOf((*MockInfrastructureUsageServiceIface)(nil).ListDbMetrics), p)
}
// ListManagementServersMetrics mocks base method.
func (m *MockInfrastructureUsageServiceIface) ListManagementServersMetrics(p *ListManagementServersMetricsParams) (*ListManagementServersMetricsResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListManagementServersMetrics", p)
ret0, _ := ret[0].(*ListManagementServersMetricsResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListManagementServersMetrics indicates an expected call of ListManagementServersMetrics.
func (mr *MockInfrastructureUsageServiceIfaceMockRecorder) ListManagementServersMetrics(p interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListManagementServersMetrics", reflect.TypeOf((*MockInfrastructureUsageServiceIface)(nil).ListManagementServersMetrics), p)
}
// NewListDbMetricsParams mocks base method.
func (m *MockInfrastructureUsageServiceIface) NewListDbMetricsParams() *ListDbMetricsParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewListDbMetricsParams")
ret0, _ := ret[0].(*ListDbMetricsParams)
return ret0
}
// NewListDbMetricsParams indicates an expected call of NewListDbMetricsParams.
func (mr *MockInfrastructureUsageServiceIfaceMockRecorder) NewListDbMetricsParams() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewListDbMetricsParams", reflect.TypeOf((*MockInfrastructureUsageServiceIface)(nil).NewListDbMetricsParams))
}
// NewListManagementServersMetricsParams mocks base method.
func (m *MockInfrastructureUsageServiceIface) NewListManagementServersMetricsParams() *ListManagementServersMetricsParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewListManagementServersMetricsParams")
ret0, _ := ret[0].(*ListManagementServersMetricsParams)
return ret0
}
// NewListManagementServersMetricsParams indicates an expected call of NewListManagementServersMetricsParams.
func (mr *MockInfrastructureUsageServiceIfaceMockRecorder) NewListManagementServersMetricsParams() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewListManagementServersMetricsParams", reflect.TypeOf((*MockInfrastructureUsageServiceIface)(nil).NewListManagementServersMetricsParams))
}