Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pavel-z1/phpipam-sdk-go
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.1.4
Choose a base ref
...
head repository: pavel-z1/phpipam-sdk-go
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.1.5
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Apr 26, 2023

  1. Added resolveDNS option

    pavel-z1 committed Apr 26, 2023
    Copy the full SHA
    d963038 View commit details
Showing with 5 additions and 2 deletions.
  1. +5 −2 controllers/subnets/subnets.go
7 changes: 5 additions & 2 deletions controllers/subnets/subnets.go
Original file line number Diff line number Diff line change
@@ -88,17 +88,20 @@ type Subnet struct {
EditDate string `json:"editDate,omitempty"`

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

// Gateway IP ID
GatewayID string `json:"gatewayId,omitempty"`
GatewayID string `json:"gatewayId,omitempty"`

// A map[string]interface{} of custom fields to set on the resource. Note
// that this functionality requires PHPIPAM 1.3 or higher with the "Nest
// custom fields" flag set on the specific API integration. If this is not
// enabled, this map will be nil on GETs and POSTs and PATCHes with this
// field set will fail. Use the explicit custom field functions instead.
CustomFields map[string]interface{} `json:"custom_fields,omitempty"`

// Controls enabling resolve DNS function.
ResolveDNS phpipam.BoolIntString `json:"resolveDNS,omitempty"`
}

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