-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathzone_forward.go
27 lines (24 loc) · 890 Bytes
/
zone_forward.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
package infoblox
// ZoneForward returns an Infoblox forward zone resource.
func (c *Client) ZoneForward() *Resource {
return &Resource{
conn: c,
wapiObject: "zone_forward",
}
}
// ZoneForwardObject defines the Network forward zone object's fields
type ZoneForwardObject struct {
Object
Comment string `json:"comment,omitempty"`
Address string `json:"address,omitempty"`
FQDN string `json:"fqdn,omitempty"`
Parent string `json:"parent,omitempty"`
View string `json:"view,omitempty"`
ForwardServers []ForwardServer `json:"forward_to,omitempty"`
ExtAttrs ExtAttr `json:"extattrs,omitempty"`
}
// ForwardServer defines ZoneForward forwarding server object.
type ForwardServer struct {
Address string `json:"address,omitempty"`
Name string `json:"name,omitempty"`
}