-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathPortableIPService_mock.go
167 lines (145 loc) · 7.18 KB
/
PortableIPService_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
//
// 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/PortableIPService.go
//
// Generated by this command:
//
// mockgen -destination=./cloudstack/PortableIPService_mock.go -package=cloudstack -copyright_file=header.txt -source=./cloudstack/PortableIPService.go
//
// Package cloudstack is a generated GoMock package.
package cloudstack
import (
reflect "reflect"
gomock "go.uber.org/mock/gomock"
)
// MockPortableIPServiceIface is a mock of PortableIPServiceIface interface.
type MockPortableIPServiceIface struct {
ctrl *gomock.Controller
recorder *MockPortableIPServiceIfaceMockRecorder
isgomock struct{}
}
// MockPortableIPServiceIfaceMockRecorder is the mock recorder for MockPortableIPServiceIface.
type MockPortableIPServiceIfaceMockRecorder struct {
mock *MockPortableIPServiceIface
}
// NewMockPortableIPServiceIface creates a new mock instance.
func NewMockPortableIPServiceIface(ctrl *gomock.Controller) *MockPortableIPServiceIface {
mock := &MockPortableIPServiceIface{ctrl: ctrl}
mock.recorder = &MockPortableIPServiceIfaceMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockPortableIPServiceIface) EXPECT() *MockPortableIPServiceIfaceMockRecorder {
return m.recorder
}
// CreatePortableIpRange mocks base method.
func (m *MockPortableIPServiceIface) CreatePortableIpRange(p *CreatePortableIpRangeParams) (*CreatePortableIpRangeResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "CreatePortableIpRange", p)
ret0, _ := ret[0].(*CreatePortableIpRangeResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// CreatePortableIpRange indicates an expected call of CreatePortableIpRange.
func (mr *MockPortableIPServiceIfaceMockRecorder) CreatePortableIpRange(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreatePortableIpRange", reflect.TypeOf((*MockPortableIPServiceIface)(nil).CreatePortableIpRange), p)
}
// DeletePortableIpRange mocks base method.
func (m *MockPortableIPServiceIface) DeletePortableIpRange(p *DeletePortableIpRangeParams) (*DeletePortableIpRangeResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "DeletePortableIpRange", p)
ret0, _ := ret[0].(*DeletePortableIpRangeResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// DeletePortableIpRange indicates an expected call of DeletePortableIpRange.
func (mr *MockPortableIPServiceIfaceMockRecorder) DeletePortableIpRange(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeletePortableIpRange", reflect.TypeOf((*MockPortableIPServiceIface)(nil).DeletePortableIpRange), p)
}
// GetPortableIpRangeByID mocks base method.
func (m *MockPortableIPServiceIface) GetPortableIpRangeByID(id string, opts ...OptionFunc) (*PortableIpRange, int, error) {
m.ctrl.T.Helper()
varargs := []any{id}
for _, a := range opts {
varargs = append(varargs, a)
}
ret := m.ctrl.Call(m, "GetPortableIpRangeByID", varargs...)
ret0, _ := ret[0].(*PortableIpRange)
ret1, _ := ret[1].(int)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// GetPortableIpRangeByID indicates an expected call of GetPortableIpRangeByID.
func (mr *MockPortableIPServiceIfaceMockRecorder) GetPortableIpRangeByID(id any, opts ...any) *gomock.Call {
mr.mock.ctrl.T.Helper()
varargs := append([]any{id}, opts...)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPortableIpRangeByID", reflect.TypeOf((*MockPortableIPServiceIface)(nil).GetPortableIpRangeByID), varargs...)
}
// ListPortableIpRanges mocks base method.
func (m *MockPortableIPServiceIface) ListPortableIpRanges(p *ListPortableIpRangesParams) (*ListPortableIpRangesResponse, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ListPortableIpRanges", p)
ret0, _ := ret[0].(*ListPortableIpRangesResponse)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// ListPortableIpRanges indicates an expected call of ListPortableIpRanges.
func (mr *MockPortableIPServiceIfaceMockRecorder) ListPortableIpRanges(p any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListPortableIpRanges", reflect.TypeOf((*MockPortableIPServiceIface)(nil).ListPortableIpRanges), p)
}
// NewCreatePortableIpRangeParams mocks base method.
func (m *MockPortableIPServiceIface) NewCreatePortableIpRangeParams(endip, gateway, netmask string, regionid int, startip string) *CreatePortableIpRangeParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewCreatePortableIpRangeParams", endip, gateway, netmask, regionid, startip)
ret0, _ := ret[0].(*CreatePortableIpRangeParams)
return ret0
}
// NewCreatePortableIpRangeParams indicates an expected call of NewCreatePortableIpRangeParams.
func (mr *MockPortableIPServiceIfaceMockRecorder) NewCreatePortableIpRangeParams(endip, gateway, netmask, regionid, startip any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewCreatePortableIpRangeParams", reflect.TypeOf((*MockPortableIPServiceIface)(nil).NewCreatePortableIpRangeParams), endip, gateway, netmask, regionid, startip)
}
// NewDeletePortableIpRangeParams mocks base method.
func (m *MockPortableIPServiceIface) NewDeletePortableIpRangeParams(id string) *DeletePortableIpRangeParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewDeletePortableIpRangeParams", id)
ret0, _ := ret[0].(*DeletePortableIpRangeParams)
return ret0
}
// NewDeletePortableIpRangeParams indicates an expected call of NewDeletePortableIpRangeParams.
func (mr *MockPortableIPServiceIfaceMockRecorder) NewDeletePortableIpRangeParams(id any) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewDeletePortableIpRangeParams", reflect.TypeOf((*MockPortableIPServiceIface)(nil).NewDeletePortableIpRangeParams), id)
}
// NewListPortableIpRangesParams mocks base method.
func (m *MockPortableIPServiceIface) NewListPortableIpRangesParams() *ListPortableIpRangesParams {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "NewListPortableIpRangesParams")
ret0, _ := ret[0].(*ListPortableIpRangesParams)
return ret0
}
// NewListPortableIpRangesParams indicates an expected call of NewListPortableIpRangesParams.
func (mr *MockPortableIPServiceIfaceMockRecorder) NewListPortableIpRangesParams() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewListPortableIpRangesParams", reflect.TypeOf((*MockPortableIPServiceIface)(nil).NewListPortableIpRangesParams))
}