Skip to content

Commit d963038

Browse files
committed
Added resolveDNS option
1 parent f059a2e commit d963038

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

controllers/subnets/subnets.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -88,17 +88,20 @@ type Subnet struct {
8888
EditDate string `json:"editDate,omitempty"`
8989

9090
// Gateway IP and ID of Gateway IP
91-
Gateway map[string]interface{} `json:"gateway,omitempty"`
91+
Gateway map[string]interface{} `json:"gateway,omitempty"`
9292

9393
// Gateway IP ID
94-
GatewayID string `json:"gatewayId,omitempty"`
94+
GatewayID string `json:"gatewayId,omitempty"`
9595

9696
// A map[string]interface{} of custom fields to set on the resource. Note
9797
// that this functionality requires PHPIPAM 1.3 or higher with the "Nest
9898
// custom fields" flag set on the specific API integration. If this is not
9999
// enabled, this map will be nil on GETs and POSTs and PATCHes with this
100100
// field set will fail. Use the explicit custom field functions instead.
101101
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`
102+
103+
// Controls enabling resolve DNS function.
104+
ResolveDNS phpipam.BoolIntString `json:"resolveDNS,omitempty"`
102105
}
103106

104107
// Controller is the base client for the Subnets controller.

0 commit comments

Comments
 (0)