Skip to content

Commit

Permalink
Add dns_destination_ips_id to TeamsLocation
Browse files Browse the repository at this point in the history
Took the opportunity to add
`ipv4_destination_backup` as well that was also
missing
  • Loading branch information
dfialho committed Dec 5, 2024
1 parent 11a494d commit 1b97e39
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/3699.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
teams_locations: Add dns_destination_ips_id and ipv4_destination_backup
```
2 changes: 2 additions & 0 deletions teams_locations.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ type TeamsLocation struct {
Subdomain string `json:"doh_subdomain"`
AnonymizedLogsEnabled bool `json:"anonymized_logs_enabled"`
IPv4Destination string `json:"ipv4_destination"`
IPv4DestinationBackup string `json:"ipv4_destination_backup"`
DnsDestinationIPsID string `json:"dns_destination_ips_id"`
ClientDefault bool `json:"client_default"`
ECSSupport *bool `json:"ecs_support,omitempty"`

Expand Down
8 changes: 6 additions & 2 deletions teams_locations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ func TestTeamsLocations(t *testing.T) {
"ip": "2a06:98c1:54::2419",
"doh_subdomain": "q15l7x2lbw",
"anonymized_logs_enabled": false,
"ipv4_destination": null,
"ipv4_destination": "1.2.3.4",
"ipv4_destination_backup": "1.2.3.5",
"dns_destination_ips_id": "9da8e0c9-e9cc-4bbd-85c5-b351fc373354",
"client_default": false,
"ecs_support": false,
"created_at": "2020-05-18T22:07:03Z",
Expand All @@ -59,7 +61,9 @@ func TestTeamsLocations(t *testing.T) {
Ip: "2a06:98c1:54::2419",
Subdomain: "q15l7x2lbw",
AnonymizedLogsEnabled: false,
IPv4Destination: "",
IPv4Destination: "1.2.3.4",
IPv4DestinationBackup: "1.2.3.5",
DnsDestinationIPsID: "9da8e0c9-e9cc-4bbd-85c5-b351fc373354",
ClientDefault: false,
ECSSupport: BoolPtr(false),
CreatedAt: &createdAt,
Expand Down

0 comments on commit 1b97e39

Please sign in to comment.