|
1 | 1 | package mocks
|
2 | 2 |
|
3 | 3 | import baremetal "github.com/MustWin/baremetal-sdk-go"
|
4 |
| - |
| 4 | +import client "github.com/oracle/terraform-provider-baremetal/client" |
5 | 5 | import mock "github.com/stretchr/testify/mock"
|
6 | 6 |
|
7 | 7 | // BareMetalClient is an autogenerated mock type for the BareMetalClient type
|
@@ -2215,114 +2215,114 @@ func (_m *BareMetalClient) ListCpes(compartmentID string, opts *baremetal.ListOp
|
2215 | 2215 | return r0, r1
|
2216 | 2216 | }
|
2217 | 2217 |
|
2218 |
| -// ListDBHomes provides a mock function with given fields: compartmentID, dbSystemID, limit, opts |
2219 |
| -func (_m *BareMetalClient) ListDBHomes(compartmentID string, dbSystemID string, limit uint64, opts *baremetal.PageListOptions) (*baremetal.ListDBHomes, error) { |
2220 |
| - ret := _m.Called(compartmentID, dbSystemID, limit, opts) |
| 2218 | +// ListDBHomes provides a mock function with given fields: compartmentID, dbSystemID, opts |
| 2219 | +func (_m *BareMetalClient) ListDBHomes(compartmentID string, dbSystemID string, opts *baremetal.ListOptions) (*baremetal.ListDBHomes, error) { |
| 2220 | + ret := _m.Called(compartmentID, dbSystemID, opts) |
2221 | 2221 |
|
2222 | 2222 | var r0 *baremetal.ListDBHomes
|
2223 |
| - if rf, ok := ret.Get(0).(func(string, string, uint64, *baremetal.PageListOptions) *baremetal.ListDBHomes); ok { |
2224 |
| - r0 = rf(compartmentID, dbSystemID, limit, opts) |
| 2223 | + if rf, ok := ret.Get(0).(func(string, string, *baremetal.ListOptions) *baremetal.ListDBHomes); ok { |
| 2224 | + r0 = rf(compartmentID, dbSystemID, opts) |
2225 | 2225 | } else {
|
2226 | 2226 | if ret.Get(0) != nil {
|
2227 | 2227 | r0 = ret.Get(0).(*baremetal.ListDBHomes)
|
2228 | 2228 | }
|
2229 | 2229 | }
|
2230 | 2230 |
|
2231 | 2231 | var r1 error
|
2232 |
| - if rf, ok := ret.Get(1).(func(string, string, uint64, *baremetal.PageListOptions) error); ok { |
2233 |
| - r1 = rf(compartmentID, dbSystemID, limit, opts) |
| 2232 | + if rf, ok := ret.Get(1).(func(string, string, *baremetal.ListOptions) error); ok { |
| 2233 | + r1 = rf(compartmentID, dbSystemID, opts) |
2234 | 2234 | } else {
|
2235 | 2235 | r1 = ret.Error(1)
|
2236 | 2236 | }
|
2237 | 2237 |
|
2238 | 2238 | return r0, r1
|
2239 | 2239 | }
|
2240 | 2240 |
|
2241 |
| -// ListDBNodes provides a mock function with given fields: compartmentID, dbSystemID, limit, opts |
2242 |
| -func (_m *BareMetalClient) ListDBNodes(compartmentID string, dbSystemID string, limit uint64, opts *baremetal.PageListOptions) (*baremetal.ListDBNodes, error) { |
2243 |
| - ret := _m.Called(compartmentID, dbSystemID, limit, opts) |
| 2241 | +// ListDBNodes provides a mock function with given fields: compartmentID, dbSystemID, opts |
| 2242 | +func (_m *BareMetalClient) ListDBNodes(compartmentID string, dbSystemID string, opts *baremetal.ListOptions) (*baremetal.ListDBNodes, error) { |
| 2243 | + ret := _m.Called(compartmentID, dbSystemID, opts) |
2244 | 2244 |
|
2245 | 2245 | var r0 *baremetal.ListDBNodes
|
2246 |
| - if rf, ok := ret.Get(0).(func(string, string, uint64, *baremetal.PageListOptions) *baremetal.ListDBNodes); ok { |
2247 |
| - r0 = rf(compartmentID, dbSystemID, limit, opts) |
| 2246 | + if rf, ok := ret.Get(0).(func(string, string, *baremetal.ListOptions) *baremetal.ListDBNodes); ok { |
| 2247 | + r0 = rf(compartmentID, dbSystemID, opts) |
2248 | 2248 | } else {
|
2249 | 2249 | if ret.Get(0) != nil {
|
2250 | 2250 | r0 = ret.Get(0).(*baremetal.ListDBNodes)
|
2251 | 2251 | }
|
2252 | 2252 | }
|
2253 | 2253 |
|
2254 | 2254 | var r1 error
|
2255 |
| - if rf, ok := ret.Get(1).(func(string, string, uint64, *baremetal.PageListOptions) error); ok { |
2256 |
| - r1 = rf(compartmentID, dbSystemID, limit, opts) |
| 2255 | + if rf, ok := ret.Get(1).(func(string, string, *baremetal.ListOptions) error); ok { |
| 2256 | + r1 = rf(compartmentID, dbSystemID, opts) |
2257 | 2257 | } else {
|
2258 | 2258 | r1 = ret.Error(1)
|
2259 | 2259 | }
|
2260 | 2260 |
|
2261 | 2261 | return r0, r1
|
2262 | 2262 | }
|
2263 | 2263 |
|
2264 |
| -// ListDBSystemShapes provides a mock function with given fields: availabilityDomain, compartmentID, limit, opts |
2265 |
| -func (_m *BareMetalClient) ListDBSystemShapes(availabilityDomain string, compartmentID string, limit uint64, opts *baremetal.PageListOptions) (*baremetal.ListDBSystemShapes, error) { |
2266 |
| - ret := _m.Called(availabilityDomain, compartmentID, limit, opts) |
| 2264 | +// ListDBSystemShapes provides a mock function with given fields: availabilityDomain, compartmentID, opts |
| 2265 | +func (_m *BareMetalClient) ListDBSystemShapes(availabilityDomain string, compartmentID string, opts *baremetal.ListOptions) (*baremetal.ListDBSystemShapes, error) { |
| 2266 | + ret := _m.Called(availabilityDomain, compartmentID, opts) |
2267 | 2267 |
|
2268 | 2268 | var r0 *baremetal.ListDBSystemShapes
|
2269 |
| - if rf, ok := ret.Get(0).(func(string, string, uint64, *baremetal.PageListOptions) *baremetal.ListDBSystemShapes); ok { |
2270 |
| - r0 = rf(availabilityDomain, compartmentID, limit, opts) |
| 2269 | + if rf, ok := ret.Get(0).(func(string, string, *baremetal.ListOptions) *baremetal.ListDBSystemShapes); ok { |
| 2270 | + r0 = rf(availabilityDomain, compartmentID, opts) |
2271 | 2271 | } else {
|
2272 | 2272 | if ret.Get(0) != nil {
|
2273 | 2273 | r0 = ret.Get(0).(*baremetal.ListDBSystemShapes)
|
2274 | 2274 | }
|
2275 | 2275 | }
|
2276 | 2276 |
|
2277 | 2277 | var r1 error
|
2278 |
| - if rf, ok := ret.Get(1).(func(string, string, uint64, *baremetal.PageListOptions) error); ok { |
2279 |
| - r1 = rf(availabilityDomain, compartmentID, limit, opts) |
| 2278 | + if rf, ok := ret.Get(1).(func(string, string, *baremetal.ListOptions) error); ok { |
| 2279 | + r1 = rf(availabilityDomain, compartmentID, opts) |
2280 | 2280 | } else {
|
2281 | 2281 | r1 = ret.Error(1)
|
2282 | 2282 | }
|
2283 | 2283 |
|
2284 | 2284 | return r0, r1
|
2285 | 2285 | }
|
2286 | 2286 |
|
2287 |
| -// ListDBSystems provides a mock function with given fields: compartmentID, limit, opts |
2288 |
| -func (_m *BareMetalClient) ListDBSystems(compartmentID string, limit uint64, opts *baremetal.PageListOptions) (*baremetal.ListDBSystems, error) { |
2289 |
| - ret := _m.Called(compartmentID, limit, opts) |
| 2287 | +// ListDBSystems provides a mock function with given fields: compartmentID, opts |
| 2288 | +func (_m *BareMetalClient) ListDBSystems(compartmentID string, opts *baremetal.ListOptions) (*baremetal.ListDBSystems, error) { |
| 2289 | + ret := _m.Called(compartmentID, opts) |
2290 | 2290 |
|
2291 | 2291 | var r0 *baremetal.ListDBSystems
|
2292 |
| - if rf, ok := ret.Get(0).(func(string, uint64, *baremetal.PageListOptions) *baremetal.ListDBSystems); ok { |
2293 |
| - r0 = rf(compartmentID, limit, opts) |
| 2292 | + if rf, ok := ret.Get(0).(func(string, *baremetal.ListOptions) *baremetal.ListDBSystems); ok { |
| 2293 | + r0 = rf(compartmentID, opts) |
2294 | 2294 | } else {
|
2295 | 2295 | if ret.Get(0) != nil {
|
2296 | 2296 | r0 = ret.Get(0).(*baremetal.ListDBSystems)
|
2297 | 2297 | }
|
2298 | 2298 | }
|
2299 | 2299 |
|
2300 | 2300 | var r1 error
|
2301 |
| - if rf, ok := ret.Get(1).(func(string, uint64, *baremetal.PageListOptions) error); ok { |
2302 |
| - r1 = rf(compartmentID, limit, opts) |
| 2301 | + if rf, ok := ret.Get(1).(func(string, *baremetal.ListOptions) error); ok { |
| 2302 | + r1 = rf(compartmentID, opts) |
2303 | 2303 | } else {
|
2304 | 2304 | r1 = ret.Error(1)
|
2305 | 2305 | }
|
2306 | 2306 |
|
2307 | 2307 | return r0, r1
|
2308 | 2308 | }
|
2309 | 2309 |
|
2310 |
| -// ListDBVersions provides a mock function with given fields: compartmentID, limit, opts |
2311 |
| -func (_m *BareMetalClient) ListDBVersions(compartmentID string, limit uint64, opts *baremetal.PageListOptions) (*baremetal.ListDBVersions, error) { |
2312 |
| - ret := _m.Called(compartmentID, limit, opts) |
| 2310 | +// ListDBVersions provides a mock function with given fields: compartmentID, opts |
| 2311 | +func (_m *BareMetalClient) ListDBVersions(compartmentID string, opts *baremetal.ListOptions) (*baremetal.ListDBVersions, error) { |
| 2312 | + ret := _m.Called(compartmentID, opts) |
2313 | 2313 |
|
2314 | 2314 | var r0 *baremetal.ListDBVersions
|
2315 |
| - if rf, ok := ret.Get(0).(func(string, uint64, *baremetal.PageListOptions) *baremetal.ListDBVersions); ok { |
2316 |
| - r0 = rf(compartmentID, limit, opts) |
| 2315 | + if rf, ok := ret.Get(0).(func(string, *baremetal.ListOptions) *baremetal.ListDBVersions); ok { |
| 2316 | + r0 = rf(compartmentID, opts) |
2317 | 2317 | } else {
|
2318 | 2318 | if ret.Get(0) != nil {
|
2319 | 2319 | r0 = ret.Get(0).(*baremetal.ListDBVersions)
|
2320 | 2320 | }
|
2321 | 2321 | }
|
2322 | 2322 |
|
2323 | 2323 | var r1 error
|
2324 |
| - if rf, ok := ret.Get(1).(func(string, uint64, *baremetal.PageListOptions) error); ok { |
2325 |
| - r1 = rf(compartmentID, limit, opts) |
| 2324 | + if rf, ok := ret.Get(1).(func(string, *baremetal.ListOptions) error); ok { |
| 2325 | + r1 = rf(compartmentID, opts) |
2326 | 2326 | } else {
|
2327 | 2327 | r1 = ret.Error(1)
|
2328 | 2328 | }
|
@@ -3658,3 +3658,5 @@ func (_m *BareMetalClient) UploadAPIKey(userID string, key string, opts *baremet
|
3658 | 3658 |
|
3659 | 3659 | return r0, r1
|
3660 | 3660 | }
|
| 3661 | + |
| 3662 | +var _ client.BareMetalClient = (*BareMetalClient)(nil) |
0 commit comments