/
target_vpn_gateways_client.go
42 lines (35 loc) · 1.07 KB
/
target_vpn_gateways_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
package fakes
import gcpcompute "google.golang.org/api/compute/v1"
type TargetVpnGatewaysClient struct {
ListTargetVpnGatewaysCall struct {
CallCount int
Receives struct {
Region string
}
Returns struct {
Output []*gcpcompute.TargetVpnGateway
Error error
}
}
DeleteTargetVpnGatewayCall struct {
CallCount int
Receives struct {
TargetVpnGateway string
Region string
}
Returns struct {
Error error
}
}
}
func (u *TargetVpnGatewaysClient) ListTargetVpnGateways(region string) ([]*gcpcompute.TargetVpnGateway, error) {
u.ListTargetVpnGatewaysCall.CallCount++
u.ListTargetVpnGatewaysCall.Receives.Region = region
return u.ListTargetVpnGatewaysCall.Returns.Output, u.ListTargetVpnGatewaysCall.Returns.Error
}
func (u *TargetVpnGatewaysClient) DeleteTargetVpnGateway(region, targetVpnGateway string) error {
u.DeleteTargetVpnGatewayCall.CallCount++
u.DeleteTargetVpnGatewayCall.Receives.Region = region
u.DeleteTargetVpnGatewayCall.Receives.TargetVpnGateway = targetVpnGateway
return u.DeleteTargetVpnGatewayCall.Returns.Error
}