-
Notifications
You must be signed in to change notification settings - Fork 22
/
target_https_proxies_client.go
50 lines (46 loc) · 1.37 KB
/
target_https_proxies_client.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
package fakes
import (
"sync"
gcpcompute "google.golang.org/api/compute/v1"
)
type TargetHttpsProxiesClient struct {
DeleteTargetHttpsProxyCall struct {
sync.Mutex
CallCount int
Receives struct {
TargetHttpsProxy string
}
Returns struct {
Error error
}
Stub func(string) error
}
ListTargetHttpsProxiesCall struct {
sync.Mutex
CallCount int
Returns struct {
TargetHttpsProxyList *gcpcompute.TargetHttpsProxyList
Error error
}
Stub func() (*gcpcompute.TargetHttpsProxyList, error)
}
}
func (f *TargetHttpsProxiesClient) DeleteTargetHttpsProxy(param1 string) error {
f.DeleteTargetHttpsProxyCall.Lock()
defer f.DeleteTargetHttpsProxyCall.Unlock()
f.DeleteTargetHttpsProxyCall.CallCount++
f.DeleteTargetHttpsProxyCall.Receives.TargetHttpsProxy = param1
if f.DeleteTargetHttpsProxyCall.Stub != nil {
return f.DeleteTargetHttpsProxyCall.Stub(param1)
}
return f.DeleteTargetHttpsProxyCall.Returns.Error
}
func (f *TargetHttpsProxiesClient) ListTargetHttpsProxies() (*gcpcompute.TargetHttpsProxyList, error) {
f.ListTargetHttpsProxiesCall.Lock()
defer f.ListTargetHttpsProxiesCall.Unlock()
f.ListTargetHttpsProxiesCall.CallCount++
if f.ListTargetHttpsProxiesCall.Stub != nil {
return f.ListTargetHttpsProxiesCall.Stub()
}
return f.ListTargetHttpsProxiesCall.Returns.TargetHttpsProxyList, f.ListTargetHttpsProxiesCall.Returns.Error
}